configure revision dd52494d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-nouveau 1.0.16.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/nouveau>.
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&component=Driver/nouveau
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-nouveau'
593PACKAGE_TARNAME='xf86-video-nouveau'
594PACKAGE_VERSION='1.0.16'
595PACKAGE_STRING='xf86-video-nouveau 1.0.16'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/nouveau'
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
642LIBUDEV_FALSE
643LIBUDEV_TRUE
644LIBUDEV_LIBS
645LIBUDEV_CFLAGS
646PCIACCESS_LIBS
647PCIACCESS_CFLAGS
648HAVE_XEXTPROTO_71_FALSE
649HAVE_XEXTPROTO_71_TRUE
650XEXT_LIBS
651XEXT_CFLAGS
652XORG_LIBS
653XORG_CFLAGS
654LIBDRM_NOUVEAU_LIBS
655LIBDRM_NOUVEAU_CFLAGS
656LIBDRM_LIBS
657LIBDRM_CFLAGS
658LT_SYS_LIBRARY_PATH
659OTOOL64
660OTOOL
661LIPO
662NMEDIT
663DSYMUTIL
664MANIFEST_TOOL
665RANLIB
666ac_ct_AR
667AR
668DLLTOOL
669OBJDUMP
670LN_S
671NM
672ac_ct_DUMPBIN
673DUMPBIN
674LD
675FGREP
676LIBTOOL
677MAN_SUBSTS
678XORG_MAN_PAGE
679ADMIN_MAN_DIR
680DRIVER_MAN_DIR
681MISC_MAN_DIR
682FILE_MAN_DIR
683LIB_MAN_DIR
684APP_MAN_DIR
685ADMIN_MAN_SUFFIX
686DRIVER_MAN_SUFFIX
687MISC_MAN_SUFFIX
688FILE_MAN_SUFFIX
689LIB_MAN_SUFFIX
690APP_MAN_SUFFIX
691SED
692host_os
693host_vendor
694host_cpu
695host
696build_os
697build_vendor
698build_cpu
699build
700INSTALL_CMD
701PKG_CONFIG_LIBDIR
702PKG_CONFIG_PATH
703PKG_CONFIG
704CHANGELOG_CMD
705STRICT_CFLAGS
706CWARNFLAGS
707BASE_CFLAGS
708EGREP
709GREP
710CPP
711am__fastdepCC_FALSE
712am__fastdepCC_TRUE
713CCDEPMODE
714am__nodep
715AMDEPBACKSLASH
716AMDEP_FALSE
717AMDEP_TRUE
718am__include
719DEPDIR
720OBJEXT
721EXEEXT
722ac_ct_CC
723CPPFLAGS
724LDFLAGS
725CFLAGS
726CC
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL
792am__quote'
793ac_subst_files=''
794ac_user_opts='
795enable_option_checking
796enable_silent_rules
797enable_dependency_tracking
798enable_selective_werror
799enable_strict_compilation
800enable_static
801enable_shared
802with_pic
803enable_fast_install
804with_aix_soname
805with_gnu_ld
806with_sysroot
807enable_libtool_lock
808with_xorg_module_dir
809'
810      ac_precious_vars='build_alias
811host_alias
812target_alias
813CC
814CFLAGS
815LDFLAGS
816LIBS
817CPPFLAGS
818CPP
819PKG_CONFIG
820PKG_CONFIG_PATH
821PKG_CONFIG_LIBDIR
822LT_SYS_LIBRARY_PATH
823LIBDRM_CFLAGS
824LIBDRM_LIBS
825LIBDRM_NOUVEAU_CFLAGS
826LIBDRM_NOUVEAU_LIBS
827XORG_CFLAGS
828XORG_LIBS
829XEXT_CFLAGS
830XEXT_LIBS
831PCIACCESS_CFLAGS
832PCIACCESS_LIBS
833LIBUDEV_CFLAGS
834LIBUDEV_LIBS'
835
836
837# Initialize some variables set by options.
838ac_init_help=
839ac_init_version=false
840ac_unrecognized_opts=
841ac_unrecognized_sep=
842# The variables have the same names as the options, with
843# dashes changed to underlines.
844cache_file=/dev/null
845exec_prefix=NONE
846no_create=
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
855verbose=
856x_includes=NONE
857x_libraries=NONE
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
864# (The list follows the same order as the GNU Coding Standards.)
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
884
885ac_prev=
886ac_dashdash=
887for ac_option
888do
889  # If the previous option needs an argument, assign it.
890  if test -n "$ac_prev"; then
891    eval $ac_prev=\$ac_option
892    ac_prev=
893    continue
894  fi
895
896  case $ac_option in
897  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898  *=)   ac_optarg= ;;
899  *)    ac_optarg=yes ;;
900  esac
901
902  # Accept the important Cygnus configure options, so we can diagnose typos.
903
904  case $ac_dashdash$ac_option in
905  --)
906    ac_dashdash=yes ;;
907
908  -bindir | --bindir | --bindi | --bind | --bin | --bi)
909    ac_prev=bindir ;;
910  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911    bindir=$ac_optarg ;;
912
913  -build | --build | --buil | --bui | --bu)
914    ac_prev=build_alias ;;
915  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916    build_alias=$ac_optarg ;;
917
918  -cache-file | --cache-file | --cache-fil | --cache-fi \
919  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920    ac_prev=cache_file ;;
921  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923    cache_file=$ac_optarg ;;
924
925  --config-cache | -C)
926    cache_file=config.cache ;;
927
928  -datadir | --datadir | --datadi | --datad)
929    ac_prev=datadir ;;
930  -datadir=* | --datadir=* | --datadi=* | --datad=*)
931    datadir=$ac_optarg ;;
932
933  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934  | --dataroo | --dataro | --datar)
935    ac_prev=datarootdir ;;
936  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938    datarootdir=$ac_optarg ;;
939
940  -disable-* | --disable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=no ;;
955
956  -docdir | --docdir | --docdi | --doc | --do)
957    ac_prev=docdir ;;
958  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959    docdir=$ac_optarg ;;
960
961  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962    ac_prev=dvidir ;;
963  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964    dvidir=$ac_optarg ;;
965
966  -enable-* | --enable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: $ac_useropt"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=\$ac_optarg ;;
981
982  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984  | --exec | --exe | --ex)
985    ac_prev=exec_prefix ;;
986  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988  | --exec=* | --exe=* | --ex=*)
989    exec_prefix=$ac_optarg ;;
990
991  -gas | --gas | --ga | --g)
992    # Obsolete; use --with-gas.
993    with_gas=yes ;;
994
995  -help | --help | --hel | --he | -h)
996    ac_init_help=long ;;
997  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998    ac_init_help=recursive ;;
999  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000    ac_init_help=short ;;
1001
1002  -host | --host | --hos | --ho)
1003    ac_prev=host_alias ;;
1004  -host=* | --host=* | --hos=* | --ho=*)
1005    host_alias=$ac_optarg ;;
1006
1007  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008    ac_prev=htmldir ;;
1009  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010  | --ht=*)
1011    htmldir=$ac_optarg ;;
1012
1013  -includedir | --includedir | --includedi | --included | --include \
1014  | --includ | --inclu | --incl | --inc)
1015    ac_prev=includedir ;;
1016  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017  | --includ=* | --inclu=* | --incl=* | --inc=*)
1018    includedir=$ac_optarg ;;
1019
1020  -infodir | --infodir | --infodi | --infod | --info | --inf)
1021    ac_prev=infodir ;;
1022  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023    infodir=$ac_optarg ;;
1024
1025  -libdir | --libdir | --libdi | --libd)
1026    ac_prev=libdir ;;
1027  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028    libdir=$ac_optarg ;;
1029
1030  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031  | --libexe | --libex | --libe)
1032    ac_prev=libexecdir ;;
1033  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034  | --libexe=* | --libex=* | --libe=*)
1035    libexecdir=$ac_optarg ;;
1036
1037  -localedir | --localedir | --localedi | --localed | --locale)
1038    ac_prev=localedir ;;
1039  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040    localedir=$ac_optarg ;;
1041
1042  -localstatedir | --localstatedir | --localstatedi | --localstated \
1043  | --localstate | --localstat | --localsta | --localst | --locals)
1044    ac_prev=localstatedir ;;
1045  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047    localstatedir=$ac_optarg ;;
1048
1049  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050    ac_prev=mandir ;;
1051  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052    mandir=$ac_optarg ;;
1053
1054  -nfp | --nfp | --nf)
1055    # Obsolete; use --without-fp.
1056    with_fp=no ;;
1057
1058  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059  | --no-cr | --no-c | -n)
1060    no_create=yes ;;
1061
1062  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064    no_recursion=yes ;;
1065
1066  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068  | --oldin | --oldi | --old | --ol | --o)
1069    ac_prev=oldincludedir ;;
1070  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073    oldincludedir=$ac_optarg ;;
1074
1075  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076    ac_prev=prefix ;;
1077  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078    prefix=$ac_optarg ;;
1079
1080  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081  | --program-pre | --program-pr | --program-p)
1082    ac_prev=program_prefix ;;
1083  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085    program_prefix=$ac_optarg ;;
1086
1087  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088  | --program-suf | --program-su | --program-s)
1089    ac_prev=program_suffix ;;
1090  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092    program_suffix=$ac_optarg ;;
1093
1094  -program-transform-name | --program-transform-name \
1095  | --program-transform-nam | --program-transform-na \
1096  | --program-transform-n | --program-transform- \
1097  | --program-transform | --program-transfor \
1098  | --program-transfo | --program-transf \
1099  | --program-trans | --program-tran \
1100  | --progr-tra | --program-tr | --program-t)
1101    ac_prev=program_transform_name ;;
1102  -program-transform-name=* | --program-transform-name=* \
1103  | --program-transform-nam=* | --program-transform-na=* \
1104  | --program-transform-n=* | --program-transform-=* \
1105  | --program-transform=* | --program-transfor=* \
1106  | --program-transfo=* | --program-transf=* \
1107  | --program-trans=* | --program-tran=* \
1108  | --progr-tra=* | --program-tr=* | --program-t=*)
1109    program_transform_name=$ac_optarg ;;
1110
1111  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112    ac_prev=pdfdir ;;
1113  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114    pdfdir=$ac_optarg ;;
1115
1116  -psdir | --psdir | --psdi | --psd | --ps)
1117    ac_prev=psdir ;;
1118  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119    psdir=$ac_optarg ;;
1120
1121  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122  | -silent | --silent | --silen | --sile | --sil)
1123    silent=yes ;;
1124
1125  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126    ac_prev=sbindir ;;
1127  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128  | --sbi=* | --sb=*)
1129    sbindir=$ac_optarg ;;
1130
1131  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133  | --sharedst | --shareds | --shared | --share | --shar \
1134  | --sha | --sh)
1135    ac_prev=sharedstatedir ;;
1136  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139  | --sha=* | --sh=*)
1140    sharedstatedir=$ac_optarg ;;
1141
1142  -site | --site | --sit)
1143    ac_prev=site ;;
1144  -site=* | --site=* | --sit=*)
1145    site=$ac_optarg ;;
1146
1147  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148    ac_prev=srcdir ;;
1149  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150    srcdir=$ac_optarg ;;
1151
1152  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153  | --syscon | --sysco | --sysc | --sys | --sy)
1154    ac_prev=sysconfdir ;;
1155  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157    sysconfdir=$ac_optarg ;;
1158
1159  -target | --target | --targe | --targ | --tar | --ta | --t)
1160    ac_prev=target_alias ;;
1161  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162    target_alias=$ac_optarg ;;
1163
1164  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165    verbose=yes ;;
1166
1167  -version | --version | --versio | --versi | --vers | -V)
1168    ac_init_version=: ;;
1169
1170  -with-* | --with-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=\$ac_optarg ;;
1185
1186  -without-* | --without-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid package name: $ac_useropt"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"with_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval with_$ac_useropt=no ;;
1201
1202  --x)
1203    # Obsolete; use --with-x.
1204    with_x=yes ;;
1205
1206  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207  | --x-incl | --x-inc | --x-in | --x-i)
1208    ac_prev=x_includes ;;
1209  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211    x_includes=$ac_optarg ;;
1212
1213  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215    ac_prev=x_libraries ;;
1216  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218    x_libraries=$ac_optarg ;;
1219
1220  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
1222    ;;
1223
1224  *=*)
1225    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226    # Reject names that are not valid shell variable names.
1227    case $ac_envvar in #(
1228      '' | [0-9]* | *[!_$as_cr_alnum]* )
1229      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230    esac
1231    eval $ac_envvar=\$ac_optarg
1232    export $ac_envvar ;;
1233
1234  *)
1235    # FIXME: should be removed in autoconf 3.0.
1236    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240    ;;
1241
1242  esac
1243done
1244
1245if test -n "$ac_prev"; then
1246  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247  as_fn_error $? "missing argument to $ac_option"
1248fi
1249
1250if test -n "$ac_unrecognized_opts"; then
1251  case $enable_option_checking in
1252    no) ;;
1253    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255  esac
1256fi
1257
1258# Check all directory arguments for consistency.
1259for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260		datadir sysconfdir sharedstatedir localstatedir includedir \
1261		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262		libdir localedir mandir
1263do
1264  eval ac_val=\$$ac_var
1265  # Remove trailing slashes.
1266  case $ac_val in
1267    */ )
1268      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269      eval $ac_var=\$ac_val;;
1270  esac
1271  # Be sure to have absolute directory names.
1272  case $ac_val in
1273    [\\/$]* | ?:[\\/]* )  continue;;
1274    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275  esac
1276  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277done
1278
1279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
1281# FIXME: To remove some day.
1282build=$build_alias
1283host=$host_alias
1284target=$target_alias
1285
1286# FIXME: To remove some day.
1287if test "x$host_alias" != x; then
1288  if test "x$build_alias" = x; then
1289    cross_compiling=maybe
1290  elif test "x$build_alias" != "x$host_alias"; then
1291    cross_compiling=yes
1292  fi
1293fi
1294
1295ac_tool_prefix=
1296test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298test "$silent" = yes && exec 6>/dev/null
1299
1300
1301ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302ac_ls_di=`ls -di .` &&
1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304  as_fn_error $? "working directory cannot be determined"
1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306  as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309# Find the source files, if location was not specified.
1310if test -z "$srcdir"; then
1311  ac_srcdir_defaulted=yes
1312  # Try the directory containing this script, then the parent directory.
1313  ac_confdir=`$as_dirname -- "$as_myself" ||
1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315	 X"$as_myself" : 'X\(//\)[^/]' \| \
1316	 X"$as_myself" : 'X\(//\)$' \| \
1317	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318$as_echo X"$as_myself" |
1319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320	    s//\1/
1321	    q
1322	  }
1323	  /^X\(\/\/\)[^/].*/{
1324	    s//\1/
1325	    q
1326	  }
1327	  /^X\(\/\/\)$/{
1328	    s//\1/
1329	    q
1330	  }
1331	  /^X\(\/\).*/{
1332	    s//\1/
1333	    q
1334	  }
1335	  s/.*/./; q'`
1336  srcdir=$ac_confdir
1337  if test ! -r "$srcdir/$ac_unique_file"; then
1338    srcdir=..
1339  fi
1340else
1341  ac_srcdir_defaulted=no
1342fi
1343if test ! -r "$srcdir/$ac_unique_file"; then
1344  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346fi
1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348ac_abs_confdir=`(
1349	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350	pwd)`
1351# When building in place, set srcdir=.
1352if test "$ac_abs_confdir" = "$ac_pwd"; then
1353  srcdir=.
1354fi
1355# Remove unnecessary trailing slashes from srcdir.
1356# Double slashes in file names in object file debugging info
1357# mess up M-x gdb in Emacs.
1358case $srcdir in
1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360esac
1361for ac_var in $ac_precious_vars; do
1362  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363  eval ac_env_${ac_var}_value=\$${ac_var}
1364  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366done
1367
1368#
1369# Report the --help message.
1370#
1371if test "$ac_init_help" = "long"; then
1372  # Omit some internal or obsolete options to make the list less imposing.
1373  # This message is too long to be a string in the A/UX 3.1 sh.
1374  cat <<_ACEOF
1375\`configure' configures xf86-video-nouveau 1.0.16 to adapt to many kinds of systems.
1376
1377Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382Defaults for the options are specified in brackets.
1383
1384Configuration:
1385  -h, --help              display this help and exit
1386      --help=short        display options specific to this package
1387      --help=recursive    display the short help of all the included packages
1388  -V, --version           display version information and exit
1389  -q, --quiet, --silent   do not print \`checking ...' messages
1390      --cache-file=FILE   cache test results in FILE [disabled]
1391  -C, --config-cache      alias for \`--cache-file=config.cache'
1392  -n, --no-create         do not create output files
1393      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395Installation directories:
1396  --prefix=PREFIX         install architecture-independent files in PREFIX
1397                          [$ac_default_prefix]
1398  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                          [PREFIX]
1400
1401By default, \`make install' will install all the files in
1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404for instance \`--prefix=\$HOME'.
1405
1406For better control, use the options below.
1407
1408Fine tuning of the installation directories:
1409  --bindir=DIR            user executables [EPREFIX/bin]
1410  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411  --libexecdir=DIR        program executables [EPREFIX/libexec]
1412  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415  --libdir=DIR            object code libraries [EPREFIX/lib]
1416  --includedir=DIR        C header files [PREFIX/include]
1417  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420  --infodir=DIR           info documentation [DATAROOTDIR/info]
1421  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422  --mandir=DIR            man documentation [DATAROOTDIR/man]
1423  --docdir=DIR            documentation root
1424                          [DATAROOTDIR/doc/xf86-video-nouveau]
1425  --htmldir=DIR           html documentation [DOCDIR]
1426  --dvidir=DIR            dvi documentation [DOCDIR]
1427  --pdfdir=DIR            pdf documentation [DOCDIR]
1428  --psdir=DIR             ps documentation [DOCDIR]
1429_ACEOF
1430
1431  cat <<\_ACEOF
1432
1433Program names:
1434  --program-prefix=PREFIX            prepend PREFIX to installed program names
1435  --program-suffix=SUFFIX            append SUFFIX to installed program names
1436  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438System types:
1439  --build=BUILD     configure for building on BUILD [guessed]
1440  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441_ACEOF
1442fi
1443
1444if test -n "$ac_init_help"; then
1445  case $ac_init_help in
1446     short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.16:";;
1447   esac
1448  cat <<\_ACEOF
1449
1450Optional Features:
1451  --disable-option-checking  ignore unrecognized --enable/--with options
1452  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454  --enable-silent-rules   less verbose build output (undo: "make V=1")
1455  --disable-silent-rules  verbose build output (undo: "make V=0")
1456  --enable-dependency-tracking
1457                          do not reject slow dependency extractors
1458  --disable-dependency-tracking
1459                          speeds up one-time build
1460  --disable-selective-werror
1461                          Turn off selective compiler errors. (default:
1462                          enabled)
1463  --enable-strict-compilation
1464                          Enable all warnings from compiler and make them
1465                          errors (default: disabled)
1466  --enable-static[=PKGS]  build static libraries [default=no]
1467  --enable-shared[=PKGS]  build shared libraries [default=yes]
1468  --enable-fast-install[=PKGS]
1469                          optimize for fast installation [default=yes]
1470  --disable-libtool-lock  avoid locking (might break parallel builds)
1471
1472Optional Packages:
1473  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1476                          both]
1477  --with-aix-soname=aix|svr4|both
1478                          shared library versioning (aka "SONAME") variant to
1479                          provide on AIX, [default=aix].
1480  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1481  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1482                          compiler's sysroot if not specified).
1483  --with-xorg-module-dir=DIR
1484                          Default xorg module directory
1485                          [[default=$libdir/xorg/modules]]
1486
1487Some influential environment variables:
1488  CC          C compiler command
1489  CFLAGS      C compiler flags
1490  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491              nonstandard directory <lib dir>
1492  LIBS        libraries to pass to the linker, e.g. -l<library>
1493  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494              you have headers in a nonstandard directory <include dir>
1495  CPP         C preprocessor
1496  PKG_CONFIG  path to pkg-config utility
1497  PKG_CONFIG_PATH
1498              directories to add to pkg-config's search path
1499  PKG_CONFIG_LIBDIR
1500              path overriding pkg-config's built-in search path
1501  LT_SYS_LIBRARY_PATH
1502              User-defined run-time library search path.
1503  LIBDRM_CFLAGS
1504              C compiler flags for LIBDRM, overriding pkg-config
1505  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1506  LIBDRM_NOUVEAU_CFLAGS
1507              C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config
1508  LIBDRM_NOUVEAU_LIBS
1509              linker flags for LIBDRM_NOUVEAU, overriding pkg-config
1510  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1511  XORG_LIBS   linker flags for XORG, overriding pkg-config
1512  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1513  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1514  PCIACCESS_CFLAGS
1515              C compiler flags for PCIACCESS, overriding pkg-config
1516  PCIACCESS_LIBS
1517              linker flags for PCIACCESS, overriding pkg-config
1518  LIBUDEV_CFLAGS
1519              C compiler flags for LIBUDEV, overriding pkg-config
1520  LIBUDEV_LIBS
1521              linker flags for LIBUDEV, overriding pkg-config
1522
1523Use these variables to override the choices made by `configure' or to help
1524it to find libraries and programs with nonstandard names/locations.
1525
1526Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/nouveau>.
1527_ACEOF
1528ac_status=$?
1529fi
1530
1531if test "$ac_init_help" = "recursive"; then
1532  # If there are subdirs, report their specific --help.
1533  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534    test -d "$ac_dir" ||
1535      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536      continue
1537    ac_builddir=.
1538
1539case "$ac_dir" in
1540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541*)
1542  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543  # A ".." for each directory in $ac_dir_suffix.
1544  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545  case $ac_top_builddir_sub in
1546  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548  esac ;;
1549esac
1550ac_abs_top_builddir=$ac_pwd
1551ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552# for backward compatibility:
1553ac_top_builddir=$ac_top_build_prefix
1554
1555case $srcdir in
1556  .)  # We are building in place.
1557    ac_srcdir=.
1558    ac_top_srcdir=$ac_top_builddir_sub
1559    ac_abs_top_srcdir=$ac_pwd ;;
1560  [\\/]* | ?:[\\/]* )  # Absolute name.
1561    ac_srcdir=$srcdir$ac_dir_suffix;
1562    ac_top_srcdir=$srcdir
1563    ac_abs_top_srcdir=$srcdir ;;
1564  *) # Relative name.
1565    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566    ac_top_srcdir=$ac_top_build_prefix$srcdir
1567    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568esac
1569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571    cd "$ac_dir" || { ac_status=$?; continue; }
1572    # Check for guested configure.
1573    if test -f "$ac_srcdir/configure.gnu"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576    elif test -f "$ac_srcdir/configure"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure" --help=recursive
1579    else
1580      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581    fi || ac_status=$?
1582    cd "$ac_pwd" || { ac_status=$?; break; }
1583  done
1584fi
1585
1586test -n "$ac_init_help" && exit $ac_status
1587if $ac_init_version; then
1588  cat <<\_ACEOF
1589xf86-video-nouveau configure 1.0.16
1590generated by GNU Autoconf 2.69
1591
1592Copyright (C) 2012 Free Software Foundation, Inc.
1593This configure script is free software; the Free Software Foundation
1594gives unlimited permission to copy, distribute and modify it.
1595_ACEOF
1596  exit
1597fi
1598
1599## ------------------------ ##
1600## Autoconf initialization. ##
1601## ------------------------ ##
1602
1603# ac_fn_c_try_compile LINENO
1604# --------------------------
1605# Try to compile conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_compile ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  rm -f conftest.$ac_objext
1610  if { { ac_try="$ac_compile"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617  (eval "$ac_compile") 2>conftest.err
1618  ac_status=$?
1619  if test -s conftest.err; then
1620    grep -v '^ *+' conftest.err >conftest.er1
1621    cat conftest.er1 >&5
1622    mv -f conftest.er1 conftest.err
1623  fi
1624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625  test $ac_status = 0; } && {
1626	 test -z "$ac_c_werror_flag" ||
1627	 test ! -s conftest.err
1628       } && test -s conftest.$ac_objext; then :
1629  ac_retval=0
1630else
1631  $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637  as_fn_set_status $ac_retval
1638
1639} # ac_fn_c_try_compile
1640
1641# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1642# ---------------------------------------------
1643# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1644# accordingly.
1645ac_fn_c_check_decl ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  as_decl_name=`echo $2|sed 's/ *(.*//'`
1649  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1651$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1652if eval \${$3+:} false; then :
1653  $as_echo_n "(cached) " >&6
1654else
1655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656/* end confdefs.h.  */
1657$4
1658int
1659main ()
1660{
1661#ifndef $as_decl_name
1662#ifdef __cplusplus
1663  (void) $as_decl_use;
1664#else
1665  (void) $as_decl_name;
1666#endif
1667#endif
1668
1669  ;
1670  return 0;
1671}
1672_ACEOF
1673if ac_fn_c_try_compile "$LINENO"; then :
1674  eval "$3=yes"
1675else
1676  eval "$3=no"
1677fi
1678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679fi
1680eval ac_res=\$$3
1681	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682$as_echo "$ac_res" >&6; }
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685} # ac_fn_c_check_decl
1686
1687# ac_fn_c_try_cpp LINENO
1688# ----------------------
1689# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_cpp ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_cpp conftest.$ac_ext"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701  ac_status=$?
1702  if test -s conftest.err; then
1703    grep -v '^ *+' conftest.err >conftest.er1
1704    cat conftest.er1 >&5
1705    mv -f conftest.er1 conftest.err
1706  fi
1707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708  test $ac_status = 0; } > conftest.i && {
1709	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710	 test ! -s conftest.err
1711       }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717    ac_retval=1
1718fi
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_cpp
1723
1724# ac_fn_c_try_run LINENO
1725# ----------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727# that executables *can* be run.
1728ac_fn_c_try_run ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_link") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742  { { case "(($ac_try" in
1743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744  *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748  (eval "$ac_try") 2>&5
1749  ac_status=$?
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; }; }; then :
1752  ac_retval=0
1753else
1754  $as_echo "$as_me: program exited with status $ac_status" >&5
1755       $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758       ac_retval=$ac_status
1759fi
1760  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762  as_fn_set_status $ac_retval
1763
1764} # ac_fn_c_try_run
1765
1766# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767# -------------------------------------------------------
1768# Tests whether HEADER exists and can be compiled using the include files in
1769# INCLUDES, setting the cache variable VAR accordingly.
1770ac_fn_c_check_header_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval \${$3+:} false; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784  eval "$3=yes"
1785else
1786  eval "$3=no"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795} # ac_fn_c_check_header_compile
1796
1797# ac_fn_c_try_link LINENO
1798# -----------------------
1799# Try to link conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_c_try_link ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  rm -f conftest.$ac_objext conftest$ac_exeext
1804  if { { ac_try="$ac_link"
1805case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_link") 2>conftest.err
1812  ac_status=$?
1813  if test -s conftest.err; then
1814    grep -v '^ *+' conftest.err >conftest.er1
1815    cat conftest.er1 >&5
1816    mv -f conftest.er1 conftest.err
1817  fi
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; } && {
1820	 test -z "$ac_c_werror_flag" ||
1821	 test ! -s conftest.err
1822       } && test -s conftest$ac_exeext && {
1823	 test "$cross_compiling" = yes ||
1824	 test -x conftest$ac_exeext
1825       }; then :
1826  ac_retval=0
1827else
1828  $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831	ac_retval=1
1832fi
1833  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835  # interfere with the next link command; also delete a directory that is
1836  # left behind by Apple's compiler.  We do this before executing the actions.
1837  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839  as_fn_set_status $ac_retval
1840
1841} # ac_fn_c_try_link
1842
1843# ac_fn_c_check_func LINENO FUNC VAR
1844# ----------------------------------
1845# Tests whether FUNC exists, setting the cache variable VAR accordingly
1846ac_fn_c_check_func ()
1847{
1848  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850$as_echo_n "checking for $2... " >&6; }
1851if eval \${$3+:} false; then :
1852  $as_echo_n "(cached) " >&6
1853else
1854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h.  */
1856/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1858#define $2 innocuous_$2
1859
1860/* System header to define __stub macros and hopefully few prototypes,
1861    which can conflict with char $2 (); below.
1862    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863    <limits.h> exists even on freestanding compilers.  */
1864
1865#ifdef __STDC__
1866# include <limits.h>
1867#else
1868# include <assert.h>
1869#endif
1870
1871#undef $2
1872
1873/* Override any GCC internal prototype to avoid an error.
1874   Use char because int might match the return type of a GCC
1875   builtin and then its argument prototype would still apply.  */
1876#ifdef __cplusplus
1877extern "C"
1878#endif
1879char $2 ();
1880/* The GNU C library defines this for functions which it implements
1881    to always fail with ENOSYS.  Some functions are actually named
1882    something starting with __ and the normal name is an alias.  */
1883#if defined __stub_$2 || defined __stub___$2
1884choke me
1885#endif
1886
1887int
1888main ()
1889{
1890return $2 ();
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_link "$LINENO"; then :
1896  eval "$3=yes"
1897else
1898  eval "$3=no"
1899fi
1900rm -f core conftest.err conftest.$ac_objext \
1901    conftest$ac_exeext conftest.$ac_ext
1902fi
1903eval ac_res=\$$3
1904	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905$as_echo "$ac_res" >&6; }
1906  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908} # ac_fn_c_check_func
1909cat >config.log <<_ACEOF
1910This file contains any messages produced by compilers while
1911running configure, to aid debugging if configure makes a mistake.
1912
1913It was created by xf86-video-nouveau $as_me 1.0.16, which was
1914generated by GNU Autoconf 2.69.  Invocation command line was
1915
1916  $ $0 $@
1917
1918_ACEOF
1919exec 5>>config.log
1920{
1921cat <<_ASUNAME
1922## --------- ##
1923## Platform. ##
1924## --------- ##
1925
1926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1934
1935/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1936/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1939/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1940/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1941/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1942
1943_ASUNAME
1944
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948  IFS=$as_save_IFS
1949  test -z "$as_dir" && as_dir=.
1950    $as_echo "PATH: $as_dir"
1951  done
1952IFS=$as_save_IFS
1953
1954} >&5
1955
1956cat >&5 <<_ACEOF
1957
1958
1959## ----------- ##
1960## Core tests. ##
1961## ----------- ##
1962
1963_ACEOF
1964
1965
1966# Keep a trace of the command line.
1967# Strip out --no-create and --no-recursion so they do not pile up.
1968# Strip out --silent because we don't want to record it for future runs.
1969# Also quote any args containing shell meta-characters.
1970# Make two passes to allow for proper duplicate-argument suppression.
1971ac_configure_args=
1972ac_configure_args0=
1973ac_configure_args1=
1974ac_must_keep_next=false
1975for ac_pass in 1 2
1976do
1977  for ac_arg
1978  do
1979    case $ac_arg in
1980    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982    | -silent | --silent | --silen | --sile | --sil)
1983      continue ;;
1984    *\'*)
1985      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986    esac
1987    case $ac_pass in
1988    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989    2)
1990      as_fn_append ac_configure_args1 " '$ac_arg'"
1991      if test $ac_must_keep_next = true; then
1992	ac_must_keep_next=false # Got value, back to normal.
1993      else
1994	case $ac_arg in
1995	  *=* | --config-cache | -C | -disable-* | --disable-* \
1996	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998	  | -with-* | --with-* | -without-* | --without-* | --x)
1999	    case "$ac_configure_args0 " in
2000	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001	    esac
2002	    ;;
2003	  -* ) ac_must_keep_next=true ;;
2004	esac
2005      fi
2006      as_fn_append ac_configure_args " '$ac_arg'"
2007      ;;
2008    esac
2009  done
2010done
2011{ ac_configure_args0=; unset ac_configure_args0;}
2012{ ac_configure_args1=; unset ac_configure_args1;}
2013
2014# When interrupted or exit'd, cleanup temporary files, and complete
2015# config.log.  We remove comments because anyway the quotes in there
2016# would cause problems or look ugly.
2017# WARNING: Use '\'' to represent an apostrophe within the trap.
2018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019trap 'exit_status=$?
2020  # Save into config.log some information that might help in debugging.
2021  {
2022    echo
2023
2024    $as_echo "## ---------------- ##
2025## Cache variables. ##
2026## ---------------- ##"
2027    echo
2028    # The following way of writing the cache mishandles newlines in values,
2029(
2030  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031    eval ac_val=\$$ac_var
2032    case $ac_val in #(
2033    *${as_nl}*)
2034      case $ac_var in #(
2035      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037      esac
2038      case $ac_var in #(
2039      _ | IFS | as_nl) ;; #(
2040      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041      *) { eval $ac_var=; unset $ac_var;} ;;
2042      esac ;;
2043    esac
2044  done
2045  (set) 2>&1 |
2046    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047    *${as_nl}ac_space=\ *)
2048      sed -n \
2049	"s/'\''/'\''\\\\'\'''\''/g;
2050	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051      ;; #(
2052    *)
2053      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054      ;;
2055    esac |
2056    sort
2057)
2058    echo
2059
2060    $as_echo "## ----------------- ##
2061## Output variables. ##
2062## ----------------- ##"
2063    echo
2064    for ac_var in $ac_subst_vars
2065    do
2066      eval ac_val=\$$ac_var
2067      case $ac_val in
2068      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069      esac
2070      $as_echo "$ac_var='\''$ac_val'\''"
2071    done | sort
2072    echo
2073
2074    if test -n "$ac_subst_files"; then
2075      $as_echo "## ------------------- ##
2076## File substitutions. ##
2077## ------------------- ##"
2078      echo
2079      for ac_var in $ac_subst_files
2080      do
2081	eval ac_val=\$$ac_var
2082	case $ac_val in
2083	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084	esac
2085	$as_echo "$ac_var='\''$ac_val'\''"
2086      done | sort
2087      echo
2088    fi
2089
2090    if test -s confdefs.h; then
2091      $as_echo "## ----------- ##
2092## confdefs.h. ##
2093## ----------- ##"
2094      echo
2095      cat confdefs.h
2096      echo
2097    fi
2098    test "$ac_signal" != 0 &&
2099      $as_echo "$as_me: caught signal $ac_signal"
2100    $as_echo "$as_me: exit $exit_status"
2101  } >&5
2102  rm -f core *.core core.conftest.* &&
2103    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104    exit $exit_status
2105' 0
2106for ac_signal in 1 2 13 15; do
2107  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108done
2109ac_signal=0
2110
2111# confdefs.h avoids OS command line length limits that DEFS can exceed.
2112rm -f -r conftest* confdefs.h
2113
2114$as_echo "/* confdefs.h */" > confdefs.h
2115
2116# Predefined preprocessor variables.
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_NAME "$PACKAGE_NAME"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_VERSION "$PACKAGE_VERSION"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_STRING "$PACKAGE_STRING"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_URL "$PACKAGE_URL"
2140_ACEOF
2141
2142
2143# Let the site file select an alternate cache file if it wants to.
2144# Prefer an explicitly selected file to automatically selected ones.
2145ac_site_file1=NONE
2146ac_site_file2=NONE
2147if test -n "$CONFIG_SITE"; then
2148  # We do not want a PATH search for config.site.
2149  case $CONFIG_SITE in #((
2150    -*)  ac_site_file1=./$CONFIG_SITE;;
2151    */*) ac_site_file1=$CONFIG_SITE;;
2152    *)   ac_site_file1=./$CONFIG_SITE;;
2153  esac
2154elif test "x$prefix" != xNONE; then
2155  ac_site_file1=$prefix/share/config.site
2156  ac_site_file2=$prefix/etc/config.site
2157else
2158  ac_site_file1=$ac_default_prefix/share/config.site
2159  ac_site_file2=$ac_default_prefix/etc/config.site
2160fi
2161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162do
2163  test "x$ac_site_file" = xNONE && continue
2164  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167    sed 's/^/| /' "$ac_site_file" >&5
2168    . "$ac_site_file" \
2169      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171as_fn_error $? "failed to load site script $ac_site_file
2172See \`config.log' for more details" "$LINENO" 5; }
2173  fi
2174done
2175
2176if test -r "$cache_file"; then
2177  # Some versions of bash will fail to source /dev/null (special files
2178  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2179  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181$as_echo "$as_me: loading cache $cache_file" >&6;}
2182    case $cache_file in
2183      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184      *)                      . "./$cache_file";;
2185    esac
2186  fi
2187else
2188  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189$as_echo "$as_me: creating cache $cache_file" >&6;}
2190  >$cache_file
2191fi
2192
2193# Check that the precious variables saved in the cache have kept the same
2194# value.
2195ac_cache_corrupted=false
2196for ac_var in $ac_precious_vars; do
2197  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198  eval ac_new_set=\$ac_env_${ac_var}_set
2199  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200  eval ac_new_val=\$ac_env_${ac_var}_value
2201  case $ac_old_set,$ac_new_set in
2202    set,)
2203      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205      ac_cache_corrupted=: ;;
2206    ,set)
2207      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209      ac_cache_corrupted=: ;;
2210    ,);;
2211    *)
2212      if test "x$ac_old_val" != "x$ac_new_val"; then
2213	# differences in whitespace do not lead to failure.
2214	ac_old_val_w=`echo x $ac_old_val`
2215	ac_new_val_w=`echo x $ac_new_val`
2216	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219	  ac_cache_corrupted=:
2220	else
2221	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223	  eval $ac_var=\$ac_old_val
2224	fi
2225	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2226$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2227	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2228$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2229      fi;;
2230  esac
2231  # Pass precious variables to config.status.
2232  if test "$ac_new_set" = set; then
2233    case $ac_new_val in
2234    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235    *) ac_arg=$ac_var=$ac_new_val ;;
2236    esac
2237    case " $ac_configure_args " in
2238      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2239      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2240    esac
2241  fi
2242done
2243if $ac_cache_corrupted; then
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249fi
2250## -------------------- ##
2251## Main body of script. ##
2252## -------------------- ##
2253
2254ac_ext=c
2255ac_cpp='$CPP $CPPFLAGS'
2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260
2261
2262
2263cat >>confdefs.h <<_ACEOF
2264#define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \")
2265_ACEOF
2266
2267
2268
2269ac_config_headers="$ac_config_headers config.h"
2270
2271
2272ac_aux_dir=
2273for ac_dir in . "$srcdir"/.; do
2274  if test -f "$ac_dir/install-sh"; then
2275    ac_aux_dir=$ac_dir
2276    ac_install_sh="$ac_aux_dir/install-sh -c"
2277    break
2278  elif test -f "$ac_dir/install.sh"; then
2279    ac_aux_dir=$ac_dir
2280    ac_install_sh="$ac_aux_dir/install.sh -c"
2281    break
2282  elif test -f "$ac_dir/shtool"; then
2283    ac_aux_dir=$ac_dir
2284    ac_install_sh="$ac_aux_dir/shtool install -c"
2285    break
2286  fi
2287done
2288if test -z "$ac_aux_dir"; then
2289  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2290fi
2291
2292# These three variables are undocumented and unsupported,
2293# and are intended to be withdrawn in a future Autoconf release.
2294# They can cause serious problems if a builder's source tree is in a directory
2295# whose full name contains unusual characters.
2296ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2297ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2298ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2299
2300
2301
2302# Initialize Automake
2303am__api_version='1.16'
2304
2305# Find a good install program.  We prefer a C program (faster),
2306# so one script is as good as another.  But avoid the broken or
2307# incompatible versions:
2308# SysV /etc/install, /usr/sbin/install
2309# SunOS /usr/etc/install
2310# IRIX /sbin/install
2311# AIX /bin/install
2312# AmigaOS /C/install, which installs bootblocks on floppy discs
2313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2316# OS/2's system install, which has a completely different semantic
2317# ./install, which can be erroneously created by make from ./install.sh.
2318# Reject install programs that cannot install multiple files.
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2320$as_echo_n "checking for a BSD-compatible install... " >&6; }
2321if test -z "$INSTALL"; then
2322if ${ac_cv_path_install+:} false; then :
2323  $as_echo_n "(cached) " >&6
2324else
2325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330    # Account for people who put trailing slashes in PATH elements.
2331case $as_dir/ in #((
2332  ./ | .// | /[cC]/* | \
2333  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2334  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2335  /usr/ucb/* ) ;;
2336  *)
2337    # OSF1 and SCO ODT 3.0 have their own names for install.
2338    # Don't use installbsd from OSF since it installs stuff as root
2339    # by default.
2340    for ac_prog in ginstall scoinst install; do
2341      for ac_exec_ext in '' $ac_executable_extensions; do
2342	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2343	  if test $ac_prog = install &&
2344	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345	    # AIX install.  It has an incompatible calling convention.
2346	    :
2347	  elif test $ac_prog = install &&
2348	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349	    # program-specific install script used by HP pwplus--don't use.
2350	    :
2351	  else
2352	    rm -rf conftest.one conftest.two conftest.dir
2353	    echo one > conftest.one
2354	    echo two > conftest.two
2355	    mkdir conftest.dir
2356	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2357	      test -s conftest.one && test -s conftest.two &&
2358	      test -s conftest.dir/conftest.one &&
2359	      test -s conftest.dir/conftest.two
2360	    then
2361	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2362	      break 3
2363	    fi
2364	  fi
2365	fi
2366      done
2367    done
2368    ;;
2369esac
2370
2371  done
2372IFS=$as_save_IFS
2373
2374rm -rf conftest.one conftest.two conftest.dir
2375
2376fi
2377  if test "${ac_cv_path_install+set}" = set; then
2378    INSTALL=$ac_cv_path_install
2379  else
2380    # As a last resort, use the slow shell script.  Don't cache a
2381    # value for INSTALL within a source directory, because that will
2382    # break other packages using the cache if that directory is
2383    # removed, or if the value is a relative name.
2384    INSTALL=$ac_install_sh
2385  fi
2386fi
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2388$as_echo "$INSTALL" >&6; }
2389
2390# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2391# It thinks the first close brace ends the variable substitution.
2392test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2393
2394test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2395
2396test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2397
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2399$as_echo_n "checking whether build environment is sane... " >&6; }
2400# Reject unsafe characters in $srcdir or the absolute working directory
2401# name.  Accept space and tab only in the latter.
2402am_lf='
2403'
2404case `pwd` in
2405  *[\\\"\#\$\&\'\`$am_lf]*)
2406    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2407esac
2408case $srcdir in
2409  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2410    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2411esac
2412
2413# Do 'set' in a subshell so we don't clobber the current shell's
2414# arguments.  Must try -L first in case configure is actually a
2415# symlink; some systems play weird games with the mod time of symlinks
2416# (eg FreeBSD returns the mod time of the symlink's containing
2417# directory).
2418if (
2419   am_has_slept=no
2420   for am_try in 1 2; do
2421     echo "timestamp, slept: $am_has_slept" > conftest.file
2422     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2423     if test "$*" = "X"; then
2424	# -L didn't work.
2425	set X `ls -t "$srcdir/configure" conftest.file`
2426     fi
2427     if test "$*" != "X $srcdir/configure conftest.file" \
2428	&& test "$*" != "X conftest.file $srcdir/configure"; then
2429
2430	# If neither matched, then we have a broken ls.  This can happen
2431	# if, for instance, CONFIG_SHELL is bash and it inherits a
2432	# broken ls alias from the environment.  This has actually
2433	# happened.  Such a system could not be considered "sane".
2434	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2435  alias in your environment" "$LINENO" 5
2436     fi
2437     if test "$2" = conftest.file || test $am_try -eq 2; then
2438       break
2439     fi
2440     # Just in case.
2441     sleep 1
2442     am_has_slept=yes
2443   done
2444   test "$2" = conftest.file
2445   )
2446then
2447   # Ok.
2448   :
2449else
2450   as_fn_error $? "newly created file is older than distributed files!
2451Check your system clock" "$LINENO" 5
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2454$as_echo "yes" >&6; }
2455# If we didn't sleep, we still need to ensure time stamps of config.status and
2456# generated files are strictly newer.
2457am_sleep_pid=
2458if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2459  ( sleep 1 ) &
2460  am_sleep_pid=$!
2461fi
2462
2463rm -f conftest.file
2464
2465test "$program_prefix" != NONE &&
2466  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2467# Use a double $ so make ignores it.
2468test "$program_suffix" != NONE &&
2469  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2470# Double any \ or $.
2471# By default was `s,x,x', remove it if useless.
2472ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2473program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2474
2475# Expand $ac_aux_dir to an absolute path.
2476am_aux_dir=`cd "$ac_aux_dir" && pwd`
2477
2478if test x"${MISSING+set}" != xset; then
2479  case $am_aux_dir in
2480  *\ * | *\	*)
2481    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2482  *)
2483    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2484  esac
2485fi
2486# Use eval to expand $SHELL
2487if eval "$MISSING --is-lightweight"; then
2488  am_missing_run="$MISSING "
2489else
2490  am_missing_run=
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2492$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2493fi
2494
2495if test x"${install_sh+set}" != xset; then
2496  case $am_aux_dir in
2497  *\ * | *\	*)
2498    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2499  *)
2500    install_sh="\${SHELL} $am_aux_dir/install-sh"
2501  esac
2502fi
2503
2504# Installed binaries are usually stripped using 'strip' when the user
2505# run "make install-strip".  However 'strip' might not be the right
2506# tool to use in cross-compilation environments, therefore Automake
2507# will honor the 'STRIP' environment variable to overrule this program.
2508if test "$cross_compiling" != no; then
2509  if test -n "$ac_tool_prefix"; then
2510  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2511set dummy ${ac_tool_prefix}strip; ac_word=$2
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513$as_echo_n "checking for $ac_word... " >&6; }
2514if ${ac_cv_prog_STRIP+:} false; then :
2515  $as_echo_n "(cached) " >&6
2516else
2517  if test -n "$STRIP"; then
2518  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523  IFS=$as_save_IFS
2524  test -z "$as_dir" && as_dir=.
2525    for ac_exec_ext in '' $ac_executable_extensions; do
2526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529    break 2
2530  fi
2531done
2532  done
2533IFS=$as_save_IFS
2534
2535fi
2536fi
2537STRIP=$ac_cv_prog_STRIP
2538if test -n "$STRIP"; then
2539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2540$as_echo "$STRIP" >&6; }
2541else
2542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
2544fi
2545
2546
2547fi
2548if test -z "$ac_cv_prog_STRIP"; then
2549  ac_ct_STRIP=$STRIP
2550  # Extract the first word of "strip", so it can be a program name with args.
2551set dummy strip; ac_word=$2
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553$as_echo_n "checking for $ac_word... " >&6; }
2554if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2555  $as_echo_n "(cached) " >&6
2556else
2557  if test -n "$ac_ct_STRIP"; then
2558  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563  IFS=$as_save_IFS
2564  test -z "$as_dir" && as_dir=.
2565    for ac_exec_ext in '' $ac_executable_extensions; do
2566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567    ac_cv_prog_ac_ct_STRIP="strip"
2568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569    break 2
2570  fi
2571done
2572  done
2573IFS=$as_save_IFS
2574
2575fi
2576fi
2577ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2578if test -n "$ac_ct_STRIP"; then
2579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2580$as_echo "$ac_ct_STRIP" >&6; }
2581else
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583$as_echo "no" >&6; }
2584fi
2585
2586  if test "x$ac_ct_STRIP" = x; then
2587    STRIP=":"
2588  else
2589    case $cross_compiling:$ac_tool_warned in
2590yes:)
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593ac_tool_warned=yes ;;
2594esac
2595    STRIP=$ac_ct_STRIP
2596  fi
2597else
2598  STRIP="$ac_cv_prog_STRIP"
2599fi
2600
2601fi
2602INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2603
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2605$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2606if test -z "$MKDIR_P"; then
2607  if ${ac_cv_path_mkdir+:} false; then :
2608  $as_echo_n "(cached) " >&6
2609else
2610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_prog in mkdir gmkdir; do
2616	 for ac_exec_ext in '' $ac_executable_extensions; do
2617	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2618	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2619	     'mkdir (GNU coreutils) '* | \
2620	     'mkdir (coreutils) '* | \
2621	     'mkdir (fileutils) '4.1*)
2622	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2623	       break 3;;
2624	   esac
2625	 done
2626       done
2627  done
2628IFS=$as_save_IFS
2629
2630fi
2631
2632  test -d ./--version && rmdir ./--version
2633  if test "${ac_cv_path_mkdir+set}" = set; then
2634    MKDIR_P="$ac_cv_path_mkdir -p"
2635  else
2636    # As a last resort, use the slow shell script.  Don't cache a
2637    # value for MKDIR_P within a source directory, because that will
2638    # break other packages using the cache if that directory is
2639    # removed, or if the value is a relative name.
2640    MKDIR_P="$ac_install_sh -d"
2641  fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2644$as_echo "$MKDIR_P" >&6; }
2645
2646for ac_prog in gawk mawk nawk awk
2647do
2648  # Extract the first word of "$ac_prog", so it can be a program name with args.
2649set dummy $ac_prog; ac_word=$2
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
2652if ${ac_cv_prog_AWK+:} false; then :
2653  $as_echo_n "(cached) " >&6
2654else
2655  if test -n "$AWK"; then
2656  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661  IFS=$as_save_IFS
2662  test -z "$as_dir" && as_dir=.
2663    for ac_exec_ext in '' $ac_executable_extensions; do
2664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665    ac_cv_prog_AWK="$ac_prog"
2666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667    break 2
2668  fi
2669done
2670  done
2671IFS=$as_save_IFS
2672
2673fi
2674fi
2675AWK=$ac_cv_prog_AWK
2676if test -n "$AWK"; then
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2678$as_echo "$AWK" >&6; }
2679else
2680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
2682fi
2683
2684
2685  test -n "$AWK" && break
2686done
2687
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2689$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2690set x ${MAKE-make}
2691ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2692if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2693  $as_echo_n "(cached) " >&6
2694else
2695  cat >conftest.make <<\_ACEOF
2696SHELL = /bin/sh
2697all:
2698	@echo '@@@%%%=$(MAKE)=@@@%%%'
2699_ACEOF
2700# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2701case `${MAKE-make} -f conftest.make 2>/dev/null` in
2702  *@@@%%%=?*=@@@%%%*)
2703    eval ac_cv_prog_make_${ac_make}_set=yes;;
2704  *)
2705    eval ac_cv_prog_make_${ac_make}_set=no;;
2706esac
2707rm -f conftest.make
2708fi
2709if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711$as_echo "yes" >&6; }
2712  SET_MAKE=
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716  SET_MAKE="MAKE=${MAKE-make}"
2717fi
2718
2719rm -rf .tst 2>/dev/null
2720mkdir .tst 2>/dev/null
2721if test -d .tst; then
2722  am__leading_dot=.
2723else
2724  am__leading_dot=_
2725fi
2726rmdir .tst 2>/dev/null
2727
2728# Check whether --enable-silent-rules was given.
2729if test "${enable_silent_rules+set}" = set; then :
2730  enableval=$enable_silent_rules;
2731fi
2732
2733case $enable_silent_rules in # (((
2734  yes) AM_DEFAULT_VERBOSITY=0;;
2735   no) AM_DEFAULT_VERBOSITY=1;;
2736    *) AM_DEFAULT_VERBOSITY=1;;
2737esac
2738am_make=${MAKE-make}
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2740$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2741if ${am_cv_make_support_nested_variables+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  if $as_echo 'TRUE=$(BAR$(V))
2745BAR0=false
2746BAR1=true
2747V=1
2748am__doit:
2749	@$(TRUE)
2750.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2751  am_cv_make_support_nested_variables=yes
2752else
2753  am_cv_make_support_nested_variables=no
2754fi
2755fi
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2757$as_echo "$am_cv_make_support_nested_variables" >&6; }
2758if test $am_cv_make_support_nested_variables = yes; then
2759    AM_V='$(V)'
2760  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2761else
2762  AM_V=$AM_DEFAULT_VERBOSITY
2763  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2764fi
2765AM_BACKSLASH='\'
2766
2767if test "`cd $srcdir && pwd`" != "`pwd`"; then
2768  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2769  # is not polluted with repeated "-I."
2770  am__isrc=' -I$(srcdir)'
2771  # test to see if srcdir already configured
2772  if test -f $srcdir/config.status; then
2773    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2774  fi
2775fi
2776
2777# test whether we have cygpath
2778if test -z "$CYGPATH_W"; then
2779  if (cygpath --version) >/dev/null 2>/dev/null; then
2780    CYGPATH_W='cygpath -w'
2781  else
2782    CYGPATH_W=echo
2783  fi
2784fi
2785
2786
2787# Define the identity of the package.
2788 PACKAGE='xf86-video-nouveau'
2789 VERSION='1.0.16'
2790
2791
2792cat >>confdefs.h <<_ACEOF
2793#define PACKAGE "$PACKAGE"
2794_ACEOF
2795
2796
2797cat >>confdefs.h <<_ACEOF
2798#define VERSION "$VERSION"
2799_ACEOF
2800
2801# Some tools Automake needs.
2802
2803ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2804
2805
2806AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2807
2808
2809AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2810
2811
2812AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2813
2814
2815MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2816
2817# For better backward compatibility.  To be removed once Automake 1.9.x
2818# dies out for good.  For more background, see:
2819# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2820# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2821mkdir_p='$(MKDIR_P)'
2822
2823# We need awk for the "check" target (and possibly the TAP driver).  The
2824# system "awk" is bad on some platforms.
2825# Always define AMTAR for backward compatibility.  Yes, it's still used
2826# in the wild :-(  We should find a proper way to deprecate it ...
2827AMTAR='$${TAR-tar}'
2828
2829
2830# We'll loop over all known methods to create a tar archive until one works.
2831_am_tools='gnutar  pax cpio none'
2832
2833am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2834
2835
2836
2837
2838
2839
2840# POSIX will say in a future version that running "rm -f" with no argument
2841# is OK; and we want to be able to make that assumption in our Makefile
2842# recipes.  So use an aggressive probe to check that the usage we want is
2843# actually supported "in the wild" to an acceptable degree.
2844# See automake bug#10828.
2845# To make any issue more visible, cause the running configure to be aborted
2846# by default if the 'rm' program in use doesn't match our expectations; the
2847# user can still override this though.
2848if rm -f && rm -fr && rm -rf; then : OK; else
2849  cat >&2 <<'END'
2850Oops!
2851
2852Your 'rm' program seems unable to run without file operands specified
2853on the command line, even when the '-f' option is present.  This is contrary
2854to the behaviour of most rm programs out there, and not conforming with
2855the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2856
2857Please tell bug-automake@gnu.org about your system, including the value
2858of your $PATH and any error possibly output before this message.  This
2859can help us improve future automake versions.
2860
2861END
2862  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2863    echo 'Configuration will proceed anyway, since you have set the' >&2
2864    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2865    echo >&2
2866  else
2867    cat >&2 <<'END'
2868Aborting the configuration process, to ensure you take notice of the issue.
2869
2870You can download and install GNU coreutils to get an 'rm' implementation
2871that behaves properly: <https://www.gnu.org/software/coreutils/>.
2872
2873If you want to complete the configuration process using your problematic
2874'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2875to "yes", and re-run configure.
2876
2877END
2878    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2879  fi
2880fi
2881
2882
2883# Check whether --enable-silent-rules was given.
2884if test "${enable_silent_rules+set}" = set; then :
2885  enableval=$enable_silent_rules;
2886fi
2887
2888case $enable_silent_rules in # (((
2889  yes) AM_DEFAULT_VERBOSITY=0;;
2890   no) AM_DEFAULT_VERBOSITY=1;;
2891    *) AM_DEFAULT_VERBOSITY=0;;
2892esac
2893am_make=${MAKE-make}
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2895$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2896if ${am_cv_make_support_nested_variables+:} false; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if $as_echo 'TRUE=$(BAR$(V))
2900BAR0=false
2901BAR1=true
2902V=1
2903am__doit:
2904	@$(TRUE)
2905.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2906  am_cv_make_support_nested_variables=yes
2907else
2908  am_cv_make_support_nested_variables=no
2909fi
2910fi
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2912$as_echo "$am_cv_make_support_nested_variables" >&6; }
2913if test $am_cv_make_support_nested_variables = yes; then
2914    AM_V='$(V)'
2915  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2916else
2917  AM_V=$AM_DEFAULT_VERBOSITY
2918  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2919fi
2920AM_BACKSLASH='\'
2921
2922
2923# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936DEPDIR="${am__leading_dot}deps"
2937
2938ac_config_commands="$ac_config_commands depfiles"
2939
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2941$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2942cat > confinc.mk << 'END'
2943am__doit:
2944	@echo this is the am__doit target >confinc.out
2945.PHONY: am__doit
2946END
2947am__include="#"
2948am__quote=
2949# BSD make does it like this.
2950echo '.include "confinc.mk" # ignored' > confmf.BSD
2951# Other make implementations (GNU, Solaris 10, AIX) do it like this.
2952echo 'include confinc.mk # ignored' > confmf.GNU
2953_am_result=no
2954for s in GNU BSD; do
2955  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2956   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }
2960  case $?:`cat confinc.out 2>/dev/null` in #(
2961  '0:this is the am__doit target') :
2962    case $s in #(
2963  BSD) :
2964    am__include='.include' am__quote='"' ;; #(
2965  *) :
2966    am__include='include' am__quote='' ;;
2967esac ;; #(
2968  *) :
2969     ;;
2970esac
2971  if test "$am__include" != "#"; then
2972    _am_result="yes ($s style)"
2973    break
2974  fi
2975done
2976rm -f confinc.* confmf.*
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2978$as_echo "${_am_result}" >&6; }
2979
2980# Check whether --enable-dependency-tracking was given.
2981if test "${enable_dependency_tracking+set}" = set; then :
2982  enableval=$enable_dependency_tracking;
2983fi
2984
2985if test "x$enable_dependency_tracking" != xno; then
2986  am_depcomp="$ac_aux_dir/depcomp"
2987  AMDEPBACKSLASH='\'
2988  am__nodep='_no'
2989fi
2990 if test "x$enable_dependency_tracking" != xno; then
2991  AMDEP_TRUE=
2992  AMDEP_FALSE='#'
2993else
2994  AMDEP_TRUE='#'
2995  AMDEP_FALSE=
2996fi
2997
2998
2999ac_ext=c
3000ac_cpp='$CPP $CPPFLAGS'
3001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004if test -n "$ac_tool_prefix"; then
3005  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if ${ac_cv_prog_CC+:} false; then :
3010  $as_echo_n "(cached) " >&6
3011else
3012  if test -n "$CC"; then
3013  ac_cv_prog_CC="$CC" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018  IFS=$as_save_IFS
3019  test -z "$as_dir" && as_dir=.
3020    for ac_exec_ext in '' $ac_executable_extensions; do
3021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024    break 2
3025  fi
3026done
3027  done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032CC=$ac_cv_prog_CC
3033if test -n "$CC"; then
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035$as_echo "$CC" >&6; }
3036else
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042fi
3043if test -z "$ac_cv_prog_CC"; then
3044  ac_ct_CC=$CC
3045  # Extract the first word of "gcc", so it can be a program name with args.
3046set dummy gcc; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if ${ac_cv_prog_ac_ct_CC+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if test -n "$ac_ct_CC"; then
3053  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  test -z "$as_dir" && as_dir=.
3060    for ac_exec_ext in '' $ac_executable_extensions; do
3061  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062    ac_cv_prog_ac_ct_CC="gcc"
3063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064    break 2
3065  fi
3066done
3067  done
3068IFS=$as_save_IFS
3069
3070fi
3071fi
3072ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073if test -n "$ac_ct_CC"; then
3074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075$as_echo "$ac_ct_CC" >&6; }
3076else
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079fi
3080
3081  if test "x$ac_ct_CC" = x; then
3082    CC=""
3083  else
3084    case $cross_compiling:$ac_tool_warned in
3085yes:)
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088ac_tool_warned=yes ;;
3089esac
3090    CC=$ac_ct_CC
3091  fi
3092else
3093  CC="$ac_cv_prog_CC"
3094fi
3095
3096if test -z "$CC"; then
3097          if test -n "$ac_tool_prefix"; then
3098    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3099set dummy ${ac_tool_prefix}cc; ac_word=$2
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101$as_echo_n "checking for $ac_word... " >&6; }
3102if ${ac_cv_prog_CC+:} false; then :
3103  $as_echo_n "(cached) " >&6
3104else
3105  if test -n "$CC"; then
3106  ac_cv_prog_CC="$CC" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111  IFS=$as_save_IFS
3112  test -z "$as_dir" && as_dir=.
3113    for ac_exec_ext in '' $ac_executable_extensions; do
3114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115    ac_cv_prog_CC="${ac_tool_prefix}cc"
3116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117    break 2
3118  fi
3119done
3120  done
3121IFS=$as_save_IFS
3122
3123fi
3124fi
3125CC=$ac_cv_prog_CC
3126if test -n "$CC"; then
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128$as_echo "$CC" >&6; }
3129else
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132fi
3133
3134
3135  fi
3136fi
3137if test -z "$CC"; then
3138  # Extract the first word of "cc", so it can be a program name with args.
3139set dummy cc; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if ${ac_cv_prog_CC+:} false; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  if test -n "$CC"; then
3146  ac_cv_prog_CC="$CC" # Let the user override the test.
3147else
3148  ac_prog_rejected=no
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152  IFS=$as_save_IFS
3153  test -z "$as_dir" && as_dir=.
3154    for ac_exec_ext in '' $ac_executable_extensions; do
3155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3157       ac_prog_rejected=yes
3158       continue
3159     fi
3160    ac_cv_prog_CC="cc"
3161    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162    break 2
3163  fi
3164done
3165  done
3166IFS=$as_save_IFS
3167
3168if test $ac_prog_rejected = yes; then
3169  # We found a bogon in the path, so make sure we never use it.
3170  set dummy $ac_cv_prog_CC
3171  shift
3172  if test $# != 0; then
3173    # We chose a different compiler from the bogus one.
3174    # However, it has the same basename, so the bogon will be chosen
3175    # first if we set CC to just the basename; use the full file name.
3176    shift
3177    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3178  fi
3179fi
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192fi
3193if test -z "$CC"; then
3194  if test -n "$ac_tool_prefix"; then
3195  for ac_prog in cl.exe
3196  do
3197    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if ${ac_cv_prog_CC+:} false; then :
3202  $as_echo_n "(cached) " >&6
3203else
3204  if test -n "$CC"; then
3205  ac_cv_prog_CC="$CC" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210  IFS=$as_save_IFS
3211  test -z "$as_dir" && as_dir=.
3212    for ac_exec_ext in '' $ac_executable_extensions; do
3213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219  done
3220IFS=$as_save_IFS
3221
3222fi
3223fi
3224CC=$ac_cv_prog_CC
3225if test -n "$CC"; then
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227$as_echo "$CC" >&6; }
3228else
3229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231fi
3232
3233
3234    test -n "$CC" && break
3235  done
3236fi
3237if test -z "$CC"; then
3238  ac_ct_CC=$CC
3239  for ac_prog in cl.exe
3240do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if ${ac_cv_prog_ac_ct_CC+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  if test -n "$ac_ct_CC"; then
3249  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_ac_ct_CC="$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263  done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269if test -n "$ac_ct_CC"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271$as_echo "$ac_ct_CC" >&6; }
3272else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278  test -n "$ac_ct_CC" && break
3279done
3280
3281  if test "x$ac_ct_CC" = x; then
3282    CC=""
3283  else
3284    case $cross_compiling:$ac_tool_warned in
3285yes:)
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288ac_tool_warned=yes ;;
3289esac
3290    CC=$ac_ct_CC
3291  fi
3292fi
3293
3294fi
3295
3296
3297test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299as_fn_error $? "no acceptable C compiler found in \$PATH
3300See \`config.log' for more details" "$LINENO" 5; }
3301
3302# Provide some information about the compiler.
3303$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3304set X $ac_compile
3305ac_compiler=$2
3306for ac_option in --version -v -V -qversion; do
3307  { { ac_try="$ac_compiler $ac_option >&5"
3308case "(($ac_try" in
3309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310  *) ac_try_echo=$ac_try;;
3311esac
3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313$as_echo "$ac_try_echo"; } >&5
3314  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3315  ac_status=$?
3316  if test -s conftest.err; then
3317    sed '10a\
3318... rest of stderr output deleted ...
3319         10q' conftest.err >conftest.er1
3320    cat conftest.er1 >&5
3321  fi
3322  rm -f conftest.er1 conftest.err
3323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324  test $ac_status = 0; }
3325done
3326
3327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328/* end confdefs.h.  */
3329
3330int
3331main ()
3332{
3333
3334  ;
3335  return 0;
3336}
3337_ACEOF
3338ac_clean_files_save=$ac_clean_files
3339ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3340# Try to create an executable without -o first, disregard a.out.
3341# It will help us diagnose broken compilers, and finding out an intuition
3342# of exeext.
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3344$as_echo_n "checking whether the C compiler works... " >&6; }
3345ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3346
3347# The possible output files:
3348ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3349
3350ac_rmfiles=
3351for ac_file in $ac_files
3352do
3353  case $ac_file in
3354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3355    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356  esac
3357done
3358rm -f $ac_rmfiles
3359
3360if { { ac_try="$ac_link_default"
3361case "(($ac_try" in
3362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363  *) ac_try_echo=$ac_try;;
3364esac
3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367  (eval "$ac_link_default") 2>&5
3368  ac_status=$?
3369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370  test $ac_status = 0; }; then :
3371  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3372# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3373# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3374# so that the user can short-circuit this test for compilers unknown to
3375# Autoconf.
3376for ac_file in $ac_files ''
3377do
3378  test -f "$ac_file" || continue
3379  case $ac_file in
3380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3381	;;
3382    [ab].out )
3383	# We found the default executable, but exeext='' is most
3384	# certainly right.
3385	break;;
3386    *.* )
3387	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3388	then :; else
3389	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390	fi
3391	# We set ac_cv_exeext here because the later test for it is not
3392	# safe: cross compilers may not add the suffix if given an `-o'
3393	# argument, so we may need to know it at that point already.
3394	# Even if this section looks crufty: it has the advantage of
3395	# actually working.
3396	break;;
3397    * )
3398	break;;
3399  esac
3400done
3401test "$ac_cv_exeext" = no && ac_cv_exeext=
3402
3403else
3404  ac_file=''
3405fi
3406if test -z "$ac_file"; then :
3407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
3409$as_echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
3412{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error 77 "C compiler cannot create executables
3415See \`config.log' for more details" "$LINENO" 5; }
3416else
3417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418$as_echo "yes" >&6; }
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421$as_echo_n "checking for C compiler default output file name... " >&6; }
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3423$as_echo "$ac_file" >&6; }
3424ac_exeext=$ac_cv_exeext
3425
3426rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3427ac_clean_files=$ac_clean_files_save
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3429$as_echo_n "checking for suffix of executables... " >&6; }
3430if { { ac_try="$ac_link"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
3437  (eval "$ac_link") 2>&5
3438  ac_status=$?
3439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440  test $ac_status = 0; }; then :
3441  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3442# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3443# work properly (i.e., refer to `conftest.exe'), while it won't with
3444# `rm'.
3445for ac_file in conftest.exe conftest conftest.*; do
3446  test -f "$ac_file" || continue
3447  case $ac_file in
3448    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450	  break;;
3451    * ) break;;
3452  esac
3453done
3454else
3455  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3458See \`config.log' for more details" "$LINENO" 5; }
3459fi
3460rm -f conftest conftest$ac_cv_exeext
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3462$as_echo "$ac_cv_exeext" >&6; }
3463
3464rm -f conftest.$ac_ext
3465EXEEXT=$ac_cv_exeext
3466ac_exeext=$EXEEXT
3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469#include <stdio.h>
3470int
3471main ()
3472{
3473FILE *f = fopen ("conftest.out", "w");
3474 return ferror (f) || fclose (f) != 0;
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480ac_clean_files="$ac_clean_files conftest.out"
3481# Check that the compiler produces executables we can run.  If not, either
3482# the compiler is broken, or we cross compile.
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3484$as_echo_n "checking whether we are cross compiling... " >&6; }
3485if test "$cross_compiling" != yes; then
3486  { { ac_try="$ac_link"
3487case "(($ac_try" in
3488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489  *) ac_try_echo=$ac_try;;
3490esac
3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492$as_echo "$ac_try_echo"; } >&5
3493  (eval "$ac_link") 2>&5
3494  ac_status=$?
3495  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496  test $ac_status = 0; }
3497  if { ac_try='./conftest$ac_cv_exeext'
3498  { { case "(($ac_try" in
3499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500  *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503$as_echo "$ac_try_echo"; } >&5
3504  (eval "$ac_try") 2>&5
3505  ac_status=$?
3506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507  test $ac_status = 0; }; }; then
3508    cross_compiling=no
3509  else
3510    if test "$cross_compiling" = maybe; then
3511	cross_compiling=yes
3512    else
3513	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515as_fn_error $? "cannot run C compiled programs.
3516If you meant to cross compile, use \`--host'.
3517See \`config.log' for more details" "$LINENO" 5; }
3518    fi
3519  fi
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3522$as_echo "$cross_compiling" >&6; }
3523
3524rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3525ac_clean_files=$ac_clean_files_save
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3527$as_echo_n "checking for suffix of object files... " >&6; }
3528if ${ac_cv_objext+:} false; then :
3529  $as_echo_n "(cached) " >&6
3530else
3531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533
3534int
3535main ()
3536{
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542rm -f conftest.o conftest.obj
3543if { { ac_try="$ac_compile"
3544case "(($ac_try" in
3545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546  *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549$as_echo "$ac_try_echo"; } >&5
3550  (eval "$ac_compile") 2>&5
3551  ac_status=$?
3552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553  test $ac_status = 0; }; then :
3554  for ac_file in conftest.o conftest.obj conftest.*; do
3555  test -f "$ac_file" || continue;
3556  case $ac_file in
3557    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3558    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559       break;;
3560  esac
3561done
3562else
3563  $as_echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568as_fn_error $? "cannot compute suffix of object files: cannot compile
3569See \`config.log' for more details" "$LINENO" 5; }
3570fi
3571rm -f conftest.$ac_cv_objext conftest.$ac_ext
3572fi
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3574$as_echo "$ac_cv_objext" >&6; }
3575OBJEXT=$ac_cv_objext
3576ac_objext=$OBJEXT
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3578$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3579if ${ac_cv_c_compiler_gnu+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h.  */
3584
3585int
3586main ()
3587{
3588#ifndef __GNUC__
3589       choke me
3590#endif
3591
3592  ;
3593  return 0;
3594}
3595_ACEOF
3596if ac_fn_c_try_compile "$LINENO"; then :
3597  ac_compiler_gnu=yes
3598else
3599  ac_compiler_gnu=no
3600fi
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602ac_cv_c_compiler_gnu=$ac_compiler_gnu
3603
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3606$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607if test $ac_compiler_gnu = yes; then
3608  GCC=yes
3609else
3610  GCC=
3611fi
3612ac_test_CFLAGS=${CFLAGS+set}
3613ac_save_CFLAGS=$CFLAGS
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3615$as_echo_n "checking whether $CC accepts -g... " >&6; }
3616if ${ac_cv_prog_cc_g+:} false; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  ac_save_c_werror_flag=$ac_c_werror_flag
3620   ac_c_werror_flag=yes
3621   ac_cv_prog_cc_g=no
3622   CFLAGS="-g"
3623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625
3626int
3627main ()
3628{
3629
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634if ac_fn_c_try_compile "$LINENO"; then :
3635  ac_cv_prog_cc_g=yes
3636else
3637  CFLAGS=""
3638      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649if ac_fn_c_try_compile "$LINENO"; then :
3650
3651else
3652  ac_c_werror_flag=$ac_save_c_werror_flag
3653	 CFLAGS="-g"
3654	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666  ac_cv_prog_cc_g=yes
3667fi
3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673   ac_c_werror_flag=$ac_save_c_werror_flag
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3676$as_echo "$ac_cv_prog_cc_g" >&6; }
3677if test "$ac_test_CFLAGS" = set; then
3678  CFLAGS=$ac_save_CFLAGS
3679elif test $ac_cv_prog_cc_g = yes; then
3680  if test "$GCC" = yes; then
3681    CFLAGS="-g -O2"
3682  else
3683    CFLAGS="-g"
3684  fi
3685else
3686  if test "$GCC" = yes; then
3687    CFLAGS="-O2"
3688  else
3689    CFLAGS=
3690  fi
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3693$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3694if ${ac_cv_prog_cc_c89+:} false; then :
3695  $as_echo_n "(cached) " >&6
3696else
3697  ac_cv_prog_cc_c89=no
3698ac_save_CC=$CC
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701#include <stdarg.h>
3702#include <stdio.h>
3703struct stat;
3704/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3705struct buf { int x; };
3706FILE * (*rcsopen) (struct buf *, struct stat *, int);
3707static char *e (p, i)
3708     char **p;
3709     int i;
3710{
3711  return p[i];
3712}
3713static char *f (char * (*g) (char **, int), char **p, ...)
3714{
3715  char *s;
3716  va_list v;
3717  va_start (v,p);
3718  s = g (p, va_arg (v,int));
3719  va_end (v);
3720  return s;
3721}
3722
3723/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3724   function prototypes and stuff, but not '\xHH' hex character constants.
3725   These don't provoke an error unfortunately, instead are silently treated
3726   as 'x'.  The following induces an error, until -std is added to get
3727   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3728   array size at least.  It's necessary to write '\x00'==0 to get something
3729   that's true only with -std.  */
3730int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3731
3732/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3733   inside strings and character constants.  */
3734#define FOO(x) 'x'
3735int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3736
3737int test (int i, double x);
3738struct s1 {int (*f) (int a);};
3739struct s2 {int (*f) (double a);};
3740int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3741int argc;
3742char **argv;
3743int
3744main ()
3745{
3746return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3747  ;
3748  return 0;
3749}
3750_ACEOF
3751for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3752	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3753do
3754  CC="$ac_save_CC $ac_arg"
3755  if ac_fn_c_try_compile "$LINENO"; then :
3756  ac_cv_prog_cc_c89=$ac_arg
3757fi
3758rm -f core conftest.err conftest.$ac_objext
3759  test "x$ac_cv_prog_cc_c89" != "xno" && break
3760done
3761rm -f conftest.$ac_ext
3762CC=$ac_save_CC
3763
3764fi
3765# AC_CACHE_VAL
3766case "x$ac_cv_prog_cc_c89" in
3767  x)
3768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3769$as_echo "none needed" >&6; } ;;
3770  xno)
3771    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3772$as_echo "unsupported" >&6; } ;;
3773  *)
3774    CC="$CC $ac_cv_prog_cc_c89"
3775    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3776$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3777esac
3778if test "x$ac_cv_prog_cc_c89" != xno; then :
3779
3780fi
3781
3782ac_ext=c
3783ac_cpp='$CPP $CPPFLAGS'
3784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788ac_ext=c
3789ac_cpp='$CPP $CPPFLAGS'
3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3794$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3795if ${am_cv_prog_cc_c_o+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800
3801int
3802main ()
3803{
3804
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809  # Make sure it works both with $CC and with simple cc.
3810  # Following AC_PROG_CC_C_O, we do the test twice because some
3811  # compilers refuse to overwrite an existing .o file with -o,
3812  # though they will create one.
3813  am_cv_prog_cc_c_o=yes
3814  for am_i in 1 2; do
3815    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3816   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3817   ac_status=$?
3818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819   (exit $ac_status); } \
3820         && test -f conftest2.$ac_objext; then
3821      : OK
3822    else
3823      am_cv_prog_cc_c_o=no
3824      break
3825    fi
3826  done
3827  rm -f core conftest*
3828  unset am_i
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3831$as_echo "$am_cv_prog_cc_c_o" >&6; }
3832if test "$am_cv_prog_cc_c_o" != yes; then
3833   # Losing compiler, so override with the script.
3834   # FIXME: It is wrong to rewrite CC.
3835   # But if we don't then we get into trouble of one sort or another.
3836   # A longer-term fix would be to have automake use am__CC in this case,
3837   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3838   CC="$am_aux_dir/compile $CC"
3839fi
3840ac_ext=c
3841ac_cpp='$CPP $CPPFLAGS'
3842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844ac_compiler_gnu=$ac_cv_c_compiler_gnu
3845
3846
3847depcc="$CC"   am_compiler_list=
3848
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3850$as_echo_n "checking dependency style of $depcc... " >&6; }
3851if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3852  $as_echo_n "(cached) " >&6
3853else
3854  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855  # We make a subdir and do the tests there.  Otherwise we can end up
3856  # making bogus files that we don't know about and never remove.  For
3857  # instance it was reported that on HP-UX the gcc test will end up
3858  # making a dummy file named 'D' -- because '-MD' means "put the output
3859  # in D".
3860  rm -rf conftest.dir
3861  mkdir conftest.dir
3862  # Copy depcomp to subdir because otherwise we won't find it if we're
3863  # using a relative directory.
3864  cp "$am_depcomp" conftest.dir
3865  cd conftest.dir
3866  # We will build objects and dependencies in a subdirectory because
3867  # it helps to detect inapplicable dependency modes.  For instance
3868  # both Tru64's cc and ICC support -MD to output dependencies as a
3869  # side effect of compilation, but ICC will put the dependencies in
3870  # the current directory while Tru64 will put them in the object
3871  # directory.
3872  mkdir sub
3873
3874  am_cv_CC_dependencies_compiler_type=none
3875  if test "$am_compiler_list" = ""; then
3876     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877  fi
3878  am__universal=false
3879  case " $depcc " in #(
3880     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881     esac
3882
3883  for depmode in $am_compiler_list; do
3884    # Setup a source with many dependencies, because some compilers
3885    # like to wrap large dependency lists on column 80 (with \), and
3886    # we should not choose a depcomp mode which is confused by this.
3887    #
3888    # We need to recreate these files for each test, as the compiler may
3889    # overwrite some of them when testing with obscure command lines.
3890    # This happens at least with the AIX C compiler.
3891    : > sub/conftest.c
3892    for i in 1 2 3 4 5 6; do
3893      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3895      # Solaris 10 /bin/sh.
3896      echo '/* dummy */' > sub/conftst$i.h
3897    done
3898    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3901    # mode.  It turns out that the SunPro C++ compiler does not properly
3902    # handle '-M -o', and we need to detect this.  Also, some Intel
3903    # versions had trouble with output in subdirs.
3904    am__obj=sub/conftest.${OBJEXT-o}
3905    am__minus_obj="-o $am__obj"
3906    case $depmode in
3907    gcc)
3908      # This depmode causes a compiler race in universal mode.
3909      test "$am__universal" = false || continue
3910      ;;
3911    nosideeffect)
3912      # After this tag, mechanisms are not by side-effect, so they'll
3913      # only be used when explicitly requested.
3914      if test "x$enable_dependency_tracking" = xyes; then
3915	continue
3916      else
3917	break
3918      fi
3919      ;;
3920    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3921      # This compiler won't grok '-c -o', but also, the minuso test has
3922      # not run yet.  These depmodes are late enough in the game, and
3923      # so weak that their functioning should not be impacted.
3924      am__obj=conftest.${OBJEXT-o}
3925      am__minus_obj=
3926      ;;
3927    none) break ;;
3928    esac
3929    if depmode=$depmode \
3930       source=sub/conftest.c object=$am__obj \
3931       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933         >/dev/null 2>conftest.err &&
3934       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938      # icc doesn't choke on unknown options, it will just issue warnings
3939      # or remarks (even with -Werror).  So we grep stderr for any message
3940      # that says an option was ignored or not supported.
3941      # When given -MP, icc 7.0 and 7.1 complain thusly:
3942      #   icc: Command line warning: ignoring option '-M'; no argument required
3943      # The diagnosis changed in icc 8.0:
3944      #   icc: Command line remark: option '-MP' not supported
3945      if (grep 'ignoring option' conftest.err ||
3946          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947        am_cv_CC_dependencies_compiler_type=$depmode
3948        break
3949      fi
3950    fi
3951  done
3952
3953  cd ..
3954  rm -rf conftest.dir
3955else
3956  am_cv_CC_dependencies_compiler_type=none
3957fi
3958
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964 if
3965  test "x$enable_dependency_tracking" != xno \
3966  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967  am__fastdepCC_TRUE=
3968  am__fastdepCC_FALSE='#'
3969else
3970  am__fastdepCC_TRUE='#'
3971  am__fastdepCC_FALSE=
3972fi
3973
3974
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3976$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3977if ${ac_cv_prog_cc_c99+:} false; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  ac_cv_prog_cc_c99=no
3981ac_save_CC=$CC
3982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984#include <stdarg.h>
3985#include <stdbool.h>
3986#include <stdlib.h>
3987#include <wchar.h>
3988#include <stdio.h>
3989
3990// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3991#define debug(...) fprintf (stderr, __VA_ARGS__)
3992#define showlist(...) puts (#__VA_ARGS__)
3993#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3994static void
3995test_varargs_macros (void)
3996{
3997  int x = 1234;
3998  int y = 5678;
3999  debug ("Flag");
4000  debug ("X = %d\n", x);
4001  showlist (The first, second, and third items.);
4002  report (x>y, "x is %d but y is %d", x, y);
4003}
4004
4005// Check long long types.
4006#define BIG64 18446744073709551615ull
4007#define BIG32 4294967295ul
4008#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4009#if !BIG_OK
4010  your preprocessor is broken;
4011#endif
4012#if BIG_OK
4013#else
4014  your preprocessor is broken;
4015#endif
4016static long long int bignum = -9223372036854775807LL;
4017static unsigned long long int ubignum = BIG64;
4018
4019struct incomplete_array
4020{
4021  int datasize;
4022  double data[];
4023};
4024
4025struct named_init {
4026  int number;
4027  const wchar_t *name;
4028  double average;
4029};
4030
4031typedef const char *ccp;
4032
4033static inline int
4034test_restrict (ccp restrict text)
4035{
4036  // See if C++-style comments work.
4037  // Iterate through items via the restricted pointer.
4038  // Also check for declarations in for loops.
4039  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4040    continue;
4041  return 0;
4042}
4043
4044// Check varargs and va_copy.
4045static void
4046test_varargs (const char *format, ...)
4047{
4048  va_list args;
4049  va_start (args, format);
4050  va_list args_copy;
4051  va_copy (args_copy, args);
4052
4053  const char *str;
4054  int number;
4055  float fnumber;
4056
4057  while (*format)
4058    {
4059      switch (*format++)
4060	{
4061	case 's': // string
4062	  str = va_arg (args_copy, const char *);
4063	  break;
4064	case 'd': // int
4065	  number = va_arg (args_copy, int);
4066	  break;
4067	case 'f': // float
4068	  fnumber = va_arg (args_copy, double);
4069	  break;
4070	default:
4071	  break;
4072	}
4073    }
4074  va_end (args_copy);
4075  va_end (args);
4076}
4077
4078int
4079main ()
4080{
4081
4082  // Check bool.
4083  _Bool success = false;
4084
4085  // Check restrict.
4086  if (test_restrict ("String literal") == 0)
4087    success = true;
4088  char *restrict newvar = "Another string";
4089
4090  // Check varargs.
4091  test_varargs ("s, d' f .", "string", 65, 34.234);
4092  test_varargs_macros ();
4093
4094  // Check flexible array members.
4095  struct incomplete_array *ia =
4096    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4097  ia->datasize = 10;
4098  for (int i = 0; i < ia->datasize; ++i)
4099    ia->data[i] = i * 1.234;
4100
4101  // Check named initializers.
4102  struct named_init ni = {
4103    .number = 34,
4104    .name = L"Test wide string",
4105    .average = 543.34343,
4106  };
4107
4108  ni.number = 58;
4109
4110  int dynamic_array[ni.number];
4111  dynamic_array[ni.number - 1] = 543;
4112
4113  // work around unused variable warnings
4114  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4115	  || dynamic_array[ni.number - 1] != 543);
4116
4117  ;
4118  return 0;
4119}
4120_ACEOF
4121for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4122do
4123  CC="$ac_save_CC $ac_arg"
4124  if ac_fn_c_try_compile "$LINENO"; then :
4125  ac_cv_prog_cc_c99=$ac_arg
4126fi
4127rm -f core conftest.err conftest.$ac_objext
4128  test "x$ac_cv_prog_cc_c99" != "xno" && break
4129done
4130rm -f conftest.$ac_ext
4131CC=$ac_save_CC
4132
4133fi
4134# AC_CACHE_VAL
4135case "x$ac_cv_prog_cc_c99" in
4136  x)
4137    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4138$as_echo "none needed" >&6; } ;;
4139  xno)
4140    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4141$as_echo "unsupported" >&6; } ;;
4142  *)
4143    CC="$CC $ac_cv_prog_cc_c99"
4144    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4145$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4146esac
4147if test "x$ac_cv_prog_cc_c99" != xno; then :
4148
4149fi
4150
4151
4152
4153ac_ext=c
4154ac_cpp='$CPP $CPPFLAGS'
4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4159$as_echo_n "checking how to run the C preprocessor... " >&6; }
4160# On Suns, sometimes $CPP names a directory.
4161if test -n "$CPP" && test -d "$CPP"; then
4162  CPP=
4163fi
4164if test -z "$CPP"; then
4165  if ${ac_cv_prog_CPP+:} false; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168      # Double quotes because CPP needs to be expanded
4169    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4170    do
4171      ac_preproc_ok=false
4172for ac_c_preproc_warn_flag in '' yes
4173do
4174  # Use a header file that comes with gcc, so configuring glibc
4175  # with a fresh cross-compiler works.
4176  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177  # <limits.h> exists even on freestanding compilers.
4178  # On the NeXT, cc -E runs the code through the compiler's parser,
4179  # not just through cpp. "Syntax error" is here to catch this case.
4180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h.  */
4182#ifdef __STDC__
4183# include <limits.h>
4184#else
4185# include <assert.h>
4186#endif
4187		     Syntax error
4188_ACEOF
4189if ac_fn_c_try_cpp "$LINENO"; then :
4190
4191else
4192  # Broken: fails on valid input.
4193continue
4194fi
4195rm -f conftest.err conftest.i conftest.$ac_ext
4196
4197  # OK, works on sane cases.  Now check whether nonexistent headers
4198  # can be detected and how.
4199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h.  */
4201#include <ac_nonexistent.h>
4202_ACEOF
4203if ac_fn_c_try_cpp "$LINENO"; then :
4204  # Broken: success on invalid input.
4205continue
4206else
4207  # Passes both tests.
4208ac_preproc_ok=:
4209break
4210fi
4211rm -f conftest.err conftest.i conftest.$ac_ext
4212
4213done
4214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4215rm -f conftest.i conftest.err conftest.$ac_ext
4216if $ac_preproc_ok; then :
4217  break
4218fi
4219
4220    done
4221    ac_cv_prog_CPP=$CPP
4222
4223fi
4224  CPP=$ac_cv_prog_CPP
4225else
4226  ac_cv_prog_CPP=$CPP
4227fi
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4229$as_echo "$CPP" >&6; }
4230ac_preproc_ok=false
4231for ac_c_preproc_warn_flag in '' yes
4232do
4233  # Use a header file that comes with gcc, so configuring glibc
4234  # with a fresh cross-compiler works.
4235  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4236  # <limits.h> exists even on freestanding compilers.
4237  # On the NeXT, cc -E runs the code through the compiler's parser,
4238  # not just through cpp. "Syntax error" is here to catch this case.
4239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h.  */
4241#ifdef __STDC__
4242# include <limits.h>
4243#else
4244# include <assert.h>
4245#endif
4246		     Syntax error
4247_ACEOF
4248if ac_fn_c_try_cpp "$LINENO"; then :
4249
4250else
4251  # Broken: fails on valid input.
4252continue
4253fi
4254rm -f conftest.err conftest.i conftest.$ac_ext
4255
4256  # OK, works on sane cases.  Now check whether nonexistent headers
4257  # can be detected and how.
4258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260#include <ac_nonexistent.h>
4261_ACEOF
4262if ac_fn_c_try_cpp "$LINENO"; then :
4263  # Broken: success on invalid input.
4264continue
4265else
4266  # Passes both tests.
4267ac_preproc_ok=:
4268break
4269fi
4270rm -f conftest.err conftest.i conftest.$ac_ext
4271
4272done
4273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4274rm -f conftest.i conftest.err conftest.$ac_ext
4275if $ac_preproc_ok; then :
4276
4277else
4278  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4281See \`config.log' for more details" "$LINENO" 5; }
4282fi
4283
4284ac_ext=c
4285ac_cpp='$CPP $CPPFLAGS'
4286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4292$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4293if ${ac_cv_path_GREP+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  if test -z "$GREP"; then
4297  ac_path_GREP_found=false
4298  # Loop through the user's path and test for each of PROGNAME-LIST
4299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4301do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304    for ac_prog in grep ggrep; do
4305    for ac_exec_ext in '' $ac_executable_extensions; do
4306      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4307      as_fn_executable_p "$ac_path_GREP" || continue
4308# Check for GNU ac_path_GREP and select it if it is found.
4309  # Check for GNU $ac_path_GREP
4310case `"$ac_path_GREP" --version 2>&1` in
4311*GNU*)
4312  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4313*)
4314  ac_count=0
4315  $as_echo_n 0123456789 >"conftest.in"
4316  while :
4317  do
4318    cat "conftest.in" "conftest.in" >"conftest.tmp"
4319    mv "conftest.tmp" "conftest.in"
4320    cp "conftest.in" "conftest.nl"
4321    $as_echo 'GREP' >> "conftest.nl"
4322    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324    as_fn_arith $ac_count + 1 && ac_count=$as_val
4325    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4326      # Best one so far, save it but keep looking for a better one
4327      ac_cv_path_GREP="$ac_path_GREP"
4328      ac_path_GREP_max=$ac_count
4329    fi
4330    # 10*(2^10) chars as input seems more than enough
4331    test $ac_count -gt 10 && break
4332  done
4333  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334esac
4335
4336      $ac_path_GREP_found && break 3
4337    done
4338  done
4339  done
4340IFS=$as_save_IFS
4341  if test -z "$ac_cv_path_GREP"; then
4342    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4343  fi
4344else
4345  ac_cv_path_GREP=$GREP
4346fi
4347
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4350$as_echo "$ac_cv_path_GREP" >&6; }
4351 GREP="$ac_cv_path_GREP"
4352
4353
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4355$as_echo_n "checking for egrep... " >&6; }
4356if ${ac_cv_path_EGREP+:} false; then :
4357  $as_echo_n "(cached) " >&6
4358else
4359  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4360   then ac_cv_path_EGREP="$GREP -E"
4361   else
4362     if test -z "$EGREP"; then
4363  ac_path_EGREP_found=false
4364  # Loop through the user's path and test for each of PROGNAME-LIST
4365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367do
4368  IFS=$as_save_IFS
4369  test -z "$as_dir" && as_dir=.
4370    for ac_prog in egrep; do
4371    for ac_exec_ext in '' $ac_executable_extensions; do
4372      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4373      as_fn_executable_p "$ac_path_EGREP" || continue
4374# Check for GNU ac_path_EGREP and select it if it is found.
4375  # Check for GNU $ac_path_EGREP
4376case `"$ac_path_EGREP" --version 2>&1` in
4377*GNU*)
4378  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4379*)
4380  ac_count=0
4381  $as_echo_n 0123456789 >"conftest.in"
4382  while :
4383  do
4384    cat "conftest.in" "conftest.in" >"conftest.tmp"
4385    mv "conftest.tmp" "conftest.in"
4386    cp "conftest.in" "conftest.nl"
4387    $as_echo 'EGREP' >> "conftest.nl"
4388    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390    as_fn_arith $ac_count + 1 && ac_count=$as_val
4391    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4392      # Best one so far, save it but keep looking for a better one
4393      ac_cv_path_EGREP="$ac_path_EGREP"
4394      ac_path_EGREP_max=$ac_count
4395    fi
4396    # 10*(2^10) chars as input seems more than enough
4397    test $ac_count -gt 10 && break
4398  done
4399  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400esac
4401
4402      $ac_path_EGREP_found && break 3
4403    done
4404  done
4405  done
4406IFS=$as_save_IFS
4407  if test -z "$ac_cv_path_EGREP"; then
4408    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4409  fi
4410else
4411  ac_cv_path_EGREP=$EGREP
4412fi
4413
4414   fi
4415fi
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4417$as_echo "$ac_cv_path_EGREP" >&6; }
4418 EGREP="$ac_cv_path_EGREP"
4419
4420
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4422$as_echo_n "checking for ANSI C header files... " >&6; }
4423if ${ac_cv_header_stdc+:} false; then :
4424  $as_echo_n "(cached) " >&6
4425else
4426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h.  */
4428#include <stdlib.h>
4429#include <stdarg.h>
4430#include <string.h>
4431#include <float.h>
4432
4433int
4434main ()
4435{
4436
4437  ;
4438  return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"; then :
4442  ac_cv_header_stdc=yes
4443else
4444  ac_cv_header_stdc=no
4445fi
4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447
4448if test $ac_cv_header_stdc = yes; then
4449  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452#include <string.h>
4453
4454_ACEOF
4455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4456  $EGREP "memchr" >/dev/null 2>&1; then :
4457
4458else
4459  ac_cv_header_stdc=no
4460fi
4461rm -f conftest*
4462
4463fi
4464
4465if test $ac_cv_header_stdc = yes; then
4466  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h.  */
4469#include <stdlib.h>
4470
4471_ACEOF
4472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473  $EGREP "free" >/dev/null 2>&1; then :
4474
4475else
4476  ac_cv_header_stdc=no
4477fi
4478rm -f conftest*
4479
4480fi
4481
4482if test $ac_cv_header_stdc = yes; then
4483  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4484  if test "$cross_compiling" = yes; then :
4485  :
4486else
4487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489#include <ctype.h>
4490#include <stdlib.h>
4491#if ((' ' & 0x0FF) == 0x020)
4492# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4493# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4494#else
4495# define ISLOWER(c) \
4496		   (('a' <= (c) && (c) <= 'i') \
4497		     || ('j' <= (c) && (c) <= 'r') \
4498		     || ('s' <= (c) && (c) <= 'z'))
4499# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4500#endif
4501
4502#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4503int
4504main ()
4505{
4506  int i;
4507  for (i = 0; i < 256; i++)
4508    if (XOR (islower (i), ISLOWER (i))
4509	|| toupper (i) != TOUPPER (i))
4510      return 2;
4511  return 0;
4512}
4513_ACEOF
4514if ac_fn_c_try_run "$LINENO"; then :
4515
4516else
4517  ac_cv_header_stdc=no
4518fi
4519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4520  conftest.$ac_objext conftest.beam conftest.$ac_ext
4521fi
4522
4523fi
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4526$as_echo "$ac_cv_header_stdc" >&6; }
4527if test $ac_cv_header_stdc = yes; then
4528
4529$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4530
4531fi
4532
4533# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4534for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535		  inttypes.h stdint.h unistd.h
4536do :
4537  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4538ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4539"
4540if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4541  cat >>confdefs.h <<_ACEOF
4542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543_ACEOF
4544
4545fi
4546
4547done
4548
4549
4550
4551
4552
4553
4554ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4555if test "x$ac_cv_have_decl___clang__" = xyes; then :
4556  CLANGCC="yes"
4557else
4558  CLANGCC="no"
4559fi
4560
4561ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4562if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4563  INTELCC="yes"
4564else
4565  INTELCC="no"
4566fi
4567
4568ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4569if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4570  SUNCC="yes"
4571else
4572  SUNCC="no"
4573fi
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4584	if test -n "$ac_tool_prefix"; then
4585  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4586set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if ${ac_cv_path_PKG_CONFIG+:} false; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  case $PKG_CONFIG in
4593  [\\/]* | ?:[\\/]*)
4594  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4595  ;;
4596  *)
4597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in $PATH
4599do
4600  IFS=$as_save_IFS
4601  test -z "$as_dir" && as_dir=.
4602    for ac_exec_ext in '' $ac_executable_extensions; do
4603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606    break 2
4607  fi
4608done
4609  done
4610IFS=$as_save_IFS
4611
4612  ;;
4613esac
4614fi
4615PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4616if test -n "$PKG_CONFIG"; then
4617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4618$as_echo "$PKG_CONFIG" >&6; }
4619else
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621$as_echo "no" >&6; }
4622fi
4623
4624
4625fi
4626if test -z "$ac_cv_path_PKG_CONFIG"; then
4627  ac_pt_PKG_CONFIG=$PKG_CONFIG
4628  # Extract the first word of "pkg-config", so it can be a program name with args.
4629set dummy pkg-config; ac_word=$2
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631$as_echo_n "checking for $ac_word... " >&6; }
4632if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  case $ac_pt_PKG_CONFIG in
4636  [\\/]* | ?:[\\/]*)
4637  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4638  ;;
4639  *)
4640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643  IFS=$as_save_IFS
4644  test -z "$as_dir" && as_dir=.
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649    break 2
4650  fi
4651done
4652  done
4653IFS=$as_save_IFS
4654
4655  ;;
4656esac
4657fi
4658ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4659if test -n "$ac_pt_PKG_CONFIG"; then
4660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4661$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4662else
4663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665fi
4666
4667  if test "x$ac_pt_PKG_CONFIG" = x; then
4668    PKG_CONFIG=""
4669  else
4670    case $cross_compiling:$ac_tool_warned in
4671yes:)
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4674ac_tool_warned=yes ;;
4675esac
4676    PKG_CONFIG=$ac_pt_PKG_CONFIG
4677  fi
4678else
4679  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4680fi
4681
4682fi
4683if test -n "$PKG_CONFIG"; then
4684	_pkg_min_version=0.9.0
4685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4686$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4687	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4689$as_echo "yes" >&6; }
4690	else
4691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
4693		PKG_CONFIG=""
4694	fi
4695fi
4696# Make sure we can run config.sub.
4697$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4698  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4701$as_echo_n "checking build system type... " >&6; }
4702if ${ac_cv_build+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  ac_build_alias=$build_alias
4706test "x$ac_build_alias" = x &&
4707  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4708test "x$ac_build_alias" = x &&
4709  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4710ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4711  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4715$as_echo "$ac_cv_build" >&6; }
4716case $ac_cv_build in
4717*-*-*) ;;
4718*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4719esac
4720build=$ac_cv_build
4721ac_save_IFS=$IFS; IFS='-'
4722set x $ac_cv_build
4723shift
4724build_cpu=$1
4725build_vendor=$2
4726shift; shift
4727# Remember, the first character of IFS is used to create $*,
4728# except with old shells:
4729build_os=$*
4730IFS=$ac_save_IFS
4731case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4732
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4735$as_echo_n "checking host system type... " >&6; }
4736if ${ac_cv_host+:} false; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  if test "x$host_alias" = x; then
4740  ac_cv_host=$ac_cv_build
4741else
4742  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4743    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4744fi
4745
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4748$as_echo "$ac_cv_host" >&6; }
4749case $ac_cv_host in
4750*-*-*) ;;
4751*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4752esac
4753host=$ac_cv_host
4754ac_save_IFS=$IFS; IFS='-'
4755set x $ac_cv_host
4756shift
4757host_cpu=$1
4758host_vendor=$2
4759shift; shift
4760# Remember, the first character of IFS is used to create $*,
4761# except with old shells:
4762host_os=$*
4763IFS=$ac_save_IFS
4764case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if ${ac_cv_path_SED+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4773     for ac_i in 1 2 3 4 5 6 7; do
4774       ac_script="$ac_script$as_nl$ac_script"
4775     done
4776     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777     { ac_script=; unset ac_script;}
4778     if test -z "$SED"; then
4779  ac_path_SED_found=false
4780  # Loop through the user's path and test for each of PROGNAME-LIST
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_prog in sed gsed; do
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4789      as_fn_executable_p "$ac_path_SED" || continue
4790# Check for GNU ac_path_SED and select it if it is found.
4791  # Check for GNU $ac_path_SED
4792case `"$ac_path_SED" --version 2>&1` in
4793*GNU*)
4794  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4795*)
4796  ac_count=0
4797  $as_echo_n 0123456789 >"conftest.in"
4798  while :
4799  do
4800    cat "conftest.in" "conftest.in" >"conftest.tmp"
4801    mv "conftest.tmp" "conftest.in"
4802    cp "conftest.in" "conftest.nl"
4803    $as_echo '' >> "conftest.nl"
4804    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806    as_fn_arith $ac_count + 1 && ac_count=$as_val
4807    if test $ac_count -gt ${ac_path_SED_max-0}; then
4808      # Best one so far, save it but keep looking for a better one
4809      ac_cv_path_SED="$ac_path_SED"
4810      ac_path_SED_max=$ac_count
4811    fi
4812    # 10*(2^10) chars as input seems more than enough
4813    test $ac_count -gt 10 && break
4814  done
4815  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816esac
4817
4818      $ac_path_SED_found && break 3
4819    done
4820  done
4821  done
4822IFS=$as_save_IFS
4823  if test -z "$ac_cv_path_SED"; then
4824    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4825  fi
4826else
4827  ac_cv_path_SED=$SED
4828fi
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4832$as_echo "$ac_cv_path_SED" >&6; }
4833 SED="$ac_cv_path_SED"
4834  rm -f conftest.sed
4835
4836
4837
4838
4839
4840
4841# Check whether --enable-selective-werror was given.
4842if test "${enable_selective_werror+set}" = set; then :
4843  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4844else
4845  SELECTIVE_WERROR=yes
4846fi
4847
4848
4849
4850
4851
4852# -v is too short to test reliably with XORG_TESTSET_CFLAG
4853if test "x$SUNCC" = "xyes"; then
4854    BASE_CFLAGS="-v"
4855else
4856    BASE_CFLAGS=""
4857fi
4858
4859# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873xorg_testset_save_CFLAGS="$CFLAGS"
4874
4875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h.  */
4884int i;
4885_ACEOF
4886if ac_fn_c_try_compile "$LINENO"; then :
4887  xorg_cv_cc_flag_unknown_warning_option=yes
4888else
4889  xorg_cv_cc_flag_unknown_warning_option=no
4890fi
4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4896	CFLAGS="$xorg_testset_save_CFLAGS"
4897fi
4898
4899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4902	fi
4903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911int i;
4912_ACEOF
4913if ac_fn_c_try_compile "$LINENO"; then :
4914  xorg_cv_cc_flag_unused_command_line_argument=yes
4915else
4916  xorg_cv_cc_flag_unused_command_line_argument=no
4917fi
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919fi
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4922	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4923	CFLAGS="$xorg_testset_save_CFLAGS"
4924fi
4925
4926found="no"
4927
4928	if test $found = "no" ; then
4929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931		fi
4932
4933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935		fi
4936
4937		CFLAGS="$CFLAGS -Wall"
4938
4939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4940$as_echo_n "checking if $CC supports -Wall... " >&6; }
4941		cacheid=xorg_cv_cc_flag__Wall
4942		if eval \${$cacheid+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946/* end confdefs.h.  */
4947int i;
4948int
4949main ()
4950{
4951
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956if ac_fn_c_try_link "$LINENO"; then :
4957  eval $cacheid=yes
4958else
4959  eval $cacheid=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext \
4962    conftest$ac_exeext conftest.$ac_ext
4963fi
4964
4965
4966		CFLAGS="$xorg_testset_save_CFLAGS"
4967
4968		eval supported=\$$cacheid
4969		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4970$as_echo "$supported" >&6; }
4971		if test "$supported" = "yes" ; then
4972			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4973			found="yes"
4974		fi
4975	fi
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991xorg_testset_save_CFLAGS="$CFLAGS"
4992
4993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h.  */
5002int i;
5003_ACEOF
5004if ac_fn_c_try_compile "$LINENO"; then :
5005  xorg_cv_cc_flag_unknown_warning_option=yes
5006else
5007  xorg_cv_cc_flag_unknown_warning_option=no
5008fi
5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5014	CFLAGS="$xorg_testset_save_CFLAGS"
5015fi
5016
5017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020	fi
5021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029int i;
5030_ACEOF
5031if ac_fn_c_try_compile "$LINENO"; then :
5032  xorg_cv_cc_flag_unused_command_line_argument=yes
5033else
5034  xorg_cv_cc_flag_unused_command_line_argument=no
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5040	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5041	CFLAGS="$xorg_testset_save_CFLAGS"
5042fi
5043
5044found="no"
5045
5046	if test $found = "no" ; then
5047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049		fi
5050
5051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053		fi
5054
5055		CFLAGS="$CFLAGS -Wpointer-arith"
5056
5057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5058$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5059		cacheid=xorg_cv_cc_flag__Wpointer_arith
5060		if eval \${$cacheid+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066int
5067main ()
5068{
5069
5070  ;
5071  return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_link "$LINENO"; then :
5075  eval $cacheid=yes
5076else
5077  eval $cacheid=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext \
5080    conftest$ac_exeext conftest.$ac_ext
5081fi
5082
5083
5084		CFLAGS="$xorg_testset_save_CFLAGS"
5085
5086		eval supported=\$$cacheid
5087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5088$as_echo "$supported" >&6; }
5089		if test "$supported" = "yes" ; then
5090			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5091			found="yes"
5092		fi
5093	fi
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109xorg_testset_save_CFLAGS="$CFLAGS"
5110
5111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h.  */
5120int i;
5121_ACEOF
5122if ac_fn_c_try_compile "$LINENO"; then :
5123  xorg_cv_cc_flag_unknown_warning_option=yes
5124else
5125  xorg_cv_cc_flag_unknown_warning_option=no
5126fi
5127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5132	CFLAGS="$xorg_testset_save_CFLAGS"
5133fi
5134
5135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138	fi
5139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147int i;
5148_ACEOF
5149if ac_fn_c_try_compile "$LINENO"; then :
5150  xorg_cv_cc_flag_unused_command_line_argument=yes
5151else
5152  xorg_cv_cc_flag_unused_command_line_argument=no
5153fi
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5159	CFLAGS="$xorg_testset_save_CFLAGS"
5160fi
5161
5162found="no"
5163
5164	if test $found = "no" ; then
5165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167		fi
5168
5169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171		fi
5172
5173		CFLAGS="$CFLAGS -Wmissing-declarations"
5174
5175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5176$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5177		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5178		if eval \${$cacheid+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183int i;
5184int
5185main ()
5186{
5187
5188  ;
5189  return 0;
5190}
5191_ACEOF
5192if ac_fn_c_try_link "$LINENO"; then :
5193  eval $cacheid=yes
5194else
5195  eval $cacheid=no
5196fi
5197rm -f core conftest.err conftest.$ac_objext \
5198    conftest$ac_exeext conftest.$ac_ext
5199fi
5200
5201
5202		CFLAGS="$xorg_testset_save_CFLAGS"
5203
5204		eval supported=\$$cacheid
5205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5206$as_echo "$supported" >&6; }
5207		if test "$supported" = "yes" ; then
5208			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5209			found="yes"
5210		fi
5211	fi
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227xorg_testset_save_CFLAGS="$CFLAGS"
5228
5229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237/* end confdefs.h.  */
5238int i;
5239_ACEOF
5240if ac_fn_c_try_compile "$LINENO"; then :
5241  xorg_cv_cc_flag_unknown_warning_option=yes
5242else
5243  xorg_cv_cc_flag_unknown_warning_option=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5250	CFLAGS="$xorg_testset_save_CFLAGS"
5251fi
5252
5253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256	fi
5257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265int i;
5266_ACEOF
5267if ac_fn_c_try_compile "$LINENO"; then :
5268  xorg_cv_cc_flag_unused_command_line_argument=yes
5269else
5270  xorg_cv_cc_flag_unused_command_line_argument=no
5271fi
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5276	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5277	CFLAGS="$xorg_testset_save_CFLAGS"
5278fi
5279
5280found="no"
5281
5282	if test $found = "no" ; then
5283		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5284			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5285		fi
5286
5287		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5288			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5289		fi
5290
5291		CFLAGS="$CFLAGS -Wformat=2"
5292
5293		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5294$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5295		cacheid=xorg_cv_cc_flag__Wformat_2
5296		if eval \${$cacheid+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301int i;
5302int
5303main ()
5304{
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_link "$LINENO"; then :
5311  eval $cacheid=yes
5312else
5313  eval $cacheid=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext \
5316    conftest$ac_exeext conftest.$ac_ext
5317fi
5318
5319
5320		CFLAGS="$xorg_testset_save_CFLAGS"
5321
5322		eval supported=\$$cacheid
5323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5324$as_echo "$supported" >&6; }
5325		if test "$supported" = "yes" ; then
5326			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5327			found="yes"
5328		fi
5329	fi
5330
5331	if test $found = "no" ; then
5332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334		fi
5335
5336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338		fi
5339
5340		CFLAGS="$CFLAGS -Wformat"
5341
5342		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5343$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5344		cacheid=xorg_cv_cc_flag__Wformat
5345		if eval \${$cacheid+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351int
5352main ()
5353{
5354
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_link "$LINENO"; then :
5360  eval $cacheid=yes
5361else
5362  eval $cacheid=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext \
5365    conftest$ac_exeext conftest.$ac_ext
5366fi
5367
5368
5369		CFLAGS="$xorg_testset_save_CFLAGS"
5370
5371		eval supported=\$$cacheid
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5373$as_echo "$supported" >&6; }
5374		if test "$supported" = "yes" ; then
5375			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5376			found="yes"
5377		fi
5378	fi
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396xorg_testset_save_CFLAGS="$CFLAGS"
5397
5398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"; then :
5410  xorg_cv_cc_flag_unknown_warning_option=yes
5411else
5412  xorg_cv_cc_flag_unknown_warning_option=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	fi
5426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434int i;
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437  xorg_cv_cc_flag_unused_command_line_argument=yes
5438else
5439  xorg_cv_cc_flag_unused_command_line_argument=no
5440fi
5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5446	CFLAGS="$xorg_testset_save_CFLAGS"
5447fi
5448
5449found="no"
5450
5451	if test $found = "no" ; then
5452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454		fi
5455
5456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458		fi
5459
5460		CFLAGS="$CFLAGS -Wstrict-prototypes"
5461
5462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5463$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5464		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5465		if eval \${$cacheid+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471int
5472main ()
5473{
5474
5475  ;
5476  return 0;
5477}
5478_ACEOF
5479if ac_fn_c_try_link "$LINENO"; then :
5480  eval $cacheid=yes
5481else
5482  eval $cacheid=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext \
5485    conftest$ac_exeext conftest.$ac_ext
5486fi
5487
5488
5489		CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491		eval supported=\$$cacheid
5492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493$as_echo "$supported" >&6; }
5494		if test "$supported" = "yes" ; then
5495			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5496			found="yes"
5497		fi
5498	fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514xorg_testset_save_CFLAGS="$CFLAGS"
5515
5516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525int i;
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528  xorg_cv_cc_flag_unknown_warning_option=yes
5529else
5530  xorg_cv_cc_flag_unknown_warning_option=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5537	CFLAGS="$xorg_testset_save_CFLAGS"
5538fi
5539
5540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	fi
5544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552int i;
5553_ACEOF
5554if ac_fn_c_try_compile "$LINENO"; then :
5555  xorg_cv_cc_flag_unused_command_line_argument=yes
5556else
5557  xorg_cv_cc_flag_unused_command_line_argument=no
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5564	CFLAGS="$xorg_testset_save_CFLAGS"
5565fi
5566
5567found="no"
5568
5569	if test $found = "no" ; then
5570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572		fi
5573
5574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576		fi
5577
5578		CFLAGS="$CFLAGS -Wmissing-prototypes"
5579
5580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5581$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5582		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5583		if eval \${$cacheid+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589int
5590main ()
5591{
5592
5593  ;
5594  return 0;
5595}
5596_ACEOF
5597if ac_fn_c_try_link "$LINENO"; then :
5598  eval $cacheid=yes
5599else
5600  eval $cacheid=no
5601fi
5602rm -f core conftest.err conftest.$ac_objext \
5603    conftest$ac_exeext conftest.$ac_ext
5604fi
5605
5606
5607		CFLAGS="$xorg_testset_save_CFLAGS"
5608
5609		eval supported=\$$cacheid
5610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5611$as_echo "$supported" >&6; }
5612		if test "$supported" = "yes" ; then
5613			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5614			found="yes"
5615		fi
5616	fi
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632xorg_testset_save_CFLAGS="$CFLAGS"
5633
5634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642/* end confdefs.h.  */
5643int i;
5644_ACEOF
5645if ac_fn_c_try_compile "$LINENO"; then :
5646  xorg_cv_cc_flag_unknown_warning_option=yes
5647else
5648  xorg_cv_cc_flag_unknown_warning_option=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	fi
5662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h.  */
5670int i;
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"; then :
5673  xorg_cv_cc_flag_unused_command_line_argument=yes
5674else
5675  xorg_cv_cc_flag_unused_command_line_argument=no
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5682	CFLAGS="$xorg_testset_save_CFLAGS"
5683fi
5684
5685found="no"
5686
5687	if test $found = "no" ; then
5688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690		fi
5691
5692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5694		fi
5695
5696		CFLAGS="$CFLAGS -Wnested-externs"
5697
5698		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5699$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5700		cacheid=xorg_cv_cc_flag__Wnested_externs
5701		if eval \${$cacheid+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h.  */
5706int i;
5707int
5708main ()
5709{
5710
5711  ;
5712  return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_link "$LINENO"; then :
5716  eval $cacheid=yes
5717else
5718  eval $cacheid=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext \
5721    conftest$ac_exeext conftest.$ac_ext
5722fi
5723
5724
5725		CFLAGS="$xorg_testset_save_CFLAGS"
5726
5727		eval supported=\$$cacheid
5728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5729$as_echo "$supported" >&6; }
5730		if test "$supported" = "yes" ; then
5731			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5732			found="yes"
5733		fi
5734	fi
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750xorg_testset_save_CFLAGS="$CFLAGS"
5751
5752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761int i;
5762_ACEOF
5763if ac_fn_c_try_compile "$LINENO"; then :
5764  xorg_cv_cc_flag_unknown_warning_option=yes
5765else
5766  xorg_cv_cc_flag_unknown_warning_option=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	fi
5780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788int i;
5789_ACEOF
5790if ac_fn_c_try_compile "$LINENO"; then :
5791  xorg_cv_cc_flag_unused_command_line_argument=yes
5792else
5793  xorg_cv_cc_flag_unused_command_line_argument=no
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5800	CFLAGS="$xorg_testset_save_CFLAGS"
5801fi
5802
5803found="no"
5804
5805	if test $found = "no" ; then
5806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808		fi
5809
5810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812		fi
5813
5814		CFLAGS="$CFLAGS -Wbad-function-cast"
5815
5816		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5817$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5818		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5819		if eval \${$cacheid+:} false; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824int i;
5825int
5826main ()
5827{
5828
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833if ac_fn_c_try_link "$LINENO"; then :
5834  eval $cacheid=yes
5835else
5836  eval $cacheid=no
5837fi
5838rm -f core conftest.err conftest.$ac_objext \
5839    conftest$ac_exeext conftest.$ac_ext
5840fi
5841
5842
5843		CFLAGS="$xorg_testset_save_CFLAGS"
5844
5845		eval supported=\$$cacheid
5846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847$as_echo "$supported" >&6; }
5848		if test "$supported" = "yes" ; then
5849			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5850			found="yes"
5851		fi
5852	fi
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868xorg_testset_save_CFLAGS="$CFLAGS"
5869
5870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879int i;
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"; then :
5882  xorg_cv_cc_flag_unknown_warning_option=yes
5883else
5884  xorg_cv_cc_flag_unknown_warning_option=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5891	CFLAGS="$xorg_testset_save_CFLAGS"
5892fi
5893
5894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897	fi
5898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h.  */
5906int i;
5907_ACEOF
5908if ac_fn_c_try_compile "$LINENO"; then :
5909  xorg_cv_cc_flag_unused_command_line_argument=yes
5910else
5911  xorg_cv_cc_flag_unused_command_line_argument=no
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5918	CFLAGS="$xorg_testset_save_CFLAGS"
5919fi
5920
5921found="no"
5922
5923	if test $found = "no" ; then
5924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926		fi
5927
5928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930		fi
5931
5932		CFLAGS="$CFLAGS -Wold-style-definition"
5933
5934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5935$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5936		cacheid=xorg_cv_cc_flag__Wold_style_definition
5937		if eval \${$cacheid+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942int i;
5943int
5944main ()
5945{
5946
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"; then :
5952  eval $cacheid=yes
5953else
5954  eval $cacheid=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957    conftest$ac_exeext conftest.$ac_ext
5958fi
5959
5960
5961		CFLAGS="$xorg_testset_save_CFLAGS"
5962
5963		eval supported=\$$cacheid
5964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965$as_echo "$supported" >&6; }
5966		if test "$supported" = "yes" ; then
5967			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5968			found="yes"
5969		fi
5970	fi
5971
5972	if test $found = "no" ; then
5973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975		fi
5976
5977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979		fi
5980
5981		CFLAGS="$CFLAGS -fd"
5982
5983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5984$as_echo_n "checking if $CC supports -fd... " >&6; }
5985		cacheid=xorg_cv_cc_flag__fd
5986		if eval \${$cacheid+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991int i;
5992int
5993main ()
5994{
5995
5996  ;
5997  return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_link "$LINENO"; then :
6001  eval $cacheid=yes
6002else
6003  eval $cacheid=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext \
6006    conftest$ac_exeext conftest.$ac_ext
6007fi
6008
6009
6010		CFLAGS="$xorg_testset_save_CFLAGS"
6011
6012		eval supported=\$$cacheid
6013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6014$as_echo "$supported" >&6; }
6015		if test "$supported" = "yes" ; then
6016			BASE_CFLAGS="$BASE_CFLAGS -fd"
6017			found="yes"
6018		fi
6019	fi
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035xorg_testset_save_CFLAGS="$CFLAGS"
6036
6037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046int i;
6047_ACEOF
6048if ac_fn_c_try_compile "$LINENO"; then :
6049  xorg_cv_cc_flag_unknown_warning_option=yes
6050else
6051  xorg_cv_cc_flag_unknown_warning_option=no
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6058	CFLAGS="$xorg_testset_save_CFLAGS"
6059fi
6060
6061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064	fi
6065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h.  */
6073int i;
6074_ACEOF
6075if ac_fn_c_try_compile "$LINENO"; then :
6076  xorg_cv_cc_flag_unused_command_line_argument=yes
6077else
6078  xorg_cv_cc_flag_unused_command_line_argument=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085	CFLAGS="$xorg_testset_save_CFLAGS"
6086fi
6087
6088found="no"
6089
6090	if test $found = "no" ; then
6091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093		fi
6094
6095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097		fi
6098
6099		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6100
6101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6102$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6103		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6104		if eval \${$cacheid+:} false; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110int
6111main ()
6112{
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118if ac_fn_c_try_link "$LINENO"; then :
6119  eval $cacheid=yes
6120else
6121  eval $cacheid=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext \
6124    conftest$ac_exeext conftest.$ac_ext
6125fi
6126
6127
6128		CFLAGS="$xorg_testset_save_CFLAGS"
6129
6130		eval supported=\$$cacheid
6131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132$as_echo "$supported" >&6; }
6133		if test "$supported" = "yes" ; then
6134			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6135			found="yes"
6136		fi
6137	fi
6138
6139
6140
6141
6142
6143# This chunk adds additional warnings that could catch undesired effects.
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157xorg_testset_save_CFLAGS="$CFLAGS"
6158
6159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168int i;
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171  xorg_cv_cc_flag_unknown_warning_option=yes
6172else
6173  xorg_cv_cc_flag_unknown_warning_option=no
6174fi
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176fi
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6180	CFLAGS="$xorg_testset_save_CFLAGS"
6181fi
6182
6183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186	fi
6187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"; then :
6198  xorg_cv_cc_flag_unused_command_line_argument=yes
6199else
6200  xorg_cv_cc_flag_unused_command_line_argument=no
6201fi
6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6207	CFLAGS="$xorg_testset_save_CFLAGS"
6208fi
6209
6210found="no"
6211
6212	if test $found = "no" ; then
6213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215		fi
6216
6217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219		fi
6220
6221		CFLAGS="$CFLAGS -Wunused"
6222
6223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6224$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6225		cacheid=xorg_cv_cc_flag__Wunused
6226		if eval \${$cacheid+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h.  */
6231int i;
6232int
6233main ()
6234{
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_link "$LINENO"; then :
6241  eval $cacheid=yes
6242else
6243  eval $cacheid=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext \
6246    conftest$ac_exeext conftest.$ac_ext
6247fi
6248
6249
6250		CFLAGS="$xorg_testset_save_CFLAGS"
6251
6252		eval supported=\$$cacheid
6253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6254$as_echo "$supported" >&6; }
6255		if test "$supported" = "yes" ; then
6256			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6257			found="yes"
6258		fi
6259	fi
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275xorg_testset_save_CFLAGS="$CFLAGS"
6276
6277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285/* end confdefs.h.  */
6286int i;
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289  xorg_cv_cc_flag_unknown_warning_option=yes
6290else
6291  xorg_cv_cc_flag_unknown_warning_option=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298	CFLAGS="$xorg_testset_save_CFLAGS"
6299fi
6300
6301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	fi
6305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h.  */
6313int i;
6314_ACEOF
6315if ac_fn_c_try_compile "$LINENO"; then :
6316  xorg_cv_cc_flag_unused_command_line_argument=yes
6317else
6318  xorg_cv_cc_flag_unused_command_line_argument=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325	CFLAGS="$xorg_testset_save_CFLAGS"
6326fi
6327
6328found="no"
6329
6330	if test $found = "no" ; then
6331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333		fi
6334
6335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337		fi
6338
6339		CFLAGS="$CFLAGS -Wuninitialized"
6340
6341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6342$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6343		cacheid=xorg_cv_cc_flag__Wuninitialized
6344		if eval \${$cacheid+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h.  */
6349int i;
6350int
6351main ()
6352{
6353
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358if ac_fn_c_try_link "$LINENO"; then :
6359  eval $cacheid=yes
6360else
6361  eval $cacheid=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext \
6364    conftest$ac_exeext conftest.$ac_ext
6365fi
6366
6367
6368		CFLAGS="$xorg_testset_save_CFLAGS"
6369
6370		eval supported=\$$cacheid
6371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372$as_echo "$supported" >&6; }
6373		if test "$supported" = "yes" ; then
6374			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6375			found="yes"
6376		fi
6377	fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393xorg_testset_save_CFLAGS="$CFLAGS"
6394
6395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6400  $as_echo_n "(cached) " >&6
6401else
6402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h.  */
6404int i;
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407  xorg_cv_cc_flag_unknown_warning_option=yes
6408else
6409  xorg_cv_cc_flag_unknown_warning_option=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6416	CFLAGS="$xorg_testset_save_CFLAGS"
6417fi
6418
6419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	fi
6423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"; then :
6434  xorg_cv_cc_flag_unused_command_line_argument=yes
6435else
6436  xorg_cv_cc_flag_unused_command_line_argument=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6443	CFLAGS="$xorg_testset_save_CFLAGS"
6444fi
6445
6446found="no"
6447
6448	if test $found = "no" ; then
6449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451		fi
6452
6453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455		fi
6456
6457		CFLAGS="$CFLAGS -Wshadow"
6458
6459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6460$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6461		cacheid=xorg_cv_cc_flag__Wshadow
6462		if eval \${$cacheid+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467int i;
6468int
6469main ()
6470{
6471
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476if ac_fn_c_try_link "$LINENO"; then :
6477  eval $cacheid=yes
6478else
6479  eval $cacheid=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext \
6482    conftest$ac_exeext conftest.$ac_ext
6483fi
6484
6485
6486		CFLAGS="$xorg_testset_save_CFLAGS"
6487
6488		eval supported=\$$cacheid
6489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6490$as_echo "$supported" >&6; }
6491		if test "$supported" = "yes" ; then
6492			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6493			found="yes"
6494		fi
6495	fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511xorg_testset_save_CFLAGS="$CFLAGS"
6512
6513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522int i;
6523_ACEOF
6524if ac_fn_c_try_compile "$LINENO"; then :
6525  xorg_cv_cc_flag_unknown_warning_option=yes
6526else
6527  xorg_cv_cc_flag_unknown_warning_option=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530fi
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6534	CFLAGS="$xorg_testset_save_CFLAGS"
6535fi
6536
6537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	fi
6541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549int i;
6550_ACEOF
6551if ac_fn_c_try_compile "$LINENO"; then :
6552  xorg_cv_cc_flag_unused_command_line_argument=yes
6553else
6554  xorg_cv_cc_flag_unused_command_line_argument=no
6555fi
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6561	CFLAGS="$xorg_testset_save_CFLAGS"
6562fi
6563
6564found="no"
6565
6566	if test $found = "no" ; then
6567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569		fi
6570
6571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573		fi
6574
6575		CFLAGS="$CFLAGS -Wmissing-noreturn"
6576
6577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6578$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6579		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6580		if eval \${$cacheid+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585int i;
6586int
6587main ()
6588{
6589
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594if ac_fn_c_try_link "$LINENO"; then :
6595  eval $cacheid=yes
6596else
6597  eval $cacheid=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext \
6600    conftest$ac_exeext conftest.$ac_ext
6601fi
6602
6603
6604		CFLAGS="$xorg_testset_save_CFLAGS"
6605
6606		eval supported=\$$cacheid
6607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6608$as_echo "$supported" >&6; }
6609		if test "$supported" = "yes" ; then
6610			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6611			found="yes"
6612		fi
6613	fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629xorg_testset_save_CFLAGS="$CFLAGS"
6630
6631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640int i;
6641_ACEOF
6642if ac_fn_c_try_compile "$LINENO"; then :
6643  xorg_cv_cc_flag_unknown_warning_option=yes
6644else
6645  xorg_cv_cc_flag_unknown_warning_option=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6652	CFLAGS="$xorg_testset_save_CFLAGS"
6653fi
6654
6655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658	fi
6659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667int i;
6668_ACEOF
6669if ac_fn_c_try_compile "$LINENO"; then :
6670  xorg_cv_cc_flag_unused_command_line_argument=yes
6671else
6672  xorg_cv_cc_flag_unused_command_line_argument=no
6673fi
6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6679	CFLAGS="$xorg_testset_save_CFLAGS"
6680fi
6681
6682found="no"
6683
6684	if test $found = "no" ; then
6685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687		fi
6688
6689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691		fi
6692
6693		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6694
6695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6696$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6697		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6698		if eval \${$cacheid+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h.  */
6703int i;
6704int
6705main ()
6706{
6707
6708  ;
6709  return 0;
6710}
6711_ACEOF
6712if ac_fn_c_try_link "$LINENO"; then :
6713  eval $cacheid=yes
6714else
6715  eval $cacheid=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext \
6718    conftest$ac_exeext conftest.$ac_ext
6719fi
6720
6721
6722		CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724		eval supported=\$$cacheid
6725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726$as_echo "$supported" >&6; }
6727		if test "$supported" = "yes" ; then
6728			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6729			found="yes"
6730		fi
6731	fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758int i;
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"; then :
6761  xorg_cv_cc_flag_unknown_warning_option=yes
6762else
6763  xorg_cv_cc_flag_unknown_warning_option=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6770	CFLAGS="$xorg_testset_save_CFLAGS"
6771fi
6772
6773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	fi
6777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int i;
6786_ACEOF
6787if ac_fn_c_try_compile "$LINENO"; then :
6788  xorg_cv_cc_flag_unused_command_line_argument=yes
6789else
6790  xorg_cv_cc_flag_unused_command_line_argument=no
6791fi
6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6797	CFLAGS="$xorg_testset_save_CFLAGS"
6798fi
6799
6800found="no"
6801
6802	if test $found = "no" ; then
6803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805		fi
6806
6807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809		fi
6810
6811		CFLAGS="$CFLAGS -Wredundant-decls"
6812
6813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6814$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6815		cacheid=xorg_cv_cc_flag__Wredundant_decls
6816		if eval \${$cacheid+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h.  */
6821int i;
6822int
6823main ()
6824{
6825
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830if ac_fn_c_try_link "$LINENO"; then :
6831  eval $cacheid=yes
6832else
6833  eval $cacheid=no
6834fi
6835rm -f core conftest.err conftest.$ac_objext \
6836    conftest$ac_exeext conftest.$ac_ext
6837fi
6838
6839
6840		CFLAGS="$xorg_testset_save_CFLAGS"
6841
6842		eval supported=\$$cacheid
6843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6844$as_echo "$supported" >&6; }
6845		if test "$supported" = "yes" ; then
6846			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6847			found="yes"
6848		fi
6849	fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865xorg_testset_save_CFLAGS="$CFLAGS"
6866
6867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876int i;
6877_ACEOF
6878if ac_fn_c_try_compile "$LINENO"; then :
6879  xorg_cv_cc_flag_unknown_warning_option=yes
6880else
6881  xorg_cv_cc_flag_unknown_warning_option=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6888	CFLAGS="$xorg_testset_save_CFLAGS"
6889fi
6890
6891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	fi
6895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903int i;
6904_ACEOF
6905if ac_fn_c_try_compile "$LINENO"; then :
6906  xorg_cv_cc_flag_unused_command_line_argument=yes
6907else
6908  xorg_cv_cc_flag_unused_command_line_argument=no
6909fi
6910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911fi
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6915	CFLAGS="$xorg_testset_save_CFLAGS"
6916fi
6917
6918found="no"
6919
6920	if test $found = "no" ; then
6921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923		fi
6924
6925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927		fi
6928
6929		CFLAGS="$CFLAGS -Wlogical-op"
6930
6931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6932$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6933		cacheid=xorg_cv_cc_flag__Wlogical_op
6934		if eval \${$cacheid+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939int i;
6940int
6941main ()
6942{
6943
6944  ;
6945  return 0;
6946}
6947_ACEOF
6948if ac_fn_c_try_link "$LINENO"; then :
6949  eval $cacheid=yes
6950else
6951  eval $cacheid=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext \
6954    conftest$ac_exeext conftest.$ac_ext
6955fi
6956
6957
6958		CFLAGS="$xorg_testset_save_CFLAGS"
6959
6960		eval supported=\$$cacheid
6961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6962$as_echo "$supported" >&6; }
6963		if test "$supported" = "yes" ; then
6964			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6965			found="yes"
6966		fi
6967	fi
6968
6969
6970
6971# These are currently disabled because they are noisy.  They will be enabled
6972# in the future once the codebase is sufficiently modernized to silence
6973# them.  For now, I don't want them to drown out the other warnings.
6974# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6975# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6976# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6977
6978# Turn some warnings into errors, so we don't accidently get successful builds
6979# when there are problems that should be fixed.
6980
6981if test "x$SELECTIVE_WERROR" = "xyes" ; then
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7002  $as_echo_n "(cached) " >&6
7003else
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"; then :
7009  xorg_cv_cc_flag_unknown_warning_option=yes
7010else
7011  xorg_cv_cc_flag_unknown_warning_option=no
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7018	CFLAGS="$xorg_testset_save_CFLAGS"
7019fi
7020
7021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024	fi
7025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h.  */
7033int i;
7034_ACEOF
7035if ac_fn_c_try_compile "$LINENO"; then :
7036  xorg_cv_cc_flag_unused_command_line_argument=yes
7037else
7038  xorg_cv_cc_flag_unused_command_line_argument=no
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7045	CFLAGS="$xorg_testset_save_CFLAGS"
7046fi
7047
7048found="no"
7049
7050	if test $found = "no" ; then
7051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053		fi
7054
7055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057		fi
7058
7059		CFLAGS="$CFLAGS -Werror=implicit"
7060
7061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7062$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7063		cacheid=xorg_cv_cc_flag__Werror_implicit
7064		if eval \${$cacheid+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070int
7071main ()
7072{
7073
7074  ;
7075  return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_link "$LINENO"; then :
7079  eval $cacheid=yes
7080else
7081  eval $cacheid=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext \
7084    conftest$ac_exeext conftest.$ac_ext
7085fi
7086
7087
7088		CFLAGS="$xorg_testset_save_CFLAGS"
7089
7090		eval supported=\$$cacheid
7091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7092$as_echo "$supported" >&6; }
7093		if test "$supported" = "yes" ; then
7094			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7095			found="yes"
7096		fi
7097	fi
7098
7099	if test $found = "no" ; then
7100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102		fi
7103
7104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106		fi
7107
7108		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7109
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7111$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7112		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7113		if eval \${$cacheid+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118int i;
7119int
7120main ()
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"; then :
7128  eval $cacheid=yes
7129else
7130  eval $cacheid=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134fi
7135
7136
7137		CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139		eval supported=\$$cacheid
7140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141$as_echo "$supported" >&6; }
7142		if test "$supported" = "yes" ; then
7143			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7144			found="yes"
7145		fi
7146	fi
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162xorg_testset_save_CFLAGS="$CFLAGS"
7163
7164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173int i;
7174_ACEOF
7175if ac_fn_c_try_compile "$LINENO"; then :
7176  xorg_cv_cc_flag_unknown_warning_option=yes
7177else
7178  xorg_cv_cc_flag_unknown_warning_option=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7185	CFLAGS="$xorg_testset_save_CFLAGS"
7186fi
7187
7188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191	fi
7192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201_ACEOF
7202if ac_fn_c_try_compile "$LINENO"; then :
7203  xorg_cv_cc_flag_unused_command_line_argument=yes
7204else
7205  xorg_cv_cc_flag_unused_command_line_argument=no
7206fi
7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208fi
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7212	CFLAGS="$xorg_testset_save_CFLAGS"
7213fi
7214
7215found="no"
7216
7217	if test $found = "no" ; then
7218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220		fi
7221
7222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224		fi
7225
7226		CFLAGS="$CFLAGS -Werror=nonnull"
7227
7228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7229$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7230		cacheid=xorg_cv_cc_flag__Werror_nonnull
7231		if eval \${$cacheid+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237int
7238main ()
7239{
7240
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245if ac_fn_c_try_link "$LINENO"; then :
7246  eval $cacheid=yes
7247else
7248  eval $cacheid=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext \
7251    conftest$ac_exeext conftest.$ac_ext
7252fi
7253
7254
7255		CFLAGS="$xorg_testset_save_CFLAGS"
7256
7257		eval supported=\$$cacheid
7258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7259$as_echo "$supported" >&6; }
7260		if test "$supported" = "yes" ; then
7261			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7262			found="yes"
7263		fi
7264	fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280xorg_testset_save_CFLAGS="$CFLAGS"
7281
7282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291int i;
7292_ACEOF
7293if ac_fn_c_try_compile "$LINENO"; then :
7294  xorg_cv_cc_flag_unknown_warning_option=yes
7295else
7296  xorg_cv_cc_flag_unknown_warning_option=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7303	CFLAGS="$xorg_testset_save_CFLAGS"
7304fi
7305
7306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	fi
7310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319_ACEOF
7320if ac_fn_c_try_compile "$LINENO"; then :
7321  xorg_cv_cc_flag_unused_command_line_argument=yes
7322else
7323  xorg_cv_cc_flag_unused_command_line_argument=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326fi
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7330	CFLAGS="$xorg_testset_save_CFLAGS"
7331fi
7332
7333found="no"
7334
7335	if test $found = "no" ; then
7336		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338		fi
7339
7340		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342		fi
7343
7344		CFLAGS="$CFLAGS -Werror=init-self"
7345
7346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7347$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7348		cacheid=xorg_cv_cc_flag__Werror_init_self
7349		if eval \${$cacheid+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h.  */
7354int i;
7355int
7356main ()
7357{
7358
7359  ;
7360  return 0;
7361}
7362_ACEOF
7363if ac_fn_c_try_link "$LINENO"; then :
7364  eval $cacheid=yes
7365else
7366  eval $cacheid=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext \
7369    conftest$ac_exeext conftest.$ac_ext
7370fi
7371
7372
7373		CFLAGS="$xorg_testset_save_CFLAGS"
7374
7375		eval supported=\$$cacheid
7376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7377$as_echo "$supported" >&6; }
7378		if test "$supported" = "yes" ; then
7379			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7380			found="yes"
7381		fi
7382	fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"; then :
7412  xorg_cv_cc_flag_unknown_warning_option=yes
7413else
7414  xorg_cv_cc_flag_unknown_warning_option=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7421	CFLAGS="$xorg_testset_save_CFLAGS"
7422fi
7423
7424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	fi
7428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436int i;
7437_ACEOF
7438if ac_fn_c_try_compile "$LINENO"; then :
7439  xorg_cv_cc_flag_unused_command_line_argument=yes
7440else
7441  xorg_cv_cc_flag_unused_command_line_argument=no
7442fi
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7448	CFLAGS="$xorg_testset_save_CFLAGS"
7449fi
7450
7451found="no"
7452
7453	if test $found = "no" ; then
7454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456		fi
7457
7458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7460		fi
7461
7462		CFLAGS="$CFLAGS -Werror=main"
7463
7464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7465$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7466		cacheid=xorg_cv_cc_flag__Werror_main
7467		if eval \${$cacheid+:} false; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h.  */
7472int i;
7473int
7474main ()
7475{
7476
7477  ;
7478  return 0;
7479}
7480_ACEOF
7481if ac_fn_c_try_link "$LINENO"; then :
7482  eval $cacheid=yes
7483else
7484  eval $cacheid=no
7485fi
7486rm -f core conftest.err conftest.$ac_objext \
7487    conftest$ac_exeext conftest.$ac_ext
7488fi
7489
7490
7491		CFLAGS="$xorg_testset_save_CFLAGS"
7492
7493		eval supported=\$$cacheid
7494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7495$as_echo "$supported" >&6; }
7496		if test "$supported" = "yes" ; then
7497			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7498			found="yes"
7499		fi
7500	fi
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516xorg_testset_save_CFLAGS="$CFLAGS"
7517
7518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527int i;
7528_ACEOF
7529if ac_fn_c_try_compile "$LINENO"; then :
7530  xorg_cv_cc_flag_unknown_warning_option=yes
7531else
7532  xorg_cv_cc_flag_unknown_warning_option=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535fi
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7539	CFLAGS="$xorg_testset_save_CFLAGS"
7540fi
7541
7542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545	fi
7546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554int i;
7555_ACEOF
7556if ac_fn_c_try_compile "$LINENO"; then :
7557  xorg_cv_cc_flag_unused_command_line_argument=yes
7558else
7559  xorg_cv_cc_flag_unused_command_line_argument=no
7560fi
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7566	CFLAGS="$xorg_testset_save_CFLAGS"
7567fi
7568
7569found="no"
7570
7571	if test $found = "no" ; then
7572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574		fi
7575
7576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7578		fi
7579
7580		CFLAGS="$CFLAGS -Werror=missing-braces"
7581
7582		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7583$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7584		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7585		if eval \${$cacheid+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590int i;
7591int
7592main ()
7593{
7594
7595  ;
7596  return 0;
7597}
7598_ACEOF
7599if ac_fn_c_try_link "$LINENO"; then :
7600  eval $cacheid=yes
7601else
7602  eval $cacheid=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext \
7605    conftest$ac_exeext conftest.$ac_ext
7606fi
7607
7608
7609		CFLAGS="$xorg_testset_save_CFLAGS"
7610
7611		eval supported=\$$cacheid
7612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7613$as_echo "$supported" >&6; }
7614		if test "$supported" = "yes" ; then
7615			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7616			found="yes"
7617		fi
7618	fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634xorg_testset_save_CFLAGS="$CFLAGS"
7635
7636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644/* end confdefs.h.  */
7645int i;
7646_ACEOF
7647if ac_fn_c_try_compile "$LINENO"; then :
7648  xorg_cv_cc_flag_unknown_warning_option=yes
7649else
7650  xorg_cv_cc_flag_unknown_warning_option=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653fi
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7657	CFLAGS="$xorg_testset_save_CFLAGS"
7658fi
7659
7660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663	fi
7664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672int i;
7673_ACEOF
7674if ac_fn_c_try_compile "$LINENO"; then :
7675  xorg_cv_cc_flag_unused_command_line_argument=yes
7676else
7677  xorg_cv_cc_flag_unused_command_line_argument=no
7678fi
7679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680fi
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7684	CFLAGS="$xorg_testset_save_CFLAGS"
7685fi
7686
7687found="no"
7688
7689	if test $found = "no" ; then
7690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692		fi
7693
7694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7696		fi
7697
7698		CFLAGS="$CFLAGS -Werror=sequence-point"
7699
7700		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7701$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7702		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7703		if eval \${$cacheid+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708int i;
7709int
7710main ()
7711{
7712
7713  ;
7714  return 0;
7715}
7716_ACEOF
7717if ac_fn_c_try_link "$LINENO"; then :
7718  eval $cacheid=yes
7719else
7720  eval $cacheid=no
7721fi
7722rm -f core conftest.err conftest.$ac_objext \
7723    conftest$ac_exeext conftest.$ac_ext
7724fi
7725
7726
7727		CFLAGS="$xorg_testset_save_CFLAGS"
7728
7729		eval supported=\$$cacheid
7730		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7731$as_echo "$supported" >&6; }
7732		if test "$supported" = "yes" ; then
7733			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7734			found="yes"
7735		fi
7736	fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752xorg_testset_save_CFLAGS="$CFLAGS"
7753
7754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762/* end confdefs.h.  */
7763int i;
7764_ACEOF
7765if ac_fn_c_try_compile "$LINENO"; then :
7766  xorg_cv_cc_flag_unknown_warning_option=yes
7767else
7768  xorg_cv_cc_flag_unknown_warning_option=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771fi
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7775	CFLAGS="$xorg_testset_save_CFLAGS"
7776fi
7777
7778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781	fi
7782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790int i;
7791_ACEOF
7792if ac_fn_c_try_compile "$LINENO"; then :
7793  xorg_cv_cc_flag_unused_command_line_argument=yes
7794else
7795  xorg_cv_cc_flag_unused_command_line_argument=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7802	CFLAGS="$xorg_testset_save_CFLAGS"
7803fi
7804
7805found="no"
7806
7807	if test $found = "no" ; then
7808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810		fi
7811
7812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7814		fi
7815
7816		CFLAGS="$CFLAGS -Werror=return-type"
7817
7818		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7819$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7820		cacheid=xorg_cv_cc_flag__Werror_return_type
7821		if eval \${$cacheid+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826int i;
7827int
7828main ()
7829{
7830
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835if ac_fn_c_try_link "$LINENO"; then :
7836  eval $cacheid=yes
7837else
7838  eval $cacheid=no
7839fi
7840rm -f core conftest.err conftest.$ac_objext \
7841    conftest$ac_exeext conftest.$ac_ext
7842fi
7843
7844
7845		CFLAGS="$xorg_testset_save_CFLAGS"
7846
7847		eval supported=\$$cacheid
7848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7849$as_echo "$supported" >&6; }
7850		if test "$supported" = "yes" ; then
7851			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7852			found="yes"
7853		fi
7854	fi
7855
7856	if test $found = "no" ; then
7857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859		fi
7860
7861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863		fi
7864
7865		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7866
7867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7868$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7869		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7870		if eval \${$cacheid+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875int i;
7876int
7877main ()
7878{
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885  eval $cacheid=yes
7886else
7887  eval $cacheid=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890    conftest$ac_exeext conftest.$ac_ext
7891fi
7892
7893
7894		CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896		eval supported=\$$cacheid
7897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898$as_echo "$supported" >&6; }
7899		if test "$supported" = "yes" ; then
7900			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7901			found="yes"
7902		fi
7903	fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919xorg_testset_save_CFLAGS="$CFLAGS"
7920
7921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930int i;
7931_ACEOF
7932if ac_fn_c_try_compile "$LINENO"; then :
7933  xorg_cv_cc_flag_unknown_warning_option=yes
7934else
7935  xorg_cv_cc_flag_unknown_warning_option=no
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938fi
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7942	CFLAGS="$xorg_testset_save_CFLAGS"
7943fi
7944
7945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	fi
7949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h.  */
7957int i;
7958_ACEOF
7959if ac_fn_c_try_compile "$LINENO"; then :
7960  xorg_cv_cc_flag_unused_command_line_argument=yes
7961else
7962  xorg_cv_cc_flag_unused_command_line_argument=no
7963fi
7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7969	CFLAGS="$xorg_testset_save_CFLAGS"
7970fi
7971
7972found="no"
7973
7974	if test $found = "no" ; then
7975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977		fi
7978
7979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981		fi
7982
7983		CFLAGS="$CFLAGS -Werror=trigraphs"
7984
7985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7986$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7987		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7988		if eval \${$cacheid+:} false; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993int i;
7994int
7995main ()
7996{
7997
7998  ;
7999  return 0;
8000}
8001_ACEOF
8002if ac_fn_c_try_link "$LINENO"; then :
8003  eval $cacheid=yes
8004else
8005  eval $cacheid=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext \
8008    conftest$ac_exeext conftest.$ac_ext
8009fi
8010
8011
8012		CFLAGS="$xorg_testset_save_CFLAGS"
8013
8014		eval supported=\$$cacheid
8015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8016$as_echo "$supported" >&6; }
8017		if test "$supported" = "yes" ; then
8018			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8019			found="yes"
8020		fi
8021	fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037xorg_testset_save_CFLAGS="$CFLAGS"
8038
8039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"; then :
8051  xorg_cv_cc_flag_unknown_warning_option=yes
8052else
8053  xorg_cv_cc_flag_unknown_warning_option=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060	CFLAGS="$xorg_testset_save_CFLAGS"
8061fi
8062
8063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066	fi
8067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h.  */
8075int i;
8076_ACEOF
8077if ac_fn_c_try_compile "$LINENO"; then :
8078  xorg_cv_cc_flag_unused_command_line_argument=yes
8079else
8080  xorg_cv_cc_flag_unused_command_line_argument=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087	CFLAGS="$xorg_testset_save_CFLAGS"
8088fi
8089
8090found="no"
8091
8092	if test $found = "no" ; then
8093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095		fi
8096
8097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099		fi
8100
8101		CFLAGS="$CFLAGS -Werror=array-bounds"
8102
8103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8104$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8105		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8106		if eval \${$cacheid+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112int
8113main ()
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_link "$LINENO"; then :
8121  eval $cacheid=yes
8122else
8123  eval $cacheid=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext \
8126    conftest$ac_exeext conftest.$ac_ext
8127fi
8128
8129
8130		CFLAGS="$xorg_testset_save_CFLAGS"
8131
8132		eval supported=\$$cacheid
8133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8134$as_echo "$supported" >&6; }
8135		if test "$supported" = "yes" ; then
8136			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8137			found="yes"
8138		fi
8139	fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155xorg_testset_save_CFLAGS="$CFLAGS"
8156
8157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166int i;
8167_ACEOF
8168if ac_fn_c_try_compile "$LINENO"; then :
8169  xorg_cv_cc_flag_unknown_warning_option=yes
8170else
8171  xorg_cv_cc_flag_unknown_warning_option=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174fi
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8178	CFLAGS="$xorg_testset_save_CFLAGS"
8179fi
8180
8181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184	fi
8185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193int i;
8194_ACEOF
8195if ac_fn_c_try_compile "$LINENO"; then :
8196  xorg_cv_cc_flag_unused_command_line_argument=yes
8197else
8198  xorg_cv_cc_flag_unused_command_line_argument=no
8199fi
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8205	CFLAGS="$xorg_testset_save_CFLAGS"
8206fi
8207
8208found="no"
8209
8210	if test $found = "no" ; then
8211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213		fi
8214
8215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8217		fi
8218
8219		CFLAGS="$CFLAGS -Werror=write-strings"
8220
8221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8222$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8223		cacheid=xorg_cv_cc_flag__Werror_write_strings
8224		if eval \${$cacheid+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229int i;
8230int
8231main ()
8232{
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239  eval $cacheid=yes
8240else
8241  eval $cacheid=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244    conftest$ac_exeext conftest.$ac_ext
8245fi
8246
8247
8248		CFLAGS="$xorg_testset_save_CFLAGS"
8249
8250		eval supported=\$$cacheid
8251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8252$as_echo "$supported" >&6; }
8253		if test "$supported" = "yes" ; then
8254			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8255			found="yes"
8256		fi
8257	fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273xorg_testset_save_CFLAGS="$CFLAGS"
8274
8275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h.  */
8284int i;
8285_ACEOF
8286if ac_fn_c_try_compile "$LINENO"; then :
8287  xorg_cv_cc_flag_unknown_warning_option=yes
8288else
8289  xorg_cv_cc_flag_unknown_warning_option=no
8290fi
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8296	CFLAGS="$xorg_testset_save_CFLAGS"
8297fi
8298
8299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302	fi
8303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310/* end confdefs.h.  */
8311int i;
8312_ACEOF
8313if ac_fn_c_try_compile "$LINENO"; then :
8314  xorg_cv_cc_flag_unused_command_line_argument=yes
8315else
8316  xorg_cv_cc_flag_unused_command_line_argument=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8323	CFLAGS="$xorg_testset_save_CFLAGS"
8324fi
8325
8326found="no"
8327
8328	if test $found = "no" ; then
8329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331		fi
8332
8333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335		fi
8336
8337		CFLAGS="$CFLAGS -Werror=address"
8338
8339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8340$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8341		cacheid=xorg_cv_cc_flag__Werror_address
8342		if eval \${$cacheid+:} false; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348int
8349main ()
8350{
8351
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"; then :
8357  eval $cacheid=yes
8358else
8359  eval $cacheid=no
8360fi
8361rm -f core conftest.err conftest.$ac_objext \
8362    conftest$ac_exeext conftest.$ac_ext
8363fi
8364
8365
8366		CFLAGS="$xorg_testset_save_CFLAGS"
8367
8368		eval supported=\$$cacheid
8369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8370$as_echo "$supported" >&6; }
8371		if test "$supported" = "yes" ; then
8372			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8373			found="yes"
8374		fi
8375	fi
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391xorg_testset_save_CFLAGS="$CFLAGS"
8392
8393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402int i;
8403_ACEOF
8404if ac_fn_c_try_compile "$LINENO"; then :
8405  xorg_cv_cc_flag_unknown_warning_option=yes
8406else
8407  xorg_cv_cc_flag_unknown_warning_option=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8414	CFLAGS="$xorg_testset_save_CFLAGS"
8415fi
8416
8417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	fi
8421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429int i;
8430_ACEOF
8431if ac_fn_c_try_compile "$LINENO"; then :
8432  xorg_cv_cc_flag_unused_command_line_argument=yes
8433else
8434  xorg_cv_cc_flag_unused_command_line_argument=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437fi
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8441	CFLAGS="$xorg_testset_save_CFLAGS"
8442fi
8443
8444found="no"
8445
8446	if test $found = "no" ; then
8447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449		fi
8450
8451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8453		fi
8454
8455		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8456
8457		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8458$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8459		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8460		if eval \${$cacheid+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465int i;
8466int
8467main ()
8468{
8469
8470  ;
8471  return 0;
8472}
8473_ACEOF
8474if ac_fn_c_try_link "$LINENO"; then :
8475  eval $cacheid=yes
8476else
8477  eval $cacheid=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext \
8480    conftest$ac_exeext conftest.$ac_ext
8481fi
8482
8483
8484		CFLAGS="$xorg_testset_save_CFLAGS"
8485
8486		eval supported=\$$cacheid
8487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8488$as_echo "$supported" >&6; }
8489		if test "$supported" = "yes" ; then
8490			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8491			found="yes"
8492		fi
8493	fi
8494
8495	if test $found = "no" ; then
8496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498		fi
8499
8500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502		fi
8503
8504		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8505
8506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8507$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8508		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8509		if eval \${$cacheid+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515int
8516main ()
8517{
8518
8519  ;
8520  return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_link "$LINENO"; then :
8524  eval $cacheid=yes
8525else
8526  eval $cacheid=no
8527fi
8528rm -f core conftest.err conftest.$ac_objext \
8529    conftest$ac_exeext conftest.$ac_ext
8530fi
8531
8532
8533		CFLAGS="$xorg_testset_save_CFLAGS"
8534
8535		eval supported=\$$cacheid
8536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8537$as_echo "$supported" >&6; }
8538		if test "$supported" = "yes" ; then
8539			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8540			found="yes"
8541		fi
8542	fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558xorg_testset_save_CFLAGS="$CFLAGS"
8559
8560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"; then :
8572  xorg_cv_cc_flag_unknown_warning_option=yes
8573else
8574  xorg_cv_cc_flag_unknown_warning_option=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577fi
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8581	CFLAGS="$xorg_testset_save_CFLAGS"
8582fi
8583
8584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587	fi
8588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h.  */
8596int i;
8597_ACEOF
8598if ac_fn_c_try_compile "$LINENO"; then :
8599  xorg_cv_cc_flag_unused_command_line_argument=yes
8600else
8601  xorg_cv_cc_flag_unused_command_line_argument=no
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608	CFLAGS="$xorg_testset_save_CFLAGS"
8609fi
8610
8611found="no"
8612
8613	if test $found = "no" ; then
8614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616		fi
8617
8618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620		fi
8621
8622		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8623
8624		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8625$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8626		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8627		if eval \${$cacheid+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632int i;
8633int
8634main ()
8635{
8636
8637  ;
8638  return 0;
8639}
8640_ACEOF
8641if ac_fn_c_try_link "$LINENO"; then :
8642  eval $cacheid=yes
8643else
8644  eval $cacheid=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext \
8647    conftest$ac_exeext conftest.$ac_ext
8648fi
8649
8650
8651		CFLAGS="$xorg_testset_save_CFLAGS"
8652
8653		eval supported=\$$cacheid
8654		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8655$as_echo "$supported" >&6; }
8656		if test "$supported" = "yes" ; then
8657			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8658			found="yes"
8659		fi
8660	fi
8661
8662 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8663else
8664{ $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
8665$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;}
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"; then :
8693  xorg_cv_cc_flag_unknown_warning_option=yes
8694else
8695  xorg_cv_cc_flag_unknown_warning_option=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8702	CFLAGS="$xorg_testset_save_CFLAGS"
8703fi
8704
8705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	fi
8709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717int i;
8718_ACEOF
8719if ac_fn_c_try_compile "$LINENO"; then :
8720  xorg_cv_cc_flag_unused_command_line_argument=yes
8721else
8722  xorg_cv_cc_flag_unused_command_line_argument=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725fi
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8729	CFLAGS="$xorg_testset_save_CFLAGS"
8730fi
8731
8732found="no"
8733
8734	if test $found = "no" ; then
8735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737		fi
8738
8739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741		fi
8742
8743		CFLAGS="$CFLAGS -Wimplicit"
8744
8745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8746$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8747		cacheid=xorg_cv_cc_flag__Wimplicit
8748		if eval \${$cacheid+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h.  */
8753int i;
8754int
8755main ()
8756{
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_link "$LINENO"; then :
8763  eval $cacheid=yes
8764else
8765  eval $cacheid=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext \
8768    conftest$ac_exeext conftest.$ac_ext
8769fi
8770
8771
8772		CFLAGS="$xorg_testset_save_CFLAGS"
8773
8774		eval supported=\$$cacheid
8775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8776$as_echo "$supported" >&6; }
8777		if test "$supported" = "yes" ; then
8778			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8779			found="yes"
8780		fi
8781	fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797xorg_testset_save_CFLAGS="$CFLAGS"
8798
8799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809_ACEOF
8810if ac_fn_c_try_compile "$LINENO"; then :
8811  xorg_cv_cc_flag_unknown_warning_option=yes
8812else
8813  xorg_cv_cc_flag_unknown_warning_option=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8820	CFLAGS="$xorg_testset_save_CFLAGS"
8821fi
8822
8823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826	fi
8827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834/* end confdefs.h.  */
8835int i;
8836_ACEOF
8837if ac_fn_c_try_compile "$LINENO"; then :
8838  xorg_cv_cc_flag_unused_command_line_argument=yes
8839else
8840  xorg_cv_cc_flag_unused_command_line_argument=no
8841fi
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8847	CFLAGS="$xorg_testset_save_CFLAGS"
8848fi
8849
8850found="no"
8851
8852	if test $found = "no" ; then
8853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855		fi
8856
8857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859		fi
8860
8861		CFLAGS="$CFLAGS -Wnonnull"
8862
8863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8864$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8865		cacheid=xorg_cv_cc_flag__Wnonnull
8866		if eval \${$cacheid+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871int i;
8872int
8873main ()
8874{
8875
8876  ;
8877  return 0;
8878}
8879_ACEOF
8880if ac_fn_c_try_link "$LINENO"; then :
8881  eval $cacheid=yes
8882else
8883  eval $cacheid=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext \
8886    conftest$ac_exeext conftest.$ac_ext
8887fi
8888
8889
8890		CFLAGS="$xorg_testset_save_CFLAGS"
8891
8892		eval supported=\$$cacheid
8893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8894$as_echo "$supported" >&6; }
8895		if test "$supported" = "yes" ; then
8896			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8897			found="yes"
8898		fi
8899	fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915xorg_testset_save_CFLAGS="$CFLAGS"
8916
8917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927_ACEOF
8928if ac_fn_c_try_compile "$LINENO"; then :
8929  xorg_cv_cc_flag_unknown_warning_option=yes
8930else
8931  xorg_cv_cc_flag_unknown_warning_option=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8937	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8938	CFLAGS="$xorg_testset_save_CFLAGS"
8939fi
8940
8941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8942	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944	fi
8945	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h.  */
8953int i;
8954_ACEOF
8955if ac_fn_c_try_compile "$LINENO"; then :
8956  xorg_cv_cc_flag_unused_command_line_argument=yes
8957else
8958  xorg_cv_cc_flag_unused_command_line_argument=no
8959fi
8960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8965	CFLAGS="$xorg_testset_save_CFLAGS"
8966fi
8967
8968found="no"
8969
8970	if test $found = "no" ; then
8971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973		fi
8974
8975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977		fi
8978
8979		CFLAGS="$CFLAGS -Winit-self"
8980
8981		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8982$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8983		cacheid=xorg_cv_cc_flag__Winit_self
8984		if eval \${$cacheid+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989int i;
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_link "$LINENO"; then :
8999  eval $cacheid=yes
9000else
9001  eval $cacheid=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004    conftest$ac_exeext conftest.$ac_ext
9005fi
9006
9007
9008		CFLAGS="$xorg_testset_save_CFLAGS"
9009
9010		eval supported=\$$cacheid
9011		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9012$as_echo "$supported" >&6; }
9013		if test "$supported" = "yes" ; then
9014			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9015			found="yes"
9016		fi
9017	fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033xorg_testset_save_CFLAGS="$CFLAGS"
9034
9035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045_ACEOF
9046if ac_fn_c_try_compile "$LINENO"; then :
9047  xorg_cv_cc_flag_unknown_warning_option=yes
9048else
9049  xorg_cv_cc_flag_unknown_warning_option=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9056	CFLAGS="$xorg_testset_save_CFLAGS"
9057fi
9058
9059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062	fi
9063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9067  $as_echo_n "(cached) " >&6
9068else
9069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h.  */
9071int i;
9072_ACEOF
9073if ac_fn_c_try_compile "$LINENO"; then :
9074  xorg_cv_cc_flag_unused_command_line_argument=yes
9075else
9076  xorg_cv_cc_flag_unused_command_line_argument=no
9077fi
9078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9083	CFLAGS="$xorg_testset_save_CFLAGS"
9084fi
9085
9086found="no"
9087
9088	if test $found = "no" ; then
9089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091		fi
9092
9093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095		fi
9096
9097		CFLAGS="$CFLAGS -Wmain"
9098
9099		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9100$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9101		cacheid=xorg_cv_cc_flag__Wmain
9102		if eval \${$cacheid+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108int
9109main ()
9110{
9111
9112  ;
9113  return 0;
9114}
9115_ACEOF
9116if ac_fn_c_try_link "$LINENO"; then :
9117  eval $cacheid=yes
9118else
9119  eval $cacheid=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122    conftest$ac_exeext conftest.$ac_ext
9123fi
9124
9125
9126		CFLAGS="$xorg_testset_save_CFLAGS"
9127
9128		eval supported=\$$cacheid
9129		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9130$as_echo "$supported" >&6; }
9131		if test "$supported" = "yes" ; then
9132			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9133			found="yes"
9134		fi
9135	fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151xorg_testset_save_CFLAGS="$CFLAGS"
9152
9153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163_ACEOF
9164if ac_fn_c_try_compile "$LINENO"; then :
9165  xorg_cv_cc_flag_unknown_warning_option=yes
9166else
9167  xorg_cv_cc_flag_unknown_warning_option=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170fi
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9174	CFLAGS="$xorg_testset_save_CFLAGS"
9175fi
9176
9177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	fi
9181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190_ACEOF
9191if ac_fn_c_try_compile "$LINENO"; then :
9192  xorg_cv_cc_flag_unused_command_line_argument=yes
9193else
9194  xorg_cv_cc_flag_unused_command_line_argument=no
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201	CFLAGS="$xorg_testset_save_CFLAGS"
9202fi
9203
9204found="no"
9205
9206	if test $found = "no" ; then
9207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209		fi
9210
9211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213		fi
9214
9215		CFLAGS="$CFLAGS -Wmissing-braces"
9216
9217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9218$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9219		cacheid=xorg_cv_cc_flag__Wmissing_braces
9220		if eval \${$cacheid+:} false; then :
9221  $as_echo_n "(cached) " >&6
9222else
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226int
9227main ()
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235  eval $cacheid=yes
9236else
9237  eval $cacheid=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext \
9240    conftest$ac_exeext conftest.$ac_ext
9241fi
9242
9243
9244		CFLAGS="$xorg_testset_save_CFLAGS"
9245
9246		eval supported=\$$cacheid
9247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9248$as_echo "$supported" >&6; }
9249		if test "$supported" = "yes" ; then
9250			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9251			found="yes"
9252		fi
9253	fi
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269xorg_testset_save_CFLAGS="$CFLAGS"
9270
9271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9276  $as_echo_n "(cached) " >&6
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281_ACEOF
9282if ac_fn_c_try_compile "$LINENO"; then :
9283  xorg_cv_cc_flag_unknown_warning_option=yes
9284else
9285  xorg_cv_cc_flag_unknown_warning_option=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	fi
9299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308_ACEOF
9309if ac_fn_c_try_compile "$LINENO"; then :
9310  xorg_cv_cc_flag_unused_command_line_argument=yes
9311else
9312  xorg_cv_cc_flag_unused_command_line_argument=no
9313fi
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9319	CFLAGS="$xorg_testset_save_CFLAGS"
9320fi
9321
9322found="no"
9323
9324	if test $found = "no" ; then
9325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327		fi
9328
9329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9331		fi
9332
9333		CFLAGS="$CFLAGS -Wsequence-point"
9334
9335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9336$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9337		cacheid=xorg_cv_cc_flag__Wsequence_point
9338		if eval \${$cacheid+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343int i;
9344int
9345main ()
9346{
9347
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353  eval $cacheid=yes
9354else
9355  eval $cacheid=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext \
9358    conftest$ac_exeext conftest.$ac_ext
9359fi
9360
9361
9362		CFLAGS="$xorg_testset_save_CFLAGS"
9363
9364		eval supported=\$$cacheid
9365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9366$as_echo "$supported" >&6; }
9367		if test "$supported" = "yes" ; then
9368			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9369			found="yes"
9370		fi
9371	fi
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387xorg_testset_save_CFLAGS="$CFLAGS"
9388
9389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399_ACEOF
9400if ac_fn_c_try_compile "$LINENO"; then :
9401  xorg_cv_cc_flag_unknown_warning_option=yes
9402else
9403  xorg_cv_cc_flag_unknown_warning_option=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9410	CFLAGS="$xorg_testset_save_CFLAGS"
9411fi
9412
9413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416	fi
9417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426_ACEOF
9427if ac_fn_c_try_compile "$LINENO"; then :
9428  xorg_cv_cc_flag_unused_command_line_argument=yes
9429else
9430  xorg_cv_cc_flag_unused_command_line_argument=no
9431fi
9432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433fi
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9437	CFLAGS="$xorg_testset_save_CFLAGS"
9438fi
9439
9440found="no"
9441
9442	if test $found = "no" ; then
9443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445		fi
9446
9447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449		fi
9450
9451		CFLAGS="$CFLAGS -Wreturn-type"
9452
9453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9454$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9455		cacheid=xorg_cv_cc_flag__Wreturn_type
9456		if eval \${$cacheid+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462int
9463main ()
9464{
9465
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then :
9471  eval $cacheid=yes
9472else
9473  eval $cacheid=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext \
9476    conftest$ac_exeext conftest.$ac_ext
9477fi
9478
9479
9480		CFLAGS="$xorg_testset_save_CFLAGS"
9481
9482		eval supported=\$$cacheid
9483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9484$as_echo "$supported" >&6; }
9485		if test "$supported" = "yes" ; then
9486			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9487			found="yes"
9488		fi
9489	fi
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505xorg_testset_save_CFLAGS="$CFLAGS"
9506
9507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516int i;
9517_ACEOF
9518if ac_fn_c_try_compile "$LINENO"; then :
9519  xorg_cv_cc_flag_unknown_warning_option=yes
9520else
9521  xorg_cv_cc_flag_unknown_warning_option=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524fi
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9528	CFLAGS="$xorg_testset_save_CFLAGS"
9529fi
9530
9531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534	fi
9535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543int i;
9544_ACEOF
9545if ac_fn_c_try_compile "$LINENO"; then :
9546  xorg_cv_cc_flag_unused_command_line_argument=yes
9547else
9548  xorg_cv_cc_flag_unused_command_line_argument=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9555	CFLAGS="$xorg_testset_save_CFLAGS"
9556fi
9557
9558found="no"
9559
9560	if test $found = "no" ; then
9561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563		fi
9564
9565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567		fi
9568
9569		CFLAGS="$CFLAGS -Wtrigraphs"
9570
9571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9572$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9573		cacheid=xorg_cv_cc_flag__Wtrigraphs
9574		if eval \${$cacheid+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580int
9581main ()
9582{
9583
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589  eval $cacheid=yes
9590else
9591  eval $cacheid=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594    conftest$ac_exeext conftest.$ac_ext
9595fi
9596
9597
9598		CFLAGS="$xorg_testset_save_CFLAGS"
9599
9600		eval supported=\$$cacheid
9601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9602$as_echo "$supported" >&6; }
9603		if test "$supported" = "yes" ; then
9604			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9605			found="yes"
9606		fi
9607	fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634int i;
9635_ACEOF
9636if ac_fn_c_try_compile "$LINENO"; then :
9637  xorg_cv_cc_flag_unknown_warning_option=yes
9638else
9639  xorg_cv_cc_flag_unknown_warning_option=no
9640fi
9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646	CFLAGS="$xorg_testset_save_CFLAGS"
9647fi
9648
9649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	fi
9653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662_ACEOF
9663if ac_fn_c_try_compile "$LINENO"; then :
9664  xorg_cv_cc_flag_unused_command_line_argument=yes
9665else
9666  xorg_cv_cc_flag_unused_command_line_argument=no
9667fi
9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669fi
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9673	CFLAGS="$xorg_testset_save_CFLAGS"
9674fi
9675
9676found="no"
9677
9678	if test $found = "no" ; then
9679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681		fi
9682
9683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685		fi
9686
9687		CFLAGS="$CFLAGS -Warray-bounds"
9688
9689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9690$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9691		cacheid=xorg_cv_cc_flag__Warray_bounds
9692		if eval \${$cacheid+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697int i;
9698int
9699main ()
9700{
9701
9702  ;
9703  return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_link "$LINENO"; then :
9707  eval $cacheid=yes
9708else
9709  eval $cacheid=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext conftest.$ac_ext
9713fi
9714
9715
9716		CFLAGS="$xorg_testset_save_CFLAGS"
9717
9718		eval supported=\$$cacheid
9719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9720$as_echo "$supported" >&6; }
9721		if test "$supported" = "yes" ; then
9722			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9723			found="yes"
9724		fi
9725	fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741xorg_testset_save_CFLAGS="$CFLAGS"
9742
9743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h.  */
9752int i;
9753_ACEOF
9754if ac_fn_c_try_compile "$LINENO"; then :
9755  xorg_cv_cc_flag_unknown_warning_option=yes
9756else
9757  xorg_cv_cc_flag_unknown_warning_option=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760fi
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9764	CFLAGS="$xorg_testset_save_CFLAGS"
9765fi
9766
9767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	fi
9771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"; then :
9782  xorg_cv_cc_flag_unused_command_line_argument=yes
9783else
9784  xorg_cv_cc_flag_unused_command_line_argument=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9791	CFLAGS="$xorg_testset_save_CFLAGS"
9792fi
9793
9794found="no"
9795
9796	if test $found = "no" ; then
9797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799		fi
9800
9801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803		fi
9804
9805		CFLAGS="$CFLAGS -Wwrite-strings"
9806
9807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9808$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9809		cacheid=xorg_cv_cc_flag__Wwrite_strings
9810		if eval \${$cacheid+:} false; then :
9811  $as_echo_n "(cached) " >&6
9812else
9813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h.  */
9815int i;
9816int
9817main ()
9818{
9819
9820  ;
9821  return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_link "$LINENO"; then :
9825  eval $cacheid=yes
9826else
9827  eval $cacheid=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext \
9830    conftest$ac_exeext conftest.$ac_ext
9831fi
9832
9833
9834		CFLAGS="$xorg_testset_save_CFLAGS"
9835
9836		eval supported=\$$cacheid
9837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9838$as_echo "$supported" >&6; }
9839		if test "$supported" = "yes" ; then
9840			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9841			found="yes"
9842		fi
9843	fi
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859xorg_testset_save_CFLAGS="$CFLAGS"
9860
9861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9866  $as_echo_n "(cached) " >&6
9867else
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"; then :
9873  xorg_cv_cc_flag_unknown_warning_option=yes
9874else
9875  xorg_cv_cc_flag_unknown_warning_option=no
9876fi
9877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878fi
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9882	CFLAGS="$xorg_testset_save_CFLAGS"
9883fi
9884
9885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888	fi
9889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897int i;
9898_ACEOF
9899if ac_fn_c_try_compile "$LINENO"; then :
9900  xorg_cv_cc_flag_unused_command_line_argument=yes
9901else
9902  xorg_cv_cc_flag_unused_command_line_argument=no
9903fi
9904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9909	CFLAGS="$xorg_testset_save_CFLAGS"
9910fi
9911
9912found="no"
9913
9914	if test $found = "no" ; then
9915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917		fi
9918
9919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9921		fi
9922
9923		CFLAGS="$CFLAGS -Waddress"
9924
9925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9926$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9927		cacheid=xorg_cv_cc_flag__Waddress
9928		if eval \${$cacheid+:} false; then :
9929  $as_echo_n "(cached) " >&6
9930else
9931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h.  */
9933int i;
9934int
9935main ()
9936{
9937
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942if ac_fn_c_try_link "$LINENO"; then :
9943  eval $cacheid=yes
9944else
9945  eval $cacheid=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext \
9948    conftest$ac_exeext conftest.$ac_ext
9949fi
9950
9951
9952		CFLAGS="$xorg_testset_save_CFLAGS"
9953
9954		eval supported=\$$cacheid
9955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9956$as_echo "$supported" >&6; }
9957		if test "$supported" = "yes" ; then
9958			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9959			found="yes"
9960		fi
9961	fi
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977xorg_testset_save_CFLAGS="$CFLAGS"
9978
9979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988int i;
9989_ACEOF
9990if ac_fn_c_try_compile "$LINENO"; then :
9991  xorg_cv_cc_flag_unknown_warning_option=yes
9992else
9993  xorg_cv_cc_flag_unknown_warning_option=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996fi
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10000	CFLAGS="$xorg_testset_save_CFLAGS"
10001fi
10002
10003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	fi
10007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016_ACEOF
10017if ac_fn_c_try_compile "$LINENO"; then :
10018  xorg_cv_cc_flag_unused_command_line_argument=yes
10019else
10020  xorg_cv_cc_flag_unused_command_line_argument=no
10021fi
10022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023fi
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10027	CFLAGS="$xorg_testset_save_CFLAGS"
10028fi
10029
10030found="no"
10031
10032	if test $found = "no" ; then
10033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035		fi
10036
10037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10039		fi
10040
10041		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10042
10043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10044$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10045		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10046		if eval \${$cacheid+:} false; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051int i;
10052int
10053main ()
10054{
10055
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_link "$LINENO"; then :
10061  eval $cacheid=yes
10062else
10063  eval $cacheid=no
10064fi
10065rm -f core conftest.err conftest.$ac_objext \
10066    conftest$ac_exeext conftest.$ac_ext
10067fi
10068
10069
10070		CFLAGS="$xorg_testset_save_CFLAGS"
10071
10072		eval supported=\$$cacheid
10073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10074$as_echo "$supported" >&6; }
10075		if test "$supported" = "yes" ; then
10076			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10077			found="yes"
10078		fi
10079	fi
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095xorg_testset_save_CFLAGS="$CFLAGS"
10096
10097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10102  $as_echo_n "(cached) " >&6
10103else
10104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106int i;
10107_ACEOF
10108if ac_fn_c_try_compile "$LINENO"; then :
10109  xorg_cv_cc_flag_unknown_warning_option=yes
10110else
10111  xorg_cv_cc_flag_unknown_warning_option=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114fi
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10118	CFLAGS="$xorg_testset_save_CFLAGS"
10119fi
10120
10121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124	fi
10125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10129  $as_echo_n "(cached) " >&6
10130else
10131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h.  */
10133int i;
10134_ACEOF
10135if ac_fn_c_try_compile "$LINENO"; then :
10136  xorg_cv_cc_flag_unused_command_line_argument=yes
10137else
10138  xorg_cv_cc_flag_unused_command_line_argument=no
10139fi
10140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141fi
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10145	CFLAGS="$xorg_testset_save_CFLAGS"
10146fi
10147
10148found="no"
10149
10150	if test $found = "no" ; then
10151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153		fi
10154
10155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10157		fi
10158
10159		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10160
10161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10162$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10163		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10164		if eval \${$cacheid+:} false; then :
10165  $as_echo_n "(cached) " >&6
10166else
10167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169int i;
10170int
10171main ()
10172{
10173
10174  ;
10175  return 0;
10176}
10177_ACEOF
10178if ac_fn_c_try_link "$LINENO"; then :
10179  eval $cacheid=yes
10180else
10181  eval $cacheid=no
10182fi
10183rm -f core conftest.err conftest.$ac_objext \
10184    conftest$ac_exeext conftest.$ac_ext
10185fi
10186
10187
10188		CFLAGS="$xorg_testset_save_CFLAGS"
10189
10190		eval supported=\$$cacheid
10191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10192$as_echo "$supported" >&6; }
10193		if test "$supported" = "yes" ; then
10194			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10195			found="yes"
10196		fi
10197	fi
10198
10199
10200fi
10201
10202
10203
10204
10205
10206
10207
10208		CWARNFLAGS="$BASE_CFLAGS"
10209		if  test "x$GCC" = xyes ; then
10210		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10211		fi
10212
10213
10214
10215
10216
10217
10218
10219
10220# Check whether --enable-strict-compilation was given.
10221if test "${enable_strict_compilation+set}" = set; then :
10222  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10223else
10224  STRICT_COMPILE=no
10225fi
10226
10227
10228
10229
10230
10231
10232STRICT_CFLAGS=""
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246xorg_testset_save_CFLAGS="$CFLAGS"
10247
10248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10253  $as_echo_n "(cached) " >&6
10254else
10255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257int i;
10258_ACEOF
10259if ac_fn_c_try_compile "$LINENO"; then :
10260  xorg_cv_cc_flag_unknown_warning_option=yes
10261else
10262  xorg_cv_cc_flag_unknown_warning_option=no
10263fi
10264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265fi
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10269	CFLAGS="$xorg_testset_save_CFLAGS"
10270fi
10271
10272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275	fi
10276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10280  $as_echo_n "(cached) " >&6
10281else
10282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284int i;
10285_ACEOF
10286if ac_fn_c_try_compile "$LINENO"; then :
10287  xorg_cv_cc_flag_unused_command_line_argument=yes
10288else
10289  xorg_cv_cc_flag_unused_command_line_argument=no
10290fi
10291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10296	CFLAGS="$xorg_testset_save_CFLAGS"
10297fi
10298
10299found="no"
10300
10301	if test $found = "no" ; then
10302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304		fi
10305
10306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10308		fi
10309
10310		CFLAGS="$CFLAGS -pedantic"
10311
10312		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10313$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10314		cacheid=xorg_cv_cc_flag__pedantic
10315		if eval \${$cacheid+:} false; then :
10316  $as_echo_n "(cached) " >&6
10317else
10318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319/* end confdefs.h.  */
10320int i;
10321int
10322main ()
10323{
10324
10325  ;
10326  return 0;
10327}
10328_ACEOF
10329if ac_fn_c_try_link "$LINENO"; then :
10330  eval $cacheid=yes
10331else
10332  eval $cacheid=no
10333fi
10334rm -f core conftest.err conftest.$ac_objext \
10335    conftest$ac_exeext conftest.$ac_ext
10336fi
10337
10338
10339		CFLAGS="$xorg_testset_save_CFLAGS"
10340
10341		eval supported=\$$cacheid
10342		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10343$as_echo "$supported" >&6; }
10344		if test "$supported" = "yes" ; then
10345			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10346			found="yes"
10347		fi
10348	fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364xorg_testset_save_CFLAGS="$CFLAGS"
10365
10366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10367	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10371  $as_echo_n "(cached) " >&6
10372else
10373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h.  */
10375int i;
10376_ACEOF
10377if ac_fn_c_try_compile "$LINENO"; then :
10378  xorg_cv_cc_flag_unknown_warning_option=yes
10379else
10380  xorg_cv_cc_flag_unknown_warning_option=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383fi
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10387	CFLAGS="$xorg_testset_save_CFLAGS"
10388fi
10389
10390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393	fi
10394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10398  $as_echo_n "(cached) " >&6
10399else
10400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h.  */
10402int i;
10403_ACEOF
10404if ac_fn_c_try_compile "$LINENO"; then :
10405  xorg_cv_cc_flag_unused_command_line_argument=yes
10406else
10407  xorg_cv_cc_flag_unused_command_line_argument=no
10408fi
10409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410fi
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10414	CFLAGS="$xorg_testset_save_CFLAGS"
10415fi
10416
10417found="no"
10418
10419	if test $found = "no" ; then
10420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10422		fi
10423
10424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426		fi
10427
10428		CFLAGS="$CFLAGS -Werror"
10429
10430		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10431$as_echo_n "checking if $CC supports -Werror... " >&6; }
10432		cacheid=xorg_cv_cc_flag__Werror
10433		if eval \${$cacheid+:} false; then :
10434  $as_echo_n "(cached) " >&6
10435else
10436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h.  */
10438int i;
10439int
10440main ()
10441{
10442
10443  ;
10444  return 0;
10445}
10446_ACEOF
10447if ac_fn_c_try_link "$LINENO"; then :
10448  eval $cacheid=yes
10449else
10450  eval $cacheid=no
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453    conftest$ac_exeext conftest.$ac_ext
10454fi
10455
10456
10457		CFLAGS="$xorg_testset_save_CFLAGS"
10458
10459		eval supported=\$$cacheid
10460		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10461$as_echo "$supported" >&6; }
10462		if test "$supported" = "yes" ; then
10463			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10464			found="yes"
10465		fi
10466	fi
10467
10468	if test $found = "no" ; then
10469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471		fi
10472
10473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475		fi
10476
10477		CFLAGS="$CFLAGS -errwarn"
10478
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10480$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10481		cacheid=xorg_cv_cc_flag__errwarn
10482		if eval \${$cacheid+:} false; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488int
10489main ()
10490{
10491
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497  eval $cacheid=yes
10498else
10499  eval $cacheid=no
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502    conftest$ac_exeext conftest.$ac_ext
10503fi
10504
10505
10506		CFLAGS="$xorg_testset_save_CFLAGS"
10507
10508		eval supported=\$$cacheid
10509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510$as_echo "$supported" >&6; }
10511		if test "$supported" = "yes" ; then
10512			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10513			found="yes"
10514		fi
10515	fi
10516
10517
10518
10519# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10520# activate it with -Werror, so we add it here explicitly.
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534xorg_testset_save_CFLAGS="$CFLAGS"
10535
10536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545int i;
10546_ACEOF
10547if ac_fn_c_try_compile "$LINENO"; then :
10548  xorg_cv_cc_flag_unknown_warning_option=yes
10549else
10550  xorg_cv_cc_flag_unknown_warning_option=no
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10557	CFLAGS="$xorg_testset_save_CFLAGS"
10558fi
10559
10560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563	fi
10564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10568  $as_echo_n "(cached) " >&6
10569else
10570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h.  */
10572int i;
10573_ACEOF
10574if ac_fn_c_try_compile "$LINENO"; then :
10575  xorg_cv_cc_flag_unused_command_line_argument=yes
10576else
10577  xorg_cv_cc_flag_unused_command_line_argument=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580fi
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584	CFLAGS="$xorg_testset_save_CFLAGS"
10585fi
10586
10587found="no"
10588
10589	if test $found = "no" ; then
10590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592		fi
10593
10594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596		fi
10597
10598		CFLAGS="$CFLAGS -Werror=attributes"
10599
10600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10601$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10602		cacheid=xorg_cv_cc_flag__Werror_attributes
10603		if eval \${$cacheid+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608int i;
10609int
10610main ()
10611{
10612
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"; then :
10618  eval $cacheid=yes
10619else
10620  eval $cacheid=no
10621fi
10622rm -f core conftest.err conftest.$ac_objext \
10623    conftest$ac_exeext conftest.$ac_ext
10624fi
10625
10626
10627		CFLAGS="$xorg_testset_save_CFLAGS"
10628
10629		eval supported=\$$cacheid
10630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10631$as_echo "$supported" >&6; }
10632		if test "$supported" = "yes" ; then
10633			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10634			found="yes"
10635		fi
10636	fi
10637
10638
10639
10640if test "x$STRICT_COMPILE" = "xyes"; then
10641    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10642    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10643fi
10644
10645
10646
10647
10648
10649
10650cat >>confdefs.h <<_ACEOF
10651#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10652_ACEOF
10653
10654	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10655	if test "x$PVM" = "x"; then
10656		PVM="0"
10657	fi
10658
10659cat >>confdefs.h <<_ACEOF
10660#define PACKAGE_VERSION_MINOR $PVM
10661_ACEOF
10662
10663	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10664	if test "x$PVP" = "x"; then
10665		PVP="0"
10666	fi
10667
10668cat >>confdefs.h <<_ACEOF
10669#define PACKAGE_VERSION_PATCHLEVEL $PVP
10670_ACEOF
10671
10672
10673
10674CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10675mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10676|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10677touch \$(top_srcdir)/ChangeLog; \
10678echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10679
10680
10681
10682
10683macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10684INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10685mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10686|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10687touch \$(top_srcdir)/INSTALL; \
10688echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10689
10690
10691
10692
10693
10694
10695case $host_os in
10696    solaris*)
10697        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10698        # check for a man page file found in later versions that use
10699        # traditional section numbers instead
10700        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10701$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10702if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10703  $as_echo_n "(cached) " >&6
10704else
10705  test "$cross_compiling" = yes &&
10706  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10707if test -r "/usr/share/man/man7/attributes.7"; then
10708  ac_cv_file__usr_share_man_man7_attributes_7=yes
10709else
10710  ac_cv_file__usr_share_man_man7_attributes_7=no
10711fi
10712fi
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10714$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10715if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10716  SYSV_MAN_SECTIONS=false
10717else
10718  SYSV_MAN_SECTIONS=true
10719fi
10720
10721        ;;
10722    *) SYSV_MAN_SECTIONS=false ;;
10723esac
10724
10725if test x$APP_MAN_SUFFIX = x    ; then
10726    APP_MAN_SUFFIX=1
10727fi
10728if test x$APP_MAN_DIR = x    ; then
10729    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10730fi
10731
10732if test x$LIB_MAN_SUFFIX = x    ; then
10733    LIB_MAN_SUFFIX=3
10734fi
10735if test x$LIB_MAN_DIR = x    ; then
10736    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10737fi
10738
10739if test x$FILE_MAN_SUFFIX = x    ; then
10740    case $SYSV_MAN_SECTIONS in
10741	true)				FILE_MAN_SUFFIX=4  ;;
10742	*)				FILE_MAN_SUFFIX=5  ;;
10743    esac
10744fi
10745if test x$FILE_MAN_DIR = x    ; then
10746    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10747fi
10748
10749if test x$MISC_MAN_SUFFIX = x    ; then
10750    case $SYSV_MAN_SECTIONS in
10751	true)				MISC_MAN_SUFFIX=5  ;;
10752	*)				MISC_MAN_SUFFIX=7  ;;
10753    esac
10754fi
10755if test x$MISC_MAN_DIR = x    ; then
10756    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10757fi
10758
10759if test x$DRIVER_MAN_SUFFIX = x    ; then
10760    case $SYSV_MAN_SECTIONS in
10761	true)				DRIVER_MAN_SUFFIX=7  ;;
10762	*)				DRIVER_MAN_SUFFIX=4  ;;
10763    esac
10764fi
10765if test x$DRIVER_MAN_DIR = x    ; then
10766    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10767fi
10768
10769if test x$ADMIN_MAN_SUFFIX = x    ; then
10770    case $SYSV_MAN_SECTIONS in
10771	true)				ADMIN_MAN_SUFFIX=1m ;;
10772	*)				ADMIN_MAN_SUFFIX=8  ;;
10773    esac
10774fi
10775if test x$ADMIN_MAN_DIR = x    ; then
10776    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10777fi
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793XORG_MAN_PAGE="X Version 11"
10794
10795MAN_SUBSTS="\
10796	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10797	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10798	-e 's|__xservername__|Xorg|g' \
10799	-e 's|__xconfigfile__|xorg.conf|g' \
10800	-e 's|__projectroot__|\$(prefix)|g' \
10801	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10802	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10803	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10804	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10805	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10806	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10807	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10808
10809
10810
10811# Check whether --enable-silent-rules was given.
10812if test "${enable_silent_rules+set}" = set; then :
10813  enableval=$enable_silent_rules;
10814fi
10815
10816case $enable_silent_rules in # (((
10817  yes) AM_DEFAULT_VERBOSITY=0;;
10818   no) AM_DEFAULT_VERBOSITY=1;;
10819    *) AM_DEFAULT_VERBOSITY=0;;
10820esac
10821am_make=${MAKE-make}
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10823$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10824if ${am_cv_make_support_nested_variables+:} false; then :
10825  $as_echo_n "(cached) " >&6
10826else
10827  if $as_echo 'TRUE=$(BAR$(V))
10828BAR0=false
10829BAR1=true
10830V=1
10831am__doit:
10832	@$(TRUE)
10833.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10834  am_cv_make_support_nested_variables=yes
10835else
10836  am_cv_make_support_nested_variables=no
10837fi
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10840$as_echo "$am_cv_make_support_nested_variables" >&6; }
10841if test $am_cv_make_support_nested_variables = yes; then
10842    AM_V='$(V)'
10843  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10844else
10845  AM_V=$AM_DEFAULT_VERBOSITY
10846  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10847fi
10848AM_BACKSLASH='\'
10849
10850
10851
10852# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
10853
10854
10855# Initialize libtool
10856case `pwd` in
10857  *\ * | *\	*)
10858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10859$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10860esac
10861
10862
10863
10864macro_version='2.4.6'
10865macro_revision='2.4.6'
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879ltmain=$ac_aux_dir/ltmain.sh
10880
10881# Backslashify metacharacters that are still active within
10882# double-quoted strings.
10883sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10884
10885# Same as above, but do not quote variable references.
10886double_quote_subst='s/\(["`\\]\)/\\\1/g'
10887
10888# Sed substitution to delay expansion of an escaped shell variable in a
10889# double_quote_subst'ed string.
10890delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10891
10892# Sed substitution to delay expansion of an escaped single quote.
10893delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10894
10895# Sed substitution to avoid accidental globbing in evaled expressions
10896no_glob_subst='s/\*/\\\*/g'
10897
10898ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10899ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10900ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10901
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10903$as_echo_n "checking how to print strings... " >&6; }
10904# Test print first, because it will be a builtin if present.
10905if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10906   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10907  ECHO='print -r --'
10908elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10909  ECHO='printf %s\n'
10910else
10911  # Use this function as a fallback that always works.
10912  func_fallback_echo ()
10913  {
10914    eval 'cat <<_LTECHO_EOF
10915$1
10916_LTECHO_EOF'
10917  }
10918  ECHO='func_fallback_echo'
10919fi
10920
10921# func_echo_all arg...
10922# Invoke $ECHO with all args, space-separated.
10923func_echo_all ()
10924{
10925    $ECHO ""
10926}
10927
10928case $ECHO in
10929  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10930$as_echo "printf" >&6; } ;;
10931  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10932$as_echo "print -r" >&6; } ;;
10933  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10934$as_echo "cat" >&6; } ;;
10935esac
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10951$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10952if ${ac_cv_path_SED+:} false; then :
10953  $as_echo_n "(cached) " >&6
10954else
10955            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10956     for ac_i in 1 2 3 4 5 6 7; do
10957       ac_script="$ac_script$as_nl$ac_script"
10958     done
10959     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10960     { ac_script=; unset ac_script;}
10961     if test -z "$SED"; then
10962  ac_path_SED_found=false
10963  # Loop through the user's path and test for each of PROGNAME-LIST
10964  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965for as_dir in $PATH
10966do
10967  IFS=$as_save_IFS
10968  test -z "$as_dir" && as_dir=.
10969    for ac_prog in sed gsed; do
10970    for ac_exec_ext in '' $ac_executable_extensions; do
10971      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10972      as_fn_executable_p "$ac_path_SED" || continue
10973# Check for GNU ac_path_SED and select it if it is found.
10974  # Check for GNU $ac_path_SED
10975case `"$ac_path_SED" --version 2>&1` in
10976*GNU*)
10977  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10978*)
10979  ac_count=0
10980  $as_echo_n 0123456789 >"conftest.in"
10981  while :
10982  do
10983    cat "conftest.in" "conftest.in" >"conftest.tmp"
10984    mv "conftest.tmp" "conftest.in"
10985    cp "conftest.in" "conftest.nl"
10986    $as_echo '' >> "conftest.nl"
10987    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10988    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10989    as_fn_arith $ac_count + 1 && ac_count=$as_val
10990    if test $ac_count -gt ${ac_path_SED_max-0}; then
10991      # Best one so far, save it but keep looking for a better one
10992      ac_cv_path_SED="$ac_path_SED"
10993      ac_path_SED_max=$ac_count
10994    fi
10995    # 10*(2^10) chars as input seems more than enough
10996    test $ac_count -gt 10 && break
10997  done
10998  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10999esac
11000
11001      $ac_path_SED_found && break 3
11002    done
11003  done
11004  done
11005IFS=$as_save_IFS
11006  if test -z "$ac_cv_path_SED"; then
11007    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11008  fi
11009else
11010  ac_cv_path_SED=$SED
11011fi
11012
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11015$as_echo "$ac_cv_path_SED" >&6; }
11016 SED="$ac_cv_path_SED"
11017  rm -f conftest.sed
11018
11019test -z "$SED" && SED=sed
11020Xsed="$SED -e 1s/^X//"
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11033$as_echo_n "checking for fgrep... " >&6; }
11034if ${ac_cv_path_FGREP+:} false; then :
11035  $as_echo_n "(cached) " >&6
11036else
11037  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11038   then ac_cv_path_FGREP="$GREP -F"
11039   else
11040     if test -z "$FGREP"; then
11041  ac_path_FGREP_found=false
11042  # Loop through the user's path and test for each of PROGNAME-LIST
11043  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11045do
11046  IFS=$as_save_IFS
11047  test -z "$as_dir" && as_dir=.
11048    for ac_prog in fgrep; do
11049    for ac_exec_ext in '' $ac_executable_extensions; do
11050      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11051      as_fn_executable_p "$ac_path_FGREP" || continue
11052# Check for GNU ac_path_FGREP and select it if it is found.
11053  # Check for GNU $ac_path_FGREP
11054case `"$ac_path_FGREP" --version 2>&1` in
11055*GNU*)
11056  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11057*)
11058  ac_count=0
11059  $as_echo_n 0123456789 >"conftest.in"
11060  while :
11061  do
11062    cat "conftest.in" "conftest.in" >"conftest.tmp"
11063    mv "conftest.tmp" "conftest.in"
11064    cp "conftest.in" "conftest.nl"
11065    $as_echo 'FGREP' >> "conftest.nl"
11066    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11067    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11068    as_fn_arith $ac_count + 1 && ac_count=$as_val
11069    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11070      # Best one so far, save it but keep looking for a better one
11071      ac_cv_path_FGREP="$ac_path_FGREP"
11072      ac_path_FGREP_max=$ac_count
11073    fi
11074    # 10*(2^10) chars as input seems more than enough
11075    test $ac_count -gt 10 && break
11076  done
11077  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11078esac
11079
11080      $ac_path_FGREP_found && break 3
11081    done
11082  done
11083  done
11084IFS=$as_save_IFS
11085  if test -z "$ac_cv_path_FGREP"; then
11086    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11087  fi
11088else
11089  ac_cv_path_FGREP=$FGREP
11090fi
11091
11092   fi
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11095$as_echo "$ac_cv_path_FGREP" >&6; }
11096 FGREP="$ac_cv_path_FGREP"
11097
11098
11099test -z "$GREP" && GREP=grep
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119# Check whether --with-gnu-ld was given.
11120if test "${with_gnu_ld+set}" = set; then :
11121  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11122else
11123  with_gnu_ld=no
11124fi
11125
11126ac_prog=ld
11127if test yes = "$GCC"; then
11128  # Check if gcc -print-prog-name=ld gives a path.
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11130$as_echo_n "checking for ld used by $CC... " >&6; }
11131  case $host in
11132  *-*-mingw*)
11133    # gcc leaves a trailing carriage return, which upsets mingw
11134    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11135  *)
11136    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11137  esac
11138  case $ac_prog in
11139    # Accept absolute paths.
11140    [\\/]* | ?:[\\/]*)
11141      re_direlt='/[^/][^/]*/\.\./'
11142      # Canonicalize the pathname of ld
11143      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11144      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11145	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11146      done
11147      test -z "$LD" && LD=$ac_prog
11148      ;;
11149  "")
11150    # If it fails, then pretend we aren't using GCC.
11151    ac_prog=ld
11152    ;;
11153  *)
11154    # If it is relative, then search for the first ld in PATH.
11155    with_gnu_ld=unknown
11156    ;;
11157  esac
11158elif test yes = "$with_gnu_ld"; then
11159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11160$as_echo_n "checking for GNU ld... " >&6; }
11161else
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11163$as_echo_n "checking for non-GNU ld... " >&6; }
11164fi
11165if ${lt_cv_path_LD+:} false; then :
11166  $as_echo_n "(cached) " >&6
11167else
11168  if test -z "$LD"; then
11169  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11170  for ac_dir in $PATH; do
11171    IFS=$lt_save_ifs
11172    test -z "$ac_dir" && ac_dir=.
11173    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11174      lt_cv_path_LD=$ac_dir/$ac_prog
11175      # Check to see if the program is GNU ld.  I'd rather use --version,
11176      # but apparently some variants of GNU ld only accept -v.
11177      # Break only if it was the GNU/non-GNU ld that we prefer.
11178      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11179      *GNU* | *'with BFD'*)
11180	test no != "$with_gnu_ld" && break
11181	;;
11182      *)
11183	test yes != "$with_gnu_ld" && break
11184	;;
11185      esac
11186    fi
11187  done
11188  IFS=$lt_save_ifs
11189else
11190  lt_cv_path_LD=$LD # Let the user override the test with a path.
11191fi
11192fi
11193
11194LD=$lt_cv_path_LD
11195if test -n "$LD"; then
11196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11197$as_echo "$LD" >&6; }
11198else
11199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200$as_echo "no" >&6; }
11201fi
11202test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11204$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11205if ${lt_cv_prog_gnu_ld+:} false; then :
11206  $as_echo_n "(cached) " >&6
11207else
11208  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11209case `$LD -v 2>&1 </dev/null` in
11210*GNU* | *'with BFD'*)
11211  lt_cv_prog_gnu_ld=yes
11212  ;;
11213*)
11214  lt_cv_prog_gnu_ld=no
11215  ;;
11216esac
11217fi
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11219$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11220with_gnu_ld=$lt_cv_prog_gnu_ld
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11231$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11232if ${lt_cv_path_NM+:} false; then :
11233  $as_echo_n "(cached) " >&6
11234else
11235  if test -n "$NM"; then
11236  # Let the user override the test.
11237  lt_cv_path_NM=$NM
11238else
11239  lt_nm_to_check=${ac_tool_prefix}nm
11240  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11241    lt_nm_to_check="$lt_nm_to_check nm"
11242  fi
11243  for lt_tmp_nm in $lt_nm_to_check; do
11244    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11245    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11246      IFS=$lt_save_ifs
11247      test -z "$ac_dir" && ac_dir=.
11248      tmp_nm=$ac_dir/$lt_tmp_nm
11249      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11250	# Check to see if the nm accepts a BSD-compat flag.
11251	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11252	#   nm: unknown option "B" ignored
11253	# Tru64's nm complains that /dev/null is an invalid object file
11254	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11255	case $build_os in
11256	mingw*) lt_bad_file=conftest.nm/nofile ;;
11257	*) lt_bad_file=/dev/null ;;
11258	esac
11259	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11260	*$lt_bad_file* | *'Invalid file or object type'*)
11261	  lt_cv_path_NM="$tmp_nm -B"
11262	  break 2
11263	  ;;
11264	*)
11265	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11266	  */dev/null*)
11267	    lt_cv_path_NM="$tmp_nm -p"
11268	    break 2
11269	    ;;
11270	  *)
11271	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11272	    continue # so that we can try to find one that supports BSD flags
11273	    ;;
11274	  esac
11275	  ;;
11276	esac
11277      fi
11278    done
11279    IFS=$lt_save_ifs
11280  done
11281  : ${lt_cv_path_NM=no}
11282fi
11283fi
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11285$as_echo "$lt_cv_path_NM" >&6; }
11286if test no != "$lt_cv_path_NM"; then
11287  NM=$lt_cv_path_NM
11288else
11289  # Didn't find any BSD compatible name lister, look for dumpbin.
11290  if test -n "$DUMPBIN"; then :
11291    # Let the user override the test.
11292  else
11293    if test -n "$ac_tool_prefix"; then
11294  for ac_prog in dumpbin "link -dump"
11295  do
11296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11299$as_echo_n "checking for $ac_word... " >&6; }
11300if ${ac_cv_prog_DUMPBIN+:} false; then :
11301  $as_echo_n "(cached) " >&6
11302else
11303  if test -n "$DUMPBIN"; then
11304  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11305else
11306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $PATH
11308do
11309  IFS=$as_save_IFS
11310  test -z "$as_dir" && as_dir=.
11311    for ac_exec_ext in '' $ac_executable_extensions; do
11312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11313    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315    break 2
11316  fi
11317done
11318  done
11319IFS=$as_save_IFS
11320
11321fi
11322fi
11323DUMPBIN=$ac_cv_prog_DUMPBIN
11324if test -n "$DUMPBIN"; then
11325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11326$as_echo "$DUMPBIN" >&6; }
11327else
11328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329$as_echo "no" >&6; }
11330fi
11331
11332
11333    test -n "$DUMPBIN" && break
11334  done
11335fi
11336if test -z "$DUMPBIN"; then
11337  ac_ct_DUMPBIN=$DUMPBIN
11338  for ac_prog in dumpbin "link -dump"
11339do
11340  # Extract the first word of "$ac_prog", so it can be a program name with args.
11341set dummy $ac_prog; ac_word=$2
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343$as_echo_n "checking for $ac_word... " >&6; }
11344if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11345  $as_echo_n "(cached) " >&6
11346else
11347  if test -n "$ac_ct_DUMPBIN"; then
11348  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11349else
11350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353  IFS=$as_save_IFS
11354  test -z "$as_dir" && as_dir=.
11355    for ac_exec_ext in '' $ac_executable_extensions; do
11356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11357    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359    break 2
11360  fi
11361done
11362  done
11363IFS=$as_save_IFS
11364
11365fi
11366fi
11367ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11368if test -n "$ac_ct_DUMPBIN"; then
11369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11370$as_echo "$ac_ct_DUMPBIN" >&6; }
11371else
11372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373$as_echo "no" >&6; }
11374fi
11375
11376
11377  test -n "$ac_ct_DUMPBIN" && break
11378done
11379
11380  if test "x$ac_ct_DUMPBIN" = x; then
11381    DUMPBIN=":"
11382  else
11383    case $cross_compiling:$ac_tool_warned in
11384yes:)
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11387ac_tool_warned=yes ;;
11388esac
11389    DUMPBIN=$ac_ct_DUMPBIN
11390  fi
11391fi
11392
11393    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11394    *COFF*)
11395      DUMPBIN="$DUMPBIN -symbols -headers"
11396      ;;
11397    *)
11398      DUMPBIN=:
11399      ;;
11400    esac
11401  fi
11402
11403  if test : != "$DUMPBIN"; then
11404    NM=$DUMPBIN
11405  fi
11406fi
11407test -z "$NM" && NM=nm
11408
11409
11410
11411
11412
11413
11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11415$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11416if ${lt_cv_nm_interface+:} false; then :
11417  $as_echo_n "(cached) " >&6
11418else
11419  lt_cv_nm_interface="BSD nm"
11420  echo "int some_variable = 0;" > conftest.$ac_ext
11421  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11422  (eval "$ac_compile" 2>conftest.err)
11423  cat conftest.err >&5
11424  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11425  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11426  cat conftest.err >&5
11427  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11428  cat conftest.out >&5
11429  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11430    lt_cv_nm_interface="MS dumpbin"
11431  fi
11432  rm -f conftest*
11433fi
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11435$as_echo "$lt_cv_nm_interface" >&6; }
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11438$as_echo_n "checking whether ln -s works... " >&6; }
11439LN_S=$as_ln_s
11440if test "$LN_S" = "ln -s"; then
11441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442$as_echo "yes" >&6; }
11443else
11444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11445$as_echo "no, using $LN_S" >&6; }
11446fi
11447
11448# find the maximum length of command line arguments
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11450$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11451if ${lt_cv_sys_max_cmd_len+:} false; then :
11452  $as_echo_n "(cached) " >&6
11453else
11454    i=0
11455  teststring=ABCD
11456
11457  case $build_os in
11458  msdosdjgpp*)
11459    # On DJGPP, this test can blow up pretty badly due to problems in libc
11460    # (any single argument exceeding 2000 bytes causes a buffer overrun
11461    # during glob expansion).  Even if it were fixed, the result of this
11462    # check would be larger than it should be.
11463    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11464    ;;
11465
11466  gnu*)
11467    # Under GNU Hurd, this test is not required because there is
11468    # no limit to the length of command line arguments.
11469    # Libtool will interpret -1 as no limit whatsoever
11470    lt_cv_sys_max_cmd_len=-1;
11471    ;;
11472
11473  cygwin* | mingw* | cegcc*)
11474    # On Win9x/ME, this test blows up -- it succeeds, but takes
11475    # about 5 minutes as the teststring grows exponentially.
11476    # Worse, since 9x/ME are not pre-emptively multitasking,
11477    # you end up with a "frozen" computer, even though with patience
11478    # the test eventually succeeds (with a max line length of 256k).
11479    # Instead, let's just punt: use the minimum linelength reported by
11480    # all of the supported platforms: 8192 (on NT/2K/XP).
11481    lt_cv_sys_max_cmd_len=8192;
11482    ;;
11483
11484  mint*)
11485    # On MiNT this can take a long time and run out of memory.
11486    lt_cv_sys_max_cmd_len=8192;
11487    ;;
11488
11489  amigaos*)
11490    # On AmigaOS with pdksh, this test takes hours, literally.
11491    # So we just punt and use a minimum line length of 8192.
11492    lt_cv_sys_max_cmd_len=8192;
11493    ;;
11494
11495  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11496    # This has been around since 386BSD, at least.  Likely further.
11497    if test -x /sbin/sysctl; then
11498      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11499    elif test -x /usr/sbin/sysctl; then
11500      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11501    else
11502      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11503    fi
11504    # And add a safety zone
11505    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11506    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11507    ;;
11508
11509  interix*)
11510    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11511    lt_cv_sys_max_cmd_len=196608
11512    ;;
11513
11514  os2*)
11515    # The test takes a long time on OS/2.
11516    lt_cv_sys_max_cmd_len=8192
11517    ;;
11518
11519  osf*)
11520    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11521    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11522    # nice to cause kernel panics so lets avoid the loop below.
11523    # First set a reasonable default.
11524    lt_cv_sys_max_cmd_len=16384
11525    #
11526    if test -x /sbin/sysconfig; then
11527      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11528        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11529      esac
11530    fi
11531    ;;
11532  sco3.2v5*)
11533    lt_cv_sys_max_cmd_len=102400
11534    ;;
11535  sysv5* | sco5v6* | sysv4.2uw2*)
11536    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11537    if test -n "$kargmax"; then
11538      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11539    else
11540      lt_cv_sys_max_cmd_len=32768
11541    fi
11542    ;;
11543  *)
11544    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11545    if test -n "$lt_cv_sys_max_cmd_len" && \
11546       test undefined != "$lt_cv_sys_max_cmd_len"; then
11547      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11548      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11549    else
11550      # Make teststring a little bigger before we do anything with it.
11551      # a 1K string should be a reasonable start.
11552      for i in 1 2 3 4 5 6 7 8; do
11553        teststring=$teststring$teststring
11554      done
11555      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11556      # If test is not a shell built-in, we'll probably end up computing a
11557      # maximum length that is only half of the actual maximum length, but
11558      # we can't tell.
11559      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11560	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11561	      test 17 != "$i" # 1/2 MB should be enough
11562      do
11563        i=`expr $i + 1`
11564        teststring=$teststring$teststring
11565      done
11566      # Only check the string length outside the loop.
11567      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11568      teststring=
11569      # Add a significant safety factor because C++ compilers can tack on
11570      # massive amounts of additional arguments before passing them to the
11571      # linker.  It appears as though 1/2 is a usable value.
11572      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11573    fi
11574    ;;
11575  esac
11576
11577fi
11578
11579if test -n "$lt_cv_sys_max_cmd_len"; then
11580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11581$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11582else
11583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11584$as_echo "none" >&6; }
11585fi
11586max_cmd_len=$lt_cv_sys_max_cmd_len
11587
11588
11589
11590
11591
11592
11593: ${CP="cp -f"}
11594: ${MV="mv -f"}
11595: ${RM="rm -f"}
11596
11597if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11598  lt_unset=unset
11599else
11600  lt_unset=false
11601fi
11602
11603
11604
11605
11606
11607# test EBCDIC or ASCII
11608case `echo X|tr X '\101'` in
11609 A) # ASCII based system
11610    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11611  lt_SP2NL='tr \040 \012'
11612  lt_NL2SP='tr \015\012 \040\040'
11613  ;;
11614 *) # EBCDIC based system
11615  lt_SP2NL='tr \100 \n'
11616  lt_NL2SP='tr \r\n \100\100'
11617  ;;
11618esac
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11629$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11630if ${lt_cv_to_host_file_cmd+:} false; then :
11631  $as_echo_n "(cached) " >&6
11632else
11633  case $host in
11634  *-*-mingw* )
11635    case $build in
11636      *-*-mingw* ) # actually msys
11637        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11638        ;;
11639      *-*-cygwin* )
11640        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11641        ;;
11642      * ) # otherwise, assume *nix
11643        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11644        ;;
11645    esac
11646    ;;
11647  *-*-cygwin* )
11648    case $build in
11649      *-*-mingw* ) # actually msys
11650        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11651        ;;
11652      *-*-cygwin* )
11653        lt_cv_to_host_file_cmd=func_convert_file_noop
11654        ;;
11655      * ) # otherwise, assume *nix
11656        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11657        ;;
11658    esac
11659    ;;
11660  * ) # unhandled hosts (and "normal" native builds)
11661    lt_cv_to_host_file_cmd=func_convert_file_noop
11662    ;;
11663esac
11664
11665fi
11666
11667to_host_file_cmd=$lt_cv_to_host_file_cmd
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11669$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11670
11671
11672
11673
11674
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11676$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11677if ${lt_cv_to_tool_file_cmd+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  #assume ordinary cross tools, or native build.
11681lt_cv_to_tool_file_cmd=func_convert_file_noop
11682case $host in
11683  *-*-mingw* )
11684    case $build in
11685      *-*-mingw* ) # actually msys
11686        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11687        ;;
11688    esac
11689    ;;
11690esac
11691
11692fi
11693
11694to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11696$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11697
11698
11699
11700
11701
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11703$as_echo_n "checking for $LD option to reload object files... " >&6; }
11704if ${lt_cv_ld_reload_flag+:} false; then :
11705  $as_echo_n "(cached) " >&6
11706else
11707  lt_cv_ld_reload_flag='-r'
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11710$as_echo "$lt_cv_ld_reload_flag" >&6; }
11711reload_flag=$lt_cv_ld_reload_flag
11712case $reload_flag in
11713"" | " "*) ;;
11714*) reload_flag=" $reload_flag" ;;
11715esac
11716reload_cmds='$LD$reload_flag -o $output$reload_objs'
11717case $host_os in
11718  cygwin* | mingw* | pw32* | cegcc*)
11719    if test yes != "$GCC"; then
11720      reload_cmds=false
11721    fi
11722    ;;
11723  darwin*)
11724    if test yes = "$GCC"; then
11725      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11726    else
11727      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11728    fi
11729    ;;
11730esac
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740if test -n "$ac_tool_prefix"; then
11741  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11742set dummy ${ac_tool_prefix}objdump; ac_word=$2
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if ${ac_cv_prog_OBJDUMP+:} false; then :
11746  $as_echo_n "(cached) " >&6
11747else
11748  if test -n "$OBJDUMP"; then
11749  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11750else
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754  IFS=$as_save_IFS
11755  test -z "$as_dir" && as_dir=.
11756    for ac_exec_ext in '' $ac_executable_extensions; do
11757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11758    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760    break 2
11761  fi
11762done
11763  done
11764IFS=$as_save_IFS
11765
11766fi
11767fi
11768OBJDUMP=$ac_cv_prog_OBJDUMP
11769if test -n "$OBJDUMP"; then
11770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11771$as_echo "$OBJDUMP" >&6; }
11772else
11773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
11775fi
11776
11777
11778fi
11779if test -z "$ac_cv_prog_OBJDUMP"; then
11780  ac_ct_OBJDUMP=$OBJDUMP
11781  # Extract the first word of "objdump", so it can be a program name with args.
11782set dummy objdump; ac_word=$2
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784$as_echo_n "checking for $ac_word... " >&6; }
11785if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11786  $as_echo_n "(cached) " >&6
11787else
11788  if test -n "$ac_ct_OBJDUMP"; then
11789  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794  IFS=$as_save_IFS
11795  test -z "$as_dir" && as_dir=.
11796    for ac_exec_ext in '' $ac_executable_extensions; do
11797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11798    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11800    break 2
11801  fi
11802done
11803  done
11804IFS=$as_save_IFS
11805
11806fi
11807fi
11808ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11809if test -n "$ac_ct_OBJDUMP"; then
11810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11811$as_echo "$ac_ct_OBJDUMP" >&6; }
11812else
11813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
11815fi
11816
11817  if test "x$ac_ct_OBJDUMP" = x; then
11818    OBJDUMP="false"
11819  else
11820    case $cross_compiling:$ac_tool_warned in
11821yes:)
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11824ac_tool_warned=yes ;;
11825esac
11826    OBJDUMP=$ac_ct_OBJDUMP
11827  fi
11828else
11829  OBJDUMP="$ac_cv_prog_OBJDUMP"
11830fi
11831
11832test -z "$OBJDUMP" && OBJDUMP=objdump
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11843$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11844if ${lt_cv_deplibs_check_method+:} false; then :
11845  $as_echo_n "(cached) " >&6
11846else
11847  lt_cv_file_magic_cmd='$MAGIC_CMD'
11848lt_cv_file_magic_test_file=
11849lt_cv_deplibs_check_method='unknown'
11850# Need to set the preceding variable on all platforms that support
11851# interlibrary dependencies.
11852# 'none' -- dependencies not supported.
11853# 'unknown' -- same as none, but documents that we really don't know.
11854# 'pass_all' -- all dependencies passed with no checks.
11855# 'test_compile' -- check by making test program.
11856# 'file_magic [[regex]]' -- check by looking for files in library path
11857# that responds to the $file_magic_cmd with a given extended regex.
11858# If you have 'file' or equivalent on your system and you're not sure
11859# whether 'pass_all' will *always* work, you probably want this one.
11860
11861case $host_os in
11862aix[4-9]*)
11863  lt_cv_deplibs_check_method=pass_all
11864  ;;
11865
11866beos*)
11867  lt_cv_deplibs_check_method=pass_all
11868  ;;
11869
11870bsdi[45]*)
11871  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11872  lt_cv_file_magic_cmd='/usr/bin/file -L'
11873  lt_cv_file_magic_test_file=/shlib/libc.so
11874  ;;
11875
11876cygwin*)
11877  # func_win32_libid is a shell function defined in ltmain.sh
11878  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11879  lt_cv_file_magic_cmd='func_win32_libid'
11880  ;;
11881
11882mingw* | pw32*)
11883  # Base MSYS/MinGW do not provide the 'file' command needed by
11884  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11885  # unless we find 'file', for example because we are cross-compiling.
11886  if ( file / ) >/dev/null 2>&1; then
11887    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11888    lt_cv_file_magic_cmd='func_win32_libid'
11889  else
11890    # Keep this pattern in sync with the one in func_win32_libid.
11891    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11892    lt_cv_file_magic_cmd='$OBJDUMP -f'
11893  fi
11894  ;;
11895
11896cegcc*)
11897  # use the weaker test based on 'objdump'. See mingw*.
11898  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11899  lt_cv_file_magic_cmd='$OBJDUMP -f'
11900  ;;
11901
11902darwin* | rhapsody*)
11903  lt_cv_deplibs_check_method=pass_all
11904  ;;
11905
11906freebsd* | dragonfly*)
11907  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11908    case $host_cpu in
11909    i*86 )
11910      # Not sure whether the presence of OpenBSD here was a mistake.
11911      # Let's accept both of them until this is cleared up.
11912      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11913      lt_cv_file_magic_cmd=/usr/bin/file
11914      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11915      ;;
11916    esac
11917  else
11918    lt_cv_deplibs_check_method=pass_all
11919  fi
11920  ;;
11921
11922haiku*)
11923  lt_cv_deplibs_check_method=pass_all
11924  ;;
11925
11926hpux10.20* | hpux11*)
11927  lt_cv_file_magic_cmd=/usr/bin/file
11928  case $host_cpu in
11929  ia64*)
11930    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11931    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11932    ;;
11933  hppa*64*)
11934    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]'
11935    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11936    ;;
11937  *)
11938    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11939    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11940    ;;
11941  esac
11942  ;;
11943
11944interix[3-9]*)
11945  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11946  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11947  ;;
11948
11949irix5* | irix6* | nonstopux*)
11950  case $LD in
11951  *-32|*"-32 ") libmagic=32-bit;;
11952  *-n32|*"-n32 ") libmagic=N32;;
11953  *-64|*"-64 ") libmagic=64-bit;;
11954  *) libmagic=never-match;;
11955  esac
11956  lt_cv_deplibs_check_method=pass_all
11957  ;;
11958
11959# This must be glibc/ELF.
11960linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11961  lt_cv_deplibs_check_method=pass_all
11962  ;;
11963
11964netbsd*)
11965  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11966    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11967  else
11968    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11969  fi
11970  ;;
11971
11972newos6*)
11973  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11974  lt_cv_file_magic_cmd=/usr/bin/file
11975  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11976  ;;
11977
11978*nto* | *qnx*)
11979  lt_cv_deplibs_check_method=pass_all
11980  ;;
11981
11982openbsd* | bitrig*)
11983  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11984    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11985  else
11986    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11987  fi
11988  ;;
11989
11990osf3* | osf4* | osf5*)
11991  lt_cv_deplibs_check_method=pass_all
11992  ;;
11993
11994rdos*)
11995  lt_cv_deplibs_check_method=pass_all
11996  ;;
11997
11998solaris*)
11999  lt_cv_deplibs_check_method=pass_all
12000  ;;
12001
12002sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12003  lt_cv_deplibs_check_method=pass_all
12004  ;;
12005
12006sysv4 | sysv4.3*)
12007  case $host_vendor in
12008  motorola)
12009    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]'
12010    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12011    ;;
12012  ncr)
12013    lt_cv_deplibs_check_method=pass_all
12014    ;;
12015  sequent)
12016    lt_cv_file_magic_cmd='/bin/file'
12017    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12018    ;;
12019  sni)
12020    lt_cv_file_magic_cmd='/bin/file'
12021    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12022    lt_cv_file_magic_test_file=/lib/libc.so
12023    ;;
12024  siemens)
12025    lt_cv_deplibs_check_method=pass_all
12026    ;;
12027  pc)
12028    lt_cv_deplibs_check_method=pass_all
12029    ;;
12030  esac
12031  ;;
12032
12033tpf*)
12034  lt_cv_deplibs_check_method=pass_all
12035  ;;
12036os2*)
12037  lt_cv_deplibs_check_method=pass_all
12038  ;;
12039esac
12040
12041fi
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12043$as_echo "$lt_cv_deplibs_check_method" >&6; }
12044
12045file_magic_glob=
12046want_nocaseglob=no
12047if test "$build" = "$host"; then
12048  case $host_os in
12049  mingw* | pw32*)
12050    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12051      want_nocaseglob=yes
12052    else
12053      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12054    fi
12055    ;;
12056  esac
12057fi
12058
12059file_magic_cmd=$lt_cv_file_magic_cmd
12060deplibs_check_method=$lt_cv_deplibs_check_method
12061test -z "$deplibs_check_method" && deplibs_check_method=unknown
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084if test -n "$ac_tool_prefix"; then
12085  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12086set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if ${ac_cv_prog_DLLTOOL+:} false; then :
12090  $as_echo_n "(cached) " >&6
12091else
12092  if test -n "$DLLTOOL"; then
12093  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098  IFS=$as_save_IFS
12099  test -z "$as_dir" && as_dir=.
12100    for ac_exec_ext in '' $ac_executable_extensions; do
12101  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12103    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104    break 2
12105  fi
12106done
12107  done
12108IFS=$as_save_IFS
12109
12110fi
12111fi
12112DLLTOOL=$ac_cv_prog_DLLTOOL
12113if test -n "$DLLTOOL"; then
12114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12115$as_echo "$DLLTOOL" >&6; }
12116else
12117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
12119fi
12120
12121
12122fi
12123if test -z "$ac_cv_prog_DLLTOOL"; then
12124  ac_ct_DLLTOOL=$DLLTOOL
12125  # Extract the first word of "dlltool", so it can be a program name with args.
12126set dummy dlltool; ac_word=$2
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128$as_echo_n "checking for $ac_word... " >&6; }
12129if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  if test -n "$ac_ct_DLLTOOL"; then
12133  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12134else
12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138  IFS=$as_save_IFS
12139  test -z "$as_dir" && as_dir=.
12140    for ac_exec_ext in '' $ac_executable_extensions; do
12141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12142    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144    break 2
12145  fi
12146done
12147  done
12148IFS=$as_save_IFS
12149
12150fi
12151fi
12152ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12153if test -n "$ac_ct_DLLTOOL"; then
12154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12155$as_echo "$ac_ct_DLLTOOL" >&6; }
12156else
12157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
12159fi
12160
12161  if test "x$ac_ct_DLLTOOL" = x; then
12162    DLLTOOL="false"
12163  else
12164    case $cross_compiling:$ac_tool_warned in
12165yes:)
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12168ac_tool_warned=yes ;;
12169esac
12170    DLLTOOL=$ac_ct_DLLTOOL
12171  fi
12172else
12173  DLLTOOL="$ac_cv_prog_DLLTOOL"
12174fi
12175
12176test -z "$DLLTOOL" && DLLTOOL=dlltool
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12188$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12189if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12190  $as_echo_n "(cached) " >&6
12191else
12192  lt_cv_sharedlib_from_linklib_cmd='unknown'
12193
12194case $host_os in
12195cygwin* | mingw* | pw32* | cegcc*)
12196  # two different shell functions defined in ltmain.sh;
12197  # decide which one to use based on capabilities of $DLLTOOL
12198  case `$DLLTOOL --help 2>&1` in
12199  *--identify-strict*)
12200    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12201    ;;
12202  *)
12203    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12204    ;;
12205  esac
12206  ;;
12207*)
12208  # fallback: assume linklib IS sharedlib
12209  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12210  ;;
12211esac
12212
12213fi
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12215$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12216sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12217test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12218
12219
12220
12221
12222
12223
12224
12225if test -n "$ac_tool_prefix"; then
12226  for ac_prog in ar
12227  do
12228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231$as_echo_n "checking for $ac_word... " >&6; }
12232if ${ac_cv_prog_AR+:} false; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  if test -n "$AR"; then
12236  ac_cv_prog_AR="$AR" # Let the user override the test.
12237else
12238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239for as_dir in $PATH
12240do
12241  IFS=$as_save_IFS
12242  test -z "$as_dir" && as_dir=.
12243    for ac_exec_ext in '' $ac_executable_extensions; do
12244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247    break 2
12248  fi
12249done
12250  done
12251IFS=$as_save_IFS
12252
12253fi
12254fi
12255AR=$ac_cv_prog_AR
12256if test -n "$AR"; then
12257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12258$as_echo "$AR" >&6; }
12259else
12260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261$as_echo "no" >&6; }
12262fi
12263
12264
12265    test -n "$AR" && break
12266  done
12267fi
12268if test -z "$AR"; then
12269  ac_ct_AR=$AR
12270  for ac_prog in ar
12271do
12272  # Extract the first word of "$ac_prog", so it can be a program name with args.
12273set dummy $ac_prog; ac_word=$2
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275$as_echo_n "checking for $ac_word... " >&6; }
12276if ${ac_cv_prog_ac_ct_AR+:} false; then :
12277  $as_echo_n "(cached) " >&6
12278else
12279  if test -n "$ac_ct_AR"; then
12280  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12281else
12282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283for as_dir in $PATH
12284do
12285  IFS=$as_save_IFS
12286  test -z "$as_dir" && as_dir=.
12287    for ac_exec_ext in '' $ac_executable_extensions; do
12288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289    ac_cv_prog_ac_ct_AR="$ac_prog"
12290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291    break 2
12292  fi
12293done
12294  done
12295IFS=$as_save_IFS
12296
12297fi
12298fi
12299ac_ct_AR=$ac_cv_prog_ac_ct_AR
12300if test -n "$ac_ct_AR"; then
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12302$as_echo "$ac_ct_AR" >&6; }
12303else
12304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
12306fi
12307
12308
12309  test -n "$ac_ct_AR" && break
12310done
12311
12312  if test "x$ac_ct_AR" = x; then
12313    AR="false"
12314  else
12315    case $cross_compiling:$ac_tool_warned in
12316yes:)
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12319ac_tool_warned=yes ;;
12320esac
12321    AR=$ac_ct_AR
12322  fi
12323fi
12324
12325: ${AR=ar}
12326: ${AR_FLAGS=cru}
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12339$as_echo_n "checking for archiver @FILE support... " >&6; }
12340if ${lt_cv_ar_at_file+:} false; then :
12341  $as_echo_n "(cached) " >&6
12342else
12343  lt_cv_ar_at_file=no
12344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345/* end confdefs.h.  */
12346
12347int
12348main ()
12349{
12350
12351  ;
12352  return 0;
12353}
12354_ACEOF
12355if ac_fn_c_try_compile "$LINENO"; then :
12356  echo conftest.$ac_objext > conftest.lst
12357      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12358      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12359  (eval $lt_ar_try) 2>&5
12360  ac_status=$?
12361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362  test $ac_status = 0; }
12363      if test 0 -eq "$ac_status"; then
12364	# Ensure the archiver fails upon bogus file names.
12365	rm -f conftest.$ac_objext libconftest.a
12366	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12367  (eval $lt_ar_try) 2>&5
12368  ac_status=$?
12369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370  test $ac_status = 0; }
12371	if test 0 -ne "$ac_status"; then
12372          lt_cv_ar_at_file=@
12373        fi
12374      fi
12375      rm -f conftest.* libconftest.a
12376
12377fi
12378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379
12380fi
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12382$as_echo "$lt_cv_ar_at_file" >&6; }
12383
12384if test no = "$lt_cv_ar_at_file"; then
12385  archiver_list_spec=
12386else
12387  archiver_list_spec=$lt_cv_ar_at_file
12388fi
12389
12390
12391
12392
12393
12394
12395
12396if test -n "$ac_tool_prefix"; then
12397  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12398set dummy ${ac_tool_prefix}strip; ac_word=$2
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400$as_echo_n "checking for $ac_word... " >&6; }
12401if ${ac_cv_prog_STRIP+:} false; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  if test -n "$STRIP"; then
12405  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12406else
12407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408for as_dir in $PATH
12409do
12410  IFS=$as_save_IFS
12411  test -z "$as_dir" && as_dir=.
12412    for ac_exec_ext in '' $ac_executable_extensions; do
12413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12414    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416    break 2
12417  fi
12418done
12419  done
12420IFS=$as_save_IFS
12421
12422fi
12423fi
12424STRIP=$ac_cv_prog_STRIP
12425if test -n "$STRIP"; then
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12427$as_echo "$STRIP" >&6; }
12428else
12429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430$as_echo "no" >&6; }
12431fi
12432
12433
12434fi
12435if test -z "$ac_cv_prog_STRIP"; then
12436  ac_ct_STRIP=$STRIP
12437  # Extract the first word of "strip", so it can be a program name with args.
12438set dummy strip; ac_word=$2
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440$as_echo_n "checking for $ac_word... " >&6; }
12441if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12442  $as_echo_n "(cached) " >&6
12443else
12444  if test -n "$ac_ct_STRIP"; then
12445  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12446else
12447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448for as_dir in $PATH
12449do
12450  IFS=$as_save_IFS
12451  test -z "$as_dir" && as_dir=.
12452    for ac_exec_ext in '' $ac_executable_extensions; do
12453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12454    ac_cv_prog_ac_ct_STRIP="strip"
12455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456    break 2
12457  fi
12458done
12459  done
12460IFS=$as_save_IFS
12461
12462fi
12463fi
12464ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12465if test -n "$ac_ct_STRIP"; then
12466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12467$as_echo "$ac_ct_STRIP" >&6; }
12468else
12469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
12471fi
12472
12473  if test "x$ac_ct_STRIP" = x; then
12474    STRIP=":"
12475  else
12476    case $cross_compiling:$ac_tool_warned in
12477yes:)
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12480ac_tool_warned=yes ;;
12481esac
12482    STRIP=$ac_ct_STRIP
12483  fi
12484else
12485  STRIP="$ac_cv_prog_STRIP"
12486fi
12487
12488test -z "$STRIP" && STRIP=:
12489
12490
12491
12492
12493
12494
12495if test -n "$ac_tool_prefix"; then
12496  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12497set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499$as_echo_n "checking for $ac_word... " >&6; }
12500if ${ac_cv_prog_RANLIB+:} false; then :
12501  $as_echo_n "(cached) " >&6
12502else
12503  if test -n "$RANLIB"; then
12504  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12505else
12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507for as_dir in $PATH
12508do
12509  IFS=$as_save_IFS
12510  test -z "$as_dir" && as_dir=.
12511    for ac_exec_ext in '' $ac_executable_extensions; do
12512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12513    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515    break 2
12516  fi
12517done
12518  done
12519IFS=$as_save_IFS
12520
12521fi
12522fi
12523RANLIB=$ac_cv_prog_RANLIB
12524if test -n "$RANLIB"; then
12525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12526$as_echo "$RANLIB" >&6; }
12527else
12528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529$as_echo "no" >&6; }
12530fi
12531
12532
12533fi
12534if test -z "$ac_cv_prog_RANLIB"; then
12535  ac_ct_RANLIB=$RANLIB
12536  # Extract the first word of "ranlib", so it can be a program name with args.
12537set dummy ranlib; ac_word=$2
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12539$as_echo_n "checking for $ac_word... " >&6; }
12540if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12541  $as_echo_n "(cached) " >&6
12542else
12543  if test -n "$ac_ct_RANLIB"; then
12544  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12545else
12546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547for as_dir in $PATH
12548do
12549  IFS=$as_save_IFS
12550  test -z "$as_dir" && as_dir=.
12551    for ac_exec_ext in '' $ac_executable_extensions; do
12552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12553    ac_cv_prog_ac_ct_RANLIB="ranlib"
12554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555    break 2
12556  fi
12557done
12558  done
12559IFS=$as_save_IFS
12560
12561fi
12562fi
12563ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12564if test -n "$ac_ct_RANLIB"; then
12565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12566$as_echo "$ac_ct_RANLIB" >&6; }
12567else
12568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569$as_echo "no" >&6; }
12570fi
12571
12572  if test "x$ac_ct_RANLIB" = x; then
12573    RANLIB=":"
12574  else
12575    case $cross_compiling:$ac_tool_warned in
12576yes:)
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12579ac_tool_warned=yes ;;
12580esac
12581    RANLIB=$ac_ct_RANLIB
12582  fi
12583else
12584  RANLIB="$ac_cv_prog_RANLIB"
12585fi
12586
12587test -z "$RANLIB" && RANLIB=:
12588
12589
12590
12591
12592
12593
12594# Determine commands to create old-style static archives.
12595old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12596old_postinstall_cmds='chmod 644 $oldlib'
12597old_postuninstall_cmds=
12598
12599if test -n "$RANLIB"; then
12600  case $host_os in
12601  bitrig* | openbsd*)
12602    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12603    ;;
12604  *)
12605    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12606    ;;
12607  esac
12608  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12609fi
12610
12611case $host_os in
12612  darwin*)
12613    lock_old_archive_extraction=yes ;;
12614  *)
12615    lock_old_archive_extraction=no ;;
12616esac
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656# If no C compiler was specified, use CC.
12657LTCC=${LTCC-"$CC"}
12658
12659# If no C compiler flags were specified, use CFLAGS.
12660LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12661
12662# Allow CC to be a program name with arguments.
12663compiler=$CC
12664
12665
12666# Check for command to grab the raw symbol name followed by C symbol from nm.
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12668$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12669if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12670  $as_echo_n "(cached) " >&6
12671else
12672
12673# These are sane defaults that work on at least a few old systems.
12674# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12675
12676# Character class describing NM global symbol codes.
12677symcode='[BCDEGRST]'
12678
12679# Regexp to match symbols that can be accessed directly from C.
12680sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12681
12682# Define system-specific variables.
12683case $host_os in
12684aix*)
12685  symcode='[BCDT]'
12686  ;;
12687cygwin* | mingw* | pw32* | cegcc*)
12688  symcode='[ABCDGISTW]'
12689  ;;
12690hpux*)
12691  if test ia64 = "$host_cpu"; then
12692    symcode='[ABCDEGRST]'
12693  fi
12694  ;;
12695irix* | nonstopux*)
12696  symcode='[BCDEGRST]'
12697  ;;
12698osf*)
12699  symcode='[BCDEGQRST]'
12700  ;;
12701solaris*)
12702  symcode='[BDRT]'
12703  ;;
12704sco3.2v5*)
12705  symcode='[DT]'
12706  ;;
12707sysv4.2uw2*)
12708  symcode='[DT]'
12709  ;;
12710sysv5* | sco5v6* | unixware* | OpenUNIX*)
12711  symcode='[ABDT]'
12712  ;;
12713sysv4)
12714  symcode='[DFNSTU]'
12715  ;;
12716esac
12717
12718# If we're using GNU nm, then use its standard symbol codes.
12719case `$NM -V 2>&1` in
12720*GNU* | *'with BFD'*)
12721  symcode='[ABCDGIRSTW]' ;;
12722esac
12723
12724if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12725  # Gets list of data symbols to import.
12726  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12727  # Adjust the below global symbol transforms to fixup imported variables.
12728  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12729  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12730  lt_c_name_lib_hook="\
12731  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12732  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12733else
12734  # Disable hooks by default.
12735  lt_cv_sys_global_symbol_to_import=
12736  lt_cdecl_hook=
12737  lt_c_name_hook=
12738  lt_c_name_lib_hook=
12739fi
12740
12741# Transform an extracted symbol line into a proper C declaration.
12742# Some systems (esp. on ia64) link data and code symbols differently,
12743# so use this general approach.
12744lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12745$lt_cdecl_hook\
12746" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12747" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12748
12749# Transform an extracted symbol line into symbol name and symbol address
12750lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12751$lt_c_name_hook\
12752" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12753" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12754
12755# Transform an extracted symbol line into symbol name with lib prefix and
12756# symbol address.
12757lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12758$lt_c_name_lib_hook\
12759" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12760" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12761" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12762
12763# Handle CRLF in mingw tool chain
12764opt_cr=
12765case $build_os in
12766mingw*)
12767  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12768  ;;
12769esac
12770
12771# Try without a prefix underscore, then with it.
12772for ac_symprfx in "" "_"; do
12773
12774  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12775  symxfrm="\\1 $ac_symprfx\\2 \\2"
12776
12777  # Write the raw and C identifiers.
12778  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12779    # Fake it for dumpbin and say T for any non-static function,
12780    # D for any global variable and I for any imported variable.
12781    # Also find C++ and __fastcall symbols from MSVC++,
12782    # which start with @ or ?.
12783    lt_cv_sys_global_symbol_pipe="$AWK '"\
12784"     {last_section=section; section=\$ 3};"\
12785"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12786"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12787"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12788"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12789"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12790"     \$ 0!~/External *\|/{next};"\
12791"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12792"     {if(hide[section]) next};"\
12793"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12794"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12795"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12796"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12797"     ' prfx=^$ac_symprfx"
12798  else
12799    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12800  fi
12801  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12802
12803  # Check to see that the pipe works correctly.
12804  pipe_works=no
12805
12806  rm -f conftest*
12807  cat > conftest.$ac_ext <<_LT_EOF
12808#ifdef __cplusplus
12809extern "C" {
12810#endif
12811char nm_test_var;
12812void nm_test_func(void);
12813void nm_test_func(void){}
12814#ifdef __cplusplus
12815}
12816#endif
12817int main(){nm_test_var='a';nm_test_func();return(0);}
12818_LT_EOF
12819
12820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12821  (eval $ac_compile) 2>&5
12822  ac_status=$?
12823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824  test $ac_status = 0; }; then
12825    # Now try to grab the symbols.
12826    nlist=conftest.nm
12827    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12828  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12829  ac_status=$?
12830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831  test $ac_status = 0; } && test -s "$nlist"; then
12832      # Try sorting and uniquifying the output.
12833      if sort "$nlist" | uniq > "$nlist"T; then
12834	mv -f "$nlist"T "$nlist"
12835      else
12836	rm -f "$nlist"T
12837      fi
12838
12839      # Make sure that we snagged all the symbols we need.
12840      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12841	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12842	  cat <<_LT_EOF > conftest.$ac_ext
12843/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12844#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12845/* DATA imports from DLLs on WIN32 can't be const, because runtime
12846   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12847# define LT_DLSYM_CONST
12848#elif defined __osf__
12849/* This system does not cope well with relocations in const data.  */
12850# define LT_DLSYM_CONST
12851#else
12852# define LT_DLSYM_CONST const
12853#endif
12854
12855#ifdef __cplusplus
12856extern "C" {
12857#endif
12858
12859_LT_EOF
12860	  # Now generate the symbol file.
12861	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12862
12863	  cat <<_LT_EOF >> conftest.$ac_ext
12864
12865/* The mapping between symbol names and symbols.  */
12866LT_DLSYM_CONST struct {
12867  const char *name;
12868  void       *address;
12869}
12870lt__PROGRAM__LTX_preloaded_symbols[] =
12871{
12872  { "@PROGRAM@", (void *) 0 },
12873_LT_EOF
12874	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12875	  cat <<\_LT_EOF >> conftest.$ac_ext
12876  {0, (void *) 0}
12877};
12878
12879/* This works around a problem in FreeBSD linker */
12880#ifdef FREEBSD_WORKAROUND
12881static const void *lt_preloaded_setup() {
12882  return lt__PROGRAM__LTX_preloaded_symbols;
12883}
12884#endif
12885
12886#ifdef __cplusplus
12887}
12888#endif
12889_LT_EOF
12890	  # Now try linking the two files.
12891	  mv conftest.$ac_objext conftstm.$ac_objext
12892	  lt_globsym_save_LIBS=$LIBS
12893	  lt_globsym_save_CFLAGS=$CFLAGS
12894	  LIBS=conftstm.$ac_objext
12895	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12896	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12897  (eval $ac_link) 2>&5
12898  ac_status=$?
12899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12900  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12901	    pipe_works=yes
12902	  fi
12903	  LIBS=$lt_globsym_save_LIBS
12904	  CFLAGS=$lt_globsym_save_CFLAGS
12905	else
12906	  echo "cannot find nm_test_func in $nlist" >&5
12907	fi
12908      else
12909	echo "cannot find nm_test_var in $nlist" >&5
12910      fi
12911    else
12912      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12913    fi
12914  else
12915    echo "$progname: failed program was:" >&5
12916    cat conftest.$ac_ext >&5
12917  fi
12918  rm -rf conftest* conftst*
12919
12920  # Do not use the global_symbol_pipe unless it works.
12921  if test yes = "$pipe_works"; then
12922    break
12923  else
12924    lt_cv_sys_global_symbol_pipe=
12925  fi
12926done
12927
12928fi
12929
12930if test -z "$lt_cv_sys_global_symbol_pipe"; then
12931  lt_cv_sys_global_symbol_to_cdecl=
12932fi
12933if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12935$as_echo "failed" >&6; }
12936else
12937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12938$as_echo "ok" >&6; }
12939fi
12940
12941# Response file support.
12942if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12943  nm_file_list_spec='@'
12944elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12945  nm_file_list_spec='@'
12946fi
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12985$as_echo_n "checking for sysroot... " >&6; }
12986
12987# Check whether --with-sysroot was given.
12988if test "${with_sysroot+set}" = set; then :
12989  withval=$with_sysroot;
12990else
12991  with_sysroot=no
12992fi
12993
12994
12995lt_sysroot=
12996case $with_sysroot in #(
12997 yes)
12998   if test yes = "$GCC"; then
12999     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13000   fi
13001   ;; #(
13002 /*)
13003   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13004   ;; #(
13005 no|'')
13006   ;; #(
13007 *)
13008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13009$as_echo "$with_sysroot" >&6; }
13010   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13011   ;;
13012esac
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13015$as_echo "${lt_sysroot:-no}" >&6; }
13016
13017
13018
13019
13020
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13022$as_echo_n "checking for a working dd... " >&6; }
13023if ${ac_cv_path_lt_DD+:} false; then :
13024  $as_echo_n "(cached) " >&6
13025else
13026  printf 0123456789abcdef0123456789abcdef >conftest.i
13027cat conftest.i conftest.i >conftest2.i
13028: ${lt_DD:=$DD}
13029if test -z "$lt_DD"; then
13030  ac_path_lt_DD_found=false
13031  # Loop through the user's path and test for each of PROGNAME-LIST
13032  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033for as_dir in $PATH
13034do
13035  IFS=$as_save_IFS
13036  test -z "$as_dir" && as_dir=.
13037    for ac_prog in dd; do
13038    for ac_exec_ext in '' $ac_executable_extensions; do
13039      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13040      as_fn_executable_p "$ac_path_lt_DD" || continue
13041if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13042  cmp -s conftest.i conftest.out \
13043  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13044fi
13045      $ac_path_lt_DD_found && break 3
13046    done
13047  done
13048  done
13049IFS=$as_save_IFS
13050  if test -z "$ac_cv_path_lt_DD"; then
13051    :
13052  fi
13053else
13054  ac_cv_path_lt_DD=$lt_DD
13055fi
13056
13057rm -f conftest.i conftest2.i conftest.out
13058fi
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13060$as_echo "$ac_cv_path_lt_DD" >&6; }
13061
13062
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13064$as_echo_n "checking how to truncate binary pipes... " >&6; }
13065if ${lt_cv_truncate_bin+:} false; then :
13066  $as_echo_n "(cached) " >&6
13067else
13068  printf 0123456789abcdef0123456789abcdef >conftest.i
13069cat conftest.i conftest.i >conftest2.i
13070lt_cv_truncate_bin=
13071if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13072  cmp -s conftest.i conftest.out \
13073  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13074fi
13075rm -f conftest.i conftest2.i conftest.out
13076test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13077fi
13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13079$as_echo "$lt_cv_truncate_bin" >&6; }
13080
13081
13082
13083
13084
13085
13086
13087# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13088func_cc_basename ()
13089{
13090    for cc_temp in $*""; do
13091      case $cc_temp in
13092        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13093        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13094        \-*) ;;
13095        *) break;;
13096      esac
13097    done
13098    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13099}
13100
13101# Check whether --enable-libtool-lock was given.
13102if test "${enable_libtool_lock+set}" = set; then :
13103  enableval=$enable_libtool_lock;
13104fi
13105
13106test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13107
13108# Some flags need to be propagated to the compiler or linker for good
13109# libtool support.
13110case $host in
13111ia64-*-hpux*)
13112  # Find out what ABI is being produced by ac_compile, and set mode
13113  # options accordingly.
13114  echo 'int i;' > conftest.$ac_ext
13115  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13116  (eval $ac_compile) 2>&5
13117  ac_status=$?
13118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13119  test $ac_status = 0; }; then
13120    case `/usr/bin/file conftest.$ac_objext` in
13121      *ELF-32*)
13122	HPUX_IA64_MODE=32
13123	;;
13124      *ELF-64*)
13125	HPUX_IA64_MODE=64
13126	;;
13127    esac
13128  fi
13129  rm -rf conftest*
13130  ;;
13131*-*-irix6*)
13132  # Find out what ABI is being produced by ac_compile, and set linker
13133  # options accordingly.
13134  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13135  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13136  (eval $ac_compile) 2>&5
13137  ac_status=$?
13138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13139  test $ac_status = 0; }; then
13140    if test yes = "$lt_cv_prog_gnu_ld"; then
13141      case `/usr/bin/file conftest.$ac_objext` in
13142	*32-bit*)
13143	  LD="${LD-ld} -melf32bsmip"
13144	  ;;
13145	*N32*)
13146	  LD="${LD-ld} -melf32bmipn32"
13147	  ;;
13148	*64-bit*)
13149	  LD="${LD-ld} -melf64bmip"
13150	;;
13151      esac
13152    else
13153      case `/usr/bin/file conftest.$ac_objext` in
13154	*32-bit*)
13155	  LD="${LD-ld} -32"
13156	  ;;
13157	*N32*)
13158	  LD="${LD-ld} -n32"
13159	  ;;
13160	*64-bit*)
13161	  LD="${LD-ld} -64"
13162	  ;;
13163      esac
13164    fi
13165  fi
13166  rm -rf conftest*
13167  ;;
13168
13169mips64*-*linux*)
13170  # Find out what ABI is being produced by ac_compile, and set linker
13171  # options accordingly.
13172  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13173  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13174  (eval $ac_compile) 2>&5
13175  ac_status=$?
13176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13177  test $ac_status = 0; }; then
13178    emul=elf
13179    case `/usr/bin/file conftest.$ac_objext` in
13180      *32-bit*)
13181	emul="${emul}32"
13182	;;
13183      *64-bit*)
13184	emul="${emul}64"
13185	;;
13186    esac
13187    case `/usr/bin/file conftest.$ac_objext` in
13188      *MSB*)
13189	emul="${emul}btsmip"
13190	;;
13191      *LSB*)
13192	emul="${emul}ltsmip"
13193	;;
13194    esac
13195    case `/usr/bin/file conftest.$ac_objext` in
13196      *N32*)
13197	emul="${emul}n32"
13198	;;
13199    esac
13200    LD="${LD-ld} -m $emul"
13201  fi
13202  rm -rf conftest*
13203  ;;
13204
13205x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13206s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13207  # Find out what ABI is being produced by ac_compile, and set linker
13208  # options accordingly.  Note that the listed cases only cover the
13209  # situations where additional linker options are needed (such as when
13210  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13211  # vice versa); the common cases where no linker options are needed do
13212  # not appear in the list.
13213  echo 'int i;' > conftest.$ac_ext
13214  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13215  (eval $ac_compile) 2>&5
13216  ac_status=$?
13217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218  test $ac_status = 0; }; then
13219    case `/usr/bin/file conftest.o` in
13220      *32-bit*)
13221	case $host in
13222	  x86_64-*kfreebsd*-gnu)
13223	    LD="${LD-ld} -m elf_i386_fbsd"
13224	    ;;
13225	  x86_64-*linux*)
13226	    case `/usr/bin/file conftest.o` in
13227	      *x86-64*)
13228		LD="${LD-ld} -m elf32_x86_64"
13229		;;
13230	      *)
13231		LD="${LD-ld} -m elf_i386"
13232		;;
13233	    esac
13234	    ;;
13235	  powerpc64le-*linux*)
13236	    LD="${LD-ld} -m elf32lppclinux"
13237	    ;;
13238	  powerpc64-*linux*)
13239	    LD="${LD-ld} -m elf32ppclinux"
13240	    ;;
13241	  s390x-*linux*)
13242	    LD="${LD-ld} -m elf_s390"
13243	    ;;
13244	  sparc64-*linux*)
13245	    LD="${LD-ld} -m elf32_sparc"
13246	    ;;
13247	esac
13248	;;
13249      *64-bit*)
13250	case $host in
13251	  x86_64-*kfreebsd*-gnu)
13252	    LD="${LD-ld} -m elf_x86_64_fbsd"
13253	    ;;
13254	  x86_64-*linux*)
13255	    LD="${LD-ld} -m elf_x86_64"
13256	    ;;
13257	  powerpcle-*linux*|powerpc64le-*linux*)
13258	    LD="${LD-ld} -m elf64lppc"
13259	    ;;
13260	  powerpc-*linux*|powerpc64-*linux*)
13261	    LD="${LD-ld} -m elf64ppc"
13262	    ;;
13263	  s390*-*linux*|s390*-*tpf*)
13264	    LD="${LD-ld} -m elf64_s390"
13265	    ;;
13266	  sparc*-*linux*)
13267	    LD="${LD-ld} -m elf64_sparc"
13268	    ;;
13269	esac
13270	;;
13271    esac
13272  fi
13273  rm -rf conftest*
13274  ;;
13275
13276*-*-sco3.2v5*)
13277  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13278  SAVE_CFLAGS=$CFLAGS
13279  CFLAGS="$CFLAGS -belf"
13280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13281$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13282if ${lt_cv_cc_needs_belf+:} false; then :
13283  $as_echo_n "(cached) " >&6
13284else
13285  ac_ext=c
13286ac_cpp='$CPP $CPPFLAGS'
13287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13289ac_compiler_gnu=$ac_cv_c_compiler_gnu
13290
13291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292/* end confdefs.h.  */
13293
13294int
13295main ()
13296{
13297
13298  ;
13299  return 0;
13300}
13301_ACEOF
13302if ac_fn_c_try_link "$LINENO"; then :
13303  lt_cv_cc_needs_belf=yes
13304else
13305  lt_cv_cc_needs_belf=no
13306fi
13307rm -f core conftest.err conftest.$ac_objext \
13308    conftest$ac_exeext conftest.$ac_ext
13309     ac_ext=c
13310ac_cpp='$CPP $CPPFLAGS'
13311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13313ac_compiler_gnu=$ac_cv_c_compiler_gnu
13314
13315fi
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13317$as_echo "$lt_cv_cc_needs_belf" >&6; }
13318  if test yes != "$lt_cv_cc_needs_belf"; then
13319    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13320    CFLAGS=$SAVE_CFLAGS
13321  fi
13322  ;;
13323*-*solaris*)
13324  # Find out what ABI is being produced by ac_compile, and set linker
13325  # options accordingly.
13326  echo 'int i;' > conftest.$ac_ext
13327  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13328  (eval $ac_compile) 2>&5
13329  ac_status=$?
13330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13331  test $ac_status = 0; }; then
13332    case `/usr/bin/file conftest.o` in
13333    *64-bit*)
13334      case $lt_cv_prog_gnu_ld in
13335      yes*)
13336        case $host in
13337        i?86-*-solaris*|x86_64-*-solaris*)
13338          LD="${LD-ld} -m elf_x86_64"
13339          ;;
13340        sparc*-*-solaris*)
13341          LD="${LD-ld} -m elf64_sparc"
13342          ;;
13343        esac
13344        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13345        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13346          LD=${LD-ld}_sol2
13347        fi
13348        ;;
13349      *)
13350	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13351	  LD="${LD-ld} -64"
13352	fi
13353	;;
13354      esac
13355      ;;
13356    esac
13357  fi
13358  rm -rf conftest*
13359  ;;
13360esac
13361
13362need_locks=$enable_libtool_lock
13363
13364if test -n "$ac_tool_prefix"; then
13365  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13366set dummy ${ac_tool_prefix}mt; ac_word=$2
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368$as_echo_n "checking for $ac_word... " >&6; }
13369if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13370  $as_echo_n "(cached) " >&6
13371else
13372  if test -n "$MANIFEST_TOOL"; then
13373  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13374else
13375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376for as_dir in $PATH
13377do
13378  IFS=$as_save_IFS
13379  test -z "$as_dir" && as_dir=.
13380    for ac_exec_ext in '' $ac_executable_extensions; do
13381  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13382    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384    break 2
13385  fi
13386done
13387  done
13388IFS=$as_save_IFS
13389
13390fi
13391fi
13392MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13393if test -n "$MANIFEST_TOOL"; then
13394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13395$as_echo "$MANIFEST_TOOL" >&6; }
13396else
13397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398$as_echo "no" >&6; }
13399fi
13400
13401
13402fi
13403if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13404  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13405  # Extract the first word of "mt", so it can be a program name with args.
13406set dummy mt; ac_word=$2
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408$as_echo_n "checking for $ac_word... " >&6; }
13409if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13410  $as_echo_n "(cached) " >&6
13411else
13412  if test -n "$ac_ct_MANIFEST_TOOL"; then
13413  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13414else
13415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416for as_dir in $PATH
13417do
13418  IFS=$as_save_IFS
13419  test -z "$as_dir" && as_dir=.
13420    for ac_exec_ext in '' $ac_executable_extensions; do
13421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13422    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424    break 2
13425  fi
13426done
13427  done
13428IFS=$as_save_IFS
13429
13430fi
13431fi
13432ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13433if test -n "$ac_ct_MANIFEST_TOOL"; then
13434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13435$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13436else
13437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438$as_echo "no" >&6; }
13439fi
13440
13441  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13442    MANIFEST_TOOL=":"
13443  else
13444    case $cross_compiling:$ac_tool_warned in
13445yes:)
13446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13448ac_tool_warned=yes ;;
13449esac
13450    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13451  fi
13452else
13453  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13454fi
13455
13456test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13458$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13459if ${lt_cv_path_mainfest_tool+:} false; then :
13460  $as_echo_n "(cached) " >&6
13461else
13462  lt_cv_path_mainfest_tool=no
13463  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13464  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13465  cat conftest.err >&5
13466  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13467    lt_cv_path_mainfest_tool=yes
13468  fi
13469  rm -f conftest*
13470fi
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13472$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13473if test yes != "$lt_cv_path_mainfest_tool"; then
13474  MANIFEST_TOOL=:
13475fi
13476
13477
13478
13479
13480
13481
13482  case $host_os in
13483    rhapsody* | darwin*)
13484    if test -n "$ac_tool_prefix"; then
13485  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13486set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13488$as_echo_n "checking for $ac_word... " >&6; }
13489if ${ac_cv_prog_DSYMUTIL+:} false; then :
13490  $as_echo_n "(cached) " >&6
13491else
13492  if test -n "$DSYMUTIL"; then
13493  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13494else
13495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496for as_dir in $PATH
13497do
13498  IFS=$as_save_IFS
13499  test -z "$as_dir" && as_dir=.
13500    for ac_exec_ext in '' $ac_executable_extensions; do
13501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13504    break 2
13505  fi
13506done
13507  done
13508IFS=$as_save_IFS
13509
13510fi
13511fi
13512DSYMUTIL=$ac_cv_prog_DSYMUTIL
13513if test -n "$DSYMUTIL"; then
13514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13515$as_echo "$DSYMUTIL" >&6; }
13516else
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13518$as_echo "no" >&6; }
13519fi
13520
13521
13522fi
13523if test -z "$ac_cv_prog_DSYMUTIL"; then
13524  ac_ct_DSYMUTIL=$DSYMUTIL
13525  # Extract the first word of "dsymutil", so it can be a program name with args.
13526set dummy dsymutil; ac_word=$2
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528$as_echo_n "checking for $ac_word... " >&6; }
13529if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13530  $as_echo_n "(cached) " >&6
13531else
13532  if test -n "$ac_ct_DSYMUTIL"; then
13533  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13534else
13535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536for as_dir in $PATH
13537do
13538  IFS=$as_save_IFS
13539  test -z "$as_dir" && as_dir=.
13540    for ac_exec_ext in '' $ac_executable_extensions; do
13541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544    break 2
13545  fi
13546done
13547  done
13548IFS=$as_save_IFS
13549
13550fi
13551fi
13552ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13553if test -n "$ac_ct_DSYMUTIL"; then
13554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13555$as_echo "$ac_ct_DSYMUTIL" >&6; }
13556else
13557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558$as_echo "no" >&6; }
13559fi
13560
13561  if test "x$ac_ct_DSYMUTIL" = x; then
13562    DSYMUTIL=":"
13563  else
13564    case $cross_compiling:$ac_tool_warned in
13565yes:)
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13568ac_tool_warned=yes ;;
13569esac
13570    DSYMUTIL=$ac_ct_DSYMUTIL
13571  fi
13572else
13573  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13574fi
13575
13576    if test -n "$ac_tool_prefix"; then
13577  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13578set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580$as_echo_n "checking for $ac_word... " >&6; }
13581if ${ac_cv_prog_NMEDIT+:} false; then :
13582  $as_echo_n "(cached) " >&6
13583else
13584  if test -n "$NMEDIT"; then
13585  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13586else
13587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588for as_dir in $PATH
13589do
13590  IFS=$as_save_IFS
13591  test -z "$as_dir" && as_dir=.
13592    for ac_exec_ext in '' $ac_executable_extensions; do
13593  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13594    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596    break 2
13597  fi
13598done
13599  done
13600IFS=$as_save_IFS
13601
13602fi
13603fi
13604NMEDIT=$ac_cv_prog_NMEDIT
13605if test -n "$NMEDIT"; then
13606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13607$as_echo "$NMEDIT" >&6; }
13608else
13609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610$as_echo "no" >&6; }
13611fi
13612
13613
13614fi
13615if test -z "$ac_cv_prog_NMEDIT"; then
13616  ac_ct_NMEDIT=$NMEDIT
13617  # Extract the first word of "nmedit", so it can be a program name with args.
13618set dummy nmedit; ac_word=$2
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620$as_echo_n "checking for $ac_word... " >&6; }
13621if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13622  $as_echo_n "(cached) " >&6
13623else
13624  if test -n "$ac_ct_NMEDIT"; then
13625  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13626else
13627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628for as_dir in $PATH
13629do
13630  IFS=$as_save_IFS
13631  test -z "$as_dir" && as_dir=.
13632    for ac_exec_ext in '' $ac_executable_extensions; do
13633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636    break 2
13637  fi
13638done
13639  done
13640IFS=$as_save_IFS
13641
13642fi
13643fi
13644ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13645if test -n "$ac_ct_NMEDIT"; then
13646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13647$as_echo "$ac_ct_NMEDIT" >&6; }
13648else
13649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651fi
13652
13653  if test "x$ac_ct_NMEDIT" = x; then
13654    NMEDIT=":"
13655  else
13656    case $cross_compiling:$ac_tool_warned in
13657yes:)
13658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13660ac_tool_warned=yes ;;
13661esac
13662    NMEDIT=$ac_ct_NMEDIT
13663  fi
13664else
13665  NMEDIT="$ac_cv_prog_NMEDIT"
13666fi
13667
13668    if test -n "$ac_tool_prefix"; then
13669  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13670set dummy ${ac_tool_prefix}lipo; ac_word=$2
13671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13672$as_echo_n "checking for $ac_word... " >&6; }
13673if ${ac_cv_prog_LIPO+:} false; then :
13674  $as_echo_n "(cached) " >&6
13675else
13676  if test -n "$LIPO"; then
13677  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13678else
13679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680for as_dir in $PATH
13681do
13682  IFS=$as_save_IFS
13683  test -z "$as_dir" && as_dir=.
13684    for ac_exec_ext in '' $ac_executable_extensions; do
13685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13686    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13688    break 2
13689  fi
13690done
13691  done
13692IFS=$as_save_IFS
13693
13694fi
13695fi
13696LIPO=$ac_cv_prog_LIPO
13697if test -n "$LIPO"; then
13698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13699$as_echo "$LIPO" >&6; }
13700else
13701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702$as_echo "no" >&6; }
13703fi
13704
13705
13706fi
13707if test -z "$ac_cv_prog_LIPO"; then
13708  ac_ct_LIPO=$LIPO
13709  # Extract the first word of "lipo", so it can be a program name with args.
13710set dummy lipo; ac_word=$2
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712$as_echo_n "checking for $ac_word... " >&6; }
13713if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13714  $as_echo_n "(cached) " >&6
13715else
13716  if test -n "$ac_ct_LIPO"; then
13717  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722  IFS=$as_save_IFS
13723  test -z "$as_dir" && as_dir=.
13724    for ac_exec_ext in '' $ac_executable_extensions; do
13725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13726    ac_cv_prog_ac_ct_LIPO="lipo"
13727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728    break 2
13729  fi
13730done
13731  done
13732IFS=$as_save_IFS
13733
13734fi
13735fi
13736ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13737if test -n "$ac_ct_LIPO"; then
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13739$as_echo "$ac_ct_LIPO" >&6; }
13740else
13741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
13743fi
13744
13745  if test "x$ac_ct_LIPO" = x; then
13746    LIPO=":"
13747  else
13748    case $cross_compiling:$ac_tool_warned in
13749yes:)
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13752ac_tool_warned=yes ;;
13753esac
13754    LIPO=$ac_ct_LIPO
13755  fi
13756else
13757  LIPO="$ac_cv_prog_LIPO"
13758fi
13759
13760    if test -n "$ac_tool_prefix"; then
13761  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13762set dummy ${ac_tool_prefix}otool; ac_word=$2
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13764$as_echo_n "checking for $ac_word... " >&6; }
13765if ${ac_cv_prog_OTOOL+:} false; then :
13766  $as_echo_n "(cached) " >&6
13767else
13768  if test -n "$OTOOL"; then
13769  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13770else
13771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772for as_dir in $PATH
13773do
13774  IFS=$as_save_IFS
13775  test -z "$as_dir" && as_dir=.
13776    for ac_exec_ext in '' $ac_executable_extensions; do
13777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13778    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780    break 2
13781  fi
13782done
13783  done
13784IFS=$as_save_IFS
13785
13786fi
13787fi
13788OTOOL=$ac_cv_prog_OTOOL
13789if test -n "$OTOOL"; then
13790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13791$as_echo "$OTOOL" >&6; }
13792else
13793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794$as_echo "no" >&6; }
13795fi
13796
13797
13798fi
13799if test -z "$ac_cv_prog_OTOOL"; then
13800  ac_ct_OTOOL=$OTOOL
13801  # Extract the first word of "otool", so it can be a program name with args.
13802set dummy otool; ac_word=$2
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13804$as_echo_n "checking for $ac_word... " >&6; }
13805if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13806  $as_echo_n "(cached) " >&6
13807else
13808  if test -n "$ac_ct_OTOOL"; then
13809  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13810else
13811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13812for as_dir in $PATH
13813do
13814  IFS=$as_save_IFS
13815  test -z "$as_dir" && as_dir=.
13816    for ac_exec_ext in '' $ac_executable_extensions; do
13817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13818    ac_cv_prog_ac_ct_OTOOL="otool"
13819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13820    break 2
13821  fi
13822done
13823  done
13824IFS=$as_save_IFS
13825
13826fi
13827fi
13828ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13829if test -n "$ac_ct_OTOOL"; then
13830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13831$as_echo "$ac_ct_OTOOL" >&6; }
13832else
13833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834$as_echo "no" >&6; }
13835fi
13836
13837  if test "x$ac_ct_OTOOL" = x; then
13838    OTOOL=":"
13839  else
13840    case $cross_compiling:$ac_tool_warned in
13841yes:)
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13844ac_tool_warned=yes ;;
13845esac
13846    OTOOL=$ac_ct_OTOOL
13847  fi
13848else
13849  OTOOL="$ac_cv_prog_OTOOL"
13850fi
13851
13852    if test -n "$ac_tool_prefix"; then
13853  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13854set dummy ${ac_tool_prefix}otool64; ac_word=$2
13855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13856$as_echo_n "checking for $ac_word... " >&6; }
13857if ${ac_cv_prog_OTOOL64+:} false; then :
13858  $as_echo_n "(cached) " >&6
13859else
13860  if test -n "$OTOOL64"; then
13861  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13862else
13863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13864for as_dir in $PATH
13865do
13866  IFS=$as_save_IFS
13867  test -z "$as_dir" && as_dir=.
13868    for ac_exec_ext in '' $ac_executable_extensions; do
13869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13870    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13872    break 2
13873  fi
13874done
13875  done
13876IFS=$as_save_IFS
13877
13878fi
13879fi
13880OTOOL64=$ac_cv_prog_OTOOL64
13881if test -n "$OTOOL64"; then
13882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13883$as_echo "$OTOOL64" >&6; }
13884else
13885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13886$as_echo "no" >&6; }
13887fi
13888
13889
13890fi
13891if test -z "$ac_cv_prog_OTOOL64"; then
13892  ac_ct_OTOOL64=$OTOOL64
13893  # Extract the first word of "otool64", so it can be a program name with args.
13894set dummy otool64; ac_word=$2
13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13896$as_echo_n "checking for $ac_word... " >&6; }
13897if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13898  $as_echo_n "(cached) " >&6
13899else
13900  if test -n "$ac_ct_OTOOL64"; then
13901  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13902else
13903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904for as_dir in $PATH
13905do
13906  IFS=$as_save_IFS
13907  test -z "$as_dir" && as_dir=.
13908    for ac_exec_ext in '' $ac_executable_extensions; do
13909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13910    ac_cv_prog_ac_ct_OTOOL64="otool64"
13911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13912    break 2
13913  fi
13914done
13915  done
13916IFS=$as_save_IFS
13917
13918fi
13919fi
13920ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13921if test -n "$ac_ct_OTOOL64"; then
13922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13923$as_echo "$ac_ct_OTOOL64" >&6; }
13924else
13925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926$as_echo "no" >&6; }
13927fi
13928
13929  if test "x$ac_ct_OTOOL64" = x; then
13930    OTOOL64=":"
13931  else
13932    case $cross_compiling:$ac_tool_warned in
13933yes:)
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13936ac_tool_warned=yes ;;
13937esac
13938    OTOOL64=$ac_ct_OTOOL64
13939  fi
13940else
13941  OTOOL64="$ac_cv_prog_OTOOL64"
13942fi
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13971$as_echo_n "checking for -single_module linker flag... " >&6; }
13972if ${lt_cv_apple_cc_single_mod+:} false; then :
13973  $as_echo_n "(cached) " >&6
13974else
13975  lt_cv_apple_cc_single_mod=no
13976      if test -z "$LT_MULTI_MODULE"; then
13977	# By default we will add the -single_module flag. You can override
13978	# by either setting the environment variable LT_MULTI_MODULE
13979	# non-empty at configure time, or by adding -multi_module to the
13980	# link flags.
13981	rm -rf libconftest.dylib*
13982	echo "int foo(void){return 1;}" > conftest.c
13983	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13984-dynamiclib -Wl,-single_module conftest.c" >&5
13985	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13986	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13987        _lt_result=$?
13988	# If there is a non-empty error log, and "single_module"
13989	# appears in it, assume the flag caused a linker warning
13990        if test -s conftest.err && $GREP single_module conftest.err; then
13991	  cat conftest.err >&5
13992	# Otherwise, if the output was created with a 0 exit code from
13993	# the compiler, it worked.
13994	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13995	  lt_cv_apple_cc_single_mod=yes
13996	else
13997	  cat conftest.err >&5
13998	fi
13999	rm -rf libconftest.dylib*
14000	rm -f conftest.*
14001      fi
14002fi
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14004$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14005
14006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14007$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14008if ${lt_cv_ld_exported_symbols_list+:} false; then :
14009  $as_echo_n "(cached) " >&6
14010else
14011  lt_cv_ld_exported_symbols_list=no
14012      save_LDFLAGS=$LDFLAGS
14013      echo "_main" > conftest.sym
14014      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14015      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016/* end confdefs.h.  */
14017
14018int
14019main ()
14020{
14021
14022  ;
14023  return 0;
14024}
14025_ACEOF
14026if ac_fn_c_try_link "$LINENO"; then :
14027  lt_cv_ld_exported_symbols_list=yes
14028else
14029  lt_cv_ld_exported_symbols_list=no
14030fi
14031rm -f core conftest.err conftest.$ac_objext \
14032    conftest$ac_exeext conftest.$ac_ext
14033	LDFLAGS=$save_LDFLAGS
14034
14035fi
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14037$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14038
14039    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14040$as_echo_n "checking for -force_load linker flag... " >&6; }
14041if ${lt_cv_ld_force_load+:} false; then :
14042  $as_echo_n "(cached) " >&6
14043else
14044  lt_cv_ld_force_load=no
14045      cat > conftest.c << _LT_EOF
14046int forced_loaded() { return 2;}
14047_LT_EOF
14048      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14049      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14050      echo "$AR cru libconftest.a conftest.o" >&5
14051      $AR cru libconftest.a conftest.o 2>&5
14052      echo "$RANLIB libconftest.a" >&5
14053      $RANLIB libconftest.a 2>&5
14054      cat > conftest.c << _LT_EOF
14055int main() { return 0;}
14056_LT_EOF
14057      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14058      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14059      _lt_result=$?
14060      if test -s conftest.err && $GREP force_load conftest.err; then
14061	cat conftest.err >&5
14062      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14063	lt_cv_ld_force_load=yes
14064      else
14065	cat conftest.err >&5
14066      fi
14067        rm -f conftest.err libconftest.a conftest conftest.c
14068        rm -rf conftest.dSYM
14069
14070fi
14071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14072$as_echo "$lt_cv_ld_force_load" >&6; }
14073    case $host_os in
14074    rhapsody* | darwin1.[012])
14075      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14076    darwin1.*)
14077      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14078    darwin*) # darwin 5.x on
14079      # if running on 10.5 or later, the deployment target defaults
14080      # to the OS version, if on x86, and 10.4, the deployment
14081      # target defaults to 10.4. Don't you love it?
14082      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14083	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14084	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14085	10.[012][,.]*)
14086	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14087	10.*)
14088	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14089      esac
14090    ;;
14091  esac
14092    if test yes = "$lt_cv_apple_cc_single_mod"; then
14093      _lt_dar_single_mod='$single_module'
14094    fi
14095    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14096      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14097    else
14098      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14099    fi
14100    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14101      _lt_dsymutil='~$DSYMUTIL $lib || :'
14102    else
14103      _lt_dsymutil=
14104    fi
14105    ;;
14106  esac
14107
14108# func_munge_path_list VARIABLE PATH
14109# -----------------------------------
14110# VARIABLE is name of variable containing _space_ separated list of
14111# directories to be munged by the contents of PATH, which is string
14112# having a format:
14113# "DIR[:DIR]:"
14114#       string "DIR[ DIR]" will be prepended to VARIABLE
14115# ":DIR[:DIR]"
14116#       string "DIR[ DIR]" will be appended to VARIABLE
14117# "DIRP[:DIRP]::[DIRA:]DIRA"
14118#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14119#       "DIRA[ DIRA]" will be appended to VARIABLE
14120# "DIR[:DIR]"
14121#       VARIABLE will be replaced by "DIR[ DIR]"
14122func_munge_path_list ()
14123{
14124    case x$2 in
14125    x)
14126        ;;
14127    *:)
14128        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14129        ;;
14130    x:*)
14131        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14132        ;;
14133    *::*)
14134        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14135        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14136        ;;
14137    *)
14138        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14139        ;;
14140    esac
14141}
14142
14143for ac_header in dlfcn.h
14144do :
14145  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14146"
14147if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14148  cat >>confdefs.h <<_ACEOF
14149#define HAVE_DLFCN_H 1
14150_ACEOF
14151
14152fi
14153
14154done
14155
14156
14157
14158
14159
14160# Set options
14161# Check whether --enable-static was given.
14162if test "${enable_static+set}" = set; then :
14163  enableval=$enable_static; p=${PACKAGE-default}
14164    case $enableval in
14165    yes) enable_static=yes ;;
14166    no) enable_static=no ;;
14167    *)
14168     enable_static=no
14169      # Look at the argument we got.  We use all the common list separators.
14170      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14171      for pkg in $enableval; do
14172	IFS=$lt_save_ifs
14173	if test "X$pkg" = "X$p"; then
14174	  enable_static=yes
14175	fi
14176      done
14177      IFS=$lt_save_ifs
14178      ;;
14179    esac
14180else
14181  enable_static=no
14182fi
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193        enable_dlopen=no
14194
14195
14196  enable_win32_dll=no
14197
14198
14199            # Check whether --enable-shared was given.
14200if test "${enable_shared+set}" = set; then :
14201  enableval=$enable_shared; p=${PACKAGE-default}
14202    case $enableval in
14203    yes) enable_shared=yes ;;
14204    no) enable_shared=no ;;
14205    *)
14206      enable_shared=no
14207      # Look at the argument we got.  We use all the common list separators.
14208      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14209      for pkg in $enableval; do
14210	IFS=$lt_save_ifs
14211	if test "X$pkg" = "X$p"; then
14212	  enable_shared=yes
14213	fi
14214      done
14215      IFS=$lt_save_ifs
14216      ;;
14217    esac
14218else
14219  enable_shared=yes
14220fi
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232# Check whether --with-pic was given.
14233if test "${with_pic+set}" = set; then :
14234  withval=$with_pic; lt_p=${PACKAGE-default}
14235    case $withval in
14236    yes|no) pic_mode=$withval ;;
14237    *)
14238      pic_mode=default
14239      # Look at the argument we got.  We use all the common list separators.
14240      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14241      for lt_pkg in $withval; do
14242	IFS=$lt_save_ifs
14243	if test "X$lt_pkg" = "X$lt_p"; then
14244	  pic_mode=yes
14245	fi
14246      done
14247      IFS=$lt_save_ifs
14248      ;;
14249    esac
14250else
14251  pic_mode=default
14252fi
14253
14254
14255
14256
14257
14258
14259
14260
14261  # Check whether --enable-fast-install was given.
14262if test "${enable_fast_install+set}" = set; then :
14263  enableval=$enable_fast_install; p=${PACKAGE-default}
14264    case $enableval in
14265    yes) enable_fast_install=yes ;;
14266    no) enable_fast_install=no ;;
14267    *)
14268      enable_fast_install=no
14269      # Look at the argument we got.  We use all the common list separators.
14270      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14271      for pkg in $enableval; do
14272	IFS=$lt_save_ifs
14273	if test "X$pkg" = "X$p"; then
14274	  enable_fast_install=yes
14275	fi
14276      done
14277      IFS=$lt_save_ifs
14278      ;;
14279    esac
14280else
14281  enable_fast_install=yes
14282fi
14283
14284
14285
14286
14287
14288
14289
14290
14291  shared_archive_member_spec=
14292case $host,$enable_shared in
14293power*-*-aix[5-9]*,yes)
14294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14295$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14296
14297# Check whether --with-aix-soname was given.
14298if test "${with_aix_soname+set}" = set; then :
14299  withval=$with_aix_soname; case $withval in
14300    aix|svr4|both)
14301      ;;
14302    *)
14303      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14304      ;;
14305    esac
14306    lt_cv_with_aix_soname=$with_aix_soname
14307else
14308  if ${lt_cv_with_aix_soname+:} false; then :
14309  $as_echo_n "(cached) " >&6
14310else
14311  lt_cv_with_aix_soname=aix
14312fi
14313
14314    with_aix_soname=$lt_cv_with_aix_soname
14315fi
14316
14317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14318$as_echo "$with_aix_soname" >&6; }
14319  if test aix != "$with_aix_soname"; then
14320    # For the AIX way of multilib, we name the shared archive member
14321    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14322    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14323    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14324    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14325    if test 64 = "${OBJECT_MODE-32}"; then
14326      shared_archive_member_spec=shr_64
14327    else
14328      shared_archive_member_spec=shr
14329    fi
14330  fi
14331  ;;
14332*)
14333  with_aix_soname=aix
14334  ;;
14335esac
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346# This can be used to rebuild libtool when needed
14347LIBTOOL_DEPS=$ltmain
14348
14349# Always use our own libtool.
14350LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381test -z "$LN_S" && LN_S="ln -s"
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396if test -n "${ZSH_VERSION+set}"; then
14397   setopt NO_GLOB_SUBST
14398fi
14399
14400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14401$as_echo_n "checking for objdir... " >&6; }
14402if ${lt_cv_objdir+:} false; then :
14403  $as_echo_n "(cached) " >&6
14404else
14405  rm -f .libs 2>/dev/null
14406mkdir .libs 2>/dev/null
14407if test -d .libs; then
14408  lt_cv_objdir=.libs
14409else
14410  # MS-DOS does not allow filenames that begin with a dot.
14411  lt_cv_objdir=_libs
14412fi
14413rmdir .libs 2>/dev/null
14414fi
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14416$as_echo "$lt_cv_objdir" >&6; }
14417objdir=$lt_cv_objdir
14418
14419
14420
14421
14422
14423cat >>confdefs.h <<_ACEOF
14424#define LT_OBJDIR "$lt_cv_objdir/"
14425_ACEOF
14426
14427
14428
14429
14430case $host_os in
14431aix3*)
14432  # AIX sometimes has problems with the GCC collect2 program.  For some
14433  # reason, if we set the COLLECT_NAMES environment variable, the problems
14434  # vanish in a puff of smoke.
14435  if test set != "${COLLECT_NAMES+set}"; then
14436    COLLECT_NAMES=
14437    export COLLECT_NAMES
14438  fi
14439  ;;
14440esac
14441
14442# Global variables:
14443ofile=libtool
14444can_build_shared=yes
14445
14446# All known linkers require a '.a' archive for static linking (except MSVC,
14447# which needs '.lib').
14448libext=a
14449
14450with_gnu_ld=$lt_cv_prog_gnu_ld
14451
14452old_CC=$CC
14453old_CFLAGS=$CFLAGS
14454
14455# Set sane defaults for various variables
14456test -z "$CC" && CC=cc
14457test -z "$LTCC" && LTCC=$CC
14458test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14459test -z "$LD" && LD=ld
14460test -z "$ac_objext" && ac_objext=o
14461
14462func_cc_basename $compiler
14463cc_basename=$func_cc_basename_result
14464
14465
14466# Only perform the check for file, if the check method requires it
14467test -z "$MAGIC_CMD" && MAGIC_CMD=file
14468case $deplibs_check_method in
14469file_magic*)
14470  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14472$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14473if ${lt_cv_path_MAGIC_CMD+:} false; then :
14474  $as_echo_n "(cached) " >&6
14475else
14476  case $MAGIC_CMD in
14477[\\/*] |  ?:[\\/]*)
14478  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14479  ;;
14480*)
14481  lt_save_MAGIC_CMD=$MAGIC_CMD
14482  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14483  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14484  for ac_dir in $ac_dummy; do
14485    IFS=$lt_save_ifs
14486    test -z "$ac_dir" && ac_dir=.
14487    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14488      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14489      if test -n "$file_magic_test_file"; then
14490	case $deplibs_check_method in
14491	"file_magic "*)
14492	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14493	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14494	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14495	    $EGREP "$file_magic_regex" > /dev/null; then
14496	    :
14497	  else
14498	    cat <<_LT_EOF 1>&2
14499
14500*** Warning: the command libtool uses to detect shared libraries,
14501*** $file_magic_cmd, produces output that libtool cannot recognize.
14502*** The result is that libtool may fail to recognize shared libraries
14503*** as such.  This will affect the creation of libtool libraries that
14504*** depend on shared libraries, but programs linked with such libtool
14505*** libraries will work regardless of this problem.  Nevertheless, you
14506*** may want to report the problem to your system manager and/or to
14507*** bug-libtool@gnu.org
14508
14509_LT_EOF
14510	  fi ;;
14511	esac
14512      fi
14513      break
14514    fi
14515  done
14516  IFS=$lt_save_ifs
14517  MAGIC_CMD=$lt_save_MAGIC_CMD
14518  ;;
14519esac
14520fi
14521
14522MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14523if test -n "$MAGIC_CMD"; then
14524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14525$as_echo "$MAGIC_CMD" >&6; }
14526else
14527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528$as_echo "no" >&6; }
14529fi
14530
14531
14532
14533
14534
14535if test -z "$lt_cv_path_MAGIC_CMD"; then
14536  if test -n "$ac_tool_prefix"; then
14537    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14538$as_echo_n "checking for file... " >&6; }
14539if ${lt_cv_path_MAGIC_CMD+:} false; then :
14540  $as_echo_n "(cached) " >&6
14541else
14542  case $MAGIC_CMD in
14543[\\/*] |  ?:[\\/]*)
14544  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14545  ;;
14546*)
14547  lt_save_MAGIC_CMD=$MAGIC_CMD
14548  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14549  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14550  for ac_dir in $ac_dummy; do
14551    IFS=$lt_save_ifs
14552    test -z "$ac_dir" && ac_dir=.
14553    if test -f "$ac_dir/file"; then
14554      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14555      if test -n "$file_magic_test_file"; then
14556	case $deplibs_check_method in
14557	"file_magic "*)
14558	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14559	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14560	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14561	    $EGREP "$file_magic_regex" > /dev/null; then
14562	    :
14563	  else
14564	    cat <<_LT_EOF 1>&2
14565
14566*** Warning: the command libtool uses to detect shared libraries,
14567*** $file_magic_cmd, produces output that libtool cannot recognize.
14568*** The result is that libtool may fail to recognize shared libraries
14569*** as such.  This will affect the creation of libtool libraries that
14570*** depend on shared libraries, but programs linked with such libtool
14571*** libraries will work regardless of this problem.  Nevertheless, you
14572*** may want to report the problem to your system manager and/or to
14573*** bug-libtool@gnu.org
14574
14575_LT_EOF
14576	  fi ;;
14577	esac
14578      fi
14579      break
14580    fi
14581  done
14582  IFS=$lt_save_ifs
14583  MAGIC_CMD=$lt_save_MAGIC_CMD
14584  ;;
14585esac
14586fi
14587
14588MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14589if test -n "$MAGIC_CMD"; then
14590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14591$as_echo "$MAGIC_CMD" >&6; }
14592else
14593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594$as_echo "no" >&6; }
14595fi
14596
14597
14598  else
14599    MAGIC_CMD=:
14600  fi
14601fi
14602
14603  fi
14604  ;;
14605esac
14606
14607# Use C for the default configuration in the libtool script
14608
14609lt_save_CC=$CC
14610ac_ext=c
14611ac_cpp='$CPP $CPPFLAGS'
14612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614ac_compiler_gnu=$ac_cv_c_compiler_gnu
14615
14616
14617# Source file extension for C test sources.
14618ac_ext=c
14619
14620# Object file extension for compiled C test sources.
14621objext=o
14622objext=$objext
14623
14624# Code to be used in simple compile tests
14625lt_simple_compile_test_code="int some_variable = 0;"
14626
14627# Code to be used in simple link tests
14628lt_simple_link_test_code='int main(){return(0);}'
14629
14630
14631
14632
14633
14634
14635
14636# If no C compiler was specified, use CC.
14637LTCC=${LTCC-"$CC"}
14638
14639# If no C compiler flags were specified, use CFLAGS.
14640LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14641
14642# Allow CC to be a program name with arguments.
14643compiler=$CC
14644
14645# Save the default compiler, since it gets overwritten when the other
14646# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14647compiler_DEFAULT=$CC
14648
14649# save warnings/boilerplate of simple test code
14650ac_outfile=conftest.$ac_objext
14651echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14653_lt_compiler_boilerplate=`cat conftest.err`
14654$RM conftest*
14655
14656ac_outfile=conftest.$ac_objext
14657echo "$lt_simple_link_test_code" >conftest.$ac_ext
14658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14659_lt_linker_boilerplate=`cat conftest.err`
14660$RM -r conftest*
14661
14662
14663## CAVEAT EMPTOR:
14664## There is no encapsulation within the following macros, do not change
14665## the running order or otherwise move them around unless you know exactly
14666## what you are doing...
14667if test -n "$compiler"; then
14668
14669lt_prog_compiler_no_builtin_flag=
14670
14671if test yes = "$GCC"; then
14672  case $cc_basename in
14673  nvcc*)
14674    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14675  *)
14676    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14677  esac
14678
14679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14680$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14681if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14682  $as_echo_n "(cached) " >&6
14683else
14684  lt_cv_prog_compiler_rtti_exceptions=no
14685   ac_outfile=conftest.$ac_objext
14686   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14687   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14688   # Insert the option either (1) after the last *FLAGS variable, or
14689   # (2) before a word containing "conftest.", or (3) at the end.
14690   # Note that $ac_compile itself does not contain backslashes and begins
14691   # with a dollar sign (not a hyphen), so the echo should work correctly.
14692   # The option is referenced via a variable to avoid confusing sed.
14693   lt_compile=`echo "$ac_compile" | $SED \
14694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14696   -e 's:$: $lt_compiler_flag:'`
14697   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14698   (eval "$lt_compile" 2>conftest.err)
14699   ac_status=$?
14700   cat conftest.err >&5
14701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   if (exit $ac_status) && test -s "$ac_outfile"; then
14703     # The compiler can only warn and ignore the option if not recognized
14704     # So say no if there are warnings other than the usual output.
14705     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14706     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14707     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14708       lt_cv_prog_compiler_rtti_exceptions=yes
14709     fi
14710   fi
14711   $RM conftest*
14712
14713fi
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14715$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14716
14717if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14718    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14719else
14720    :
14721fi
14722
14723fi
14724
14725
14726
14727
14728
14729
14730  lt_prog_compiler_wl=
14731lt_prog_compiler_pic=
14732lt_prog_compiler_static=
14733
14734
14735  if test yes = "$GCC"; then
14736    lt_prog_compiler_wl='-Wl,'
14737    lt_prog_compiler_static='-static'
14738
14739    case $host_os in
14740      aix*)
14741      # All AIX code is PIC.
14742      if test ia64 = "$host_cpu"; then
14743	# AIX 5 now supports IA64 processor
14744	lt_prog_compiler_static='-Bstatic'
14745      fi
14746      lt_prog_compiler_pic='-fPIC'
14747      ;;
14748
14749    amigaos*)
14750      case $host_cpu in
14751      powerpc)
14752            # see comment about AmigaOS4 .so support
14753            lt_prog_compiler_pic='-fPIC'
14754        ;;
14755      m68k)
14756            # FIXME: we need at least 68020 code to build shared libraries, but
14757            # adding the '-m68020' flag to GCC prevents building anything better,
14758            # like '-m68040'.
14759            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14760        ;;
14761      esac
14762      ;;
14763
14764    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14765      # PIC is the default for these OSes.
14766      ;;
14767
14768    mingw* | cygwin* | pw32* | os2* | cegcc*)
14769      # This hack is so that the source file can tell whether it is being
14770      # built for inclusion in a dll (and should export symbols for example).
14771      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14772      # (--disable-auto-import) libraries
14773      lt_prog_compiler_pic='-DDLL_EXPORT'
14774      case $host_os in
14775      os2*)
14776	lt_prog_compiler_static='$wl-static'
14777	;;
14778      esac
14779      ;;
14780
14781    darwin* | rhapsody*)
14782      # PIC is the default on this platform
14783      # Common symbols not allowed in MH_DYLIB files
14784      lt_prog_compiler_pic='-fno-common'
14785      ;;
14786
14787    haiku*)
14788      # PIC is the default for Haiku.
14789      # The "-static" flag exists, but is broken.
14790      lt_prog_compiler_static=
14791      ;;
14792
14793    hpux*)
14794      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14795      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14796      # sets the default TLS model and affects inlining.
14797      case $host_cpu in
14798      hppa*64*)
14799	# +Z the default
14800	;;
14801      *)
14802	lt_prog_compiler_pic='-fPIC'
14803	;;
14804      esac
14805      ;;
14806
14807    interix[3-9]*)
14808      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14809      # Instead, we relocate shared libraries at runtime.
14810      ;;
14811
14812    msdosdjgpp*)
14813      # Just because we use GCC doesn't mean we suddenly get shared libraries
14814      # on systems that don't support them.
14815      lt_prog_compiler_can_build_shared=no
14816      enable_shared=no
14817      ;;
14818
14819    *nto* | *qnx*)
14820      # QNX uses GNU C++, but need to define -shared option too, otherwise
14821      # it will coredump.
14822      lt_prog_compiler_pic='-fPIC -shared'
14823      ;;
14824
14825    sysv4*MP*)
14826      if test -d /usr/nec; then
14827	lt_prog_compiler_pic=-Kconform_pic
14828      fi
14829      ;;
14830
14831    *)
14832      lt_prog_compiler_pic='-fPIC'
14833      ;;
14834    esac
14835
14836    case $cc_basename in
14837    nvcc*) # Cuda Compiler Driver 2.2
14838      lt_prog_compiler_wl='-Xlinker '
14839      if test -n "$lt_prog_compiler_pic"; then
14840        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14841      fi
14842      ;;
14843    esac
14844  else
14845    # PORTME Check for flag to pass linker flags through the system compiler.
14846    case $host_os in
14847    aix*)
14848      lt_prog_compiler_wl='-Wl,'
14849      if test ia64 = "$host_cpu"; then
14850	# AIX 5 now supports IA64 processor
14851	lt_prog_compiler_static='-Bstatic'
14852      else
14853	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14854      fi
14855      ;;
14856
14857    darwin* | rhapsody*)
14858      # PIC is the default on this platform
14859      # Common symbols not allowed in MH_DYLIB files
14860      lt_prog_compiler_pic='-fno-common'
14861      case $cc_basename in
14862      nagfor*)
14863        # NAG Fortran compiler
14864        lt_prog_compiler_wl='-Wl,-Wl,,'
14865        lt_prog_compiler_pic='-PIC'
14866        lt_prog_compiler_static='-Bstatic'
14867        ;;
14868      esac
14869      ;;
14870
14871    mingw* | cygwin* | pw32* | os2* | cegcc*)
14872      # This hack is so that the source file can tell whether it is being
14873      # built for inclusion in a dll (and should export symbols for example).
14874      lt_prog_compiler_pic='-DDLL_EXPORT'
14875      case $host_os in
14876      os2*)
14877	lt_prog_compiler_static='$wl-static'
14878	;;
14879      esac
14880      ;;
14881
14882    hpux9* | hpux10* | hpux11*)
14883      lt_prog_compiler_wl='-Wl,'
14884      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14885      # not for PA HP-UX.
14886      case $host_cpu in
14887      hppa*64*|ia64*)
14888	# +Z the default
14889	;;
14890      *)
14891	lt_prog_compiler_pic='+Z'
14892	;;
14893      esac
14894      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14895      lt_prog_compiler_static='$wl-a ${wl}archive'
14896      ;;
14897
14898    irix5* | irix6* | nonstopux*)
14899      lt_prog_compiler_wl='-Wl,'
14900      # PIC (with -KPIC) is the default.
14901      lt_prog_compiler_static='-non_shared'
14902      ;;
14903
14904    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14905      case $cc_basename in
14906      # old Intel for x86_64, which still supported -KPIC.
14907      ecc*)
14908	lt_prog_compiler_wl='-Wl,'
14909	lt_prog_compiler_pic='-KPIC'
14910	lt_prog_compiler_static='-static'
14911        ;;
14912      # icc used to be incompatible with GCC.
14913      # ICC 10 doesn't accept -KPIC any more.
14914      icc* | ifort*)
14915	lt_prog_compiler_wl='-Wl,'
14916	lt_prog_compiler_pic='-fPIC'
14917	lt_prog_compiler_static='-static'
14918        ;;
14919      # Lahey Fortran 8.1.
14920      lf95*)
14921	lt_prog_compiler_wl='-Wl,'
14922	lt_prog_compiler_pic='--shared'
14923	lt_prog_compiler_static='--static'
14924	;;
14925      nagfor*)
14926	# NAG Fortran compiler
14927	lt_prog_compiler_wl='-Wl,-Wl,,'
14928	lt_prog_compiler_pic='-PIC'
14929	lt_prog_compiler_static='-Bstatic'
14930	;;
14931      tcc*)
14932	# Fabrice Bellard et al's Tiny C Compiler
14933	lt_prog_compiler_wl='-Wl,'
14934	lt_prog_compiler_pic='-fPIC'
14935	lt_prog_compiler_static='-static'
14936	;;
14937      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14938        # Portland Group compilers (*not* the Pentium gcc compiler,
14939	# which looks to be a dead project)
14940	lt_prog_compiler_wl='-Wl,'
14941	lt_prog_compiler_pic='-fpic'
14942	lt_prog_compiler_static='-Bstatic'
14943        ;;
14944      ccc*)
14945        lt_prog_compiler_wl='-Wl,'
14946        # All Alpha code is PIC.
14947        lt_prog_compiler_static='-non_shared'
14948        ;;
14949      xl* | bgxl* | bgf* | mpixl*)
14950	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14951	lt_prog_compiler_wl='-Wl,'
14952	lt_prog_compiler_pic='-qpic'
14953	lt_prog_compiler_static='-qstaticlink'
14954	;;
14955      *)
14956	case `$CC -V 2>&1 | sed 5q` in
14957	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14958	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14959	  lt_prog_compiler_pic='-KPIC'
14960	  lt_prog_compiler_static='-Bstatic'
14961	  lt_prog_compiler_wl=''
14962	  ;;
14963	*Sun\ F* | *Sun*Fortran*)
14964	  lt_prog_compiler_pic='-KPIC'
14965	  lt_prog_compiler_static='-Bstatic'
14966	  lt_prog_compiler_wl='-Qoption ld '
14967	  ;;
14968	*Sun\ C*)
14969	  # Sun C 5.9
14970	  lt_prog_compiler_pic='-KPIC'
14971	  lt_prog_compiler_static='-Bstatic'
14972	  lt_prog_compiler_wl='-Wl,'
14973	  ;;
14974        *Intel*\ [CF]*Compiler*)
14975	  lt_prog_compiler_wl='-Wl,'
14976	  lt_prog_compiler_pic='-fPIC'
14977	  lt_prog_compiler_static='-static'
14978	  ;;
14979	*Portland\ Group*)
14980	  lt_prog_compiler_wl='-Wl,'
14981	  lt_prog_compiler_pic='-fpic'
14982	  lt_prog_compiler_static='-Bstatic'
14983	  ;;
14984	esac
14985	;;
14986      esac
14987      ;;
14988
14989    newsos6)
14990      lt_prog_compiler_pic='-KPIC'
14991      lt_prog_compiler_static='-Bstatic'
14992      ;;
14993
14994    *nto* | *qnx*)
14995      # QNX uses GNU C++, but need to define -shared option too, otherwise
14996      # it will coredump.
14997      lt_prog_compiler_pic='-fPIC -shared'
14998      ;;
14999
15000    osf3* | osf4* | osf5*)
15001      lt_prog_compiler_wl='-Wl,'
15002      # All OSF/1 code is PIC.
15003      lt_prog_compiler_static='-non_shared'
15004      ;;
15005
15006    rdos*)
15007      lt_prog_compiler_static='-non_shared'
15008      ;;
15009
15010    solaris*)
15011      lt_prog_compiler_pic='-KPIC'
15012      lt_prog_compiler_static='-Bstatic'
15013      case $cc_basename in
15014      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15015	lt_prog_compiler_wl='-Qoption ld ';;
15016      *)
15017	lt_prog_compiler_wl='-Wl,';;
15018      esac
15019      ;;
15020
15021    sunos4*)
15022      lt_prog_compiler_wl='-Qoption ld '
15023      lt_prog_compiler_pic='-PIC'
15024      lt_prog_compiler_static='-Bstatic'
15025      ;;
15026
15027    sysv4 | sysv4.2uw2* | sysv4.3*)
15028      lt_prog_compiler_wl='-Wl,'
15029      lt_prog_compiler_pic='-KPIC'
15030      lt_prog_compiler_static='-Bstatic'
15031      ;;
15032
15033    sysv4*MP*)
15034      if test -d /usr/nec; then
15035	lt_prog_compiler_pic='-Kconform_pic'
15036	lt_prog_compiler_static='-Bstatic'
15037      fi
15038      ;;
15039
15040    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15041      lt_prog_compiler_wl='-Wl,'
15042      lt_prog_compiler_pic='-KPIC'
15043      lt_prog_compiler_static='-Bstatic'
15044      ;;
15045
15046    unicos*)
15047      lt_prog_compiler_wl='-Wl,'
15048      lt_prog_compiler_can_build_shared=no
15049      ;;
15050
15051    uts4*)
15052      lt_prog_compiler_pic='-pic'
15053      lt_prog_compiler_static='-Bstatic'
15054      ;;
15055
15056    *)
15057      lt_prog_compiler_can_build_shared=no
15058      ;;
15059    esac
15060  fi
15061
15062case $host_os in
15063  # For platforms that do not support PIC, -DPIC is meaningless:
15064  *djgpp*)
15065    lt_prog_compiler_pic=
15066    ;;
15067  *)
15068    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15069    ;;
15070esac
15071
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15073$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15074if ${lt_cv_prog_compiler_pic+:} false; then :
15075  $as_echo_n "(cached) " >&6
15076else
15077  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15078fi
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15080$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15081lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15082
15083#
15084# Check to make sure the PIC flag actually works.
15085#
15086if test -n "$lt_prog_compiler_pic"; then
15087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15088$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15089if ${lt_cv_prog_compiler_pic_works+:} false; then :
15090  $as_echo_n "(cached) " >&6
15091else
15092  lt_cv_prog_compiler_pic_works=no
15093   ac_outfile=conftest.$ac_objext
15094   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15095   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15096   # Insert the option either (1) after the last *FLAGS variable, or
15097   # (2) before a word containing "conftest.", or (3) at the end.
15098   # Note that $ac_compile itself does not contain backslashes and begins
15099   # with a dollar sign (not a hyphen), so the echo should work correctly.
15100   # The option is referenced via a variable to avoid confusing sed.
15101   lt_compile=`echo "$ac_compile" | $SED \
15102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104   -e 's:$: $lt_compiler_flag:'`
15105   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15106   (eval "$lt_compile" 2>conftest.err)
15107   ac_status=$?
15108   cat conftest.err >&5
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   if (exit $ac_status) && test -s "$ac_outfile"; then
15111     # The compiler can only warn and ignore the option if not recognized
15112     # So say no if there are warnings other than the usual output.
15113     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15114     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116       lt_cv_prog_compiler_pic_works=yes
15117     fi
15118   fi
15119   $RM conftest*
15120
15121fi
15122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15123$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15124
15125if test yes = "$lt_cv_prog_compiler_pic_works"; then
15126    case $lt_prog_compiler_pic in
15127     "" | " "*) ;;
15128     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15129     esac
15130else
15131    lt_prog_compiler_pic=
15132     lt_prog_compiler_can_build_shared=no
15133fi
15134
15135fi
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147#
15148# Check to make sure the static flag actually works.
15149#
15150wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15152$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15153if ${lt_cv_prog_compiler_static_works+:} false; then :
15154  $as_echo_n "(cached) " >&6
15155else
15156  lt_cv_prog_compiler_static_works=no
15157   save_LDFLAGS=$LDFLAGS
15158   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15159   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15160   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15161     # The linker can only warn and ignore the option if not recognized
15162     # So say no if there are warnings
15163     if test -s conftest.err; then
15164       # Append any errors to the config.log.
15165       cat conftest.err 1>&5
15166       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15167       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15168       if diff conftest.exp conftest.er2 >/dev/null; then
15169         lt_cv_prog_compiler_static_works=yes
15170       fi
15171     else
15172       lt_cv_prog_compiler_static_works=yes
15173     fi
15174   fi
15175   $RM -r conftest*
15176   LDFLAGS=$save_LDFLAGS
15177
15178fi
15179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15180$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15181
15182if test yes = "$lt_cv_prog_compiler_static_works"; then
15183    :
15184else
15185    lt_prog_compiler_static=
15186fi
15187
15188
15189
15190
15191
15192
15193
15194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15195$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15196if ${lt_cv_prog_compiler_c_o+:} false; then :
15197  $as_echo_n "(cached) " >&6
15198else
15199  lt_cv_prog_compiler_c_o=no
15200   $RM -r conftest 2>/dev/null
15201   mkdir conftest
15202   cd conftest
15203   mkdir out
15204   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15205
15206   lt_compiler_flag="-o out/conftest2.$ac_objext"
15207   # Insert the option either (1) after the last *FLAGS variable, or
15208   # (2) before a word containing "conftest.", or (3) at the end.
15209   # Note that $ac_compile itself does not contain backslashes and begins
15210   # with a dollar sign (not a hyphen), so the echo should work correctly.
15211   lt_compile=`echo "$ac_compile" | $SED \
15212   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15213   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214   -e 's:$: $lt_compiler_flag:'`
15215   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15216   (eval "$lt_compile" 2>out/conftest.err)
15217   ac_status=$?
15218   cat out/conftest.err >&5
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15221   then
15222     # The compiler can only warn and ignore the option if not recognized
15223     # So say no if there are warnings
15224     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15225     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15226     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15227       lt_cv_prog_compiler_c_o=yes
15228     fi
15229   fi
15230   chmod u+w . 2>&5
15231   $RM conftest*
15232   # SGI C++ compiler will create directory out/ii_files/ for
15233   # template instantiation
15234   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15235   $RM out/* && rmdir out
15236   cd ..
15237   $RM -r conftest
15238   $RM conftest*
15239
15240fi
15241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15242$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15243
15244
15245
15246
15247
15248
15249  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15250$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15251if ${lt_cv_prog_compiler_c_o+:} false; then :
15252  $as_echo_n "(cached) " >&6
15253else
15254  lt_cv_prog_compiler_c_o=no
15255   $RM -r conftest 2>/dev/null
15256   mkdir conftest
15257   cd conftest
15258   mkdir out
15259   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15260
15261   lt_compiler_flag="-o out/conftest2.$ac_objext"
15262   # Insert the option either (1) after the last *FLAGS variable, or
15263   # (2) before a word containing "conftest.", or (3) at the end.
15264   # Note that $ac_compile itself does not contain backslashes and begins
15265   # with a dollar sign (not a hyphen), so the echo should work correctly.
15266   lt_compile=`echo "$ac_compile" | $SED \
15267   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15268   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15269   -e 's:$: $lt_compiler_flag:'`
15270   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15271   (eval "$lt_compile" 2>out/conftest.err)
15272   ac_status=$?
15273   cat out/conftest.err >&5
15274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15276   then
15277     # The compiler can only warn and ignore the option if not recognized
15278     # So say no if there are warnings
15279     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15280     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15281     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15282       lt_cv_prog_compiler_c_o=yes
15283     fi
15284   fi
15285   chmod u+w . 2>&5
15286   $RM conftest*
15287   # SGI C++ compiler will create directory out/ii_files/ for
15288   # template instantiation
15289   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15290   $RM out/* && rmdir out
15291   cd ..
15292   $RM -r conftest
15293   $RM conftest*
15294
15295fi
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15297$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15298
15299
15300
15301
15302hard_links=nottested
15303if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15304  # do not overwrite the value of need_locks provided by the user
15305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15306$as_echo_n "checking if we can lock with hard links... " >&6; }
15307  hard_links=yes
15308  $RM conftest*
15309  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15310  touch conftest.a
15311  ln conftest.a conftest.b 2>&5 || hard_links=no
15312  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15314$as_echo "$hard_links" >&6; }
15315  if test no = "$hard_links"; then
15316    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15317$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15318    need_locks=warn
15319  fi
15320else
15321  need_locks=no
15322fi
15323
15324
15325
15326
15327
15328
15329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15330$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15331
15332  runpath_var=
15333  allow_undefined_flag=
15334  always_export_symbols=no
15335  archive_cmds=
15336  archive_expsym_cmds=
15337  compiler_needs_object=no
15338  enable_shared_with_static_runtimes=no
15339  export_dynamic_flag_spec=
15340  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15341  hardcode_automatic=no
15342  hardcode_direct=no
15343  hardcode_direct_absolute=no
15344  hardcode_libdir_flag_spec=
15345  hardcode_libdir_separator=
15346  hardcode_minus_L=no
15347  hardcode_shlibpath_var=unsupported
15348  inherit_rpath=no
15349  link_all_deplibs=unknown
15350  module_cmds=
15351  module_expsym_cmds=
15352  old_archive_from_new_cmds=
15353  old_archive_from_expsyms_cmds=
15354  thread_safe_flag_spec=
15355  whole_archive_flag_spec=
15356  # include_expsyms should be a list of space-separated symbols to be *always*
15357  # included in the symbol list
15358  include_expsyms=
15359  # exclude_expsyms can be an extended regexp of symbols to exclude
15360  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15361  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15362  # as well as any symbol that contains 'd'.
15363  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15364  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15365  # platforms (ab)use it in PIC code, but their linkers get confused if
15366  # the symbol is explicitly referenced.  Since portable code cannot
15367  # rely on this symbol name, it's probably fine to never include it in
15368  # preloaded symbol tables.
15369  # Exclude shared library initialization/finalization symbols.
15370  extract_expsyms_cmds=
15371
15372  case $host_os in
15373  cygwin* | mingw* | pw32* | cegcc*)
15374    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15375    # When not using gcc, we currently assume that we are using
15376    # Microsoft Visual C++.
15377    if test yes != "$GCC"; then
15378      with_gnu_ld=no
15379    fi
15380    ;;
15381  interix*)
15382    # we just hope/assume this is gcc and not c89 (= MSVC++)
15383    with_gnu_ld=yes
15384    ;;
15385  openbsd* | bitrig*)
15386    with_gnu_ld=no
15387    ;;
15388  esac
15389
15390  ld_shlibs=yes
15391
15392  # On some targets, GNU ld is compatible enough with the native linker
15393  # that we're better off using the native interface for both.
15394  lt_use_gnu_ld_interface=no
15395  if test yes = "$with_gnu_ld"; then
15396    case $host_os in
15397      aix*)
15398	# The AIX port of GNU ld has always aspired to compatibility
15399	# with the native linker.  However, as the warning in the GNU ld
15400	# block says, versions before 2.19.5* couldn't really create working
15401	# shared libraries, regardless of the interface used.
15402	case `$LD -v 2>&1` in
15403	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15404	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15405	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15406	  *)
15407	    lt_use_gnu_ld_interface=yes
15408	    ;;
15409	esac
15410	;;
15411      *)
15412	lt_use_gnu_ld_interface=yes
15413	;;
15414    esac
15415  fi
15416
15417  if test yes = "$lt_use_gnu_ld_interface"; then
15418    # If archive_cmds runs LD, not CC, wlarc should be empty
15419    wlarc='$wl'
15420
15421    # Set some defaults for GNU ld with shared library support. These
15422    # are reset later if shared libraries are not supported. Putting them
15423    # here allows them to be overridden if necessary.
15424    runpath_var=LD_RUN_PATH
15425    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15426    export_dynamic_flag_spec='$wl--export-dynamic'
15427    # ancient GNU ld didn't support --whole-archive et. al.
15428    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15429      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15430    else
15431      whole_archive_flag_spec=
15432    fi
15433    supports_anon_versioning=no
15434    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15435      *GNU\ gold*) supports_anon_versioning=yes ;;
15436      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15437      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15438      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15439      *\ 2.11.*) ;; # other 2.11 versions
15440      *) supports_anon_versioning=yes ;;
15441    esac
15442
15443    # See if GNU ld supports shared libraries.
15444    case $host_os in
15445    aix[3-9]*)
15446      # On AIX/PPC, the GNU linker is very broken
15447      if test ia64 != "$host_cpu"; then
15448	ld_shlibs=no
15449	cat <<_LT_EOF 1>&2
15450
15451*** Warning: the GNU linker, at least up to release 2.19, is reported
15452*** to be unable to reliably create shared libraries on AIX.
15453*** Therefore, libtool is disabling shared libraries support.  If you
15454*** really care for shared libraries, you may want to install binutils
15455*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15456*** You will then need to restart the configuration process.
15457
15458_LT_EOF
15459      fi
15460      ;;
15461
15462    amigaos*)
15463      case $host_cpu in
15464      powerpc)
15465            # see comment about AmigaOS4 .so support
15466            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15467            archive_expsym_cmds=''
15468        ;;
15469      m68k)
15470            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)'
15471            hardcode_libdir_flag_spec='-L$libdir'
15472            hardcode_minus_L=yes
15473        ;;
15474      esac
15475      ;;
15476
15477    beos*)
15478      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15479	allow_undefined_flag=unsupported
15480	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15481	# support --undefined.  This deserves some investigation.  FIXME
15482	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15483      else
15484	ld_shlibs=no
15485      fi
15486      ;;
15487
15488    cygwin* | mingw* | pw32* | cegcc*)
15489      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15490      # as there is no search path for DLLs.
15491      hardcode_libdir_flag_spec='-L$libdir'
15492      export_dynamic_flag_spec='$wl--export-all-symbols'
15493      allow_undefined_flag=unsupported
15494      always_export_symbols=no
15495      enable_shared_with_static_runtimes=yes
15496      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'
15497      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15498
15499      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15500        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15501	# If the export-symbols file already is a .def file, use it as
15502	# is; otherwise, prepend EXPORTS...
15503	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15504          cp $export_symbols $output_objdir/$soname.def;
15505        else
15506          echo EXPORTS > $output_objdir/$soname.def;
15507          cat $export_symbols >> $output_objdir/$soname.def;
15508        fi~
15509        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15510      else
15511	ld_shlibs=no
15512      fi
15513      ;;
15514
15515    haiku*)
15516      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15517      link_all_deplibs=yes
15518      ;;
15519
15520    os2*)
15521      hardcode_libdir_flag_spec='-L$libdir'
15522      hardcode_minus_L=yes
15523      allow_undefined_flag=unsupported
15524      shrext_cmds=.dll
15525      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15526	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15527	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15528	$ECHO EXPORTS >> $output_objdir/$libname.def~
15529	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15530	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15531	emximp -o $lib $output_objdir/$libname.def'
15532      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15533	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15534	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15535	$ECHO EXPORTS >> $output_objdir/$libname.def~
15536	prefix_cmds="$SED"~
15537	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15538	  prefix_cmds="$prefix_cmds -e 1d";
15539	fi~
15540	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15541	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15542	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15543	emximp -o $lib $output_objdir/$libname.def'
15544      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15545      enable_shared_with_static_runtimes=yes
15546      ;;
15547
15548    interix[3-9]*)
15549      hardcode_direct=no
15550      hardcode_shlibpath_var=no
15551      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15552      export_dynamic_flag_spec='$wl-E'
15553      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15554      # Instead, shared libraries are loaded at an image base (0x10000000 by
15555      # default) and relocated if they conflict, which is a slow very memory
15556      # consuming and fragmenting process.  To avoid this, we pick a random,
15557      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15558      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15559      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15560      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'
15561      ;;
15562
15563    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15564      tmp_diet=no
15565      if test linux-dietlibc = "$host_os"; then
15566	case $cc_basename in
15567	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15568	esac
15569      fi
15570      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15571	 && test no = "$tmp_diet"
15572      then
15573	tmp_addflag=' $pic_flag'
15574	tmp_sharedflag='-shared'
15575	case $cc_basename,$host_cpu in
15576        pgcc*)				# Portland Group C compiler
15577	  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'
15578	  tmp_addflag=' $pic_flag'
15579	  ;;
15580	pgf77* | pgf90* | pgf95* | pgfortran*)
15581					# Portland Group f77 and f90 compilers
15582	  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'
15583	  tmp_addflag=' $pic_flag -Mnomain' ;;
15584	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15585	  tmp_addflag=' -i_dynamic' ;;
15586	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15587	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15588	ifc* | ifort*)			# Intel Fortran compiler
15589	  tmp_addflag=' -nofor_main' ;;
15590	lf95*)				# Lahey Fortran 8.1
15591	  whole_archive_flag_spec=
15592	  tmp_sharedflag='--shared' ;;
15593        nagfor*)                        # NAGFOR 5.3
15594          tmp_sharedflag='-Wl,-shared' ;;
15595	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15596	  tmp_sharedflag='-qmkshrobj'
15597	  tmp_addflag= ;;
15598	nvcc*)	# Cuda Compiler Driver 2.2
15599	  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'
15600	  compiler_needs_object=yes
15601	  ;;
15602	esac
15603	case `$CC -V 2>&1 | sed 5q` in
15604	*Sun\ C*)			# Sun C 5.9
15605	  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'
15606	  compiler_needs_object=yes
15607	  tmp_sharedflag='-G' ;;
15608	*Sun\ F*)			# Sun Fortran 8.3
15609	  tmp_sharedflag='-G' ;;
15610	esac
15611	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15612
15613        if test yes = "$supports_anon_versioning"; then
15614          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15615            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15616            echo "local: *; };" >> $output_objdir/$libname.ver~
15617            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15618        fi
15619
15620	case $cc_basename in
15621	tcc*)
15622	  export_dynamic_flag_spec='-rdynamic'
15623	  ;;
15624	xlf* | bgf* | bgxlf* | mpixlf*)
15625	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15626	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15627	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15628	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15629	  if test yes = "$supports_anon_versioning"; then
15630	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15631              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15632              echo "local: *; };" >> $output_objdir/$libname.ver~
15633              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15634	  fi
15635	  ;;
15636	esac
15637      else
15638        ld_shlibs=no
15639      fi
15640      ;;
15641
15642    netbsd*)
15643      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15644	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15645	wlarc=
15646      else
15647	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15648	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15649      fi
15650      ;;
15651
15652    solaris*)
15653      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15654	ld_shlibs=no
15655	cat <<_LT_EOF 1>&2
15656
15657*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15658*** create shared libraries on Solaris systems.  Therefore, libtool
15659*** is disabling shared libraries support.  We urge you to upgrade GNU
15660*** binutils to release 2.9.1 or newer.  Another option is to modify
15661*** your PATH or compiler configuration so that the native linker is
15662*** used, and then restart.
15663
15664_LT_EOF
15665      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15666	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15667	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15668      else
15669	ld_shlibs=no
15670      fi
15671      ;;
15672
15673    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15674      case `$LD -v 2>&1` in
15675        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15676	ld_shlibs=no
15677	cat <<_LT_EOF 1>&2
15678
15679*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15680*** reliably create shared libraries on SCO systems.  Therefore, libtool
15681*** is disabling shared libraries support.  We urge you to upgrade GNU
15682*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15683*** your PATH or compiler configuration so that the native linker is
15684*** used, and then restart.
15685
15686_LT_EOF
15687	;;
15688	*)
15689	  # For security reasons, it is highly recommended that you always
15690	  # use absolute paths for naming shared libraries, and exclude the
15691	  # DT_RUNPATH tag from executables and libraries.  But doing so
15692	  # requires that you compile everything twice, which is a pain.
15693	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15694	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15695	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15696	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15697	  else
15698	    ld_shlibs=no
15699	  fi
15700	;;
15701      esac
15702      ;;
15703
15704    sunos4*)
15705      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15706      wlarc=
15707      hardcode_direct=yes
15708      hardcode_shlibpath_var=no
15709      ;;
15710
15711    *)
15712      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15713	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15714	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15715      else
15716	ld_shlibs=no
15717      fi
15718      ;;
15719    esac
15720
15721    if test no = "$ld_shlibs"; then
15722      runpath_var=
15723      hardcode_libdir_flag_spec=
15724      export_dynamic_flag_spec=
15725      whole_archive_flag_spec=
15726    fi
15727  else
15728    # PORTME fill in a description of your system's linker (not GNU ld)
15729    case $host_os in
15730    aix3*)
15731      allow_undefined_flag=unsupported
15732      always_export_symbols=yes
15733      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'
15734      # Note: this linker hardcodes the directories in LIBPATH if there
15735      # are no directories specified by -L.
15736      hardcode_minus_L=yes
15737      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15738	# Neither direct hardcoding nor static linking is supported with a
15739	# broken collect2.
15740	hardcode_direct=unsupported
15741      fi
15742      ;;
15743
15744    aix[4-9]*)
15745      if test ia64 = "$host_cpu"; then
15746	# On IA64, the linker does run time linking by default, so we don't
15747	# have to do anything special.
15748	aix_use_runtimelinking=no
15749	exp_sym_flag='-Bexport'
15750	no_entry_flag=
15751      else
15752	# If we're using GNU nm, then we don't want the "-C" option.
15753	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15754	# Without the "-l" option, or with the "-B" option, AIX nm treats
15755	# weak defined symbols like other global defined symbols, whereas
15756	# GNU nm marks them as "W".
15757	# While the 'weak' keyword is ignored in the Export File, we need
15758	# it in the Import File for the 'aix-soname' feature, so we have
15759	# to replace the "-B" option with "-P" for AIX nm.
15760	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15761	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15762	else
15763	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15764	fi
15765	aix_use_runtimelinking=no
15766
15767	# Test if we are trying to use run time linking or normal
15768	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15769	# have runtime linking enabled, and use it for executables.
15770	# For shared libraries, we enable/disable runtime linking
15771	# depending on the kind of the shared library created -
15772	# when "with_aix_soname,aix_use_runtimelinking" is:
15773	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15774	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15775	#            lib.a           static archive
15776	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15777	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15778	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15779	#            lib.a(lib.so.V) shared, rtl:no
15780	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15781	#            lib.a           static archive
15782	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15783	  for ld_flag in $LDFLAGS; do
15784	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15785	    aix_use_runtimelinking=yes
15786	    break
15787	  fi
15788	  done
15789	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15790	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15791	    # so we don't have lib.a shared libs to link our executables.
15792	    # We have to force runtime linking in this case.
15793	    aix_use_runtimelinking=yes
15794	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15795	  fi
15796	  ;;
15797	esac
15798
15799	exp_sym_flag='-bexport'
15800	no_entry_flag='-bnoentry'
15801      fi
15802
15803      # When large executables or shared objects are built, AIX ld can
15804      # have problems creating the table of contents.  If linking a library
15805      # or program results in "error TOC overflow" add -mminimal-toc to
15806      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15807      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15808
15809      archive_cmds=''
15810      hardcode_direct=yes
15811      hardcode_direct_absolute=yes
15812      hardcode_libdir_separator=':'
15813      link_all_deplibs=yes
15814      file_list_spec='$wl-f,'
15815      case $with_aix_soname,$aix_use_runtimelinking in
15816      aix,*) ;; # traditional, no import file
15817      svr4,* | *,yes) # use import file
15818	# The Import File defines what to hardcode.
15819	hardcode_direct=no
15820	hardcode_direct_absolute=no
15821	;;
15822      esac
15823
15824      if test yes = "$GCC"; then
15825	case $host_os in aix4.[012]|aix4.[012].*)
15826	# We only want to do this on AIX 4.2 and lower, the check
15827	# below for broken collect2 doesn't work under 4.3+
15828	  collect2name=`$CC -print-prog-name=collect2`
15829	  if test -f "$collect2name" &&
15830	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15831	  then
15832	  # We have reworked collect2
15833	  :
15834	  else
15835	  # We have old collect2
15836	  hardcode_direct=unsupported
15837	  # It fails to find uninstalled libraries when the uninstalled
15838	  # path is not listed in the libpath.  Setting hardcode_minus_L
15839	  # to unsupported forces relinking
15840	  hardcode_minus_L=yes
15841	  hardcode_libdir_flag_spec='-L$libdir'
15842	  hardcode_libdir_separator=
15843	  fi
15844	  ;;
15845	esac
15846	shared_flag='-shared'
15847	if test yes = "$aix_use_runtimelinking"; then
15848	  shared_flag="$shared_flag "'$wl-G'
15849	fi
15850	# Need to ensure runtime linking is disabled for the traditional
15851	# shared library, or the linker may eventually find shared libraries
15852	# /with/ Import File - we do not want to mix them.
15853	shared_flag_aix='-shared'
15854	shared_flag_svr4='-shared $wl-G'
15855      else
15856	# not using gcc
15857	if test ia64 = "$host_cpu"; then
15858	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15859	# chokes on -Wl,-G. The following line is correct:
15860	  shared_flag='-G'
15861	else
15862	  if test yes = "$aix_use_runtimelinking"; then
15863	    shared_flag='$wl-G'
15864	  else
15865	    shared_flag='$wl-bM:SRE'
15866	  fi
15867	  shared_flag_aix='$wl-bM:SRE'
15868	  shared_flag_svr4='$wl-G'
15869	fi
15870      fi
15871
15872      export_dynamic_flag_spec='$wl-bexpall'
15873      # It seems that -bexpall does not export symbols beginning with
15874      # underscore (_), so it is better to generate a list of symbols to export.
15875      always_export_symbols=yes
15876      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15877	# Warning - without using the other runtime loading flags (-brtl),
15878	# -berok will link without error, but may produce a broken library.
15879	allow_undefined_flag='-berok'
15880        # Determine the default libpath from the value encoded in an
15881        # empty executable.
15882        if test set = "${lt_cv_aix_libpath+set}"; then
15883  aix_libpath=$lt_cv_aix_libpath
15884else
15885  if ${lt_cv_aix_libpath_+:} false; then :
15886  $as_echo_n "(cached) " >&6
15887else
15888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889/* end confdefs.h.  */
15890
15891int
15892main ()
15893{
15894
15895  ;
15896  return 0;
15897}
15898_ACEOF
15899if ac_fn_c_try_link "$LINENO"; then :
15900
15901  lt_aix_libpath_sed='
15902      /Import File Strings/,/^$/ {
15903	  /^0/ {
15904	      s/^0  *\([^ ]*\) *$/\1/
15905	      p
15906	  }
15907      }'
15908  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15909  # Check for a 64-bit object if we didn't find anything.
15910  if test -z "$lt_cv_aix_libpath_"; then
15911    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15912  fi
15913fi
15914rm -f core conftest.err conftest.$ac_objext \
15915    conftest$ac_exeext conftest.$ac_ext
15916  if test -z "$lt_cv_aix_libpath_"; then
15917    lt_cv_aix_libpath_=/usr/lib:/lib
15918  fi
15919
15920fi
15921
15922  aix_libpath=$lt_cv_aix_libpath_
15923fi
15924
15925        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15926        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15927      else
15928	if test ia64 = "$host_cpu"; then
15929	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15930	  allow_undefined_flag="-z nodefs"
15931	  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"
15932	else
15933	 # Determine the default libpath from the value encoded in an
15934	 # empty executable.
15935	 if test set = "${lt_cv_aix_libpath+set}"; then
15936  aix_libpath=$lt_cv_aix_libpath
15937else
15938  if ${lt_cv_aix_libpath_+:} false; then :
15939  $as_echo_n "(cached) " >&6
15940else
15941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942/* end confdefs.h.  */
15943
15944int
15945main ()
15946{
15947
15948  ;
15949  return 0;
15950}
15951_ACEOF
15952if ac_fn_c_try_link "$LINENO"; then :
15953
15954  lt_aix_libpath_sed='
15955      /Import File Strings/,/^$/ {
15956	  /^0/ {
15957	      s/^0  *\([^ ]*\) *$/\1/
15958	      p
15959	  }
15960      }'
15961  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15962  # Check for a 64-bit object if we didn't find anything.
15963  if test -z "$lt_cv_aix_libpath_"; then
15964    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15965  fi
15966fi
15967rm -f core conftest.err conftest.$ac_objext \
15968    conftest$ac_exeext conftest.$ac_ext
15969  if test -z "$lt_cv_aix_libpath_"; then
15970    lt_cv_aix_libpath_=/usr/lib:/lib
15971  fi
15972
15973fi
15974
15975  aix_libpath=$lt_cv_aix_libpath_
15976fi
15977
15978	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15979	  # Warning - without using the other run time loading flags,
15980	  # -berok will link without error, but may produce a broken library.
15981	  no_undefined_flag=' $wl-bernotok'
15982	  allow_undefined_flag=' $wl-berok'
15983	  if test yes = "$with_gnu_ld"; then
15984	    # We only use this code for GNU lds that support --whole-archive.
15985	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15986	  else
15987	    # Exported symbols can be pulled into shared objects from archives
15988	    whole_archive_flag_spec='$convenience'
15989	  fi
15990	  archive_cmds_need_lc=yes
15991	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15992	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15993	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15994	  if test svr4 != "$with_aix_soname"; then
15995	    # This is similar to how AIX traditionally builds its shared libraries.
15996	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15997	  fi
15998	  if test aix != "$with_aix_soname"; then
15999	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16000	  else
16001	    # used by -dlpreopen to get the symbols
16002	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16003	  fi
16004	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16005	fi
16006      fi
16007      ;;
16008
16009    amigaos*)
16010      case $host_cpu in
16011      powerpc)
16012            # see comment about AmigaOS4 .so support
16013            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16014            archive_expsym_cmds=''
16015        ;;
16016      m68k)
16017            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)'
16018            hardcode_libdir_flag_spec='-L$libdir'
16019            hardcode_minus_L=yes
16020        ;;
16021      esac
16022      ;;
16023
16024    bsdi[45]*)
16025      export_dynamic_flag_spec=-rdynamic
16026      ;;
16027
16028    cygwin* | mingw* | pw32* | cegcc*)
16029      # When not using gcc, we currently assume that we are using
16030      # Microsoft Visual C++.
16031      # hardcode_libdir_flag_spec is actually meaningless, as there is
16032      # no search path for DLLs.
16033      case $cc_basename in
16034      cl*)
16035	# Native MSVC
16036	hardcode_libdir_flag_spec=' '
16037	allow_undefined_flag=unsupported
16038	always_export_symbols=yes
16039	file_list_spec='@'
16040	# Tell ltmain to make .lib files, not .a files.
16041	libext=lib
16042	# Tell ltmain to make .dll files, not .so files.
16043	shrext_cmds=.dll
16044	# FIXME: Setting linknames here is a bad hack.
16045	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16046	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16047            cp "$export_symbols" "$output_objdir/$soname.def";
16048            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16049          else
16050            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16051          fi~
16052          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16053          linknames='
16054	# The linker will not automatically build a static lib if we build a DLL.
16055	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16056	enable_shared_with_static_runtimes=yes
16057	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16058	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16059	# Don't use ranlib
16060	old_postinstall_cmds='chmod 644 $oldlib'
16061	postlink_cmds='lt_outputfile="@OUTPUT@"~
16062          lt_tool_outputfile="@TOOL_OUTPUT@"~
16063          case $lt_outputfile in
16064            *.exe|*.EXE) ;;
16065            *)
16066              lt_outputfile=$lt_outputfile.exe
16067              lt_tool_outputfile=$lt_tool_outputfile.exe
16068              ;;
16069          esac~
16070          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16071            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16072            $RM "$lt_outputfile.manifest";
16073          fi'
16074	;;
16075      *)
16076	# Assume MSVC wrapper
16077	hardcode_libdir_flag_spec=' '
16078	allow_undefined_flag=unsupported
16079	# Tell ltmain to make .lib files, not .a files.
16080	libext=lib
16081	# Tell ltmain to make .dll files, not .so files.
16082	shrext_cmds=.dll
16083	# FIXME: Setting linknames here is a bad hack.
16084	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16085	# The linker will automatically build a .lib file if we build a DLL.
16086	old_archive_from_new_cmds='true'
16087	# FIXME: Should let the user specify the lib program.
16088	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16089	enable_shared_with_static_runtimes=yes
16090	;;
16091      esac
16092      ;;
16093
16094    darwin* | rhapsody*)
16095
16096
16097  archive_cmds_need_lc=no
16098  hardcode_direct=no
16099  hardcode_automatic=yes
16100  hardcode_shlibpath_var=unsupported
16101  if test yes = "$lt_cv_ld_force_load"; then
16102    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\"`'
16103
16104  else
16105    whole_archive_flag_spec=''
16106  fi
16107  link_all_deplibs=yes
16108  allow_undefined_flag=$_lt_dar_allow_undefined
16109  case $cc_basename in
16110     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16111     *) _lt_dar_can_shared=$GCC ;;
16112  esac
16113  if test yes = "$_lt_dar_can_shared"; then
16114    output_verbose_link_cmd=func_echo_all
16115    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16116    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16117    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"
16118    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"
16119
16120  else
16121  ld_shlibs=no
16122  fi
16123
16124      ;;
16125
16126    dgux*)
16127      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128      hardcode_libdir_flag_spec='-L$libdir'
16129      hardcode_shlibpath_var=no
16130      ;;
16131
16132    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16133    # support.  Future versions do this automatically, but an explicit c++rt0.o
16134    # does not break anything, and helps significantly (at the cost of a little
16135    # extra space).
16136    freebsd2.2*)
16137      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16138      hardcode_libdir_flag_spec='-R$libdir'
16139      hardcode_direct=yes
16140      hardcode_shlibpath_var=no
16141      ;;
16142
16143    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16144    freebsd2.*)
16145      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16146      hardcode_direct=yes
16147      hardcode_minus_L=yes
16148      hardcode_shlibpath_var=no
16149      ;;
16150
16151    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16152    freebsd* | dragonfly*)
16153      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16154      hardcode_libdir_flag_spec='-R$libdir'
16155      hardcode_direct=yes
16156      hardcode_shlibpath_var=no
16157      ;;
16158
16159    hpux9*)
16160      if test yes = "$GCC"; then
16161	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16162      else
16163	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16164      fi
16165      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16166      hardcode_libdir_separator=:
16167      hardcode_direct=yes
16168
16169      # hardcode_minus_L: Not really in the search PATH,
16170      # but as the default location of the library.
16171      hardcode_minus_L=yes
16172      export_dynamic_flag_spec='$wl-E'
16173      ;;
16174
16175    hpux10*)
16176      if test yes,no = "$GCC,$with_gnu_ld"; then
16177	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16178      else
16179	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16180      fi
16181      if test no = "$with_gnu_ld"; then
16182	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16183	hardcode_libdir_separator=:
16184	hardcode_direct=yes
16185	hardcode_direct_absolute=yes
16186	export_dynamic_flag_spec='$wl-E'
16187	# hardcode_minus_L: Not really in the search PATH,
16188	# but as the default location of the library.
16189	hardcode_minus_L=yes
16190      fi
16191      ;;
16192
16193    hpux11*)
16194      if test yes,no = "$GCC,$with_gnu_ld"; then
16195	case $host_cpu in
16196	hppa*64*)
16197	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16198	  ;;
16199	ia64*)
16200	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16201	  ;;
16202	*)
16203	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16204	  ;;
16205	esac
16206      else
16207	case $host_cpu in
16208	hppa*64*)
16209	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16210	  ;;
16211	ia64*)
16212	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16213	  ;;
16214	*)
16215
16216	  # Older versions of the 11.00 compiler do not understand -b yet
16217	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16218	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16219$as_echo_n "checking if $CC understands -b... " >&6; }
16220if ${lt_cv_prog_compiler__b+:} false; then :
16221  $as_echo_n "(cached) " >&6
16222else
16223  lt_cv_prog_compiler__b=no
16224   save_LDFLAGS=$LDFLAGS
16225   LDFLAGS="$LDFLAGS -b"
16226   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16227   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16228     # The linker can only warn and ignore the option if not recognized
16229     # So say no if there are warnings
16230     if test -s conftest.err; then
16231       # Append any errors to the config.log.
16232       cat conftest.err 1>&5
16233       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16234       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16235       if diff conftest.exp conftest.er2 >/dev/null; then
16236         lt_cv_prog_compiler__b=yes
16237       fi
16238     else
16239       lt_cv_prog_compiler__b=yes
16240     fi
16241   fi
16242   $RM -r conftest*
16243   LDFLAGS=$save_LDFLAGS
16244
16245fi
16246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16247$as_echo "$lt_cv_prog_compiler__b" >&6; }
16248
16249if test yes = "$lt_cv_prog_compiler__b"; then
16250    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16251else
16252    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16253fi
16254
16255	  ;;
16256	esac
16257      fi
16258      if test no = "$with_gnu_ld"; then
16259	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16260	hardcode_libdir_separator=:
16261
16262	case $host_cpu in
16263	hppa*64*|ia64*)
16264	  hardcode_direct=no
16265	  hardcode_shlibpath_var=no
16266	  ;;
16267	*)
16268	  hardcode_direct=yes
16269	  hardcode_direct_absolute=yes
16270	  export_dynamic_flag_spec='$wl-E'
16271
16272	  # hardcode_minus_L: Not really in the search PATH,
16273	  # but as the default location of the library.
16274	  hardcode_minus_L=yes
16275	  ;;
16276	esac
16277      fi
16278      ;;
16279
16280    irix5* | irix6* | nonstopux*)
16281      if test yes = "$GCC"; then
16282	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'
16283	# Try to use the -exported_symbol ld option, if it does not
16284	# work, assume that -exports_file does not work either and
16285	# implicitly export all symbols.
16286	# This should be the same for all languages, so no per-tag cache variable.
16287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16288$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16289if ${lt_cv_irix_exported_symbol+:} false; then :
16290  $as_echo_n "(cached) " >&6
16291else
16292  save_LDFLAGS=$LDFLAGS
16293	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16294	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295/* end confdefs.h.  */
16296int foo (void) { return 0; }
16297_ACEOF
16298if ac_fn_c_try_link "$LINENO"; then :
16299  lt_cv_irix_exported_symbol=yes
16300else
16301  lt_cv_irix_exported_symbol=no
16302fi
16303rm -f core conftest.err conftest.$ac_objext \
16304    conftest$ac_exeext conftest.$ac_ext
16305           LDFLAGS=$save_LDFLAGS
16306fi
16307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16308$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16309	if test yes = "$lt_cv_irix_exported_symbol"; then
16310          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'
16311	fi
16312      else
16313	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'
16314	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'
16315      fi
16316      archive_cmds_need_lc='no'
16317      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16318      hardcode_libdir_separator=:
16319      inherit_rpath=yes
16320      link_all_deplibs=yes
16321      ;;
16322
16323    linux*)
16324      case $cc_basename in
16325      tcc*)
16326	# Fabrice Bellard et al's Tiny C Compiler
16327	ld_shlibs=yes
16328	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16329	;;
16330      esac
16331      ;;
16332
16333    netbsd*)
16334      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16335	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16336      else
16337	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16338      fi
16339      hardcode_libdir_flag_spec='-R$libdir'
16340      hardcode_direct=yes
16341      hardcode_shlibpath_var=no
16342      ;;
16343
16344    newsos6)
16345      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16346      hardcode_direct=yes
16347      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16348      hardcode_libdir_separator=:
16349      hardcode_shlibpath_var=no
16350      ;;
16351
16352    *nto* | *qnx*)
16353      ;;
16354
16355    openbsd* | bitrig*)
16356      if test -f /usr/libexec/ld.so; then
16357	hardcode_direct=yes
16358	hardcode_shlibpath_var=no
16359	hardcode_direct_absolute=yes
16360	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16361	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16362	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16363	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16364	  export_dynamic_flag_spec='$wl-E'
16365	else
16366	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16367	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16368	fi
16369      else
16370	ld_shlibs=no
16371      fi
16372      ;;
16373
16374    os2*)
16375      hardcode_libdir_flag_spec='-L$libdir'
16376      hardcode_minus_L=yes
16377      allow_undefined_flag=unsupported
16378      shrext_cmds=.dll
16379      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16380	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16381	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16382	$ECHO EXPORTS >> $output_objdir/$libname.def~
16383	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16384	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16385	emximp -o $lib $output_objdir/$libname.def'
16386      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16387	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16388	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16389	$ECHO EXPORTS >> $output_objdir/$libname.def~
16390	prefix_cmds="$SED"~
16391	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16392	  prefix_cmds="$prefix_cmds -e 1d";
16393	fi~
16394	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16395	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16396	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16397	emximp -o $lib $output_objdir/$libname.def'
16398      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16399      enable_shared_with_static_runtimes=yes
16400      ;;
16401
16402    osf3*)
16403      if test yes = "$GCC"; then
16404	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16405	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'
16406      else
16407	allow_undefined_flag=' -expect_unresolved \*'
16408	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'
16409      fi
16410      archive_cmds_need_lc='no'
16411      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16412      hardcode_libdir_separator=:
16413      ;;
16414
16415    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16416      if test yes = "$GCC"; then
16417	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16418	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'
16419	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16420      else
16421	allow_undefined_flag=' -expect_unresolved \*'
16422	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'
16423	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~
16424          $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'
16425
16426	# Both c and cxx compiler support -rpath directly
16427	hardcode_libdir_flag_spec='-rpath $libdir'
16428      fi
16429      archive_cmds_need_lc='no'
16430      hardcode_libdir_separator=:
16431      ;;
16432
16433    solaris*)
16434      no_undefined_flag=' -z defs'
16435      if test yes = "$GCC"; then
16436	wlarc='$wl'
16437	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16438	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16439          $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'
16440      else
16441	case `$CC -V 2>&1` in
16442	*"Compilers 5.0"*)
16443	  wlarc=''
16444	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16446            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16447	  ;;
16448	*)
16449	  wlarc='$wl'
16450	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16451	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16452            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16453	  ;;
16454	esac
16455      fi
16456      hardcode_libdir_flag_spec='-R$libdir'
16457      hardcode_shlibpath_var=no
16458      case $host_os in
16459      solaris2.[0-5] | solaris2.[0-5].*) ;;
16460      *)
16461	# The compiler driver will combine and reorder linker options,
16462	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16463	# but is careful enough not to reorder.
16464	# Supported since Solaris 2.6 (maybe 2.5.1?)
16465	if test yes = "$GCC"; then
16466	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16467	else
16468	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16469	fi
16470	;;
16471      esac
16472      link_all_deplibs=yes
16473      ;;
16474
16475    sunos4*)
16476      if test sequent = "$host_vendor"; then
16477	# Use $CC to link under sequent, because it throws in some extra .o
16478	# files that make .init and .fini sections work.
16479	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16480      else
16481	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16482      fi
16483      hardcode_libdir_flag_spec='-L$libdir'
16484      hardcode_direct=yes
16485      hardcode_minus_L=yes
16486      hardcode_shlibpath_var=no
16487      ;;
16488
16489    sysv4)
16490      case $host_vendor in
16491	sni)
16492	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493	  hardcode_direct=yes # is this really true???
16494	;;
16495	siemens)
16496	  ## LD is ld it makes a PLAMLIB
16497	  ## CC just makes a GrossModule.
16498	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16499	  reload_cmds='$CC -r -o $output$reload_objs'
16500	  hardcode_direct=no
16501        ;;
16502	motorola)
16503	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16505	;;
16506      esac
16507      runpath_var='LD_RUN_PATH'
16508      hardcode_shlibpath_var=no
16509      ;;
16510
16511    sysv4.3*)
16512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513      hardcode_shlibpath_var=no
16514      export_dynamic_flag_spec='-Bexport'
16515      ;;
16516
16517    sysv4*MP*)
16518      if test -d /usr/nec; then
16519	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520	hardcode_shlibpath_var=no
16521	runpath_var=LD_RUN_PATH
16522	hardcode_runpath_var=yes
16523	ld_shlibs=yes
16524      fi
16525      ;;
16526
16527    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16528      no_undefined_flag='$wl-z,text'
16529      archive_cmds_need_lc=no
16530      hardcode_shlibpath_var=no
16531      runpath_var='LD_RUN_PATH'
16532
16533      if test yes = "$GCC"; then
16534	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536      else
16537	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539      fi
16540      ;;
16541
16542    sysv5* | sco3.2v5* | sco5v6*)
16543      # Note: We CANNOT use -z defs as we might desire, because we do not
16544      # link with -lc, and that would cause any symbols used from libc to
16545      # always be unresolved, which means just about no library would
16546      # ever link correctly.  If we're not using GNU ld we use -z text
16547      # though, which does catch some bad symbols but isn't as heavy-handed
16548      # as -z defs.
16549      no_undefined_flag='$wl-z,text'
16550      allow_undefined_flag='$wl-z,nodefs'
16551      archive_cmds_need_lc=no
16552      hardcode_shlibpath_var=no
16553      hardcode_libdir_flag_spec='$wl-R,$libdir'
16554      hardcode_libdir_separator=':'
16555      link_all_deplibs=yes
16556      export_dynamic_flag_spec='$wl-Bexport'
16557      runpath_var='LD_RUN_PATH'
16558
16559      if test yes = "$GCC"; then
16560	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562      else
16563	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565      fi
16566      ;;
16567
16568    uts4*)
16569      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16570      hardcode_libdir_flag_spec='-L$libdir'
16571      hardcode_shlibpath_var=no
16572      ;;
16573
16574    *)
16575      ld_shlibs=no
16576      ;;
16577    esac
16578
16579    if test sni = "$host_vendor"; then
16580      case $host in
16581      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16582	export_dynamic_flag_spec='$wl-Blargedynsym'
16583	;;
16584      esac
16585    fi
16586  fi
16587
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16589$as_echo "$ld_shlibs" >&6; }
16590test no = "$ld_shlibs" && can_build_shared=no
16591
16592with_gnu_ld=$with_gnu_ld
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608#
16609# Do we need to explicitly link libc?
16610#
16611case "x$archive_cmds_need_lc" in
16612x|xyes)
16613  # Assume -lc should be added
16614  archive_cmds_need_lc=yes
16615
16616  if test yes,yes = "$GCC,$enable_shared"; then
16617    case $archive_cmds in
16618    *'~'*)
16619      # FIXME: we may have to deal with multi-command sequences.
16620      ;;
16621    '$CC '*)
16622      # Test whether the compiler implicitly links with -lc since on some
16623      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16624      # to ld, don't add -lc before -lgcc.
16625      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16626$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16627if ${lt_cv_archive_cmds_need_lc+:} false; then :
16628  $as_echo_n "(cached) " >&6
16629else
16630  $RM conftest*
16631	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16632
16633	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16634  (eval $ac_compile) 2>&5
16635  ac_status=$?
16636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16637  test $ac_status = 0; } 2>conftest.err; then
16638	  soname=conftest
16639	  lib=conftest
16640	  libobjs=conftest.$ac_objext
16641	  deplibs=
16642	  wl=$lt_prog_compiler_wl
16643	  pic_flag=$lt_prog_compiler_pic
16644	  compiler_flags=-v
16645	  linker_flags=-v
16646	  verstring=
16647	  output_objdir=.
16648	  libname=conftest
16649	  lt_save_allow_undefined_flag=$allow_undefined_flag
16650	  allow_undefined_flag=
16651	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16652  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16653  ac_status=$?
16654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16655  test $ac_status = 0; }
16656	  then
16657	    lt_cv_archive_cmds_need_lc=no
16658	  else
16659	    lt_cv_archive_cmds_need_lc=yes
16660	  fi
16661	  allow_undefined_flag=$lt_save_allow_undefined_flag
16662	else
16663	  cat conftest.err 1>&5
16664	fi
16665	$RM conftest*
16666
16667fi
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16669$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16670      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16671      ;;
16672    esac
16673  fi
16674  ;;
16675esac
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16829$as_echo_n "checking dynamic linker characteristics... " >&6; }
16830
16831if test yes = "$GCC"; then
16832  case $host_os in
16833    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16834    *) lt_awk_arg='/^libraries:/' ;;
16835  esac
16836  case $host_os in
16837    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16838    *) lt_sed_strip_eq='s|=/|/|g' ;;
16839  esac
16840  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16841  case $lt_search_path_spec in
16842  *\;*)
16843    # if the path contains ";" then we assume it to be the separator
16844    # otherwise default to the standard path separator (i.e. ":") - it is
16845    # assumed that no part of a normal pathname contains ";" but that should
16846    # okay in the real world where ";" in dirpaths is itself problematic.
16847    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16848    ;;
16849  *)
16850    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16851    ;;
16852  esac
16853  # Ok, now we have the path, separated by spaces, we can step through it
16854  # and add multilib dir if necessary...
16855  lt_tmp_lt_search_path_spec=
16856  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16857  # ...but if some path component already ends with the multilib dir we assume
16858  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16859  case "$lt_multi_os_dir; $lt_search_path_spec " in
16860  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16861    lt_multi_os_dir=
16862    ;;
16863  esac
16864  for lt_sys_path in $lt_search_path_spec; do
16865    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16866      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16867    elif test -n "$lt_multi_os_dir"; then
16868      test -d "$lt_sys_path" && \
16869	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16870    fi
16871  done
16872  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16873BEGIN {RS = " "; FS = "/|\n";} {
16874  lt_foo = "";
16875  lt_count = 0;
16876  for (lt_i = NF; lt_i > 0; lt_i--) {
16877    if ($lt_i != "" && $lt_i != ".") {
16878      if ($lt_i == "..") {
16879        lt_count++;
16880      } else {
16881        if (lt_count == 0) {
16882          lt_foo = "/" $lt_i lt_foo;
16883        } else {
16884          lt_count--;
16885        }
16886      }
16887    }
16888  }
16889  if (lt_foo != "") { lt_freq[lt_foo]++; }
16890  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16891}'`
16892  # AWK program above erroneously prepends '/' to C:/dos/paths
16893  # for these hosts.
16894  case $host_os in
16895    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16896      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16897  esac
16898  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16899else
16900  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16901fi
16902library_names_spec=
16903libname_spec='lib$name'
16904soname_spec=
16905shrext_cmds=.so
16906postinstall_cmds=
16907postuninstall_cmds=
16908finish_cmds=
16909finish_eval=
16910shlibpath_var=
16911shlibpath_overrides_runpath=unknown
16912version_type=none
16913dynamic_linker="$host_os ld.so"
16914sys_lib_dlsearch_path_spec="/lib /usr/lib"
16915need_lib_prefix=unknown
16916hardcode_into_libs=no
16917
16918# when you set need_version to no, make sure it does not cause -set_version
16919# flags to be left without arguments
16920need_version=unknown
16921
16922
16923
16924case $host_os in
16925aix3*)
16926  version_type=linux # correct to gnu/linux during the next big refactor
16927  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16928  shlibpath_var=LIBPATH
16929
16930  # AIX 3 has no versioning support, so we append a major version to the name.
16931  soname_spec='$libname$release$shared_ext$major'
16932  ;;
16933
16934aix[4-9]*)
16935  version_type=linux # correct to gnu/linux during the next big refactor
16936  need_lib_prefix=no
16937  need_version=no
16938  hardcode_into_libs=yes
16939  if test ia64 = "$host_cpu"; then
16940    # AIX 5 supports IA64
16941    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16942    shlibpath_var=LD_LIBRARY_PATH
16943  else
16944    # With GCC up to 2.95.x, collect2 would create an import file
16945    # for dependence libraries.  The import file would start with
16946    # the line '#! .'.  This would cause the generated library to
16947    # depend on '.', always an invalid library.  This was fixed in
16948    # development snapshots of GCC prior to 3.0.
16949    case $host_os in
16950      aix4 | aix4.[01] | aix4.[01].*)
16951      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16952	   echo ' yes '
16953	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16954	:
16955      else
16956	can_build_shared=no
16957      fi
16958      ;;
16959    esac
16960    # Using Import Files as archive members, it is possible to support
16961    # filename-based versioning of shared library archives on AIX. While
16962    # this would work for both with and without runtime linking, it will
16963    # prevent static linking of such archives. So we do filename-based
16964    # shared library versioning with .so extension only, which is used
16965    # when both runtime linking and shared linking is enabled.
16966    # Unfortunately, runtime linking may impact performance, so we do
16967    # not want this to be the default eventually. Also, we use the
16968    # versioned .so libs for executables only if there is the -brtl
16969    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16970    # To allow for filename-based versioning support, we need to create
16971    # libNAME.so.V as an archive file, containing:
16972    # *) an Import File, referring to the versioned filename of the
16973    #    archive as well as the shared archive member, telling the
16974    #    bitwidth (32 or 64) of that shared object, and providing the
16975    #    list of exported symbols of that shared object, eventually
16976    #    decorated with the 'weak' keyword
16977    # *) the shared object with the F_LOADONLY flag set, to really avoid
16978    #    it being seen by the linker.
16979    # At run time we better use the real file rather than another symlink,
16980    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16981
16982    case $with_aix_soname,$aix_use_runtimelinking in
16983    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16984    # soname into executable. Probably we can add versioning support to
16985    # collect2, so additional links can be useful in future.
16986    aix,yes) # traditional libtool
16987      dynamic_linker='AIX unversionable lib.so'
16988      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16989      # instead of lib<name>.a to let people know that these are not
16990      # typical AIX shared libraries.
16991      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16992      ;;
16993    aix,no) # traditional AIX only
16994      dynamic_linker='AIX lib.a(lib.so.V)'
16995      # We preserve .a as extension for shared libraries through AIX4.2
16996      # and later when we are not doing run time linking.
16997      library_names_spec='$libname$release.a $libname.a'
16998      soname_spec='$libname$release$shared_ext$major'
16999      ;;
17000    svr4,*) # full svr4 only
17001      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17002      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17003      # We do not specify a path in Import Files, so LIBPATH fires.
17004      shlibpath_overrides_runpath=yes
17005      ;;
17006    *,yes) # both, prefer svr4
17007      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17008      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17009      # unpreferred sharedlib libNAME.a needs extra handling
17010      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17011      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17012      # We do not specify a path in Import Files, so LIBPATH fires.
17013      shlibpath_overrides_runpath=yes
17014      ;;
17015    *,no) # both, prefer aix
17016      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17017      library_names_spec='$libname$release.a $libname.a'
17018      soname_spec='$libname$release$shared_ext$major'
17019      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17020      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17021      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17022      ;;
17023    esac
17024    shlibpath_var=LIBPATH
17025  fi
17026  ;;
17027
17028amigaos*)
17029  case $host_cpu in
17030  powerpc)
17031    # Since July 2007 AmigaOS4 officially supports .so libraries.
17032    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17033    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17034    ;;
17035  m68k)
17036    library_names_spec='$libname.ixlibrary $libname.a'
17037    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17038    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17039    ;;
17040  esac
17041  ;;
17042
17043beos*)
17044  library_names_spec='$libname$shared_ext'
17045  dynamic_linker="$host_os ld.so"
17046  shlibpath_var=LIBRARY_PATH
17047  ;;
17048
17049bsdi[45]*)
17050  version_type=linux # correct to gnu/linux during the next big refactor
17051  need_version=no
17052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17053  soname_spec='$libname$release$shared_ext$major'
17054  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17055  shlibpath_var=LD_LIBRARY_PATH
17056  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17057  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17058  # the default ld.so.conf also contains /usr/contrib/lib and
17059  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17060  # libtool to hard-code these into programs
17061  ;;
17062
17063cygwin* | mingw* | pw32* | cegcc*)
17064  version_type=windows
17065  shrext_cmds=.dll
17066  need_version=no
17067  need_lib_prefix=no
17068
17069  case $GCC,$cc_basename in
17070  yes,*)
17071    # gcc
17072    library_names_spec='$libname.dll.a'
17073    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17074    postinstall_cmds='base_file=`basename \$file`~
17075      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17076      dldir=$destdir/`dirname \$dlpath`~
17077      test -d \$dldir || mkdir -p \$dldir~
17078      $install_prog $dir/$dlname \$dldir/$dlname~
17079      chmod a+x \$dldir/$dlname~
17080      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17081        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17082      fi'
17083    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17084      dlpath=$dir/\$dldll~
17085       $RM \$dlpath'
17086    shlibpath_overrides_runpath=yes
17087
17088    case $host_os in
17089    cygwin*)
17090      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17091      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17092
17093      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17094      ;;
17095    mingw* | cegcc*)
17096      # MinGW DLLs use traditional 'lib' prefix
17097      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17098      ;;
17099    pw32*)
17100      # pw32 DLLs use 'pw' prefix rather than 'lib'
17101      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17102      ;;
17103    esac
17104    dynamic_linker='Win32 ld.exe'
17105    ;;
17106
17107  *,cl*)
17108    # Native MSVC
17109    libname_spec='$name'
17110    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17111    library_names_spec='$libname.dll.lib'
17112
17113    case $build_os in
17114    mingw*)
17115      sys_lib_search_path_spec=
17116      lt_save_ifs=$IFS
17117      IFS=';'
17118      for lt_path in $LIB
17119      do
17120        IFS=$lt_save_ifs
17121        # Let DOS variable expansion print the short 8.3 style file name.
17122        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17123        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17124      done
17125      IFS=$lt_save_ifs
17126      # Convert to MSYS style.
17127      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17128      ;;
17129    cygwin*)
17130      # Convert to unix form, then to dos form, then back to unix form
17131      # but this time dos style (no spaces!) so that the unix form looks
17132      # like /cygdrive/c/PROGRA~1:/cygdr...
17133      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17134      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17135      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17136      ;;
17137    *)
17138      sys_lib_search_path_spec=$LIB
17139      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17140        # It is most probably a Windows format PATH.
17141        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17142      else
17143        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17144      fi
17145      # FIXME: find the short name or the path components, as spaces are
17146      # common. (e.g. "Program Files" -> "PROGRA~1")
17147      ;;
17148    esac
17149
17150    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17151    postinstall_cmds='base_file=`basename \$file`~
17152      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17153      dldir=$destdir/`dirname \$dlpath`~
17154      test -d \$dldir || mkdir -p \$dldir~
17155      $install_prog $dir/$dlname \$dldir/$dlname'
17156    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17157      dlpath=$dir/\$dldll~
17158       $RM \$dlpath'
17159    shlibpath_overrides_runpath=yes
17160    dynamic_linker='Win32 link.exe'
17161    ;;
17162
17163  *)
17164    # Assume MSVC wrapper
17165    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17166    dynamic_linker='Win32 ld.exe'
17167    ;;
17168  esac
17169  # FIXME: first we should search . and the directory the executable is in
17170  shlibpath_var=PATH
17171  ;;
17172
17173darwin* | rhapsody*)
17174  dynamic_linker="$host_os dyld"
17175  version_type=darwin
17176  need_lib_prefix=no
17177  need_version=no
17178  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17179  soname_spec='$libname$release$major$shared_ext'
17180  shlibpath_overrides_runpath=yes
17181  shlibpath_var=DYLD_LIBRARY_PATH
17182  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17183
17184  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17185  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17186  ;;
17187
17188dgux*)
17189  version_type=linux # correct to gnu/linux during the next big refactor
17190  need_lib_prefix=no
17191  need_version=no
17192  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17193  soname_spec='$libname$release$shared_ext$major'
17194  shlibpath_var=LD_LIBRARY_PATH
17195  ;;
17196
17197freebsd* | dragonfly*)
17198  # DragonFly does not have aout.  When/if they implement a new
17199  # versioning mechanism, adjust this.
17200  if test -x /usr/bin/objformat; then
17201    objformat=`/usr/bin/objformat`
17202  else
17203    case $host_os in
17204    freebsd[23].*) objformat=aout ;;
17205    *) objformat=elf ;;
17206    esac
17207  fi
17208  # Handle Gentoo/FreeBSD as it was Linux
17209  case $host_vendor in
17210    gentoo)
17211      version_type=linux ;;
17212    *)
17213      version_type=freebsd-$objformat ;;
17214  esac
17215
17216  case $version_type in
17217    freebsd-elf*)
17218      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17219      soname_spec='$libname$release$shared_ext$major'
17220      need_version=no
17221      need_lib_prefix=no
17222      ;;
17223    freebsd-*)
17224      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17225      need_version=yes
17226      ;;
17227    linux)
17228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17229      soname_spec='${libname}${release}${shared_ext}$major'
17230      need_lib_prefix=no
17231      need_version=no
17232      ;;
17233  esac
17234  shlibpath_var=LD_LIBRARY_PATH
17235  case $host_os in
17236  freebsd2.*)
17237    shlibpath_overrides_runpath=yes
17238    ;;
17239  freebsd3.[01]* | freebsdelf3.[01]*)
17240    shlibpath_overrides_runpath=yes
17241    hardcode_into_libs=yes
17242    ;;
17243  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17244  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17245    shlibpath_overrides_runpath=no
17246    hardcode_into_libs=yes
17247    ;;
17248  *) # from 4.6 on, and DragonFly
17249    shlibpath_overrides_runpath=yes
17250    hardcode_into_libs=yes
17251    ;;
17252  esac
17253  ;;
17254
17255haiku*)
17256  version_type=linux # correct to gnu/linux during the next big refactor
17257  need_lib_prefix=no
17258  need_version=no
17259  dynamic_linker="$host_os runtime_loader"
17260  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17261  soname_spec='$libname$release$shared_ext$major'
17262  shlibpath_var=LIBRARY_PATH
17263  shlibpath_overrides_runpath=no
17264  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17265  hardcode_into_libs=yes
17266  ;;
17267
17268hpux9* | hpux10* | hpux11*)
17269  # Give a soname corresponding to the major version so that dld.sl refuses to
17270  # link against other versions.
17271  version_type=sunos
17272  need_lib_prefix=no
17273  need_version=no
17274  case $host_cpu in
17275  ia64*)
17276    shrext_cmds='.so'
17277    hardcode_into_libs=yes
17278    dynamic_linker="$host_os dld.so"
17279    shlibpath_var=LD_LIBRARY_PATH
17280    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17281    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17282    soname_spec='$libname$release$shared_ext$major'
17283    if test 32 = "$HPUX_IA64_MODE"; then
17284      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17285      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17286    else
17287      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17288      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17289    fi
17290    ;;
17291  hppa*64*)
17292    shrext_cmds='.sl'
17293    hardcode_into_libs=yes
17294    dynamic_linker="$host_os dld.sl"
17295    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17296    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17297    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17298    soname_spec='$libname$release$shared_ext$major'
17299    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17300    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17301    ;;
17302  *)
17303    shrext_cmds='.sl'
17304    dynamic_linker="$host_os dld.sl"
17305    shlibpath_var=SHLIB_PATH
17306    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17307    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17308    soname_spec='$libname$release$shared_ext$major'
17309    ;;
17310  esac
17311  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17312  postinstall_cmds='chmod 555 $lib'
17313  # or fails outright, so override atomically:
17314  install_override_mode=555
17315  ;;
17316
17317interix[3-9]*)
17318  version_type=linux # correct to gnu/linux during the next big refactor
17319  need_lib_prefix=no
17320  need_version=no
17321  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17322  soname_spec='$libname$release$shared_ext$major'
17323  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17324  shlibpath_var=LD_LIBRARY_PATH
17325  shlibpath_overrides_runpath=no
17326  hardcode_into_libs=yes
17327  ;;
17328
17329irix5* | irix6* | nonstopux*)
17330  case $host_os in
17331    nonstopux*) version_type=nonstopux ;;
17332    *)
17333	if test yes = "$lt_cv_prog_gnu_ld"; then
17334		version_type=linux # correct to gnu/linux during the next big refactor
17335	else
17336		version_type=irix
17337	fi ;;
17338  esac
17339  need_lib_prefix=no
17340  need_version=no
17341  soname_spec='$libname$release$shared_ext$major'
17342  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17343  case $host_os in
17344  irix5* | nonstopux*)
17345    libsuff= shlibsuff=
17346    ;;
17347  *)
17348    case $LD in # libtool.m4 will add one of these switches to LD
17349    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17350      libsuff= shlibsuff= libmagic=32-bit;;
17351    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17352      libsuff=32 shlibsuff=N32 libmagic=N32;;
17353    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17354      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17355    *) libsuff= shlibsuff= libmagic=never-match;;
17356    esac
17357    ;;
17358  esac
17359  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17360  shlibpath_overrides_runpath=no
17361  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17362  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17363  hardcode_into_libs=yes
17364  ;;
17365
17366# No shared lib support for Linux oldld, aout, or coff.
17367linux*oldld* | linux*aout* | linux*coff*)
17368  dynamic_linker=no
17369  ;;
17370
17371linux*android*)
17372  version_type=none # Android doesn't support versioned libraries.
17373  need_lib_prefix=no
17374  need_version=no
17375  library_names_spec='$libname$release$shared_ext'
17376  soname_spec='$libname$release$shared_ext'
17377  finish_cmds=
17378  shlibpath_var=LD_LIBRARY_PATH
17379  shlibpath_overrides_runpath=yes
17380
17381  # This implies no fast_install, which is unacceptable.
17382  # Some rework will be needed to allow for fast_install
17383  # before this can be enabled.
17384  hardcode_into_libs=yes
17385
17386  dynamic_linker='Android linker'
17387  # Don't embed -rpath directories since the linker doesn't support them.
17388  hardcode_libdir_flag_spec='-L$libdir'
17389  ;;
17390
17391# This must be glibc/ELF.
17392linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17393  version_type=linux # correct to gnu/linux during the next big refactor
17394  need_lib_prefix=no
17395  need_version=no
17396  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17397  soname_spec='$libname$release$shared_ext$major'
17398  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17399  shlibpath_var=LD_LIBRARY_PATH
17400  shlibpath_overrides_runpath=no
17401
17402  # Some binutils ld are patched to set DT_RUNPATH
17403  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17404  $as_echo_n "(cached) " >&6
17405else
17406  lt_cv_shlibpath_overrides_runpath=no
17407    save_LDFLAGS=$LDFLAGS
17408    save_libdir=$libdir
17409    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17410	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17411    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412/* end confdefs.h.  */
17413
17414int
17415main ()
17416{
17417
17418  ;
17419  return 0;
17420}
17421_ACEOF
17422if ac_fn_c_try_link "$LINENO"; then :
17423  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17424  lt_cv_shlibpath_overrides_runpath=yes
17425fi
17426fi
17427rm -f core conftest.err conftest.$ac_objext \
17428    conftest$ac_exeext conftest.$ac_ext
17429    LDFLAGS=$save_LDFLAGS
17430    libdir=$save_libdir
17431
17432fi
17433
17434  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17435
17436  # This implies no fast_install, which is unacceptable.
17437  # Some rework will be needed to allow for fast_install
17438  # before this can be enabled.
17439  hardcode_into_libs=yes
17440
17441  # Ideally, we could use ldconfig to report *all* directores which are
17442  # searched for libraries, however this is still not possible.  Aside from not
17443  # being certain /sbin/ldconfig is available, command
17444  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17445  # even though it is searched at run-time.  Try to do the best guess by
17446  # appending ld.so.conf contents (and includes) to the search path.
17447  if test -f /etc/ld.so.conf; then
17448    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' ' '`
17449    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17450  fi
17451
17452  # We used to test for /lib/ld.so.1 and disable shared libraries on
17453  # powerpc, because MkLinux only supported shared libraries with the
17454  # GNU dynamic linker.  Since this was broken with cross compilers,
17455  # most powerpc-linux boxes support dynamic linking these days and
17456  # people can always --disable-shared, the test was removed, and we
17457  # assume the GNU/Linux dynamic linker is in use.
17458  dynamic_linker='GNU/Linux ld.so'
17459  ;;
17460
17461netbsd*)
17462  version_type=sunos
17463  need_lib_prefix=no
17464  need_version=no
17465  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17466    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17467    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17468    dynamic_linker='NetBSD (a.out) ld.so'
17469  else
17470    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17471    soname_spec='$libname$release$shared_ext$major'
17472    dynamic_linker='NetBSD ld.elf_so'
17473  fi
17474  shlibpath_var=LD_LIBRARY_PATH
17475  shlibpath_overrides_runpath=yes
17476  hardcode_into_libs=yes
17477  ;;
17478
17479newsos6)
17480  version_type=linux # correct to gnu/linux during the next big refactor
17481  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17482  shlibpath_var=LD_LIBRARY_PATH
17483  shlibpath_overrides_runpath=yes
17484  ;;
17485
17486*nto* | *qnx*)
17487  version_type=qnx
17488  need_lib_prefix=no
17489  need_version=no
17490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17491  soname_spec='$libname$release$shared_ext$major'
17492  shlibpath_var=LD_LIBRARY_PATH
17493  shlibpath_overrides_runpath=no
17494  hardcode_into_libs=yes
17495  dynamic_linker='ldqnx.so'
17496  ;;
17497
17498openbsd* | bitrig*)
17499  version_type=sunos
17500  sys_lib_dlsearch_path_spec=/usr/lib
17501  need_lib_prefix=no
17502  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17503    need_version=no
17504  else
17505    need_version=yes
17506  fi
17507  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17508  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17509  shlibpath_var=LD_LIBRARY_PATH
17510  shlibpath_overrides_runpath=yes
17511  ;;
17512
17513os2*)
17514  libname_spec='$name'
17515  version_type=windows
17516  shrext_cmds=.dll
17517  need_version=no
17518  need_lib_prefix=no
17519  # OS/2 can only load a DLL with a base name of 8 characters or less.
17520  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17521    v=$($ECHO $release$versuffix | tr -d .-);
17522    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17523    $ECHO $n$v`$shared_ext'
17524  library_names_spec='${libname}_dll.$libext'
17525  dynamic_linker='OS/2 ld.exe'
17526  shlibpath_var=BEGINLIBPATH
17527  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17528  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17529  postinstall_cmds='base_file=`basename \$file`~
17530    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17531    dldir=$destdir/`dirname \$dlpath`~
17532    test -d \$dldir || mkdir -p \$dldir~
17533    $install_prog $dir/$dlname \$dldir/$dlname~
17534    chmod a+x \$dldir/$dlname~
17535    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17536      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17537    fi'
17538  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17539    dlpath=$dir/\$dldll~
17540    $RM \$dlpath'
17541  ;;
17542
17543osf3* | osf4* | osf5*)
17544  version_type=osf
17545  need_lib_prefix=no
17546  need_version=no
17547  soname_spec='$libname$release$shared_ext$major'
17548  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17549  shlibpath_var=LD_LIBRARY_PATH
17550  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17551  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17552  ;;
17553
17554rdos*)
17555  dynamic_linker=no
17556  ;;
17557
17558solaris*)
17559  version_type=linux # correct to gnu/linux during the next big refactor
17560  need_lib_prefix=no
17561  need_version=no
17562  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17563  soname_spec='$libname$release$shared_ext$major'
17564  shlibpath_var=LD_LIBRARY_PATH
17565  shlibpath_overrides_runpath=yes
17566  hardcode_into_libs=yes
17567  # ldd complains unless libraries are executable
17568  postinstall_cmds='chmod +x $lib'
17569  ;;
17570
17571sunos4*)
17572  version_type=sunos
17573  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17574  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17575  shlibpath_var=LD_LIBRARY_PATH
17576  shlibpath_overrides_runpath=yes
17577  if test yes = "$with_gnu_ld"; then
17578    need_lib_prefix=no
17579  fi
17580  need_version=yes
17581  ;;
17582
17583sysv4 | sysv4.3*)
17584  version_type=linux # correct to gnu/linux during the next big refactor
17585  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17586  soname_spec='$libname$release$shared_ext$major'
17587  shlibpath_var=LD_LIBRARY_PATH
17588  case $host_vendor in
17589    sni)
17590      shlibpath_overrides_runpath=no
17591      need_lib_prefix=no
17592      runpath_var=LD_RUN_PATH
17593      ;;
17594    siemens)
17595      need_lib_prefix=no
17596      ;;
17597    motorola)
17598      need_lib_prefix=no
17599      need_version=no
17600      shlibpath_overrides_runpath=no
17601      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17602      ;;
17603  esac
17604  ;;
17605
17606sysv4*MP*)
17607  if test -d /usr/nec; then
17608    version_type=linux # correct to gnu/linux during the next big refactor
17609    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17610    soname_spec='$libname$shared_ext.$major'
17611    shlibpath_var=LD_LIBRARY_PATH
17612  fi
17613  ;;
17614
17615sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17616  version_type=sco
17617  need_lib_prefix=no
17618  need_version=no
17619  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17620  soname_spec='$libname$release$shared_ext$major'
17621  shlibpath_var=LD_LIBRARY_PATH
17622  shlibpath_overrides_runpath=yes
17623  hardcode_into_libs=yes
17624  if test yes = "$with_gnu_ld"; then
17625    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17626  else
17627    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17628    case $host_os in
17629      sco3.2v5*)
17630        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17631	;;
17632    esac
17633  fi
17634  sys_lib_dlsearch_path_spec='/usr/lib'
17635  ;;
17636
17637tpf*)
17638  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17639  version_type=linux # correct to gnu/linux during the next big refactor
17640  need_lib_prefix=no
17641  need_version=no
17642  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17643  shlibpath_var=LD_LIBRARY_PATH
17644  shlibpath_overrides_runpath=no
17645  hardcode_into_libs=yes
17646  ;;
17647
17648uts4*)
17649  version_type=linux # correct to gnu/linux during the next big refactor
17650  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17651  soname_spec='$libname$release$shared_ext$major'
17652  shlibpath_var=LD_LIBRARY_PATH
17653  ;;
17654
17655*)
17656  dynamic_linker=no
17657  ;;
17658esac
17659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17660$as_echo "$dynamic_linker" >&6; }
17661test no = "$dynamic_linker" && can_build_shared=no
17662
17663variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17664if test yes = "$GCC"; then
17665  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17666fi
17667
17668if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17669  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17670fi
17671
17672if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17673  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17674fi
17675
17676# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17677configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17678
17679# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17680func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17681
17682# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17683configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17782$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17783hardcode_action=
17784if test -n "$hardcode_libdir_flag_spec" ||
17785   test -n "$runpath_var" ||
17786   test yes = "$hardcode_automatic"; then
17787
17788  # We can hardcode non-existent directories.
17789  if test no != "$hardcode_direct" &&
17790     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17791     # have to relink, otherwise we might link with an installed library
17792     # when we should be linking with a yet-to-be-installed one
17793     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17794     test no != "$hardcode_minus_L"; then
17795    # Linking always hardcodes the temporary library directory.
17796    hardcode_action=relink
17797  else
17798    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17799    hardcode_action=immediate
17800  fi
17801else
17802  # We cannot hardcode anything, or else we can only hardcode existing
17803  # directories.
17804  hardcode_action=unsupported
17805fi
17806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17807$as_echo "$hardcode_action" >&6; }
17808
17809if test relink = "$hardcode_action" ||
17810   test yes = "$inherit_rpath"; then
17811  # Fast installation is not supported
17812  enable_fast_install=no
17813elif test yes = "$shlibpath_overrides_runpath" ||
17814     test no = "$enable_shared"; then
17815  # Fast installation is not necessary
17816  enable_fast_install=needless
17817fi
17818
17819
17820
17821
17822
17823
17824  if test yes != "$enable_dlopen"; then
17825  enable_dlopen=unknown
17826  enable_dlopen_self=unknown
17827  enable_dlopen_self_static=unknown
17828else
17829  lt_cv_dlopen=no
17830  lt_cv_dlopen_libs=
17831
17832  case $host_os in
17833  beos*)
17834    lt_cv_dlopen=load_add_on
17835    lt_cv_dlopen_libs=
17836    lt_cv_dlopen_self=yes
17837    ;;
17838
17839  mingw* | pw32* | cegcc*)
17840    lt_cv_dlopen=LoadLibrary
17841    lt_cv_dlopen_libs=
17842    ;;
17843
17844  cygwin*)
17845    lt_cv_dlopen=dlopen
17846    lt_cv_dlopen_libs=
17847    ;;
17848
17849  darwin*)
17850    # if libdl is installed we need to link against it
17851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17852$as_echo_n "checking for dlopen in -ldl... " >&6; }
17853if ${ac_cv_lib_dl_dlopen+:} false; then :
17854  $as_echo_n "(cached) " >&6
17855else
17856  ac_check_lib_save_LIBS=$LIBS
17857LIBS="-ldl  $LIBS"
17858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859/* end confdefs.h.  */
17860
17861/* Override any GCC internal prototype to avoid an error.
17862   Use char because int might match the return type of a GCC
17863   builtin and then its argument prototype would still apply.  */
17864#ifdef __cplusplus
17865extern "C"
17866#endif
17867char dlopen ();
17868int
17869main ()
17870{
17871return dlopen ();
17872  ;
17873  return 0;
17874}
17875_ACEOF
17876if ac_fn_c_try_link "$LINENO"; then :
17877  ac_cv_lib_dl_dlopen=yes
17878else
17879  ac_cv_lib_dl_dlopen=no
17880fi
17881rm -f core conftest.err conftest.$ac_objext \
17882    conftest$ac_exeext conftest.$ac_ext
17883LIBS=$ac_check_lib_save_LIBS
17884fi
17885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17886$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17887if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17888  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17889else
17890
17891    lt_cv_dlopen=dyld
17892    lt_cv_dlopen_libs=
17893    lt_cv_dlopen_self=yes
17894
17895fi
17896
17897    ;;
17898
17899  tpf*)
17900    # Don't try to run any link tests for TPF.  We know it's impossible
17901    # because TPF is a cross-compiler, and we know how we open DSOs.
17902    lt_cv_dlopen=dlopen
17903    lt_cv_dlopen_libs=
17904    lt_cv_dlopen_self=no
17905    ;;
17906
17907  *)
17908    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17909if test "x$ac_cv_func_shl_load" = xyes; then :
17910  lt_cv_dlopen=shl_load
17911else
17912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17913$as_echo_n "checking for shl_load in -ldld... " >&6; }
17914if ${ac_cv_lib_dld_shl_load+:} false; then :
17915  $as_echo_n "(cached) " >&6
17916else
17917  ac_check_lib_save_LIBS=$LIBS
17918LIBS="-ldld  $LIBS"
17919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920/* end confdefs.h.  */
17921
17922/* Override any GCC internal prototype to avoid an error.
17923   Use char because int might match the return type of a GCC
17924   builtin and then its argument prototype would still apply.  */
17925#ifdef __cplusplus
17926extern "C"
17927#endif
17928char shl_load ();
17929int
17930main ()
17931{
17932return shl_load ();
17933  ;
17934  return 0;
17935}
17936_ACEOF
17937if ac_fn_c_try_link "$LINENO"; then :
17938  ac_cv_lib_dld_shl_load=yes
17939else
17940  ac_cv_lib_dld_shl_load=no
17941fi
17942rm -f core conftest.err conftest.$ac_objext \
17943    conftest$ac_exeext conftest.$ac_ext
17944LIBS=$ac_check_lib_save_LIBS
17945fi
17946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17947$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17948if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17949  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17950else
17951  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17952if test "x$ac_cv_func_dlopen" = xyes; then :
17953  lt_cv_dlopen=dlopen
17954else
17955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17956$as_echo_n "checking for dlopen in -ldl... " >&6; }
17957if ${ac_cv_lib_dl_dlopen+:} false; then :
17958  $as_echo_n "(cached) " >&6
17959else
17960  ac_check_lib_save_LIBS=$LIBS
17961LIBS="-ldl  $LIBS"
17962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963/* end confdefs.h.  */
17964
17965/* Override any GCC internal prototype to avoid an error.
17966   Use char because int might match the return type of a GCC
17967   builtin and then its argument prototype would still apply.  */
17968#ifdef __cplusplus
17969extern "C"
17970#endif
17971char dlopen ();
17972int
17973main ()
17974{
17975return dlopen ();
17976  ;
17977  return 0;
17978}
17979_ACEOF
17980if ac_fn_c_try_link "$LINENO"; then :
17981  ac_cv_lib_dl_dlopen=yes
17982else
17983  ac_cv_lib_dl_dlopen=no
17984fi
17985rm -f core conftest.err conftest.$ac_objext \
17986    conftest$ac_exeext conftest.$ac_ext
17987LIBS=$ac_check_lib_save_LIBS
17988fi
17989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17991if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17992  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17993else
17994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17995$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17996if ${ac_cv_lib_svld_dlopen+:} false; then :
17997  $as_echo_n "(cached) " >&6
17998else
17999  ac_check_lib_save_LIBS=$LIBS
18000LIBS="-lsvld  $LIBS"
18001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002/* end confdefs.h.  */
18003
18004/* Override any GCC internal prototype to avoid an error.
18005   Use char because int might match the return type of a GCC
18006   builtin and then its argument prototype would still apply.  */
18007#ifdef __cplusplus
18008extern "C"
18009#endif
18010char dlopen ();
18011int
18012main ()
18013{
18014return dlopen ();
18015  ;
18016  return 0;
18017}
18018_ACEOF
18019if ac_fn_c_try_link "$LINENO"; then :
18020  ac_cv_lib_svld_dlopen=yes
18021else
18022  ac_cv_lib_svld_dlopen=no
18023fi
18024rm -f core conftest.err conftest.$ac_objext \
18025    conftest$ac_exeext conftest.$ac_ext
18026LIBS=$ac_check_lib_save_LIBS
18027fi
18028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18029$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18030if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18031  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18032else
18033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18034$as_echo_n "checking for dld_link in -ldld... " >&6; }
18035if ${ac_cv_lib_dld_dld_link+:} false; then :
18036  $as_echo_n "(cached) " >&6
18037else
18038  ac_check_lib_save_LIBS=$LIBS
18039LIBS="-ldld  $LIBS"
18040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041/* end confdefs.h.  */
18042
18043/* Override any GCC internal prototype to avoid an error.
18044   Use char because int might match the return type of a GCC
18045   builtin and then its argument prototype would still apply.  */
18046#ifdef __cplusplus
18047extern "C"
18048#endif
18049char dld_link ();
18050int
18051main ()
18052{
18053return dld_link ();
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_link "$LINENO"; then :
18059  ac_cv_lib_dld_dld_link=yes
18060else
18061  ac_cv_lib_dld_dld_link=no
18062fi
18063rm -f core conftest.err conftest.$ac_objext \
18064    conftest$ac_exeext conftest.$ac_ext
18065LIBS=$ac_check_lib_save_LIBS
18066fi
18067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18068$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18069if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18070  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18071fi
18072
18073
18074fi
18075
18076
18077fi
18078
18079
18080fi
18081
18082
18083fi
18084
18085
18086fi
18087
18088    ;;
18089  esac
18090
18091  if test no = "$lt_cv_dlopen"; then
18092    enable_dlopen=no
18093  else
18094    enable_dlopen=yes
18095  fi
18096
18097  case $lt_cv_dlopen in
18098  dlopen)
18099    save_CPPFLAGS=$CPPFLAGS
18100    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18101
18102    save_LDFLAGS=$LDFLAGS
18103    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18104
18105    save_LIBS=$LIBS
18106    LIBS="$lt_cv_dlopen_libs $LIBS"
18107
18108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18109$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18110if ${lt_cv_dlopen_self+:} false; then :
18111  $as_echo_n "(cached) " >&6
18112else
18113  	  if test yes = "$cross_compiling"; then :
18114  lt_cv_dlopen_self=cross
18115else
18116  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18117  lt_status=$lt_dlunknown
18118  cat > conftest.$ac_ext <<_LT_EOF
18119#line $LINENO "configure"
18120#include "confdefs.h"
18121
18122#if HAVE_DLFCN_H
18123#include <dlfcn.h>
18124#endif
18125
18126#include <stdio.h>
18127
18128#ifdef RTLD_GLOBAL
18129#  define LT_DLGLOBAL		RTLD_GLOBAL
18130#else
18131#  ifdef DL_GLOBAL
18132#    define LT_DLGLOBAL		DL_GLOBAL
18133#  else
18134#    define LT_DLGLOBAL		0
18135#  endif
18136#endif
18137
18138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18139   find out it does not work in some platform. */
18140#ifndef LT_DLLAZY_OR_NOW
18141#  ifdef RTLD_LAZY
18142#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18143#  else
18144#    ifdef DL_LAZY
18145#      define LT_DLLAZY_OR_NOW		DL_LAZY
18146#    else
18147#      ifdef RTLD_NOW
18148#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18149#      else
18150#        ifdef DL_NOW
18151#          define LT_DLLAZY_OR_NOW	DL_NOW
18152#        else
18153#          define LT_DLLAZY_OR_NOW	0
18154#        endif
18155#      endif
18156#    endif
18157#  endif
18158#endif
18159
18160/* When -fvisibility=hidden is used, assume the code has been annotated
18161   correspondingly for the symbols needed.  */
18162#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18163int fnord () __attribute__((visibility("default")));
18164#endif
18165
18166int fnord () { return 42; }
18167int main ()
18168{
18169  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18170  int status = $lt_dlunknown;
18171
18172  if (self)
18173    {
18174      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18175      else
18176        {
18177	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18178          else puts (dlerror ());
18179	}
18180      /* dlclose (self); */
18181    }
18182  else
18183    puts (dlerror ());
18184
18185  return status;
18186}
18187_LT_EOF
18188  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18189  (eval $ac_link) 2>&5
18190  ac_status=$?
18191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18192  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18193    (./conftest; exit; ) >&5 2>/dev/null
18194    lt_status=$?
18195    case x$lt_status in
18196      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18197      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18198      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18199    esac
18200  else :
18201    # compilation failed
18202    lt_cv_dlopen_self=no
18203  fi
18204fi
18205rm -fr conftest*
18206
18207
18208fi
18209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18210$as_echo "$lt_cv_dlopen_self" >&6; }
18211
18212    if test yes = "$lt_cv_dlopen_self"; then
18213      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18214      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18215$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18216if ${lt_cv_dlopen_self_static+:} false; then :
18217  $as_echo_n "(cached) " >&6
18218else
18219  	  if test yes = "$cross_compiling"; then :
18220  lt_cv_dlopen_self_static=cross
18221else
18222  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18223  lt_status=$lt_dlunknown
18224  cat > conftest.$ac_ext <<_LT_EOF
18225#line $LINENO "configure"
18226#include "confdefs.h"
18227
18228#if HAVE_DLFCN_H
18229#include <dlfcn.h>
18230#endif
18231
18232#include <stdio.h>
18233
18234#ifdef RTLD_GLOBAL
18235#  define LT_DLGLOBAL		RTLD_GLOBAL
18236#else
18237#  ifdef DL_GLOBAL
18238#    define LT_DLGLOBAL		DL_GLOBAL
18239#  else
18240#    define LT_DLGLOBAL		0
18241#  endif
18242#endif
18243
18244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18245   find out it does not work in some platform. */
18246#ifndef LT_DLLAZY_OR_NOW
18247#  ifdef RTLD_LAZY
18248#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18249#  else
18250#    ifdef DL_LAZY
18251#      define LT_DLLAZY_OR_NOW		DL_LAZY
18252#    else
18253#      ifdef RTLD_NOW
18254#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18255#      else
18256#        ifdef DL_NOW
18257#          define LT_DLLAZY_OR_NOW	DL_NOW
18258#        else
18259#          define LT_DLLAZY_OR_NOW	0
18260#        endif
18261#      endif
18262#    endif
18263#  endif
18264#endif
18265
18266/* When -fvisibility=hidden is used, assume the code has been annotated
18267   correspondingly for the symbols needed.  */
18268#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18269int fnord () __attribute__((visibility("default")));
18270#endif
18271
18272int fnord () { return 42; }
18273int main ()
18274{
18275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18276  int status = $lt_dlunknown;
18277
18278  if (self)
18279    {
18280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18281      else
18282        {
18283	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18284          else puts (dlerror ());
18285	}
18286      /* dlclose (self); */
18287    }
18288  else
18289    puts (dlerror ());
18290
18291  return status;
18292}
18293_LT_EOF
18294  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18295  (eval $ac_link) 2>&5
18296  ac_status=$?
18297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18298  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18299    (./conftest; exit; ) >&5 2>/dev/null
18300    lt_status=$?
18301    case x$lt_status in
18302      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18303      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18304      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18305    esac
18306  else :
18307    # compilation failed
18308    lt_cv_dlopen_self_static=no
18309  fi
18310fi
18311rm -fr conftest*
18312
18313
18314fi
18315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18316$as_echo "$lt_cv_dlopen_self_static" >&6; }
18317    fi
18318
18319    CPPFLAGS=$save_CPPFLAGS
18320    LDFLAGS=$save_LDFLAGS
18321    LIBS=$save_LIBS
18322    ;;
18323  esac
18324
18325  case $lt_cv_dlopen_self in
18326  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18327  *) enable_dlopen_self=unknown ;;
18328  esac
18329
18330  case $lt_cv_dlopen_self_static in
18331  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18332  *) enable_dlopen_self_static=unknown ;;
18333  esac
18334fi
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352striplib=
18353old_striplib=
18354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18355$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18356if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18357  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18358  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18360$as_echo "yes" >&6; }
18361else
18362# FIXME - insert some real tests, host_os isn't really good enough
18363  case $host_os in
18364  darwin*)
18365    if test -n "$STRIP"; then
18366      striplib="$STRIP -x"
18367      old_striplib="$STRIP -S"
18368      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18369$as_echo "yes" >&6; }
18370    else
18371      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18372$as_echo "no" >&6; }
18373    fi
18374    ;;
18375  *)
18376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377$as_echo "no" >&6; }
18378    ;;
18379  esac
18380fi
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393  # Report what library types will actually be built
18394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18395$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18397$as_echo "$can_build_shared" >&6; }
18398
18399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18400$as_echo_n "checking whether to build shared libraries... " >&6; }
18401  test no = "$can_build_shared" && enable_shared=no
18402
18403  # On AIX, shared libraries and static libraries use the same namespace, and
18404  # are all built from PIC.
18405  case $host_os in
18406  aix3*)
18407    test yes = "$enable_shared" && enable_static=no
18408    if test -n "$RANLIB"; then
18409      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18410      postinstall_cmds='$RANLIB $lib'
18411    fi
18412    ;;
18413
18414  aix[4-9]*)
18415    if test ia64 != "$host_cpu"; then
18416      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18417      yes,aix,yes) ;;			# shared object as lib.so file only
18418      yes,svr4,*) ;;			# shared object as lib.so archive member only
18419      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18420      esac
18421    fi
18422    ;;
18423  esac
18424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18425$as_echo "$enable_shared" >&6; }
18426
18427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18428$as_echo_n "checking whether to build static libraries... " >&6; }
18429  # Make sure either enable_shared or enable_static is yes.
18430  test yes = "$enable_shared" || enable_static=yes
18431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18432$as_echo "$enable_static" >&6; }
18433
18434
18435
18436
18437fi
18438ac_ext=c
18439ac_cpp='$CPP $CPPFLAGS'
18440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442ac_compiler_gnu=$ac_cv_c_compiler_gnu
18443
18444CC=$lt_save_CC
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460        ac_config_commands="$ac_config_commands libtool"
18461
18462
18463
18464
18465# Only expand once:
18466
18467
18468
18469
18470
18471# Define a configure option for an alternate module directory
18472
18473# Check whether --with-xorg-module-dir was given.
18474if test "${with_xorg_module_dir+set}" = set; then :
18475  withval=$with_xorg_module_dir; moduledir="$withval"
18476else
18477  moduledir="$libdir/xorg/modules"
18478fi
18479
18480
18481# Store the list of server defined optional extensions in REQUIRED_MODULES
18482
18483
18484	SAVE_CFLAGS="$CFLAGS"
18485	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18486	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487/* end confdefs.h.  */
18488
18489#include "xorg-server.h"
18490#if !defined RANDR
18491#error RANDR not defined
18492#endif
18493
18494int
18495main ()
18496{
18497
18498  ;
18499  return 0;
18500}
18501_ACEOF
18502if ac_fn_c_try_compile "$LINENO"; then :
18503  _EXT_CHECK=yes
18504else
18505  _EXT_CHECK=no
18506fi
18507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18508	CFLAGS="$SAVE_CFLAGS"
18509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18510$as_echo_n "checking if RANDR is defined... " >&6; }
18511	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18512$as_echo "$_EXT_CHECK" >&6; }
18513	if test "$_EXT_CHECK" != no; then
18514		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18515	fi
18516
18517
18518
18519	SAVE_CFLAGS="$CFLAGS"
18520	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18521	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522/* end confdefs.h.  */
18523
18524#include "xorg-server.h"
18525#if !defined RENDER
18526#error RENDER not defined
18527#endif
18528
18529int
18530main ()
18531{
18532
18533  ;
18534  return 0;
18535}
18536_ACEOF
18537if ac_fn_c_try_compile "$LINENO"; then :
18538  _EXT_CHECK=yes
18539else
18540  _EXT_CHECK=no
18541fi
18542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18543	CFLAGS="$SAVE_CFLAGS"
18544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18545$as_echo_n "checking if RENDER is defined... " >&6; }
18546	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18547$as_echo "$_EXT_CHECK" >&6; }
18548	if test "$_EXT_CHECK" != no; then
18549		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18550	fi
18551
18552
18553
18554	SAVE_CFLAGS="$CFLAGS"
18555	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18556	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557/* end confdefs.h.  */
18558
18559#include "xorg-server.h"
18560#if !defined XV
18561#error XV not defined
18562#endif
18563
18564int
18565main ()
18566{
18567
18568  ;
18569  return 0;
18570}
18571_ACEOF
18572if ac_fn_c_try_compile "$LINENO"; then :
18573  _EXT_CHECK=yes
18574else
18575  _EXT_CHECK=no
18576fi
18577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578	CFLAGS="$SAVE_CFLAGS"
18579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18580$as_echo_n "checking if XV is defined... " >&6; }
18581	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18582$as_echo "$_EXT_CHECK" >&6; }
18583	if test "$_EXT_CHECK" != no; then
18584		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18585	fi
18586
18587
18588
18589	SAVE_CFLAGS="$CFLAGS"
18590	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18591	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592/* end confdefs.h.  */
18593
18594#include "xorg-server.h"
18595#if !defined DPMSExtension
18596#error DPMSExtension not defined
18597#endif
18598
18599int
18600main ()
18601{
18602
18603  ;
18604  return 0;
18605}
18606_ACEOF
18607if ac_fn_c_try_compile "$LINENO"; then :
18608  _EXT_CHECK=yes
18609else
18610  _EXT_CHECK=no
18611fi
18612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613	CFLAGS="$SAVE_CFLAGS"
18614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18615$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18616	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18617$as_echo "$_EXT_CHECK" >&6; }
18618	if test "$_EXT_CHECK" != no; then
18619		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18620	fi
18621
18622
18623
18624	SAVE_CFLAGS="$CFLAGS"
18625	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18626	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628
18629#include "xorg-server.h"
18630#if !defined DRI2
18631#error DRI2 not defined
18632#endif
18633
18634int
18635main ()
18636{
18637
18638  ;
18639  return 0;
18640}
18641_ACEOF
18642if ac_fn_c_try_compile "$LINENO"; then :
18643  _EXT_CHECK=yes
18644else
18645  _EXT_CHECK=no
18646fi
18647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648	CFLAGS="$SAVE_CFLAGS"
18649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5
18650$as_echo_n "checking if DRI2 is defined... " >&6; }
18651	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18652$as_echo "$_EXT_CHECK" >&6; }
18653	if test "$_EXT_CHECK" != no; then
18654		REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6"
18655	fi
18656
18657
18658# Checks for libraries
18659
18660pkg_failed=no
18661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 2.4.60" >&5
18662$as_echo_n "checking for libdrm >= 2.4.60... " >&6; }
18663
18664if test -n "$LIBDRM_CFLAGS"; then
18665    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18666 elif test -n "$PKG_CONFIG"; then
18667    if test -n "$PKG_CONFIG" && \
18668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
18669  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
18670  ac_status=$?
18671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18672  test $ac_status = 0; }; then
18673  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.60" 2>/dev/null`
18674		      test "x$?" != "x0" && pkg_failed=yes
18675else
18676  pkg_failed=yes
18677fi
18678 else
18679    pkg_failed=untried
18680fi
18681if test -n "$LIBDRM_LIBS"; then
18682    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18683 elif test -n "$PKG_CONFIG"; then
18684    if test -n "$PKG_CONFIG" && \
18685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
18686  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
18687  ac_status=$?
18688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18689  test $ac_status = 0; }; then
18690  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.60" 2>/dev/null`
18691		      test "x$?" != "x0" && pkg_failed=yes
18692else
18693  pkg_failed=yes
18694fi
18695 else
18696    pkg_failed=untried
18697fi
18698
18699
18700
18701if test $pkg_failed = yes; then
18702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703$as_echo "no" >&6; }
18704
18705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18706        _pkg_short_errors_supported=yes
18707else
18708        _pkg_short_errors_supported=no
18709fi
18710        if test $_pkg_short_errors_supported = yes; then
18711	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
18712        else
18713	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
18714        fi
18715	# Put the nasty error message in config.log where it belongs
18716	echo "$LIBDRM_PKG_ERRORS" >&5
18717
18718	as_fn_error $? "Package requirements (libdrm >= 2.4.60) were not met:
18719
18720$LIBDRM_PKG_ERRORS
18721
18722Consider adjusting the PKG_CONFIG_PATH environment variable if you
18723installed software in a non-standard prefix.
18724
18725Alternatively, you may set the environment variables LIBDRM_CFLAGS
18726and LIBDRM_LIBS to avoid the need to call pkg-config.
18727See the pkg-config man page for more details." "$LINENO" 5
18728elif test $pkg_failed = untried; then
18729        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730$as_echo "no" >&6; }
18731	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18733as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18734is in your PATH or set the PKG_CONFIG environment variable to the full
18735path to pkg-config.
18736
18737Alternatively, you may set the environment variables LIBDRM_CFLAGS
18738and LIBDRM_LIBS to avoid the need to call pkg-config.
18739See the pkg-config man page for more details.
18740
18741To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18742See \`config.log' for more details" "$LINENO" 5; }
18743else
18744	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18745	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18747$as_echo "yes" >&6; }
18748
18749fi
18750
18751pkg_failed=no
18752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm_nouveau >= 2.4.25" >&5
18753$as_echo_n "checking for libdrm_nouveau >= 2.4.25... " >&6; }
18754
18755if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then
18756    pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS"
18757 elif test -n "$PKG_CONFIG"; then
18758    if test -n "$PKG_CONFIG" && \
18759    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
18760  ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
18761  ac_status=$?
18762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18763  test $ac_status = 0; }; then
18764  pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null`
18765		      test "x$?" != "x0" && pkg_failed=yes
18766else
18767  pkg_failed=yes
18768fi
18769 else
18770    pkg_failed=untried
18771fi
18772if test -n "$LIBDRM_NOUVEAU_LIBS"; then
18773    pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS"
18774 elif test -n "$PKG_CONFIG"; then
18775    if test -n "$PKG_CONFIG" && \
18776    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5
18777  ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5
18778  ac_status=$?
18779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18780  test $ac_status = 0; }; then
18781  pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null`
18782		      test "x$?" != "x0" && pkg_failed=yes
18783else
18784  pkg_failed=yes
18785fi
18786 else
18787    pkg_failed=untried
18788fi
18789
18790
18791
18792if test $pkg_failed = yes; then
18793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794$as_echo "no" >&6; }
18795
18796if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18797        _pkg_short_errors_supported=yes
18798else
18799        _pkg_short_errors_supported=no
18800fi
18801        if test $_pkg_short_errors_supported = yes; then
18802	        LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
18803        else
18804	        LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1`
18805        fi
18806	# Put the nasty error message in config.log where it belongs
18807	echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5
18808
18809	as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met:
18810
18811$LIBDRM_NOUVEAU_PKG_ERRORS
18812
18813Consider adjusting the PKG_CONFIG_PATH environment variable if you
18814installed software in a non-standard prefix.
18815
18816Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
18817and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
18818See the pkg-config man page for more details." "$LINENO" 5
18819elif test $pkg_failed = untried; then
18820        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18821$as_echo "no" >&6; }
18822	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18824as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18825is in your PATH or set the PKG_CONFIG environment variable to the full
18826path to pkg-config.
18827
18828Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS
18829and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config.
18830See the pkg-config man page for more details.
18831
18832To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18833See \`config.log' for more details" "$LINENO" 5; }
18834else
18835	LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS
18836	LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS
18837        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838$as_echo "yes" >&6; }
18839
18840fi
18841
18842# Obtain compiler/linker options for the driver dependencies
18843
18844pkg_failed=no
18845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES" >&5
18846$as_echo_n "checking for xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES... " >&6; }
18847
18848if test -n "$XORG_CFLAGS"; then
18849    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18850 elif test -n "$PKG_CONFIG"; then
18851    if test -n "$PKG_CONFIG" && \
18852    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18853  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES") 2>&5
18854  ac_status=$?
18855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18856  test $ac_status = 0; }; then
18857  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18858		      test "x$?" != "x0" && pkg_failed=yes
18859else
18860  pkg_failed=yes
18861fi
18862 else
18863    pkg_failed=untried
18864fi
18865if test -n "$XORG_LIBS"; then
18866    pkg_cv_XORG_LIBS="$XORG_LIBS"
18867 elif test -n "$PKG_CONFIG"; then
18868    if test -n "$PKG_CONFIG" && \
18869    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.8 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18870  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES") 2>&5
18871  ac_status=$?
18872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18873  test $ac_status = 0; }; then
18874  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18875		      test "x$?" != "x0" && pkg_failed=yes
18876else
18877  pkg_failed=yes
18878fi
18879 else
18880    pkg_failed=untried
18881fi
18882
18883
18884
18885if test $pkg_failed = yes; then
18886        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18887$as_echo "no" >&6; }
18888
18889if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18890        _pkg_short_errors_supported=yes
18891else
18892        _pkg_short_errors_supported=no
18893fi
18894        if test $_pkg_short_errors_supported = yes; then
18895	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18896        else
18897	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18898        fi
18899	# Put the nasty error message in config.log where it belongs
18900	echo "$XORG_PKG_ERRORS" >&5
18901
18902	as_fn_error $? "Package requirements (xorg-server >= 1.8 xproto fontsproto $REQUIRED_MODULES) were not met:
18903
18904$XORG_PKG_ERRORS
18905
18906Consider adjusting the PKG_CONFIG_PATH environment variable if you
18907installed software in a non-standard prefix.
18908
18909Alternatively, you may set the environment variables XORG_CFLAGS
18910and XORG_LIBS to avoid the need to call pkg-config.
18911See the pkg-config man page for more details." "$LINENO" 5
18912elif test $pkg_failed = untried; then
18913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18914$as_echo "no" >&6; }
18915	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18917as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18918is in your PATH or set the PKG_CONFIG environment variable to the full
18919path to pkg-config.
18920
18921Alternatively, you may set the environment variables XORG_CFLAGS
18922and XORG_LIBS to avoid the need to call pkg-config.
18923See the pkg-config man page for more details.
18924
18925To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18926See \`config.log' for more details" "$LINENO" 5; }
18927else
18928	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18929	XORG_LIBS=$pkg_cv_XORG_LIBS
18930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18931$as_echo "yes" >&6; }
18932
18933fi
18934
18935pkg_failed=no
18936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xextproto >= 7.0.99.1" >&5
18937$as_echo_n "checking for xextproto >= 7.0.99.1... " >&6; }
18938
18939if test -n "$XEXT_CFLAGS"; then
18940    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18941 elif test -n "$PKG_CONFIG"; then
18942    if test -n "$PKG_CONFIG" && \
18943    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18944  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18945  ac_status=$?
18946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18947  test $ac_status = 0; }; then
18948  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18949		      test "x$?" != "x0" && pkg_failed=yes
18950else
18951  pkg_failed=yes
18952fi
18953 else
18954    pkg_failed=untried
18955fi
18956if test -n "$XEXT_LIBS"; then
18957    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18958 elif test -n "$PKG_CONFIG"; then
18959    if test -n "$PKG_CONFIG" && \
18960    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18961  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18962  ac_status=$?
18963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18964  test $ac_status = 0; }; then
18965  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18966		      test "x$?" != "x0" && pkg_failed=yes
18967else
18968  pkg_failed=yes
18969fi
18970 else
18971    pkg_failed=untried
18972fi
18973
18974
18975
18976if test $pkg_failed = yes; then
18977        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18978$as_echo "no" >&6; }
18979
18980if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18981        _pkg_short_errors_supported=yes
18982else
18983        _pkg_short_errors_supported=no
18984fi
18985        if test $_pkg_short_errors_supported = yes; then
18986	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18987        else
18988	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18989        fi
18990	# Put the nasty error message in config.log where it belongs
18991	echo "$XEXT_PKG_ERRORS" >&5
18992
18993	HAVE_XEXTPROTO_71="no"
18994elif test $pkg_failed = untried; then
18995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18996$as_echo "no" >&6; }
18997	HAVE_XEXTPROTO_71="no"
18998else
18999	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19000	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19002$as_echo "yes" >&6; }
19003	HAVE_XEXTPROTO_71="yes";
19004$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19005
19006fi
19007 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19008  HAVE_XEXTPROTO_71_TRUE=
19009  HAVE_XEXTPROTO_71_FALSE='#'
19010else
19011  HAVE_XEXTPROTO_71_TRUE='#'
19012  HAVE_XEXTPROTO_71_FALSE=
19013fi
19014
19015
19016
19017pkg_failed=no
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pciaccess >= 0.10" >&5
19019$as_echo_n "checking for pciaccess >= 0.10... " >&6; }
19020
19021if test -n "$PCIACCESS_CFLAGS"; then
19022    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19023 elif test -n "$PKG_CONFIG"; then
19024    if test -n "$PKG_CONFIG" && \
19025    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19026  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19027  ac_status=$?
19028  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19029  test $ac_status = 0; }; then
19030  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19031		      test "x$?" != "x0" && pkg_failed=yes
19032else
19033  pkg_failed=yes
19034fi
19035 else
19036    pkg_failed=untried
19037fi
19038if test -n "$PCIACCESS_LIBS"; then
19039    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19040 elif test -n "$PKG_CONFIG"; then
19041    if test -n "$PKG_CONFIG" && \
19042    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19043  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19044  ac_status=$?
19045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19046  test $ac_status = 0; }; then
19047  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19048		      test "x$?" != "x0" && pkg_failed=yes
19049else
19050  pkg_failed=yes
19051fi
19052 else
19053    pkg_failed=untried
19054fi
19055
19056
19057
19058if test $pkg_failed = yes; then
19059        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060$as_echo "no" >&6; }
19061
19062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19063        _pkg_short_errors_supported=yes
19064else
19065        _pkg_short_errors_supported=no
19066fi
19067        if test $_pkg_short_errors_supported = yes; then
19068	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19069        else
19070	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19071        fi
19072	# Put the nasty error message in config.log where it belongs
19073	echo "$PCIACCESS_PKG_ERRORS" >&5
19074
19075	as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
19076
19077$PCIACCESS_PKG_ERRORS
19078
19079Consider adjusting the PKG_CONFIG_PATH environment variable if you
19080installed software in a non-standard prefix.
19081
19082Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19083and PCIACCESS_LIBS to avoid the need to call pkg-config.
19084See the pkg-config man page for more details." "$LINENO" 5
19085elif test $pkg_failed = untried; then
19086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087$as_echo "no" >&6; }
19088	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19090as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19091is in your PATH or set the PKG_CONFIG environment variable to the full
19092path to pkg-config.
19093
19094Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19095and PCIACCESS_LIBS to avoid the need to call pkg-config.
19096See the pkg-config man page for more details.
19097
19098To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19099See \`config.log' for more details" "$LINENO" 5; }
19100else
19101	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19102	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19103        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19104$as_echo "yes" >&6; }
19105
19106fi
19107
19108
19109pkg_failed=no
19110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5
19111$as_echo_n "checking for libudev... " >&6; }
19112
19113if test -n "$LIBUDEV_CFLAGS"; then
19114    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19115 elif test -n "$PKG_CONFIG"; then
19116    if test -n "$PKG_CONFIG" && \
19117    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19118  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19119  ac_status=$?
19120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19121  test $ac_status = 0; }; then
19122  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19123		      test "x$?" != "x0" && pkg_failed=yes
19124else
19125  pkg_failed=yes
19126fi
19127 else
19128    pkg_failed=untried
19129fi
19130if test -n "$LIBUDEV_LIBS"; then
19131    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19132 elif test -n "$PKG_CONFIG"; then
19133    if test -n "$PKG_CONFIG" && \
19134    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19135  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19136  ac_status=$?
19137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19138  test $ac_status = 0; }; then
19139  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19140		      test "x$?" != "x0" && pkg_failed=yes
19141else
19142  pkg_failed=yes
19143fi
19144 else
19145    pkg_failed=untried
19146fi
19147
19148
19149
19150if test $pkg_failed = yes; then
19151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152$as_echo "no" >&6; }
19153
19154if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19155        _pkg_short_errors_supported=yes
19156else
19157        _pkg_short_errors_supported=no
19158fi
19159        if test $_pkg_short_errors_supported = yes; then
19160	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19161        else
19162	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19163        fi
19164	# Put the nasty error message in config.log where it belongs
19165	echo "$LIBUDEV_PKG_ERRORS" >&5
19166
19167	LIBUDEV=no
19168elif test $pkg_failed = untried; then
19169        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19170$as_echo "no" >&6; }
19171	LIBUDEV=no
19172else
19173	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19174	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19175        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19176$as_echo "yes" >&6; }
19177	LIBUDEV=yes
19178fi
19179if test "x$LIBUDEV" = xyes; then
19180
19181$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19182
19183fi
19184 if  test "x$LIBUDEV" = "xyes"  ; then
19185  LIBUDEV_TRUE=
19186  LIBUDEV_FALSE='#'
19187else
19188  LIBUDEV_TRUE='#'
19189  LIBUDEV_FALSE=
19190fi
19191
19192
19193# Use -Wall all the time
19194CFLAGS="$CFLAGS -Wall"
19195
19196# Check for -minline-all-stringops availability
19197OLD_CFLAGS="$CFLAGS"
19198CFLAGS="$CFLAGS -minline-all-stringops"
19199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200/* end confdefs.h.  */
19201 #include <stdio.h>
19202int
19203main ()
19204{
19205
19206  ;
19207  return 0;
19208}
19209_ACEOF
19210if ac_fn_c_try_compile "$LINENO"; then :
19211   CFLAGS="$OLD_CFLAGS -minline-all-stringops"
19212else
19213  CFLAGS="$OLD_CFLAGS"
19214fi
19215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216
19217# needed for the next test
19218CFLAGS="$CFLAGS $XORG_CFLAGS"
19219
19220
19221
19222
19223DRIVER_NAME=nouveau
19224
19225
19226ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
19227               #include <xf86Cursor.h>
19228"
19229if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then :
19230
19231$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
19232
19233fi
19234
19235
19236ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
19237               #include \"xorg-server.h\"
19238               #include \"list.h\"
19239"
19240if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
19241
19242$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
19243
19244fi
19245
19246
19247ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19248
19249cat >confcache <<\_ACEOF
19250# This file is a shell script that caches the results of configure
19251# tests run on this system so they can be shared between configure
19252# scripts and configure runs, see configure's option --config-cache.
19253# It is not useful on other systems.  If it contains results you don't
19254# want to keep, you may remove or edit it.
19255#
19256# config.status only pays attention to the cache file if you give it
19257# the --recheck option to rerun configure.
19258#
19259# `ac_cv_env_foo' variables (set or unset) will be overridden when
19260# loading this file, other *unset* `ac_cv_foo' will be assigned the
19261# following values.
19262
19263_ACEOF
19264
19265# The following way of writing the cache mishandles newlines in values,
19266# but we know of no workaround that is simple, portable, and efficient.
19267# So, we kill variables containing newlines.
19268# Ultrix sh set writes to stderr and can't be redirected directly,
19269# and sets the high bit in the cache file unless we assign to the vars.
19270(
19271  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19272    eval ac_val=\$$ac_var
19273    case $ac_val in #(
19274    *${as_nl}*)
19275      case $ac_var in #(
19276      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19277$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19278      esac
19279      case $ac_var in #(
19280      _ | IFS | as_nl) ;; #(
19281      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19282      *) { eval $ac_var=; unset $ac_var;} ;;
19283      esac ;;
19284    esac
19285  done
19286
19287  (set) 2>&1 |
19288    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19289    *${as_nl}ac_space=\ *)
19290      # `set' does not quote correctly, so add quotes: double-quote
19291      # substitution turns \\\\ into \\, and sed turns \\ into \.
19292      sed -n \
19293	"s/'/'\\\\''/g;
19294	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19295      ;; #(
19296    *)
19297      # `set' quotes correctly as required by POSIX, so do not add quotes.
19298      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19299      ;;
19300    esac |
19301    sort
19302) |
19303  sed '
19304     /^ac_cv_env_/b end
19305     t clear
19306     :clear
19307     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19308     t end
19309     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19310     :end' >>confcache
19311if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19312  if test -w "$cache_file"; then
19313    if test "x$cache_file" != "x/dev/null"; then
19314      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19315$as_echo "$as_me: updating cache $cache_file" >&6;}
19316      if test ! -f "$cache_file" || test -h "$cache_file"; then
19317	cat confcache >"$cache_file"
19318      else
19319        case $cache_file in #(
19320        */* | ?:*)
19321	  mv -f confcache "$cache_file"$$ &&
19322	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19323        *)
19324	  mv -f confcache "$cache_file" ;;
19325	esac
19326      fi
19327    fi
19328  else
19329    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19330$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19331  fi
19332fi
19333rm -f confcache
19334
19335test "x$prefix" = xNONE && prefix=$ac_default_prefix
19336# Let make expand exec_prefix.
19337test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19338
19339DEFS=-DHAVE_CONFIG_H
19340
19341ac_libobjs=
19342ac_ltlibobjs=
19343U=
19344for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19345  # 1. Remove the extension, and $U if already installed.
19346  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19347  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19348  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19349  #    will be set to the directory where LIBOBJS objects are built.
19350  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19351  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19352done
19353LIBOBJS=$ac_libobjs
19354
19355LTLIBOBJS=$ac_ltlibobjs
19356
19357
19358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19359$as_echo_n "checking that generated files are newer than configure... " >&6; }
19360   if test -n "$am_sleep_pid"; then
19361     # Hide warnings about reused PIDs.
19362     wait $am_sleep_pid 2>/dev/null
19363   fi
19364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19365$as_echo "done" >&6; }
19366 if test -n "$EXEEXT"; then
19367  am__EXEEXT_TRUE=
19368  am__EXEEXT_FALSE='#'
19369else
19370  am__EXEEXT_TRUE='#'
19371  am__EXEEXT_FALSE=
19372fi
19373
19374if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19375  as_fn_error $? "conditional \"AMDEP\" was never defined.
19376Usually this means the macro was only invoked conditionally." "$LINENO" 5
19377fi
19378if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19379  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19380Usually this means the macro was only invoked conditionally." "$LINENO" 5
19381fi
19382if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19383  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19384Usually this means the macro was only invoked conditionally." "$LINENO" 5
19385fi
19386if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
19387  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
19388Usually this means the macro was only invoked conditionally." "$LINENO" 5
19389fi
19390
19391: "${CONFIG_STATUS=./config.status}"
19392ac_write_fail=0
19393ac_clean_files_save=$ac_clean_files
19394ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19395{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19396$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19397as_write_fail=0
19398cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19399#! $SHELL
19400# Generated by $as_me.
19401# Run this file to recreate the current configuration.
19402# Compiler output produced by configure, useful for debugging
19403# configure, is in config.log if it exists.
19404
19405debug=false
19406ac_cs_recheck=false
19407ac_cs_silent=false
19408
19409SHELL=\${CONFIG_SHELL-$SHELL}
19410export SHELL
19411_ASEOF
19412cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19413## -------------------- ##
19414## M4sh Initialization. ##
19415## -------------------- ##
19416
19417# Be more Bourne compatible
19418DUALCASE=1; export DUALCASE # for MKS sh
19419if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19420  emulate sh
19421  NULLCMD=:
19422  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19423  # is contrary to our usage.  Disable this feature.
19424  alias -g '${1+"$@"}'='"$@"'
19425  setopt NO_GLOB_SUBST
19426else
19427  case `(set -o) 2>/dev/null` in #(
19428  *posix*) :
19429    set -o posix ;; #(
19430  *) :
19431     ;;
19432esac
19433fi
19434
19435
19436as_nl='
19437'
19438export as_nl
19439# Printing a long string crashes Solaris 7 /usr/bin/printf.
19440as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19441as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19442as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19443# Prefer a ksh shell builtin over an external printf program on Solaris,
19444# but without wasting forks for bash or zsh.
19445if test -z "$BASH_VERSION$ZSH_VERSION" \
19446    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19447  as_echo='print -r --'
19448  as_echo_n='print -rn --'
19449elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19450  as_echo='printf %s\n'
19451  as_echo_n='printf %s'
19452else
19453  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19454    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19455    as_echo_n='/usr/ucb/echo -n'
19456  else
19457    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19458    as_echo_n_body='eval
19459      arg=$1;
19460      case $arg in #(
19461      *"$as_nl"*)
19462	expr "X$arg" : "X\\(.*\\)$as_nl";
19463	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19464      esac;
19465      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19466    '
19467    export as_echo_n_body
19468    as_echo_n='sh -c $as_echo_n_body as_echo'
19469  fi
19470  export as_echo_body
19471  as_echo='sh -c $as_echo_body as_echo'
19472fi
19473
19474# The user is always right.
19475if test "${PATH_SEPARATOR+set}" != set; then
19476  PATH_SEPARATOR=:
19477  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19478    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19479      PATH_SEPARATOR=';'
19480  }
19481fi
19482
19483
19484# IFS
19485# We need space, tab and new line, in precisely that order.  Quoting is
19486# there to prevent editors from complaining about space-tab.
19487# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19488# splitting by setting IFS to empty value.)
19489IFS=" ""	$as_nl"
19490
19491# Find who we are.  Look in the path if we contain no directory separator.
19492as_myself=
19493case $0 in #((
19494  *[\\/]* ) as_myself=$0 ;;
19495  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19496for as_dir in $PATH
19497do
19498  IFS=$as_save_IFS
19499  test -z "$as_dir" && as_dir=.
19500    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19501  done
19502IFS=$as_save_IFS
19503
19504     ;;
19505esac
19506# We did not find ourselves, most probably we were run as `sh COMMAND'
19507# in which case we are not to be found in the path.
19508if test "x$as_myself" = x; then
19509  as_myself=$0
19510fi
19511if test ! -f "$as_myself"; then
19512  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19513  exit 1
19514fi
19515
19516# Unset variables that we do not need and which cause bugs (e.g. in
19517# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19518# suppresses any "Segmentation fault" message there.  '((' could
19519# trigger a bug in pdksh 5.2.14.
19520for as_var in BASH_ENV ENV MAIL MAILPATH
19521do eval test x\${$as_var+set} = xset \
19522  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19523done
19524PS1='$ '
19525PS2='> '
19526PS4='+ '
19527
19528# NLS nuisances.
19529LC_ALL=C
19530export LC_ALL
19531LANGUAGE=C
19532export LANGUAGE
19533
19534# CDPATH.
19535(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19536
19537
19538# as_fn_error STATUS ERROR [LINENO LOG_FD]
19539# ----------------------------------------
19540# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19541# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19542# script with STATUS, using 1 if that was 0.
19543as_fn_error ()
19544{
19545  as_status=$1; test $as_status -eq 0 && as_status=1
19546  if test "$4"; then
19547    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19548    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19549  fi
19550  $as_echo "$as_me: error: $2" >&2
19551  as_fn_exit $as_status
19552} # as_fn_error
19553
19554
19555# as_fn_set_status STATUS
19556# -----------------------
19557# Set $? to STATUS, without forking.
19558as_fn_set_status ()
19559{
19560  return $1
19561} # as_fn_set_status
19562
19563# as_fn_exit STATUS
19564# -----------------
19565# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19566as_fn_exit ()
19567{
19568  set +e
19569  as_fn_set_status $1
19570  exit $1
19571} # as_fn_exit
19572
19573# as_fn_unset VAR
19574# ---------------
19575# Portably unset VAR.
19576as_fn_unset ()
19577{
19578  { eval $1=; unset $1;}
19579}
19580as_unset=as_fn_unset
19581# as_fn_append VAR VALUE
19582# ----------------------
19583# Append the text in VALUE to the end of the definition contained in VAR. Take
19584# advantage of any shell optimizations that allow amortized linear growth over
19585# repeated appends, instead of the typical quadratic growth present in naive
19586# implementations.
19587if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19588  eval 'as_fn_append ()
19589  {
19590    eval $1+=\$2
19591  }'
19592else
19593  as_fn_append ()
19594  {
19595    eval $1=\$$1\$2
19596  }
19597fi # as_fn_append
19598
19599# as_fn_arith ARG...
19600# ------------------
19601# Perform arithmetic evaluation on the ARGs, and store the result in the
19602# global $as_val. Take advantage of shells that can avoid forks. The arguments
19603# must be portable across $(()) and expr.
19604if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19605  eval 'as_fn_arith ()
19606  {
19607    as_val=$(( $* ))
19608  }'
19609else
19610  as_fn_arith ()
19611  {
19612    as_val=`expr "$@" || test $? -eq 1`
19613  }
19614fi # as_fn_arith
19615
19616
19617if expr a : '\(a\)' >/dev/null 2>&1 &&
19618   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19619  as_expr=expr
19620else
19621  as_expr=false
19622fi
19623
19624if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19625  as_basename=basename
19626else
19627  as_basename=false
19628fi
19629
19630if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19631  as_dirname=dirname
19632else
19633  as_dirname=false
19634fi
19635
19636as_me=`$as_basename -- "$0" ||
19637$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19638	 X"$0" : 'X\(//\)$' \| \
19639	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19640$as_echo X/"$0" |
19641    sed '/^.*\/\([^/][^/]*\)\/*$/{
19642	    s//\1/
19643	    q
19644	  }
19645	  /^X\/\(\/\/\)$/{
19646	    s//\1/
19647	    q
19648	  }
19649	  /^X\/\(\/\).*/{
19650	    s//\1/
19651	    q
19652	  }
19653	  s/.*/./; q'`
19654
19655# Avoid depending upon Character Ranges.
19656as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19657as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19658as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19659as_cr_digits='0123456789'
19660as_cr_alnum=$as_cr_Letters$as_cr_digits
19661
19662ECHO_C= ECHO_N= ECHO_T=
19663case `echo -n x` in #(((((
19664-n*)
19665  case `echo 'xy\c'` in
19666  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19667  xy)  ECHO_C='\c';;
19668  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19669       ECHO_T='	';;
19670  esac;;
19671*)
19672  ECHO_N='-n';;
19673esac
19674
19675rm -f conf$$ conf$$.exe conf$$.file
19676if test -d conf$$.dir; then
19677  rm -f conf$$.dir/conf$$.file
19678else
19679  rm -f conf$$.dir
19680  mkdir conf$$.dir 2>/dev/null
19681fi
19682if (echo >conf$$.file) 2>/dev/null; then
19683  if ln -s conf$$.file conf$$ 2>/dev/null; then
19684    as_ln_s='ln -s'
19685    # ... but there are two gotchas:
19686    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19687    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19688    # In both cases, we have to default to `cp -pR'.
19689    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19690      as_ln_s='cp -pR'
19691  elif ln conf$$.file conf$$ 2>/dev/null; then
19692    as_ln_s=ln
19693  else
19694    as_ln_s='cp -pR'
19695  fi
19696else
19697  as_ln_s='cp -pR'
19698fi
19699rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19700rmdir conf$$.dir 2>/dev/null
19701
19702
19703# as_fn_mkdir_p
19704# -------------
19705# Create "$as_dir" as a directory, including parents if necessary.
19706as_fn_mkdir_p ()
19707{
19708
19709  case $as_dir in #(
19710  -*) as_dir=./$as_dir;;
19711  esac
19712  test -d "$as_dir" || eval $as_mkdir_p || {
19713    as_dirs=
19714    while :; do
19715      case $as_dir in #(
19716      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19717      *) as_qdir=$as_dir;;
19718      esac
19719      as_dirs="'$as_qdir' $as_dirs"
19720      as_dir=`$as_dirname -- "$as_dir" ||
19721$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19722	 X"$as_dir" : 'X\(//\)[^/]' \| \
19723	 X"$as_dir" : 'X\(//\)$' \| \
19724	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19725$as_echo X"$as_dir" |
19726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19727	    s//\1/
19728	    q
19729	  }
19730	  /^X\(\/\/\)[^/].*/{
19731	    s//\1/
19732	    q
19733	  }
19734	  /^X\(\/\/\)$/{
19735	    s//\1/
19736	    q
19737	  }
19738	  /^X\(\/\).*/{
19739	    s//\1/
19740	    q
19741	  }
19742	  s/.*/./; q'`
19743      test -d "$as_dir" && break
19744    done
19745    test -z "$as_dirs" || eval "mkdir $as_dirs"
19746  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19747
19748
19749} # as_fn_mkdir_p
19750if mkdir -p . 2>/dev/null; then
19751  as_mkdir_p='mkdir -p "$as_dir"'
19752else
19753  test -d ./-p && rmdir ./-p
19754  as_mkdir_p=false
19755fi
19756
19757
19758# as_fn_executable_p FILE
19759# -----------------------
19760# Test if FILE is an executable regular file.
19761as_fn_executable_p ()
19762{
19763  test -f "$1" && test -x "$1"
19764} # as_fn_executable_p
19765as_test_x='test -x'
19766as_executable_p=as_fn_executable_p
19767
19768# Sed expression to map a string onto a valid CPP name.
19769as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19770
19771# Sed expression to map a string onto a valid variable name.
19772as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19773
19774
19775exec 6>&1
19776## ----------------------------------- ##
19777## Main body of $CONFIG_STATUS script. ##
19778## ----------------------------------- ##
19779_ASEOF
19780test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19781
19782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19783# Save the log message, to keep $0 and so on meaningful, and to
19784# report actual input values of CONFIG_FILES etc. instead of their
19785# values after options handling.
19786ac_log="
19787This file was extended by xf86-video-nouveau $as_me 1.0.16, which was
19788generated by GNU Autoconf 2.69.  Invocation command line was
19789
19790  CONFIG_FILES    = $CONFIG_FILES
19791  CONFIG_HEADERS  = $CONFIG_HEADERS
19792  CONFIG_LINKS    = $CONFIG_LINKS
19793  CONFIG_COMMANDS = $CONFIG_COMMANDS
19794  $ $0 $@
19795
19796on `(hostname || uname -n) 2>/dev/null | sed 1q`
19797"
19798
19799_ACEOF
19800
19801case $ac_config_files in *"
19802"*) set x $ac_config_files; shift; ac_config_files=$*;;
19803esac
19804
19805case $ac_config_headers in *"
19806"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19807esac
19808
19809
19810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19811# Files that config.status was made for.
19812config_files="$ac_config_files"
19813config_headers="$ac_config_headers"
19814config_commands="$ac_config_commands"
19815
19816_ACEOF
19817
19818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19819ac_cs_usage="\
19820\`$as_me' instantiates files and other configuration actions
19821from templates according to the current configuration.  Unless the files
19822and actions are specified as TAGs, all are instantiated by default.
19823
19824Usage: $0 [OPTION]... [TAG]...
19825
19826  -h, --help       print this help, then exit
19827  -V, --version    print version number and configuration settings, then exit
19828      --config     print configuration, then exit
19829  -q, --quiet, --silent
19830                   do not print progress messages
19831  -d, --debug      don't remove temporary files
19832      --recheck    update $as_me by reconfiguring in the same conditions
19833      --file=FILE[:TEMPLATE]
19834                   instantiate the configuration file FILE
19835      --header=FILE[:TEMPLATE]
19836                   instantiate the configuration header FILE
19837
19838Configuration files:
19839$config_files
19840
19841Configuration headers:
19842$config_headers
19843
19844Configuration commands:
19845$config_commands
19846
19847Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/nouveau>."
19848
19849_ACEOF
19850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19851ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19852ac_cs_version="\\
19853xf86-video-nouveau config.status 1.0.16
19854configured by $0, generated by GNU Autoconf 2.69,
19855  with options \\"\$ac_cs_config\\"
19856
19857Copyright (C) 2012 Free Software Foundation, Inc.
19858This config.status script is free software; the Free Software Foundation
19859gives unlimited permission to copy, distribute and modify it."
19860
19861ac_pwd='$ac_pwd'
19862srcdir='$srcdir'
19863INSTALL='$INSTALL'
19864MKDIR_P='$MKDIR_P'
19865AWK='$AWK'
19866test -n "\$AWK" || AWK=awk
19867_ACEOF
19868
19869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870# The default lists apply if the user does not specify any file.
19871ac_need_defaults=:
19872while test $# != 0
19873do
19874  case $1 in
19875  --*=?*)
19876    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19877    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19878    ac_shift=:
19879    ;;
19880  --*=)
19881    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19882    ac_optarg=
19883    ac_shift=:
19884    ;;
19885  *)
19886    ac_option=$1
19887    ac_optarg=$2
19888    ac_shift=shift
19889    ;;
19890  esac
19891
19892  case $ac_option in
19893  # Handling of the options.
19894  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19895    ac_cs_recheck=: ;;
19896  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19897    $as_echo "$ac_cs_version"; exit ;;
19898  --config | --confi | --conf | --con | --co | --c )
19899    $as_echo "$ac_cs_config"; exit ;;
19900  --debug | --debu | --deb | --de | --d | -d )
19901    debug=: ;;
19902  --file | --fil | --fi | --f )
19903    $ac_shift
19904    case $ac_optarg in
19905    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19906    '') as_fn_error $? "missing file argument" ;;
19907    esac
19908    as_fn_append CONFIG_FILES " '$ac_optarg'"
19909    ac_need_defaults=false;;
19910  --header | --heade | --head | --hea )
19911    $ac_shift
19912    case $ac_optarg in
19913    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19914    esac
19915    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19916    ac_need_defaults=false;;
19917  --he | --h)
19918    # Conflict between --help and --header
19919    as_fn_error $? "ambiguous option: \`$1'
19920Try \`$0 --help' for more information.";;
19921  --help | --hel | -h )
19922    $as_echo "$ac_cs_usage"; exit ;;
19923  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19924  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19925    ac_cs_silent=: ;;
19926
19927  # This is an error.
19928  -*) as_fn_error $? "unrecognized option: \`$1'
19929Try \`$0 --help' for more information." ;;
19930
19931  *) as_fn_append ac_config_targets " $1"
19932     ac_need_defaults=false ;;
19933
19934  esac
19935  shift
19936done
19937
19938ac_configure_extra_args=
19939
19940if $ac_cs_silent; then
19941  exec 6>/dev/null
19942  ac_configure_extra_args="$ac_configure_extra_args --silent"
19943fi
19944
19945_ACEOF
19946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19947if \$ac_cs_recheck; then
19948  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19949  shift
19950  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19951  CONFIG_SHELL='$SHELL'
19952  export CONFIG_SHELL
19953  exec "\$@"
19954fi
19955
19956_ACEOF
19957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19958exec 5>>config.log
19959{
19960  echo
19961  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19962## Running $as_me. ##
19963_ASBOX
19964  $as_echo "$ac_log"
19965} >&5
19966
19967_ACEOF
19968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19969#
19970# INIT-COMMANDS
19971#
19972AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19973
19974
19975# The HP-UX ksh and POSIX shell print the target directory to stdout
19976# if CDPATH is set.
19977(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19978
19979sed_quote_subst='$sed_quote_subst'
19980double_quote_subst='$double_quote_subst'
19981delay_variable_subst='$delay_variable_subst'
19982macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19983macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19984enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19985enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19986pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19987enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19988shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19989SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19990ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19991PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19992host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19993host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19994host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19995build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19996build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19997build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19998SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19999Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20000GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20001EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20002FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20003LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20004NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20005LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20006max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20007ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20008exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20009lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20010lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20011lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20012lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20013lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20014reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20015reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20016OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20017deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20018file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20019file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20020want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20021DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20022sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20023AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20024AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20025archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20026STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20027RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20028old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20029old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20030old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20031lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20032CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20033CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20034compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20035GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20036lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20037lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20038lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20039lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20040lt_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"`'
20041lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20042nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20043lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20044lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20045objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20046MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20047lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20048lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20049lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20050lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20051lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20052need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20053MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20054DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20055NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20056LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20057OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20058OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20059libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20060shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20061extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20062archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20063enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20064export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20065whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20066compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20067old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20068old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20069archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20070archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20071module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20072module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20073with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20074allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20075no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20076hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20077hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20078hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20079hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20080hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20081hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20082hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20083inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20084link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20085always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20086export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20087exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20088include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20089prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20090postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20091file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20092variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20093need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20094need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20095version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20096runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20097shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20098shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20099libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20100library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20101soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20102install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20103postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20104postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20105finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20106finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20107hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20108sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20109configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20110configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20111hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20112enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20113enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20114enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20115old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20116striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20117
20118LTCC='$LTCC'
20119LTCFLAGS='$LTCFLAGS'
20120compiler='$compiler_DEFAULT'
20121
20122# A function that is used when there is no print builtin or printf.
20123func_fallback_echo ()
20124{
20125  eval 'cat <<_LTECHO_EOF
20126\$1
20127_LTECHO_EOF'
20128}
20129
20130# Quote evaled strings.
20131for var in SHELL \
20132ECHO \
20133PATH_SEPARATOR \
20134SED \
20135GREP \
20136EGREP \
20137FGREP \
20138LD \
20139NM \
20140LN_S \
20141lt_SP2NL \
20142lt_NL2SP \
20143reload_flag \
20144OBJDUMP \
20145deplibs_check_method \
20146file_magic_cmd \
20147file_magic_glob \
20148want_nocaseglob \
20149DLLTOOL \
20150sharedlib_from_linklib_cmd \
20151AR \
20152AR_FLAGS \
20153archiver_list_spec \
20154STRIP \
20155RANLIB \
20156CC \
20157CFLAGS \
20158compiler \
20159lt_cv_sys_global_symbol_pipe \
20160lt_cv_sys_global_symbol_to_cdecl \
20161lt_cv_sys_global_symbol_to_import \
20162lt_cv_sys_global_symbol_to_c_name_address \
20163lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20164lt_cv_nm_interface \
20165nm_file_list_spec \
20166lt_cv_truncate_bin \
20167lt_prog_compiler_no_builtin_flag \
20168lt_prog_compiler_pic \
20169lt_prog_compiler_wl \
20170lt_prog_compiler_static \
20171lt_cv_prog_compiler_c_o \
20172need_locks \
20173MANIFEST_TOOL \
20174DSYMUTIL \
20175NMEDIT \
20176LIPO \
20177OTOOL \
20178OTOOL64 \
20179shrext_cmds \
20180export_dynamic_flag_spec \
20181whole_archive_flag_spec \
20182compiler_needs_object \
20183with_gnu_ld \
20184allow_undefined_flag \
20185no_undefined_flag \
20186hardcode_libdir_flag_spec \
20187hardcode_libdir_separator \
20188exclude_expsyms \
20189include_expsyms \
20190file_list_spec \
20191variables_saved_for_relink \
20192libname_spec \
20193library_names_spec \
20194soname_spec \
20195install_override_mode \
20196finish_eval \
20197old_striplib \
20198striplib; do
20199    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20200    *[\\\\\\\`\\"\\\$]*)
20201      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20202      ;;
20203    *)
20204      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20205      ;;
20206    esac
20207done
20208
20209# Double-quote double-evaled strings.
20210for var in reload_cmds \
20211old_postinstall_cmds \
20212old_postuninstall_cmds \
20213old_archive_cmds \
20214extract_expsyms_cmds \
20215old_archive_from_new_cmds \
20216old_archive_from_expsyms_cmds \
20217archive_cmds \
20218archive_expsym_cmds \
20219module_cmds \
20220module_expsym_cmds \
20221export_symbols_cmds \
20222prelink_cmds \
20223postlink_cmds \
20224postinstall_cmds \
20225postuninstall_cmds \
20226finish_cmds \
20227sys_lib_search_path_spec \
20228configure_time_dlsearch_path \
20229configure_time_lt_sys_library_path; do
20230    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20231    *[\\\\\\\`\\"\\\$]*)
20232      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20233      ;;
20234    *)
20235      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20236      ;;
20237    esac
20238done
20239
20240ac_aux_dir='$ac_aux_dir'
20241
20242# See if we are running on zsh, and set the options that allow our
20243# commands through without removal of \ escapes INIT.
20244if test -n "\${ZSH_VERSION+set}"; then
20245   setopt NO_GLOB_SUBST
20246fi
20247
20248
20249    PACKAGE='$PACKAGE'
20250    VERSION='$VERSION'
20251    RM='$RM'
20252    ofile='$ofile'
20253
20254
20255
20256
20257_ACEOF
20258
20259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20260
20261# Handling of arguments.
20262for ac_config_target in $ac_config_targets
20263do
20264  case $ac_config_target in
20265    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20266    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20267    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20268    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20269    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20270    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20271
20272  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20273  esac
20274done
20275
20276
20277# If the user did not use the arguments to specify the items to instantiate,
20278# then the envvar interface is used.  Set only those that are not.
20279# We use the long form for the default assignment because of an extremely
20280# bizarre bug on SunOS 4.1.3.
20281if $ac_need_defaults; then
20282  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20283  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20284  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20285fi
20286
20287# Have a temporary directory for convenience.  Make it in the build tree
20288# simply because there is no reason against having it here, and in addition,
20289# creating and moving files from /tmp can sometimes cause problems.
20290# Hook for its removal unless debugging.
20291# Note that there is a small window in which the directory will not be cleaned:
20292# after its creation but before its name has been assigned to `$tmp'.
20293$debug ||
20294{
20295  tmp= ac_tmp=
20296  trap 'exit_status=$?
20297  : "${ac_tmp:=$tmp}"
20298  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20299' 0
20300  trap 'as_fn_exit 1' 1 2 13 15
20301}
20302# Create a (secure) tmp directory for tmp files.
20303
20304{
20305  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20306  test -d "$tmp"
20307}  ||
20308{
20309  tmp=./conf$$-$RANDOM
20310  (umask 077 && mkdir "$tmp")
20311} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20312ac_tmp=$tmp
20313
20314# Set up the scripts for CONFIG_FILES section.
20315# No need to generate them if there are no CONFIG_FILES.
20316# This happens for instance with `./config.status config.h'.
20317if test -n "$CONFIG_FILES"; then
20318
20319
20320ac_cr=`echo X | tr X '\015'`
20321# On cygwin, bash can eat \r inside `` if the user requested igncr.
20322# But we know of no other shell where ac_cr would be empty at this
20323# point, so we can use a bashism as a fallback.
20324if test "x$ac_cr" = x; then
20325  eval ac_cr=\$\'\\r\'
20326fi
20327ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20328if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20329  ac_cs_awk_cr='\\r'
20330else
20331  ac_cs_awk_cr=$ac_cr
20332fi
20333
20334echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20335_ACEOF
20336
20337
20338{
20339  echo "cat >conf$$subs.awk <<_ACEOF" &&
20340  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20341  echo "_ACEOF"
20342} >conf$$subs.sh ||
20343  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20344ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20345ac_delim='%!_!# '
20346for ac_last_try in false false false false false :; do
20347  . ./conf$$subs.sh ||
20348    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20349
20350  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20351  if test $ac_delim_n = $ac_delim_num; then
20352    break
20353  elif $ac_last_try; then
20354    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20355  else
20356    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20357  fi
20358done
20359rm -f conf$$subs.sh
20360
20361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20362cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20363_ACEOF
20364sed -n '
20365h
20366s/^/S["/; s/!.*/"]=/
20367p
20368g
20369s/^[^!]*!//
20370:repl
20371t repl
20372s/'"$ac_delim"'$//
20373t delim
20374:nl
20375h
20376s/\(.\{148\}\)..*/\1/
20377t more1
20378s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20379p
20380n
20381b repl
20382:more1
20383s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20384p
20385g
20386s/.\{148\}//
20387t nl
20388:delim
20389h
20390s/\(.\{148\}\)..*/\1/
20391t more2
20392s/["\\]/\\&/g; s/^/"/; s/$/"/
20393p
20394b
20395:more2
20396s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20397p
20398g
20399s/.\{148\}//
20400t delim
20401' <conf$$subs.awk | sed '
20402/^[^""]/{
20403  N
20404  s/\n//
20405}
20406' >>$CONFIG_STATUS || ac_write_fail=1
20407rm -f conf$$subs.awk
20408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20409_ACAWK
20410cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20411  for (key in S) S_is_set[key] = 1
20412  FS = ""
20413
20414}
20415{
20416  line = $ 0
20417  nfields = split(line, field, "@")
20418  substed = 0
20419  len = length(field[1])
20420  for (i = 2; i < nfields; i++) {
20421    key = field[i]
20422    keylen = length(key)
20423    if (S_is_set[key]) {
20424      value = S[key]
20425      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20426      len += length(value) + length(field[++i])
20427      substed = 1
20428    } else
20429      len += 1 + keylen
20430  }
20431
20432  print line
20433}
20434
20435_ACAWK
20436_ACEOF
20437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20438if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20439  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20440else
20441  cat
20442fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20443  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20444_ACEOF
20445
20446# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20447# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20448# trailing colons and then remove the whole line if VPATH becomes empty
20449# (actually we leave an empty line to preserve line numbers).
20450if test "x$srcdir" = x.; then
20451  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20452h
20453s///
20454s/^/:/
20455s/[	 ]*$/:/
20456s/:\$(srcdir):/:/g
20457s/:\${srcdir}:/:/g
20458s/:@srcdir@:/:/g
20459s/^:*//
20460s/:*$//
20461x
20462s/\(=[	 ]*\).*/\1/
20463G
20464s/\n//
20465s/^[^=]*=[	 ]*$//
20466}'
20467fi
20468
20469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20470fi # test -n "$CONFIG_FILES"
20471
20472# Set up the scripts for CONFIG_HEADERS section.
20473# No need to generate them if there are no CONFIG_HEADERS.
20474# This happens for instance with `./config.status Makefile'.
20475if test -n "$CONFIG_HEADERS"; then
20476cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20477BEGIN {
20478_ACEOF
20479
20480# Transform confdefs.h into an awk script `defines.awk', embedded as
20481# here-document in config.status, that substitutes the proper values into
20482# config.h.in to produce config.h.
20483
20484# Create a delimiter string that does not exist in confdefs.h, to ease
20485# handling of long lines.
20486ac_delim='%!_!# '
20487for ac_last_try in false false :; do
20488  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20489  if test -z "$ac_tt"; then
20490    break
20491  elif $ac_last_try; then
20492    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20493  else
20494    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20495  fi
20496done
20497
20498# For the awk script, D is an array of macro values keyed by name,
20499# likewise P contains macro parameters if any.  Preserve backslash
20500# newline sequences.
20501
20502ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20503sed -n '
20504s/.\{148\}/&'"$ac_delim"'/g
20505t rset
20506:rset
20507s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20508t def
20509d
20510:def
20511s/\\$//
20512t bsnl
20513s/["\\]/\\&/g
20514s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20515D["\1"]=" \3"/p
20516s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20517d
20518:bsnl
20519s/["\\]/\\&/g
20520s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20521D["\1"]=" \3\\\\\\n"\\/p
20522t cont
20523s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20524t cont
20525d
20526:cont
20527n
20528s/.\{148\}/&'"$ac_delim"'/g
20529t clear
20530:clear
20531s/\\$//
20532t bsnlc
20533s/["\\]/\\&/g; s/^/"/; s/$/"/p
20534d
20535:bsnlc
20536s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20537b cont
20538' <confdefs.h | sed '
20539s/'"$ac_delim"'/"\\\
20540"/g' >>$CONFIG_STATUS || ac_write_fail=1
20541
20542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20543  for (key in D) D_is_set[key] = 1
20544  FS = ""
20545}
20546/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20547  line = \$ 0
20548  split(line, arg, " ")
20549  if (arg[1] == "#") {
20550    defundef = arg[2]
20551    mac1 = arg[3]
20552  } else {
20553    defundef = substr(arg[1], 2)
20554    mac1 = arg[2]
20555  }
20556  split(mac1, mac2, "(") #)
20557  macro = mac2[1]
20558  prefix = substr(line, 1, index(line, defundef) - 1)
20559  if (D_is_set[macro]) {
20560    # Preserve the white space surrounding the "#".
20561    print prefix "define", macro P[macro] D[macro]
20562    next
20563  } else {
20564    # Replace #undef with comments.  This is necessary, for example,
20565    # in the case of _POSIX_SOURCE, which is predefined and required
20566    # on some systems where configure will not decide to define it.
20567    if (defundef == "undef") {
20568      print "/*", prefix defundef, macro, "*/"
20569      next
20570    }
20571  }
20572}
20573{ print }
20574_ACAWK
20575_ACEOF
20576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20577  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20578fi # test -n "$CONFIG_HEADERS"
20579
20580
20581eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20582shift
20583for ac_tag
20584do
20585  case $ac_tag in
20586  :[FHLC]) ac_mode=$ac_tag; continue;;
20587  esac
20588  case $ac_mode$ac_tag in
20589  :[FHL]*:*);;
20590  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20591  :[FH]-) ac_tag=-:-;;
20592  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20593  esac
20594  ac_save_IFS=$IFS
20595  IFS=:
20596  set x $ac_tag
20597  IFS=$ac_save_IFS
20598  shift
20599  ac_file=$1
20600  shift
20601
20602  case $ac_mode in
20603  :L) ac_source=$1;;
20604  :[FH])
20605    ac_file_inputs=
20606    for ac_f
20607    do
20608      case $ac_f in
20609      -) ac_f="$ac_tmp/stdin";;
20610      *) # Look for the file first in the build tree, then in the source tree
20611	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20612	 # because $ac_f cannot contain `:'.
20613	 test -f "$ac_f" ||
20614	   case $ac_f in
20615	   [\\/$]*) false;;
20616	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20617	   esac ||
20618	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20619      esac
20620      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20621      as_fn_append ac_file_inputs " '$ac_f'"
20622    done
20623
20624    # Let's still pretend it is `configure' which instantiates (i.e., don't
20625    # use $as_me), people would be surprised to read:
20626    #    /* config.h.  Generated by config.status.  */
20627    configure_input='Generated from '`
20628	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20629	`' by configure.'
20630    if test x"$ac_file" != x-; then
20631      configure_input="$ac_file.  $configure_input"
20632      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20633$as_echo "$as_me: creating $ac_file" >&6;}
20634    fi
20635    # Neutralize special characters interpreted by sed in replacement strings.
20636    case $configure_input in #(
20637    *\&* | *\|* | *\\* )
20638       ac_sed_conf_input=`$as_echo "$configure_input" |
20639       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20640    *) ac_sed_conf_input=$configure_input;;
20641    esac
20642
20643    case $ac_tag in
20644    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20645      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20646    esac
20647    ;;
20648  esac
20649
20650  ac_dir=`$as_dirname -- "$ac_file" ||
20651$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20652	 X"$ac_file" : 'X\(//\)[^/]' \| \
20653	 X"$ac_file" : 'X\(//\)$' \| \
20654	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20655$as_echo X"$ac_file" |
20656    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20657	    s//\1/
20658	    q
20659	  }
20660	  /^X\(\/\/\)[^/].*/{
20661	    s//\1/
20662	    q
20663	  }
20664	  /^X\(\/\/\)$/{
20665	    s//\1/
20666	    q
20667	  }
20668	  /^X\(\/\).*/{
20669	    s//\1/
20670	    q
20671	  }
20672	  s/.*/./; q'`
20673  as_dir="$ac_dir"; as_fn_mkdir_p
20674  ac_builddir=.
20675
20676case "$ac_dir" in
20677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20678*)
20679  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20680  # A ".." for each directory in $ac_dir_suffix.
20681  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20682  case $ac_top_builddir_sub in
20683  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20684  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20685  esac ;;
20686esac
20687ac_abs_top_builddir=$ac_pwd
20688ac_abs_builddir=$ac_pwd$ac_dir_suffix
20689# for backward compatibility:
20690ac_top_builddir=$ac_top_build_prefix
20691
20692case $srcdir in
20693  .)  # We are building in place.
20694    ac_srcdir=.
20695    ac_top_srcdir=$ac_top_builddir_sub
20696    ac_abs_top_srcdir=$ac_pwd ;;
20697  [\\/]* | ?:[\\/]* )  # Absolute name.
20698    ac_srcdir=$srcdir$ac_dir_suffix;
20699    ac_top_srcdir=$srcdir
20700    ac_abs_top_srcdir=$srcdir ;;
20701  *) # Relative name.
20702    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20703    ac_top_srcdir=$ac_top_build_prefix$srcdir
20704    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20705esac
20706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20707
20708
20709  case $ac_mode in
20710  :F)
20711  #
20712  # CONFIG_FILE
20713  #
20714
20715  case $INSTALL in
20716  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20717  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20718  esac
20719  ac_MKDIR_P=$MKDIR_P
20720  case $MKDIR_P in
20721  [\\/$]* | ?:[\\/]* ) ;;
20722  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20723  esac
20724_ACEOF
20725
20726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20727# If the template does not know about datarootdir, expand it.
20728# FIXME: This hack should be removed a few years after 2.60.
20729ac_datarootdir_hack=; ac_datarootdir_seen=
20730ac_sed_dataroot='
20731/datarootdir/ {
20732  p
20733  q
20734}
20735/@datadir@/p
20736/@docdir@/p
20737/@infodir@/p
20738/@localedir@/p
20739/@mandir@/p'
20740case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20741*datarootdir*) ac_datarootdir_seen=yes;;
20742*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20743  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20744$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20745_ACEOF
20746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20747  ac_datarootdir_hack='
20748  s&@datadir@&$datadir&g
20749  s&@docdir@&$docdir&g
20750  s&@infodir@&$infodir&g
20751  s&@localedir@&$localedir&g
20752  s&@mandir@&$mandir&g
20753  s&\\\${datarootdir}&$datarootdir&g' ;;
20754esac
20755_ACEOF
20756
20757# Neutralize VPATH when `$srcdir' = `.'.
20758# Shell code in configure.ac might set extrasub.
20759# FIXME: do we really want to maintain this feature?
20760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20761ac_sed_extra="$ac_vpsub
20762$extrasub
20763_ACEOF
20764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20765:t
20766/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20767s|@configure_input@|$ac_sed_conf_input|;t t
20768s&@top_builddir@&$ac_top_builddir_sub&;t t
20769s&@top_build_prefix@&$ac_top_build_prefix&;t t
20770s&@srcdir@&$ac_srcdir&;t t
20771s&@abs_srcdir@&$ac_abs_srcdir&;t t
20772s&@top_srcdir@&$ac_top_srcdir&;t t
20773s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20774s&@builddir@&$ac_builddir&;t t
20775s&@abs_builddir@&$ac_abs_builddir&;t t
20776s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20777s&@INSTALL@&$ac_INSTALL&;t t
20778s&@MKDIR_P@&$ac_MKDIR_P&;t t
20779$ac_datarootdir_hack
20780"
20781eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20782  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20783
20784test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20785  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20786  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20787      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20788  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20789which seems to be undefined.  Please make sure it is defined" >&5
20790$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20791which seems to be undefined.  Please make sure it is defined" >&2;}
20792
20793  rm -f "$ac_tmp/stdin"
20794  case $ac_file in
20795  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20796  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20797  esac \
20798  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20799 ;;
20800  :H)
20801  #
20802  # CONFIG_HEADER
20803  #
20804  if test x"$ac_file" != x-; then
20805    {
20806      $as_echo "/* $configure_input  */" \
20807      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20808    } >"$ac_tmp/config.h" \
20809      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20810    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20811      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20812$as_echo "$as_me: $ac_file is unchanged" >&6;}
20813    else
20814      rm -f "$ac_file"
20815      mv "$ac_tmp/config.h" "$ac_file" \
20816	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20817    fi
20818  else
20819    $as_echo "/* $configure_input  */" \
20820      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20821      || as_fn_error $? "could not create -" "$LINENO" 5
20822  fi
20823# Compute "$ac_file"'s index in $config_headers.
20824_am_arg="$ac_file"
20825_am_stamp_count=1
20826for _am_header in $config_headers :; do
20827  case $_am_header in
20828    $_am_arg | $_am_arg:* )
20829      break ;;
20830    * )
20831      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20832  esac
20833done
20834echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20835$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20836	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20837	 X"$_am_arg" : 'X\(//\)$' \| \
20838	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20839$as_echo X"$_am_arg" |
20840    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20841	    s//\1/
20842	    q
20843	  }
20844	  /^X\(\/\/\)[^/].*/{
20845	    s//\1/
20846	    q
20847	  }
20848	  /^X\(\/\/\)$/{
20849	    s//\1/
20850	    q
20851	  }
20852	  /^X\(\/\).*/{
20853	    s//\1/
20854	    q
20855	  }
20856	  s/.*/./; q'`/stamp-h$_am_stamp_count
20857 ;;
20858
20859  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20860$as_echo "$as_me: executing $ac_file commands" >&6;}
20861 ;;
20862  esac
20863
20864
20865  case $ac_file$ac_mode in
20866    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20867  # Older Autoconf quotes --file arguments for eval, but not when files
20868  # are listed without --file.  Let's play safe and only enable the eval
20869  # if we detect the quoting.
20870  # TODO: see whether this extra hack can be removed once we start
20871  # requiring Autoconf 2.70 or later.
20872  case $CONFIG_FILES in #(
20873  *\'*) :
20874    eval set x "$CONFIG_FILES" ;; #(
20875  *) :
20876    set x $CONFIG_FILES ;; #(
20877  *) :
20878     ;;
20879esac
20880  shift
20881  # Used to flag and report bootstrapping failures.
20882  am_rc=0
20883  for am_mf
20884  do
20885    # Strip MF so we end up with the name of the file.
20886    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20887    # Check whether this is an Automake generated Makefile which includes
20888    # dependency-tracking related rules and includes.
20889    # Grep'ing the whole file directly is not great: AIX grep has a line
20890    # limit of 2048, but all sed's we know have understand at least 4000.
20891    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20892      || continue
20893    am_dirpart=`$as_dirname -- "$am_mf" ||
20894$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20895	 X"$am_mf" : 'X\(//\)[^/]' \| \
20896	 X"$am_mf" : 'X\(//\)$' \| \
20897	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20898$as_echo X"$am_mf" |
20899    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20900	    s//\1/
20901	    q
20902	  }
20903	  /^X\(\/\/\)[^/].*/{
20904	    s//\1/
20905	    q
20906	  }
20907	  /^X\(\/\/\)$/{
20908	    s//\1/
20909	    q
20910	  }
20911	  /^X\(\/\).*/{
20912	    s//\1/
20913	    q
20914	  }
20915	  s/.*/./; q'`
20916    am_filepart=`$as_basename -- "$am_mf" ||
20917$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20918	 X"$am_mf" : 'X\(//\)$' \| \
20919	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20920$as_echo X/"$am_mf" |
20921    sed '/^.*\/\([^/][^/]*\)\/*$/{
20922	    s//\1/
20923	    q
20924	  }
20925	  /^X\/\(\/\/\)$/{
20926	    s//\1/
20927	    q
20928	  }
20929	  /^X\/\(\/\).*/{
20930	    s//\1/
20931	    q
20932	  }
20933	  s/.*/./; q'`
20934    { echo "$as_me:$LINENO: cd "$am_dirpart" \
20935      && sed -e '/# am--include-marker/d' "$am_filepart" \
20936        | $MAKE -f - am--depfiles" >&5
20937   (cd "$am_dirpart" \
20938      && sed -e '/# am--include-marker/d' "$am_filepart" \
20939        | $MAKE -f - am--depfiles) >&5 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); } || am_rc=$?
20943  done
20944  if test $am_rc -ne 0; then
20945    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20947as_fn_error $? "Something went wrong bootstrapping makefile fragments
20948    for automatic dependency tracking.  Try re-running configure with the
20949    '--disable-dependency-tracking' option to at least be able to build
20950    the package (albeit without support for automatic dependency tracking).
20951See \`config.log' for more details" "$LINENO" 5; }
20952  fi
20953  { am_dirpart=; unset am_dirpart;}
20954  { am_filepart=; unset am_filepart;}
20955  { am_mf=; unset am_mf;}
20956  { am_rc=; unset am_rc;}
20957  rm -f conftest-deps.mk
20958}
20959 ;;
20960    "libtool":C)
20961
20962    # See if we are running on zsh, and set the options that allow our
20963    # commands through without removal of \ escapes.
20964    if test -n "${ZSH_VERSION+set}"; then
20965      setopt NO_GLOB_SUBST
20966    fi
20967
20968    cfgfile=${ofile}T
20969    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20970    $RM "$cfgfile"
20971
20972    cat <<_LT_EOF >> "$cfgfile"
20973#! $SHELL
20974# Generated automatically by $as_me ($PACKAGE) $VERSION
20975# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20976# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20977
20978# Provide generalized library-building support services.
20979# Written by Gordon Matzigkeit, 1996
20980
20981# Copyright (C) 2014 Free Software Foundation, Inc.
20982# This is free software; see the source for copying conditions.  There is NO
20983# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20984
20985# GNU Libtool is free software; you can redistribute it and/or modify
20986# it under the terms of the GNU General Public License as published by
20987# the Free Software Foundation; either version 2 of of the License, or
20988# (at your option) any later version.
20989#
20990# As a special exception to the GNU General Public License, if you
20991# distribute this file as part of a program or library that is built
20992# using GNU Libtool, you may include this file under the  same
20993# distribution terms that you use for the rest of that program.
20994#
20995# GNU Libtool is distributed in the hope that it will be useful, but
20996# WITHOUT ANY WARRANTY; without even the implied warranty of
20997# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20998# GNU General Public License for more details.
20999#
21000# You should have received a copy of the GNU General Public License
21001# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21002
21003
21004# The names of the tagged configurations supported by this script.
21005available_tags=''
21006
21007# Configured defaults for sys_lib_dlsearch_path munging.
21008: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21009
21010# ### BEGIN LIBTOOL CONFIG
21011
21012# Which release of libtool.m4 was used?
21013macro_version=$macro_version
21014macro_revision=$macro_revision
21015
21016# Whether or not to build static libraries.
21017build_old_libs=$enable_static
21018
21019# Whether or not to build shared libraries.
21020build_libtool_libs=$enable_shared
21021
21022# What type of objects to build.
21023pic_mode=$pic_mode
21024
21025# Whether or not to optimize for fast installation.
21026fast_install=$enable_fast_install
21027
21028# Shared archive member basename,for filename based shared library versioning on AIX.
21029shared_archive_member_spec=$shared_archive_member_spec
21030
21031# Shell to use when invoking shell scripts.
21032SHELL=$lt_SHELL
21033
21034# An echo program that protects backslashes.
21035ECHO=$lt_ECHO
21036
21037# The PATH separator for the build system.
21038PATH_SEPARATOR=$lt_PATH_SEPARATOR
21039
21040# The host system.
21041host_alias=$host_alias
21042host=$host
21043host_os=$host_os
21044
21045# The build system.
21046build_alias=$build_alias
21047build=$build
21048build_os=$build_os
21049
21050# A sed program that does not truncate output.
21051SED=$lt_SED
21052
21053# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21054Xsed="\$SED -e 1s/^X//"
21055
21056# A grep program that handles long lines.
21057GREP=$lt_GREP
21058
21059# An ERE matcher.
21060EGREP=$lt_EGREP
21061
21062# A literal string matcher.
21063FGREP=$lt_FGREP
21064
21065# A BSD- or MS-compatible name lister.
21066NM=$lt_NM
21067
21068# Whether we need soft or hard links.
21069LN_S=$lt_LN_S
21070
21071# What is the maximum length of a command?
21072max_cmd_len=$max_cmd_len
21073
21074# Object file suffix (normally "o").
21075objext=$ac_objext
21076
21077# Executable file suffix (normally "").
21078exeext=$exeext
21079
21080# whether the shell understands "unset".
21081lt_unset=$lt_unset
21082
21083# turn spaces into newlines.
21084SP2NL=$lt_lt_SP2NL
21085
21086# turn newlines into spaces.
21087NL2SP=$lt_lt_NL2SP
21088
21089# convert \$build file names to \$host format.
21090to_host_file_cmd=$lt_cv_to_host_file_cmd
21091
21092# convert \$build files to toolchain format.
21093to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21094
21095# An object symbol dumper.
21096OBJDUMP=$lt_OBJDUMP
21097
21098# Method to check whether dependent libraries are shared objects.
21099deplibs_check_method=$lt_deplibs_check_method
21100
21101# Command to use when deplibs_check_method = "file_magic".
21102file_magic_cmd=$lt_file_magic_cmd
21103
21104# How to find potential files when deplibs_check_method = "file_magic".
21105file_magic_glob=$lt_file_magic_glob
21106
21107# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21108want_nocaseglob=$lt_want_nocaseglob
21109
21110# DLL creation program.
21111DLLTOOL=$lt_DLLTOOL
21112
21113# Command to associate shared and link libraries.
21114sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21115
21116# The archiver.
21117AR=$lt_AR
21118
21119# Flags to create an archive.
21120AR_FLAGS=$lt_AR_FLAGS
21121
21122# How to feed a file listing to the archiver.
21123archiver_list_spec=$lt_archiver_list_spec
21124
21125# A symbol stripping program.
21126STRIP=$lt_STRIP
21127
21128# Commands used to install an old-style archive.
21129RANLIB=$lt_RANLIB
21130old_postinstall_cmds=$lt_old_postinstall_cmds
21131old_postuninstall_cmds=$lt_old_postuninstall_cmds
21132
21133# Whether to use a lock for old archive extraction.
21134lock_old_archive_extraction=$lock_old_archive_extraction
21135
21136# A C compiler.
21137LTCC=$lt_CC
21138
21139# LTCC compiler flags.
21140LTCFLAGS=$lt_CFLAGS
21141
21142# Take the output of nm and produce a listing of raw symbols and C names.
21143global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21144
21145# Transform the output of nm in a proper C declaration.
21146global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21147
21148# Transform the output of nm into a list of symbols to manually relocate.
21149global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21150
21151# Transform the output of nm in a C name address pair.
21152global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21153
21154# Transform the output of nm in a C name address pair when lib prefix is needed.
21155global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21156
21157# The name lister interface.
21158nm_interface=$lt_lt_cv_nm_interface
21159
21160# Specify filename containing input files for \$NM.
21161nm_file_list_spec=$lt_nm_file_list_spec
21162
21163# The root where to search for dependent libraries,and where our libraries should be installed.
21164lt_sysroot=$lt_sysroot
21165
21166# Command to truncate a binary pipe.
21167lt_truncate_bin=$lt_lt_cv_truncate_bin
21168
21169# The name of the directory that contains temporary libtool files.
21170objdir=$objdir
21171
21172# Used to examine libraries when file_magic_cmd begins with "file".
21173MAGIC_CMD=$MAGIC_CMD
21174
21175# Must we lock files when doing compilation?
21176need_locks=$lt_need_locks
21177
21178# Manifest tool.
21179MANIFEST_TOOL=$lt_MANIFEST_TOOL
21180
21181# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21182DSYMUTIL=$lt_DSYMUTIL
21183
21184# Tool to change global to local symbols on Mac OS X.
21185NMEDIT=$lt_NMEDIT
21186
21187# Tool to manipulate fat objects and archives on Mac OS X.
21188LIPO=$lt_LIPO
21189
21190# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21191OTOOL=$lt_OTOOL
21192
21193# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21194OTOOL64=$lt_OTOOL64
21195
21196# Old archive suffix (normally "a").
21197libext=$libext
21198
21199# Shared library suffix (normally ".so").
21200shrext_cmds=$lt_shrext_cmds
21201
21202# The commands to extract the exported symbol list from a shared archive.
21203extract_expsyms_cmds=$lt_extract_expsyms_cmds
21204
21205# Variables whose values should be saved in libtool wrapper scripts and
21206# restored at link time.
21207variables_saved_for_relink=$lt_variables_saved_for_relink
21208
21209# Do we need the "lib" prefix for modules?
21210need_lib_prefix=$need_lib_prefix
21211
21212# Do we need a version for libraries?
21213need_version=$need_version
21214
21215# Library versioning type.
21216version_type=$version_type
21217
21218# Shared library runtime path variable.
21219runpath_var=$runpath_var
21220
21221# Shared library path variable.
21222shlibpath_var=$shlibpath_var
21223
21224# Is shlibpath searched before the hard-coded library search path?
21225shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21226
21227# Format of library name prefix.
21228libname_spec=$lt_libname_spec
21229
21230# List of archive names.  First name is the real one, the rest are links.
21231# The last name is the one that the linker finds with -lNAME
21232library_names_spec=$lt_library_names_spec
21233
21234# The coded name of the library, if different from the real name.
21235soname_spec=$lt_soname_spec
21236
21237# Permission mode override for installation of shared libraries.
21238install_override_mode=$lt_install_override_mode
21239
21240# Command to use after installation of a shared archive.
21241postinstall_cmds=$lt_postinstall_cmds
21242
21243# Command to use after uninstallation of a shared archive.
21244postuninstall_cmds=$lt_postuninstall_cmds
21245
21246# Commands used to finish a libtool library installation in a directory.
21247finish_cmds=$lt_finish_cmds
21248
21249# As "finish_cmds", except a single script fragment to be evaled but
21250# not shown.
21251finish_eval=$lt_finish_eval
21252
21253# Whether we should hardcode library paths into libraries.
21254hardcode_into_libs=$hardcode_into_libs
21255
21256# Compile-time system search path for libraries.
21257sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21258
21259# Detected run-time system search path for libraries.
21260sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21261
21262# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21263configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21264
21265# Whether dlopen is supported.
21266dlopen_support=$enable_dlopen
21267
21268# Whether dlopen of programs is supported.
21269dlopen_self=$enable_dlopen_self
21270
21271# Whether dlopen of statically linked programs is supported.
21272dlopen_self_static=$enable_dlopen_self_static
21273
21274# Commands to strip libraries.
21275old_striplib=$lt_old_striplib
21276striplib=$lt_striplib
21277
21278
21279# The linker used to build libraries.
21280LD=$lt_LD
21281
21282# How to create reloadable object files.
21283reload_flag=$lt_reload_flag
21284reload_cmds=$lt_reload_cmds
21285
21286# Commands used to build an old-style archive.
21287old_archive_cmds=$lt_old_archive_cmds
21288
21289# A language specific compiler.
21290CC=$lt_compiler
21291
21292# Is the compiler the GNU compiler?
21293with_gcc=$GCC
21294
21295# Compiler flag to turn off builtin functions.
21296no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21297
21298# Additional compiler flags for building library objects.
21299pic_flag=$lt_lt_prog_compiler_pic
21300
21301# How to pass a linker flag through the compiler.
21302wl=$lt_lt_prog_compiler_wl
21303
21304# Compiler flag to prevent dynamic linking.
21305link_static_flag=$lt_lt_prog_compiler_static
21306
21307# Does compiler simultaneously support -c and -o options?
21308compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21309
21310# Whether or not to add -lc for building shared libraries.
21311build_libtool_need_lc=$archive_cmds_need_lc
21312
21313# Whether or not to disallow shared libs when runtime libs are static.
21314allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21315
21316# Compiler flag to allow reflexive dlopens.
21317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21318
21319# Compiler flag to generate shared objects directly from archives.
21320whole_archive_flag_spec=$lt_whole_archive_flag_spec
21321
21322# Whether the compiler copes with passing no objects directly.
21323compiler_needs_object=$lt_compiler_needs_object
21324
21325# Create an old-style archive from a shared archive.
21326old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21327
21328# Create a temporary old-style archive to link instead of a shared archive.
21329old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21330
21331# Commands used to build a shared archive.
21332archive_cmds=$lt_archive_cmds
21333archive_expsym_cmds=$lt_archive_expsym_cmds
21334
21335# Commands used to build a loadable module if different from building
21336# a shared archive.
21337module_cmds=$lt_module_cmds
21338module_expsym_cmds=$lt_module_expsym_cmds
21339
21340# Whether we are building with GNU ld or not.
21341with_gnu_ld=$lt_with_gnu_ld
21342
21343# Flag that allows shared libraries with undefined symbols to be built.
21344allow_undefined_flag=$lt_allow_undefined_flag
21345
21346# Flag that enforces no undefined symbols.
21347no_undefined_flag=$lt_no_undefined_flag
21348
21349# Flag to hardcode \$libdir into a binary during linking.
21350# This must work even if \$libdir does not exist
21351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21352
21353# Whether we need a single "-rpath" flag with a separated argument.
21354hardcode_libdir_separator=$lt_hardcode_libdir_separator
21355
21356# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21357# DIR into the resulting binary.
21358hardcode_direct=$hardcode_direct
21359
21360# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21361# DIR into the resulting binary and the resulting library dependency is
21362# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21363# library is relocated.
21364hardcode_direct_absolute=$hardcode_direct_absolute
21365
21366# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21367# into the resulting binary.
21368hardcode_minus_L=$hardcode_minus_L
21369
21370# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21371# into the resulting binary.
21372hardcode_shlibpath_var=$hardcode_shlibpath_var
21373
21374# Set to "yes" if building a shared library automatically hardcodes DIR
21375# into the library and all subsequent libraries and executables linked
21376# against it.
21377hardcode_automatic=$hardcode_automatic
21378
21379# Set to yes if linker adds runtime paths of dependent libraries
21380# to runtime path list.
21381inherit_rpath=$inherit_rpath
21382
21383# Whether libtool must link a program against all its dependency libraries.
21384link_all_deplibs=$link_all_deplibs
21385
21386# Set to "yes" if exported symbols are required.
21387always_export_symbols=$always_export_symbols
21388
21389# The commands to list exported symbols.
21390export_symbols_cmds=$lt_export_symbols_cmds
21391
21392# Symbols that should not be listed in the preloaded symbols.
21393exclude_expsyms=$lt_exclude_expsyms
21394
21395# Symbols that must always be exported.
21396include_expsyms=$lt_include_expsyms
21397
21398# Commands necessary for linking programs (against libraries) with templates.
21399prelink_cmds=$lt_prelink_cmds
21400
21401# Commands necessary for finishing linking programs.
21402postlink_cmds=$lt_postlink_cmds
21403
21404# Specify filename containing input files.
21405file_list_spec=$lt_file_list_spec
21406
21407# How to hardcode a shared library path into an executable.
21408hardcode_action=$hardcode_action
21409
21410# ### END LIBTOOL CONFIG
21411
21412_LT_EOF
21413
21414    cat <<'_LT_EOF' >> "$cfgfile"
21415
21416# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21417
21418# func_munge_path_list VARIABLE PATH
21419# -----------------------------------
21420# VARIABLE is name of variable containing _space_ separated list of
21421# directories to be munged by the contents of PATH, which is string
21422# having a format:
21423# "DIR[:DIR]:"
21424#       string "DIR[ DIR]" will be prepended to VARIABLE
21425# ":DIR[:DIR]"
21426#       string "DIR[ DIR]" will be appended to VARIABLE
21427# "DIRP[:DIRP]::[DIRA:]DIRA"
21428#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21429#       "DIRA[ DIRA]" will be appended to VARIABLE
21430# "DIR[:DIR]"
21431#       VARIABLE will be replaced by "DIR[ DIR]"
21432func_munge_path_list ()
21433{
21434    case x$2 in
21435    x)
21436        ;;
21437    *:)
21438        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21439        ;;
21440    x:*)
21441        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21442        ;;
21443    *::*)
21444        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21445        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21446        ;;
21447    *)
21448        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21449        ;;
21450    esac
21451}
21452
21453
21454# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21455func_cc_basename ()
21456{
21457    for cc_temp in $*""; do
21458      case $cc_temp in
21459        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21460        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21461        \-*) ;;
21462        *) break;;
21463      esac
21464    done
21465    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21466}
21467
21468
21469# ### END FUNCTIONS SHARED WITH CONFIGURE
21470
21471_LT_EOF
21472
21473  case $host_os in
21474  aix3*)
21475    cat <<\_LT_EOF >> "$cfgfile"
21476# AIX sometimes has problems with the GCC collect2 program.  For some
21477# reason, if we set the COLLECT_NAMES environment variable, the problems
21478# vanish in a puff of smoke.
21479if test set != "${COLLECT_NAMES+set}"; then
21480  COLLECT_NAMES=
21481  export COLLECT_NAMES
21482fi
21483_LT_EOF
21484    ;;
21485  esac
21486
21487
21488ltmain=$ac_aux_dir/ltmain.sh
21489
21490
21491  # We use sed instead of cat because bash on DJGPP gets confused if
21492  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21493  # text mode, it properly converts lines to CR/LF.  This bash problem
21494  # is reportedly fixed, but why not run on old versions too?
21495  sed '$q' "$ltmain" >> "$cfgfile" \
21496     || (rm -f "$cfgfile"; exit 1)
21497
21498   mv -f "$cfgfile" "$ofile" ||
21499    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21500  chmod +x "$ofile"
21501
21502 ;;
21503
21504  esac
21505done # for ac_tag
21506
21507
21508as_fn_exit 0
21509_ACEOF
21510ac_clean_files=$ac_clean_files_save
21511
21512test $ac_write_fail = 0 ||
21513  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21514
21515
21516# configure is writing to config.log, and then calls config.status.
21517# config.status does its own redirection, appending to config.log.
21518# Unfortunately, on DOS this fails, as config.log is still kept open
21519# by configure, so config.status won't be able to write to it; its
21520# output is simply discarded.  So we exec the FD to /dev/null,
21521# effectively closing config.log, so it can be properly (re)opened and
21522# appended to by config.status.  When coming back to configure, we
21523# need to make the FD available again.
21524if test "$no_create" != yes; then
21525  ac_cs_success=:
21526  ac_config_status_args=
21527  test "$silent" = yes &&
21528    ac_config_status_args="$ac_config_status_args --quiet"
21529  exec 5>/dev/null
21530  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21531  exec 5>>config.log
21532  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21533  # would make configure fail if this is the last instruction.
21534  $ac_cs_success || as_fn_exit 1
21535fi
21536if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21537  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21538$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21539fi
21540
21541
21542echo ""
21543echo "        prefix:              $prefix"
21544echo "        exec_prefix:         $exec_prefix"
21545echo "        libdir:              $libdir"
21546echo "        includedir:          $includedir"
21547
21548echo ""
21549echo "        CFLAGS:              $CFLAGS"
21550echo "        CXXFLAGS:            $CXXFLAGS"
21551echo "        Macros:              $DEFINES"
21552
21553echo ""
21554echo "        Run '${MAKE-make}' to build xf86-video-nouveau"
21555echo ""
21556