1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-amdgpu 19.1.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu>.
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/AMDgpu
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-amdgpu'
593PACKAGE_TARNAME='xf86-video-amdgpu'
594PACKAGE_VERSION='19.1.0'
595PACKAGE_STRING='xf86-video-amdgpu 19.1.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu'
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
642GLAMOR_FALSE
643GLAMOR_TRUE
644LIBGLAMOR_EGL_LIBS
645LIBGLAMOR_EGL_CFLAGS
646LIBGLAMOR_LIBS
647LIBGLAMOR_CFLAGS
648LIBGL_LIBS
649LIBGL_CFLAGS
650LIBUDEV_FALSE
651LIBUDEV_TRUE
652LIBUDEV_LIBS
653LIBUDEV_CFLAGS
654configdir
655HAS_XORG_CONF_DIR_FALSE
656HAS_XORG_CONF_DIR_TRUE
657HAVE_XEXTPROTO_71_FALSE
658HAVE_XEXTPROTO_71_TRUE
659XEXT_LIBS
660XEXT_CFLAGS
661XORG_LIBS
662XORG_CFLAGS
663GBM_LIBS
664GBM_CFLAGS
665LIBDRM_AMDGPU_LIBS
666LIBDRM_AMDGPU_CFLAGS
667LIBDRM_LIBS
668LIBDRM_CFLAGS
669LT_SYS_LIBRARY_PATH
670OTOOL64
671OTOOL
672LIPO
673NMEDIT
674DSYMUTIL
675MANIFEST_TOOL
676RANLIB
677ac_ct_AR
678AR
679DLLTOOL
680OBJDUMP
681LN_S
682NM
683ac_ct_DUMPBIN
684DUMPBIN
685LD
686FGREP
687LIBTOOL
688MAN_SUBSTS
689XORG_MAN_PAGE
690ADMIN_MAN_DIR
691DRIVER_MAN_DIR
692MISC_MAN_DIR
693FILE_MAN_DIR
694LIB_MAN_DIR
695APP_MAN_DIR
696ADMIN_MAN_SUFFIX
697DRIVER_MAN_SUFFIX
698MISC_MAN_SUFFIX
699FILE_MAN_SUFFIX
700LIB_MAN_SUFFIX
701APP_MAN_SUFFIX
702SED
703host_os
704host_vendor
705host_cpu
706host
707build_os
708build_vendor
709build_cpu
710build
711INSTALL_CMD
712PKG_CONFIG_LIBDIR
713PKG_CONFIG_PATH
714PKG_CONFIG
715CHANGELOG_CMD
716STRICT_CFLAGS
717CWARNFLAGS
718BASE_CFLAGS
719EGREP
720GREP
721CPP
722am__fastdepCC_FALSE
723am__fastdepCC_TRUE
724CCDEPMODE
725am__nodep
726AMDEPBACKSLASH
727AMDEP_FALSE
728AMDEP_TRUE
729am__include
730DEPDIR
731OBJEXT
732EXEEXT
733ac_ct_CC
734CPPFLAGS
735LDFLAGS
736CFLAGS
737CC
738AM_BACKSLASH
739AM_DEFAULT_VERBOSITY
740AM_DEFAULT_V
741AM_V
742am__untar
743am__tar
744AMTAR
745am__leading_dot
746SET_MAKE
747AWK
748mkdir_p
749MKDIR_P
750INSTALL_STRIP_PROGRAM
751STRIP
752install_sh
753MAKEINFO
754AUTOHEADER
755AUTOMAKE
756AUTOCONF
757ACLOCAL
758VERSION
759PACKAGE
760CYGPATH_W
761am__isrc
762INSTALL_DATA
763INSTALL_SCRIPT
764INSTALL_PROGRAM
765target_alias
766host_alias
767build_alias
768LIBS
769ECHO_T
770ECHO_N
771ECHO_C
772DEFS
773mandir
774localedir
775libdir
776psdir
777pdfdir
778dvidir
779htmldir
780infodir
781docdir
782oldincludedir
783includedir
784runstatedir
785localstatedir
786sharedstatedir
787sysconfdir
788datadir
789datarootdir
790libexecdir
791sbindir
792bindir
793program_transform_name
794prefix
795exec_prefix
796PACKAGE_URL
797PACKAGE_BUGREPORT
798PACKAGE_STRING
799PACKAGE_VERSION
800PACKAGE_TARNAME
801PACKAGE_NAME
802PATH_SEPARATOR
803SHELL
804am__quote'
805ac_subst_files=''
806ac_user_opts='
807enable_option_checking
808enable_silent_rules
809enable_largefile
810enable_dependency_tracking
811enable_selective_werror
812enable_strict_compilation
813enable_static
814enable_shared
815with_pic
816enable_fast_install
817with_aix_soname
818with_gnu_ld
819with_sysroot
820enable_libtool_lock
821with_xorg_module_dir
822with_xorg_conf_dir
823enable_udev
824enable_glamor
825'
826      ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CPP
835PKG_CONFIG
836PKG_CONFIG_PATH
837PKG_CONFIG_LIBDIR
838LT_SYS_LIBRARY_PATH
839LIBDRM_CFLAGS
840LIBDRM_LIBS
841LIBDRM_AMDGPU_CFLAGS
842LIBDRM_AMDGPU_LIBS
843GBM_CFLAGS
844GBM_LIBS
845XORG_CFLAGS
846XORG_LIBS
847XEXT_CFLAGS
848XEXT_LIBS
849LIBUDEV_CFLAGS
850LIBUDEV_LIBS
851LIBGL_CFLAGS
852LIBGL_LIBS
853LIBGLAMOR_CFLAGS
854LIBGLAMOR_LIBS
855LIBGLAMOR_EGL_CFLAGS
856LIBGLAMOR_EGL_LIBS'
857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895runstatedir='${localstatedir}/run'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912  # If the previous option needs an argument, assign it.
913  if test -n "$ac_prev"; then
914    eval $ac_prev=\$ac_option
915    ac_prev=
916    continue
917  fi
918
919  case $ac_option in
920  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921  *=)   ac_optarg= ;;
922  *)    ac_optarg=yes ;;
923  esac
924
925  # Accept the important Cygnus configure options, so we can diagnose typos.
926
927  case $ac_dashdash$ac_option in
928  --)
929    ac_dashdash=yes ;;
930
931  -bindir | --bindir | --bindi | --bind | --bin | --bi)
932    ac_prev=bindir ;;
933  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934    bindir=$ac_optarg ;;
935
936  -build | --build | --buil | --bui | --bu)
937    ac_prev=build_alias ;;
938  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939    build_alias=$ac_optarg ;;
940
941  -cache-file | --cache-file | --cache-fil | --cache-fi \
942  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943    ac_prev=cache_file ;;
944  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946    cache_file=$ac_optarg ;;
947
948  --config-cache | -C)
949    cache_file=config.cache ;;
950
951  -datadir | --datadir | --datadi | --datad)
952    ac_prev=datadir ;;
953  -datadir=* | --datadir=* | --datadi=* | --datad=*)
954    datadir=$ac_optarg ;;
955
956  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957  | --dataroo | --dataro | --datar)
958    ac_prev=datarootdir ;;
959  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961    datarootdir=$ac_optarg ;;
962
963  -disable-* | --disable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=no ;;
978
979  -docdir | --docdir | --docdi | --doc | --do)
980    ac_prev=docdir ;;
981  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982    docdir=$ac_optarg ;;
983
984  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985    ac_prev=dvidir ;;
986  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987    dvidir=$ac_optarg ;;
988
989  -enable-* | --enable-*)
990    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991    # Reject names that are not valid shell variable names.
992    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993      as_fn_error $? "invalid feature name: $ac_useropt"
994    ac_useropt_orig=$ac_useropt
995    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996    case $ac_user_opts in
997      *"
998"enable_$ac_useropt"
999"*) ;;
1000      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001	 ac_unrecognized_sep=', ';;
1002    esac
1003    eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007  | --exec | --exe | --ex)
1008    ac_prev=exec_prefix ;;
1009  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011  | --exec=* | --exe=* | --ex=*)
1012    exec_prefix=$ac_optarg ;;
1013
1014  -gas | --gas | --ga | --g)
1015    # Obsolete; use --with-gas.
1016    with_gas=yes ;;
1017
1018  -help | --help | --hel | --he | -h)
1019    ac_init_help=long ;;
1020  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021    ac_init_help=recursive ;;
1022  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023    ac_init_help=short ;;
1024
1025  -host | --host | --hos | --ho)
1026    ac_prev=host_alias ;;
1027  -host=* | --host=* | --hos=* | --ho=*)
1028    host_alias=$ac_optarg ;;
1029
1030  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031    ac_prev=htmldir ;;
1032  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033  | --ht=*)
1034    htmldir=$ac_optarg ;;
1035
1036  -includedir | --includedir | --includedi | --included | --include \
1037  | --includ | --inclu | --incl | --inc)
1038    ac_prev=includedir ;;
1039  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040  | --includ=* | --inclu=* | --incl=* | --inc=*)
1041    includedir=$ac_optarg ;;
1042
1043  -infodir | --infodir | --infodi | --infod | --info | --inf)
1044    ac_prev=infodir ;;
1045  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046    infodir=$ac_optarg ;;
1047
1048  -libdir | --libdir | --libdi | --libd)
1049    ac_prev=libdir ;;
1050  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051    libdir=$ac_optarg ;;
1052
1053  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054  | --libexe | --libex | --libe)
1055    ac_prev=libexecdir ;;
1056  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057  | --libexe=* | --libex=* | --libe=*)
1058    libexecdir=$ac_optarg ;;
1059
1060  -localedir | --localedir | --localedi | --localed | --locale)
1061    ac_prev=localedir ;;
1062  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063    localedir=$ac_optarg ;;
1064
1065  -localstatedir | --localstatedir | --localstatedi | --localstated \
1066  | --localstate | --localstat | --localsta | --localst | --locals)
1067    ac_prev=localstatedir ;;
1068  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070    localstatedir=$ac_optarg ;;
1071
1072  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073    ac_prev=mandir ;;
1074  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075    mandir=$ac_optarg ;;
1076
1077  -nfp | --nfp | --nf)
1078    # Obsolete; use --without-fp.
1079    with_fp=no ;;
1080
1081  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082  | --no-cr | --no-c | -n)
1083    no_create=yes ;;
1084
1085  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087    no_recursion=yes ;;
1088
1089  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091  | --oldin | --oldi | --old | --ol | --o)
1092    ac_prev=oldincludedir ;;
1093  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096    oldincludedir=$ac_optarg ;;
1097
1098  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099    ac_prev=prefix ;;
1100  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101    prefix=$ac_optarg ;;
1102
1103  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104  | --program-pre | --program-pr | --program-p)
1105    ac_prev=program_prefix ;;
1106  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108    program_prefix=$ac_optarg ;;
1109
1110  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111  | --program-suf | --program-su | --program-s)
1112    ac_prev=program_suffix ;;
1113  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115    program_suffix=$ac_optarg ;;
1116
1117  -program-transform-name | --program-transform-name \
1118  | --program-transform-nam | --program-transform-na \
1119  | --program-transform-n | --program-transform- \
1120  | --program-transform | --program-transfor \
1121  | --program-transfo | --program-transf \
1122  | --program-trans | --program-tran \
1123  | --progr-tra | --program-tr | --program-t)
1124    ac_prev=program_transform_name ;;
1125  -program-transform-name=* | --program-transform-name=* \
1126  | --program-transform-nam=* | --program-transform-na=* \
1127  | --program-transform-n=* | --program-transform-=* \
1128  | --program-transform=* | --program-transfor=* \
1129  | --program-transfo=* | --program-transf=* \
1130  | --program-trans=* | --program-tran=* \
1131  | --progr-tra=* | --program-tr=* | --program-t=*)
1132    program_transform_name=$ac_optarg ;;
1133
1134  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135    ac_prev=pdfdir ;;
1136  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137    pdfdir=$ac_optarg ;;
1138
1139  -psdir | --psdir | --psdi | --psd | --ps)
1140    ac_prev=psdir ;;
1141  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142    psdir=$ac_optarg ;;
1143
1144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145  | -silent | --silent | --silen | --sile | --sil)
1146    silent=yes ;;
1147
1148  -runstatedir | --runstatedir | --runstatedi | --runstated \
1149  | --runstate | --runstat | --runsta | --runst | --runs \
1150  | --run | --ru | --r)
1151    ac_prev=runstatedir ;;
1152  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154  | --run=* | --ru=* | --r=*)
1155    runstatedir=$ac_optarg ;;
1156
1157  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158    ac_prev=sbindir ;;
1159  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160  | --sbi=* | --sb=*)
1161    sbindir=$ac_optarg ;;
1162
1163  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165  | --sharedst | --shareds | --shared | --share | --shar \
1166  | --sha | --sh)
1167    ac_prev=sharedstatedir ;;
1168  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171  | --sha=* | --sh=*)
1172    sharedstatedir=$ac_optarg ;;
1173
1174  -site | --site | --sit)
1175    ac_prev=site ;;
1176  -site=* | --site=* | --sit=*)
1177    site=$ac_optarg ;;
1178
1179  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180    ac_prev=srcdir ;;
1181  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182    srcdir=$ac_optarg ;;
1183
1184  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185  | --syscon | --sysco | --sysc | --sys | --sy)
1186    ac_prev=sysconfdir ;;
1187  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189    sysconfdir=$ac_optarg ;;
1190
1191  -target | --target | --targe | --targ | --tar | --ta | --t)
1192    ac_prev=target_alias ;;
1193  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194    target_alias=$ac_optarg ;;
1195
1196  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197    verbose=yes ;;
1198
1199  -version | --version | --versio | --versi | --vers | -V)
1200    ac_init_version=: ;;
1201
1202  -with-* | --with-*)
1203    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204    # Reject names that are not valid shell variable names.
1205    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206      as_fn_error $? "invalid package name: $ac_useropt"
1207    ac_useropt_orig=$ac_useropt
1208    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209    case $ac_user_opts in
1210      *"
1211"with_$ac_useropt"
1212"*) ;;
1213      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214	 ac_unrecognized_sep=', ';;
1215    esac
1216    eval with_$ac_useropt=\$ac_optarg ;;
1217
1218  -without-* | --without-*)
1219    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222      as_fn_error $? "invalid package name: $ac_useropt"
1223    ac_useropt_orig=$ac_useropt
1224    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225    case $ac_user_opts in
1226      *"
1227"with_$ac_useropt"
1228"*) ;;
1229      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230	 ac_unrecognized_sep=', ';;
1231    esac
1232    eval with_$ac_useropt=no ;;
1233
1234  --x)
1235    # Obsolete; use --with-x.
1236    with_x=yes ;;
1237
1238  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239  | --x-incl | --x-inc | --x-in | --x-i)
1240    ac_prev=x_includes ;;
1241  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243    x_includes=$ac_optarg ;;
1244
1245  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247    ac_prev=x_libraries ;;
1248  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250    x_libraries=$ac_optarg ;;
1251
1252  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253Try \`$0 --help' for more information"
1254    ;;
1255
1256  *=*)
1257    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258    # Reject names that are not valid shell variable names.
1259    case $ac_envvar in #(
1260      '' | [0-9]* | *[!_$as_cr_alnum]* )
1261      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262    esac
1263    eval $ac_envvar=\$ac_optarg
1264    export $ac_envvar ;;
1265
1266  *)
1267    # FIXME: should be removed in autoconf 3.0.
1268    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272    ;;
1273
1274  esac
1275done
1276
1277if test -n "$ac_prev"; then
1278  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279  as_fn_error $? "missing argument to $ac_option"
1280fi
1281
1282if test -n "$ac_unrecognized_opts"; then
1283  case $enable_option_checking in
1284    no) ;;
1285    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287  esac
1288fi
1289
1290# Check all directory arguments for consistency.
1291for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292		datadir sysconfdir sharedstatedir localstatedir includedir \
1293		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294		libdir localedir mandir runstatedir
1295do
1296  eval ac_val=\$$ac_var
1297  # Remove trailing slashes.
1298  case $ac_val in
1299    */ )
1300      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301      eval $ac_var=\$ac_val;;
1302  esac
1303  # Be sure to have absolute directory names.
1304  case $ac_val in
1305    [\\/$]* | ?:[\\/]* )  continue;;
1306    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307  esac
1308  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309done
1310
1311# There might be people who depend on the old broken behavior: `$host'
1312# used to hold the argument of --host etc.
1313# FIXME: To remove some day.
1314build=$build_alias
1315host=$host_alias
1316target=$target_alias
1317
1318# FIXME: To remove some day.
1319if test "x$host_alias" != x; then
1320  if test "x$build_alias" = x; then
1321    cross_compiling=maybe
1322  elif test "x$build_alias" != "x$host_alias"; then
1323    cross_compiling=yes
1324  fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336  as_fn_error $? "working directory cannot be determined"
1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338  as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343  ac_srcdir_defaulted=yes
1344  # Try the directory containing this script, then the parent directory.
1345  ac_confdir=`$as_dirname -- "$as_myself" ||
1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347	 X"$as_myself" : 'X\(//\)[^/]' \| \
1348	 X"$as_myself" : 'X\(//\)$' \| \
1349	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350$as_echo X"$as_myself" |
1351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)[^/].*/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\/\)$/{
1360	    s//\1/
1361	    q
1362	  }
1363	  /^X\(\/\).*/{
1364	    s//\1/
1365	    q
1366	  }
1367	  s/.*/./; q'`
1368  srcdir=$ac_confdir
1369  if test ! -r "$srcdir/$ac_unique_file"; then
1370    srcdir=..
1371  fi
1372else
1373  ac_srcdir_defaulted=no
1374fi
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382	pwd)`
1383# When building in place, set srcdir=.
1384if test "$ac_abs_confdir" = "$ac_pwd"; then
1385  srcdir=.
1386fi
1387# Remove unnecessary trailing slashes from srcdir.
1388# Double slashes in file names in object file debugging info
1389# mess up M-x gdb in Emacs.
1390case $srcdir in
1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392esac
1393for ac_var in $ac_precious_vars; do
1394  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395  eval ac_env_${ac_var}_value=\$${ac_var}
1396  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398done
1399
1400#
1401# Report the --help message.
1402#
1403if test "$ac_init_help" = "long"; then
1404  # Omit some internal or obsolete options to make the list less imposing.
1405  # This message is too long to be a string in the A/UX 3.1 sh.
1406  cat <<_ACEOF
1407\`configure' configures xf86-video-amdgpu 19.1.0 to adapt to many kinds of systems.
1408
1409Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414Defaults for the options are specified in brackets.
1415
1416Configuration:
1417  -h, --help              display this help and exit
1418      --help=short        display options specific to this package
1419      --help=recursive    display the short help of all the included packages
1420  -V, --version           display version information and exit
1421  -q, --quiet, --silent   do not print \`checking ...' messages
1422      --cache-file=FILE   cache test results in FILE [disabled]
1423  -C, --config-cache      alias for \`--cache-file=config.cache'
1424  -n, --no-create         do not create output files
1425      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427Installation directories:
1428  --prefix=PREFIX         install architecture-independent files in PREFIX
1429                          [$ac_default_prefix]
1430  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431                          [PREFIX]
1432
1433By default, \`make install' will install all the files in
1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436for instance \`--prefix=\$HOME'.
1437
1438For better control, use the options below.
1439
1440Fine tuning of the installation directories:
1441  --bindir=DIR            user executables [EPREFIX/bin]
1442  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1443  --libexecdir=DIR        program executables [EPREFIX/libexec]
1444  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1445  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1446  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1447  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1448  --libdir=DIR            object code libraries [EPREFIX/lib]
1449  --includedir=DIR        C header files [PREFIX/include]
1450  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453  --infodir=DIR           info documentation [DATAROOTDIR/info]
1454  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455  --mandir=DIR            man documentation [DATAROOTDIR/man]
1456  --docdir=DIR            documentation root
1457                          [DATAROOTDIR/doc/xf86-video-amdgpu]
1458  --htmldir=DIR           html documentation [DOCDIR]
1459  --dvidir=DIR            dvi documentation [DOCDIR]
1460  --pdfdir=DIR            pdf documentation [DOCDIR]
1461  --psdir=DIR             ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471System types:
1472  --build=BUILD     configure for building on BUILD [guessed]
1473  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478  case $ac_init_help in
1479     short | recursive ) echo "Configuration of xf86-video-amdgpu 19.1.0:";;
1480   esac
1481  cat <<\_ACEOF
1482
1483Optional Features:
1484  --disable-option-checking  ignore unrecognized --enable/--with options
1485  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487  --enable-silent-rules   less verbose build output (undo: "make V=1")
1488  --disable-silent-rules  verbose build output (undo: "make V=0")
1489  --disable-largefile     omit support for large files
1490  --enable-dependency-tracking
1491                          do not reject slow dependency extractors
1492  --disable-dependency-tracking
1493                          speeds up one-time build
1494  --disable-selective-werror
1495                          Turn off selective compiler errors. (default:
1496                          enabled)
1497  --enable-strict-compilation
1498                          Enable all warnings from compiler and make them
1499                          errors (default: disabled)
1500  --enable-static[=PKGS]  build static libraries [default=no]
1501  --enable-shared[=PKGS]  build shared libraries [default=yes]
1502  --enable-fast-install[=PKGS]
1503                          optimize for fast installation [default=yes]
1504  --disable-libtool-lock  avoid locking (might break parallel builds)
1505  --disable-udev          Disable libudev support [default=auto]
1506  --disable-glamor        Disable glamor, a new GL-based acceleration
1507                          [default=enabled]
1508
1509Optional Packages:
1510  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1511  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1512  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1513                          both]
1514  --with-aix-soname=aix|svr4|both
1515                          shared library versioning (aka "SONAME") variant to
1516                          provide on AIX, [default=aix].
1517  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1519                          compiler's sysroot if not specified).
1520  --with-xorg-module-dir=DIR
1521                          Default xorg module directory
1522                          [[default=$libdir/xorg/modules]]
1523  --with-xorg-conf-dir=DIR
1524                          Default xorg.conf.d directory
1525                          [[default=${prefix}/share/X11/xorg.conf.d]]
1526
1527Some influential environment variables:
1528  CC          C compiler command
1529  CFLAGS      C compiler flags
1530  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1531              nonstandard directory <lib dir>
1532  LIBS        libraries to pass to the linker, e.g. -l<library>
1533  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534              you have headers in a nonstandard directory <include dir>
1535  CPP         C preprocessor
1536  PKG_CONFIG  path to pkg-config utility
1537  PKG_CONFIG_PATH
1538              directories to add to pkg-config's search path
1539  PKG_CONFIG_LIBDIR
1540              path overriding pkg-config's built-in search path
1541  LT_SYS_LIBRARY_PATH
1542              User-defined run-time library search path.
1543  LIBDRM_CFLAGS
1544              C compiler flags for LIBDRM, overriding pkg-config
1545  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1546  LIBDRM_AMDGPU_CFLAGS
1547              C compiler flags for LIBDRM_AMDGPU, overriding pkg-config
1548  LIBDRM_AMDGPU_LIBS
1549              linker flags for LIBDRM_AMDGPU, overriding pkg-config
1550  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
1551  GBM_LIBS    linker flags for GBM, overriding pkg-config
1552  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1553  XORG_LIBS   linker flags for XORG, overriding pkg-config
1554  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1555  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1556  LIBUDEV_CFLAGS
1557              C compiler flags for LIBUDEV, overriding pkg-config
1558  LIBUDEV_LIBS
1559              linker flags for LIBUDEV, overriding pkg-config
1560  LIBGL_CFLAGS
1561              C compiler flags for LIBGL, overriding pkg-config
1562  LIBGL_LIBS  linker flags for LIBGL, overriding pkg-config
1563  LIBGLAMOR_CFLAGS
1564              C compiler flags for LIBGLAMOR, overriding pkg-config
1565  LIBGLAMOR_LIBS
1566              linker flags for LIBGLAMOR, overriding pkg-config
1567  LIBGLAMOR_EGL_CFLAGS
1568              C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1569  LIBGLAMOR_EGL_LIBS
1570              linker flags for LIBGLAMOR_EGL, overriding pkg-config
1571
1572Use these variables to override the choices made by `configure' or to help
1573it to find libraries and programs with nonstandard names/locations.
1574
1575Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu>.
1576_ACEOF
1577ac_status=$?
1578fi
1579
1580if test "$ac_init_help" = "recursive"; then
1581  # If there are subdirs, report their specific --help.
1582  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583    test -d "$ac_dir" ||
1584      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585      continue
1586    ac_builddir=.
1587
1588case "$ac_dir" in
1589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590*)
1591  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592  # A ".." for each directory in $ac_dir_suffix.
1593  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594  case $ac_top_builddir_sub in
1595  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597  esac ;;
1598esac
1599ac_abs_top_builddir=$ac_pwd
1600ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601# for backward compatibility:
1602ac_top_builddir=$ac_top_build_prefix
1603
1604case $srcdir in
1605  .)  # We are building in place.
1606    ac_srcdir=.
1607    ac_top_srcdir=$ac_top_builddir_sub
1608    ac_abs_top_srcdir=$ac_pwd ;;
1609  [\\/]* | ?:[\\/]* )  # Absolute name.
1610    ac_srcdir=$srcdir$ac_dir_suffix;
1611    ac_top_srcdir=$srcdir
1612    ac_abs_top_srcdir=$srcdir ;;
1613  *) # Relative name.
1614    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615    ac_top_srcdir=$ac_top_build_prefix$srcdir
1616    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617esac
1618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619
1620    cd "$ac_dir" || { ac_status=$?; continue; }
1621    # Check for guested configure.
1622    if test -f "$ac_srcdir/configure.gnu"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625    elif test -f "$ac_srcdir/configure"; then
1626      echo &&
1627      $SHELL "$ac_srcdir/configure" --help=recursive
1628    else
1629      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630    fi || ac_status=$?
1631    cd "$ac_pwd" || { ac_status=$?; break; }
1632  done
1633fi
1634
1635test -n "$ac_init_help" && exit $ac_status
1636if $ac_init_version; then
1637  cat <<\_ACEOF
1638xf86-video-amdgpu configure 19.1.0
1639generated by GNU Autoconf 2.69
1640
1641Copyright (C) 2012 Free Software Foundation, Inc.
1642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
1644_ACEOF
1645  exit
1646fi
1647
1648## ------------------------ ##
1649## Autoconf initialization. ##
1650## ------------------------ ##
1651
1652# ac_fn_c_try_compile LINENO
1653# --------------------------
1654# Try to compile conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_compile ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext
1659  if { { ac_try="$ac_compile"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665$as_echo "$ac_try_echo"; } >&5
1666  (eval "$ac_compile") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675	 test -z "$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       } && test -s conftest.$ac_objext; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
1683	ac_retval=1
1684fi
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686  as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_compile
1689
1690# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1691# ---------------------------------------------
1692# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1693# accordingly.
1694ac_fn_c_check_decl ()
1695{
1696  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697  as_decl_name=`echo $2|sed 's/ *(.*//'`
1698  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1700$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1701if eval \${$3+:} false; then :
1702  $as_echo_n "(cached) " >&6
1703else
1704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h.  */
1706$4
1707int
1708main ()
1709{
1710#ifndef $as_decl_name
1711#ifdef __cplusplus
1712  (void) $as_decl_use;
1713#else
1714  (void) $as_decl_name;
1715#endif
1716#endif
1717
1718  ;
1719  return 0;
1720}
1721_ACEOF
1722if ac_fn_c_try_compile "$LINENO"; then :
1723  eval "$3=yes"
1724else
1725  eval "$3=no"
1726fi
1727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728fi
1729eval ac_res=\$$3
1730	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734} # ac_fn_c_check_decl
1735
1736# ac_fn_c_try_cpp LINENO
1737# ----------------------
1738# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_cpp ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  if { { ac_try="$ac_cpp conftest.$ac_ext"
1743case "(($ac_try" in
1744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745  *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750  ac_status=$?
1751  if test -s conftest.err; then
1752    grep -v '^ *+' conftest.err >conftest.er1
1753    cat conftest.er1 >&5
1754    mv -f conftest.er1 conftest.err
1755  fi
1756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757  test $ac_status = 0; } > conftest.i && {
1758	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759	 test ! -s conftest.err
1760       }; then :
1761  ac_retval=0
1762else
1763  $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766    ac_retval=1
1767fi
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_cpp
1772
1773# ac_fn_c_try_run LINENO
1774# ----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776# that executables *can* be run.
1777ac_fn_c_try_run ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783  *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787  (eval "$ac_link") 2>&5
1788  ac_status=$?
1789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791  { { case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_try") 2>&5
1798  ac_status=$?
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; }; }; then :
1801  ac_retval=0
1802else
1803  $as_echo "$as_me: program exited with status $ac_status" >&5
1804       $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807       ac_retval=$ac_status
1808fi
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_run
1814
1815# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists and can be compiled using the include files in
1818# INCLUDES, setting the cache variable VAR accordingly.
1819ac_fn_c_check_header_compile ()
1820{
1821  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if eval \${$3+:} false; then :
1825  $as_echo_n "(cached) " >&6
1826else
1827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h.  */
1829$4
1830#include <$2>
1831_ACEOF
1832if ac_fn_c_try_compile "$LINENO"; then :
1833  eval "$3=yes"
1834else
1835  eval "$3=no"
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838fi
1839eval ac_res=\$$3
1840	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_c_check_header_compile
1845
1846# ac_fn_c_try_link LINENO
1847# -----------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_c_try_link ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  rm -f conftest.$ac_objext conftest$ac_exeext
1853  if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860  (eval "$ac_link") 2>conftest.err
1861  ac_status=$?
1862  if test -s conftest.err; then
1863    grep -v '^ *+' conftest.err >conftest.er1
1864    cat conftest.er1 >&5
1865    mv -f conftest.er1 conftest.err
1866  fi
1867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868  test $ac_status = 0; } && {
1869	 test -z "$ac_c_werror_flag" ||
1870	 test ! -s conftest.err
1871       } && test -s conftest$ac_exeext && {
1872	 test "$cross_compiling" = yes ||
1873	 test -x conftest$ac_exeext
1874       }; then :
1875  ac_retval=0
1876else
1877  $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880	ac_retval=1
1881fi
1882  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884  # interfere with the next link command; also delete a directory that is
1885  # left behind by Apple's compiler.  We do this before executing the actions.
1886  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_c_try_link
1891
1892# ac_fn_c_check_func LINENO FUNC VAR
1893# ----------------------------------
1894# Tests whether FUNC exists, setting the cache variable VAR accordingly
1895ac_fn_c_check_func ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899$as_echo_n "checking for $2... " >&6; }
1900if eval \${$3+:} false; then :
1901  $as_echo_n "(cached) " >&6
1902else
1903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1906   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1907#define $2 innocuous_$2
1908
1909/* System header to define __stub macros and hopefully few prototypes,
1910    which can conflict with char $2 (); below.
1911    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1912    <limits.h> exists even on freestanding compilers.  */
1913
1914#ifdef __STDC__
1915# include <limits.h>
1916#else
1917# include <assert.h>
1918#endif
1919
1920#undef $2
1921
1922/* Override any GCC internal prototype to avoid an error.
1923   Use char because int might match the return type of a GCC
1924   builtin and then its argument prototype would still apply.  */
1925#ifdef __cplusplus
1926extern "C"
1927#endif
1928char $2 ();
1929/* The GNU C library defines this for functions which it implements
1930    to always fail with ENOSYS.  Some functions are actually named
1931    something starting with __ and the normal name is an alias.  */
1932#if defined __stub_$2 || defined __stub___$2
1933choke me
1934#endif
1935
1936int
1937main ()
1938{
1939return $2 ();
1940  ;
1941  return 0;
1942}
1943_ACEOF
1944if ac_fn_c_try_link "$LINENO"; then :
1945  eval "$3=yes"
1946else
1947  eval "$3=no"
1948fi
1949rm -f core conftest.err conftest.$ac_objext \
1950    conftest$ac_exeext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_c_check_func
1958
1959# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1960# -------------------------------------------------------
1961# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1962# the include files in INCLUDES and setting the cache variable VAR
1963# accordingly.
1964ac_fn_c_check_header_mongrel ()
1965{
1966  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967  if eval \${$3+:} false; then :
1968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if eval \${$3+:} false; then :
1971  $as_echo_n "(cached) " >&6
1972fi
1973eval ac_res=\$$3
1974	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976else
1977  # Is the header compilable?
1978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1979$as_echo_n "checking $2 usability... " >&6; }
1980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h.  */
1982$4
1983#include <$2>
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986  ac_header_compiler=yes
1987else
1988  ac_header_compiler=no
1989fi
1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1992$as_echo "$ac_header_compiler" >&6; }
1993
1994# Is the header present?
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1996$as_echo_n "checking $2 presence... " >&6; }
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999#include <$2>
2000_ACEOF
2001if ac_fn_c_try_cpp "$LINENO"; then :
2002  ac_header_preproc=yes
2003else
2004  ac_header_preproc=no
2005fi
2006rm -f conftest.err conftest.i conftest.$ac_ext
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2008$as_echo "$ac_header_preproc" >&6; }
2009
2010# So?  What about this header?
2011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2012  yes:no: )
2013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2014$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2016$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017    ;;
2018  no:yes:* )
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2020$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2022$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2024$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2026$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029( $as_echo "## ---------------------------------------------------------------------------------------------- ##
2030## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu ##
2031## ---------------------------------------------------------------------------------------------- ##"
2032     ) | sed "s/^/$as_me: WARNING:     /" >&2
2033    ;;
2034esac
2035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036$as_echo_n "checking for $2... " >&6; }
2037if eval \${$3+:} false; then :
2038  $as_echo_n "(cached) " >&6
2039else
2040  eval "$3=\$ac_header_compiler"
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045fi
2046  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048} # ac_fn_c_check_header_mongrel
2049cat >config.log <<_ACEOF
2050This file contains any messages produced by compilers while
2051running configure, to aid debugging if configure makes a mistake.
2052
2053It was created by xf86-video-amdgpu $as_me 19.1.0, which was
2054generated by GNU Autoconf 2.69.  Invocation command line was
2055
2056  $ $0 $@
2057
2058_ACEOF
2059exec 5>>config.log
2060{
2061cat <<_ASUNAME
2062## --------- ##
2063## Platform. ##
2064## --------- ##
2065
2066hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2067uname -m = `(uname -m) 2>/dev/null || echo unknown`
2068uname -r = `(uname -r) 2>/dev/null || echo unknown`
2069uname -s = `(uname -s) 2>/dev/null || echo unknown`
2070uname -v = `(uname -v) 2>/dev/null || echo unknown`
2071
2072/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2073/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2074
2075/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2076/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2077/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2078/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2079/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2080/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2081/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2082
2083_ASUNAME
2084
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090    $as_echo "PATH: $as_dir"
2091  done
2092IFS=$as_save_IFS
2093
2094} >&5
2095
2096cat >&5 <<_ACEOF
2097
2098
2099## ----------- ##
2100## Core tests. ##
2101## ----------- ##
2102
2103_ACEOF
2104
2105
2106# Keep a trace of the command line.
2107# Strip out --no-create and --no-recursion so they do not pile up.
2108# Strip out --silent because we don't want to record it for future runs.
2109# Also quote any args containing shell meta-characters.
2110# Make two passes to allow for proper duplicate-argument suppression.
2111ac_configure_args=
2112ac_configure_args0=
2113ac_configure_args1=
2114ac_must_keep_next=false
2115for ac_pass in 1 2
2116do
2117  for ac_arg
2118  do
2119    case $ac_arg in
2120    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2121    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2122    | -silent | --silent | --silen | --sile | --sil)
2123      continue ;;
2124    *\'*)
2125      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2126    esac
2127    case $ac_pass in
2128    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2129    2)
2130      as_fn_append ac_configure_args1 " '$ac_arg'"
2131      if test $ac_must_keep_next = true; then
2132	ac_must_keep_next=false # Got value, back to normal.
2133      else
2134	case $ac_arg in
2135	  *=* | --config-cache | -C | -disable-* | --disable-* \
2136	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2137	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2138	  | -with-* | --with-* | -without-* | --without-* | --x)
2139	    case "$ac_configure_args0 " in
2140	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2141	    esac
2142	    ;;
2143	  -* ) ac_must_keep_next=true ;;
2144	esac
2145      fi
2146      as_fn_append ac_configure_args " '$ac_arg'"
2147      ;;
2148    esac
2149  done
2150done
2151{ ac_configure_args0=; unset ac_configure_args0;}
2152{ ac_configure_args1=; unset ac_configure_args1;}
2153
2154# When interrupted or exit'd, cleanup temporary files, and complete
2155# config.log.  We remove comments because anyway the quotes in there
2156# would cause problems or look ugly.
2157# WARNING: Use '\'' to represent an apostrophe within the trap.
2158# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2159trap 'exit_status=$?
2160  # Save into config.log some information that might help in debugging.
2161  {
2162    echo
2163
2164    $as_echo "## ---------------- ##
2165## Cache variables. ##
2166## ---------------- ##"
2167    echo
2168    # The following way of writing the cache mishandles newlines in values,
2169(
2170  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2171    eval ac_val=\$$ac_var
2172    case $ac_val in #(
2173    *${as_nl}*)
2174      case $ac_var in #(
2175      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2176$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2177      esac
2178      case $ac_var in #(
2179      _ | IFS | as_nl) ;; #(
2180      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2181      *) { eval $ac_var=; unset $ac_var;} ;;
2182      esac ;;
2183    esac
2184  done
2185  (set) 2>&1 |
2186    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2187    *${as_nl}ac_space=\ *)
2188      sed -n \
2189	"s/'\''/'\''\\\\'\'''\''/g;
2190	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2191      ;; #(
2192    *)
2193      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2194      ;;
2195    esac |
2196    sort
2197)
2198    echo
2199
2200    $as_echo "## ----------------- ##
2201## Output variables. ##
2202## ----------------- ##"
2203    echo
2204    for ac_var in $ac_subst_vars
2205    do
2206      eval ac_val=\$$ac_var
2207      case $ac_val in
2208      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209      esac
2210      $as_echo "$ac_var='\''$ac_val'\''"
2211    done | sort
2212    echo
2213
2214    if test -n "$ac_subst_files"; then
2215      $as_echo "## ------------------- ##
2216## File substitutions. ##
2217## ------------------- ##"
2218      echo
2219      for ac_var in $ac_subst_files
2220      do
2221	eval ac_val=\$$ac_var
2222	case $ac_val in
2223	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224	esac
2225	$as_echo "$ac_var='\''$ac_val'\''"
2226      done | sort
2227      echo
2228    fi
2229
2230    if test -s confdefs.h; then
2231      $as_echo "## ----------- ##
2232## confdefs.h. ##
2233## ----------- ##"
2234      echo
2235      cat confdefs.h
2236      echo
2237    fi
2238    test "$ac_signal" != 0 &&
2239      $as_echo "$as_me: caught signal $ac_signal"
2240    $as_echo "$as_me: exit $exit_status"
2241  } >&5
2242  rm -f core *.core core.conftest.* &&
2243    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2244    exit $exit_status
2245' 0
2246for ac_signal in 1 2 13 15; do
2247  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2248done
2249ac_signal=0
2250
2251# confdefs.h avoids OS command line length limits that DEFS can exceed.
2252rm -f -r conftest* confdefs.h
2253
2254$as_echo "/* confdefs.h */" > confdefs.h
2255
2256# Predefined preprocessor variables.
2257
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_NAME "$PACKAGE_NAME"
2260_ACEOF
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_VERSION "$PACKAGE_VERSION"
2268_ACEOF
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_STRING "$PACKAGE_STRING"
2272_ACEOF
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_URL "$PACKAGE_URL"
2280_ACEOF
2281
2282
2283# Let the site file select an alternate cache file if it wants to.
2284# Prefer an explicitly selected file to automatically selected ones.
2285ac_site_file1=NONE
2286ac_site_file2=NONE
2287if test -n "$CONFIG_SITE"; then
2288  # We do not want a PATH search for config.site.
2289  case $CONFIG_SITE in #((
2290    -*)  ac_site_file1=./$CONFIG_SITE;;
2291    */*) ac_site_file1=$CONFIG_SITE;;
2292    *)   ac_site_file1=./$CONFIG_SITE;;
2293  esac
2294elif test "x$prefix" != xNONE; then
2295  ac_site_file1=$prefix/share/config.site
2296  ac_site_file2=$prefix/etc/config.site
2297else
2298  ac_site_file1=$ac_default_prefix/share/config.site
2299  ac_site_file2=$ac_default_prefix/etc/config.site
2300fi
2301for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2302do
2303  test "x$ac_site_file" = xNONE && continue
2304  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2305    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2306$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2307    sed 's/^/| /' "$ac_site_file" >&5
2308    . "$ac_site_file" \
2309      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311as_fn_error $? "failed to load site script $ac_site_file
2312See \`config.log' for more details" "$LINENO" 5; }
2313  fi
2314done
2315
2316if test -r "$cache_file"; then
2317  # Some versions of bash will fail to source /dev/null (special files
2318  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2319  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2320    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2321$as_echo "$as_me: loading cache $cache_file" >&6;}
2322    case $cache_file in
2323      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2324      *)                      . "./$cache_file";;
2325    esac
2326  fi
2327else
2328  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2329$as_echo "$as_me: creating cache $cache_file" >&6;}
2330  >$cache_file
2331fi
2332
2333# Check that the precious variables saved in the cache have kept the same
2334# value.
2335ac_cache_corrupted=false
2336for ac_var in $ac_precious_vars; do
2337  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2338  eval ac_new_set=\$ac_env_${ac_var}_set
2339  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2340  eval ac_new_val=\$ac_env_${ac_var}_value
2341  case $ac_old_set,$ac_new_set in
2342    set,)
2343      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2344$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2345      ac_cache_corrupted=: ;;
2346    ,set)
2347      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2348$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2349      ac_cache_corrupted=: ;;
2350    ,);;
2351    *)
2352      if test "x$ac_old_val" != "x$ac_new_val"; then
2353	# differences in whitespace do not lead to failure.
2354	ac_old_val_w=`echo x $ac_old_val`
2355	ac_new_val_w=`echo x $ac_new_val`
2356	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2357	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2358$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2359	  ac_cache_corrupted=:
2360	else
2361	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2362$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2363	  eval $ac_var=\$ac_old_val
2364	fi
2365	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2366$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2367	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2368$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2369      fi;;
2370  esac
2371  # Pass precious variables to config.status.
2372  if test "$ac_new_set" = set; then
2373    case $ac_new_val in
2374    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2375    *) ac_arg=$ac_var=$ac_new_val ;;
2376    esac
2377    case " $ac_configure_args " in
2378      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2379      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2380    esac
2381  fi
2382done
2383if $ac_cache_corrupted; then
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2387$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2388  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2389fi
2390## -------------------- ##
2391## Main body of script. ##
2392## -------------------- ##
2393
2394ac_ext=c
2395ac_cpp='$CPP $CPPFLAGS'
2396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399
2400
2401
2402
2403ac_config_headers="$ac_config_headers config.h"
2404
2405
2406
2407ac_aux_dir=
2408for ac_dir in . "$srcdir"/.; do
2409  if test -f "$ac_dir/install-sh"; then
2410    ac_aux_dir=$ac_dir
2411    ac_install_sh="$ac_aux_dir/install-sh -c"
2412    break
2413  elif test -f "$ac_dir/install.sh"; then
2414    ac_aux_dir=$ac_dir
2415    ac_install_sh="$ac_aux_dir/install.sh -c"
2416    break
2417  elif test -f "$ac_dir/shtool"; then
2418    ac_aux_dir=$ac_dir
2419    ac_install_sh="$ac_aux_dir/shtool install -c"
2420    break
2421  fi
2422done
2423if test -z "$ac_aux_dir"; then
2424  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2425fi
2426
2427# These three variables are undocumented and unsupported,
2428# and are intended to be withdrawn in a future Autoconf release.
2429# They can cause serious problems if a builder's source tree is in a directory
2430# whose full name contains unusual characters.
2431ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2432ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2433ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2434
2435
2436
2437# Initialize Automake
2438am__api_version='1.16'
2439
2440# Find a good install program.  We prefer a C program (faster),
2441# so one script is as good as another.  But avoid the broken or
2442# incompatible versions:
2443# SysV /etc/install, /usr/sbin/install
2444# SunOS /usr/etc/install
2445# IRIX /sbin/install
2446# AIX /bin/install
2447# AmigaOS /C/install, which installs bootblocks on floppy discs
2448# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2451# OS/2's system install, which has a completely different semantic
2452# ./install, which can be erroneously created by make from ./install.sh.
2453# Reject install programs that cannot install multiple files.
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455$as_echo_n "checking for a BSD-compatible install... " >&6; }
2456if test -z "$INSTALL"; then
2457if ${ac_cv_path_install+:} false; then :
2458  $as_echo_n "(cached) " >&6
2459else
2460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    # Account for people who put trailing slashes in PATH elements.
2466case $as_dir/ in #((
2467  ./ | .// | /[cC]/* | \
2468  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2469  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2470  /usr/ucb/* ) ;;
2471  *)
2472    # OSF1 and SCO ODT 3.0 have their own names for install.
2473    # Don't use installbsd from OSF since it installs stuff as root
2474    # by default.
2475    for ac_prog in ginstall scoinst install; do
2476      for ac_exec_ext in '' $ac_executable_extensions; do
2477	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2478	  if test $ac_prog = install &&
2479	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2480	    # AIX install.  It has an incompatible calling convention.
2481	    :
2482	  elif test $ac_prog = install &&
2483	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484	    # program-specific install script used by HP pwplus--don't use.
2485	    :
2486	  else
2487	    rm -rf conftest.one conftest.two conftest.dir
2488	    echo one > conftest.one
2489	    echo two > conftest.two
2490	    mkdir conftest.dir
2491	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492	      test -s conftest.one && test -s conftest.two &&
2493	      test -s conftest.dir/conftest.one &&
2494	      test -s conftest.dir/conftest.two
2495	    then
2496	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497	      break 3
2498	    fi
2499	  fi
2500	fi
2501      done
2502    done
2503    ;;
2504esac
2505
2506  done
2507IFS=$as_save_IFS
2508
2509rm -rf conftest.one conftest.two conftest.dir
2510
2511fi
2512  if test "${ac_cv_path_install+set}" = set; then
2513    INSTALL=$ac_cv_path_install
2514  else
2515    # As a last resort, use the slow shell script.  Don't cache a
2516    # value for INSTALL within a source directory, because that will
2517    # break other packages using the cache if that directory is
2518    # removed, or if the value is a relative name.
2519    INSTALL=$ac_install_sh
2520  fi
2521fi
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523$as_echo "$INSTALL" >&6; }
2524
2525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526# It thinks the first close brace ends the variable substitution.
2527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528
2529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2530
2531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2534$as_echo_n "checking whether build environment is sane... " >&6; }
2535# Reject unsafe characters in $srcdir or the absolute working directory
2536# name.  Accept space and tab only in the latter.
2537am_lf='
2538'
2539case `pwd` in
2540  *[\\\"\#\$\&\'\`$am_lf]*)
2541    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2542esac
2543case $srcdir in
2544  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2545    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2546esac
2547
2548# Do 'set' in a subshell so we don't clobber the current shell's
2549# arguments.  Must try -L first in case configure is actually a
2550# symlink; some systems play weird games with the mod time of symlinks
2551# (eg FreeBSD returns the mod time of the symlink's containing
2552# directory).
2553if (
2554   am_has_slept=no
2555   for am_try in 1 2; do
2556     echo "timestamp, slept: $am_has_slept" > conftest.file
2557     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2558     if test "$*" = "X"; then
2559	# -L didn't work.
2560	set X `ls -t "$srcdir/configure" conftest.file`
2561     fi
2562     if test "$*" != "X $srcdir/configure conftest.file" \
2563	&& test "$*" != "X conftest.file $srcdir/configure"; then
2564
2565	# If neither matched, then we have a broken ls.  This can happen
2566	# if, for instance, CONFIG_SHELL is bash and it inherits a
2567	# broken ls alias from the environment.  This has actually
2568	# happened.  Such a system could not be considered "sane".
2569	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2570  alias in your environment" "$LINENO" 5
2571     fi
2572     if test "$2" = conftest.file || test $am_try -eq 2; then
2573       break
2574     fi
2575     # Just in case.
2576     sleep 1
2577     am_has_slept=yes
2578   done
2579   test "$2" = conftest.file
2580   )
2581then
2582   # Ok.
2583   :
2584else
2585   as_fn_error $? "newly created file is older than distributed files!
2586Check your system clock" "$LINENO" 5
2587fi
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589$as_echo "yes" >&6; }
2590# If we didn't sleep, we still need to ensure time stamps of config.status and
2591# generated files are strictly newer.
2592am_sleep_pid=
2593if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2594  ( sleep 1 ) &
2595  am_sleep_pid=$!
2596fi
2597
2598rm -f conftest.file
2599
2600test "$program_prefix" != NONE &&
2601  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2602# Use a double $ so make ignores it.
2603test "$program_suffix" != NONE &&
2604  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2605# Double any \ or $.
2606# By default was `s,x,x', remove it if useless.
2607ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2608program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2609
2610# Expand $ac_aux_dir to an absolute path.
2611am_aux_dir=`cd "$ac_aux_dir" && pwd`
2612
2613if test x"${MISSING+set}" != xset; then
2614  case $am_aux_dir in
2615  *\ * | *\	*)
2616    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2617  *)
2618    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2619  esac
2620fi
2621# Use eval to expand $SHELL
2622if eval "$MISSING --is-lightweight"; then
2623  am_missing_run="$MISSING "
2624else
2625  am_missing_run=
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2627$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2628fi
2629
2630if test x"${install_sh+set}" != xset; then
2631  case $am_aux_dir in
2632  *\ * | *\	*)
2633    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2634  *)
2635    install_sh="\${SHELL} $am_aux_dir/install-sh"
2636  esac
2637fi
2638
2639# Installed binaries are usually stripped using 'strip' when the user
2640# run "make install-strip".  However 'strip' might not be the right
2641# tool to use in cross-compilation environments, therefore Automake
2642# will honor the 'STRIP' environment variable to overrule this program.
2643if test "$cross_compiling" != no; then
2644  if test -n "$ac_tool_prefix"; then
2645  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2646set dummy ${ac_tool_prefix}strip; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if ${ac_cv_prog_STRIP+:} false; then :
2650  $as_echo_n "(cached) " >&6
2651else
2652  if test -n "$STRIP"; then
2653  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658  IFS=$as_save_IFS
2659  test -z "$as_dir" && as_dir=.
2660    for ac_exec_ext in '' $ac_executable_extensions; do
2661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2662    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664    break 2
2665  fi
2666done
2667  done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672STRIP=$ac_cv_prog_STRIP
2673if test -n "$STRIP"; then
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2675$as_echo "$STRIP" >&6; }
2676else
2677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682fi
2683if test -z "$ac_cv_prog_STRIP"; then
2684  ac_ct_STRIP=$STRIP
2685  # Extract the first word of "strip", so it can be a program name with args.
2686set dummy strip; ac_word=$2
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688$as_echo_n "checking for $ac_word... " >&6; }
2689if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if test -n "$ac_ct_STRIP"; then
2693  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_exec_ext in '' $ac_executable_extensions; do
2701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2702    ac_cv_prog_ac_ct_STRIP="strip"
2703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704    break 2
2705  fi
2706done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2713if test -n "$ac_ct_STRIP"; then
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2715$as_echo "$ac_ct_STRIP" >&6; }
2716else
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718$as_echo "no" >&6; }
2719fi
2720
2721  if test "x$ac_ct_STRIP" = x; then
2722    STRIP=":"
2723  else
2724    case $cross_compiling:$ac_tool_warned in
2725yes:)
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728ac_tool_warned=yes ;;
2729esac
2730    STRIP=$ac_ct_STRIP
2731  fi
2732else
2733  STRIP="$ac_cv_prog_STRIP"
2734fi
2735
2736fi
2737INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2740$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2741if test -z "$MKDIR_P"; then
2742  if ${ac_cv_path_mkdir+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750    for ac_prog in mkdir gmkdir; do
2751	 for ac_exec_ext in '' $ac_executable_extensions; do
2752	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2753	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2754	     'mkdir (GNU coreutils) '* | \
2755	     'mkdir (coreutils) '* | \
2756	     'mkdir (fileutils) '4.1*)
2757	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2758	       break 3;;
2759	   esac
2760	 done
2761       done
2762  done
2763IFS=$as_save_IFS
2764
2765fi
2766
2767  test -d ./--version && rmdir ./--version
2768  if test "${ac_cv_path_mkdir+set}" = set; then
2769    MKDIR_P="$ac_cv_path_mkdir -p"
2770  else
2771    # As a last resort, use the slow shell script.  Don't cache a
2772    # value for MKDIR_P within a source directory, because that will
2773    # break other packages using the cache if that directory is
2774    # removed, or if the value is a relative name.
2775    MKDIR_P="$ac_install_sh -d"
2776  fi
2777fi
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2779$as_echo "$MKDIR_P" >&6; }
2780
2781for ac_prog in gawk mawk nawk awk
2782do
2783  # Extract the first word of "$ac_prog", so it can be a program name with args.
2784set dummy $ac_prog; ac_word=$2
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786$as_echo_n "checking for $ac_word... " >&6; }
2787if ${ac_cv_prog_AWK+:} false; then :
2788  $as_echo_n "(cached) " >&6
2789else
2790  if test -n "$AWK"; then
2791  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2792else
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796  IFS=$as_save_IFS
2797  test -z "$as_dir" && as_dir=.
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2800    ac_cv_prog_AWK="$ac_prog"
2801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805  done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810AWK=$ac_cv_prog_AWK
2811if test -n "$AWK"; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2813$as_echo "$AWK" >&6; }
2814else
2815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816$as_echo "no" >&6; }
2817fi
2818
2819
2820  test -n "$AWK" && break
2821done
2822
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2824$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2825set x ${MAKE-make}
2826ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2827if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2828  $as_echo_n "(cached) " >&6
2829else
2830  cat >conftest.make <<\_ACEOF
2831SHELL = /bin/sh
2832all:
2833	@echo '@@@%%%=$(MAKE)=@@@%%%'
2834_ACEOF
2835# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2836case `${MAKE-make} -f conftest.make 2>/dev/null` in
2837  *@@@%%%=?*=@@@%%%*)
2838    eval ac_cv_prog_make_${ac_make}_set=yes;;
2839  *)
2840    eval ac_cv_prog_make_${ac_make}_set=no;;
2841esac
2842rm -f conftest.make
2843fi
2844if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846$as_echo "yes" >&6; }
2847  SET_MAKE=
2848else
2849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851  SET_MAKE="MAKE=${MAKE-make}"
2852fi
2853
2854rm -rf .tst 2>/dev/null
2855mkdir .tst 2>/dev/null
2856if test -d .tst; then
2857  am__leading_dot=.
2858else
2859  am__leading_dot=_
2860fi
2861rmdir .tst 2>/dev/null
2862
2863# Check whether --enable-silent-rules was given.
2864if test "${enable_silent_rules+set}" = set; then :
2865  enableval=$enable_silent_rules;
2866fi
2867
2868case $enable_silent_rules in # (((
2869  yes) AM_DEFAULT_VERBOSITY=0;;
2870   no) AM_DEFAULT_VERBOSITY=1;;
2871    *) AM_DEFAULT_VERBOSITY=1;;
2872esac
2873am_make=${MAKE-make}
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2875$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2876if ${am_cv_make_support_nested_variables+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if $as_echo 'TRUE=$(BAR$(V))
2880BAR0=false
2881BAR1=true
2882V=1
2883am__doit:
2884	@$(TRUE)
2885.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2886  am_cv_make_support_nested_variables=yes
2887else
2888  am_cv_make_support_nested_variables=no
2889fi
2890fi
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2892$as_echo "$am_cv_make_support_nested_variables" >&6; }
2893if test $am_cv_make_support_nested_variables = yes; then
2894    AM_V='$(V)'
2895  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2896else
2897  AM_V=$AM_DEFAULT_VERBOSITY
2898  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2899fi
2900AM_BACKSLASH='\'
2901
2902if test "`cd $srcdir && pwd`" != "`pwd`"; then
2903  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2904  # is not polluted with repeated "-I."
2905  am__isrc=' -I$(srcdir)'
2906  # test to see if srcdir already configured
2907  if test -f $srcdir/config.status; then
2908    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2909  fi
2910fi
2911
2912# test whether we have cygpath
2913if test -z "$CYGPATH_W"; then
2914  if (cygpath --version) >/dev/null 2>/dev/null; then
2915    CYGPATH_W='cygpath -w'
2916  else
2917    CYGPATH_W=echo
2918  fi
2919fi
2920
2921
2922# Define the identity of the package.
2923 PACKAGE='xf86-video-amdgpu'
2924 VERSION='19.1.0'
2925
2926
2927cat >>confdefs.h <<_ACEOF
2928#define PACKAGE "$PACKAGE"
2929_ACEOF
2930
2931
2932cat >>confdefs.h <<_ACEOF
2933#define VERSION "$VERSION"
2934_ACEOF
2935
2936# Some tools Automake needs.
2937
2938ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2939
2940
2941AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2942
2943
2944AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2945
2946
2947AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2948
2949
2950MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2951
2952# For better backward compatibility.  To be removed once Automake 1.9.x
2953# dies out for good.  For more background, see:
2954# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2955# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2956mkdir_p='$(MKDIR_P)'
2957
2958# We need awk for the "check" target (and possibly the TAP driver).  The
2959# system "awk" is bad on some platforms.
2960# Always define AMTAR for backward compatibility.  Yes, it's still used
2961# in the wild :-(  We should find a proper way to deprecate it ...
2962AMTAR='$${TAR-tar}'
2963
2964
2965# We'll loop over all known methods to create a tar archive until one works.
2966_am_tools='gnutar  pax cpio none'
2967
2968am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2969
2970
2971
2972
2973
2974
2975# POSIX will say in a future version that running "rm -f" with no argument
2976# is OK; and we want to be able to make that assumption in our Makefile
2977# recipes.  So use an aggressive probe to check that the usage we want is
2978# actually supported "in the wild" to an acceptable degree.
2979# See automake bug#10828.
2980# To make any issue more visible, cause the running configure to be aborted
2981# by default if the 'rm' program in use doesn't match our expectations; the
2982# user can still override this though.
2983if rm -f && rm -fr && rm -rf; then : OK; else
2984  cat >&2 <<'END'
2985Oops!
2986
2987Your 'rm' program seems unable to run without file operands specified
2988on the command line, even when the '-f' option is present.  This is contrary
2989to the behaviour of most rm programs out there, and not conforming with
2990the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2991
2992Please tell bug-automake@gnu.org about your system, including the value
2993of your $PATH and any error possibly output before this message.  This
2994can help us improve future automake versions.
2995
2996END
2997  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2998    echo 'Configuration will proceed anyway, since you have set the' >&2
2999    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3000    echo >&2
3001  else
3002    cat >&2 <<'END'
3003Aborting the configuration process, to ensure you take notice of the issue.
3004
3005You can download and install GNU coreutils to get an 'rm' implementation
3006that behaves properly: <https://www.gnu.org/software/coreutils/>.
3007
3008If you want to complete the configuration process using your problematic
3009'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3010to "yes", and re-run configure.
3011
3012END
3013    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3014  fi
3015fi
3016
3017DEPDIR="${am__leading_dot}deps"
3018
3019ac_config_commands="$ac_config_commands depfiles"
3020
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3022$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3023cat > confinc.mk << 'END'
3024am__doit:
3025	@echo this is the am__doit target >confinc.out
3026.PHONY: am__doit
3027END
3028am__include="#"
3029am__quote=
3030# BSD make does it like this.
3031echo '.include "confinc.mk" # ignored' > confmf.BSD
3032# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3033echo 'include confinc.mk # ignored' > confmf.GNU
3034_am_result=no
3035for s in GNU BSD; do
3036  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3037   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }
3041  case $?:`cat confinc.out 2>/dev/null` in #(
3042  '0:this is the am__doit target') :
3043    case $s in #(
3044  BSD) :
3045    am__include='.include' am__quote='"' ;; #(
3046  *) :
3047    am__include='include' am__quote='' ;;
3048esac ;; #(
3049  *) :
3050     ;;
3051esac
3052  if test "$am__include" != "#"; then
3053    _am_result="yes ($s style)"
3054    break
3055  fi
3056done
3057rm -f confinc.* confmf.*
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3059$as_echo "${_am_result}" >&6; }
3060
3061# Check whether --enable-dependency-tracking was given.
3062if test "${enable_dependency_tracking+set}" = set; then :
3063  enableval=$enable_dependency_tracking;
3064fi
3065
3066if test "x$enable_dependency_tracking" != xno; then
3067  am_depcomp="$ac_aux_dir/depcomp"
3068  AMDEPBACKSLASH='\'
3069  am__nodep='_no'
3070fi
3071 if test "x$enable_dependency_tracking" != xno; then
3072  AMDEP_TRUE=
3073  AMDEP_FALSE='#'
3074else
3075  AMDEP_TRUE='#'
3076  AMDEP_FALSE=
3077fi
3078
3079
3080ac_ext=c
3081ac_cpp='$CPP $CPPFLAGS'
3082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085if test -n "$ac_tool_prefix"; then
3086  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3087set dummy ${ac_tool_prefix}gcc; ac_word=$2
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089$as_echo_n "checking for $ac_word... " >&6; }
3090if ${ac_cv_prog_CC+:} false; then :
3091  $as_echo_n "(cached) " >&6
3092else
3093  if test -n "$CC"; then
3094  ac_cv_prog_CC="$CC" # Let the user override the test.
3095else
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099  IFS=$as_save_IFS
3100  test -z "$as_dir" && as_dir=.
3101    for ac_exec_ext in '' $ac_executable_extensions; do
3102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105    break 2
3106  fi
3107done
3108  done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
3115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116$as_echo "$CC" >&6; }
3117else
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123fi
3124if test -z "$ac_cv_prog_CC"; then
3125  ac_ct_CC=$CC
3126  # Extract the first word of "gcc", so it can be a program name with args.
3127set dummy gcc; ac_word=$2
3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129$as_echo_n "checking for $ac_word... " >&6; }
3130if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131  $as_echo_n "(cached) " >&6
3132else
3133  if test -n "$ac_ct_CC"; then
3134  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139  IFS=$as_save_IFS
3140  test -z "$as_dir" && as_dir=.
3141    for ac_exec_ext in '' $ac_executable_extensions; do
3142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143    ac_cv_prog_ac_ct_CC="gcc"
3144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145    break 2
3146  fi
3147done
3148  done
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154if test -n "$ac_ct_CC"; then
3155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156$as_echo "$ac_ct_CC" >&6; }
3157else
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160fi
3161
3162  if test "x$ac_ct_CC" = x; then
3163    CC=""
3164  else
3165    case $cross_compiling:$ac_tool_warned in
3166yes:)
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169ac_tool_warned=yes ;;
3170esac
3171    CC=$ac_ct_CC
3172  fi
3173else
3174  CC="$ac_cv_prog_CC"
3175fi
3176
3177if test -z "$CC"; then
3178          if test -n "$ac_tool_prefix"; then
3179    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3180set dummy ${ac_tool_prefix}cc; ac_word=$2
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182$as_echo_n "checking for $ac_word... " >&6; }
3183if ${ac_cv_prog_CC+:} false; then :
3184  $as_echo_n "(cached) " >&6
3185else
3186  if test -n "$CC"; then
3187  ac_cv_prog_CC="$CC" # Let the user override the test.
3188else
3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190for as_dir in $PATH
3191do
3192  IFS=$as_save_IFS
3193  test -z "$as_dir" && as_dir=.
3194    for ac_exec_ext in '' $ac_executable_extensions; do
3195  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196    ac_cv_prog_CC="${ac_tool_prefix}cc"
3197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198    break 2
3199  fi
3200done
3201  done
3202IFS=$as_save_IFS
3203
3204fi
3205fi
3206CC=$ac_cv_prog_CC
3207if test -n "$CC"; then
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209$as_echo "$CC" >&6; }
3210else
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212$as_echo "no" >&6; }
3213fi
3214
3215
3216  fi
3217fi
3218if test -z "$CC"; then
3219  # Extract the first word of "cc", so it can be a program name with args.
3220set dummy cc; ac_word=$2
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if ${ac_cv_prog_CC+:} false; then :
3224  $as_echo_n "(cached) " >&6
3225else
3226  if test -n "$CC"; then
3227  ac_cv_prog_CC="$CC" # Let the user override the test.
3228else
3229  ac_prog_rejected=no
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233  IFS=$as_save_IFS
3234  test -z "$as_dir" && as_dir=.
3235    for ac_exec_ext in '' $ac_executable_extensions; do
3236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3238       ac_prog_rejected=yes
3239       continue
3240     fi
3241    ac_cv_prog_CC="cc"
3242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243    break 2
3244  fi
3245done
3246  done
3247IFS=$as_save_IFS
3248
3249if test $ac_prog_rejected = yes; then
3250  # We found a bogon in the path, so make sure we never use it.
3251  set dummy $ac_cv_prog_CC
3252  shift
3253  if test $# != 0; then
3254    # We chose a different compiler from the bogus one.
3255    # However, it has the same basename, so the bogon will be chosen
3256    # first if we set CC to just the basename; use the full file name.
3257    shift
3258    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3259  fi
3260fi
3261fi
3262fi
3263CC=$ac_cv_prog_CC
3264if test -n "$CC"; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266$as_echo "$CC" >&6; }
3267else
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273fi
3274if test -z "$CC"; then
3275  if test -n "$ac_tool_prefix"; then
3276  for ac_prog in cl.exe
3277  do
3278    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281$as_echo_n "checking for $ac_word... " >&6; }
3282if ${ac_cv_prog_CC+:} false; then :
3283  $as_echo_n "(cached) " >&6
3284else
3285  if test -n "$CC"; then
3286  ac_cv_prog_CC="$CC" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291  IFS=$as_save_IFS
3292  test -z "$as_dir" && as_dir=.
3293    for ac_exec_ext in '' $ac_executable_extensions; do
3294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297    break 2
3298  fi
3299done
3300  done
3301IFS=$as_save_IFS
3302
3303fi
3304fi
3305CC=$ac_cv_prog_CC
3306if test -n "$CC"; then
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308$as_echo "$CC" >&6; }
3309else
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312fi
3313
3314
3315    test -n "$CC" && break
3316  done
3317fi
3318if test -z "$CC"; then
3319  ac_ct_CC=$CC
3320  for ac_prog in cl.exe
3321do
3322  # Extract the first word of "$ac_prog", so it can be a program name with args.
3323set dummy $ac_prog; ac_word=$2
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325$as_echo_n "checking for $ac_word... " >&6; }
3326if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327  $as_echo_n "(cached) " >&6
3328else
3329  if test -n "$ac_ct_CC"; then
3330  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335  IFS=$as_save_IFS
3336  test -z "$as_dir" && as_dir=.
3337    for ac_exec_ext in '' $ac_executable_extensions; do
3338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339    ac_cv_prog_ac_ct_CC="$ac_prog"
3340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341    break 2
3342  fi
3343done
3344  done
3345IFS=$as_save_IFS
3346
3347fi
3348fi
3349ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350if test -n "$ac_ct_CC"; then
3351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352$as_echo "$ac_ct_CC" >&6; }
3353else
3354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356fi
3357
3358
3359  test -n "$ac_ct_CC" && break
3360done
3361
3362  if test "x$ac_ct_CC" = x; then
3363    CC=""
3364  else
3365    case $cross_compiling:$ac_tool_warned in
3366yes:)
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369ac_tool_warned=yes ;;
3370esac
3371    CC=$ac_ct_CC
3372  fi
3373fi
3374
3375fi
3376
3377
3378test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380as_fn_error $? "no acceptable C compiler found in \$PATH
3381See \`config.log' for more details" "$LINENO" 5; }
3382
3383# Provide some information about the compiler.
3384$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3385set X $ac_compile
3386ac_compiler=$2
3387for ac_option in --version -v -V -qversion; do
3388  { { ac_try="$ac_compiler $ac_option >&5"
3389case "(($ac_try" in
3390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391  *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3396  ac_status=$?
3397  if test -s conftest.err; then
3398    sed '10a\
3399... rest of stderr output deleted ...
3400         10q' conftest.err >conftest.er1
3401    cat conftest.er1 >&5
3402  fi
3403  rm -f conftest.er1 conftest.err
3404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405  test $ac_status = 0; }
3406done
3407
3408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409/* end confdefs.h.  */
3410
3411int
3412main ()
3413{
3414
3415  ;
3416  return 0;
3417}
3418_ACEOF
3419ac_clean_files_save=$ac_clean_files
3420ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3421# Try to create an executable without -o first, disregard a.out.
3422# It will help us diagnose broken compilers, and finding out an intuition
3423# of exeext.
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3425$as_echo_n "checking whether the C compiler works... " >&6; }
3426ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3427
3428# The possible output files:
3429ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3430
3431ac_rmfiles=
3432for ac_file in $ac_files
3433do
3434  case $ac_file in
3435    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3436    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3437  esac
3438done
3439rm -f $ac_rmfiles
3440
3441if { { ac_try="$ac_link_default"
3442case "(($ac_try" in
3443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444  *) ac_try_echo=$ac_try;;
3445esac
3446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447$as_echo "$ac_try_echo"; } >&5
3448  (eval "$ac_link_default") 2>&5
3449  ac_status=$?
3450  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451  test $ac_status = 0; }; then :
3452  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3453# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3454# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3455# so that the user can short-circuit this test for compilers unknown to
3456# Autoconf.
3457for ac_file in $ac_files ''
3458do
3459  test -f "$ac_file" || continue
3460  case $ac_file in
3461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3462	;;
3463    [ab].out )
3464	# We found the default executable, but exeext='' is most
3465	# certainly right.
3466	break;;
3467    *.* )
3468	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3469	then :; else
3470	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471	fi
3472	# We set ac_cv_exeext here because the later test for it is not
3473	# safe: cross compilers may not add the suffix if given an `-o'
3474	# argument, so we may need to know it at that point already.
3475	# Even if this section looks crufty: it has the advantage of
3476	# actually working.
3477	break;;
3478    * )
3479	break;;
3480  esac
3481done
3482test "$ac_cv_exeext" = no && ac_cv_exeext=
3483
3484else
3485  ac_file=''
3486fi
3487if test -z "$ac_file"; then :
3488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489$as_echo "no" >&6; }
3490$as_echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495as_fn_error 77 "C compiler cannot create executables
3496See \`config.log' for more details" "$LINENO" 5; }
3497else
3498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3499$as_echo "yes" >&6; }
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3502$as_echo_n "checking for C compiler default output file name... " >&6; }
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3504$as_echo "$ac_file" >&6; }
3505ac_exeext=$ac_cv_exeext
3506
3507rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3508ac_clean_files=$ac_clean_files_save
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3510$as_echo_n "checking for suffix of executables... " >&6; }
3511if { { ac_try="$ac_link"
3512case "(($ac_try" in
3513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514  *) ac_try_echo=$ac_try;;
3515esac
3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517$as_echo "$ac_try_echo"; } >&5
3518  (eval "$ac_link") 2>&5
3519  ac_status=$?
3520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521  test $ac_status = 0; }; then :
3522  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3523# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3524# work properly (i.e., refer to `conftest.exe'), while it won't with
3525# `rm'.
3526for ac_file in conftest.exe conftest conftest.*; do
3527  test -f "$ac_file" || continue
3528  case $ac_file in
3529    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531	  break;;
3532    * ) break;;
3533  esac
3534done
3535else
3536  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3539See \`config.log' for more details" "$LINENO" 5; }
3540fi
3541rm -f conftest conftest$ac_cv_exeext
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3543$as_echo "$ac_cv_exeext" >&6; }
3544
3545rm -f conftest.$ac_ext
3546EXEEXT=$ac_cv_exeext
3547ac_exeext=$EXEEXT
3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549/* end confdefs.h.  */
3550#include <stdio.h>
3551int
3552main ()
3553{
3554FILE *f = fopen ("conftest.out", "w");
3555 return ferror (f) || fclose (f) != 0;
3556
3557  ;
3558  return 0;
3559}
3560_ACEOF
3561ac_clean_files="$ac_clean_files conftest.out"
3562# Check that the compiler produces executables we can run.  If not, either
3563# the compiler is broken, or we cross compile.
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3565$as_echo_n "checking whether we are cross compiling... " >&6; }
3566if test "$cross_compiling" != yes; then
3567  { { ac_try="$ac_link"
3568case "(($ac_try" in
3569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570  *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
3574  (eval "$ac_link") 2>&5
3575  ac_status=$?
3576  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577  test $ac_status = 0; }
3578  if { ac_try='./conftest$ac_cv_exeext'
3579  { { case "(($ac_try" in
3580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581  *) ac_try_echo=$ac_try;;
3582esac
3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584$as_echo "$ac_try_echo"; } >&5
3585  (eval "$ac_try") 2>&5
3586  ac_status=$?
3587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588  test $ac_status = 0; }; }; then
3589    cross_compiling=no
3590  else
3591    if test "$cross_compiling" = maybe; then
3592	cross_compiling=yes
3593    else
3594	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596as_fn_error $? "cannot run C compiled programs.
3597If you meant to cross compile, use \`--host'.
3598See \`config.log' for more details" "$LINENO" 5; }
3599    fi
3600  fi
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3603$as_echo "$cross_compiling" >&6; }
3604
3605rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3606ac_clean_files=$ac_clean_files_save
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3608$as_echo_n "checking for suffix of object files... " >&6; }
3609if ${ac_cv_objext+:} false; then :
3610  $as_echo_n "(cached) " >&6
3611else
3612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623rm -f conftest.o conftest.obj
3624if { { ac_try="$ac_compile"
3625case "(($ac_try" in
3626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627  *) ac_try_echo=$ac_try;;
3628esac
3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
3631  (eval "$ac_compile") 2>&5
3632  ac_status=$?
3633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634  test $ac_status = 0; }; then :
3635  for ac_file in conftest.o conftest.obj conftest.*; do
3636  test -f "$ac_file" || continue;
3637  case $ac_file in
3638    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3639    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3640       break;;
3641  esac
3642done
3643else
3644  $as_echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649as_fn_error $? "cannot compute suffix of object files: cannot compile
3650See \`config.log' for more details" "$LINENO" 5; }
3651fi
3652rm -f conftest.$ac_cv_objext conftest.$ac_ext
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3655$as_echo "$ac_cv_objext" >&6; }
3656OBJEXT=$ac_cv_objext
3657ac_objext=$OBJEXT
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3659$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3660if ${ac_cv_c_compiler_gnu+:} false; then :
3661  $as_echo_n "(cached) " >&6
3662else
3663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665
3666int
3667main ()
3668{
3669#ifndef __GNUC__
3670       choke me
3671#endif
3672
3673  ;
3674  return 0;
3675}
3676_ACEOF
3677if ac_fn_c_try_compile "$LINENO"; then :
3678  ac_compiler_gnu=yes
3679else
3680  ac_compiler_gnu=no
3681fi
3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3687$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688if test $ac_compiler_gnu = yes; then
3689  GCC=yes
3690else
3691  GCC=
3692fi
3693ac_test_CFLAGS=${CFLAGS+set}
3694ac_save_CFLAGS=$CFLAGS
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3696$as_echo_n "checking whether $CC accepts -g... " >&6; }
3697if ${ac_cv_prog_cc_g+:} false; then :
3698  $as_echo_n "(cached) " >&6
3699else
3700  ac_save_c_werror_flag=$ac_c_werror_flag
3701   ac_c_werror_flag=yes
3702   ac_cv_prog_cc_g=no
3703   CFLAGS="-g"
3704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706
3707int
3708main ()
3709{
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715if ac_fn_c_try_compile "$LINENO"; then :
3716  ac_cv_prog_cc_g=yes
3717else
3718  CFLAGS=""
3719      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721
3722int
3723main ()
3724{
3725
3726  ;
3727  return 0;
3728}
3729_ACEOF
3730if ac_fn_c_try_compile "$LINENO"; then :
3731
3732else
3733  ac_c_werror_flag=$ac_save_c_werror_flag
3734	 CFLAGS="-g"
3735	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737
3738int
3739main ()
3740{
3741
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746if ac_fn_c_try_compile "$LINENO"; then :
3747  ac_cv_prog_cc_g=yes
3748fi
3749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750fi
3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752fi
3753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754   ac_c_werror_flag=$ac_save_c_werror_flag
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3757$as_echo "$ac_cv_prog_cc_g" >&6; }
3758if test "$ac_test_CFLAGS" = set; then
3759  CFLAGS=$ac_save_CFLAGS
3760elif test $ac_cv_prog_cc_g = yes; then
3761  if test "$GCC" = yes; then
3762    CFLAGS="-g -O2"
3763  else
3764    CFLAGS="-g"
3765  fi
3766else
3767  if test "$GCC" = yes; then
3768    CFLAGS="-O2"
3769  else
3770    CFLAGS=
3771  fi
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3774$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3775if ${ac_cv_prog_cc_c89+:} false; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778  ac_cv_prog_cc_c89=no
3779ac_save_CC=$CC
3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782#include <stdarg.h>
3783#include <stdio.h>
3784struct stat;
3785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3786struct buf { int x; };
3787FILE * (*rcsopen) (struct buf *, struct stat *, int);
3788static char *e (p, i)
3789     char **p;
3790     int i;
3791{
3792  return p[i];
3793}
3794static char *f (char * (*g) (char **, int), char **p, ...)
3795{
3796  char *s;
3797  va_list v;
3798  va_start (v,p);
3799  s = g (p, va_arg (v,int));
3800  va_end (v);
3801  return s;
3802}
3803
3804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3805   function prototypes and stuff, but not '\xHH' hex character constants.
3806   These don't provoke an error unfortunately, instead are silently treated
3807   as 'x'.  The following induces an error, until -std is added to get
3808   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3809   array size at least.  It's necessary to write '\x00'==0 to get something
3810   that's true only with -std.  */
3811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3812
3813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3814   inside strings and character constants.  */
3815#define FOO(x) 'x'
3816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3817
3818int test (int i, double x);
3819struct s1 {int (*f) (int a);};
3820struct s2 {int (*f) (double a);};
3821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3822int argc;
3823char **argv;
3824int
3825main ()
3826{
3827return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3833	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3834do
3835  CC="$ac_save_CC $ac_arg"
3836  if ac_fn_c_try_compile "$LINENO"; then :
3837  ac_cv_prog_cc_c89=$ac_arg
3838fi
3839rm -f core conftest.err conftest.$ac_objext
3840  test "x$ac_cv_prog_cc_c89" != "xno" && break
3841done
3842rm -f conftest.$ac_ext
3843CC=$ac_save_CC
3844
3845fi
3846# AC_CACHE_VAL
3847case "x$ac_cv_prog_cc_c89" in
3848  x)
3849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3850$as_echo "none needed" >&6; } ;;
3851  xno)
3852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3853$as_echo "unsupported" >&6; } ;;
3854  *)
3855    CC="$CC $ac_cv_prog_cc_c89"
3856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3857$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3858esac
3859if test "x$ac_cv_prog_cc_c89" != xno; then :
3860
3861fi
3862
3863ac_ext=c
3864ac_cpp='$CPP $CPPFLAGS'
3865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869ac_ext=c
3870ac_cpp='$CPP $CPPFLAGS'
3871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3875$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3876if ${am_cv_prog_cc_c_o+:} false; then :
3877  $as_echo_n "(cached) " >&6
3878else
3879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880/* end confdefs.h.  */
3881
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890  # Make sure it works both with $CC and with simple cc.
3891  # Following AC_PROG_CC_C_O, we do the test twice because some
3892  # compilers refuse to overwrite an existing .o file with -o,
3893  # though they will create one.
3894  am_cv_prog_cc_c_o=yes
3895  for am_i in 1 2; do
3896    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3897   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3898   ac_status=$?
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } \
3901         && test -f conftest2.$ac_objext; then
3902      : OK
3903    else
3904      am_cv_prog_cc_c_o=no
3905      break
3906    fi
3907  done
3908  rm -f core conftest*
3909  unset am_i
3910fi
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3912$as_echo "$am_cv_prog_cc_c_o" >&6; }
3913if test "$am_cv_prog_cc_c_o" != yes; then
3914   # Losing compiler, so override with the script.
3915   # FIXME: It is wrong to rewrite CC.
3916   # But if we don't then we get into trouble of one sort or another.
3917   # A longer-term fix would be to have automake use am__CC in this case,
3918   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3919   CC="$am_aux_dir/compile $CC"
3920fi
3921ac_ext=c
3922ac_cpp='$CPP $CPPFLAGS'
3923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926
3927
3928depcc="$CC"   am_compiler_list=
3929
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3931$as_echo_n "checking dependency style of $depcc... " >&6; }
3932if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3933  $as_echo_n "(cached) " >&6
3934else
3935  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3936  # We make a subdir and do the tests there.  Otherwise we can end up
3937  # making bogus files that we don't know about and never remove.  For
3938  # instance it was reported that on HP-UX the gcc test will end up
3939  # making a dummy file named 'D' -- because '-MD' means "put the output
3940  # in D".
3941  rm -rf conftest.dir
3942  mkdir conftest.dir
3943  # Copy depcomp to subdir because otherwise we won't find it if we're
3944  # using a relative directory.
3945  cp "$am_depcomp" conftest.dir
3946  cd conftest.dir
3947  # We will build objects and dependencies in a subdirectory because
3948  # it helps to detect inapplicable dependency modes.  For instance
3949  # both Tru64's cc and ICC support -MD to output dependencies as a
3950  # side effect of compilation, but ICC will put the dependencies in
3951  # the current directory while Tru64 will put them in the object
3952  # directory.
3953  mkdir sub
3954
3955  am_cv_CC_dependencies_compiler_type=none
3956  if test "$am_compiler_list" = ""; then
3957     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3958  fi
3959  am__universal=false
3960  case " $depcc " in #(
3961     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3962     esac
3963
3964  for depmode in $am_compiler_list; do
3965    # Setup a source with many dependencies, because some compilers
3966    # like to wrap large dependency lists on column 80 (with \), and
3967    # we should not choose a depcomp mode which is confused by this.
3968    #
3969    # We need to recreate these files for each test, as the compiler may
3970    # overwrite some of them when testing with obscure command lines.
3971    # This happens at least with the AIX C compiler.
3972    : > sub/conftest.c
3973    for i in 1 2 3 4 5 6; do
3974      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3975      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3976      # Solaris 10 /bin/sh.
3977      echo '/* dummy */' > sub/conftst$i.h
3978    done
3979    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3980
3981    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3982    # mode.  It turns out that the SunPro C++ compiler does not properly
3983    # handle '-M -o', and we need to detect this.  Also, some Intel
3984    # versions had trouble with output in subdirs.
3985    am__obj=sub/conftest.${OBJEXT-o}
3986    am__minus_obj="-o $am__obj"
3987    case $depmode in
3988    gcc)
3989      # This depmode causes a compiler race in universal mode.
3990      test "$am__universal" = false || continue
3991      ;;
3992    nosideeffect)
3993      # After this tag, mechanisms are not by side-effect, so they'll
3994      # only be used when explicitly requested.
3995      if test "x$enable_dependency_tracking" = xyes; then
3996	continue
3997      else
3998	break
3999      fi
4000      ;;
4001    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4002      # This compiler won't grok '-c -o', but also, the minuso test has
4003      # not run yet.  These depmodes are late enough in the game, and
4004      # so weak that their functioning should not be impacted.
4005      am__obj=conftest.${OBJEXT-o}
4006      am__minus_obj=
4007      ;;
4008    none) break ;;
4009    esac
4010    if depmode=$depmode \
4011       source=sub/conftest.c object=$am__obj \
4012       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4013       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4014         >/dev/null 2>conftest.err &&
4015       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4016       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4017       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4018       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4019      # icc doesn't choke on unknown options, it will just issue warnings
4020      # or remarks (even with -Werror).  So we grep stderr for any message
4021      # that says an option was ignored or not supported.
4022      # When given -MP, icc 7.0 and 7.1 complain thusly:
4023      #   icc: Command line warning: ignoring option '-M'; no argument required
4024      # The diagnosis changed in icc 8.0:
4025      #   icc: Command line remark: option '-MP' not supported
4026      if (grep 'ignoring option' conftest.err ||
4027          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4028        am_cv_CC_dependencies_compiler_type=$depmode
4029        break
4030      fi
4031    fi
4032  done
4033
4034  cd ..
4035  rm -rf conftest.dir
4036else
4037  am_cv_CC_dependencies_compiler_type=none
4038fi
4039
4040fi
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4042$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4043CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4044
4045 if
4046  test "x$enable_dependency_tracking" != xno \
4047  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4048  am__fastdepCC_TRUE=
4049  am__fastdepCC_FALSE='#'
4050else
4051  am__fastdepCC_TRUE='#'
4052  am__fastdepCC_FALSE=
4053fi
4054
4055
4056
4057# Check whether --enable-largefile was given.
4058if test "${enable_largefile+set}" = set; then :
4059  enableval=$enable_largefile;
4060fi
4061
4062if test "$enable_largefile" != no; then
4063
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4065$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4066if ${ac_cv_sys_largefile_CC+:} false; then :
4067  $as_echo_n "(cached) " >&6
4068else
4069  ac_cv_sys_largefile_CC=no
4070     if test "$GCC" != yes; then
4071       ac_save_CC=$CC
4072       while :; do
4073	 # IRIX 6.2 and later do not support large files by default,
4074	 # so use the C compiler's -n32 option if that helps.
4075	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077#include <sys/types.h>
4078 /* Check that off_t can represent 2**63 - 1 correctly.
4079    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4080    since some C++ compilers masquerading as C compilers
4081    incorrectly reject 9223372036854775807.  */
4082#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4083  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4084		       && LARGE_OFF_T % 2147483647 == 1)
4085		      ? 1 : -1];
4086int
4087main ()
4088{
4089
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094	 if ac_fn_c_try_compile "$LINENO"; then :
4095  break
4096fi
4097rm -f core conftest.err conftest.$ac_objext
4098	 CC="$CC -n32"
4099	 if ac_fn_c_try_compile "$LINENO"; then :
4100  ac_cv_sys_largefile_CC=' -n32'; break
4101fi
4102rm -f core conftest.err conftest.$ac_objext
4103	 break
4104       done
4105       CC=$ac_save_CC
4106       rm -f conftest.$ac_ext
4107    fi
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4110$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4111  if test "$ac_cv_sys_largefile_CC" != no; then
4112    CC=$CC$ac_cv_sys_largefile_CC
4113  fi
4114
4115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4116$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4117if ${ac_cv_sys_file_offset_bits+:} false; then :
4118  $as_echo_n "(cached) " >&6
4119else
4120  while :; do
4121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h.  */
4123#include <sys/types.h>
4124 /* Check that off_t can represent 2**63 - 1 correctly.
4125    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4126    since some C++ compilers masquerading as C compilers
4127    incorrectly reject 9223372036854775807.  */
4128#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4129  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4130		       && LARGE_OFF_T % 2147483647 == 1)
4131		      ? 1 : -1];
4132int
4133main ()
4134{
4135
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140if ac_fn_c_try_compile "$LINENO"; then :
4141  ac_cv_sys_file_offset_bits=no; break
4142fi
4143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145/* end confdefs.h.  */
4146#define _FILE_OFFSET_BITS 64
4147#include <sys/types.h>
4148 /* Check that off_t can represent 2**63 - 1 correctly.
4149    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4150    since some C++ compilers masquerading as C compilers
4151    incorrectly reject 9223372036854775807.  */
4152#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4153  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4154		       && LARGE_OFF_T % 2147483647 == 1)
4155		      ? 1 : -1];
4156int
4157main ()
4158{
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164if ac_fn_c_try_compile "$LINENO"; then :
4165  ac_cv_sys_file_offset_bits=64; break
4166fi
4167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168  ac_cv_sys_file_offset_bits=unknown
4169  break
4170done
4171fi
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4173$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4174case $ac_cv_sys_file_offset_bits in #(
4175  no | unknown) ;;
4176  *)
4177cat >>confdefs.h <<_ACEOF
4178#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4179_ACEOF
4180;;
4181esac
4182rm -rf conftest*
4183  if test $ac_cv_sys_file_offset_bits = unknown; then
4184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4185$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4186if ${ac_cv_sys_large_files+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188else
4189  while :; do
4190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192#include <sys/types.h>
4193 /* Check that off_t can represent 2**63 - 1 correctly.
4194    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4195    since some C++ compilers masquerading as C compilers
4196    incorrectly reject 9223372036854775807.  */
4197#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4198  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4199		       && LARGE_OFF_T % 2147483647 == 1)
4200		      ? 1 : -1];
4201int
4202main ()
4203{
4204
4205  ;
4206  return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_compile "$LINENO"; then :
4210  ac_cv_sys_large_files=no; break
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215#define _LARGE_FILES 1
4216#include <sys/types.h>
4217 /* Check that off_t can represent 2**63 - 1 correctly.
4218    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4219    since some C++ compilers masquerading as C compilers
4220    incorrectly reject 9223372036854775807.  */
4221#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4222  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4223		       && LARGE_OFF_T % 2147483647 == 1)
4224		      ? 1 : -1];
4225int
4226main ()
4227{
4228
4229  ;
4230  return 0;
4231}
4232_ACEOF
4233if ac_fn_c_try_compile "$LINENO"; then :
4234  ac_cv_sys_large_files=1; break
4235fi
4236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237  ac_cv_sys_large_files=unknown
4238  break
4239done
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4242$as_echo "$ac_cv_sys_large_files" >&6; }
4243case $ac_cv_sys_large_files in #(
4244  no | unknown) ;;
4245  *)
4246cat >>confdefs.h <<_ACEOF
4247#define _LARGE_FILES $ac_cv_sys_large_files
4248_ACEOF
4249;;
4250esac
4251rm -rf conftest*
4252  fi
4253
4254
4255fi
4256
4257
4258# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4271$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4272if ${ac_cv_prog_cc_c99+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275  ac_cv_prog_cc_c99=no
4276ac_save_CC=$CC
4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278/* end confdefs.h.  */
4279#include <stdarg.h>
4280#include <stdbool.h>
4281#include <stdlib.h>
4282#include <wchar.h>
4283#include <stdio.h>
4284
4285// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4286#define debug(...) fprintf (stderr, __VA_ARGS__)
4287#define showlist(...) puts (#__VA_ARGS__)
4288#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4289static void
4290test_varargs_macros (void)
4291{
4292  int x = 1234;
4293  int y = 5678;
4294  debug ("Flag");
4295  debug ("X = %d\n", x);
4296  showlist (The first, second, and third items.);
4297  report (x>y, "x is %d but y is %d", x, y);
4298}
4299
4300// Check long long types.
4301#define BIG64 18446744073709551615ull
4302#define BIG32 4294967295ul
4303#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4304#if !BIG_OK
4305  your preprocessor is broken;
4306#endif
4307#if BIG_OK
4308#else
4309  your preprocessor is broken;
4310#endif
4311static long long int bignum = -9223372036854775807LL;
4312static unsigned long long int ubignum = BIG64;
4313
4314struct incomplete_array
4315{
4316  int datasize;
4317  double data[];
4318};
4319
4320struct named_init {
4321  int number;
4322  const wchar_t *name;
4323  double average;
4324};
4325
4326typedef const char *ccp;
4327
4328static inline int
4329test_restrict (ccp restrict text)
4330{
4331  // See if C++-style comments work.
4332  // Iterate through items via the restricted pointer.
4333  // Also check for declarations in for loops.
4334  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4335    continue;
4336  return 0;
4337}
4338
4339// Check varargs and va_copy.
4340static void
4341test_varargs (const char *format, ...)
4342{
4343  va_list args;
4344  va_start (args, format);
4345  va_list args_copy;
4346  va_copy (args_copy, args);
4347
4348  const char *str;
4349  int number;
4350  float fnumber;
4351
4352  while (*format)
4353    {
4354      switch (*format++)
4355	{
4356	case 's': // string
4357	  str = va_arg (args_copy, const char *);
4358	  break;
4359	case 'd': // int
4360	  number = va_arg (args_copy, int);
4361	  break;
4362	case 'f': // float
4363	  fnumber = va_arg (args_copy, double);
4364	  break;
4365	default:
4366	  break;
4367	}
4368    }
4369  va_end (args_copy);
4370  va_end (args);
4371}
4372
4373int
4374main ()
4375{
4376
4377  // Check bool.
4378  _Bool success = false;
4379
4380  // Check restrict.
4381  if (test_restrict ("String literal") == 0)
4382    success = true;
4383  char *restrict newvar = "Another string";
4384
4385  // Check varargs.
4386  test_varargs ("s, d' f .", "string", 65, 34.234);
4387  test_varargs_macros ();
4388
4389  // Check flexible array members.
4390  struct incomplete_array *ia =
4391    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4392  ia->datasize = 10;
4393  for (int i = 0; i < ia->datasize; ++i)
4394    ia->data[i] = i * 1.234;
4395
4396  // Check named initializers.
4397  struct named_init ni = {
4398    .number = 34,
4399    .name = L"Test wide string",
4400    .average = 543.34343,
4401  };
4402
4403  ni.number = 58;
4404
4405  int dynamic_array[ni.number];
4406  dynamic_array[ni.number - 1] = 543;
4407
4408  // work around unused variable warnings
4409  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4410	  || dynamic_array[ni.number - 1] != 543);
4411
4412  ;
4413  return 0;
4414}
4415_ACEOF
4416for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4417do
4418  CC="$ac_save_CC $ac_arg"
4419  if ac_fn_c_try_compile "$LINENO"; then :
4420  ac_cv_prog_cc_c99=$ac_arg
4421fi
4422rm -f core conftest.err conftest.$ac_objext
4423  test "x$ac_cv_prog_cc_c99" != "xno" && break
4424done
4425rm -f conftest.$ac_ext
4426CC=$ac_save_CC
4427
4428fi
4429# AC_CACHE_VAL
4430case "x$ac_cv_prog_cc_c99" in
4431  x)
4432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4433$as_echo "none needed" >&6; } ;;
4434  xno)
4435    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4436$as_echo "unsupported" >&6; } ;;
4437  *)
4438    CC="$CC $ac_cv_prog_cc_c99"
4439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4440$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4441esac
4442if test "x$ac_cv_prog_cc_c99" != xno; then :
4443
4444fi
4445
4446
4447ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4453$as_echo_n "checking how to run the C preprocessor... " >&6; }
4454# On Suns, sometimes $CPP names a directory.
4455if test -n "$CPP" && test -d "$CPP"; then
4456  CPP=
4457fi
4458if test -z "$CPP"; then
4459  if ${ac_cv_prog_CPP+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462      # Double quotes because CPP needs to be expanded
4463    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4464    do
4465      ac_preproc_ok=false
4466for ac_c_preproc_warn_flag in '' yes
4467do
4468  # Use a header file that comes with gcc, so configuring glibc
4469  # with a fresh cross-compiler works.
4470  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4471  # <limits.h> exists even on freestanding compilers.
4472  # On the NeXT, cc -E runs the code through the compiler's parser,
4473  # not just through cpp. "Syntax error" is here to catch this case.
4474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476#ifdef __STDC__
4477# include <limits.h>
4478#else
4479# include <assert.h>
4480#endif
4481		     Syntax error
4482_ACEOF
4483if ac_fn_c_try_cpp "$LINENO"; then :
4484
4485else
4486  # Broken: fails on valid input.
4487continue
4488fi
4489rm -f conftest.err conftest.i conftest.$ac_ext
4490
4491  # OK, works on sane cases.  Now check whether nonexistent headers
4492  # can be detected and how.
4493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h.  */
4495#include <ac_nonexistent.h>
4496_ACEOF
4497if ac_fn_c_try_cpp "$LINENO"; then :
4498  # Broken: success on invalid input.
4499continue
4500else
4501  # Passes both tests.
4502ac_preproc_ok=:
4503break
4504fi
4505rm -f conftest.err conftest.i conftest.$ac_ext
4506
4507done
4508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509rm -f conftest.i conftest.err conftest.$ac_ext
4510if $ac_preproc_ok; then :
4511  break
4512fi
4513
4514    done
4515    ac_cv_prog_CPP=$CPP
4516
4517fi
4518  CPP=$ac_cv_prog_CPP
4519else
4520  ac_cv_prog_CPP=$CPP
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4523$as_echo "$CPP" >&6; }
4524ac_preproc_ok=false
4525for ac_c_preproc_warn_flag in '' yes
4526do
4527  # Use a header file that comes with gcc, so configuring glibc
4528  # with a fresh cross-compiler works.
4529  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530  # <limits.h> exists even on freestanding compilers.
4531  # On the NeXT, cc -E runs the code through the compiler's parser,
4532  # not just through cpp. "Syntax error" is here to catch this case.
4533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535#ifdef __STDC__
4536# include <limits.h>
4537#else
4538# include <assert.h>
4539#endif
4540		     Syntax error
4541_ACEOF
4542if ac_fn_c_try_cpp "$LINENO"; then :
4543
4544else
4545  # Broken: fails on valid input.
4546continue
4547fi
4548rm -f conftest.err conftest.i conftest.$ac_ext
4549
4550  # OK, works on sane cases.  Now check whether nonexistent headers
4551  # can be detected and how.
4552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554#include <ac_nonexistent.h>
4555_ACEOF
4556if ac_fn_c_try_cpp "$LINENO"; then :
4557  # Broken: success on invalid input.
4558continue
4559else
4560  # Passes both tests.
4561ac_preproc_ok=:
4562break
4563fi
4564rm -f conftest.err conftest.i conftest.$ac_ext
4565
4566done
4567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4568rm -f conftest.i conftest.err conftest.$ac_ext
4569if $ac_preproc_ok; then :
4570
4571else
4572  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4575See \`config.log' for more details" "$LINENO" 5; }
4576fi
4577
4578ac_ext=c
4579ac_cpp='$CPP $CPPFLAGS'
4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4586$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587if ${ac_cv_path_GREP+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  if test -z "$GREP"; then
4591  ac_path_GREP_found=false
4592  # Loop through the user's path and test for each of PROGNAME-LIST
4593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595do
4596  IFS=$as_save_IFS
4597  test -z "$as_dir" && as_dir=.
4598    for ac_prog in grep ggrep; do
4599    for ac_exec_ext in '' $ac_executable_extensions; do
4600      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601      as_fn_executable_p "$ac_path_GREP" || continue
4602# Check for GNU ac_path_GREP and select it if it is found.
4603  # Check for GNU $ac_path_GREP
4604case `"$ac_path_GREP" --version 2>&1` in
4605*GNU*)
4606  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4607*)
4608  ac_count=0
4609  $as_echo_n 0123456789 >"conftest.in"
4610  while :
4611  do
4612    cat "conftest.in" "conftest.in" >"conftest.tmp"
4613    mv "conftest.tmp" "conftest.in"
4614    cp "conftest.in" "conftest.nl"
4615    $as_echo 'GREP' >> "conftest.nl"
4616    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618    as_fn_arith $ac_count + 1 && ac_count=$as_val
4619    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620      # Best one so far, save it but keep looking for a better one
4621      ac_cv_path_GREP="$ac_path_GREP"
4622      ac_path_GREP_max=$ac_count
4623    fi
4624    # 10*(2^10) chars as input seems more than enough
4625    test $ac_count -gt 10 && break
4626  done
4627  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628esac
4629
4630      $ac_path_GREP_found && break 3
4631    done
4632  done
4633  done
4634IFS=$as_save_IFS
4635  if test -z "$ac_cv_path_GREP"; then
4636    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4637  fi
4638else
4639  ac_cv_path_GREP=$GREP
4640fi
4641
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4644$as_echo "$ac_cv_path_GREP" >&6; }
4645 GREP="$ac_cv_path_GREP"
4646
4647
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4649$as_echo_n "checking for egrep... " >&6; }
4650if ${ac_cv_path_EGREP+:} false; then :
4651  $as_echo_n "(cached) " >&6
4652else
4653  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4654   then ac_cv_path_EGREP="$GREP -E"
4655   else
4656     if test -z "$EGREP"; then
4657  ac_path_EGREP_found=false
4658  # Loop through the user's path and test for each of PROGNAME-LIST
4659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664    for ac_prog in egrep; do
4665    for ac_exec_ext in '' $ac_executable_extensions; do
4666      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4667      as_fn_executable_p "$ac_path_EGREP" || continue
4668# Check for GNU ac_path_EGREP and select it if it is found.
4669  # Check for GNU $ac_path_EGREP
4670case `"$ac_path_EGREP" --version 2>&1` in
4671*GNU*)
4672  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4673*)
4674  ac_count=0
4675  $as_echo_n 0123456789 >"conftest.in"
4676  while :
4677  do
4678    cat "conftest.in" "conftest.in" >"conftest.tmp"
4679    mv "conftest.tmp" "conftest.in"
4680    cp "conftest.in" "conftest.nl"
4681    $as_echo 'EGREP' >> "conftest.nl"
4682    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684    as_fn_arith $ac_count + 1 && ac_count=$as_val
4685    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4686      # Best one so far, save it but keep looking for a better one
4687      ac_cv_path_EGREP="$ac_path_EGREP"
4688      ac_path_EGREP_max=$ac_count
4689    fi
4690    # 10*(2^10) chars as input seems more than enough
4691    test $ac_count -gt 10 && break
4692  done
4693  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694esac
4695
4696      $ac_path_EGREP_found && break 3
4697    done
4698  done
4699  done
4700IFS=$as_save_IFS
4701  if test -z "$ac_cv_path_EGREP"; then
4702    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703  fi
4704else
4705  ac_cv_path_EGREP=$EGREP
4706fi
4707
4708   fi
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4711$as_echo "$ac_cv_path_EGREP" >&6; }
4712 EGREP="$ac_cv_path_EGREP"
4713
4714
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4716$as_echo_n "checking for ANSI C header files... " >&6; }
4717if ${ac_cv_header_stdc+:} false; then :
4718  $as_echo_n "(cached) " >&6
4719else
4720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721/* end confdefs.h.  */
4722#include <stdlib.h>
4723#include <stdarg.h>
4724#include <string.h>
4725#include <float.h>
4726
4727int
4728main ()
4729{
4730
4731  ;
4732  return 0;
4733}
4734_ACEOF
4735if ac_fn_c_try_compile "$LINENO"; then :
4736  ac_cv_header_stdc=yes
4737else
4738  ac_cv_header_stdc=no
4739fi
4740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741
4742if test $ac_cv_header_stdc = yes; then
4743  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h.  */
4746#include <string.h>
4747
4748_ACEOF
4749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4750  $EGREP "memchr" >/dev/null 2>&1; then :
4751
4752else
4753  ac_cv_header_stdc=no
4754fi
4755rm -f conftest*
4756
4757fi
4758
4759if test $ac_cv_header_stdc = yes; then
4760  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763#include <stdlib.h>
4764
4765_ACEOF
4766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4767  $EGREP "free" >/dev/null 2>&1; then :
4768
4769else
4770  ac_cv_header_stdc=no
4771fi
4772rm -f conftest*
4773
4774fi
4775
4776if test $ac_cv_header_stdc = yes; then
4777  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4778  if test "$cross_compiling" = yes; then :
4779  :
4780else
4781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783#include <ctype.h>
4784#include <stdlib.h>
4785#if ((' ' & 0x0FF) == 0x020)
4786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4788#else
4789# define ISLOWER(c) \
4790		   (('a' <= (c) && (c) <= 'i') \
4791		     || ('j' <= (c) && (c) <= 'r') \
4792		     || ('s' <= (c) && (c) <= 'z'))
4793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4794#endif
4795
4796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4797int
4798main ()
4799{
4800  int i;
4801  for (i = 0; i < 256; i++)
4802    if (XOR (islower (i), ISLOWER (i))
4803	|| toupper (i) != TOUPPER (i))
4804      return 2;
4805  return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_run "$LINENO"; then :
4809
4810else
4811  ac_cv_header_stdc=no
4812fi
4813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4814  conftest.$ac_objext conftest.beam conftest.$ac_ext
4815fi
4816
4817fi
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4820$as_echo "$ac_cv_header_stdc" >&6; }
4821if test $ac_cv_header_stdc = yes; then
4822
4823$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4824
4825fi
4826
4827# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4828for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4829		  inttypes.h stdint.h unistd.h
4830do :
4831  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4833"
4834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4835  cat >>confdefs.h <<_ACEOF
4836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4837_ACEOF
4838
4839fi
4840
4841done
4842
4843
4844
4845
4846
4847
4848ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4849if test "x$ac_cv_have_decl___clang__" = xyes; then :
4850  CLANGCC="yes"
4851else
4852  CLANGCC="no"
4853fi
4854
4855ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4856if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4857  INTELCC="yes"
4858else
4859  INTELCC="no"
4860fi
4861
4862ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4863if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4864  SUNCC="yes"
4865else
4866  SUNCC="no"
4867fi
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4878	if test -n "$ac_tool_prefix"; then
4879  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4880set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882$as_echo_n "checking for $ac_word... " >&6; }
4883if ${ac_cv_path_PKG_CONFIG+:} false; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  case $PKG_CONFIG in
4887  [\\/]* | ?:[\\/]*)
4888  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4889  ;;
4890  *)
4891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894  IFS=$as_save_IFS
4895  test -z "$as_dir" && as_dir=.
4896    for ac_exec_ext in '' $ac_executable_extensions; do
4897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900    break 2
4901  fi
4902done
4903  done
4904IFS=$as_save_IFS
4905
4906  ;;
4907esac
4908fi
4909PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4910if test -n "$PKG_CONFIG"; then
4911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4912$as_echo "$PKG_CONFIG" >&6; }
4913else
4914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915$as_echo "no" >&6; }
4916fi
4917
4918
4919fi
4920if test -z "$ac_cv_path_PKG_CONFIG"; then
4921  ac_pt_PKG_CONFIG=$PKG_CONFIG
4922  # Extract the first word of "pkg-config", so it can be a program name with args.
4923set dummy pkg-config; ac_word=$2
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925$as_echo_n "checking for $ac_word... " >&6; }
4926if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4927  $as_echo_n "(cached) " >&6
4928else
4929  case $ac_pt_PKG_CONFIG in
4930  [\\/]* | ?:[\\/]*)
4931  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4932  ;;
4933  *)
4934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937  IFS=$as_save_IFS
4938  test -z "$as_dir" && as_dir=.
4939    for ac_exec_ext in '' $ac_executable_extensions; do
4940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943    break 2
4944  fi
4945done
4946  done
4947IFS=$as_save_IFS
4948
4949  ;;
4950esac
4951fi
4952ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4953if test -n "$ac_pt_PKG_CONFIG"; then
4954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4955$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4956else
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
4959fi
4960
4961  if test "x$ac_pt_PKG_CONFIG" = x; then
4962    PKG_CONFIG=""
4963  else
4964    case $cross_compiling:$ac_tool_warned in
4965yes:)
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968ac_tool_warned=yes ;;
4969esac
4970    PKG_CONFIG=$ac_pt_PKG_CONFIG
4971  fi
4972else
4973  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4974fi
4975
4976fi
4977if test -n "$PKG_CONFIG"; then
4978	_pkg_min_version=0.9.0
4979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4980$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4981	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4982		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4983$as_echo "yes" >&6; }
4984	else
4985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986$as_echo "no" >&6; }
4987		PKG_CONFIG=""
4988	fi
4989fi
4990# Make sure we can run config.sub.
4991$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4992  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4993
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4995$as_echo_n "checking build system type... " >&6; }
4996if ${ac_cv_build+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  ac_build_alias=$build_alias
5000test "x$ac_build_alias" = x &&
5001  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5002test "x$ac_build_alias" = x &&
5003  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5004ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5005  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5006
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5009$as_echo "$ac_cv_build" >&6; }
5010case $ac_cv_build in
5011*-*-*) ;;
5012*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5013esac
5014build=$ac_cv_build
5015ac_save_IFS=$IFS; IFS='-'
5016set x $ac_cv_build
5017shift
5018build_cpu=$1
5019build_vendor=$2
5020shift; shift
5021# Remember, the first character of IFS is used to create $*,
5022# except with old shells:
5023build_os=$*
5024IFS=$ac_save_IFS
5025case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5026
5027
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5029$as_echo_n "checking host system type... " >&6; }
5030if ${ac_cv_host+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  if test "x$host_alias" = x; then
5034  ac_cv_host=$ac_cv_build
5035else
5036  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5037    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5038fi
5039
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5042$as_echo "$ac_cv_host" >&6; }
5043case $ac_cv_host in
5044*-*-*) ;;
5045*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5046esac
5047host=$ac_cv_host
5048ac_save_IFS=$IFS; IFS='-'
5049set x $ac_cv_host
5050shift
5051host_cpu=$1
5052host_vendor=$2
5053shift; shift
5054# Remember, the first character of IFS is used to create $*,
5055# except with old shells:
5056host_os=$*
5057IFS=$ac_save_IFS
5058case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5059
5060
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5062$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5063if ${ac_cv_path_SED+:} false; then :
5064  $as_echo_n "(cached) " >&6
5065else
5066            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5067     for ac_i in 1 2 3 4 5 6 7; do
5068       ac_script="$ac_script$as_nl$ac_script"
5069     done
5070     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5071     { ac_script=; unset ac_script;}
5072     if test -z "$SED"; then
5073  ac_path_SED_found=false
5074  # Loop through the user's path and test for each of PROGNAME-LIST
5075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078  IFS=$as_save_IFS
5079  test -z "$as_dir" && as_dir=.
5080    for ac_prog in sed gsed; do
5081    for ac_exec_ext in '' $ac_executable_extensions; do
5082      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5083      as_fn_executable_p "$ac_path_SED" || continue
5084# Check for GNU ac_path_SED and select it if it is found.
5085  # Check for GNU $ac_path_SED
5086case `"$ac_path_SED" --version 2>&1` in
5087*GNU*)
5088  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5089*)
5090  ac_count=0
5091  $as_echo_n 0123456789 >"conftest.in"
5092  while :
5093  do
5094    cat "conftest.in" "conftest.in" >"conftest.tmp"
5095    mv "conftest.tmp" "conftest.in"
5096    cp "conftest.in" "conftest.nl"
5097    $as_echo '' >> "conftest.nl"
5098    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100    as_fn_arith $ac_count + 1 && ac_count=$as_val
5101    if test $ac_count -gt ${ac_path_SED_max-0}; then
5102      # Best one so far, save it but keep looking for a better one
5103      ac_cv_path_SED="$ac_path_SED"
5104      ac_path_SED_max=$ac_count
5105    fi
5106    # 10*(2^10) chars as input seems more than enough
5107    test $ac_count -gt 10 && break
5108  done
5109  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5110esac
5111
5112      $ac_path_SED_found && break 3
5113    done
5114  done
5115  done
5116IFS=$as_save_IFS
5117  if test -z "$ac_cv_path_SED"; then
5118    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5119  fi
5120else
5121  ac_cv_path_SED=$SED
5122fi
5123
5124fi
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5126$as_echo "$ac_cv_path_SED" >&6; }
5127 SED="$ac_cv_path_SED"
5128  rm -f conftest.sed
5129
5130
5131
5132
5133
5134
5135# Check whether --enable-selective-werror was given.
5136if test "${enable_selective_werror+set}" = set; then :
5137  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5138else
5139  SELECTIVE_WERROR=yes
5140fi
5141
5142
5143
5144
5145
5146# -v is too short to test reliably with XORG_TESTSET_CFLAG
5147if test "x$SUNCC" = "xyes"; then
5148    BASE_CFLAGS="-v"
5149else
5150    BASE_CFLAGS=""
5151fi
5152
5153# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167xorg_testset_save_CFLAGS="$CFLAGS"
5168
5169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5174  $as_echo_n "(cached) " >&6
5175else
5176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178int i;
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"; then :
5181  xorg_cv_cc_flag_unknown_warning_option=yes
5182else
5183  xorg_cv_cc_flag_unknown_warning_option=no
5184fi
5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186fi
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5190	CFLAGS="$xorg_testset_save_CFLAGS"
5191fi
5192
5193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5196	fi
5197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5201  $as_echo_n "(cached) " >&6
5202else
5203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h.  */
5205int i;
5206_ACEOF
5207if ac_fn_c_try_compile "$LINENO"; then :
5208  xorg_cv_cc_flag_unused_command_line_argument=yes
5209else
5210  xorg_cv_cc_flag_unused_command_line_argument=no
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213fi
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5217	CFLAGS="$xorg_testset_save_CFLAGS"
5218fi
5219
5220found="no"
5221
5222	if test $found = "no" ; then
5223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5225		fi
5226
5227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5229		fi
5230
5231		CFLAGS="$CFLAGS -Wall"
5232
5233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5234$as_echo_n "checking if $CC supports -Wall... " >&6; }
5235		cacheid=xorg_cv_cc_flag__Wall
5236		if eval \${$cacheid+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h.  */
5241int i;
5242int
5243main ()
5244{
5245
5246  ;
5247  return 0;
5248}
5249_ACEOF
5250if ac_fn_c_try_link "$LINENO"; then :
5251  eval $cacheid=yes
5252else
5253  eval $cacheid=no
5254fi
5255rm -f core conftest.err conftest.$ac_objext \
5256    conftest$ac_exeext conftest.$ac_ext
5257fi
5258
5259
5260		CFLAGS="$xorg_testset_save_CFLAGS"
5261
5262		eval supported=\$$cacheid
5263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5264$as_echo "$supported" >&6; }
5265		if test "$supported" = "yes" ; then
5266			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5267			found="yes"
5268		fi
5269	fi
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285xorg_testset_save_CFLAGS="$CFLAGS"
5286
5287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h.  */
5296int i;
5297_ACEOF
5298if ac_fn_c_try_compile "$LINENO"; then :
5299  xorg_cv_cc_flag_unknown_warning_option=yes
5300else
5301  xorg_cv_cc_flag_unknown_warning_option=no
5302fi
5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304fi
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5308	CFLAGS="$xorg_testset_save_CFLAGS"
5309fi
5310
5311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5314	fi
5315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5319  $as_echo_n "(cached) " >&6
5320else
5321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322/* end confdefs.h.  */
5323int i;
5324_ACEOF
5325if ac_fn_c_try_compile "$LINENO"; then :
5326  xorg_cv_cc_flag_unused_command_line_argument=yes
5327else
5328  xorg_cv_cc_flag_unused_command_line_argument=no
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5335	CFLAGS="$xorg_testset_save_CFLAGS"
5336fi
5337
5338found="no"
5339
5340	if test $found = "no" ; then
5341		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5343		fi
5344
5345		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347		fi
5348
5349		CFLAGS="$CFLAGS -Wpointer-arith"
5350
5351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5352$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5353		cacheid=xorg_cv_cc_flag__Wpointer_arith
5354		if eval \${$cacheid+:} false; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358/* end confdefs.h.  */
5359int i;
5360int
5361main ()
5362{
5363
5364  ;
5365  return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_link "$LINENO"; then :
5369  eval $cacheid=yes
5370else
5371  eval $cacheid=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext \
5374    conftest$ac_exeext conftest.$ac_ext
5375fi
5376
5377
5378		CFLAGS="$xorg_testset_save_CFLAGS"
5379
5380		eval supported=\$$cacheid
5381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5382$as_echo "$supported" >&6; }
5383		if test "$supported" = "yes" ; then
5384			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5385			found="yes"
5386		fi
5387	fi
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403xorg_testset_save_CFLAGS="$CFLAGS"
5404
5405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5406	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5410  $as_echo_n "(cached) " >&6
5411else
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414int i;
5415_ACEOF
5416if ac_fn_c_try_compile "$LINENO"; then :
5417  xorg_cv_cc_flag_unknown_warning_option=yes
5418else
5419  xorg_cv_cc_flag_unknown_warning_option=no
5420fi
5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5426	CFLAGS="$xorg_testset_save_CFLAGS"
5427fi
5428
5429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5432	fi
5433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h.  */
5441int i;
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444  xorg_cv_cc_flag_unused_command_line_argument=yes
5445else
5446  xorg_cv_cc_flag_unused_command_line_argument=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5452	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5453	CFLAGS="$xorg_testset_save_CFLAGS"
5454fi
5455
5456found="no"
5457
5458	if test $found = "no" ; then
5459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5461		fi
5462
5463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5465		fi
5466
5467		CFLAGS="$CFLAGS -Wmissing-declarations"
5468
5469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5470$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5471		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5472		if eval \${$cacheid+:} false; then :
5473  $as_echo_n "(cached) " >&6
5474else
5475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476/* end confdefs.h.  */
5477int i;
5478int
5479main ()
5480{
5481
5482  ;
5483  return 0;
5484}
5485_ACEOF
5486if ac_fn_c_try_link "$LINENO"; then :
5487  eval $cacheid=yes
5488else
5489  eval $cacheid=no
5490fi
5491rm -f core conftest.err conftest.$ac_objext \
5492    conftest$ac_exeext conftest.$ac_ext
5493fi
5494
5495
5496		CFLAGS="$xorg_testset_save_CFLAGS"
5497
5498		eval supported=\$$cacheid
5499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5500$as_echo "$supported" >&6; }
5501		if test "$supported" = "yes" ; then
5502			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5503			found="yes"
5504		fi
5505	fi
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521xorg_testset_save_CFLAGS="$CFLAGS"
5522
5523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"; then :
5535  xorg_cv_cc_flag_unknown_warning_option=yes
5536else
5537  xorg_cv_cc_flag_unknown_warning_option=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5544	CFLAGS="$xorg_testset_save_CFLAGS"
5545fi
5546
5547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5550	fi
5551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h.  */
5559int i;
5560_ACEOF
5561if ac_fn_c_try_compile "$LINENO"; then :
5562  xorg_cv_cc_flag_unused_command_line_argument=yes
5563else
5564  xorg_cv_cc_flag_unused_command_line_argument=no
5565fi
5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5571	CFLAGS="$xorg_testset_save_CFLAGS"
5572fi
5573
5574found="no"
5575
5576	if test $found = "no" ; then
5577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579		fi
5580
5581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5583		fi
5584
5585		CFLAGS="$CFLAGS -Wformat=2"
5586
5587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5588$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5589		cacheid=xorg_cv_cc_flag__Wformat_2
5590		if eval \${$cacheid+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595int i;
5596int
5597main ()
5598{
5599
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_link "$LINENO"; then :
5605  eval $cacheid=yes
5606else
5607  eval $cacheid=no
5608fi
5609rm -f core conftest.err conftest.$ac_objext \
5610    conftest$ac_exeext conftest.$ac_ext
5611fi
5612
5613
5614		CFLAGS="$xorg_testset_save_CFLAGS"
5615
5616		eval supported=\$$cacheid
5617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5618$as_echo "$supported" >&6; }
5619		if test "$supported" = "yes" ; then
5620			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5621			found="yes"
5622		fi
5623	fi
5624
5625	if test $found = "no" ; then
5626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628		fi
5629
5630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5632		fi
5633
5634		CFLAGS="$CFLAGS -Wformat"
5635
5636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5637$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5638		cacheid=xorg_cv_cc_flag__Wformat
5639		if eval \${$cacheid+:} false; then :
5640  $as_echo_n "(cached) " >&6
5641else
5642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643/* end confdefs.h.  */
5644int i;
5645int
5646main ()
5647{
5648
5649  ;
5650  return 0;
5651}
5652_ACEOF
5653if ac_fn_c_try_link "$LINENO"; then :
5654  eval $cacheid=yes
5655else
5656  eval $cacheid=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext \
5659    conftest$ac_exeext conftest.$ac_ext
5660fi
5661
5662
5663		CFLAGS="$xorg_testset_save_CFLAGS"
5664
5665		eval supported=\$$cacheid
5666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5667$as_echo "$supported" >&6; }
5668		if test "$supported" = "yes" ; then
5669			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5670			found="yes"
5671		fi
5672	fi
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690xorg_testset_save_CFLAGS="$CFLAGS"
5691
5692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5695$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5696if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5697  $as_echo_n "(cached) " >&6
5698else
5699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h.  */
5701int i;
5702_ACEOF
5703if ac_fn_c_try_compile "$LINENO"; then :
5704  xorg_cv_cc_flag_unknown_warning_option=yes
5705else
5706  xorg_cv_cc_flag_unknown_warning_option=no
5707fi
5708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5711$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5713	CFLAGS="$xorg_testset_save_CFLAGS"
5714fi
5715
5716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719	fi
5720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5722$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5723if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5724  $as_echo_n "(cached) " >&6
5725else
5726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727/* end confdefs.h.  */
5728int i;
5729_ACEOF
5730if ac_fn_c_try_compile "$LINENO"; then :
5731  xorg_cv_cc_flag_unused_command_line_argument=yes
5732else
5733  xorg_cv_cc_flag_unused_command_line_argument=no
5734fi
5735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5738$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5740	CFLAGS="$xorg_testset_save_CFLAGS"
5741fi
5742
5743found="no"
5744
5745	if test $found = "no" ; then
5746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748		fi
5749
5750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5752		fi
5753
5754		CFLAGS="$CFLAGS -Wstrict-prototypes"
5755
5756		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5757$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5758		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5759		if eval \${$cacheid+:} false; then :
5760  $as_echo_n "(cached) " >&6
5761else
5762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763/* end confdefs.h.  */
5764int i;
5765int
5766main ()
5767{
5768
5769  ;
5770  return 0;
5771}
5772_ACEOF
5773if ac_fn_c_try_link "$LINENO"; then :
5774  eval $cacheid=yes
5775else
5776  eval $cacheid=no
5777fi
5778rm -f core conftest.err conftest.$ac_objext \
5779    conftest$ac_exeext conftest.$ac_ext
5780fi
5781
5782
5783		CFLAGS="$xorg_testset_save_CFLAGS"
5784
5785		eval supported=\$$cacheid
5786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5787$as_echo "$supported" >&6; }
5788		if test "$supported" = "yes" ; then
5789			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5790			found="yes"
5791		fi
5792	fi
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808xorg_testset_save_CFLAGS="$CFLAGS"
5809
5810if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5811	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5813$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5814if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819int i;
5820_ACEOF
5821if ac_fn_c_try_compile "$LINENO"; then :
5822  xorg_cv_cc_flag_unknown_warning_option=yes
5823else
5824  xorg_cv_cc_flag_unknown_warning_option=no
5825fi
5826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5829$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5830	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5831	CFLAGS="$xorg_testset_save_CFLAGS"
5832fi
5833
5834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5835	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5836		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837	fi
5838	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5840$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5841if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5842  $as_echo_n "(cached) " >&6
5843else
5844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845/* end confdefs.h.  */
5846int i;
5847_ACEOF
5848if ac_fn_c_try_compile "$LINENO"; then :
5849  xorg_cv_cc_flag_unused_command_line_argument=yes
5850else
5851  xorg_cv_cc_flag_unused_command_line_argument=no
5852fi
5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854fi
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5856$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5857	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5858	CFLAGS="$xorg_testset_save_CFLAGS"
5859fi
5860
5861found="no"
5862
5863	if test $found = "no" ; then
5864		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866		fi
5867
5868		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5869			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5870		fi
5871
5872		CFLAGS="$CFLAGS -Wmissing-prototypes"
5873
5874		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5875$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5876		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5877		if eval \${$cacheid+:} false; then :
5878  $as_echo_n "(cached) " >&6
5879else
5880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h.  */
5882int i;
5883int
5884main ()
5885{
5886
5887  ;
5888  return 0;
5889}
5890_ACEOF
5891if ac_fn_c_try_link "$LINENO"; then :
5892  eval $cacheid=yes
5893else
5894  eval $cacheid=no
5895fi
5896rm -f core conftest.err conftest.$ac_objext \
5897    conftest$ac_exeext conftest.$ac_ext
5898fi
5899
5900
5901		CFLAGS="$xorg_testset_save_CFLAGS"
5902
5903		eval supported=\$$cacheid
5904		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5905$as_echo "$supported" >&6; }
5906		if test "$supported" = "yes" ; then
5907			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5908			found="yes"
5909		fi
5910	fi
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926xorg_testset_save_CFLAGS="$CFLAGS"
5927
5928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5931$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5932if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h.  */
5937int i;
5938_ACEOF
5939if ac_fn_c_try_compile "$LINENO"; then :
5940  xorg_cv_cc_flag_unknown_warning_option=yes
5941else
5942  xorg_cv_cc_flag_unknown_warning_option=no
5943fi
5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5947$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5948	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5949	CFLAGS="$xorg_testset_save_CFLAGS"
5950fi
5951
5952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5953	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5955	fi
5956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5958$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5959if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h.  */
5964int i;
5965_ACEOF
5966if ac_fn_c_try_compile "$LINENO"; then :
5967  xorg_cv_cc_flag_unused_command_line_argument=yes
5968else
5969  xorg_cv_cc_flag_unused_command_line_argument=no
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5974$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5976	CFLAGS="$xorg_testset_save_CFLAGS"
5977fi
5978
5979found="no"
5980
5981	if test $found = "no" ; then
5982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984		fi
5985
5986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5988		fi
5989
5990		CFLAGS="$CFLAGS -Wnested-externs"
5991
5992		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5993$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5994		cacheid=xorg_cv_cc_flag__Wnested_externs
5995		if eval \${$cacheid+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000int i;
6001int
6002main ()
6003{
6004
6005  ;
6006  return 0;
6007}
6008_ACEOF
6009if ac_fn_c_try_link "$LINENO"; then :
6010  eval $cacheid=yes
6011else
6012  eval $cacheid=no
6013fi
6014rm -f core conftest.err conftest.$ac_objext \
6015    conftest$ac_exeext conftest.$ac_ext
6016fi
6017
6018
6019		CFLAGS="$xorg_testset_save_CFLAGS"
6020
6021		eval supported=\$$cacheid
6022		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6023$as_echo "$supported" >&6; }
6024		if test "$supported" = "yes" ; then
6025			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6026			found="yes"
6027		fi
6028	fi
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044xorg_testset_save_CFLAGS="$CFLAGS"
6045
6046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6051  $as_echo_n "(cached) " >&6
6052else
6053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h.  */
6055int i;
6056_ACEOF
6057if ac_fn_c_try_compile "$LINENO"; then :
6058  xorg_cv_cc_flag_unknown_warning_option=yes
6059else
6060  xorg_cv_cc_flag_unknown_warning_option=no
6061fi
6062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063fi
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6067	CFLAGS="$xorg_testset_save_CFLAGS"
6068fi
6069
6070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073	fi
6074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6078  $as_echo_n "(cached) " >&6
6079else
6080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h.  */
6082int i;
6083_ACEOF
6084if ac_fn_c_try_compile "$LINENO"; then :
6085  xorg_cv_cc_flag_unused_command_line_argument=yes
6086else
6087  xorg_cv_cc_flag_unused_command_line_argument=no
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6094	CFLAGS="$xorg_testset_save_CFLAGS"
6095fi
6096
6097found="no"
6098
6099	if test $found = "no" ; then
6100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102		fi
6103
6104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6106		fi
6107
6108		CFLAGS="$CFLAGS -Wbad-function-cast"
6109
6110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6111$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6112		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6113		if eval \${$cacheid+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119int
6120main ()
6121{
6122
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"; then :
6128  eval $cacheid=yes
6129else
6130  eval $cacheid=no
6131fi
6132rm -f core conftest.err conftest.$ac_objext \
6133    conftest$ac_exeext conftest.$ac_ext
6134fi
6135
6136
6137		CFLAGS="$xorg_testset_save_CFLAGS"
6138
6139		eval supported=\$$cacheid
6140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6141$as_echo "$supported" >&6; }
6142		if test "$supported" = "yes" ; then
6143			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6144			found="yes"
6145		fi
6146	fi
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162xorg_testset_save_CFLAGS="$CFLAGS"
6163
6164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6169  $as_echo_n "(cached) " >&6
6170else
6171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173int i;
6174_ACEOF
6175if ac_fn_c_try_compile "$LINENO"; then :
6176  xorg_cv_cc_flag_unknown_warning_option=yes
6177else
6178  xorg_cv_cc_flag_unknown_warning_option=no
6179fi
6180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181fi
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6185	CFLAGS="$xorg_testset_save_CFLAGS"
6186fi
6187
6188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191	fi
6192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h.  */
6200int i;
6201_ACEOF
6202if ac_fn_c_try_compile "$LINENO"; then :
6203  xorg_cv_cc_flag_unused_command_line_argument=yes
6204else
6205  xorg_cv_cc_flag_unused_command_line_argument=no
6206fi
6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208fi
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6212	CFLAGS="$xorg_testset_save_CFLAGS"
6213fi
6214
6215found="no"
6216
6217	if test $found = "no" ; then
6218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220		fi
6221
6222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6224		fi
6225
6226		CFLAGS="$CFLAGS -Wold-style-definition"
6227
6228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6229$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6230		cacheid=xorg_cv_cc_flag__Wold_style_definition
6231		if eval \${$cacheid+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236int i;
6237int
6238main ()
6239{
6240
6241  ;
6242  return 0;
6243}
6244_ACEOF
6245if ac_fn_c_try_link "$LINENO"; then :
6246  eval $cacheid=yes
6247else
6248  eval $cacheid=no
6249fi
6250rm -f core conftest.err conftest.$ac_objext \
6251    conftest$ac_exeext conftest.$ac_ext
6252fi
6253
6254
6255		CFLAGS="$xorg_testset_save_CFLAGS"
6256
6257		eval supported=\$$cacheid
6258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6259$as_echo "$supported" >&6; }
6260		if test "$supported" = "yes" ; then
6261			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6262			found="yes"
6263		fi
6264	fi
6265
6266	if test $found = "no" ; then
6267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269		fi
6270
6271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273		fi
6274
6275		CFLAGS="$CFLAGS -fd"
6276
6277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6278$as_echo_n "checking if $CC supports -fd... " >&6; }
6279		cacheid=xorg_cv_cc_flag__fd
6280		if eval \${$cacheid+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285int i;
6286int
6287main ()
6288{
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295  eval $cacheid=yes
6296else
6297  eval $cacheid=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext \
6300    conftest$ac_exeext conftest.$ac_ext
6301fi
6302
6303
6304		CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306		eval supported=\$$cacheid
6307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308$as_echo "$supported" >&6; }
6309		if test "$supported" = "yes" ; then
6310			BASE_CFLAGS="$BASE_CFLAGS -fd"
6311			found="yes"
6312		fi
6313	fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329xorg_testset_save_CFLAGS="$CFLAGS"
6330
6331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341_ACEOF
6342if ac_fn_c_try_compile "$LINENO"; then :
6343  xorg_cv_cc_flag_unknown_warning_option=yes
6344else
6345  xorg_cv_cc_flag_unknown_warning_option=no
6346fi
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352	CFLAGS="$xorg_testset_save_CFLAGS"
6353fi
6354
6355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358	fi
6359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367int i;
6368_ACEOF
6369if ac_fn_c_try_compile "$LINENO"; then :
6370  xorg_cv_cc_flag_unused_command_line_argument=yes
6371else
6372  xorg_cv_cc_flag_unused_command_line_argument=no
6373fi
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6379	CFLAGS="$xorg_testset_save_CFLAGS"
6380fi
6381
6382found="no"
6383
6384	if test $found = "no" ; then
6385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387		fi
6388
6389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391		fi
6392
6393		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6394
6395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6396$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6397		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6398		if eval \${$cacheid+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402/* end confdefs.h.  */
6403int i;
6404int
6405main ()
6406{
6407
6408  ;
6409  return 0;
6410}
6411_ACEOF
6412if ac_fn_c_try_link "$LINENO"; then :
6413  eval $cacheid=yes
6414else
6415  eval $cacheid=no
6416fi
6417rm -f core conftest.err conftest.$ac_objext \
6418    conftest$ac_exeext conftest.$ac_ext
6419fi
6420
6421
6422		CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424		eval supported=\$$cacheid
6425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426$as_echo "$supported" >&6; }
6427		if test "$supported" = "yes" ; then
6428			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6429			found="yes"
6430		fi
6431	fi
6432
6433
6434
6435
6436
6437# This chunk adds additional warnings that could catch undesired effects.
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451xorg_testset_save_CFLAGS="$CFLAGS"
6452
6453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6458  $as_echo_n "(cached) " >&6
6459else
6460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h.  */
6462int i;
6463_ACEOF
6464if ac_fn_c_try_compile "$LINENO"; then :
6465  xorg_cv_cc_flag_unknown_warning_option=yes
6466else
6467  xorg_cv_cc_flag_unknown_warning_option=no
6468fi
6469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470fi
6471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6474	CFLAGS="$xorg_testset_save_CFLAGS"
6475fi
6476
6477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480	fi
6481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488/* end confdefs.h.  */
6489int i;
6490_ACEOF
6491if ac_fn_c_try_compile "$LINENO"; then :
6492  xorg_cv_cc_flag_unused_command_line_argument=yes
6493else
6494  xorg_cv_cc_flag_unused_command_line_argument=no
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497fi
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6501	CFLAGS="$xorg_testset_save_CFLAGS"
6502fi
6503
6504found="no"
6505
6506	if test $found = "no" ; then
6507		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6509		fi
6510
6511		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6513		fi
6514
6515		CFLAGS="$CFLAGS -Wunused"
6516
6517		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6518$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6519		cacheid=xorg_cv_cc_flag__Wunused
6520		if eval \${$cacheid+:} false; then :
6521  $as_echo_n "(cached) " >&6
6522else
6523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h.  */
6525int i;
6526int
6527main ()
6528{
6529
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534if ac_fn_c_try_link "$LINENO"; then :
6535  eval $cacheid=yes
6536else
6537  eval $cacheid=no
6538fi
6539rm -f core conftest.err conftest.$ac_objext \
6540    conftest$ac_exeext conftest.$ac_ext
6541fi
6542
6543
6544		CFLAGS="$xorg_testset_save_CFLAGS"
6545
6546		eval supported=\$$cacheid
6547		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6548$as_echo "$supported" >&6; }
6549		if test "$supported" = "yes" ; then
6550			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6551			found="yes"
6552		fi
6553	fi
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569xorg_testset_save_CFLAGS="$CFLAGS"
6570
6571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6572	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6574$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6575if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6576  $as_echo_n "(cached) " >&6
6577else
6578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h.  */
6580int i;
6581_ACEOF
6582if ac_fn_c_try_compile "$LINENO"; then :
6583  xorg_cv_cc_flag_unknown_warning_option=yes
6584else
6585  xorg_cv_cc_flag_unknown_warning_option=no
6586fi
6587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6590$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6592	CFLAGS="$xorg_testset_save_CFLAGS"
6593fi
6594
6595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6598	fi
6599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6601$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6602if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6603  $as_echo_n "(cached) " >&6
6604else
6605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606/* end confdefs.h.  */
6607int i;
6608_ACEOF
6609if ac_fn_c_try_compile "$LINENO"; then :
6610  xorg_cv_cc_flag_unused_command_line_argument=yes
6611else
6612  xorg_cv_cc_flag_unused_command_line_argument=no
6613fi
6614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615fi
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6617$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6619	CFLAGS="$xorg_testset_save_CFLAGS"
6620fi
6621
6622found="no"
6623
6624	if test $found = "no" ; then
6625		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627		fi
6628
6629		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631		fi
6632
6633		CFLAGS="$CFLAGS -Wuninitialized"
6634
6635		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6636$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6637		cacheid=xorg_cv_cc_flag__Wuninitialized
6638		if eval \${$cacheid+:} false; then :
6639  $as_echo_n "(cached) " >&6
6640else
6641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642/* end confdefs.h.  */
6643int i;
6644int
6645main ()
6646{
6647
6648  ;
6649  return 0;
6650}
6651_ACEOF
6652if ac_fn_c_try_link "$LINENO"; then :
6653  eval $cacheid=yes
6654else
6655  eval $cacheid=no
6656fi
6657rm -f core conftest.err conftest.$ac_objext \
6658    conftest$ac_exeext conftest.$ac_ext
6659fi
6660
6661
6662		CFLAGS="$xorg_testset_save_CFLAGS"
6663
6664		eval supported=\$$cacheid
6665		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6666$as_echo "$supported" >&6; }
6667		if test "$supported" = "yes" ; then
6668			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6669			found="yes"
6670		fi
6671	fi
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687xorg_testset_save_CFLAGS="$CFLAGS"
6688
6689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6692$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6693if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h.  */
6698int i;
6699_ACEOF
6700if ac_fn_c_try_compile "$LINENO"; then :
6701  xorg_cv_cc_flag_unknown_warning_option=yes
6702else
6703  xorg_cv_cc_flag_unknown_warning_option=no
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6708$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6709	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6710	CFLAGS="$xorg_testset_save_CFLAGS"
6711fi
6712
6713if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6714	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6715		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716	fi
6717	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6719$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6720if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h.  */
6725int i;
6726_ACEOF
6727if ac_fn_c_try_compile "$LINENO"; then :
6728  xorg_cv_cc_flag_unused_command_line_argument=yes
6729else
6730  xorg_cv_cc_flag_unused_command_line_argument=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733fi
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6735$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6737	CFLAGS="$xorg_testset_save_CFLAGS"
6738fi
6739
6740found="no"
6741
6742	if test $found = "no" ; then
6743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745		fi
6746
6747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6749		fi
6750
6751		CFLAGS="$CFLAGS -Wshadow"
6752
6753		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6754$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6755		cacheid=xorg_cv_cc_flag__Wshadow
6756		if eval \${$cacheid+:} false; then :
6757  $as_echo_n "(cached) " >&6
6758else
6759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h.  */
6761int i;
6762int
6763main ()
6764{
6765
6766  ;
6767  return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_link "$LINENO"; then :
6771  eval $cacheid=yes
6772else
6773  eval $cacheid=no
6774fi
6775rm -f core conftest.err conftest.$ac_objext \
6776    conftest$ac_exeext conftest.$ac_ext
6777fi
6778
6779
6780		CFLAGS="$xorg_testset_save_CFLAGS"
6781
6782		eval supported=\$$cacheid
6783		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6784$as_echo "$supported" >&6; }
6785		if test "$supported" = "yes" ; then
6786			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6787			found="yes"
6788		fi
6789	fi
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805xorg_testset_save_CFLAGS="$CFLAGS"
6806
6807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6808	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h.  */
6816int i;
6817_ACEOF
6818if ac_fn_c_try_compile "$LINENO"; then :
6819  xorg_cv_cc_flag_unknown_warning_option=yes
6820else
6821  xorg_cv_cc_flag_unknown_warning_option=no
6822fi
6823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824fi
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6827	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6828	CFLAGS="$xorg_testset_save_CFLAGS"
6829fi
6830
6831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6832	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6833		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834	fi
6835	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6836	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842/* end confdefs.h.  */
6843int i;
6844_ACEOF
6845if ac_fn_c_try_compile "$LINENO"; then :
6846  xorg_cv_cc_flag_unused_command_line_argument=yes
6847else
6848  xorg_cv_cc_flag_unused_command_line_argument=no
6849fi
6850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851fi
6852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6855	CFLAGS="$xorg_testset_save_CFLAGS"
6856fi
6857
6858found="no"
6859
6860	if test $found = "no" ; then
6861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863		fi
6864
6865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6867		fi
6868
6869		CFLAGS="$CFLAGS -Wmissing-noreturn"
6870
6871		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6872$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6873		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6874		if eval \${$cacheid+:} false; then :
6875  $as_echo_n "(cached) " >&6
6876else
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880int
6881main ()
6882{
6883
6884  ;
6885  return 0;
6886}
6887_ACEOF
6888if ac_fn_c_try_link "$LINENO"; then :
6889  eval $cacheid=yes
6890else
6891  eval $cacheid=no
6892fi
6893rm -f core conftest.err conftest.$ac_objext \
6894    conftest$ac_exeext conftest.$ac_ext
6895fi
6896
6897
6898		CFLAGS="$xorg_testset_save_CFLAGS"
6899
6900		eval supported=\$$cacheid
6901		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6902$as_echo "$supported" >&6; }
6903		if test "$supported" = "yes" ; then
6904			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6905			found="yes"
6906		fi
6907	fi
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923xorg_testset_save_CFLAGS="$CFLAGS"
6924
6925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6926	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6927	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933/* end confdefs.h.  */
6934int i;
6935_ACEOF
6936if ac_fn_c_try_compile "$LINENO"; then :
6937  xorg_cv_cc_flag_unknown_warning_option=yes
6938else
6939  xorg_cv_cc_flag_unknown_warning_option=no
6940fi
6941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942fi
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6946	CFLAGS="$xorg_testset_save_CFLAGS"
6947fi
6948
6949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952	fi
6953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6957  $as_echo_n "(cached) " >&6
6958else
6959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961int i;
6962_ACEOF
6963if ac_fn_c_try_compile "$LINENO"; then :
6964  xorg_cv_cc_flag_unused_command_line_argument=yes
6965else
6966  xorg_cv_cc_flag_unused_command_line_argument=no
6967fi
6968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969fi
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6972	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6973	CFLAGS="$xorg_testset_save_CFLAGS"
6974fi
6975
6976found="no"
6977
6978	if test $found = "no" ; then
6979		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981		fi
6982
6983		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6984			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985		fi
6986
6987		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6988
6989		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6990$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6991		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6992		if eval \${$cacheid+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996/* end confdefs.h.  */
6997int i;
6998int
6999main ()
7000{
7001
7002  ;
7003  return 0;
7004}
7005_ACEOF
7006if ac_fn_c_try_link "$LINENO"; then :
7007  eval $cacheid=yes
7008else
7009  eval $cacheid=no
7010fi
7011rm -f core conftest.err conftest.$ac_objext \
7012    conftest$ac_exeext conftest.$ac_ext
7013fi
7014
7015
7016		CFLAGS="$xorg_testset_save_CFLAGS"
7017
7018		eval supported=\$$cacheid
7019		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7020$as_echo "$supported" >&6; }
7021		if test "$supported" = "yes" ; then
7022			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7023			found="yes"
7024		fi
7025	fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041xorg_testset_save_CFLAGS="$CFLAGS"
7042
7043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053_ACEOF
7054if ac_fn_c_try_compile "$LINENO"; then :
7055  xorg_cv_cc_flag_unknown_warning_option=yes
7056else
7057  xorg_cv_cc_flag_unknown_warning_option=no
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7064	CFLAGS="$xorg_testset_save_CFLAGS"
7065fi
7066
7067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070	fi
7071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7072	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079int i;
7080_ACEOF
7081if ac_fn_c_try_compile "$LINENO"; then :
7082  xorg_cv_cc_flag_unused_command_line_argument=yes
7083else
7084  xorg_cv_cc_flag_unused_command_line_argument=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087fi
7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091	CFLAGS="$xorg_testset_save_CFLAGS"
7092fi
7093
7094found="no"
7095
7096	if test $found = "no" ; then
7097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099		fi
7100
7101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103		fi
7104
7105		CFLAGS="$CFLAGS -Wredundant-decls"
7106
7107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7108$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7109		cacheid=xorg_cv_cc_flag__Wredundant_decls
7110		if eval \${$cacheid+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115int i;
7116int
7117main ()
7118{
7119
7120  ;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_link "$LINENO"; then :
7125  eval $cacheid=yes
7126else
7127  eval $cacheid=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130    conftest$ac_exeext conftest.$ac_ext
7131fi
7132
7133
7134		CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136		eval supported=\$$cacheid
7137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138$as_echo "$supported" >&6; }
7139		if test "$supported" = "yes" ; then
7140			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7141			found="yes"
7142		fi
7143	fi
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159xorg_testset_save_CFLAGS="$CFLAGS"
7160
7161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170int i;
7171_ACEOF
7172if ac_fn_c_try_compile "$LINENO"; then :
7173  xorg_cv_cc_flag_unknown_warning_option=yes
7174else
7175  xorg_cv_cc_flag_unknown_warning_option=no
7176fi
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7182	CFLAGS="$xorg_testset_save_CFLAGS"
7183fi
7184
7185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188	fi
7189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197int i;
7198_ACEOF
7199if ac_fn_c_try_compile "$LINENO"; then :
7200  xorg_cv_cc_flag_unused_command_line_argument=yes
7201else
7202  xorg_cv_cc_flag_unused_command_line_argument=no
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7209	CFLAGS="$xorg_testset_save_CFLAGS"
7210fi
7211
7212found="no"
7213
7214	if test $found = "no" ; then
7215		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217		fi
7218
7219		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7221		fi
7222
7223		CFLAGS="$CFLAGS -Wlogical-op"
7224
7225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7226$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7227		cacheid=xorg_cv_cc_flag__Wlogical_op
7228		if eval \${$cacheid+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_link "$LINENO"; then :
7243  eval $cacheid=yes
7244else
7245  eval $cacheid=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext \
7248    conftest$ac_exeext conftest.$ac_ext
7249fi
7250
7251
7252		CFLAGS="$xorg_testset_save_CFLAGS"
7253
7254		eval supported=\$$cacheid
7255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256$as_echo "$supported" >&6; }
7257		if test "$supported" = "yes" ; then
7258			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7259			found="yes"
7260		fi
7261	fi
7262
7263
7264
7265# These are currently disabled because they are noisy.  They will be enabled
7266# in the future once the codebase is sufficiently modernized to silence
7267# them.  For now, I don't want them to drown out the other warnings.
7268# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7269# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7270# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7271
7272# Turn some warnings into errors, so we don't accidently get successful builds
7273# when there are problems that should be fixed.
7274
7275if test "x$SELECTIVE_WERROR" = "xyes" ; then
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289xorg_testset_save_CFLAGS="$CFLAGS"
7290
7291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7294$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7295if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h.  */
7300int i;
7301_ACEOF
7302if ac_fn_c_try_compile "$LINENO"; then :
7303  xorg_cv_cc_flag_unknown_warning_option=yes
7304else
7305  xorg_cv_cc_flag_unknown_warning_option=no
7306fi
7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308fi
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7310$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7312	CFLAGS="$xorg_testset_save_CFLAGS"
7313fi
7314
7315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318	fi
7319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7321$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7322if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h.  */
7327int i;
7328_ACEOF
7329if ac_fn_c_try_compile "$LINENO"; then :
7330  xorg_cv_cc_flag_unused_command_line_argument=yes
7331else
7332  xorg_cv_cc_flag_unused_command_line_argument=no
7333fi
7334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335fi
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7337$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7339	CFLAGS="$xorg_testset_save_CFLAGS"
7340fi
7341
7342found="no"
7343
7344	if test $found = "no" ; then
7345		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7347		fi
7348
7349		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7351		fi
7352
7353		CFLAGS="$CFLAGS -Werror=implicit"
7354
7355		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7356$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7357		cacheid=xorg_cv_cc_flag__Werror_implicit
7358		if eval \${$cacheid+:} false; then :
7359  $as_echo_n "(cached) " >&6
7360else
7361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362/* end confdefs.h.  */
7363int i;
7364int
7365main ()
7366{
7367
7368  ;
7369  return 0;
7370}
7371_ACEOF
7372if ac_fn_c_try_link "$LINENO"; then :
7373  eval $cacheid=yes
7374else
7375  eval $cacheid=no
7376fi
7377rm -f core conftest.err conftest.$ac_objext \
7378    conftest$ac_exeext conftest.$ac_ext
7379fi
7380
7381
7382		CFLAGS="$xorg_testset_save_CFLAGS"
7383
7384		eval supported=\$$cacheid
7385		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7386$as_echo "$supported" >&6; }
7387		if test "$supported" = "yes" ; then
7388			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7389			found="yes"
7390		fi
7391	fi
7392
7393	if test $found = "no" ; then
7394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396		fi
7397
7398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7400		fi
7401
7402		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7403
7404		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7405$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7406		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7407		if eval \${$cacheid+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411/* end confdefs.h.  */
7412int i;
7413int
7414main ()
7415{
7416
7417  ;
7418  return 0;
7419}
7420_ACEOF
7421if ac_fn_c_try_link "$LINENO"; then :
7422  eval $cacheid=yes
7423else
7424  eval $cacheid=no
7425fi
7426rm -f core conftest.err conftest.$ac_objext \
7427    conftest$ac_exeext conftest.$ac_ext
7428fi
7429
7430
7431		CFLAGS="$xorg_testset_save_CFLAGS"
7432
7433		eval supported=\$$cacheid
7434		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7435$as_echo "$supported" >&6; }
7436		if test "$supported" = "yes" ; then
7437			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7438			found="yes"
7439		fi
7440	fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456xorg_testset_save_CFLAGS="$CFLAGS"
7457
7458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7463  $as_echo_n "(cached) " >&6
7464else
7465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466/* end confdefs.h.  */
7467int i;
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"; then :
7470  xorg_cv_cc_flag_unknown_warning_option=yes
7471else
7472  xorg_cv_cc_flag_unknown_warning_option=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475fi
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7479	CFLAGS="$xorg_testset_save_CFLAGS"
7480fi
7481
7482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485	fi
7486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7490  $as_echo_n "(cached) " >&6
7491else
7492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493/* end confdefs.h.  */
7494int i;
7495_ACEOF
7496if ac_fn_c_try_compile "$LINENO"; then :
7497  xorg_cv_cc_flag_unused_command_line_argument=yes
7498else
7499  xorg_cv_cc_flag_unused_command_line_argument=no
7500fi
7501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502fi
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7505	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7506	CFLAGS="$xorg_testset_save_CFLAGS"
7507fi
7508
7509found="no"
7510
7511	if test $found = "no" ; then
7512		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7513			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514		fi
7515
7516		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7517			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7518		fi
7519
7520		CFLAGS="$CFLAGS -Werror=nonnull"
7521
7522		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7523$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7524		cacheid=xorg_cv_cc_flag__Werror_nonnull
7525		if eval \${$cacheid+:} false; then :
7526  $as_echo_n "(cached) " >&6
7527else
7528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529/* end confdefs.h.  */
7530int i;
7531int
7532main ()
7533{
7534
7535  ;
7536  return 0;
7537}
7538_ACEOF
7539if ac_fn_c_try_link "$LINENO"; then :
7540  eval $cacheid=yes
7541else
7542  eval $cacheid=no
7543fi
7544rm -f core conftest.err conftest.$ac_objext \
7545    conftest$ac_exeext conftest.$ac_ext
7546fi
7547
7548
7549		CFLAGS="$xorg_testset_save_CFLAGS"
7550
7551		eval supported=\$$cacheid
7552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7553$as_echo "$supported" >&6; }
7554		if test "$supported" = "yes" ; then
7555			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7556			found="yes"
7557		fi
7558	fi
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574xorg_testset_save_CFLAGS="$CFLAGS"
7575
7576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585int i;
7586_ACEOF
7587if ac_fn_c_try_compile "$LINENO"; then :
7588  xorg_cv_cc_flag_unknown_warning_option=yes
7589else
7590  xorg_cv_cc_flag_unknown_warning_option=no
7591fi
7592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593fi
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7596	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7597	CFLAGS="$xorg_testset_save_CFLAGS"
7598fi
7599
7600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7601	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603	fi
7604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7608  $as_echo_n "(cached) " >&6
7609else
7610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611/* end confdefs.h.  */
7612int i;
7613_ACEOF
7614if ac_fn_c_try_compile "$LINENO"; then :
7615  xorg_cv_cc_flag_unused_command_line_argument=yes
7616else
7617  xorg_cv_cc_flag_unused_command_line_argument=no
7618fi
7619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620fi
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7624	CFLAGS="$xorg_testset_save_CFLAGS"
7625fi
7626
7627found="no"
7628
7629	if test $found = "no" ; then
7630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632		fi
7633
7634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7636		fi
7637
7638		CFLAGS="$CFLAGS -Werror=init-self"
7639
7640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7641$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7642		cacheid=xorg_cv_cc_flag__Werror_init_self
7643		if eval \${$cacheid+:} false; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h.  */
7648int i;
7649int
7650main ()
7651{
7652
7653  ;
7654  return 0;
7655}
7656_ACEOF
7657if ac_fn_c_try_link "$LINENO"; then :
7658  eval $cacheid=yes
7659else
7660  eval $cacheid=no
7661fi
7662rm -f core conftest.err conftest.$ac_objext \
7663    conftest$ac_exeext conftest.$ac_ext
7664fi
7665
7666
7667		CFLAGS="$xorg_testset_save_CFLAGS"
7668
7669		eval supported=\$$cacheid
7670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7671$as_echo "$supported" >&6; }
7672		if test "$supported" = "yes" ; then
7673			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7674			found="yes"
7675		fi
7676	fi
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692xorg_testset_save_CFLAGS="$CFLAGS"
7693
7694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702/* end confdefs.h.  */
7703int i;
7704_ACEOF
7705if ac_fn_c_try_compile "$LINENO"; then :
7706  xorg_cv_cc_flag_unknown_warning_option=yes
7707else
7708  xorg_cv_cc_flag_unknown_warning_option=no
7709fi
7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7714	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7715	CFLAGS="$xorg_testset_save_CFLAGS"
7716fi
7717
7718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7719	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7720		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721	fi
7722	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7726  $as_echo_n "(cached) " >&6
7727else
7728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729/* end confdefs.h.  */
7730int i;
7731_ACEOF
7732if ac_fn_c_try_compile "$LINENO"; then :
7733  xorg_cv_cc_flag_unused_command_line_argument=yes
7734else
7735  xorg_cv_cc_flag_unused_command_line_argument=no
7736fi
7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7742	CFLAGS="$xorg_testset_save_CFLAGS"
7743fi
7744
7745found="no"
7746
7747	if test $found = "no" ; then
7748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750		fi
7751
7752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7754		fi
7755
7756		CFLAGS="$CFLAGS -Werror=main"
7757
7758		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7759$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7760		cacheid=xorg_cv_cc_flag__Werror_main
7761		if eval \${$cacheid+:} false; then :
7762  $as_echo_n "(cached) " >&6
7763else
7764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765/* end confdefs.h.  */
7766int i;
7767int
7768main ()
7769{
7770
7771  ;
7772  return 0;
7773}
7774_ACEOF
7775if ac_fn_c_try_link "$LINENO"; then :
7776  eval $cacheid=yes
7777else
7778  eval $cacheid=no
7779fi
7780rm -f core conftest.err conftest.$ac_objext \
7781    conftest$ac_exeext conftest.$ac_ext
7782fi
7783
7784
7785		CFLAGS="$xorg_testset_save_CFLAGS"
7786
7787		eval supported=\$$cacheid
7788		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7789$as_echo "$supported" >&6; }
7790		if test "$supported" = "yes" ; then
7791			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7792			found="yes"
7793		fi
7794	fi
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810xorg_testset_save_CFLAGS="$CFLAGS"
7811
7812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7817  $as_echo_n "(cached) " >&6
7818else
7819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h.  */
7821int i;
7822_ACEOF
7823if ac_fn_c_try_compile "$LINENO"; then :
7824  xorg_cv_cc_flag_unknown_warning_option=yes
7825else
7826  xorg_cv_cc_flag_unknown_warning_option=no
7827fi
7828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7833	CFLAGS="$xorg_testset_save_CFLAGS"
7834fi
7835
7836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839	fi
7840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7844  $as_echo_n "(cached) " >&6
7845else
7846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848int i;
7849_ACEOF
7850if ac_fn_c_try_compile "$LINENO"; then :
7851  xorg_cv_cc_flag_unused_command_line_argument=yes
7852else
7853  xorg_cv_cc_flag_unused_command_line_argument=no
7854fi
7855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856fi
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7859	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7860	CFLAGS="$xorg_testset_save_CFLAGS"
7861fi
7862
7863found="no"
7864
7865	if test $found = "no" ; then
7866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868		fi
7869
7870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7872		fi
7873
7874		CFLAGS="$CFLAGS -Werror=missing-braces"
7875
7876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7877$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7878		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7879		if eval \${$cacheid+:} false; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883/* end confdefs.h.  */
7884int i;
7885int
7886main ()
7887{
7888
7889  ;
7890  return 0;
7891}
7892_ACEOF
7893if ac_fn_c_try_link "$LINENO"; then :
7894  eval $cacheid=yes
7895else
7896  eval $cacheid=no
7897fi
7898rm -f core conftest.err conftest.$ac_objext \
7899    conftest$ac_exeext conftest.$ac_ext
7900fi
7901
7902
7903		CFLAGS="$xorg_testset_save_CFLAGS"
7904
7905		eval supported=\$$cacheid
7906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7907$as_echo "$supported" >&6; }
7908		if test "$supported" = "yes" ; then
7909			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7910			found="yes"
7911		fi
7912	fi
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928xorg_testset_save_CFLAGS="$CFLAGS"
7929
7930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7931	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939int i;
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"; then :
7942  xorg_cv_cc_flag_unknown_warning_option=yes
7943else
7944  xorg_cv_cc_flag_unknown_warning_option=no
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7950	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7951	CFLAGS="$xorg_testset_save_CFLAGS"
7952fi
7953
7954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7955	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957	fi
7958	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7962  $as_echo_n "(cached) " >&6
7963else
7964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966int i;
7967_ACEOF
7968if ac_fn_c_try_compile "$LINENO"; then :
7969  xorg_cv_cc_flag_unused_command_line_argument=yes
7970else
7971  xorg_cv_cc_flag_unused_command_line_argument=no
7972fi
7973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974fi
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7977	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7978	CFLAGS="$xorg_testset_save_CFLAGS"
7979fi
7980
7981found="no"
7982
7983	if test $found = "no" ; then
7984		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986		fi
7987
7988		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7989			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7990		fi
7991
7992		CFLAGS="$CFLAGS -Werror=sequence-point"
7993
7994		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7995$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7996		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7997		if eval \${$cacheid+:} false; then :
7998  $as_echo_n "(cached) " >&6
7999else
8000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001/* end confdefs.h.  */
8002int i;
8003int
8004main ()
8005{
8006
8007  ;
8008  return 0;
8009}
8010_ACEOF
8011if ac_fn_c_try_link "$LINENO"; then :
8012  eval $cacheid=yes
8013else
8014  eval $cacheid=no
8015fi
8016rm -f core conftest.err conftest.$ac_objext \
8017    conftest$ac_exeext conftest.$ac_ext
8018fi
8019
8020
8021		CFLAGS="$xorg_testset_save_CFLAGS"
8022
8023		eval supported=\$$cacheid
8024		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8025$as_echo "$supported" >&6; }
8026		if test "$supported" = "yes" ; then
8027			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8028			found="yes"
8029		fi
8030	fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046xorg_testset_save_CFLAGS="$CFLAGS"
8047
8048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8049	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057int i;
8058_ACEOF
8059if ac_fn_c_try_compile "$LINENO"; then :
8060  xorg_cv_cc_flag_unknown_warning_option=yes
8061else
8062  xorg_cv_cc_flag_unknown_warning_option=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065fi
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8069	CFLAGS="$xorg_testset_save_CFLAGS"
8070fi
8071
8072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075	fi
8076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084int i;
8085_ACEOF
8086if ac_fn_c_try_compile "$LINENO"; then :
8087  xorg_cv_cc_flag_unused_command_line_argument=yes
8088else
8089  xorg_cv_cc_flag_unused_command_line_argument=no
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092fi
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8095	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8096	CFLAGS="$xorg_testset_save_CFLAGS"
8097fi
8098
8099found="no"
8100
8101	if test $found = "no" ; then
8102		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8103			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104		fi
8105
8106		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8107			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8108		fi
8109
8110		CFLAGS="$CFLAGS -Werror=return-type"
8111
8112		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8113$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8114		cacheid=xorg_cv_cc_flag__Werror_return_type
8115		if eval \${$cacheid+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120int i;
8121int
8122main ()
8123{
8124
8125  ;
8126  return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_link "$LINENO"; then :
8130  eval $cacheid=yes
8131else
8132  eval $cacheid=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext \
8135    conftest$ac_exeext conftest.$ac_ext
8136fi
8137
8138
8139		CFLAGS="$xorg_testset_save_CFLAGS"
8140
8141		eval supported=\$$cacheid
8142		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8143$as_echo "$supported" >&6; }
8144		if test "$supported" = "yes" ; then
8145			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8146			found="yes"
8147		fi
8148	fi
8149
8150	if test $found = "no" ; then
8151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153		fi
8154
8155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8157		fi
8158
8159		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8160
8161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8162$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8163		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8164		if eval \${$cacheid+:} false; then :
8165  $as_echo_n "(cached) " >&6
8166else
8167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h.  */
8169int i;
8170int
8171main ()
8172{
8173
8174  ;
8175  return 0;
8176}
8177_ACEOF
8178if ac_fn_c_try_link "$LINENO"; then :
8179  eval $cacheid=yes
8180else
8181  eval $cacheid=no
8182fi
8183rm -f core conftest.err conftest.$ac_objext \
8184    conftest$ac_exeext conftest.$ac_ext
8185fi
8186
8187
8188		CFLAGS="$xorg_testset_save_CFLAGS"
8189
8190		eval supported=\$$cacheid
8191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8192$as_echo "$supported" >&6; }
8193		if test "$supported" = "yes" ; then
8194			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8195			found="yes"
8196		fi
8197	fi
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213xorg_testset_save_CFLAGS="$CFLAGS"
8214
8215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8220  $as_echo_n "(cached) " >&6
8221else
8222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223/* end confdefs.h.  */
8224int i;
8225_ACEOF
8226if ac_fn_c_try_compile "$LINENO"; then :
8227  xorg_cv_cc_flag_unknown_warning_option=yes
8228else
8229  xorg_cv_cc_flag_unknown_warning_option=no
8230fi
8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232fi
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8236	CFLAGS="$xorg_testset_save_CFLAGS"
8237fi
8238
8239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242	fi
8243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8244	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8247  $as_echo_n "(cached) " >&6
8248else
8249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h.  */
8251int i;
8252_ACEOF
8253if ac_fn_c_try_compile "$LINENO"; then :
8254  xorg_cv_cc_flag_unused_command_line_argument=yes
8255else
8256  xorg_cv_cc_flag_unused_command_line_argument=no
8257fi
8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259fi
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8263	CFLAGS="$xorg_testset_save_CFLAGS"
8264fi
8265
8266found="no"
8267
8268	if test $found = "no" ; then
8269		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271		fi
8272
8273		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275		fi
8276
8277		CFLAGS="$CFLAGS -Werror=trigraphs"
8278
8279		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8280$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8281		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8282		if eval \${$cacheid+:} false; then :
8283  $as_echo_n "(cached) " >&6
8284else
8285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h.  */
8287int i;
8288int
8289main ()
8290{
8291
8292  ;
8293  return 0;
8294}
8295_ACEOF
8296if ac_fn_c_try_link "$LINENO"; then :
8297  eval $cacheid=yes
8298else
8299  eval $cacheid=no
8300fi
8301rm -f core conftest.err conftest.$ac_objext \
8302    conftest$ac_exeext conftest.$ac_ext
8303fi
8304
8305
8306		CFLAGS="$xorg_testset_save_CFLAGS"
8307
8308		eval supported=\$$cacheid
8309		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8310$as_echo "$supported" >&6; }
8311		if test "$supported" = "yes" ; then
8312			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8313			found="yes"
8314		fi
8315	fi
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331xorg_testset_save_CFLAGS="$CFLAGS"
8332
8333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8338  $as_echo_n "(cached) " >&6
8339else
8340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341/* end confdefs.h.  */
8342int i;
8343_ACEOF
8344if ac_fn_c_try_compile "$LINENO"; then :
8345  xorg_cv_cc_flag_unknown_warning_option=yes
8346else
8347  xorg_cv_cc_flag_unknown_warning_option=no
8348fi
8349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8353	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8354	CFLAGS="$xorg_testset_save_CFLAGS"
8355fi
8356
8357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8358	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8359		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8360	fi
8361	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8362	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8365  $as_echo_n "(cached) " >&6
8366else
8367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368/* end confdefs.h.  */
8369int i;
8370_ACEOF
8371if ac_fn_c_try_compile "$LINENO"; then :
8372  xorg_cv_cc_flag_unused_command_line_argument=yes
8373else
8374  xorg_cv_cc_flag_unused_command_line_argument=no
8375fi
8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377fi
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8381	CFLAGS="$xorg_testset_save_CFLAGS"
8382fi
8383
8384found="no"
8385
8386	if test $found = "no" ; then
8387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8389		fi
8390
8391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8393		fi
8394
8395		CFLAGS="$CFLAGS -Werror=array-bounds"
8396
8397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8398$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8399		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8400		if eval \${$cacheid+:} false; then :
8401  $as_echo_n "(cached) " >&6
8402else
8403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404/* end confdefs.h.  */
8405int i;
8406int
8407main ()
8408{
8409
8410  ;
8411  return 0;
8412}
8413_ACEOF
8414if ac_fn_c_try_link "$LINENO"; then :
8415  eval $cacheid=yes
8416else
8417  eval $cacheid=no
8418fi
8419rm -f core conftest.err conftest.$ac_objext \
8420    conftest$ac_exeext conftest.$ac_ext
8421fi
8422
8423
8424		CFLAGS="$xorg_testset_save_CFLAGS"
8425
8426		eval supported=\$$cacheid
8427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8428$as_echo "$supported" >&6; }
8429		if test "$supported" = "yes" ; then
8430			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8431			found="yes"
8432		fi
8433	fi
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449xorg_testset_save_CFLAGS="$CFLAGS"
8450
8451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460int i;
8461_ACEOF
8462if ac_fn_c_try_compile "$LINENO"; then :
8463  xorg_cv_cc_flag_unknown_warning_option=yes
8464else
8465  xorg_cv_cc_flag_unknown_warning_option=no
8466fi
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468fi
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8472	CFLAGS="$xorg_testset_save_CFLAGS"
8473fi
8474
8475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8478	fi
8479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8483  $as_echo_n "(cached) " >&6
8484else
8485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h.  */
8487int i;
8488_ACEOF
8489if ac_fn_c_try_compile "$LINENO"; then :
8490  xorg_cv_cc_flag_unused_command_line_argument=yes
8491else
8492  xorg_cv_cc_flag_unused_command_line_argument=no
8493fi
8494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495fi
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8498	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8499	CFLAGS="$xorg_testset_save_CFLAGS"
8500fi
8501
8502found="no"
8503
8504	if test $found = "no" ; then
8505		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8507		fi
8508
8509		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511		fi
8512
8513		CFLAGS="$CFLAGS -Werror=write-strings"
8514
8515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8516$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8517		cacheid=xorg_cv_cc_flag__Werror_write_strings
8518		if eval \${$cacheid+:} false; then :
8519  $as_echo_n "(cached) " >&6
8520else
8521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523int i;
8524int
8525main ()
8526{
8527
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532if ac_fn_c_try_link "$LINENO"; then :
8533  eval $cacheid=yes
8534else
8535  eval $cacheid=no
8536fi
8537rm -f core conftest.err conftest.$ac_objext \
8538    conftest$ac_exeext conftest.$ac_ext
8539fi
8540
8541
8542		CFLAGS="$xorg_testset_save_CFLAGS"
8543
8544		eval supported=\$$cacheid
8545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8546$as_echo "$supported" >&6; }
8547		if test "$supported" = "yes" ; then
8548			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8549			found="yes"
8550		fi
8551	fi
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567xorg_testset_save_CFLAGS="$CFLAGS"
8568
8569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8574  $as_echo_n "(cached) " >&6
8575else
8576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h.  */
8578int i;
8579_ACEOF
8580if ac_fn_c_try_compile "$LINENO"; then :
8581  xorg_cv_cc_flag_unknown_warning_option=yes
8582else
8583  xorg_cv_cc_flag_unknown_warning_option=no
8584fi
8585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586fi
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8590	CFLAGS="$xorg_testset_save_CFLAGS"
8591fi
8592
8593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596	fi
8597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8601  $as_echo_n "(cached) " >&6
8602else
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605int i;
8606_ACEOF
8607if ac_fn_c_try_compile "$LINENO"; then :
8608  xorg_cv_cc_flag_unused_command_line_argument=yes
8609else
8610  xorg_cv_cc_flag_unused_command_line_argument=no
8611fi
8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613fi
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8617	CFLAGS="$xorg_testset_save_CFLAGS"
8618fi
8619
8620found="no"
8621
8622	if test $found = "no" ; then
8623		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8625		fi
8626
8627		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8629		fi
8630
8631		CFLAGS="$CFLAGS -Werror=address"
8632
8633		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8634$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8635		cacheid=xorg_cv_cc_flag__Werror_address
8636		if eval \${$cacheid+:} false; then :
8637  $as_echo_n "(cached) " >&6
8638else
8639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640/* end confdefs.h.  */
8641int i;
8642int
8643main ()
8644{
8645
8646  ;
8647  return 0;
8648}
8649_ACEOF
8650if ac_fn_c_try_link "$LINENO"; then :
8651  eval $cacheid=yes
8652else
8653  eval $cacheid=no
8654fi
8655rm -f core conftest.err conftest.$ac_objext \
8656    conftest$ac_exeext conftest.$ac_ext
8657fi
8658
8659
8660		CFLAGS="$xorg_testset_save_CFLAGS"
8661
8662		eval supported=\$$cacheid
8663		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8664$as_echo "$supported" >&6; }
8665		if test "$supported" = "yes" ; then
8666			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8667			found="yes"
8668		fi
8669	fi
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685xorg_testset_save_CFLAGS="$CFLAGS"
8686
8687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8692  $as_echo_n "(cached) " >&6
8693else
8694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695/* end confdefs.h.  */
8696int i;
8697_ACEOF
8698if ac_fn_c_try_compile "$LINENO"; then :
8699  xorg_cv_cc_flag_unknown_warning_option=yes
8700else
8701  xorg_cv_cc_flag_unknown_warning_option=no
8702fi
8703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8708	CFLAGS="$xorg_testset_save_CFLAGS"
8709fi
8710
8711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8714	fi
8715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722/* end confdefs.h.  */
8723int i;
8724_ACEOF
8725if ac_fn_c_try_compile "$LINENO"; then :
8726  xorg_cv_cc_flag_unused_command_line_argument=yes
8727else
8728  xorg_cv_cc_flag_unused_command_line_argument=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731fi
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8735	CFLAGS="$xorg_testset_save_CFLAGS"
8736fi
8737
8738found="no"
8739
8740	if test $found = "no" ; then
8741		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8743		fi
8744
8745		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8747		fi
8748
8749		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8750
8751		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8752$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8753		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8754		if eval \${$cacheid+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h.  */
8759int i;
8760int
8761main ()
8762{
8763
8764  ;
8765  return 0;
8766}
8767_ACEOF
8768if ac_fn_c_try_link "$LINENO"; then :
8769  eval $cacheid=yes
8770else
8771  eval $cacheid=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext \
8774    conftest$ac_exeext conftest.$ac_ext
8775fi
8776
8777
8778		CFLAGS="$xorg_testset_save_CFLAGS"
8779
8780		eval supported=\$$cacheid
8781		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8782$as_echo "$supported" >&6; }
8783		if test "$supported" = "yes" ; then
8784			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8785			found="yes"
8786		fi
8787	fi
8788
8789	if test $found = "no" ; then
8790		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792		fi
8793
8794		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8796		fi
8797
8798		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8799
8800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8801$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8802		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8803		if eval \${$cacheid+:} false; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809int
8810main ()
8811{
8812
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_link "$LINENO"; then :
8818  eval $cacheid=yes
8819else
8820  eval $cacheid=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext \
8823    conftest$ac_exeext conftest.$ac_ext
8824fi
8825
8826
8827		CFLAGS="$xorg_testset_save_CFLAGS"
8828
8829		eval supported=\$$cacheid
8830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8831$as_echo "$supported" >&6; }
8832		if test "$supported" = "yes" ; then
8833			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8834			found="yes"
8835		fi
8836	fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852xorg_testset_save_CFLAGS="$CFLAGS"
8853
8854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h.  */
8863int i;
8864_ACEOF
8865if ac_fn_c_try_compile "$LINENO"; then :
8866  xorg_cv_cc_flag_unknown_warning_option=yes
8867else
8868  xorg_cv_cc_flag_unknown_warning_option=no
8869fi
8870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8875	CFLAGS="$xorg_testset_save_CFLAGS"
8876fi
8877
8878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881	fi
8882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891_ACEOF
8892if ac_fn_c_try_compile "$LINENO"; then :
8893  xorg_cv_cc_flag_unused_command_line_argument=yes
8894else
8895  xorg_cv_cc_flag_unused_command_line_argument=no
8896fi
8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898fi
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8902	CFLAGS="$xorg_testset_save_CFLAGS"
8903fi
8904
8905found="no"
8906
8907	if test $found = "no" ; then
8908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910		fi
8911
8912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914		fi
8915
8916		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8917
8918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8919$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8920		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8921		if eval \${$cacheid+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927int
8928main ()
8929{
8930
8931  ;
8932  return 0;
8933}
8934_ACEOF
8935if ac_fn_c_try_link "$LINENO"; then :
8936  eval $cacheid=yes
8937else
8938  eval $cacheid=no
8939fi
8940rm -f core conftest.err conftest.$ac_objext \
8941    conftest$ac_exeext conftest.$ac_ext
8942fi
8943
8944
8945		CFLAGS="$xorg_testset_save_CFLAGS"
8946
8947		eval supported=\$$cacheid
8948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8949$as_echo "$supported" >&6; }
8950		if test "$supported" = "yes" ; then
8951			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8952			found="yes"
8953		fi
8954	fi
8955
8956 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8957else
8958{ $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
8959$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;}
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973xorg_testset_save_CFLAGS="$CFLAGS"
8974
8975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983/* end confdefs.h.  */
8984int i;
8985_ACEOF
8986if ac_fn_c_try_compile "$LINENO"; then :
8987  xorg_cv_cc_flag_unknown_warning_option=yes
8988else
8989  xorg_cv_cc_flag_unknown_warning_option=no
8990fi
8991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992fi
8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8996	CFLAGS="$xorg_testset_save_CFLAGS"
8997fi
8998
8999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9002	fi
9003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h.  */
9011int i;
9012_ACEOF
9013if ac_fn_c_try_compile "$LINENO"; then :
9014  xorg_cv_cc_flag_unused_command_line_argument=yes
9015else
9016  xorg_cv_cc_flag_unused_command_line_argument=no
9017fi
9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019fi
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9023	CFLAGS="$xorg_testset_save_CFLAGS"
9024fi
9025
9026found="no"
9027
9028	if test $found = "no" ; then
9029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9031		fi
9032
9033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9035		fi
9036
9037		CFLAGS="$CFLAGS -Wimplicit"
9038
9039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9040$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9041		cacheid=xorg_cv_cc_flag__Wimplicit
9042		if eval \${$cacheid+:} false; then :
9043  $as_echo_n "(cached) " >&6
9044else
9045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h.  */
9047int i;
9048int
9049main ()
9050{
9051
9052  ;
9053  return 0;
9054}
9055_ACEOF
9056if ac_fn_c_try_link "$LINENO"; then :
9057  eval $cacheid=yes
9058else
9059  eval $cacheid=no
9060fi
9061rm -f core conftest.err conftest.$ac_objext \
9062    conftest$ac_exeext conftest.$ac_ext
9063fi
9064
9065
9066		CFLAGS="$xorg_testset_save_CFLAGS"
9067
9068		eval supported=\$$cacheid
9069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9070$as_echo "$supported" >&6; }
9071		if test "$supported" = "yes" ; then
9072			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9073			found="yes"
9074		fi
9075	fi
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091xorg_testset_save_CFLAGS="$CFLAGS"
9092
9093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9098  $as_echo_n "(cached) " >&6
9099else
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103_ACEOF
9104if ac_fn_c_try_compile "$LINENO"; then :
9105  xorg_cv_cc_flag_unknown_warning_option=yes
9106else
9107  xorg_cv_cc_flag_unknown_warning_option=no
9108fi
9109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110fi
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9114	CFLAGS="$xorg_testset_save_CFLAGS"
9115fi
9116
9117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120	fi
9121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9125  $as_echo_n "(cached) " >&6
9126else
9127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128/* end confdefs.h.  */
9129int i;
9130_ACEOF
9131if ac_fn_c_try_compile "$LINENO"; then :
9132  xorg_cv_cc_flag_unused_command_line_argument=yes
9133else
9134  xorg_cv_cc_flag_unused_command_line_argument=no
9135fi
9136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137fi
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9141	CFLAGS="$xorg_testset_save_CFLAGS"
9142fi
9143
9144found="no"
9145
9146	if test $found = "no" ; then
9147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9149		fi
9150
9151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153		fi
9154
9155		CFLAGS="$CFLAGS -Wnonnull"
9156
9157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9158$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9159		cacheid=xorg_cv_cc_flag__Wnonnull
9160		if eval \${$cacheid+:} false; then :
9161  $as_echo_n "(cached) " >&6
9162else
9163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164/* end confdefs.h.  */
9165int i;
9166int
9167main ()
9168{
9169
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174if ac_fn_c_try_link "$LINENO"; then :
9175  eval $cacheid=yes
9176else
9177  eval $cacheid=no
9178fi
9179rm -f core conftest.err conftest.$ac_objext \
9180    conftest$ac_exeext conftest.$ac_ext
9181fi
9182
9183
9184		CFLAGS="$xorg_testset_save_CFLAGS"
9185
9186		eval supported=\$$cacheid
9187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9188$as_echo "$supported" >&6; }
9189		if test "$supported" = "yes" ; then
9190			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9191			found="yes"
9192		fi
9193	fi
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209xorg_testset_save_CFLAGS="$CFLAGS"
9210
9211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9216  $as_echo_n "(cached) " >&6
9217else
9218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219/* end confdefs.h.  */
9220int i;
9221_ACEOF
9222if ac_fn_c_try_compile "$LINENO"; then :
9223  xorg_cv_cc_flag_unknown_warning_option=yes
9224else
9225  xorg_cv_cc_flag_unknown_warning_option=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228fi
9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9232	CFLAGS="$xorg_testset_save_CFLAGS"
9233fi
9234
9235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238	fi
9239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9243  $as_echo_n "(cached) " >&6
9244else
9245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h.  */
9247int i;
9248_ACEOF
9249if ac_fn_c_try_compile "$LINENO"; then :
9250  xorg_cv_cc_flag_unused_command_line_argument=yes
9251else
9252  xorg_cv_cc_flag_unused_command_line_argument=no
9253fi
9254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255fi
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9259	CFLAGS="$xorg_testset_save_CFLAGS"
9260fi
9261
9262found="no"
9263
9264	if test $found = "no" ; then
9265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9267		fi
9268
9269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271		fi
9272
9273		CFLAGS="$CFLAGS -Winit-self"
9274
9275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9276$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9277		cacheid=xorg_cv_cc_flag__Winit_self
9278		if eval \${$cacheid+:} false; then :
9279  $as_echo_n "(cached) " >&6
9280else
9281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282/* end confdefs.h.  */
9283int i;
9284int
9285main ()
9286{
9287
9288  ;
9289  return 0;
9290}
9291_ACEOF
9292if ac_fn_c_try_link "$LINENO"; then :
9293  eval $cacheid=yes
9294else
9295  eval $cacheid=no
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298    conftest$ac_exeext conftest.$ac_ext
9299fi
9300
9301
9302		CFLAGS="$xorg_testset_save_CFLAGS"
9303
9304		eval supported=\$$cacheid
9305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9306$as_echo "$supported" >&6; }
9307		if test "$supported" = "yes" ; then
9308			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9309			found="yes"
9310		fi
9311	fi
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327xorg_testset_save_CFLAGS="$CFLAGS"
9328
9329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9334  $as_echo_n "(cached) " >&6
9335else
9336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337/* end confdefs.h.  */
9338int i;
9339_ACEOF
9340if ac_fn_c_try_compile "$LINENO"; then :
9341  xorg_cv_cc_flag_unknown_warning_option=yes
9342else
9343  xorg_cv_cc_flag_unknown_warning_option=no
9344fi
9345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9350	CFLAGS="$xorg_testset_save_CFLAGS"
9351fi
9352
9353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9356	fi
9357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9361  $as_echo_n "(cached) " >&6
9362else
9363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h.  */
9365int i;
9366_ACEOF
9367if ac_fn_c_try_compile "$LINENO"; then :
9368  xorg_cv_cc_flag_unused_command_line_argument=yes
9369else
9370  xorg_cv_cc_flag_unused_command_line_argument=no
9371fi
9372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373fi
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9377	CFLAGS="$xorg_testset_save_CFLAGS"
9378fi
9379
9380found="no"
9381
9382	if test $found = "no" ; then
9383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385		fi
9386
9387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9389		fi
9390
9391		CFLAGS="$CFLAGS -Wmain"
9392
9393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9394$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9395		cacheid=xorg_cv_cc_flag__Wmain
9396		if eval \${$cacheid+:} false; then :
9397  $as_echo_n "(cached) " >&6
9398else
9399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400/* end confdefs.h.  */
9401int i;
9402int
9403main ()
9404{
9405
9406  ;
9407  return 0;
9408}
9409_ACEOF
9410if ac_fn_c_try_link "$LINENO"; then :
9411  eval $cacheid=yes
9412else
9413  eval $cacheid=no
9414fi
9415rm -f core conftest.err conftest.$ac_objext \
9416    conftest$ac_exeext conftest.$ac_ext
9417fi
9418
9419
9420		CFLAGS="$xorg_testset_save_CFLAGS"
9421
9422		eval supported=\$$cacheid
9423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9424$as_echo "$supported" >&6; }
9425		if test "$supported" = "yes" ; then
9426			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9427			found="yes"
9428		fi
9429	fi
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445xorg_testset_save_CFLAGS="$CFLAGS"
9446
9447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9452  $as_echo_n "(cached) " >&6
9453else
9454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456int i;
9457_ACEOF
9458if ac_fn_c_try_compile "$LINENO"; then :
9459  xorg_cv_cc_flag_unknown_warning_option=yes
9460else
9461  xorg_cv_cc_flag_unknown_warning_option=no
9462fi
9463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464fi
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9468	CFLAGS="$xorg_testset_save_CFLAGS"
9469fi
9470
9471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474	fi
9475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9479  $as_echo_n "(cached) " >&6
9480else
9481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h.  */
9483int i;
9484_ACEOF
9485if ac_fn_c_try_compile "$LINENO"; then :
9486  xorg_cv_cc_flag_unused_command_line_argument=yes
9487else
9488  xorg_cv_cc_flag_unused_command_line_argument=no
9489fi
9490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491fi
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9495	CFLAGS="$xorg_testset_save_CFLAGS"
9496fi
9497
9498found="no"
9499
9500	if test $found = "no" ; then
9501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9503		fi
9504
9505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9507		fi
9508
9509		CFLAGS="$CFLAGS -Wmissing-braces"
9510
9511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9512$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9513		cacheid=xorg_cv_cc_flag__Wmissing_braces
9514		if eval \${$cacheid+:} false; then :
9515  $as_echo_n "(cached) " >&6
9516else
9517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518/* end confdefs.h.  */
9519int i;
9520int
9521main ()
9522{
9523
9524  ;
9525  return 0;
9526}
9527_ACEOF
9528if ac_fn_c_try_link "$LINENO"; then :
9529  eval $cacheid=yes
9530else
9531  eval $cacheid=no
9532fi
9533rm -f core conftest.err conftest.$ac_objext \
9534    conftest$ac_exeext conftest.$ac_ext
9535fi
9536
9537
9538		CFLAGS="$xorg_testset_save_CFLAGS"
9539
9540		eval supported=\$$cacheid
9541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9542$as_echo "$supported" >&6; }
9543		if test "$supported" = "yes" ; then
9544			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9545			found="yes"
9546		fi
9547	fi
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563xorg_testset_save_CFLAGS="$CFLAGS"
9564
9565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9570  $as_echo_n "(cached) " >&6
9571else
9572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573/* end confdefs.h.  */
9574int i;
9575_ACEOF
9576if ac_fn_c_try_compile "$LINENO"; then :
9577  xorg_cv_cc_flag_unknown_warning_option=yes
9578else
9579  xorg_cv_cc_flag_unknown_warning_option=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582fi
9583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9586	CFLAGS="$xorg_testset_save_CFLAGS"
9587fi
9588
9589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9592	fi
9593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9597  $as_echo_n "(cached) " >&6
9598else
9599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600/* end confdefs.h.  */
9601int i;
9602_ACEOF
9603if ac_fn_c_try_compile "$LINENO"; then :
9604  xorg_cv_cc_flag_unused_command_line_argument=yes
9605else
9606  xorg_cv_cc_flag_unused_command_line_argument=no
9607fi
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609fi
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9613	CFLAGS="$xorg_testset_save_CFLAGS"
9614fi
9615
9616found="no"
9617
9618	if test $found = "no" ; then
9619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9621		fi
9622
9623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9625		fi
9626
9627		CFLAGS="$CFLAGS -Wsequence-point"
9628
9629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9630$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9631		cacheid=xorg_cv_cc_flag__Wsequence_point
9632		if eval \${$cacheid+:} false; then :
9633  $as_echo_n "(cached) " >&6
9634else
9635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h.  */
9637int i;
9638int
9639main ()
9640{
9641
9642  ;
9643  return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"; then :
9647  eval $cacheid=yes
9648else
9649  eval $cacheid=no
9650fi
9651rm -f core conftest.err conftest.$ac_objext \
9652    conftest$ac_exeext conftest.$ac_ext
9653fi
9654
9655
9656		CFLAGS="$xorg_testset_save_CFLAGS"
9657
9658		eval supported=\$$cacheid
9659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9660$as_echo "$supported" >&6; }
9661		if test "$supported" = "yes" ; then
9662			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9663			found="yes"
9664		fi
9665	fi
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681xorg_testset_save_CFLAGS="$CFLAGS"
9682
9683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9688  $as_echo_n "(cached) " >&6
9689else
9690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691/* end confdefs.h.  */
9692int i;
9693_ACEOF
9694if ac_fn_c_try_compile "$LINENO"; then :
9695  xorg_cv_cc_flag_unknown_warning_option=yes
9696else
9697  xorg_cv_cc_flag_unknown_warning_option=no
9698fi
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700fi
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9704	CFLAGS="$xorg_testset_save_CFLAGS"
9705fi
9706
9707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710	fi
9711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9715  $as_echo_n "(cached) " >&6
9716else
9717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h.  */
9719int i;
9720_ACEOF
9721if ac_fn_c_try_compile "$LINENO"; then :
9722  xorg_cv_cc_flag_unused_command_line_argument=yes
9723else
9724  xorg_cv_cc_flag_unused_command_line_argument=no
9725fi
9726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727fi
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9731	CFLAGS="$xorg_testset_save_CFLAGS"
9732fi
9733
9734found="no"
9735
9736	if test $found = "no" ; then
9737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9739		fi
9740
9741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9743		fi
9744
9745		CFLAGS="$CFLAGS -Wreturn-type"
9746
9747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9748$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9749		cacheid=xorg_cv_cc_flag__Wreturn_type
9750		if eval \${$cacheid+:} false; then :
9751  $as_echo_n "(cached) " >&6
9752else
9753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755int i;
9756int
9757main ()
9758{
9759
9760  ;
9761  return 0;
9762}
9763_ACEOF
9764if ac_fn_c_try_link "$LINENO"; then :
9765  eval $cacheid=yes
9766else
9767  eval $cacheid=no
9768fi
9769rm -f core conftest.err conftest.$ac_objext \
9770    conftest$ac_exeext conftest.$ac_ext
9771fi
9772
9773
9774		CFLAGS="$xorg_testset_save_CFLAGS"
9775
9776		eval supported=\$$cacheid
9777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9778$as_echo "$supported" >&6; }
9779		if test "$supported" = "yes" ; then
9780			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9781			found="yes"
9782		fi
9783	fi
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799xorg_testset_save_CFLAGS="$CFLAGS"
9800
9801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h.  */
9810int i;
9811_ACEOF
9812if ac_fn_c_try_compile "$LINENO"; then :
9813  xorg_cv_cc_flag_unknown_warning_option=yes
9814else
9815  xorg_cv_cc_flag_unknown_warning_option=no
9816fi
9817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818fi
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9822	CFLAGS="$xorg_testset_save_CFLAGS"
9823fi
9824
9825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828	fi
9829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9833  $as_echo_n "(cached) " >&6
9834else
9835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836/* end confdefs.h.  */
9837int i;
9838_ACEOF
9839if ac_fn_c_try_compile "$LINENO"; then :
9840  xorg_cv_cc_flag_unused_command_line_argument=yes
9841else
9842  xorg_cv_cc_flag_unused_command_line_argument=no
9843fi
9844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9845fi
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9849	CFLAGS="$xorg_testset_save_CFLAGS"
9850fi
9851
9852found="no"
9853
9854	if test $found = "no" ; then
9855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9857		fi
9858
9859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9861		fi
9862
9863		CFLAGS="$CFLAGS -Wtrigraphs"
9864
9865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9866$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9867		cacheid=xorg_cv_cc_flag__Wtrigraphs
9868		if eval \${$cacheid+:} false; then :
9869  $as_echo_n "(cached) " >&6
9870else
9871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h.  */
9873int i;
9874int
9875main ()
9876{
9877
9878  ;
9879  return 0;
9880}
9881_ACEOF
9882if ac_fn_c_try_link "$LINENO"; then :
9883  eval $cacheid=yes
9884else
9885  eval $cacheid=no
9886fi
9887rm -f core conftest.err conftest.$ac_objext \
9888    conftest$ac_exeext conftest.$ac_ext
9889fi
9890
9891
9892		CFLAGS="$xorg_testset_save_CFLAGS"
9893
9894		eval supported=\$$cacheid
9895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9896$as_echo "$supported" >&6; }
9897		if test "$supported" = "yes" ; then
9898			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9899			found="yes"
9900		fi
9901	fi
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917xorg_testset_save_CFLAGS="$CFLAGS"
9918
9919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9924  $as_echo_n "(cached) " >&6
9925else
9926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int i;
9929_ACEOF
9930if ac_fn_c_try_compile "$LINENO"; then :
9931  xorg_cv_cc_flag_unknown_warning_option=yes
9932else
9933  xorg_cv_cc_flag_unknown_warning_option=no
9934fi
9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9940	CFLAGS="$xorg_testset_save_CFLAGS"
9941fi
9942
9943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9946	fi
9947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9951  $as_echo_n "(cached) " >&6
9952else
9953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954/* end confdefs.h.  */
9955int i;
9956_ACEOF
9957if ac_fn_c_try_compile "$LINENO"; then :
9958  xorg_cv_cc_flag_unused_command_line_argument=yes
9959else
9960  xorg_cv_cc_flag_unused_command_line_argument=no
9961fi
9962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9963fi
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9967	CFLAGS="$xorg_testset_save_CFLAGS"
9968fi
9969
9970found="no"
9971
9972	if test $found = "no" ; then
9973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975		fi
9976
9977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9979		fi
9980
9981		CFLAGS="$CFLAGS -Warray-bounds"
9982
9983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9984$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9985		cacheid=xorg_cv_cc_flag__Warray_bounds
9986		if eval \${$cacheid+:} false; then :
9987  $as_echo_n "(cached) " >&6
9988else
9989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990/* end confdefs.h.  */
9991int i;
9992int
9993main ()
9994{
9995
9996  ;
9997  return 0;
9998}
9999_ACEOF
10000if ac_fn_c_try_link "$LINENO"; then :
10001  eval $cacheid=yes
10002else
10003  eval $cacheid=no
10004fi
10005rm -f core conftest.err conftest.$ac_objext \
10006    conftest$ac_exeext conftest.$ac_ext
10007fi
10008
10009
10010		CFLAGS="$xorg_testset_save_CFLAGS"
10011
10012		eval supported=\$$cacheid
10013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10014$as_echo "$supported" >&6; }
10015		if test "$supported" = "yes" ; then
10016			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10017			found="yes"
10018		fi
10019	fi
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035xorg_testset_save_CFLAGS="$CFLAGS"
10036
10037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10042  $as_echo_n "(cached) " >&6
10043else
10044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046int i;
10047_ACEOF
10048if ac_fn_c_try_compile "$LINENO"; then :
10049  xorg_cv_cc_flag_unknown_warning_option=yes
10050else
10051  xorg_cv_cc_flag_unknown_warning_option=no
10052fi
10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10054fi
10055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10058	CFLAGS="$xorg_testset_save_CFLAGS"
10059fi
10060
10061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10064	fi
10065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10069  $as_echo_n "(cached) " >&6
10070else
10071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072/* end confdefs.h.  */
10073int i;
10074_ACEOF
10075if ac_fn_c_try_compile "$LINENO"; then :
10076  xorg_cv_cc_flag_unused_command_line_argument=yes
10077else
10078  xorg_cv_cc_flag_unused_command_line_argument=no
10079fi
10080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081fi
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10085	CFLAGS="$xorg_testset_save_CFLAGS"
10086fi
10087
10088found="no"
10089
10090	if test $found = "no" ; then
10091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093		fi
10094
10095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10097		fi
10098
10099		CFLAGS="$CFLAGS -Wwrite-strings"
10100
10101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10102$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10103		cacheid=xorg_cv_cc_flag__Wwrite_strings
10104		if eval \${$cacheid+:} false; then :
10105  $as_echo_n "(cached) " >&6
10106else
10107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109int i;
10110int
10111main ()
10112{
10113
10114  ;
10115  return 0;
10116}
10117_ACEOF
10118if ac_fn_c_try_link "$LINENO"; then :
10119  eval $cacheid=yes
10120else
10121  eval $cacheid=no
10122fi
10123rm -f core conftest.err conftest.$ac_objext \
10124    conftest$ac_exeext conftest.$ac_ext
10125fi
10126
10127
10128		CFLAGS="$xorg_testset_save_CFLAGS"
10129
10130		eval supported=\$$cacheid
10131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10132$as_echo "$supported" >&6; }
10133		if test "$supported" = "yes" ; then
10134			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10135			found="yes"
10136		fi
10137	fi
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153xorg_testset_save_CFLAGS="$CFLAGS"
10154
10155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10160  $as_echo_n "(cached) " >&6
10161else
10162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163/* end confdefs.h.  */
10164int i;
10165_ACEOF
10166if ac_fn_c_try_compile "$LINENO"; then :
10167  xorg_cv_cc_flag_unknown_warning_option=yes
10168else
10169  xorg_cv_cc_flag_unknown_warning_option=no
10170fi
10171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10176	CFLAGS="$xorg_testset_save_CFLAGS"
10177fi
10178
10179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182	fi
10183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192_ACEOF
10193if ac_fn_c_try_compile "$LINENO"; then :
10194  xorg_cv_cc_flag_unused_command_line_argument=yes
10195else
10196  xorg_cv_cc_flag_unused_command_line_argument=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10203	CFLAGS="$xorg_testset_save_CFLAGS"
10204fi
10205
10206found="no"
10207
10208	if test $found = "no" ; then
10209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211		fi
10212
10213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10215		fi
10216
10217		CFLAGS="$CFLAGS -Waddress"
10218
10219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10220$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10221		cacheid=xorg_cv_cc_flag__Waddress
10222		if eval \${$cacheid+:} false; then :
10223  $as_echo_n "(cached) " >&6
10224else
10225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h.  */
10227int i;
10228int
10229main ()
10230{
10231
10232  ;
10233  return 0;
10234}
10235_ACEOF
10236if ac_fn_c_try_link "$LINENO"; then :
10237  eval $cacheid=yes
10238else
10239  eval $cacheid=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext \
10242    conftest$ac_exeext conftest.$ac_ext
10243fi
10244
10245
10246		CFLAGS="$xorg_testset_save_CFLAGS"
10247
10248		eval supported=\$$cacheid
10249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10250$as_echo "$supported" >&6; }
10251		if test "$supported" = "yes" ; then
10252			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10253			found="yes"
10254		fi
10255	fi
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271xorg_testset_save_CFLAGS="$CFLAGS"
10272
10273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10278  $as_echo_n "(cached) " >&6
10279else
10280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282int i;
10283_ACEOF
10284if ac_fn_c_try_compile "$LINENO"; then :
10285  xorg_cv_cc_flag_unknown_warning_option=yes
10286else
10287  xorg_cv_cc_flag_unknown_warning_option=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290fi
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10294	CFLAGS="$xorg_testset_save_CFLAGS"
10295fi
10296
10297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300	fi
10301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310_ACEOF
10311if ac_fn_c_try_compile "$LINENO"; then :
10312  xorg_cv_cc_flag_unused_command_line_argument=yes
10313else
10314  xorg_cv_cc_flag_unused_command_line_argument=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317fi
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10321	CFLAGS="$xorg_testset_save_CFLAGS"
10322fi
10323
10324found="no"
10325
10326	if test $found = "no" ; then
10327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329		fi
10330
10331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333		fi
10334
10335		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10336
10337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10338$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10339		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10340		if eval \${$cacheid+:} false; then :
10341  $as_echo_n "(cached) " >&6
10342else
10343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344/* end confdefs.h.  */
10345int i;
10346int
10347main ()
10348{
10349
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354if ac_fn_c_try_link "$LINENO"; then :
10355  eval $cacheid=yes
10356else
10357  eval $cacheid=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361fi
10362
10363
10364		CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366		eval supported=\$$cacheid
10367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368$as_echo "$supported" >&6; }
10369		if test "$supported" = "yes" ; then
10370			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10371			found="yes"
10372		fi
10373	fi
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389xorg_testset_save_CFLAGS="$CFLAGS"
10390
10391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10392	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10394$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10395if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10396  $as_echo_n "(cached) " >&6
10397else
10398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400int i;
10401_ACEOF
10402if ac_fn_c_try_compile "$LINENO"; then :
10403  xorg_cv_cc_flag_unknown_warning_option=yes
10404else
10405  xorg_cv_cc_flag_unknown_warning_option=no
10406fi
10407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408fi
10409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10410$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10411	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10412	CFLAGS="$xorg_testset_save_CFLAGS"
10413fi
10414
10415if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10416	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418	fi
10419	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10421$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10422if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10423  $as_echo_n "(cached) " >&6
10424else
10425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h.  */
10427int i;
10428_ACEOF
10429if ac_fn_c_try_compile "$LINENO"; then :
10430  xorg_cv_cc_flag_unused_command_line_argument=yes
10431else
10432  xorg_cv_cc_flag_unused_command_line_argument=no
10433fi
10434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435fi
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10437$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10439	CFLAGS="$xorg_testset_save_CFLAGS"
10440fi
10441
10442found="no"
10443
10444	if test $found = "no" ; then
10445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10447		fi
10448
10449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10451		fi
10452
10453		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10454
10455		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10456$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10457		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10458		if eval \${$cacheid+:} false; then :
10459  $as_echo_n "(cached) " >&6
10460else
10461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462/* end confdefs.h.  */
10463int i;
10464int
10465main ()
10466{
10467
10468  ;
10469  return 0;
10470}
10471_ACEOF
10472if ac_fn_c_try_link "$LINENO"; then :
10473  eval $cacheid=yes
10474else
10475  eval $cacheid=no
10476fi
10477rm -f core conftest.err conftest.$ac_objext \
10478    conftest$ac_exeext conftest.$ac_ext
10479fi
10480
10481
10482		CFLAGS="$xorg_testset_save_CFLAGS"
10483
10484		eval supported=\$$cacheid
10485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10486$as_echo "$supported" >&6; }
10487		if test "$supported" = "yes" ; then
10488			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10489			found="yes"
10490		fi
10491	fi
10492
10493
10494fi
10495
10496
10497
10498
10499
10500
10501
10502		CWARNFLAGS="$BASE_CFLAGS"
10503		if  test "x$GCC" = xyes ; then
10504		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10505		fi
10506
10507
10508
10509
10510
10511
10512
10513
10514# Check whether --enable-strict-compilation was given.
10515if test "${enable_strict_compilation+set}" = set; then :
10516  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10517else
10518  STRICT_COMPILE=no
10519fi
10520
10521
10522
10523
10524
10525
10526STRICT_CFLAGS=""
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540xorg_testset_save_CFLAGS="$CFLAGS"
10541
10542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10547  $as_echo_n "(cached) " >&6
10548else
10549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550/* end confdefs.h.  */
10551int i;
10552_ACEOF
10553if ac_fn_c_try_compile "$LINENO"; then :
10554  xorg_cv_cc_flag_unknown_warning_option=yes
10555else
10556  xorg_cv_cc_flag_unknown_warning_option=no
10557fi
10558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559fi
10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10563	CFLAGS="$xorg_testset_save_CFLAGS"
10564fi
10565
10566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10569	fi
10570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10574  $as_echo_n "(cached) " >&6
10575else
10576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577/* end confdefs.h.  */
10578int i;
10579_ACEOF
10580if ac_fn_c_try_compile "$LINENO"; then :
10581  xorg_cv_cc_flag_unused_command_line_argument=yes
10582else
10583  xorg_cv_cc_flag_unused_command_line_argument=no
10584fi
10585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586fi
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10590	CFLAGS="$xorg_testset_save_CFLAGS"
10591fi
10592
10593found="no"
10594
10595	if test $found = "no" ; then
10596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598		fi
10599
10600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10602		fi
10603
10604		CFLAGS="$CFLAGS -pedantic"
10605
10606		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10607$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10608		cacheid=xorg_cv_cc_flag__pedantic
10609		if eval \${$cacheid+:} false; then :
10610  $as_echo_n "(cached) " >&6
10611else
10612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613/* end confdefs.h.  */
10614int i;
10615int
10616main ()
10617{
10618
10619  ;
10620  return 0;
10621}
10622_ACEOF
10623if ac_fn_c_try_link "$LINENO"; then :
10624  eval $cacheid=yes
10625else
10626  eval $cacheid=no
10627fi
10628rm -f core conftest.err conftest.$ac_objext \
10629    conftest$ac_exeext conftest.$ac_ext
10630fi
10631
10632
10633		CFLAGS="$xorg_testset_save_CFLAGS"
10634
10635		eval supported=\$$cacheid
10636		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10637$as_echo "$supported" >&6; }
10638		if test "$supported" = "yes" ; then
10639			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10640			found="yes"
10641		fi
10642	fi
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658xorg_testset_save_CFLAGS="$CFLAGS"
10659
10660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10665  $as_echo_n "(cached) " >&6
10666else
10667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h.  */
10669int i;
10670_ACEOF
10671if ac_fn_c_try_compile "$LINENO"; then :
10672  xorg_cv_cc_flag_unknown_warning_option=yes
10673else
10674  xorg_cv_cc_flag_unknown_warning_option=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677fi
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10680	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10681	CFLAGS="$xorg_testset_save_CFLAGS"
10682fi
10683
10684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10685	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10686		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10687	fi
10688	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10692  $as_echo_n "(cached) " >&6
10693else
10694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695/* end confdefs.h.  */
10696int i;
10697_ACEOF
10698if ac_fn_c_try_compile "$LINENO"; then :
10699  xorg_cv_cc_flag_unused_command_line_argument=yes
10700else
10701  xorg_cv_cc_flag_unused_command_line_argument=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704fi
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10708	CFLAGS="$xorg_testset_save_CFLAGS"
10709fi
10710
10711found="no"
10712
10713	if test $found = "no" ; then
10714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10716		fi
10717
10718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10720		fi
10721
10722		CFLAGS="$CFLAGS -Werror"
10723
10724		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10725$as_echo_n "checking if $CC supports -Werror... " >&6; }
10726		cacheid=xorg_cv_cc_flag__Werror
10727		if eval \${$cacheid+:} false; then :
10728  $as_echo_n "(cached) " >&6
10729else
10730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731/* end confdefs.h.  */
10732int i;
10733int
10734main ()
10735{
10736
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741if ac_fn_c_try_link "$LINENO"; then :
10742  eval $cacheid=yes
10743else
10744  eval $cacheid=no
10745fi
10746rm -f core conftest.err conftest.$ac_objext \
10747    conftest$ac_exeext conftest.$ac_ext
10748fi
10749
10750
10751		CFLAGS="$xorg_testset_save_CFLAGS"
10752
10753		eval supported=\$$cacheid
10754		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10755$as_echo "$supported" >&6; }
10756		if test "$supported" = "yes" ; then
10757			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10758			found="yes"
10759		fi
10760	fi
10761
10762	if test $found = "no" ; then
10763		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10765		fi
10766
10767		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10769		fi
10770
10771		CFLAGS="$CFLAGS -errwarn"
10772
10773		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10774$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10775		cacheid=xorg_cv_cc_flag__errwarn
10776		if eval \${$cacheid+:} false; then :
10777  $as_echo_n "(cached) " >&6
10778else
10779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780/* end confdefs.h.  */
10781int i;
10782int
10783main ()
10784{
10785
10786  ;
10787  return 0;
10788}
10789_ACEOF
10790if ac_fn_c_try_link "$LINENO"; then :
10791  eval $cacheid=yes
10792else
10793  eval $cacheid=no
10794fi
10795rm -f core conftest.err conftest.$ac_objext \
10796    conftest$ac_exeext conftest.$ac_ext
10797fi
10798
10799
10800		CFLAGS="$xorg_testset_save_CFLAGS"
10801
10802		eval supported=\$$cacheid
10803		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10804$as_echo "$supported" >&6; }
10805		if test "$supported" = "yes" ; then
10806			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10807			found="yes"
10808		fi
10809	fi
10810
10811
10812
10813# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10814# activate it with -Werror, so we add it here explicitly.
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828xorg_testset_save_CFLAGS="$CFLAGS"
10829
10830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10835  $as_echo_n "(cached) " >&6
10836else
10837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838/* end confdefs.h.  */
10839int i;
10840_ACEOF
10841if ac_fn_c_try_compile "$LINENO"; then :
10842  xorg_cv_cc_flag_unknown_warning_option=yes
10843else
10844  xorg_cv_cc_flag_unknown_warning_option=no
10845fi
10846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10847fi
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10851	CFLAGS="$xorg_testset_save_CFLAGS"
10852fi
10853
10854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10857	fi
10858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10862  $as_echo_n "(cached) " >&6
10863else
10864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865/* end confdefs.h.  */
10866int i;
10867_ACEOF
10868if ac_fn_c_try_compile "$LINENO"; then :
10869  xorg_cv_cc_flag_unused_command_line_argument=yes
10870else
10871  xorg_cv_cc_flag_unused_command_line_argument=no
10872fi
10873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874fi
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10878	CFLAGS="$xorg_testset_save_CFLAGS"
10879fi
10880
10881found="no"
10882
10883	if test $found = "no" ; then
10884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10886		fi
10887
10888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10890		fi
10891
10892		CFLAGS="$CFLAGS -Werror=attributes"
10893
10894		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10895$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10896		cacheid=xorg_cv_cc_flag__Werror_attributes
10897		if eval \${$cacheid+:} false; then :
10898  $as_echo_n "(cached) " >&6
10899else
10900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901/* end confdefs.h.  */
10902int i;
10903int
10904main ()
10905{
10906
10907  ;
10908  return 0;
10909}
10910_ACEOF
10911if ac_fn_c_try_link "$LINENO"; then :
10912  eval $cacheid=yes
10913else
10914  eval $cacheid=no
10915fi
10916rm -f core conftest.err conftest.$ac_objext \
10917    conftest$ac_exeext conftest.$ac_ext
10918fi
10919
10920
10921		CFLAGS="$xorg_testset_save_CFLAGS"
10922
10923		eval supported=\$$cacheid
10924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10925$as_echo "$supported" >&6; }
10926		if test "$supported" = "yes" ; then
10927			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10928			found="yes"
10929		fi
10930	fi
10931
10932
10933
10934if test "x$STRICT_COMPILE" = "xyes"; then
10935    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10936    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10937fi
10938
10939
10940
10941
10942
10943
10944cat >>confdefs.h <<_ACEOF
10945#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10946_ACEOF
10947
10948	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10949	if test "x$PVM" = "x"; then
10950		PVM="0"
10951	fi
10952
10953cat >>confdefs.h <<_ACEOF
10954#define PACKAGE_VERSION_MINOR $PVM
10955_ACEOF
10956
10957	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10958	if test "x$PVP" = "x"; then
10959		PVP="0"
10960	fi
10961
10962cat >>confdefs.h <<_ACEOF
10963#define PACKAGE_VERSION_PATCHLEVEL $PVP
10964_ACEOF
10965
10966
10967
10968CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10969mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10970|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10971echo 'git directory not found: installing possibly empty changelog.' >&2)"
10972
10973
10974
10975
10976macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10977INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10978mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10979|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10980echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10981
10982
10983
10984
10985
10986
10987if test x$APP_MAN_SUFFIX = x    ; then
10988    APP_MAN_SUFFIX=1
10989fi
10990if test x$APP_MAN_DIR = x    ; then
10991    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10992fi
10993
10994if test x$LIB_MAN_SUFFIX = x    ; then
10995    LIB_MAN_SUFFIX=3
10996fi
10997if test x$LIB_MAN_DIR = x    ; then
10998    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10999fi
11000
11001if test x$FILE_MAN_SUFFIX = x    ; then
11002    case $host_os in
11003	solaris*)	FILE_MAN_SUFFIX=4  ;;
11004	*)		FILE_MAN_SUFFIX=5  ;;
11005    esac
11006fi
11007if test x$FILE_MAN_DIR = x    ; then
11008    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11009fi
11010
11011if test x$MISC_MAN_SUFFIX = x    ; then
11012    case $host_os in
11013	solaris*)	MISC_MAN_SUFFIX=5  ;;
11014	*)		MISC_MAN_SUFFIX=7  ;;
11015    esac
11016fi
11017if test x$MISC_MAN_DIR = x    ; then
11018    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11019fi
11020
11021if test x$DRIVER_MAN_SUFFIX = x    ; then
11022    case $host_os in
11023	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11024	*)		DRIVER_MAN_SUFFIX=4  ;;
11025    esac
11026fi
11027if test x$DRIVER_MAN_DIR = x    ; then
11028    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11029fi
11030
11031if test x$ADMIN_MAN_SUFFIX = x    ; then
11032    case $host_os in
11033	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11034	*)		ADMIN_MAN_SUFFIX=8  ;;
11035    esac
11036fi
11037if test x$ADMIN_MAN_DIR = x    ; then
11038    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11039fi
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055XORG_MAN_PAGE="X Version 11"
11056
11057MAN_SUBSTS="\
11058	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11059	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11060	-e 's|__xservername__|Xorg|g' \
11061	-e 's|__xconfigfile__|xorg.conf|g' \
11062	-e 's|__projectroot__|\$(prefix)|g' \
11063	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11064	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11065	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11066	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11067	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11068	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11069	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11070
11071
11072
11073# Check whether --enable-silent-rules was given.
11074if test "${enable_silent_rules+set}" = set; then :
11075  enableval=$enable_silent_rules;
11076fi
11077
11078case $enable_silent_rules in # (((
11079  yes) AM_DEFAULT_VERBOSITY=0;;
11080   no) AM_DEFAULT_VERBOSITY=1;;
11081    *) AM_DEFAULT_VERBOSITY=0;;
11082esac
11083am_make=${MAKE-make}
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11085$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11086if ${am_cv_make_support_nested_variables+:} false; then :
11087  $as_echo_n "(cached) " >&6
11088else
11089  if $as_echo 'TRUE=$(BAR$(V))
11090BAR0=false
11091BAR1=true
11092V=1
11093am__doit:
11094	@$(TRUE)
11095.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11096  am_cv_make_support_nested_variables=yes
11097else
11098  am_cv_make_support_nested_variables=no
11099fi
11100fi
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11102$as_echo "$am_cv_make_support_nested_variables" >&6; }
11103if test $am_cv_make_support_nested_variables = yes; then
11104    AM_V='$(V)'
11105  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11106else
11107  AM_V=$AM_DEFAULT_VERBOSITY
11108  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11109fi
11110AM_BACKSLASH='\'
11111
11112
11113
11114# Initialize libtool
11115# Check whether --enable-static was given.
11116if test "${enable_static+set}" = set; then :
11117  enableval=$enable_static; p=${PACKAGE-default}
11118    case $enableval in
11119    yes) enable_static=yes ;;
11120    no) enable_static=no ;;
11121    *)
11122     enable_static=no
11123      # Look at the argument we got.  We use all the common list separators.
11124      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11125      for pkg in $enableval; do
11126	IFS=$lt_save_ifs
11127	if test "X$pkg" = "X$p"; then
11128	  enable_static=yes
11129	fi
11130      done
11131      IFS=$lt_save_ifs
11132      ;;
11133    esac
11134else
11135  enable_static=no
11136fi
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146case `pwd` in
11147  *\ * | *\	*)
11148    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11149$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11150esac
11151
11152
11153
11154macro_version='2.4.6.40-6ca5'
11155macro_revision='2.4.6.40'
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169ltmain=$ac_aux_dir/ltmain.sh
11170
11171# Backslashify metacharacters that are still active within
11172# double-quoted strings.
11173sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11174
11175# Same as above, but do not quote variable references.
11176double_quote_subst='s/\(["`\\]\)/\\\1/g'
11177
11178# Sed substitution to delay expansion of an escaped shell variable in a
11179# double_quote_subst'ed string.
11180delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11181
11182# Sed substitution to delay expansion of an escaped single quote.
11183delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11184
11185# Sed substitution to avoid accidental globbing in evaled expressions
11186no_glob_subst='s/\*/\\\*/g'
11187
11188ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11189ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11190ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11191
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11193$as_echo_n "checking how to print strings... " >&6; }
11194# Test print first, because it will be a builtin if present.
11195if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11196   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11197  ECHO='print -r --'
11198elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11199  ECHO='printf %s\n'
11200else
11201  # Use this function as a fallback that always works.
11202  func_fallback_echo ()
11203  {
11204    eval 'cat <<_LTECHO_EOF
11205$1
11206_LTECHO_EOF'
11207  }
11208  ECHO='func_fallback_echo'
11209fi
11210
11211# func_echo_all arg...
11212# Invoke $ECHO with all args, space-separated.
11213func_echo_all ()
11214{
11215    $ECHO ""
11216}
11217
11218case $ECHO in
11219  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11220$as_echo "printf" >&6; } ;;
11221  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11222$as_echo "print -r" >&6; } ;;
11223  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11224$as_echo "cat" >&6; } ;;
11225esac
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11241$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11242if ${ac_cv_path_SED+:} false; then :
11243  $as_echo_n "(cached) " >&6
11244else
11245            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11246     for ac_i in 1 2 3 4 5 6 7; do
11247       ac_script="$ac_script$as_nl$ac_script"
11248     done
11249     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11250     { ac_script=; unset ac_script;}
11251     if test -z "$SED"; then
11252  ac_path_SED_found=false
11253  # Loop through the user's path and test for each of PROGNAME-LIST
11254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257  IFS=$as_save_IFS
11258  test -z "$as_dir" && as_dir=.
11259    for ac_prog in sed gsed; do
11260    for ac_exec_ext in '' $ac_executable_extensions; do
11261      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11262      as_fn_executable_p "$ac_path_SED" || continue
11263# Check for GNU ac_path_SED and select it if it is found.
11264  # Check for GNU $ac_path_SED
11265case `"$ac_path_SED" --version 2>&1` in
11266*GNU*)
11267  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11268*)
11269  ac_count=0
11270  $as_echo_n 0123456789 >"conftest.in"
11271  while :
11272  do
11273    cat "conftest.in" "conftest.in" >"conftest.tmp"
11274    mv "conftest.tmp" "conftest.in"
11275    cp "conftest.in" "conftest.nl"
11276    $as_echo '' >> "conftest.nl"
11277    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11278    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11279    as_fn_arith $ac_count + 1 && ac_count=$as_val
11280    if test $ac_count -gt ${ac_path_SED_max-0}; then
11281      # Best one so far, save it but keep looking for a better one
11282      ac_cv_path_SED="$ac_path_SED"
11283      ac_path_SED_max=$ac_count
11284    fi
11285    # 10*(2^10) chars as input seems more than enough
11286    test $ac_count -gt 10 && break
11287  done
11288  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11289esac
11290
11291      $ac_path_SED_found && break 3
11292    done
11293  done
11294  done
11295IFS=$as_save_IFS
11296  if test -z "$ac_cv_path_SED"; then
11297    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11298  fi
11299else
11300  ac_cv_path_SED=$SED
11301fi
11302
11303fi
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11305$as_echo "$ac_cv_path_SED" >&6; }
11306 SED="$ac_cv_path_SED"
11307  rm -f conftest.sed
11308
11309test -z "$SED" && SED=sed
11310Xsed="$SED -e 1s/^X//"
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11323$as_echo_n "checking for fgrep... " >&6; }
11324if ${ac_cv_path_FGREP+:} false; then :
11325  $as_echo_n "(cached) " >&6
11326else
11327  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11328   then ac_cv_path_FGREP="$GREP -F"
11329   else
11330     if test -z "$FGREP"; then
11331  ac_path_FGREP_found=false
11332  # Loop through the user's path and test for each of PROGNAME-LIST
11333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11335do
11336  IFS=$as_save_IFS
11337  test -z "$as_dir" && as_dir=.
11338    for ac_prog in fgrep; do
11339    for ac_exec_ext in '' $ac_executable_extensions; do
11340      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11341      as_fn_executable_p "$ac_path_FGREP" || continue
11342# Check for GNU ac_path_FGREP and select it if it is found.
11343  # Check for GNU $ac_path_FGREP
11344case `"$ac_path_FGREP" --version 2>&1` in
11345*GNU*)
11346  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11347*)
11348  ac_count=0
11349  $as_echo_n 0123456789 >"conftest.in"
11350  while :
11351  do
11352    cat "conftest.in" "conftest.in" >"conftest.tmp"
11353    mv "conftest.tmp" "conftest.in"
11354    cp "conftest.in" "conftest.nl"
11355    $as_echo 'FGREP' >> "conftest.nl"
11356    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11357    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11358    as_fn_arith $ac_count + 1 && ac_count=$as_val
11359    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11360      # Best one so far, save it but keep looking for a better one
11361      ac_cv_path_FGREP="$ac_path_FGREP"
11362      ac_path_FGREP_max=$ac_count
11363    fi
11364    # 10*(2^10) chars as input seems more than enough
11365    test $ac_count -gt 10 && break
11366  done
11367  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11368esac
11369
11370      $ac_path_FGREP_found && break 3
11371    done
11372  done
11373  done
11374IFS=$as_save_IFS
11375  if test -z "$ac_cv_path_FGREP"; then
11376    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11377  fi
11378else
11379  ac_cv_path_FGREP=$FGREP
11380fi
11381
11382   fi
11383fi
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11385$as_echo "$ac_cv_path_FGREP" >&6; }
11386 FGREP="$ac_cv_path_FGREP"
11387
11388
11389test -z "$GREP" && GREP=grep
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409# Check whether --with-gnu-ld was given.
11410if test "${with_gnu_ld+set}" = set; then :
11411  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11412else
11413  with_gnu_ld=no
11414fi
11415
11416ac_prog=ld
11417if test yes = "$GCC"; then
11418  # Check if gcc -print-prog-name=ld gives a path.
11419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11420$as_echo_n "checking for ld used by $CC... " >&6; }
11421  case $host in
11422  *-*-mingw*)
11423    # gcc leaves a trailing carriage return, which upsets mingw
11424    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11425  *)
11426    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11427  esac
11428  case $ac_prog in
11429    # Accept absolute paths.
11430    [\\/]* | ?:[\\/]*)
11431      re_direlt='/[^/][^/]*/\.\./'
11432      # Canonicalize the pathname of ld
11433      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11434      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11435	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11436      done
11437      test -z "$LD" && LD=$ac_prog
11438      ;;
11439  "")
11440    # If it fails, then pretend we aren't using GCC.
11441    ac_prog=ld
11442    ;;
11443  *)
11444    # If it is relative, then search for the first ld in PATH.
11445    with_gnu_ld=unknown
11446    ;;
11447  esac
11448elif test yes = "$with_gnu_ld"; then
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11450$as_echo_n "checking for GNU ld... " >&6; }
11451else
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11453$as_echo_n "checking for non-GNU ld... " >&6; }
11454fi
11455if ${lt_cv_path_LD+:} false; then :
11456  $as_echo_n "(cached) " >&6
11457else
11458  if test -z "$LD"; then
11459  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11460  for ac_dir in $PATH; do
11461    IFS=$lt_save_ifs
11462    test -z "$ac_dir" && ac_dir=.
11463    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11464      lt_cv_path_LD=$ac_dir/$ac_prog
11465      # Check to see if the program is GNU ld.  I'd rather use --version,
11466      # but apparently some variants of GNU ld only accept -v.
11467      # Break only if it was the GNU/non-GNU ld that we prefer.
11468      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11469      *GNU* | *'with BFD'*)
11470	test no != "$with_gnu_ld" && break
11471	;;
11472      *)
11473	test yes != "$with_gnu_ld" && break
11474	;;
11475      esac
11476    fi
11477  done
11478  IFS=$lt_save_ifs
11479else
11480  lt_cv_path_LD=$LD # Let the user override the test with a path.
11481fi
11482fi
11483
11484LD=$lt_cv_path_LD
11485if test -n "$LD"; then
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11487$as_echo "$LD" >&6; }
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; }
11491fi
11492test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11494$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11495if ${lt_cv_prog_gnu_ld+:} false; then :
11496  $as_echo_n "(cached) " >&6
11497else
11498  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11499case `$LD -v 2>&1 </dev/null` in
11500*GNU* | *'with BFD'*)
11501  lt_cv_prog_gnu_ld=yes
11502  ;;
11503*)
11504  lt_cv_prog_gnu_ld=no
11505  ;;
11506esac
11507fi
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11509$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11510with_gnu_ld=$lt_cv_prog_gnu_ld
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11521$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11522if ${lt_cv_path_NM+:} false; then :
11523  $as_echo_n "(cached) " >&6
11524else
11525  if test -n "$NM"; then
11526  # Let the user override the test.
11527  lt_cv_path_NM=$NM
11528else
11529  lt_nm_to_check=${ac_tool_prefix}nm
11530  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11531    lt_nm_to_check="$lt_nm_to_check nm"
11532  fi
11533  for lt_tmp_nm in $lt_nm_to_check; do
11534    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11535    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11536      IFS=$lt_save_ifs
11537      test -z "$ac_dir" && ac_dir=.
11538      tmp_nm=$ac_dir/$lt_tmp_nm
11539      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11540	# Check to see if the nm accepts a BSD-compat flag.
11541	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11542	#   nm: unknown option "B" ignored
11543	# Tru64's nm complains that /dev/null is an invalid object file
11544	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11545	case $build_os in
11546	mingw*) lt_bad_file=conftest.nm/nofile ;;
11547	*) lt_bad_file=/dev/null ;;
11548	esac
11549	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11550	*$lt_bad_file* | *'Invalid file or object type'*)
11551	  lt_cv_path_NM="$tmp_nm -B"
11552	  break 2
11553	  ;;
11554	*)
11555	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11556	  */dev/null*)
11557	    lt_cv_path_NM="$tmp_nm -p"
11558	    break 2
11559	    ;;
11560	  *)
11561	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11562	    continue # so that we can try to find one that supports BSD flags
11563	    ;;
11564	  esac
11565	  ;;
11566	esac
11567      fi
11568    done
11569    IFS=$lt_save_ifs
11570  done
11571  : ${lt_cv_path_NM=no}
11572fi
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11575$as_echo "$lt_cv_path_NM" >&6; }
11576if test no != "$lt_cv_path_NM"; then
11577  NM=$lt_cv_path_NM
11578else
11579  # Didn't find any BSD compatible name lister, look for dumpbin.
11580  if test -n "$DUMPBIN"; then :
11581    # Let the user override the test.
11582  else
11583    if test -n "$ac_tool_prefix"; then
11584  for ac_prog in dumpbin "link -dump"
11585  do
11586    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589$as_echo_n "checking for $ac_word... " >&6; }
11590if ${ac_cv_prog_DUMPBIN+:} false; then :
11591  $as_echo_n "(cached) " >&6
11592else
11593  if test -n "$DUMPBIN"; then
11594  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599  IFS=$as_save_IFS
11600  test -z "$as_dir" && as_dir=.
11601    for ac_exec_ext in '' $ac_executable_extensions; do
11602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605    break 2
11606  fi
11607done
11608  done
11609IFS=$as_save_IFS
11610
11611fi
11612fi
11613DUMPBIN=$ac_cv_prog_DUMPBIN
11614if test -n "$DUMPBIN"; then
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11616$as_echo "$DUMPBIN" >&6; }
11617else
11618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
11620fi
11621
11622
11623    test -n "$DUMPBIN" && break
11624  done
11625fi
11626if test -z "$DUMPBIN"; then
11627  ac_ct_DUMPBIN=$DUMPBIN
11628  for ac_prog in dumpbin "link -dump"
11629do
11630  # Extract the first word of "$ac_prog", so it can be a program name with args.
11631set dummy $ac_prog; ac_word=$2
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  if test -n "$ac_ct_DUMPBIN"; then
11638  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11639else
11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $PATH
11642do
11643  IFS=$as_save_IFS
11644  test -z "$as_dir" && as_dir=.
11645    for ac_exec_ext in '' $ac_executable_extensions; do
11646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11649    break 2
11650  fi
11651done
11652  done
11653IFS=$as_save_IFS
11654
11655fi
11656fi
11657ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11658if test -n "$ac_ct_DUMPBIN"; then
11659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11660$as_echo "$ac_ct_DUMPBIN" >&6; }
11661else
11662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11663$as_echo "no" >&6; }
11664fi
11665
11666
11667  test -n "$ac_ct_DUMPBIN" && break
11668done
11669
11670  if test "x$ac_ct_DUMPBIN" = x; then
11671    DUMPBIN=":"
11672  else
11673    case $cross_compiling:$ac_tool_warned in
11674yes:)
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11677ac_tool_warned=yes ;;
11678esac
11679    DUMPBIN=$ac_ct_DUMPBIN
11680  fi
11681fi
11682
11683    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11684    *COFF*)
11685      DUMPBIN="$DUMPBIN -symbols -headers"
11686      ;;
11687    *)
11688      DUMPBIN=:
11689      ;;
11690    esac
11691  fi
11692
11693  if test : != "$DUMPBIN"; then
11694    NM=$DUMPBIN
11695  fi
11696fi
11697test -z "$NM" && NM=nm
11698
11699
11700
11701
11702
11703
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11705$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11706if ${lt_cv_nm_interface+:} false; then :
11707  $as_echo_n "(cached) " >&6
11708else
11709  lt_cv_nm_interface="BSD nm"
11710  echo "int some_variable = 0;" > conftest.$ac_ext
11711  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11712  (eval "$ac_compile" 2>conftest.err)
11713  cat conftest.err >&5
11714  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11715  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11716  cat conftest.err >&5
11717  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11718  cat conftest.out >&5
11719  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11720    lt_cv_nm_interface="MS dumpbin"
11721  fi
11722  rm -f conftest*
11723fi
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11725$as_echo "$lt_cv_nm_interface" >&6; }
11726
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11728$as_echo_n "checking whether ln -s works... " >&6; }
11729LN_S=$as_ln_s
11730if test "$LN_S" = "ln -s"; then
11731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11732$as_echo "yes" >&6; }
11733else
11734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11735$as_echo "no, using $LN_S" >&6; }
11736fi
11737
11738# find the maximum length of command line arguments
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11740$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11741if ${lt_cv_sys_max_cmd_len+:} false; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744    i=0
11745  teststring=ABCD
11746
11747  case $build_os in
11748  msdosdjgpp*)
11749    # On DJGPP, this test can blow up pretty badly due to problems in libc
11750    # (any single argument exceeding 2000 bytes causes a buffer overrun
11751    # during glob expansion).  Even if it were fixed, the result of this
11752    # check would be larger than it should be.
11753    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11754    ;;
11755
11756  gnu*)
11757    # Under GNU Hurd, this test is not required because there is
11758    # no limit to the length of command line arguments.
11759    # Libtool will interpret -1 as no limit whatsoever
11760    lt_cv_sys_max_cmd_len=-1;
11761    ;;
11762
11763  cygwin* | mingw* | cegcc*)
11764    # On Win9x/ME, this test blows up -- it succeeds, but takes
11765    # about 5 minutes as the teststring grows exponentially.
11766    # Worse, since 9x/ME are not pre-emptively multitasking,
11767    # you end up with a "frozen" computer, even though with patience
11768    # the test eventually succeeds (with a max line length of 256k).
11769    # Instead, let's just punt: use the minimum linelength reported by
11770    # all of the supported platforms: 8192 (on NT/2K/XP).
11771    lt_cv_sys_max_cmd_len=8192;
11772    ;;
11773
11774  mint*)
11775    # On MiNT this can take a long time and run out of memory.
11776    lt_cv_sys_max_cmd_len=8192;
11777    ;;
11778
11779  amigaos*)
11780    # On AmigaOS with pdksh, this test takes hours, literally.
11781    # So we just punt and use a minimum line length of 8192.
11782    lt_cv_sys_max_cmd_len=8192;
11783    ;;
11784
11785  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11786    # This has been around since 386BSD, at least.  Likely further.
11787    if test -x /sbin/sysctl; then
11788      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11789    elif test -x /usr/sbin/sysctl; then
11790      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11791    else
11792      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11793    fi
11794    # And add a safety zone
11795    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11796    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11797    ;;
11798
11799  interix*)
11800    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11801    lt_cv_sys_max_cmd_len=196608
11802    ;;
11803
11804  os2*)
11805    # The test takes a long time on OS/2.
11806    lt_cv_sys_max_cmd_len=8192
11807    ;;
11808
11809  osf*)
11810    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11811    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11812    # nice to cause kernel panics so lets avoid the loop below.
11813    # First set a reasonable default.
11814    lt_cv_sys_max_cmd_len=16384
11815    #
11816    if test -x /sbin/sysconfig; then
11817      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11818        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11819      esac
11820    fi
11821    ;;
11822  sco3.2v5*)
11823    lt_cv_sys_max_cmd_len=102400
11824    ;;
11825  sysv5* | sco5v6* | sysv4.2uw2*)
11826    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11827    if test -n "$kargmax"; then
11828      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11829    else
11830      lt_cv_sys_max_cmd_len=32768
11831    fi
11832    ;;
11833  *)
11834    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11835    if test -n "$lt_cv_sys_max_cmd_len" && \
11836       test undefined != "$lt_cv_sys_max_cmd_len"; then
11837      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11838      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11839    else
11840      # Make teststring a little bigger before we do anything with it.
11841      # a 1K string should be a reasonable start.
11842      for i in 1 2 3 4 5 6 7 8; do
11843        teststring=$teststring$teststring
11844      done
11845      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11846      # If test is not a shell built-in, we'll probably end up computing a
11847      # maximum length that is only half of the actual maximum length, but
11848      # we can't tell.
11849      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11850	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11851	      test 17 != "$i" # 1/2 MB should be enough
11852      do
11853        i=`expr $i + 1`
11854        teststring=$teststring$teststring
11855      done
11856      # Only check the string length outside the loop.
11857      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11858      teststring=
11859      # Add a significant safety factor because C++ compilers can tack on
11860      # massive amounts of additional arguments before passing them to the
11861      # linker.  It appears as though 1/2 is a usable value.
11862      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11863    fi
11864    ;;
11865  esac
11866
11867fi
11868
11869if test -n "$lt_cv_sys_max_cmd_len"; then
11870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11871$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11872else
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11874$as_echo "none" >&6; }
11875fi
11876max_cmd_len=$lt_cv_sys_max_cmd_len
11877
11878
11879
11880
11881
11882
11883: ${CP="cp -f"}
11884: ${MV="mv -f"}
11885: ${RM="rm -f"}
11886
11887if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11888  lt_unset=unset
11889else
11890  lt_unset=false
11891fi
11892
11893
11894
11895
11896
11897# test EBCDIC or ASCII
11898case `echo X|tr X '\101'` in
11899 A) # ASCII based system
11900    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11901  lt_SP2NL='tr \040 \012'
11902  lt_NL2SP='tr \015\012 \040\040'
11903  ;;
11904 *) # EBCDIC based system
11905  lt_SP2NL='tr \100 \n'
11906  lt_NL2SP='tr \r\n \100\100'
11907  ;;
11908esac
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11919$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11920if ${lt_cv_to_host_file_cmd+:} false; then :
11921  $as_echo_n "(cached) " >&6
11922else
11923  case $host in
11924  *-*-mingw* )
11925    case $build in
11926      *-*-mingw* ) # actually msys
11927        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11928        ;;
11929      *-*-cygwin* )
11930        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11931        ;;
11932      * ) # otherwise, assume *nix
11933        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11934        ;;
11935    esac
11936    ;;
11937  *-*-cygwin* )
11938    case $build in
11939      *-*-mingw* ) # actually msys
11940        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11941        ;;
11942      *-*-cygwin* )
11943        lt_cv_to_host_file_cmd=func_convert_file_noop
11944        ;;
11945      * ) # otherwise, assume *nix
11946        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11947        ;;
11948    esac
11949    ;;
11950  * ) # unhandled hosts (and "normal" native builds)
11951    lt_cv_to_host_file_cmd=func_convert_file_noop
11952    ;;
11953esac
11954
11955fi
11956
11957to_host_file_cmd=$lt_cv_to_host_file_cmd
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11959$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11960
11961
11962
11963
11964
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11966$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11967if ${lt_cv_to_tool_file_cmd+:} false; then :
11968  $as_echo_n "(cached) " >&6
11969else
11970  #assume ordinary cross tools, or native build.
11971lt_cv_to_tool_file_cmd=func_convert_file_noop
11972case $host in
11973  *-*-mingw* )
11974    case $build in
11975      *-*-mingw* ) # actually msys
11976        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11977        ;;
11978    esac
11979    ;;
11980esac
11981
11982fi
11983
11984to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11986$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11987
11988
11989
11990
11991
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11993$as_echo_n "checking for $LD option to reload object files... " >&6; }
11994if ${lt_cv_ld_reload_flag+:} false; then :
11995  $as_echo_n "(cached) " >&6
11996else
11997  lt_cv_ld_reload_flag='-r'
11998fi
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12000$as_echo "$lt_cv_ld_reload_flag" >&6; }
12001reload_flag=$lt_cv_ld_reload_flag
12002case $reload_flag in
12003"" | " "*) ;;
12004*) reload_flag=" $reload_flag" ;;
12005esac
12006reload_cmds='$LD$reload_flag -o $output$reload_objs'
12007case $host_os in
12008  cygwin* | mingw* | pw32* | cegcc*)
12009    if test yes != "$GCC"; then
12010      reload_cmds=false
12011    fi
12012    ;;
12013  darwin*)
12014    if test yes = "$GCC"; then
12015      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12016    else
12017      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12018    fi
12019    ;;
12020esac
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030if test -n "$ac_tool_prefix"; then
12031  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12032set dummy ${ac_tool_prefix}objdump; ac_word=$2
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034$as_echo_n "checking for $ac_word... " >&6; }
12035if ${ac_cv_prog_OBJDUMP+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  if test -n "$OBJDUMP"; then
12039  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12040else
12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $PATH
12043do
12044  IFS=$as_save_IFS
12045  test -z "$as_dir" && as_dir=.
12046    for ac_exec_ext in '' $ac_executable_extensions; do
12047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050    break 2
12051  fi
12052done
12053  done
12054IFS=$as_save_IFS
12055
12056fi
12057fi
12058OBJDUMP=$ac_cv_prog_OBJDUMP
12059if test -n "$OBJDUMP"; then
12060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12061$as_echo "$OBJDUMP" >&6; }
12062else
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064$as_echo "no" >&6; }
12065fi
12066
12067
12068fi
12069if test -z "$ac_cv_prog_OBJDUMP"; then
12070  ac_ct_OBJDUMP=$OBJDUMP
12071  # Extract the first word of "objdump", so it can be a program name with args.
12072set dummy objdump; ac_word=$2
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
12075if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12076  $as_echo_n "(cached) " >&6
12077else
12078  if test -n "$ac_ct_OBJDUMP"; then
12079  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084  IFS=$as_save_IFS
12085  test -z "$as_dir" && as_dir=.
12086    for ac_exec_ext in '' $ac_executable_extensions; do
12087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090    break 2
12091  fi
12092done
12093  done
12094IFS=$as_save_IFS
12095
12096fi
12097fi
12098ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12099if test -n "$ac_ct_OBJDUMP"; then
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12101$as_echo "$ac_ct_OBJDUMP" >&6; }
12102else
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
12105fi
12106
12107  if test "x$ac_ct_OBJDUMP" = x; then
12108    OBJDUMP="false"
12109  else
12110    case $cross_compiling:$ac_tool_warned in
12111yes:)
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12114ac_tool_warned=yes ;;
12115esac
12116    OBJDUMP=$ac_ct_OBJDUMP
12117  fi
12118else
12119  OBJDUMP="$ac_cv_prog_OBJDUMP"
12120fi
12121
12122test -z "$OBJDUMP" && OBJDUMP=objdump
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12133$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12134if ${lt_cv_deplibs_check_method+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137  lt_cv_file_magic_cmd='$MAGIC_CMD'
12138lt_cv_file_magic_test_file=
12139lt_cv_deplibs_check_method='unknown'
12140# Need to set the preceding variable on all platforms that support
12141# interlibrary dependencies.
12142# 'none' -- dependencies not supported.
12143# 'unknown' -- same as none, but documents that we really don't know.
12144# 'pass_all' -- all dependencies passed with no checks.
12145# 'test_compile' -- check by making test program.
12146# 'file_magic [[regex]]' -- check by looking for files in library path
12147# that responds to the $file_magic_cmd with a given extended regex.
12148# If you have 'file' or equivalent on your system and you're not sure
12149# whether 'pass_all' will *always* work, you probably want this one.
12150
12151case $host_os in
12152aix[4-9]*)
12153  lt_cv_deplibs_check_method=pass_all
12154  ;;
12155
12156beos*)
12157  lt_cv_deplibs_check_method=pass_all
12158  ;;
12159
12160bsdi[45]*)
12161  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12162  lt_cv_file_magic_cmd='/usr/bin/file -L'
12163  lt_cv_file_magic_test_file=/shlib/libc.so
12164  ;;
12165
12166cygwin*)
12167  # func_win32_libid is a shell function defined in ltmain.sh
12168  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12169  lt_cv_file_magic_cmd='func_win32_libid'
12170  ;;
12171
12172mingw* | pw32*)
12173  # Base MSYS/MinGW do not provide the 'file' command needed by
12174  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12175  # unless we find 'file', for example because we are cross-compiling.
12176  if ( file / ) >/dev/null 2>&1; then
12177    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12178    lt_cv_file_magic_cmd='func_win32_libid'
12179  else
12180    # Keep this pattern in sync with the one in func_win32_libid.
12181    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12182    lt_cv_file_magic_cmd='$OBJDUMP -f'
12183  fi
12184  ;;
12185
12186cegcc*)
12187  # use the weaker test based on 'objdump'. See mingw*.
12188  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12189  lt_cv_file_magic_cmd='$OBJDUMP -f'
12190  ;;
12191
12192darwin* | rhapsody*)
12193  lt_cv_deplibs_check_method=pass_all
12194  ;;
12195
12196freebsd* | dragonfly*)
12197  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12198    case $host_cpu in
12199    i*86 )
12200      # Not sure whether the presence of OpenBSD here was a mistake.
12201      # Let's accept both of them until this is cleared up.
12202      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12203      lt_cv_file_magic_cmd=/usr/bin/file
12204      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12205      ;;
12206    esac
12207  else
12208    lt_cv_deplibs_check_method=pass_all
12209  fi
12210  ;;
12211
12212haiku*)
12213  lt_cv_deplibs_check_method=pass_all
12214  ;;
12215
12216hpux10.20* | hpux11*)
12217  lt_cv_file_magic_cmd=/usr/bin/file
12218  case $host_cpu in
12219  ia64*)
12220    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12221    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12222    ;;
12223  hppa*64*)
12224    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]'
12225    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12226    ;;
12227  *)
12228    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12229    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12230    ;;
12231  esac
12232  ;;
12233
12234interix[3-9]*)
12235  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12236  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12237  ;;
12238
12239irix5* | irix6* | nonstopux*)
12240  case $LD in
12241  *-32|*"-32 ") libmagic=32-bit;;
12242  *-n32|*"-n32 ") libmagic=N32;;
12243  *-64|*"-64 ") libmagic=64-bit;;
12244  *) libmagic=never-match;;
12245  esac
12246  lt_cv_deplibs_check_method=pass_all
12247  ;;
12248
12249# This must be glibc/ELF.
12250linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12251  lt_cv_deplibs_check_method=pass_all
12252  ;;
12253
12254netbsd*)
12255  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12256    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12257  else
12258    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12259  fi
12260  ;;
12261
12262newos6*)
12263  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12264  lt_cv_file_magic_cmd=/usr/bin/file
12265  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12266  ;;
12267
12268*nto* | *qnx*)
12269  lt_cv_deplibs_check_method=pass_all
12270  ;;
12271
12272openbsd* | bitrig*)
12273  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12274    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12275  else
12276    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12277  fi
12278  ;;
12279
12280osf3* | osf4* | osf5*)
12281  lt_cv_deplibs_check_method=pass_all
12282  ;;
12283
12284rdos*)
12285  lt_cv_deplibs_check_method=pass_all
12286  ;;
12287
12288solaris*)
12289  lt_cv_deplibs_check_method=pass_all
12290  ;;
12291
12292sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12293  lt_cv_deplibs_check_method=pass_all
12294  ;;
12295
12296sysv4 | sysv4.3*)
12297  case $host_vendor in
12298  motorola)
12299    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]'
12300    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12301    ;;
12302  ncr)
12303    lt_cv_deplibs_check_method=pass_all
12304    ;;
12305  sequent)
12306    lt_cv_file_magic_cmd='/bin/file'
12307    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12308    ;;
12309  sni)
12310    lt_cv_file_magic_cmd='/bin/file'
12311    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12312    lt_cv_file_magic_test_file=/lib/libc.so
12313    ;;
12314  siemens)
12315    lt_cv_deplibs_check_method=pass_all
12316    ;;
12317  pc)
12318    lt_cv_deplibs_check_method=pass_all
12319    ;;
12320  esac
12321  ;;
12322
12323tpf*)
12324  lt_cv_deplibs_check_method=pass_all
12325  ;;
12326os2*)
12327  lt_cv_deplibs_check_method=pass_all
12328  ;;
12329esac
12330
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12333$as_echo "$lt_cv_deplibs_check_method" >&6; }
12334
12335file_magic_glob=
12336want_nocaseglob=no
12337if test "$build" = "$host"; then
12338  case $host_os in
12339  mingw* | pw32*)
12340    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12341      want_nocaseglob=yes
12342    else
12343      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12344    fi
12345    ;;
12346  esac
12347fi
12348
12349file_magic_cmd=$lt_cv_file_magic_cmd
12350deplibs_check_method=$lt_cv_deplibs_check_method
12351test -z "$deplibs_check_method" && deplibs_check_method=unknown
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374if test -n "$ac_tool_prefix"; then
12375  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12376set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378$as_echo_n "checking for $ac_word... " >&6; }
12379if ${ac_cv_prog_DLLTOOL+:} false; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  if test -n "$DLLTOOL"; then
12383  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12384else
12385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388  IFS=$as_save_IFS
12389  test -z "$as_dir" && as_dir=.
12390    for ac_exec_ext in '' $ac_executable_extensions; do
12391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394    break 2
12395  fi
12396done
12397  done
12398IFS=$as_save_IFS
12399
12400fi
12401fi
12402DLLTOOL=$ac_cv_prog_DLLTOOL
12403if test -n "$DLLTOOL"; then
12404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12405$as_echo "$DLLTOOL" >&6; }
12406else
12407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408$as_echo "no" >&6; }
12409fi
12410
12411
12412fi
12413if test -z "$ac_cv_prog_DLLTOOL"; then
12414  ac_ct_DLLTOOL=$DLLTOOL
12415  # Extract the first word of "dlltool", so it can be a program name with args.
12416set dummy dlltool; ac_word=$2
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418$as_echo_n "checking for $ac_word... " >&6; }
12419if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12420  $as_echo_n "(cached) " >&6
12421else
12422  if test -n "$ac_ct_DLLTOOL"; then
12423  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12424else
12425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426for as_dir in $PATH
12427do
12428  IFS=$as_save_IFS
12429  test -z "$as_dir" && as_dir=.
12430    for ac_exec_ext in '' $ac_executable_extensions; do
12431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12432    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434    break 2
12435  fi
12436done
12437  done
12438IFS=$as_save_IFS
12439
12440fi
12441fi
12442ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12443if test -n "$ac_ct_DLLTOOL"; then
12444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12445$as_echo "$ac_ct_DLLTOOL" >&6; }
12446else
12447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
12449fi
12450
12451  if test "x$ac_ct_DLLTOOL" = x; then
12452    DLLTOOL="false"
12453  else
12454    case $cross_compiling:$ac_tool_warned in
12455yes:)
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12458ac_tool_warned=yes ;;
12459esac
12460    DLLTOOL=$ac_ct_DLLTOOL
12461  fi
12462else
12463  DLLTOOL="$ac_cv_prog_DLLTOOL"
12464fi
12465
12466test -z "$DLLTOOL" && DLLTOOL=dlltool
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12478$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12479if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12480  $as_echo_n "(cached) " >&6
12481else
12482  lt_cv_sharedlib_from_linklib_cmd='unknown'
12483
12484case $host_os in
12485cygwin* | mingw* | pw32* | cegcc*)
12486  # two different shell functions defined in ltmain.sh;
12487  # decide which one to use based on capabilities of $DLLTOOL
12488  case `$DLLTOOL --help 2>&1` in
12489  *--identify-strict*)
12490    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12491    ;;
12492  *)
12493    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12494    ;;
12495  esac
12496  ;;
12497*)
12498  # fallback: assume linklib IS sharedlib
12499  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12500  ;;
12501esac
12502
12503fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12505$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12506sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12507test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12508
12509
12510
12511
12512
12513
12514
12515if test -n "$ac_tool_prefix"; then
12516  for ac_prog in ar
12517  do
12518    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12521$as_echo_n "checking for $ac_word... " >&6; }
12522if ${ac_cv_prog_AR+:} false; then :
12523  $as_echo_n "(cached) " >&6
12524else
12525  if test -n "$AR"; then
12526  ac_cv_prog_AR="$AR" # Let the user override the test.
12527else
12528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529for as_dir in $PATH
12530do
12531  IFS=$as_save_IFS
12532  test -z "$as_dir" && as_dir=.
12533    for ac_exec_ext in '' $ac_executable_extensions; do
12534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12535    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537    break 2
12538  fi
12539done
12540  done
12541IFS=$as_save_IFS
12542
12543fi
12544fi
12545AR=$ac_cv_prog_AR
12546if test -n "$AR"; then
12547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12548$as_echo "$AR" >&6; }
12549else
12550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551$as_echo "no" >&6; }
12552fi
12553
12554
12555    test -n "$AR" && break
12556  done
12557fi
12558if test -z "$AR"; then
12559  ac_ct_AR=$AR
12560  for ac_prog in ar
12561do
12562  # Extract the first word of "$ac_prog", so it can be a program name with args.
12563set dummy $ac_prog; ac_word=$2
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565$as_echo_n "checking for $ac_word... " >&6; }
12566if ${ac_cv_prog_ac_ct_AR+:} false; then :
12567  $as_echo_n "(cached) " >&6
12568else
12569  if test -n "$ac_ct_AR"; then
12570  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12571else
12572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573for as_dir in $PATH
12574do
12575  IFS=$as_save_IFS
12576  test -z "$as_dir" && as_dir=.
12577    for ac_exec_ext in '' $ac_executable_extensions; do
12578  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579    ac_cv_prog_ac_ct_AR="$ac_prog"
12580    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581    break 2
12582  fi
12583done
12584  done
12585IFS=$as_save_IFS
12586
12587fi
12588fi
12589ac_ct_AR=$ac_cv_prog_ac_ct_AR
12590if test -n "$ac_ct_AR"; then
12591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12592$as_echo "$ac_ct_AR" >&6; }
12593else
12594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595$as_echo "no" >&6; }
12596fi
12597
12598
12599  test -n "$ac_ct_AR" && break
12600done
12601
12602  if test "x$ac_ct_AR" = x; then
12603    AR="false"
12604  else
12605    case $cross_compiling:$ac_tool_warned in
12606yes:)
12607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12609ac_tool_warned=yes ;;
12610esac
12611    AR=$ac_ct_AR
12612  fi
12613fi
12614
12615: ${AR=ar}
12616
12617
12618
12619
12620
12621
12622# Use ARFLAGS variable as AR's operation code to sync the variable naming with
12623# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
12624# higher priority because thats what people were doing historically (setting
12625# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
12626# variable obsoleted/removed.
12627
12628test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
12629lt_ar_flags=$AR_FLAGS
12630
12631
12632
12633
12634
12635
12636# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
12637# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
12638
12639
12640
12641
12642
12643
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12645$as_echo_n "checking for archiver @FILE support... " >&6; }
12646if ${lt_cv_ar_at_file+:} false; then :
12647  $as_echo_n "(cached) " >&6
12648else
12649  lt_cv_ar_at_file=no
12650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651/* end confdefs.h.  */
12652
12653int
12654main ()
12655{
12656
12657  ;
12658  return 0;
12659}
12660_ACEOF
12661if ac_fn_c_try_compile "$LINENO"; then :
12662  echo conftest.$ac_objext > conftest.lst
12663      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12664      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12665  (eval $lt_ar_try) 2>&5
12666  ac_status=$?
12667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12668  test $ac_status = 0; }
12669      if test 0 -eq "$ac_status"; then
12670	# Ensure the archiver fails upon bogus file names.
12671	rm -f conftest.$ac_objext libconftest.a
12672	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12673  (eval $lt_ar_try) 2>&5
12674  ac_status=$?
12675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12676  test $ac_status = 0; }
12677	if test 0 -ne "$ac_status"; then
12678          lt_cv_ar_at_file=@
12679        fi
12680      fi
12681      rm -f conftest.* libconftest.a
12682
12683fi
12684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12685
12686fi
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12688$as_echo "$lt_cv_ar_at_file" >&6; }
12689
12690if test no = "$lt_cv_ar_at_file"; then
12691  archiver_list_spec=
12692else
12693  archiver_list_spec=$lt_cv_ar_at_file
12694fi
12695
12696
12697
12698
12699
12700
12701
12702if test -n "$ac_tool_prefix"; then
12703  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12704set dummy ${ac_tool_prefix}strip; ac_word=$2
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706$as_echo_n "checking for $ac_word... " >&6; }
12707if ${ac_cv_prog_STRIP+:} false; then :
12708  $as_echo_n "(cached) " >&6
12709else
12710  if test -n "$STRIP"; then
12711  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12712else
12713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714for as_dir in $PATH
12715do
12716  IFS=$as_save_IFS
12717  test -z "$as_dir" && as_dir=.
12718    for ac_exec_ext in '' $ac_executable_extensions; do
12719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12720    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722    break 2
12723  fi
12724done
12725  done
12726IFS=$as_save_IFS
12727
12728fi
12729fi
12730STRIP=$ac_cv_prog_STRIP
12731if test -n "$STRIP"; then
12732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12733$as_echo "$STRIP" >&6; }
12734else
12735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
12737fi
12738
12739
12740fi
12741if test -z "$ac_cv_prog_STRIP"; then
12742  ac_ct_STRIP=$STRIP
12743  # Extract the first word of "strip", so it can be a program name with args.
12744set dummy strip; ac_word=$2
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746$as_echo_n "checking for $ac_word... " >&6; }
12747if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12748  $as_echo_n "(cached) " >&6
12749else
12750  if test -n "$ac_ct_STRIP"; then
12751  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12752else
12753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754for as_dir in $PATH
12755do
12756  IFS=$as_save_IFS
12757  test -z "$as_dir" && as_dir=.
12758    for ac_exec_ext in '' $ac_executable_extensions; do
12759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12760    ac_cv_prog_ac_ct_STRIP="strip"
12761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762    break 2
12763  fi
12764done
12765  done
12766IFS=$as_save_IFS
12767
12768fi
12769fi
12770ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12771if test -n "$ac_ct_STRIP"; then
12772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12773$as_echo "$ac_ct_STRIP" >&6; }
12774else
12775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776$as_echo "no" >&6; }
12777fi
12778
12779  if test "x$ac_ct_STRIP" = x; then
12780    STRIP=":"
12781  else
12782    case $cross_compiling:$ac_tool_warned in
12783yes:)
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12786ac_tool_warned=yes ;;
12787esac
12788    STRIP=$ac_ct_STRIP
12789  fi
12790else
12791  STRIP="$ac_cv_prog_STRIP"
12792fi
12793
12794test -z "$STRIP" && STRIP=:
12795
12796
12797
12798
12799
12800
12801if test -n "$ac_tool_prefix"; then
12802  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12803set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805$as_echo_n "checking for $ac_word... " >&6; }
12806if ${ac_cv_prog_RANLIB+:} false; then :
12807  $as_echo_n "(cached) " >&6
12808else
12809  if test -n "$RANLIB"; then
12810  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12811else
12812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813for as_dir in $PATH
12814do
12815  IFS=$as_save_IFS
12816  test -z "$as_dir" && as_dir=.
12817    for ac_exec_ext in '' $ac_executable_extensions; do
12818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12819    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821    break 2
12822  fi
12823done
12824  done
12825IFS=$as_save_IFS
12826
12827fi
12828fi
12829RANLIB=$ac_cv_prog_RANLIB
12830if test -n "$RANLIB"; then
12831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12832$as_echo "$RANLIB" >&6; }
12833else
12834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835$as_echo "no" >&6; }
12836fi
12837
12838
12839fi
12840if test -z "$ac_cv_prog_RANLIB"; then
12841  ac_ct_RANLIB=$RANLIB
12842  # Extract the first word of "ranlib", so it can be a program name with args.
12843set dummy ranlib; ac_word=$2
12844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845$as_echo_n "checking for $ac_word... " >&6; }
12846if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  if test -n "$ac_ct_RANLIB"; then
12850  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12851else
12852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853for as_dir in $PATH
12854do
12855  IFS=$as_save_IFS
12856  test -z "$as_dir" && as_dir=.
12857    for ac_exec_ext in '' $ac_executable_extensions; do
12858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12859    ac_cv_prog_ac_ct_RANLIB="ranlib"
12860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861    break 2
12862  fi
12863done
12864  done
12865IFS=$as_save_IFS
12866
12867fi
12868fi
12869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12870if test -n "$ac_ct_RANLIB"; then
12871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12872$as_echo "$ac_ct_RANLIB" >&6; }
12873else
12874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875$as_echo "no" >&6; }
12876fi
12877
12878  if test "x$ac_ct_RANLIB" = x; then
12879    RANLIB=":"
12880  else
12881    case $cross_compiling:$ac_tool_warned in
12882yes:)
12883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12885ac_tool_warned=yes ;;
12886esac
12887    RANLIB=$ac_ct_RANLIB
12888  fi
12889else
12890  RANLIB="$ac_cv_prog_RANLIB"
12891fi
12892
12893test -z "$RANLIB" && RANLIB=:
12894
12895
12896
12897
12898
12899
12900# Determine commands to create old-style static archives.
12901old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12902old_postinstall_cmds='chmod 644 $oldlib'
12903old_postuninstall_cmds=
12904
12905if test -n "$RANLIB"; then
12906  case $host_os in
12907  bitrig* | openbsd*)
12908    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12909    ;;
12910  *)
12911    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12912    ;;
12913  esac
12914  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12915fi
12916
12917case $host_os in
12918  darwin*)
12919    lock_old_archive_extraction=yes ;;
12920  *)
12921    lock_old_archive_extraction=no ;;
12922esac
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962# If no C compiler was specified, use CC.
12963LTCC=${LTCC-"$CC"}
12964
12965# If no C compiler flags were specified, use CFLAGS.
12966LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12967
12968# Allow CC to be a program name with arguments.
12969compiler=$CC
12970
12971
12972# Check for command to grab the raw symbol name followed by C symbol from nm.
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12974$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12975if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12976  $as_echo_n "(cached) " >&6
12977else
12978
12979# These are sane defaults that work on at least a few old systems.
12980# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12981
12982# Character class describing NM global symbol codes.
12983symcode='[BCDEGRST]'
12984
12985# Regexp to match symbols that can be accessed directly from C.
12986sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12987
12988# Define system-specific variables.
12989case $host_os in
12990aix*)
12991  symcode='[BCDT]'
12992  ;;
12993cygwin* | mingw* | pw32* | cegcc*)
12994  symcode='[ABCDGISTW]'
12995  ;;
12996hpux*)
12997  if test ia64 = "$host_cpu"; then
12998    symcode='[ABCDEGRST]'
12999  fi
13000  ;;
13001irix* | nonstopux*)
13002  symcode='[BCDEGRST]'
13003  ;;
13004osf*)
13005  symcode='[BCDEGQRST]'
13006  ;;
13007solaris*)
13008  symcode='[BDRT]'
13009  ;;
13010sco3.2v5*)
13011  symcode='[DT]'
13012  ;;
13013sysv4.2uw2*)
13014  symcode='[DT]'
13015  ;;
13016sysv5* | sco5v6* | unixware* | OpenUNIX*)
13017  symcode='[ABDT]'
13018  ;;
13019sysv4)
13020  symcode='[DFNSTU]'
13021  ;;
13022esac
13023
13024# If we're using GNU nm, then use its standard symbol codes.
13025case `$NM -V 2>&1` in
13026*GNU* | *'with BFD'*)
13027  symcode='[ABCDGIRSTW]' ;;
13028esac
13029
13030if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13031  # Gets list of data symbols to import.
13032  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13033  # Adjust the below global symbol transforms to fixup imported variables.
13034  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13035  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13036  lt_c_name_lib_hook="\
13037  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13038  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13039else
13040  # Disable hooks by default.
13041  lt_cv_sys_global_symbol_to_import=
13042  lt_cdecl_hook=
13043  lt_c_name_hook=
13044  lt_c_name_lib_hook=
13045fi
13046
13047# Transform an extracted symbol line into a proper C declaration.
13048# Some systems (esp. on ia64) link data and code symbols differently,
13049# so use this general approach.
13050lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13051$lt_cdecl_hook\
13052" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13053" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13054
13055# Transform an extracted symbol line into symbol name and symbol address
13056lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13057$lt_c_name_hook\
13058" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13059" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13060
13061# Transform an extracted symbol line into symbol name with lib prefix and
13062# symbol address.
13063lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13064$lt_c_name_lib_hook\
13065" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13066" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13067" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13068
13069# Handle CRLF in mingw tool chain
13070opt_cr=
13071case $build_os in
13072mingw*)
13073  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13074  ;;
13075esac
13076
13077# Try without a prefix underscore, then with it.
13078for ac_symprfx in "" "_"; do
13079
13080  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13081  symxfrm="\\1 $ac_symprfx\\2 \\2"
13082
13083  # Write the raw and C identifiers.
13084  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13085    # Fake it for dumpbin and say T for any non-static function,
13086    # D for any global variable and I for any imported variable.
13087    # Also find C++ and __fastcall symbols from MSVC++,
13088    # which start with @ or ?.
13089    lt_cv_sys_global_symbol_pipe="$AWK '"\
13090"     {last_section=section; section=\$ 3};"\
13091"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13092"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13093"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13094"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13095"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13096"     \$ 0!~/External *\|/{next};"\
13097"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13098"     {if(hide[section]) next};"\
13099"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13100"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13101"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13102"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13103"     ' prfx=^$ac_symprfx"
13104  else
13105    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13106  fi
13107  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13108
13109  # Check to see that the pipe works correctly.
13110  pipe_works=no
13111
13112  rm -f conftest*
13113  cat > conftest.$ac_ext <<_LT_EOF
13114#ifdef __cplusplus
13115extern "C" {
13116#endif
13117char nm_test_var;
13118void nm_test_func(void);
13119void nm_test_func(void){}
13120#ifdef __cplusplus
13121}
13122#endif
13123int main(){nm_test_var='a';nm_test_func();return(0);}
13124_LT_EOF
13125
13126  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13127  (eval $ac_compile) 2>&5
13128  ac_status=$?
13129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13130  test $ac_status = 0; }; then
13131    # Now try to grab the symbols.
13132    nlist=conftest.nm
13133    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13134  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13135  ac_status=$?
13136  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13137  test $ac_status = 0; } && test -s "$nlist"; then
13138      # Try sorting and uniquifying the output.
13139      if sort "$nlist" | uniq > "$nlist"T; then
13140	mv -f "$nlist"T "$nlist"
13141      else
13142	rm -f "$nlist"T
13143      fi
13144
13145      # Make sure that we snagged all the symbols we need.
13146      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13147	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13148	  cat <<_LT_EOF > conftest.$ac_ext
13149/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13150#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13151/* DATA imports from DLLs on WIN32 can't be const, because runtime
13152   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13153# define LT_DLSYM_CONST
13154#elif defined __osf__
13155/* This system does not cope well with relocations in const data.  */
13156# define LT_DLSYM_CONST
13157#else
13158# define LT_DLSYM_CONST const
13159#endif
13160
13161#ifdef __cplusplus
13162extern "C" {
13163#endif
13164
13165_LT_EOF
13166	  # Now generate the symbol file.
13167	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13168
13169	  cat <<_LT_EOF >> conftest.$ac_ext
13170
13171/* The mapping between symbol names and symbols.  */
13172LT_DLSYM_CONST struct {
13173  const char *name;
13174  void       *address;
13175}
13176lt__PROGRAM__LTX_preloaded_symbols[] =
13177{
13178  { "@PROGRAM@", (void *) 0 },
13179_LT_EOF
13180	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13181	  cat <<\_LT_EOF >> conftest.$ac_ext
13182  {0, (void *) 0}
13183};
13184
13185/* This works around a problem in FreeBSD linker */
13186#ifdef FREEBSD_WORKAROUND
13187static const void *lt_preloaded_setup() {
13188  return lt__PROGRAM__LTX_preloaded_symbols;
13189}
13190#endif
13191
13192#ifdef __cplusplus
13193}
13194#endif
13195_LT_EOF
13196	  # Now try linking the two files.
13197	  mv conftest.$ac_objext conftstm.$ac_objext
13198	  lt_globsym_save_LIBS=$LIBS
13199	  lt_globsym_save_CFLAGS=$CFLAGS
13200	  LIBS=conftstm.$ac_objext
13201	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13202	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13203  (eval $ac_link) 2>&5
13204  ac_status=$?
13205  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13206  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13207	    pipe_works=yes
13208	  fi
13209	  LIBS=$lt_globsym_save_LIBS
13210	  CFLAGS=$lt_globsym_save_CFLAGS
13211	else
13212	  echo "cannot find nm_test_func in $nlist" >&5
13213	fi
13214      else
13215	echo "cannot find nm_test_var in $nlist" >&5
13216      fi
13217    else
13218      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13219    fi
13220  else
13221    echo "$progname: failed program was:" >&5
13222    cat conftest.$ac_ext >&5
13223  fi
13224  rm -rf conftest* conftst*
13225
13226  # Do not use the global_symbol_pipe unless it works.
13227  if test yes = "$pipe_works"; then
13228    break
13229  else
13230    lt_cv_sys_global_symbol_pipe=
13231  fi
13232done
13233
13234fi
13235
13236if test -z "$lt_cv_sys_global_symbol_pipe"; then
13237  lt_cv_sys_global_symbol_to_cdecl=
13238fi
13239if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13241$as_echo "failed" >&6; }
13242else
13243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13244$as_echo "ok" >&6; }
13245fi
13246
13247# Response file support.
13248if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13249  nm_file_list_spec='@'
13250elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13251  nm_file_list_spec='@'
13252fi
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13291$as_echo_n "checking for sysroot... " >&6; }
13292
13293# Check whether --with-sysroot was given.
13294if test "${with_sysroot+set}" = set; then :
13295  withval=$with_sysroot;
13296else
13297  with_sysroot=no
13298fi
13299
13300
13301lt_sysroot=
13302case $with_sysroot in #(
13303 yes)
13304   if test yes = "$GCC"; then
13305     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13306   fi
13307   ;; #(
13308 /*)
13309   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13310   ;; #(
13311 no|'')
13312   ;; #(
13313 *)
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13315$as_echo "$with_sysroot" >&6; }
13316   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13317   ;;
13318esac
13319
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13321$as_echo "${lt_sysroot:-no}" >&6; }
13322
13323
13324
13325
13326
13327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13328$as_echo_n "checking for a working dd... " >&6; }
13329if ${ac_cv_path_lt_DD+:} false; then :
13330  $as_echo_n "(cached) " >&6
13331else
13332  printf 0123456789abcdef0123456789abcdef >conftest.i
13333cat conftest.i conftest.i >conftest2.i
13334: ${lt_DD:=$DD}
13335if test -z "$lt_DD"; then
13336  ac_path_lt_DD_found=false
13337  # Loop through the user's path and test for each of PROGNAME-LIST
13338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339for as_dir in $PATH
13340do
13341  IFS=$as_save_IFS
13342  test -z "$as_dir" && as_dir=.
13343    for ac_prog in dd; do
13344    for ac_exec_ext in '' $ac_executable_extensions; do
13345      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13346      as_fn_executable_p "$ac_path_lt_DD" || continue
13347if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13348  cmp -s conftest.i conftest.out \
13349  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13350fi
13351      $ac_path_lt_DD_found && break 3
13352    done
13353  done
13354  done
13355IFS=$as_save_IFS
13356  if test -z "$ac_cv_path_lt_DD"; then
13357    :
13358  fi
13359else
13360  ac_cv_path_lt_DD=$lt_DD
13361fi
13362
13363rm -f conftest.i conftest2.i conftest.out
13364fi
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13366$as_echo "$ac_cv_path_lt_DD" >&6; }
13367
13368
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13370$as_echo_n "checking how to truncate binary pipes... " >&6; }
13371if ${lt_cv_truncate_bin+:} false; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374  printf 0123456789abcdef0123456789abcdef >conftest.i
13375cat conftest.i conftest.i >conftest2.i
13376lt_cv_truncate_bin=
13377if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13378  cmp -s conftest.i conftest.out \
13379  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13380fi
13381rm -f conftest.i conftest2.i conftest.out
13382test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13383fi
13384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13385$as_echo "$lt_cv_truncate_bin" >&6; }
13386
13387
13388
13389
13390
13391
13392
13393# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13394func_cc_basename ()
13395{
13396    for cc_temp in $*""; do
13397      case $cc_temp in
13398        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13399        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13400        \-*) ;;
13401        *) break;;
13402      esac
13403    done
13404    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13405}
13406
13407# Check whether --enable-libtool-lock was given.
13408if test "${enable_libtool_lock+set}" = set; then :
13409  enableval=$enable_libtool_lock;
13410fi
13411
13412test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13413
13414# Some flags need to be propagated to the compiler or linker for good
13415# libtool support.
13416case $host in
13417ia64-*-hpux*)
13418  # Find out what ABI is being produced by ac_compile, and set mode
13419  # options accordingly.
13420  echo 'int i;' > conftest.$ac_ext
13421  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13422  (eval $ac_compile) 2>&5
13423  ac_status=$?
13424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425  test $ac_status = 0; }; then
13426    case `/usr/bin/file conftest.$ac_objext` in
13427      *ELF-32*)
13428	HPUX_IA64_MODE=32
13429	;;
13430      *ELF-64*)
13431	HPUX_IA64_MODE=64
13432	;;
13433    esac
13434  fi
13435  rm -rf conftest*
13436  ;;
13437*-*-irix6*)
13438  # Find out what ABI is being produced by ac_compile, and set linker
13439  # options accordingly.
13440  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13441  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13442  (eval $ac_compile) 2>&5
13443  ac_status=$?
13444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13445  test $ac_status = 0; }; then
13446    if test yes = "$lt_cv_prog_gnu_ld"; then
13447      case `/usr/bin/file conftest.$ac_objext` in
13448	*32-bit*)
13449	  LD="${LD-ld} -melf32bsmip"
13450	  ;;
13451	*N32*)
13452	  LD="${LD-ld} -melf32bmipn32"
13453	  ;;
13454	*64-bit*)
13455	  LD="${LD-ld} -melf64bmip"
13456	;;
13457      esac
13458    else
13459      case `/usr/bin/file conftest.$ac_objext` in
13460	*32-bit*)
13461	  LD="${LD-ld} -32"
13462	  ;;
13463	*N32*)
13464	  LD="${LD-ld} -n32"
13465	  ;;
13466	*64-bit*)
13467	  LD="${LD-ld} -64"
13468	  ;;
13469      esac
13470    fi
13471  fi
13472  rm -rf conftest*
13473  ;;
13474
13475mips64*-*linux*)
13476  # Find out what ABI is being produced by ac_compile, and set linker
13477  # options accordingly.
13478  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13479  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13480  (eval $ac_compile) 2>&5
13481  ac_status=$?
13482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13483  test $ac_status = 0; }; then
13484    emul=elf
13485    case `/usr/bin/file conftest.$ac_objext` in
13486      *32-bit*)
13487	emul="${emul}32"
13488	;;
13489      *64-bit*)
13490	emul="${emul}64"
13491	;;
13492    esac
13493    case `/usr/bin/file conftest.$ac_objext` in
13494      *MSB*)
13495	emul="${emul}btsmip"
13496	;;
13497      *LSB*)
13498	emul="${emul}ltsmip"
13499	;;
13500    esac
13501    case `/usr/bin/file conftest.$ac_objext` in
13502      *N32*)
13503	emul="${emul}n32"
13504	;;
13505    esac
13506    LD="${LD-ld} -m $emul"
13507  fi
13508  rm -rf conftest*
13509  ;;
13510
13511x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13512s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13513  # Find out what ABI is being produced by ac_compile, and set linker
13514  # options accordingly.  Note that the listed cases only cover the
13515  # situations where additional linker options are needed (such as when
13516  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13517  # vice versa); the common cases where no linker options are needed do
13518  # not appear in the list.
13519  echo 'int i;' > conftest.$ac_ext
13520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13521  (eval $ac_compile) 2>&5
13522  ac_status=$?
13523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13524  test $ac_status = 0; }; then
13525    case `/usr/bin/file conftest.o` in
13526      *32-bit*)
13527	case $host in
13528	  x86_64-*kfreebsd*-gnu)
13529	    LD="${LD-ld} -m elf_i386_fbsd"
13530	    ;;
13531	  x86_64-*linux*)
13532	    case `/usr/bin/file conftest.o` in
13533	      *x86-64*)
13534		LD="${LD-ld} -m elf32_x86_64"
13535		;;
13536	      *)
13537		LD="${LD-ld} -m elf_i386"
13538		;;
13539	    esac
13540	    ;;
13541	  powerpc64le-*linux*)
13542	    LD="${LD-ld} -m elf32lppclinux"
13543	    ;;
13544	  powerpc64-*linux*)
13545	    LD="${LD-ld} -m elf32ppclinux"
13546	    ;;
13547	  s390x-*linux*)
13548	    LD="${LD-ld} -m elf_s390"
13549	    ;;
13550	  sparc64-*linux*)
13551	    LD="${LD-ld} -m elf32_sparc"
13552	    ;;
13553	esac
13554	;;
13555      *64-bit*)
13556	case $host in
13557	  x86_64-*kfreebsd*-gnu)
13558	    LD="${LD-ld} -m elf_x86_64_fbsd"
13559	    ;;
13560	  x86_64-*linux*)
13561	    LD="${LD-ld} -m elf_x86_64"
13562	    ;;
13563	  powerpcle-*linux*)
13564	    LD="${LD-ld} -m elf64lppc"
13565	    ;;
13566	  powerpc-*linux*)
13567	    LD="${LD-ld} -m elf64ppc"
13568	    ;;
13569	  s390*-*linux*|s390*-*tpf*)
13570	    LD="${LD-ld} -m elf64_s390"
13571	    ;;
13572	  sparc*-*linux*)
13573	    LD="${LD-ld} -m elf64_sparc"
13574	    ;;
13575	esac
13576	;;
13577    esac
13578  fi
13579  rm -rf conftest*
13580  ;;
13581
13582*-*-sco3.2v5*)
13583  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13584  SAVE_CFLAGS=$CFLAGS
13585  CFLAGS="$CFLAGS -belf"
13586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13587$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13588if ${lt_cv_cc_needs_belf+:} false; then :
13589  $as_echo_n "(cached) " >&6
13590else
13591  ac_ext=c
13592ac_cpp='$CPP $CPPFLAGS'
13593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13595ac_compiler_gnu=$ac_cv_c_compiler_gnu
13596
13597     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598/* end confdefs.h.  */
13599
13600int
13601main ()
13602{
13603
13604  ;
13605  return 0;
13606}
13607_ACEOF
13608if ac_fn_c_try_link "$LINENO"; then :
13609  lt_cv_cc_needs_belf=yes
13610else
13611  lt_cv_cc_needs_belf=no
13612fi
13613rm -f core conftest.err conftest.$ac_objext \
13614    conftest$ac_exeext conftest.$ac_ext
13615     ac_ext=c
13616ac_cpp='$CPP $CPPFLAGS'
13617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13619ac_compiler_gnu=$ac_cv_c_compiler_gnu
13620
13621fi
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13623$as_echo "$lt_cv_cc_needs_belf" >&6; }
13624  if test yes != "$lt_cv_cc_needs_belf"; then
13625    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13626    CFLAGS=$SAVE_CFLAGS
13627  fi
13628  ;;
13629*-*solaris*)
13630  # Find out what ABI is being produced by ac_compile, and set linker
13631  # options accordingly.
13632  echo 'int i;' > conftest.$ac_ext
13633  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13634  (eval $ac_compile) 2>&5
13635  ac_status=$?
13636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637  test $ac_status = 0; }; then
13638    case `/usr/bin/file conftest.o` in
13639    *64-bit*)
13640      case $lt_cv_prog_gnu_ld in
13641      yes*)
13642        case $host in
13643        i?86-*-solaris*|x86_64-*-solaris*)
13644          LD="${LD-ld} -m elf_x86_64"
13645          ;;
13646        sparc*-*-solaris*)
13647          LD="${LD-ld} -m elf64_sparc"
13648          ;;
13649        esac
13650        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13651        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13652          LD=${LD-ld}_sol2
13653        fi
13654        ;;
13655      *)
13656	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13657	  LD="${LD-ld} -64"
13658	fi
13659	;;
13660      esac
13661      ;;
13662    esac
13663  fi
13664  rm -rf conftest*
13665  ;;
13666esac
13667
13668need_locks=$enable_libtool_lock
13669
13670if test -n "$ac_tool_prefix"; then
13671  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13672set dummy ${ac_tool_prefix}mt; ac_word=$2
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674$as_echo_n "checking for $ac_word... " >&6; }
13675if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13676  $as_echo_n "(cached) " >&6
13677else
13678  if test -n "$MANIFEST_TOOL"; then
13679  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13680else
13681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682for as_dir in $PATH
13683do
13684  IFS=$as_save_IFS
13685  test -z "$as_dir" && as_dir=.
13686    for ac_exec_ext in '' $ac_executable_extensions; do
13687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13690    break 2
13691  fi
13692done
13693  done
13694IFS=$as_save_IFS
13695
13696fi
13697fi
13698MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13699if test -n "$MANIFEST_TOOL"; then
13700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13701$as_echo "$MANIFEST_TOOL" >&6; }
13702else
13703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704$as_echo "no" >&6; }
13705fi
13706
13707
13708fi
13709if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13710  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13711  # Extract the first word of "mt", so it can be a program name with args.
13712set dummy mt; ac_word=$2
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714$as_echo_n "checking for $ac_word... " >&6; }
13715if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13716  $as_echo_n "(cached) " >&6
13717else
13718  if test -n "$ac_ct_MANIFEST_TOOL"; then
13719  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13720else
13721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722for as_dir in $PATH
13723do
13724  IFS=$as_save_IFS
13725  test -z "$as_dir" && as_dir=.
13726    for ac_exec_ext in '' $ac_executable_extensions; do
13727  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13728    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13730    break 2
13731  fi
13732done
13733  done
13734IFS=$as_save_IFS
13735
13736fi
13737fi
13738ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13739if test -n "$ac_ct_MANIFEST_TOOL"; then
13740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13741$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13742else
13743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744$as_echo "no" >&6; }
13745fi
13746
13747  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13748    MANIFEST_TOOL=":"
13749  else
13750    case $cross_compiling:$ac_tool_warned in
13751yes:)
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13754ac_tool_warned=yes ;;
13755esac
13756    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13757  fi
13758else
13759  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13760fi
13761
13762test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13764$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13765if ${lt_cv_path_mainfest_tool+:} false; then :
13766  $as_echo_n "(cached) " >&6
13767else
13768  lt_cv_path_mainfest_tool=no
13769  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13770  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13771  cat conftest.err >&5
13772  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13773    lt_cv_path_mainfest_tool=yes
13774  fi
13775  rm -f conftest*
13776fi
13777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13778$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13779if test yes != "$lt_cv_path_mainfest_tool"; then
13780  MANIFEST_TOOL=:
13781fi
13782
13783
13784
13785
13786
13787
13788  case $host_os in
13789    rhapsody* | darwin*)
13790    if test -n "$ac_tool_prefix"; then
13791  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13792set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13794$as_echo_n "checking for $ac_word... " >&6; }
13795if ${ac_cv_prog_DSYMUTIL+:} false; then :
13796  $as_echo_n "(cached) " >&6
13797else
13798  if test -n "$DSYMUTIL"; then
13799  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13800else
13801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804  IFS=$as_save_IFS
13805  test -z "$as_dir" && as_dir=.
13806    for ac_exec_ext in '' $ac_executable_extensions; do
13807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13808    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13810    break 2
13811  fi
13812done
13813  done
13814IFS=$as_save_IFS
13815
13816fi
13817fi
13818DSYMUTIL=$ac_cv_prog_DSYMUTIL
13819if test -n "$DSYMUTIL"; then
13820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13821$as_echo "$DSYMUTIL" >&6; }
13822else
13823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824$as_echo "no" >&6; }
13825fi
13826
13827
13828fi
13829if test -z "$ac_cv_prog_DSYMUTIL"; then
13830  ac_ct_DSYMUTIL=$DSYMUTIL
13831  # Extract the first word of "dsymutil", so it can be a program name with args.
13832set dummy dsymutil; ac_word=$2
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13834$as_echo_n "checking for $ac_word... " >&6; }
13835if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13836  $as_echo_n "(cached) " >&6
13837else
13838  if test -n "$ac_ct_DSYMUTIL"; then
13839  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13840else
13841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842for as_dir in $PATH
13843do
13844  IFS=$as_save_IFS
13845  test -z "$as_dir" && as_dir=.
13846    for ac_exec_ext in '' $ac_executable_extensions; do
13847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13848    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13850    break 2
13851  fi
13852done
13853  done
13854IFS=$as_save_IFS
13855
13856fi
13857fi
13858ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13859if test -n "$ac_ct_DSYMUTIL"; then
13860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13861$as_echo "$ac_ct_DSYMUTIL" >&6; }
13862else
13863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864$as_echo "no" >&6; }
13865fi
13866
13867  if test "x$ac_ct_DSYMUTIL" = x; then
13868    DSYMUTIL=":"
13869  else
13870    case $cross_compiling:$ac_tool_warned in
13871yes:)
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13874ac_tool_warned=yes ;;
13875esac
13876    DSYMUTIL=$ac_ct_DSYMUTIL
13877  fi
13878else
13879  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13880fi
13881
13882    if test -n "$ac_tool_prefix"; then
13883  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13884set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886$as_echo_n "checking for $ac_word... " >&6; }
13887if ${ac_cv_prog_NMEDIT+:} false; then :
13888  $as_echo_n "(cached) " >&6
13889else
13890  if test -n "$NMEDIT"; then
13891  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13892else
13893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894for as_dir in $PATH
13895do
13896  IFS=$as_save_IFS
13897  test -z "$as_dir" && as_dir=.
13898    for ac_exec_ext in '' $ac_executable_extensions; do
13899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902    break 2
13903  fi
13904done
13905  done
13906IFS=$as_save_IFS
13907
13908fi
13909fi
13910NMEDIT=$ac_cv_prog_NMEDIT
13911if test -n "$NMEDIT"; then
13912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13913$as_echo "$NMEDIT" >&6; }
13914else
13915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13916$as_echo "no" >&6; }
13917fi
13918
13919
13920fi
13921if test -z "$ac_cv_prog_NMEDIT"; then
13922  ac_ct_NMEDIT=$NMEDIT
13923  # Extract the first word of "nmedit", so it can be a program name with args.
13924set dummy nmedit; ac_word=$2
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13926$as_echo_n "checking for $ac_word... " >&6; }
13927if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13928  $as_echo_n "(cached) " >&6
13929else
13930  if test -n "$ac_ct_NMEDIT"; then
13931  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13932else
13933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13934for as_dir in $PATH
13935do
13936  IFS=$as_save_IFS
13937  test -z "$as_dir" && as_dir=.
13938    for ac_exec_ext in '' $ac_executable_extensions; do
13939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13940    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13942    break 2
13943  fi
13944done
13945  done
13946IFS=$as_save_IFS
13947
13948fi
13949fi
13950ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13951if test -n "$ac_ct_NMEDIT"; then
13952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13953$as_echo "$ac_ct_NMEDIT" >&6; }
13954else
13955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13956$as_echo "no" >&6; }
13957fi
13958
13959  if test "x$ac_ct_NMEDIT" = x; then
13960    NMEDIT=":"
13961  else
13962    case $cross_compiling:$ac_tool_warned in
13963yes:)
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13966ac_tool_warned=yes ;;
13967esac
13968    NMEDIT=$ac_ct_NMEDIT
13969  fi
13970else
13971  NMEDIT="$ac_cv_prog_NMEDIT"
13972fi
13973
13974    if test -n "$ac_tool_prefix"; then
13975  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13976set dummy ${ac_tool_prefix}lipo; ac_word=$2
13977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13978$as_echo_n "checking for $ac_word... " >&6; }
13979if ${ac_cv_prog_LIPO+:} false; then :
13980  $as_echo_n "(cached) " >&6
13981else
13982  if test -n "$LIPO"; then
13983  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13984else
13985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13986for as_dir in $PATH
13987do
13988  IFS=$as_save_IFS
13989  test -z "$as_dir" && as_dir=.
13990    for ac_exec_ext in '' $ac_executable_extensions; do
13991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13992    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13994    break 2
13995  fi
13996done
13997  done
13998IFS=$as_save_IFS
13999
14000fi
14001fi
14002LIPO=$ac_cv_prog_LIPO
14003if test -n "$LIPO"; then
14004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14005$as_echo "$LIPO" >&6; }
14006else
14007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008$as_echo "no" >&6; }
14009fi
14010
14011
14012fi
14013if test -z "$ac_cv_prog_LIPO"; then
14014  ac_ct_LIPO=$LIPO
14015  # Extract the first word of "lipo", so it can be a program name with args.
14016set dummy lipo; ac_word=$2
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14018$as_echo_n "checking for $ac_word... " >&6; }
14019if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14020  $as_echo_n "(cached) " >&6
14021else
14022  if test -n "$ac_ct_LIPO"; then
14023  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14024else
14025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026for as_dir in $PATH
14027do
14028  IFS=$as_save_IFS
14029  test -z "$as_dir" && as_dir=.
14030    for ac_exec_ext in '' $ac_executable_extensions; do
14031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14032    ac_cv_prog_ac_ct_LIPO="lipo"
14033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14034    break 2
14035  fi
14036done
14037  done
14038IFS=$as_save_IFS
14039
14040fi
14041fi
14042ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14043if test -n "$ac_ct_LIPO"; then
14044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14045$as_echo "$ac_ct_LIPO" >&6; }
14046else
14047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048$as_echo "no" >&6; }
14049fi
14050
14051  if test "x$ac_ct_LIPO" = x; then
14052    LIPO=":"
14053  else
14054    case $cross_compiling:$ac_tool_warned in
14055yes:)
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14058ac_tool_warned=yes ;;
14059esac
14060    LIPO=$ac_ct_LIPO
14061  fi
14062else
14063  LIPO="$ac_cv_prog_LIPO"
14064fi
14065
14066    if test -n "$ac_tool_prefix"; then
14067  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14068set dummy ${ac_tool_prefix}otool; ac_word=$2
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070$as_echo_n "checking for $ac_word... " >&6; }
14071if ${ac_cv_prog_OTOOL+:} false; then :
14072  $as_echo_n "(cached) " >&6
14073else
14074  if test -n "$OTOOL"; then
14075  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14076else
14077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078for as_dir in $PATH
14079do
14080  IFS=$as_save_IFS
14081  test -z "$as_dir" && as_dir=.
14082    for ac_exec_ext in '' $ac_executable_extensions; do
14083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14084    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14086    break 2
14087  fi
14088done
14089  done
14090IFS=$as_save_IFS
14091
14092fi
14093fi
14094OTOOL=$ac_cv_prog_OTOOL
14095if test -n "$OTOOL"; then
14096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14097$as_echo "$OTOOL" >&6; }
14098else
14099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
14101fi
14102
14103
14104fi
14105if test -z "$ac_cv_prog_OTOOL"; then
14106  ac_ct_OTOOL=$OTOOL
14107  # Extract the first word of "otool", so it can be a program name with args.
14108set dummy otool; ac_word=$2
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14110$as_echo_n "checking for $ac_word... " >&6; }
14111if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14112  $as_echo_n "(cached) " >&6
14113else
14114  if test -n "$ac_ct_OTOOL"; then
14115  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14116else
14117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118for as_dir in $PATH
14119do
14120  IFS=$as_save_IFS
14121  test -z "$as_dir" && as_dir=.
14122    for ac_exec_ext in '' $ac_executable_extensions; do
14123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14124    ac_cv_prog_ac_ct_OTOOL="otool"
14125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14126    break 2
14127  fi
14128done
14129  done
14130IFS=$as_save_IFS
14131
14132fi
14133fi
14134ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14135if test -n "$ac_ct_OTOOL"; then
14136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14137$as_echo "$ac_ct_OTOOL" >&6; }
14138else
14139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140$as_echo "no" >&6; }
14141fi
14142
14143  if test "x$ac_ct_OTOOL" = x; then
14144    OTOOL=":"
14145  else
14146    case $cross_compiling:$ac_tool_warned in
14147yes:)
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14150ac_tool_warned=yes ;;
14151esac
14152    OTOOL=$ac_ct_OTOOL
14153  fi
14154else
14155  OTOOL="$ac_cv_prog_OTOOL"
14156fi
14157
14158    if test -n "$ac_tool_prefix"; then
14159  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14160set dummy ${ac_tool_prefix}otool64; ac_word=$2
14161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14162$as_echo_n "checking for $ac_word... " >&6; }
14163if ${ac_cv_prog_OTOOL64+:} false; then :
14164  $as_echo_n "(cached) " >&6
14165else
14166  if test -n "$OTOOL64"; then
14167  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14168else
14169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14170for as_dir in $PATH
14171do
14172  IFS=$as_save_IFS
14173  test -z "$as_dir" && as_dir=.
14174    for ac_exec_ext in '' $ac_executable_extensions; do
14175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14176    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14178    break 2
14179  fi
14180done
14181  done
14182IFS=$as_save_IFS
14183
14184fi
14185fi
14186OTOOL64=$ac_cv_prog_OTOOL64
14187if test -n "$OTOOL64"; then
14188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14189$as_echo "$OTOOL64" >&6; }
14190else
14191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14192$as_echo "no" >&6; }
14193fi
14194
14195
14196fi
14197if test -z "$ac_cv_prog_OTOOL64"; then
14198  ac_ct_OTOOL64=$OTOOL64
14199  # Extract the first word of "otool64", so it can be a program name with args.
14200set dummy otool64; ac_word=$2
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202$as_echo_n "checking for $ac_word... " >&6; }
14203if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14204  $as_echo_n "(cached) " >&6
14205else
14206  if test -n "$ac_ct_OTOOL64"; then
14207  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14208else
14209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210for as_dir in $PATH
14211do
14212  IFS=$as_save_IFS
14213  test -z "$as_dir" && as_dir=.
14214    for ac_exec_ext in '' $ac_executable_extensions; do
14215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216    ac_cv_prog_ac_ct_OTOOL64="otool64"
14217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14218    break 2
14219  fi
14220done
14221  done
14222IFS=$as_save_IFS
14223
14224fi
14225fi
14226ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14227if test -n "$ac_ct_OTOOL64"; then
14228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14229$as_echo "$ac_ct_OTOOL64" >&6; }
14230else
14231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232$as_echo "no" >&6; }
14233fi
14234
14235  if test "x$ac_ct_OTOOL64" = x; then
14236    OTOOL64=":"
14237  else
14238    case $cross_compiling:$ac_tool_warned in
14239yes:)
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14242ac_tool_warned=yes ;;
14243esac
14244    OTOOL64=$ac_ct_OTOOL64
14245  fi
14246else
14247  OTOOL64="$ac_cv_prog_OTOOL64"
14248fi
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14277$as_echo_n "checking for -single_module linker flag... " >&6; }
14278if ${lt_cv_apple_cc_single_mod+:} false; then :
14279  $as_echo_n "(cached) " >&6
14280else
14281  lt_cv_apple_cc_single_mod=no
14282      if test -z "$LT_MULTI_MODULE"; then
14283	# By default we will add the -single_module flag. You can override
14284	# by either setting the environment variable LT_MULTI_MODULE
14285	# non-empty at configure time, or by adding -multi_module to the
14286	# link flags.
14287	rm -rf libconftest.dylib*
14288	echo "int foo(void){return 1;}" > conftest.c
14289	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14290-dynamiclib -Wl,-single_module conftest.c" >&5
14291	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14292	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14293        _lt_result=$?
14294	# If there is a non-empty error log, and "single_module"
14295	# appears in it, assume the flag caused a linker warning
14296        if test -s conftest.err && $GREP single_module conftest.err; then
14297	  cat conftest.err >&5
14298	# Otherwise, if the output was created with a 0 exit code from
14299	# the compiler, it worked.
14300	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14301	  lt_cv_apple_cc_single_mod=yes
14302	else
14303	  cat conftest.err >&5
14304	fi
14305	rm -rf libconftest.dylib*
14306	rm -f conftest.*
14307      fi
14308fi
14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14310$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14311
14312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14313$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14314if ${lt_cv_ld_exported_symbols_list+:} false; then :
14315  $as_echo_n "(cached) " >&6
14316else
14317  lt_cv_ld_exported_symbols_list=no
14318      save_LDFLAGS=$LDFLAGS
14319      echo "_main" > conftest.sym
14320      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14321      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323
14324int
14325main ()
14326{
14327
14328  ;
14329  return 0;
14330}
14331_ACEOF
14332if ac_fn_c_try_link "$LINENO"; then :
14333  lt_cv_ld_exported_symbols_list=yes
14334else
14335  lt_cv_ld_exported_symbols_list=no
14336fi
14337rm -f core conftest.err conftest.$ac_objext \
14338    conftest$ac_exeext conftest.$ac_ext
14339	LDFLAGS=$save_LDFLAGS
14340
14341fi
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14343$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14344
14345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14346$as_echo_n "checking for -force_load linker flag... " >&6; }
14347if ${lt_cv_ld_force_load+:} false; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  lt_cv_ld_force_load=no
14351      cat > conftest.c << _LT_EOF
14352int forced_loaded() { return 2;}
14353_LT_EOF
14354      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14355      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14356      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14357      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14358      echo "$RANLIB libconftest.a" >&5
14359      $RANLIB libconftest.a 2>&5
14360      cat > conftest.c << _LT_EOF
14361int main() { return 0;}
14362_LT_EOF
14363      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14364      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14365      _lt_result=$?
14366      if test -s conftest.err && $GREP force_load conftest.err; then
14367	cat conftest.err >&5
14368      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14369	lt_cv_ld_force_load=yes
14370      else
14371	cat conftest.err >&5
14372      fi
14373        rm -f conftest.err libconftest.a conftest conftest.c
14374        rm -rf conftest.dSYM
14375
14376fi
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14378$as_echo "$lt_cv_ld_force_load" >&6; }
14379    case $host_os in
14380    rhapsody* | darwin1.[012])
14381      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14382    darwin1.*)
14383      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14384    darwin*) # darwin 5.x on
14385      # if running on 10.5 or later, the deployment target defaults
14386      # to the OS version, if on x86, and 10.4, the deployment
14387      # target defaults to 10.4. Don't you love it?
14388      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14389	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14390	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14391	10.[012][,.]*)
14392	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14393	10.*)
14394	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14395      esac
14396    ;;
14397  esac
14398    if test yes = "$lt_cv_apple_cc_single_mod"; then
14399      _lt_dar_single_mod='$single_module'
14400    fi
14401    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14402      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14403    else
14404      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14405    fi
14406    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14407      _lt_dsymutil='~$DSYMUTIL $lib || :'
14408    else
14409      _lt_dsymutil=
14410    fi
14411    ;;
14412  esac
14413
14414# func_munge_path_list VARIABLE PATH
14415# -----------------------------------
14416# VARIABLE is name of variable containing _space_ separated list of
14417# directories to be munged by the contents of PATH, which is string
14418# having a format:
14419# "DIR[:DIR]:"
14420#       string "DIR[ DIR]" will be prepended to VARIABLE
14421# ":DIR[:DIR]"
14422#       string "DIR[ DIR]" will be appended to VARIABLE
14423# "DIRP[:DIRP]::[DIRA:]DIRA"
14424#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14425#       "DIRA[ DIRA]" will be appended to VARIABLE
14426# "DIR[:DIR]"
14427#       VARIABLE will be replaced by "DIR[ DIR]"
14428func_munge_path_list ()
14429{
14430    case x$2 in
14431    x)
14432        ;;
14433    *:)
14434        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14435        ;;
14436    x:*)
14437        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14438        ;;
14439    *::*)
14440        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14441        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14442        ;;
14443    *)
14444        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14445        ;;
14446    esac
14447}
14448
14449for ac_header in dlfcn.h
14450do :
14451  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14452"
14453if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14454  cat >>confdefs.h <<_ACEOF
14455#define HAVE_DLFCN_H 1
14456_ACEOF
14457
14458fi
14459
14460done
14461
14462
14463
14464
14465
14466# Set options
14467
14468
14469
14470        enable_dlopen=no
14471
14472
14473  enable_win32_dll=no
14474
14475
14476            # Check whether --enable-shared was given.
14477if test "${enable_shared+set}" = set; then :
14478  enableval=$enable_shared; p=${PACKAGE-default}
14479    case $enableval in
14480    yes) enable_shared=yes ;;
14481    no) enable_shared=no ;;
14482    *)
14483      enable_shared=no
14484      # Look at the argument we got.  We use all the common list separators.
14485      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14486      for pkg in $enableval; do
14487	IFS=$lt_save_ifs
14488	if test "X$pkg" = "X$p"; then
14489	  enable_shared=yes
14490	fi
14491      done
14492      IFS=$lt_save_ifs
14493      ;;
14494    esac
14495else
14496  enable_shared=yes
14497fi
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509# Check whether --with-pic was given.
14510if test "${with_pic+set}" = set; then :
14511  withval=$with_pic; lt_p=${PACKAGE-default}
14512    case $withval in
14513    yes|no) pic_mode=$withval ;;
14514    *)
14515      pic_mode=default
14516      # Look at the argument we got.  We use all the common list separators.
14517      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14518      for lt_pkg in $withval; do
14519	IFS=$lt_save_ifs
14520	if test "X$lt_pkg" = "X$lt_p"; then
14521	  pic_mode=yes
14522	fi
14523      done
14524      IFS=$lt_save_ifs
14525      ;;
14526    esac
14527else
14528  pic_mode=default
14529fi
14530
14531
14532
14533
14534
14535
14536
14537
14538  # Check whether --enable-fast-install was given.
14539if test "${enable_fast_install+set}" = set; then :
14540  enableval=$enable_fast_install; p=${PACKAGE-default}
14541    case $enableval in
14542    yes) enable_fast_install=yes ;;
14543    no) enable_fast_install=no ;;
14544    *)
14545      enable_fast_install=no
14546      # Look at the argument we got.  We use all the common list separators.
14547      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14548      for pkg in $enableval; do
14549	IFS=$lt_save_ifs
14550	if test "X$pkg" = "X$p"; then
14551	  enable_fast_install=yes
14552	fi
14553      done
14554      IFS=$lt_save_ifs
14555      ;;
14556    esac
14557else
14558  enable_fast_install=yes
14559fi
14560
14561
14562
14563
14564
14565
14566
14567
14568  shared_archive_member_spec=
14569case $host,$enable_shared in
14570power*-*-aix[5-9]*,yes)
14571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14572$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14573
14574# Check whether --with-aix-soname was given.
14575if test "${with_aix_soname+set}" = set; then :
14576  withval=$with_aix_soname; case $withval in
14577    aix|svr4|both)
14578      ;;
14579    *)
14580      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14581      ;;
14582    esac
14583    lt_cv_with_aix_soname=$with_aix_soname
14584else
14585  if ${lt_cv_with_aix_soname+:} false; then :
14586  $as_echo_n "(cached) " >&6
14587else
14588  lt_cv_with_aix_soname=aix
14589fi
14590
14591    with_aix_soname=$lt_cv_with_aix_soname
14592fi
14593
14594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14595$as_echo "$with_aix_soname" >&6; }
14596  if test aix != "$with_aix_soname"; then
14597    # For the AIX way of multilib, we name the shared archive member
14598    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14599    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14600    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14601    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14602    if test 64 = "${OBJECT_MODE-32}"; then
14603      shared_archive_member_spec=shr_64
14604    else
14605      shared_archive_member_spec=shr
14606    fi
14607  fi
14608  ;;
14609*)
14610  with_aix_soname=aix
14611  ;;
14612esac
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623# This can be used to rebuild libtool when needed
14624LIBTOOL_DEPS=$ltmain
14625
14626# Always use our own libtool.
14627LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658test -z "$LN_S" && LN_S="ln -s"
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673if test -n "${ZSH_VERSION+set}"; then
14674   setopt NO_GLOB_SUBST
14675fi
14676
14677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14678$as_echo_n "checking for objdir... " >&6; }
14679if ${lt_cv_objdir+:} false; then :
14680  $as_echo_n "(cached) " >&6
14681else
14682  rm -f .libs 2>/dev/null
14683mkdir .libs 2>/dev/null
14684if test -d .libs; then
14685  lt_cv_objdir=.libs
14686else
14687  # MS-DOS does not allow filenames that begin with a dot.
14688  lt_cv_objdir=_libs
14689fi
14690rmdir .libs 2>/dev/null
14691fi
14692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14693$as_echo "$lt_cv_objdir" >&6; }
14694objdir=$lt_cv_objdir
14695
14696
14697
14698
14699
14700cat >>confdefs.h <<_ACEOF
14701#define LT_OBJDIR "$lt_cv_objdir/"
14702_ACEOF
14703
14704
14705
14706
14707case $host_os in
14708aix3*)
14709  # AIX sometimes has problems with the GCC collect2 program.  For some
14710  # reason, if we set the COLLECT_NAMES environment variable, the problems
14711  # vanish in a puff of smoke.
14712  if test set != "${COLLECT_NAMES+set}"; then
14713    COLLECT_NAMES=
14714    export COLLECT_NAMES
14715  fi
14716  ;;
14717esac
14718
14719# Global variables:
14720ofile=libtool
14721can_build_shared=yes
14722
14723# All known linkers require a '.a' archive for static linking (except MSVC,
14724# which needs '.lib').
14725libext=a
14726
14727with_gnu_ld=$lt_cv_prog_gnu_ld
14728
14729old_CC=$CC
14730old_CFLAGS=$CFLAGS
14731
14732# Set sane defaults for various variables
14733test -z "$CC" && CC=cc
14734test -z "$LTCC" && LTCC=$CC
14735test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14736test -z "$LD" && LD=ld
14737test -z "$ac_objext" && ac_objext=o
14738
14739func_cc_basename $compiler
14740cc_basename=$func_cc_basename_result
14741
14742
14743# Only perform the check for file, if the check method requires it
14744test -z "$MAGIC_CMD" && MAGIC_CMD=file
14745case $deplibs_check_method in
14746file_magic*)
14747  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14748    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14749$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14750if ${lt_cv_path_MAGIC_CMD+:} false; then :
14751  $as_echo_n "(cached) " >&6
14752else
14753  case $MAGIC_CMD in
14754[\\/*] |  ?:[\\/]*)
14755  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14756  ;;
14757*)
14758  lt_save_MAGIC_CMD=$MAGIC_CMD
14759  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14760  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14761  for ac_dir in $ac_dummy; do
14762    IFS=$lt_save_ifs
14763    test -z "$ac_dir" && ac_dir=.
14764    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14765      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14766      if test -n "$file_magic_test_file"; then
14767	case $deplibs_check_method in
14768	"file_magic "*)
14769	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14770	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14771	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14772	    $EGREP "$file_magic_regex" > /dev/null; then
14773	    :
14774	  else
14775	    cat <<_LT_EOF 1>&2
14776
14777*** Warning: the command libtool uses to detect shared libraries,
14778*** $file_magic_cmd, produces output that libtool cannot recognize.
14779*** The result is that libtool may fail to recognize shared libraries
14780*** as such.  This will affect the creation of libtool libraries that
14781*** depend on shared libraries, but programs linked with such libtool
14782*** libraries will work regardless of this problem.  Nevertheless, you
14783*** may want to report the problem to your system manager and/or to
14784*** bug-libtool@gnu.org
14785
14786_LT_EOF
14787	  fi ;;
14788	esac
14789      fi
14790      break
14791    fi
14792  done
14793  IFS=$lt_save_ifs
14794  MAGIC_CMD=$lt_save_MAGIC_CMD
14795  ;;
14796esac
14797fi
14798
14799MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14800if test -n "$MAGIC_CMD"; then
14801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14802$as_echo "$MAGIC_CMD" >&6; }
14803else
14804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805$as_echo "no" >&6; }
14806fi
14807
14808
14809
14810
14811
14812if test -z "$lt_cv_path_MAGIC_CMD"; then
14813  if test -n "$ac_tool_prefix"; then
14814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14815$as_echo_n "checking for file... " >&6; }
14816if ${lt_cv_path_MAGIC_CMD+:} false; then :
14817  $as_echo_n "(cached) " >&6
14818else
14819  case $MAGIC_CMD in
14820[\\/*] |  ?:[\\/]*)
14821  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14822  ;;
14823*)
14824  lt_save_MAGIC_CMD=$MAGIC_CMD
14825  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14826  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14827  for ac_dir in $ac_dummy; do
14828    IFS=$lt_save_ifs
14829    test -z "$ac_dir" && ac_dir=.
14830    if test -f "$ac_dir/file"; then
14831      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14832      if test -n "$file_magic_test_file"; then
14833	case $deplibs_check_method in
14834	"file_magic "*)
14835	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14836	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14837	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14838	    $EGREP "$file_magic_regex" > /dev/null; then
14839	    :
14840	  else
14841	    cat <<_LT_EOF 1>&2
14842
14843*** Warning: the command libtool uses to detect shared libraries,
14844*** $file_magic_cmd, produces output that libtool cannot recognize.
14845*** The result is that libtool may fail to recognize shared libraries
14846*** as such.  This will affect the creation of libtool libraries that
14847*** depend on shared libraries, but programs linked with such libtool
14848*** libraries will work regardless of this problem.  Nevertheless, you
14849*** may want to report the problem to your system manager and/or to
14850*** bug-libtool@gnu.org
14851
14852_LT_EOF
14853	  fi ;;
14854	esac
14855      fi
14856      break
14857    fi
14858  done
14859  IFS=$lt_save_ifs
14860  MAGIC_CMD=$lt_save_MAGIC_CMD
14861  ;;
14862esac
14863fi
14864
14865MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14866if test -n "$MAGIC_CMD"; then
14867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14868$as_echo "$MAGIC_CMD" >&6; }
14869else
14870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871$as_echo "no" >&6; }
14872fi
14873
14874
14875  else
14876    MAGIC_CMD=:
14877  fi
14878fi
14879
14880  fi
14881  ;;
14882esac
14883
14884# Use C for the default configuration in the libtool script
14885
14886lt_save_CC=$CC
14887ac_ext=c
14888ac_cpp='$CPP $CPPFLAGS'
14889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14891ac_compiler_gnu=$ac_cv_c_compiler_gnu
14892
14893
14894# Source file extension for C test sources.
14895ac_ext=c
14896
14897# Object file extension for compiled C test sources.
14898objext=o
14899objext=$objext
14900
14901# Code to be used in simple compile tests
14902lt_simple_compile_test_code="int some_variable = 0;"
14903
14904# Code to be used in simple link tests
14905lt_simple_link_test_code='int main(){return(0);}'
14906
14907
14908
14909
14910
14911
14912
14913# If no C compiler was specified, use CC.
14914LTCC=${LTCC-"$CC"}
14915
14916# If no C compiler flags were specified, use CFLAGS.
14917LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14918
14919# Allow CC to be a program name with arguments.
14920compiler=$CC
14921
14922# Save the default compiler, since it gets overwritten when the other
14923# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14924compiler_DEFAULT=$CC
14925
14926# save warnings/boilerplate of simple test code
14927ac_outfile=conftest.$ac_objext
14928echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14929eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14930_lt_compiler_boilerplate=`cat conftest.err`
14931$RM conftest*
14932
14933ac_outfile=conftest.$ac_objext
14934echo "$lt_simple_link_test_code" >conftest.$ac_ext
14935eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14936_lt_linker_boilerplate=`cat conftest.err`
14937$RM -r conftest*
14938
14939
14940## CAVEAT EMPTOR:
14941## There is no encapsulation within the following macros, do not change
14942## the running order or otherwise move them around unless you know exactly
14943## what you are doing...
14944if test -n "$compiler"; then
14945
14946lt_prog_compiler_no_builtin_flag=
14947
14948if test yes = "$GCC"; then
14949  case $cc_basename in
14950  nvcc*)
14951    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14952  *)
14953    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14954  esac
14955
14956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14957$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14958if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14959  $as_echo_n "(cached) " >&6
14960else
14961  lt_cv_prog_compiler_rtti_exceptions=no
14962   ac_outfile=conftest.$ac_objext
14963   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14964   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14965   # Insert the option either (1) after the last *FLAGS variable, or
14966   # (2) before a word containing "conftest.", or (3) at the end.
14967   # Note that $ac_compile itself does not contain backslashes and begins
14968   # with a dollar sign (not a hyphen), so the echo should work correctly.
14969   # The option is referenced via a variable to avoid confusing sed.
14970   lt_compile=`echo "$ac_compile" | $SED \
14971   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14972   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973   -e 's:$: $lt_compiler_flag:'`
14974   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14975   (eval "$lt_compile" 2>conftest.err)
14976   ac_status=$?
14977   cat conftest.err >&5
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   if (exit $ac_status) && test -s "$ac_outfile"; then
14980     # The compiler can only warn and ignore the option if not recognized
14981     # So say no if there are warnings other than the usual output.
14982     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14983     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14984     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14985       lt_cv_prog_compiler_rtti_exceptions=yes
14986     fi
14987   fi
14988   $RM conftest*
14989
14990fi
14991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14992$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14993
14994if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14995    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14996else
14997    :
14998fi
14999
15000fi
15001
15002
15003
15004
15005
15006
15007  lt_prog_compiler_wl=
15008lt_prog_compiler_pic=
15009lt_prog_compiler_static=
15010
15011
15012  if test yes = "$GCC"; then
15013    lt_prog_compiler_wl='-Wl,'
15014    lt_prog_compiler_static='-static'
15015
15016    case $host_os in
15017      aix*)
15018      # All AIX code is PIC.
15019      if test ia64 = "$host_cpu"; then
15020	# AIX 5 now supports IA64 processor
15021	lt_prog_compiler_static='-Bstatic'
15022      fi
15023      lt_prog_compiler_pic='-fPIC'
15024      ;;
15025
15026    amigaos*)
15027      case $host_cpu in
15028      powerpc)
15029            # see comment about AmigaOS4 .so support
15030            lt_prog_compiler_pic='-fPIC'
15031        ;;
15032      m68k)
15033            # FIXME: we need at least 68020 code to build shared libraries, but
15034            # adding the '-m68020' flag to GCC prevents building anything better,
15035            # like '-m68040'.
15036            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15037        ;;
15038      esac
15039      ;;
15040
15041    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15042      # PIC is the default for these OSes.
15043      ;;
15044
15045    mingw* | cygwin* | pw32* | os2* | cegcc*)
15046      # This hack is so that the source file can tell whether it is being
15047      # built for inclusion in a dll (and should export symbols for example).
15048      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15049      # (--disable-auto-import) libraries
15050      lt_prog_compiler_pic='-DDLL_EXPORT'
15051      case $host_os in
15052      os2*)
15053	lt_prog_compiler_static='$wl-static'
15054	;;
15055      esac
15056      ;;
15057
15058    darwin* | rhapsody*)
15059      # PIC is the default on this platform
15060      # Common symbols not allowed in MH_DYLIB files
15061      lt_prog_compiler_pic='-fno-common'
15062      ;;
15063
15064    haiku*)
15065      # PIC is the default for Haiku.
15066      # The "-static" flag exists, but is broken.
15067      lt_prog_compiler_static=
15068      ;;
15069
15070    hpux*)
15071      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15072      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15073      # sets the default TLS model and affects inlining.
15074      case $host_cpu in
15075      hppa*64*)
15076	# +Z the default
15077	;;
15078      *)
15079	lt_prog_compiler_pic='-fPIC'
15080	;;
15081      esac
15082      ;;
15083
15084    interix[3-9]*)
15085      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15086      # Instead, we relocate shared libraries at runtime.
15087      ;;
15088
15089    msdosdjgpp*)
15090      # Just because we use GCC doesn't mean we suddenly get shared libraries
15091      # on systems that don't support them.
15092      lt_prog_compiler_can_build_shared=no
15093      enable_shared=no
15094      ;;
15095
15096    *nto* | *qnx*)
15097      # QNX uses GNU C++, but need to define -shared option too, otherwise
15098      # it will coredump.
15099      lt_prog_compiler_pic='-fPIC -shared'
15100      ;;
15101
15102    sysv4*MP*)
15103      if test -d /usr/nec; then
15104	lt_prog_compiler_pic=-Kconform_pic
15105      fi
15106      ;;
15107
15108    *)
15109      lt_prog_compiler_pic='-fPIC'
15110      ;;
15111    esac
15112
15113    case $cc_basename in
15114    nvcc*) # Cuda Compiler Driver 2.2
15115      lt_prog_compiler_wl='-Xlinker '
15116      if test -n "$lt_prog_compiler_pic"; then
15117        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15118      fi
15119      ;;
15120    esac
15121  else
15122    # PORTME Check for flag to pass linker flags through the system compiler.
15123    case $host_os in
15124    aix*)
15125      lt_prog_compiler_wl='-Wl,'
15126      if test ia64 = "$host_cpu"; then
15127	# AIX 5 now supports IA64 processor
15128	lt_prog_compiler_static='-Bstatic'
15129      else
15130	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15131      fi
15132      ;;
15133
15134    darwin* | rhapsody*)
15135      # PIC is the default on this platform
15136      # Common symbols not allowed in MH_DYLIB files
15137      lt_prog_compiler_pic='-fno-common'
15138      case $cc_basename in
15139      nagfor*)
15140        # NAG Fortran compiler
15141        lt_prog_compiler_wl='-Wl,-Wl,,'
15142        lt_prog_compiler_pic='-PIC'
15143        lt_prog_compiler_static='-Bstatic'
15144        ;;
15145      esac
15146      ;;
15147
15148    mingw* | cygwin* | pw32* | os2* | cegcc*)
15149      # This hack is so that the source file can tell whether it is being
15150      # built for inclusion in a dll (and should export symbols for example).
15151      lt_prog_compiler_pic='-DDLL_EXPORT'
15152      case $host_os in
15153      os2*)
15154	lt_prog_compiler_static='$wl-static'
15155	;;
15156      esac
15157      ;;
15158
15159    hpux9* | hpux10* | hpux11*)
15160      lt_prog_compiler_wl='-Wl,'
15161      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15162      # not for PA HP-UX.
15163      case $host_cpu in
15164      hppa*64*|ia64*)
15165	# +Z the default
15166	;;
15167      *)
15168	lt_prog_compiler_pic='+Z'
15169	;;
15170      esac
15171      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15172      lt_prog_compiler_static='$wl-a ${wl}archive'
15173      ;;
15174
15175    irix5* | irix6* | nonstopux*)
15176      lt_prog_compiler_wl='-Wl,'
15177      # PIC (with -KPIC) is the default.
15178      lt_prog_compiler_static='-non_shared'
15179      ;;
15180
15181    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15182      case $cc_basename in
15183      # old Intel for x86_64, which still supported -KPIC.
15184      ecc*)
15185	lt_prog_compiler_wl='-Wl,'
15186	lt_prog_compiler_pic='-KPIC'
15187	lt_prog_compiler_static='-static'
15188        ;;
15189      # icc used to be incompatible with GCC.
15190      # ICC 10 doesn't accept -KPIC any more.
15191      icc* | ifort*)
15192	lt_prog_compiler_wl='-Wl,'
15193	lt_prog_compiler_pic='-fPIC'
15194	lt_prog_compiler_static='-static'
15195        ;;
15196      # Lahey Fortran 8.1.
15197      lf95*)
15198	lt_prog_compiler_wl='-Wl,'
15199	lt_prog_compiler_pic='--shared'
15200	lt_prog_compiler_static='--static'
15201	;;
15202      nagfor*)
15203	# NAG Fortran compiler
15204	lt_prog_compiler_wl='-Wl,-Wl,,'
15205	lt_prog_compiler_pic='-PIC'
15206	lt_prog_compiler_static='-Bstatic'
15207	;;
15208      tcc*)
15209	# Fabrice Bellard et al's Tiny C Compiler
15210	lt_prog_compiler_wl='-Wl,'
15211	lt_prog_compiler_pic='-fPIC'
15212	lt_prog_compiler_static='-static'
15213	;;
15214      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15215        # Portland Group compilers (*not* the Pentium gcc compiler,
15216	# which looks to be a dead project)
15217	lt_prog_compiler_wl='-Wl,'
15218	lt_prog_compiler_pic='-fpic'
15219	lt_prog_compiler_static='-Bstatic'
15220        ;;
15221      ccc*)
15222        lt_prog_compiler_wl='-Wl,'
15223        # All Alpha code is PIC.
15224        lt_prog_compiler_static='-non_shared'
15225        ;;
15226      xl* | bgxl* | bgf* | mpixl*)
15227	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15228	lt_prog_compiler_wl='-Wl,'
15229	lt_prog_compiler_pic='-qpic'
15230	lt_prog_compiler_static='-qstaticlink'
15231	;;
15232      *)
15233	case `$CC -V 2>&1 | sed 5q` in
15234	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15235	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15236	  lt_prog_compiler_pic='-KPIC'
15237	  lt_prog_compiler_static='-Bstatic'
15238	  lt_prog_compiler_wl=''
15239	  ;;
15240	*Sun\ F* | *Sun*Fortran*)
15241	  lt_prog_compiler_pic='-KPIC'
15242	  lt_prog_compiler_static='-Bstatic'
15243	  lt_prog_compiler_wl='-Qoption ld '
15244	  ;;
15245	*Sun\ C*)
15246	  # Sun C 5.9
15247	  lt_prog_compiler_pic='-KPIC'
15248	  lt_prog_compiler_static='-Bstatic'
15249	  lt_prog_compiler_wl='-Wl,'
15250	  ;;
15251        *Intel*\ [CF]*Compiler*)
15252	  lt_prog_compiler_wl='-Wl,'
15253	  lt_prog_compiler_pic='-fPIC'
15254	  lt_prog_compiler_static='-static'
15255	  ;;
15256	*Portland\ Group*)
15257	  lt_prog_compiler_wl='-Wl,'
15258	  lt_prog_compiler_pic='-fpic'
15259	  lt_prog_compiler_static='-Bstatic'
15260	  ;;
15261	esac
15262	;;
15263      esac
15264      ;;
15265
15266    newsos6)
15267      lt_prog_compiler_pic='-KPIC'
15268      lt_prog_compiler_static='-Bstatic'
15269      ;;
15270
15271    *nto* | *qnx*)
15272      # QNX uses GNU C++, but need to define -shared option too, otherwise
15273      # it will coredump.
15274      lt_prog_compiler_pic='-fPIC -shared'
15275      ;;
15276
15277    osf3* | osf4* | osf5*)
15278      lt_prog_compiler_wl='-Wl,'
15279      # All OSF/1 code is PIC.
15280      lt_prog_compiler_static='-non_shared'
15281      ;;
15282
15283    rdos*)
15284      lt_prog_compiler_static='-non_shared'
15285      ;;
15286
15287    solaris*)
15288      lt_prog_compiler_pic='-KPIC'
15289      lt_prog_compiler_static='-Bstatic'
15290      case $cc_basename in
15291      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15292	lt_prog_compiler_wl='-Qoption ld ';;
15293      *)
15294	lt_prog_compiler_wl='-Wl,';;
15295      esac
15296      ;;
15297
15298    sunos4*)
15299      lt_prog_compiler_wl='-Qoption ld '
15300      lt_prog_compiler_pic='-PIC'
15301      lt_prog_compiler_static='-Bstatic'
15302      ;;
15303
15304    sysv4 | sysv4.2uw2* | sysv4.3*)
15305      lt_prog_compiler_wl='-Wl,'
15306      lt_prog_compiler_pic='-KPIC'
15307      lt_prog_compiler_static='-Bstatic'
15308      ;;
15309
15310    sysv4*MP*)
15311      if test -d /usr/nec; then
15312	lt_prog_compiler_pic='-Kconform_pic'
15313	lt_prog_compiler_static='-Bstatic'
15314      fi
15315      ;;
15316
15317    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15318      lt_prog_compiler_wl='-Wl,'
15319      lt_prog_compiler_pic='-KPIC'
15320      lt_prog_compiler_static='-Bstatic'
15321      ;;
15322
15323    unicos*)
15324      lt_prog_compiler_wl='-Wl,'
15325      lt_prog_compiler_can_build_shared=no
15326      ;;
15327
15328    uts4*)
15329      lt_prog_compiler_pic='-pic'
15330      lt_prog_compiler_static='-Bstatic'
15331      ;;
15332
15333    *)
15334      lt_prog_compiler_can_build_shared=no
15335      ;;
15336    esac
15337  fi
15338
15339case $host_os in
15340  # For platforms that do not support PIC, -DPIC is meaningless:
15341  *djgpp*)
15342    lt_prog_compiler_pic=
15343    ;;
15344  *)
15345    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15346    ;;
15347esac
15348
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15350$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15351if ${lt_cv_prog_compiler_pic+:} false; then :
15352  $as_echo_n "(cached) " >&6
15353else
15354  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15355fi
15356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15357$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15358lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15359
15360#
15361# Check to make sure the PIC flag actually works.
15362#
15363if test -n "$lt_prog_compiler_pic"; then
15364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15365$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15366if ${lt_cv_prog_compiler_pic_works+:} false; then :
15367  $as_echo_n "(cached) " >&6
15368else
15369  lt_cv_prog_compiler_pic_works=no
15370   ac_outfile=conftest.$ac_objext
15371   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15372   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15373   # Insert the option either (1) after the last *FLAGS variable, or
15374   # (2) before a word containing "conftest.", or (3) at the end.
15375   # Note that $ac_compile itself does not contain backslashes and begins
15376   # with a dollar sign (not a hyphen), so the echo should work correctly.
15377   # The option is referenced via a variable to avoid confusing sed.
15378   lt_compile=`echo "$ac_compile" | $SED \
15379   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15380   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15381   -e 's:$: $lt_compiler_flag:'`
15382   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15383   (eval "$lt_compile" 2>conftest.err)
15384   ac_status=$?
15385   cat conftest.err >&5
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   if (exit $ac_status) && test -s "$ac_outfile"; then
15388     # The compiler can only warn and ignore the option if not recognized
15389     # So say no if there are warnings other than the usual output.
15390     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15391     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15392     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15393       lt_cv_prog_compiler_pic_works=yes
15394     fi
15395   fi
15396   $RM conftest*
15397
15398fi
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15400$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15401
15402if test yes = "$lt_cv_prog_compiler_pic_works"; then
15403    case $lt_prog_compiler_pic in
15404     "" | " "*) ;;
15405     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15406     esac
15407else
15408    lt_prog_compiler_pic=
15409     lt_prog_compiler_can_build_shared=no
15410fi
15411
15412fi
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424#
15425# Check to make sure the static flag actually works.
15426#
15427wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15429$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15430if ${lt_cv_prog_compiler_static_works+:} false; then :
15431  $as_echo_n "(cached) " >&6
15432else
15433  lt_cv_prog_compiler_static_works=no
15434   save_LDFLAGS=$LDFLAGS
15435   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15436   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15437   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15438     # The linker can only warn and ignore the option if not recognized
15439     # So say no if there are warnings
15440     if test -s conftest.err; then
15441       # Append any errors to the config.log.
15442       cat conftest.err 1>&5
15443       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15444       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15445       if diff conftest.exp conftest.er2 >/dev/null; then
15446         lt_cv_prog_compiler_static_works=yes
15447       fi
15448     else
15449       lt_cv_prog_compiler_static_works=yes
15450     fi
15451   fi
15452   $RM -r conftest*
15453   LDFLAGS=$save_LDFLAGS
15454
15455fi
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15457$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15458
15459if test yes = "$lt_cv_prog_compiler_static_works"; then
15460    :
15461else
15462    lt_prog_compiler_static=
15463fi
15464
15465
15466
15467
15468
15469
15470
15471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15472$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15473if ${lt_cv_prog_compiler_c_o+:} false; then :
15474  $as_echo_n "(cached) " >&6
15475else
15476  lt_cv_prog_compiler_c_o=no
15477   $RM -r conftest 2>/dev/null
15478   mkdir conftest
15479   cd conftest
15480   mkdir out
15481   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15482
15483   lt_compiler_flag="-o out/conftest2.$ac_objext"
15484   # Insert the option either (1) after the last *FLAGS variable, or
15485   # (2) before a word containing "conftest.", or (3) at the end.
15486   # Note that $ac_compile itself does not contain backslashes and begins
15487   # with a dollar sign (not a hyphen), so the echo should work correctly.
15488   lt_compile=`echo "$ac_compile" | $SED \
15489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15491   -e 's:$: $lt_compiler_flag:'`
15492   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15493   (eval "$lt_compile" 2>out/conftest.err)
15494   ac_status=$?
15495   cat out/conftest.err >&5
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15498   then
15499     # The compiler can only warn and ignore the option if not recognized
15500     # So say no if there are warnings
15501     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15502     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15503     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15504       lt_cv_prog_compiler_c_o=yes
15505     fi
15506   fi
15507   chmod u+w . 2>&5
15508   $RM conftest*
15509   # SGI C++ compiler will create directory out/ii_files/ for
15510   # template instantiation
15511   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15512   $RM out/* && rmdir out
15513   cd ..
15514   $RM -r conftest
15515   $RM conftest*
15516
15517fi
15518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15519$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15520
15521
15522
15523
15524
15525
15526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15527$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15528if ${lt_cv_prog_compiler_c_o+:} false; then :
15529  $as_echo_n "(cached) " >&6
15530else
15531  lt_cv_prog_compiler_c_o=no
15532   $RM -r conftest 2>/dev/null
15533   mkdir conftest
15534   cd conftest
15535   mkdir out
15536   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15537
15538   lt_compiler_flag="-o out/conftest2.$ac_objext"
15539   # Insert the option either (1) after the last *FLAGS variable, or
15540   # (2) before a word containing "conftest.", or (3) at the end.
15541   # Note that $ac_compile itself does not contain backslashes and begins
15542   # with a dollar sign (not a hyphen), so the echo should work correctly.
15543   lt_compile=`echo "$ac_compile" | $SED \
15544   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15545   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15546   -e 's:$: $lt_compiler_flag:'`
15547   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15548   (eval "$lt_compile" 2>out/conftest.err)
15549   ac_status=$?
15550   cat out/conftest.err >&5
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15553   then
15554     # The compiler can only warn and ignore the option if not recognized
15555     # So say no if there are warnings
15556     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15557     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15558     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15559       lt_cv_prog_compiler_c_o=yes
15560     fi
15561   fi
15562   chmod u+w . 2>&5
15563   $RM conftest*
15564   # SGI C++ compiler will create directory out/ii_files/ for
15565   # template instantiation
15566   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15567   $RM out/* && rmdir out
15568   cd ..
15569   $RM -r conftest
15570   $RM conftest*
15571
15572fi
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15574$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15575
15576
15577
15578
15579hard_links=nottested
15580if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15581  # do not overwrite the value of need_locks provided by the user
15582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15583$as_echo_n "checking if we can lock with hard links... " >&6; }
15584  hard_links=yes
15585  $RM conftest*
15586  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15587  touch conftest.a
15588  ln conftest.a conftest.b 2>&5 || hard_links=no
15589  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15591$as_echo "$hard_links" >&6; }
15592  if test no = "$hard_links"; then
15593    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15594$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15595    need_locks=warn
15596  fi
15597else
15598  need_locks=no
15599fi
15600
15601
15602
15603
15604
15605
15606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15607$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15608
15609  runpath_var=
15610  allow_undefined_flag=
15611  always_export_symbols=no
15612  archive_cmds=
15613  archive_expsym_cmds=
15614  compiler_needs_object=no
15615  enable_shared_with_static_runtimes=no
15616  export_dynamic_flag_spec=
15617  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15618  hardcode_automatic=no
15619  hardcode_direct=no
15620  hardcode_direct_absolute=no
15621  hardcode_libdir_flag_spec=
15622  hardcode_libdir_separator=
15623  hardcode_minus_L=no
15624  hardcode_shlibpath_var=unsupported
15625  inherit_rpath=no
15626  link_all_deplibs=unknown
15627  module_cmds=
15628  module_expsym_cmds=
15629  old_archive_from_new_cmds=
15630  old_archive_from_expsyms_cmds=
15631  thread_safe_flag_spec=
15632  whole_archive_flag_spec=
15633  # include_expsyms should be a list of space-separated symbols to be *always*
15634  # included in the symbol list
15635  include_expsyms=
15636  # exclude_expsyms can be an extended regexp of symbols to exclude
15637  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15638  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15639  # as well as any symbol that contains 'd'.
15640  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15641  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15642  # platforms (ab)use it in PIC code, but their linkers get confused if
15643  # the symbol is explicitly referenced.  Since portable code cannot
15644  # rely on this symbol name, it's probably fine to never include it in
15645  # preloaded symbol tables.
15646  # Exclude shared library initialization/finalization symbols.
15647  extract_expsyms_cmds=
15648
15649  case $host_os in
15650  cygwin* | mingw* | pw32* | cegcc*)
15651    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15652    # When not using gcc, we currently assume that we are using
15653    # Microsoft Visual C++.
15654    if test yes != "$GCC"; then
15655      with_gnu_ld=no
15656    fi
15657    ;;
15658  interix*)
15659    # we just hope/assume this is gcc and not c89 (= MSVC++)
15660    with_gnu_ld=yes
15661    ;;
15662  openbsd* | bitrig*)
15663    with_gnu_ld=no
15664    ;;
15665  esac
15666
15667  ld_shlibs=yes
15668
15669  # On some targets, GNU ld is compatible enough with the native linker
15670  # that we're better off using the native interface for both.
15671  lt_use_gnu_ld_interface=no
15672  if test yes = "$with_gnu_ld"; then
15673    case $host_os in
15674      aix*)
15675	# The AIX port of GNU ld has always aspired to compatibility
15676	# with the native linker.  However, as the warning in the GNU ld
15677	# block says, versions before 2.19.5* couldn't really create working
15678	# shared libraries, regardless of the interface used.
15679	case `$LD -v 2>&1` in
15680	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15681	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15682	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15683	  *)
15684	    lt_use_gnu_ld_interface=yes
15685	    ;;
15686	esac
15687	;;
15688      *)
15689	lt_use_gnu_ld_interface=yes
15690	;;
15691    esac
15692  fi
15693
15694  if test yes = "$lt_use_gnu_ld_interface"; then
15695    # If archive_cmds runs LD, not CC, wlarc should be empty
15696    wlarc='$wl'
15697
15698    # Set some defaults for GNU ld with shared library support. These
15699    # are reset later if shared libraries are not supported. Putting them
15700    # here allows them to be overridden if necessary.
15701    runpath_var=LD_RUN_PATH
15702    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15703    export_dynamic_flag_spec='$wl--export-dynamic'
15704    # ancient GNU ld didn't support --whole-archive et. al.
15705    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15706      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15707    else
15708      whole_archive_flag_spec=
15709    fi
15710    supports_anon_versioning=no
15711    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15712      *GNU\ gold*) supports_anon_versioning=yes ;;
15713      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15714      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15715      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15716      *\ 2.11.*) ;; # other 2.11 versions
15717      *) supports_anon_versioning=yes ;;
15718    esac
15719
15720    # See if GNU ld supports shared libraries.
15721    case $host_os in
15722    aix[3-9]*)
15723      # On AIX/PPC, the GNU linker is very broken
15724      if test ia64 != "$host_cpu"; then
15725	ld_shlibs=no
15726	cat <<_LT_EOF 1>&2
15727
15728*** Warning: the GNU linker, at least up to release 2.19, is reported
15729*** to be unable to reliably create shared libraries on AIX.
15730*** Therefore, libtool is disabling shared libraries support.  If you
15731*** really care for shared libraries, you may want to install binutils
15732*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15733*** You will then need to restart the configuration process.
15734
15735_LT_EOF
15736      fi
15737      ;;
15738
15739    amigaos*)
15740      case $host_cpu in
15741      powerpc)
15742            # see comment about AmigaOS4 .so support
15743            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15744            archive_expsym_cmds=''
15745        ;;
15746      m68k)
15747            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)'
15748            hardcode_libdir_flag_spec='-L$libdir'
15749            hardcode_minus_L=yes
15750        ;;
15751      esac
15752      ;;
15753
15754    beos*)
15755      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15756	allow_undefined_flag=unsupported
15757	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15758	# support --undefined.  This deserves some investigation.  FIXME
15759	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15760      else
15761	ld_shlibs=no
15762      fi
15763      ;;
15764
15765    cygwin* | mingw* | pw32* | cegcc*)
15766      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15767      # as there is no search path for DLLs.
15768      hardcode_libdir_flag_spec='-L$libdir'
15769      export_dynamic_flag_spec='$wl--export-all-symbols'
15770      allow_undefined_flag=unsupported
15771      always_export_symbols=no
15772      enable_shared_with_static_runtimes=yes
15773      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'
15774      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15775
15776      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15777        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15778	# If the export-symbols file already is a .def file, use it as
15779	# is; otherwise, prepend EXPORTS...
15780	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15781          cp $export_symbols $output_objdir/$soname.def;
15782        else
15783          echo EXPORTS > $output_objdir/$soname.def;
15784          cat $export_symbols >> $output_objdir/$soname.def;
15785        fi~
15786        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15787      else
15788	ld_shlibs=no
15789      fi
15790      ;;
15791
15792    haiku*)
15793      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15794      link_all_deplibs=yes
15795      ;;
15796
15797    os2*)
15798      hardcode_libdir_flag_spec='-L$libdir'
15799      hardcode_minus_L=yes
15800      allow_undefined_flag=unsupported
15801      shrext_cmds=.dll
15802      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15803	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15804	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15805	$ECHO EXPORTS >> $output_objdir/$libname.def~
15806	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15807	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15808	emximp -o $lib $output_objdir/$libname.def'
15809      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15810	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15811	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15812	$ECHO EXPORTS >> $output_objdir/$libname.def~
15813	prefix_cmds="$SED"~
15814	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15815	  prefix_cmds="$prefix_cmds -e 1d";
15816	fi~
15817	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15818	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15819	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15820	emximp -o $lib $output_objdir/$libname.def'
15821      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15822      enable_shared_with_static_runtimes=yes
15823      file_list_spec='@'
15824      ;;
15825
15826    interix[3-9]*)
15827      hardcode_direct=no
15828      hardcode_shlibpath_var=no
15829      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15830      export_dynamic_flag_spec='$wl-E'
15831      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15832      # Instead, shared libraries are loaded at an image base (0x10000000 by
15833      # default) and relocated if they conflict, which is a slow very memory
15834      # consuming and fragmenting process.  To avoid this, we pick a random,
15835      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15836      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15837      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15838      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'
15839      ;;
15840
15841    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15842      tmp_diet=no
15843      if test linux-dietlibc = "$host_os"; then
15844	case $cc_basename in
15845	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15846	esac
15847      fi
15848      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15849	 && test no = "$tmp_diet"
15850      then
15851	tmp_addflag=' $pic_flag'
15852	tmp_sharedflag='-shared'
15853	case $cc_basename,$host_cpu in
15854        pgcc*)				# Portland Group C compiler
15855	  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'
15856	  tmp_addflag=' $pic_flag'
15857	  ;;
15858	pgf77* | pgf90* | pgf95* | pgfortran*)
15859					# Portland Group f77 and f90 compilers
15860	  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'
15861	  tmp_addflag=' $pic_flag -Mnomain' ;;
15862	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15863	  tmp_addflag=' -i_dynamic' ;;
15864	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15865	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15866	ifc* | ifort*)			# Intel Fortran compiler
15867	  tmp_addflag=' -nofor_main' ;;
15868	lf95*)				# Lahey Fortran 8.1
15869	  whole_archive_flag_spec=
15870	  tmp_sharedflag='--shared' ;;
15871        nagfor*)                        # NAGFOR 5.3
15872          tmp_sharedflag='-Wl,-shared' ;;
15873	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15874	  tmp_sharedflag='-qmkshrobj'
15875	  tmp_addflag= ;;
15876	nvcc*)	# Cuda Compiler Driver 2.2
15877	  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'
15878	  compiler_needs_object=yes
15879	  ;;
15880	esac
15881	case `$CC -V 2>&1 | sed 5q` in
15882	*Sun\ C*)			# Sun C 5.9
15883	  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'
15884	  compiler_needs_object=yes
15885	  tmp_sharedflag='-G' ;;
15886	*Sun\ F*)			# Sun Fortran 8.3
15887	  tmp_sharedflag='-G' ;;
15888	esac
15889	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15890
15891        if test yes = "$supports_anon_versioning"; then
15892          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15893            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15894            echo "local: *; };" >> $output_objdir/$libname.ver~
15895            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15896        fi
15897
15898	case $cc_basename in
15899	tcc*)
15900	  export_dynamic_flag_spec='-rdynamic'
15901	  ;;
15902	xlf* | bgf* | bgxlf* | mpixlf*)
15903	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15904	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15905	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15906	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15907	  if test yes = "$supports_anon_versioning"; then
15908	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15909              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15910              echo "local: *; };" >> $output_objdir/$libname.ver~
15911              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15912	  fi
15913	  ;;
15914	esac
15915      else
15916        ld_shlibs=no
15917      fi
15918      ;;
15919
15920    netbsd*)
15921      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15922	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15923	wlarc=
15924      else
15925	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15926	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15927      fi
15928      ;;
15929
15930    solaris*)
15931      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15932	ld_shlibs=no
15933	cat <<_LT_EOF 1>&2
15934
15935*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15936*** create shared libraries on Solaris systems.  Therefore, libtool
15937*** is disabling shared libraries support.  We urge you to upgrade GNU
15938*** binutils to release 2.9.1 or newer.  Another option is to modify
15939*** your PATH or compiler configuration so that the native linker is
15940*** used, and then restart.
15941
15942_LT_EOF
15943      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15944	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15945	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15946      else
15947	ld_shlibs=no
15948      fi
15949      ;;
15950
15951    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15952      case `$LD -v 2>&1` in
15953        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15954	ld_shlibs=no
15955	cat <<_LT_EOF 1>&2
15956
15957*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15958*** reliably create shared libraries on SCO systems.  Therefore, libtool
15959*** is disabling shared libraries support.  We urge you to upgrade GNU
15960*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15961*** your PATH or compiler configuration so that the native linker is
15962*** used, and then restart.
15963
15964_LT_EOF
15965	;;
15966	*)
15967	  # For security reasons, it is highly recommended that you always
15968	  # use absolute paths for naming shared libraries, and exclude the
15969	  # DT_RUNPATH tag from executables and libraries.  But doing so
15970	  # requires that you compile everything twice, which is a pain.
15971	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15972	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15973	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15974	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15975	  else
15976	    ld_shlibs=no
15977	  fi
15978	;;
15979      esac
15980      ;;
15981
15982    sunos4*)
15983      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15984      wlarc=
15985      hardcode_direct=yes
15986      hardcode_shlibpath_var=no
15987      ;;
15988
15989    *)
15990      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15991	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15992	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15993      else
15994	ld_shlibs=no
15995      fi
15996      ;;
15997    esac
15998
15999    if test no = "$ld_shlibs"; then
16000      runpath_var=
16001      hardcode_libdir_flag_spec=
16002      export_dynamic_flag_spec=
16003      whole_archive_flag_spec=
16004    fi
16005  else
16006    # PORTME fill in a description of your system's linker (not GNU ld)
16007    case $host_os in
16008    aix3*)
16009      allow_undefined_flag=unsupported
16010      always_export_symbols=yes
16011      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'
16012      # Note: this linker hardcodes the directories in LIBPATH if there
16013      # are no directories specified by -L.
16014      hardcode_minus_L=yes
16015      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16016	# Neither direct hardcoding nor static linking is supported with a
16017	# broken collect2.
16018	hardcode_direct=unsupported
16019      fi
16020      ;;
16021
16022    aix[4-9]*)
16023      if test ia64 = "$host_cpu"; then
16024	# On IA64, the linker does run time linking by default, so we don't
16025	# have to do anything special.
16026	aix_use_runtimelinking=no
16027	exp_sym_flag='-Bexport'
16028	no_entry_flag=
16029      else
16030	# If we're using GNU nm, then we don't want the "-C" option.
16031	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16032	# Without the "-l" option, or with the "-B" option, AIX nm treats
16033	# weak defined symbols like other global defined symbols, whereas
16034	# GNU nm marks them as "W".
16035	# While the 'weak' keyword is ignored in the Export File, we need
16036	# it in the Import File for the 'aix-soname' feature, so we have
16037	# to replace the "-B" option with "-P" for AIX nm.
16038	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16039	  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'
16040	else
16041	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16042	fi
16043	aix_use_runtimelinking=no
16044
16045	# Test if we are trying to use run time linking or normal
16046	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16047	# have runtime linking enabled, and use it for executables.
16048	# For shared libraries, we enable/disable runtime linking
16049	# depending on the kind of the shared library created -
16050	# when "with_aix_soname,aix_use_runtimelinking" is:
16051	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16052	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16053	#            lib.a           static archive
16054	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16055	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16056	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16057	#            lib.a(lib.so.V) shared, rtl:no
16058	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16059	#            lib.a           static archive
16060	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16061	  for ld_flag in $LDFLAGS; do
16062	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16063	    aix_use_runtimelinking=yes
16064	    break
16065	  fi
16066	  done
16067	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16068	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16069	    # so we don't have lib.a shared libs to link our executables.
16070	    # We have to force runtime linking in this case.
16071	    aix_use_runtimelinking=yes
16072	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16073	  fi
16074	  ;;
16075	esac
16076
16077	exp_sym_flag='-bexport'
16078	no_entry_flag='-bnoentry'
16079      fi
16080
16081      # When large executables or shared objects are built, AIX ld can
16082      # have problems creating the table of contents.  If linking a library
16083      # or program results in "error TOC overflow" add -mminimal-toc to
16084      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16085      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16086
16087      archive_cmds=''
16088      hardcode_direct=yes
16089      hardcode_direct_absolute=yes
16090      hardcode_libdir_separator=':'
16091      link_all_deplibs=yes
16092      file_list_spec='$wl-f,'
16093      case $with_aix_soname,$aix_use_runtimelinking in
16094      aix,*) ;; # traditional, no import file
16095      svr4,* | *,yes) # use import file
16096	# The Import File defines what to hardcode.
16097	hardcode_direct=no
16098	hardcode_direct_absolute=no
16099	;;
16100      esac
16101
16102      if test yes = "$GCC"; then
16103	case $host_os in aix4.[012]|aix4.[012].*)
16104	# We only want to do this on AIX 4.2 and lower, the check
16105	# below for broken collect2 doesn't work under 4.3+
16106	  collect2name=`$CC -print-prog-name=collect2`
16107	  if test -f "$collect2name" &&
16108	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16109	  then
16110	  # We have reworked collect2
16111	  :
16112	  else
16113	  # We have old collect2
16114	  hardcode_direct=unsupported
16115	  # It fails to find uninstalled libraries when the uninstalled
16116	  # path is not listed in the libpath.  Setting hardcode_minus_L
16117	  # to unsupported forces relinking
16118	  hardcode_minus_L=yes
16119	  hardcode_libdir_flag_spec='-L$libdir'
16120	  hardcode_libdir_separator=
16121	  fi
16122	  ;;
16123	esac
16124	shared_flag='-shared'
16125	if test yes = "$aix_use_runtimelinking"; then
16126	  shared_flag="$shared_flag "'$wl-G'
16127	fi
16128	# Need to ensure runtime linking is disabled for the traditional
16129	# shared library, or the linker may eventually find shared libraries
16130	# /with/ Import File - we do not want to mix them.
16131	shared_flag_aix='-shared'
16132	shared_flag_svr4='-shared $wl-G'
16133      else
16134	# not using gcc
16135	if test ia64 = "$host_cpu"; then
16136	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16137	# chokes on -Wl,-G. The following line is correct:
16138	  shared_flag='-G'
16139	else
16140	  if test yes = "$aix_use_runtimelinking"; then
16141	    shared_flag='$wl-G'
16142	  else
16143	    shared_flag='$wl-bM:SRE'
16144	  fi
16145	  shared_flag_aix='$wl-bM:SRE'
16146	  shared_flag_svr4='$wl-G'
16147	fi
16148      fi
16149
16150      export_dynamic_flag_spec='$wl-bexpall'
16151      # It seems that -bexpall does not export symbols beginning with
16152      # underscore (_), so it is better to generate a list of symbols to export.
16153      always_export_symbols=yes
16154      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16155	# Warning - without using the other runtime loading flags (-brtl),
16156	# -berok will link without error, but may produce a broken library.
16157	allow_undefined_flag='-berok'
16158        # Determine the default libpath from the value encoded in an
16159        # empty executable.
16160        if test set = "${lt_cv_aix_libpath+set}"; then
16161  aix_libpath=$lt_cv_aix_libpath
16162else
16163  if ${lt_cv_aix_libpath_+:} false; then :
16164  $as_echo_n "(cached) " >&6
16165else
16166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167/* end confdefs.h.  */
16168
16169int
16170main ()
16171{
16172
16173  ;
16174  return 0;
16175}
16176_ACEOF
16177if ac_fn_c_try_link "$LINENO"; then :
16178
16179  lt_aix_libpath_sed='
16180      /Import File Strings/,/^$/ {
16181	  /^0/ {
16182	      s/^0  *\([^ ]*\) *$/\1/
16183	      p
16184	  }
16185      }'
16186  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16187  # Check for a 64-bit object if we didn't find anything.
16188  if test -z "$lt_cv_aix_libpath_"; then
16189    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16190  fi
16191fi
16192rm -f core conftest.err conftest.$ac_objext \
16193    conftest$ac_exeext conftest.$ac_ext
16194  if test -z "$lt_cv_aix_libpath_"; then
16195    lt_cv_aix_libpath_=/usr/lib:/lib
16196  fi
16197
16198fi
16199
16200  aix_libpath=$lt_cv_aix_libpath_
16201fi
16202
16203        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16204        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
16205      else
16206	if test ia64 = "$host_cpu"; then
16207	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16208	  allow_undefined_flag="-z nodefs"
16209	  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"
16210	else
16211	 # Determine the default libpath from the value encoded in an
16212	 # empty executable.
16213	 if test set = "${lt_cv_aix_libpath+set}"; then
16214  aix_libpath=$lt_cv_aix_libpath
16215else
16216  if ${lt_cv_aix_libpath_+:} false; then :
16217  $as_echo_n "(cached) " >&6
16218else
16219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h.  */
16221
16222int
16223main ()
16224{
16225
16226  ;
16227  return 0;
16228}
16229_ACEOF
16230if ac_fn_c_try_link "$LINENO"; then :
16231
16232  lt_aix_libpath_sed='
16233      /Import File Strings/,/^$/ {
16234	  /^0/ {
16235	      s/^0  *\([^ ]*\) *$/\1/
16236	      p
16237	  }
16238      }'
16239  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16240  # Check for a 64-bit object if we didn't find anything.
16241  if test -z "$lt_cv_aix_libpath_"; then
16242    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16243  fi
16244fi
16245rm -f core conftest.err conftest.$ac_objext \
16246    conftest$ac_exeext conftest.$ac_ext
16247  if test -z "$lt_cv_aix_libpath_"; then
16248    lt_cv_aix_libpath_=/usr/lib:/lib
16249  fi
16250
16251fi
16252
16253  aix_libpath=$lt_cv_aix_libpath_
16254fi
16255
16256	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16257	  # Warning - without using the other run time loading flags,
16258	  # -berok will link without error, but may produce a broken library.
16259	  no_undefined_flag=' $wl-bernotok'
16260	  allow_undefined_flag=' $wl-berok'
16261	  if test yes = "$with_gnu_ld"; then
16262	    # We only use this code for GNU lds that support --whole-archive.
16263	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16264	  else
16265	    # Exported symbols can be pulled into shared objects from archives
16266	    whole_archive_flag_spec='$convenience'
16267	  fi
16268	  archive_cmds_need_lc=yes
16269	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16270	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16271	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16272	  if test svr4 != "$with_aix_soname"; then
16273	    # This is similar to how AIX traditionally builds its shared libraries.
16274	    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'
16275	  fi
16276	  if test aix != "$with_aix_soname"; then
16277	    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'
16278	  else
16279	    # used by -dlpreopen to get the symbols
16280	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16281	  fi
16282	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16283	fi
16284      fi
16285      ;;
16286
16287    amigaos*)
16288      case $host_cpu in
16289      powerpc)
16290            # see comment about AmigaOS4 .so support
16291            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16292            archive_expsym_cmds=''
16293        ;;
16294      m68k)
16295            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)'
16296            hardcode_libdir_flag_spec='-L$libdir'
16297            hardcode_minus_L=yes
16298        ;;
16299      esac
16300      ;;
16301
16302    bsdi[45]*)
16303      export_dynamic_flag_spec=-rdynamic
16304      ;;
16305
16306    cygwin* | mingw* | pw32* | cegcc*)
16307      # When not using gcc, we currently assume that we are using
16308      # Microsoft Visual C++.
16309      # hardcode_libdir_flag_spec is actually meaningless, as there is
16310      # no search path for DLLs.
16311      case $cc_basename in
16312      cl*)
16313	# Native MSVC
16314	hardcode_libdir_flag_spec=' '
16315	allow_undefined_flag=unsupported
16316	always_export_symbols=yes
16317	file_list_spec='@'
16318	# Tell ltmain to make .lib files, not .a files.
16319	libext=lib
16320	# Tell ltmain to make .dll files, not .so files.
16321	shrext_cmds=.dll
16322	# FIXME: Setting linknames here is a bad hack.
16323	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16324	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16325            cp "$export_symbols" "$output_objdir/$soname.def";
16326            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16327          else
16328            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16329          fi~
16330          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16331          linknames='
16332	# The linker will not automatically build a static lib if we build a DLL.
16333	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16334	enable_shared_with_static_runtimes=yes
16335	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16336	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16337	# Don't use ranlib
16338	old_postinstall_cmds='chmod 644 $oldlib'
16339	postlink_cmds='lt_outputfile="@OUTPUT@"~
16340          lt_tool_outputfile="@TOOL_OUTPUT@"~
16341          case $lt_outputfile in
16342            *.exe|*.EXE) ;;
16343            *)
16344              lt_outputfile=$lt_outputfile.exe
16345              lt_tool_outputfile=$lt_tool_outputfile.exe
16346              ;;
16347          esac~
16348          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16349            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16350            $RM "$lt_outputfile.manifest";
16351          fi'
16352	;;
16353      *)
16354	# Assume MSVC wrapper
16355	hardcode_libdir_flag_spec=' '
16356	allow_undefined_flag=unsupported
16357	# Tell ltmain to make .lib files, not .a files.
16358	libext=lib
16359	# Tell ltmain to make .dll files, not .so files.
16360	shrext_cmds=.dll
16361	# FIXME: Setting linknames here is a bad hack.
16362	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16363	# The linker will automatically build a .lib file if we build a DLL.
16364	old_archive_from_new_cmds='true'
16365	# FIXME: Should let the user specify the lib program.
16366	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16367	enable_shared_with_static_runtimes=yes
16368	;;
16369      esac
16370      ;;
16371
16372    darwin* | rhapsody*)
16373
16374
16375  archive_cmds_need_lc=no
16376  hardcode_direct=no
16377  hardcode_automatic=yes
16378  hardcode_shlibpath_var=unsupported
16379  if test yes = "$lt_cv_ld_force_load"; then
16380    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\"`'
16381
16382  else
16383    whole_archive_flag_spec=''
16384  fi
16385  link_all_deplibs=yes
16386  allow_undefined_flag=$_lt_dar_allow_undefined
16387  case $cc_basename in
16388     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16389     *) _lt_dar_can_shared=$GCC ;;
16390  esac
16391  if test yes = "$_lt_dar_can_shared"; then
16392    output_verbose_link_cmd=func_echo_all
16393    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16394    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16395    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"
16396    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"
16397
16398  else
16399  ld_shlibs=no
16400  fi
16401
16402      ;;
16403
16404    dgux*)
16405      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16406      hardcode_libdir_flag_spec='-L$libdir'
16407      hardcode_shlibpath_var=no
16408      ;;
16409
16410    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16411    # support.  Future versions do this automatically, but an explicit c++rt0.o
16412    # does not break anything, and helps significantly (at the cost of a little
16413    # extra space).
16414    freebsd2.2*)
16415      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16416      hardcode_libdir_flag_spec='-R$libdir'
16417      hardcode_direct=yes
16418      hardcode_shlibpath_var=no
16419      ;;
16420
16421    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16422    freebsd2.*)
16423      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16424      hardcode_direct=yes
16425      hardcode_minus_L=yes
16426      hardcode_shlibpath_var=no
16427      ;;
16428
16429    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16430    freebsd* | dragonfly*)
16431      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16432      hardcode_libdir_flag_spec='-R$libdir'
16433      hardcode_direct=yes
16434      hardcode_shlibpath_var=no
16435      ;;
16436
16437    hpux9*)
16438      if test yes = "$GCC"; then
16439	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'
16440      else
16441	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'
16442      fi
16443      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16444      hardcode_libdir_separator=:
16445      hardcode_direct=yes
16446
16447      # hardcode_minus_L: Not really in the search PATH,
16448      # but as the default location of the library.
16449      hardcode_minus_L=yes
16450      export_dynamic_flag_spec='$wl-E'
16451      ;;
16452
16453    hpux10*)
16454      if test yes,no = "$GCC,$with_gnu_ld"; then
16455	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16456      else
16457	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16458      fi
16459      if test no = "$with_gnu_ld"; then
16460	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16461	hardcode_libdir_separator=:
16462	hardcode_direct=yes
16463	hardcode_direct_absolute=yes
16464	export_dynamic_flag_spec='$wl-E'
16465	# hardcode_minus_L: Not really in the search PATH,
16466	# but as the default location of the library.
16467	hardcode_minus_L=yes
16468      fi
16469      ;;
16470
16471    hpux11*)
16472      if test yes,no = "$GCC,$with_gnu_ld"; then
16473	case $host_cpu in
16474	hppa*64*)
16475	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16476	  ;;
16477	ia64*)
16478	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16479	  ;;
16480	*)
16481	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16482	  ;;
16483	esac
16484      else
16485	case $host_cpu in
16486	hppa*64*)
16487	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16488	  ;;
16489	ia64*)
16490	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16491	  ;;
16492	*)
16493
16494	  # Older versions of the 11.00 compiler do not understand -b yet
16495	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16496	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16497$as_echo_n "checking if $CC understands -b... " >&6; }
16498if ${lt_cv_prog_compiler__b+:} false; then :
16499  $as_echo_n "(cached) " >&6
16500else
16501  lt_cv_prog_compiler__b=no
16502   save_LDFLAGS=$LDFLAGS
16503   LDFLAGS="$LDFLAGS -b"
16504   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16505   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16506     # The linker can only warn and ignore the option if not recognized
16507     # So say no if there are warnings
16508     if test -s conftest.err; then
16509       # Append any errors to the config.log.
16510       cat conftest.err 1>&5
16511       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16512       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16513       if diff conftest.exp conftest.er2 >/dev/null; then
16514         lt_cv_prog_compiler__b=yes
16515       fi
16516     else
16517       lt_cv_prog_compiler__b=yes
16518     fi
16519   fi
16520   $RM -r conftest*
16521   LDFLAGS=$save_LDFLAGS
16522
16523fi
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16525$as_echo "$lt_cv_prog_compiler__b" >&6; }
16526
16527if test yes = "$lt_cv_prog_compiler__b"; then
16528    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16529else
16530    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16531fi
16532
16533	  ;;
16534	esac
16535      fi
16536      if test no = "$with_gnu_ld"; then
16537	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16538	hardcode_libdir_separator=:
16539
16540	case $host_cpu in
16541	hppa*64*|ia64*)
16542	  hardcode_direct=no
16543	  hardcode_shlibpath_var=no
16544	  ;;
16545	*)
16546	  hardcode_direct=yes
16547	  hardcode_direct_absolute=yes
16548	  export_dynamic_flag_spec='$wl-E'
16549
16550	  # hardcode_minus_L: Not really in the search PATH,
16551	  # but as the default location of the library.
16552	  hardcode_minus_L=yes
16553	  ;;
16554	esac
16555      fi
16556      ;;
16557
16558    irix5* | irix6* | nonstopux*)
16559      if test yes = "$GCC"; then
16560	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'
16561	# Try to use the -exported_symbol ld option, if it does not
16562	# work, assume that -exports_file does not work either and
16563	# implicitly export all symbols.
16564	# This should be the same for all languages, so no per-tag cache variable.
16565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16566$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16567if ${lt_cv_irix_exported_symbol+:} false; then :
16568  $as_echo_n "(cached) " >&6
16569else
16570  save_LDFLAGS=$LDFLAGS
16571	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16572	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573/* end confdefs.h.  */
16574int foo (void) { return 0; }
16575_ACEOF
16576if ac_fn_c_try_link "$LINENO"; then :
16577  lt_cv_irix_exported_symbol=yes
16578else
16579  lt_cv_irix_exported_symbol=no
16580fi
16581rm -f core conftest.err conftest.$ac_objext \
16582    conftest$ac_exeext conftest.$ac_ext
16583           LDFLAGS=$save_LDFLAGS
16584fi
16585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16586$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16587	if test yes = "$lt_cv_irix_exported_symbol"; then
16588          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'
16589	fi
16590      else
16591	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'
16592	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'
16593      fi
16594      archive_cmds_need_lc='no'
16595      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16596      hardcode_libdir_separator=:
16597      inherit_rpath=yes
16598      link_all_deplibs=yes
16599      ;;
16600
16601    linux*)
16602      case $cc_basename in
16603      tcc*)
16604	# Fabrice Bellard et al's Tiny C Compiler
16605	ld_shlibs=yes
16606	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16607	;;
16608      esac
16609      ;;
16610
16611    netbsd*)
16612      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16613	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16614      else
16615	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16616      fi
16617      hardcode_libdir_flag_spec='-R$libdir'
16618      hardcode_direct=yes
16619      hardcode_shlibpath_var=no
16620      ;;
16621
16622    newsos6)
16623      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624      hardcode_direct=yes
16625      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16626      hardcode_libdir_separator=:
16627      hardcode_shlibpath_var=no
16628      ;;
16629
16630    *nto* | *qnx*)
16631      ;;
16632
16633    openbsd* | bitrig*)
16634      if test -f /usr/libexec/ld.so; then
16635	hardcode_direct=yes
16636	hardcode_shlibpath_var=no
16637	hardcode_direct_absolute=yes
16638	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16639	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16640	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16641	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16642	  export_dynamic_flag_spec='$wl-E'
16643	else
16644	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16645	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16646	fi
16647      else
16648	ld_shlibs=no
16649      fi
16650      ;;
16651
16652    os2*)
16653      hardcode_libdir_flag_spec='-L$libdir'
16654      hardcode_minus_L=yes
16655      allow_undefined_flag=unsupported
16656      shrext_cmds=.dll
16657      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16658	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16659	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16660	$ECHO EXPORTS >> $output_objdir/$libname.def~
16661	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16662	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16663	emximp -o $lib $output_objdir/$libname.def'
16664      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16665	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16666	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16667	$ECHO EXPORTS >> $output_objdir/$libname.def~
16668	prefix_cmds="$SED"~
16669	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16670	  prefix_cmds="$prefix_cmds -e 1d";
16671	fi~
16672	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16673	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16674	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16675	emximp -o $lib $output_objdir/$libname.def'
16676      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16677      enable_shared_with_static_runtimes=yes
16678      file_list_spec='@'
16679      ;;
16680
16681    osf3*)
16682      if test yes = "$GCC"; then
16683	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16684	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'
16685      else
16686	allow_undefined_flag=' -expect_unresolved \*'
16687	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'
16688      fi
16689      archive_cmds_need_lc='no'
16690      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16691      hardcode_libdir_separator=:
16692      ;;
16693
16694    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16695      if test yes = "$GCC"; then
16696	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16697	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'
16698	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16699      else
16700	allow_undefined_flag=' -expect_unresolved \*'
16701	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'
16702	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~
16703          $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'
16704
16705	# Both c and cxx compiler support -rpath directly
16706	hardcode_libdir_flag_spec='-rpath $libdir'
16707      fi
16708      archive_cmds_need_lc='no'
16709      hardcode_libdir_separator=:
16710      ;;
16711
16712    solaris*)
16713      no_undefined_flag=' -z defs'
16714      if test yes = "$GCC"; then
16715	wlarc='$wl'
16716	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16717	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16718          $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'
16719      else
16720	case `$CC -V 2>&1` in
16721	*"Compilers 5.0"*)
16722	  wlarc=''
16723	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16725            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16726	  ;;
16727	*)
16728	  wlarc='$wl'
16729	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16730	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16731            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16732	  ;;
16733	esac
16734      fi
16735      hardcode_libdir_flag_spec='-R$libdir'
16736      hardcode_shlibpath_var=no
16737      case $host_os in
16738      solaris2.[0-5] | solaris2.[0-5].*) ;;
16739      *)
16740	# The compiler driver will combine and reorder linker options,
16741	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16742	# but is careful enough not to reorder.
16743	# Supported since Solaris 2.6 (maybe 2.5.1?)
16744	if test yes = "$GCC"; then
16745	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16746	else
16747	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16748	fi
16749	;;
16750      esac
16751      link_all_deplibs=yes
16752      ;;
16753
16754    sunos4*)
16755      if test sequent = "$host_vendor"; then
16756	# Use $CC to link under sequent, because it throws in some extra .o
16757	# files that make .init and .fini sections work.
16758	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16759      else
16760	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16761      fi
16762      hardcode_libdir_flag_spec='-L$libdir'
16763      hardcode_direct=yes
16764      hardcode_minus_L=yes
16765      hardcode_shlibpath_var=no
16766      ;;
16767
16768    sysv4)
16769      case $host_vendor in
16770	sni)
16771	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16772	  hardcode_direct=yes # is this really true???
16773	;;
16774	siemens)
16775	  ## LD is ld it makes a PLAMLIB
16776	  ## CC just makes a GrossModule.
16777	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16778	  reload_cmds='$CC -r -o $output$reload_objs'
16779	  hardcode_direct=no
16780        ;;
16781	motorola)
16782	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16783	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16784	;;
16785      esac
16786      runpath_var='LD_RUN_PATH'
16787      hardcode_shlibpath_var=no
16788      ;;
16789
16790    sysv4.3*)
16791      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16792      hardcode_shlibpath_var=no
16793      export_dynamic_flag_spec='-Bexport'
16794      ;;
16795
16796    sysv4*MP*)
16797      if test -d /usr/nec; then
16798	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16799	hardcode_shlibpath_var=no
16800	runpath_var=LD_RUN_PATH
16801	hardcode_runpath_var=yes
16802	ld_shlibs=yes
16803      fi
16804      ;;
16805
16806    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16807      no_undefined_flag='$wl-z,text'
16808      archive_cmds_need_lc=no
16809      hardcode_shlibpath_var=no
16810      runpath_var='LD_RUN_PATH'
16811
16812      if test yes = "$GCC"; then
16813	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16814	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16815      else
16816	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16817	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16818      fi
16819      ;;
16820
16821    sysv5* | sco3.2v5* | sco5v6*)
16822      # Note: We CANNOT use -z defs as we might desire, because we do not
16823      # link with -lc, and that would cause any symbols used from libc to
16824      # always be unresolved, which means just about no library would
16825      # ever link correctly.  If we're not using GNU ld we use -z text
16826      # though, which does catch some bad symbols but isn't as heavy-handed
16827      # as -z defs.
16828      no_undefined_flag='$wl-z,text'
16829      allow_undefined_flag='$wl-z,nodefs'
16830      archive_cmds_need_lc=no
16831      hardcode_shlibpath_var=no
16832      hardcode_libdir_flag_spec='$wl-R,$libdir'
16833      hardcode_libdir_separator=':'
16834      link_all_deplibs=yes
16835      export_dynamic_flag_spec='$wl-Bexport'
16836      runpath_var='LD_RUN_PATH'
16837
16838      if test yes = "$GCC"; then
16839	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16840	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16841      else
16842	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16843	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16844      fi
16845      ;;
16846
16847    uts4*)
16848      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16849      hardcode_libdir_flag_spec='-L$libdir'
16850      hardcode_shlibpath_var=no
16851      ;;
16852
16853    *)
16854      ld_shlibs=no
16855      ;;
16856    esac
16857
16858    if test sni = "$host_vendor"; then
16859      case $host in
16860      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16861	export_dynamic_flag_spec='$wl-Blargedynsym'
16862	;;
16863      esac
16864    fi
16865  fi
16866
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16868$as_echo "$ld_shlibs" >&6; }
16869test no = "$ld_shlibs" && can_build_shared=no
16870
16871with_gnu_ld=$with_gnu_ld
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887#
16888# Do we need to explicitly link libc?
16889#
16890case "x$archive_cmds_need_lc" in
16891x|xyes)
16892  # Assume -lc should be added
16893  archive_cmds_need_lc=yes
16894
16895  if test yes,yes = "$GCC,$enable_shared"; then
16896    case $archive_cmds in
16897    *'~'*)
16898      # FIXME: we may have to deal with multi-command sequences.
16899      ;;
16900    '$CC '*)
16901      # Test whether the compiler implicitly links with -lc since on some
16902      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16903      # to ld, don't add -lc before -lgcc.
16904      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16905$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16906if ${lt_cv_archive_cmds_need_lc+:} false; then :
16907  $as_echo_n "(cached) " >&6
16908else
16909  $RM conftest*
16910	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16911
16912	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16913  (eval $ac_compile) 2>&5
16914  ac_status=$?
16915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16916  test $ac_status = 0; } 2>conftest.err; then
16917	  soname=conftest
16918	  lib=conftest
16919	  libobjs=conftest.$ac_objext
16920	  deplibs=
16921	  wl=$lt_prog_compiler_wl
16922	  pic_flag=$lt_prog_compiler_pic
16923	  compiler_flags=-v
16924	  linker_flags=-v
16925	  verstring=
16926	  output_objdir=.
16927	  libname=conftest
16928	  lt_save_allow_undefined_flag=$allow_undefined_flag
16929	  allow_undefined_flag=
16930	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16931  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16932  ac_status=$?
16933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16934  test $ac_status = 0; }
16935	  then
16936	    lt_cv_archive_cmds_need_lc=no
16937	  else
16938	    lt_cv_archive_cmds_need_lc=yes
16939	  fi
16940	  allow_undefined_flag=$lt_save_allow_undefined_flag
16941	else
16942	  cat conftest.err 1>&5
16943	fi
16944	$RM conftest*
16945
16946fi
16947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16948$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16949      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16950      ;;
16951    esac
16952  fi
16953  ;;
16954esac
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17108$as_echo_n "checking dynamic linker characteristics... " >&6; }
17109
17110if test yes = "$GCC"; then
17111  case $host_os in
17112    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17113    *) lt_awk_arg='/^libraries:/' ;;
17114  esac
17115  case $host_os in
17116    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17117    *) lt_sed_strip_eq='s|=/|/|g' ;;
17118  esac
17119  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17120  case $lt_search_path_spec in
17121  *\;*)
17122    # if the path contains ";" then we assume it to be the separator
17123    # otherwise default to the standard path separator (i.e. ":") - it is
17124    # assumed that no part of a normal pathname contains ";" but that should
17125    # okay in the real world where ";" in dirpaths is itself problematic.
17126    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17127    ;;
17128  *)
17129    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17130    ;;
17131  esac
17132  # Ok, now we have the path, separated by spaces, we can step through it
17133  # and add multilib dir if necessary...
17134  lt_tmp_lt_search_path_spec=
17135  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17136  # ...but if some path component already ends with the multilib dir we assume
17137  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17138  case "$lt_multi_os_dir; $lt_search_path_spec " in
17139  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17140    lt_multi_os_dir=
17141    ;;
17142  esac
17143  for lt_sys_path in $lt_search_path_spec; do
17144    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17145      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17146    elif test -n "$lt_multi_os_dir"; then
17147      test -d "$lt_sys_path" && \
17148	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17149    fi
17150  done
17151  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17152BEGIN {RS = " "; FS = "/|\n";} {
17153  lt_foo = "";
17154  lt_count = 0;
17155  for (lt_i = NF; lt_i > 0; lt_i--) {
17156    if ($lt_i != "" && $lt_i != ".") {
17157      if ($lt_i == "..") {
17158        lt_count++;
17159      } else {
17160        if (lt_count == 0) {
17161          lt_foo = "/" $lt_i lt_foo;
17162        } else {
17163          lt_count--;
17164        }
17165      }
17166    }
17167  }
17168  if (lt_foo != "") { lt_freq[lt_foo]++; }
17169  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17170}'`
17171  # AWK program above erroneously prepends '/' to C:/dos/paths
17172  # for these hosts.
17173  case $host_os in
17174    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17175      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17176  esac
17177  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17178else
17179  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17180fi
17181library_names_spec=
17182libname_spec='lib$name'
17183soname_spec=
17184shrext_cmds=.so
17185postinstall_cmds=
17186postuninstall_cmds=
17187finish_cmds=
17188finish_eval=
17189shlibpath_var=
17190shlibpath_overrides_runpath=unknown
17191version_type=none
17192dynamic_linker="$host_os ld.so"
17193sys_lib_dlsearch_path_spec="/lib /usr/lib"
17194need_lib_prefix=unknown
17195hardcode_into_libs=no
17196
17197# when you set need_version to no, make sure it does not cause -set_version
17198# flags to be left without arguments
17199need_version=unknown
17200
17201
17202
17203case $host_os in
17204aix3*)
17205  version_type=linux # correct to gnu/linux during the next big refactor
17206  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17207  shlibpath_var=LIBPATH
17208
17209  # AIX 3 has no versioning support, so we append a major version to the name.
17210  soname_spec='$libname$release$shared_ext$major'
17211  ;;
17212
17213aix[4-9]*)
17214  version_type=linux # correct to gnu/linux during the next big refactor
17215  need_lib_prefix=no
17216  need_version=no
17217  hardcode_into_libs=yes
17218  if test ia64 = "$host_cpu"; then
17219    # AIX 5 supports IA64
17220    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17221    shlibpath_var=LD_LIBRARY_PATH
17222  else
17223    # With GCC up to 2.95.x, collect2 would create an import file
17224    # for dependence libraries.  The import file would start with
17225    # the line '#! .'.  This would cause the generated library to
17226    # depend on '.', always an invalid library.  This was fixed in
17227    # development snapshots of GCC prior to 3.0.
17228    case $host_os in
17229      aix4 | aix4.[01] | aix4.[01].*)
17230      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17231	   echo ' yes '
17232	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17233	:
17234      else
17235	can_build_shared=no
17236      fi
17237      ;;
17238    esac
17239    # Using Import Files as archive members, it is possible to support
17240    # filename-based versioning of shared library archives on AIX. While
17241    # this would work for both with and without runtime linking, it will
17242    # prevent static linking of such archives. So we do filename-based
17243    # shared library versioning with .so extension only, which is used
17244    # when both runtime linking and shared linking is enabled.
17245    # Unfortunately, runtime linking may impact performance, so we do
17246    # not want this to be the default eventually. Also, we use the
17247    # versioned .so libs for executables only if there is the -brtl
17248    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17249    # To allow for filename-based versioning support, we need to create
17250    # libNAME.so.V as an archive file, containing:
17251    # *) an Import File, referring to the versioned filename of the
17252    #    archive as well as the shared archive member, telling the
17253    #    bitwidth (32 or 64) of that shared object, and providing the
17254    #    list of exported symbols of that shared object, eventually
17255    #    decorated with the 'weak' keyword
17256    # *) the shared object with the F_LOADONLY flag set, to really avoid
17257    #    it being seen by the linker.
17258    # At run time we better use the real file rather than another symlink,
17259    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17260
17261    case $with_aix_soname,$aix_use_runtimelinking in
17262    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17263    # soname into executable. Probably we can add versioning support to
17264    # collect2, so additional links can be useful in future.
17265    aix,yes) # traditional libtool
17266      dynamic_linker='AIX unversionable lib.so'
17267      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17268      # instead of lib<name>.a to let people know that these are not
17269      # typical AIX shared libraries.
17270      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17271      ;;
17272    aix,no) # traditional AIX only
17273      dynamic_linker='AIX lib.a(lib.so.V)'
17274      # We preserve .a as extension for shared libraries through AIX4.2
17275      # and later when we are not doing run time linking.
17276      library_names_spec='$libname$release.a $libname.a'
17277      soname_spec='$libname$release$shared_ext$major'
17278      ;;
17279    svr4,*) # full svr4 only
17280      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17281      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17282      # We do not specify a path in Import Files, so LIBPATH fires.
17283      shlibpath_overrides_runpath=yes
17284      ;;
17285    *,yes) # both, prefer svr4
17286      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17287      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17288      # unpreferred sharedlib libNAME.a needs extra handling
17289      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"'
17290      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"'
17291      # We do not specify a path in Import Files, so LIBPATH fires.
17292      shlibpath_overrides_runpath=yes
17293      ;;
17294    *,no) # both, prefer aix
17295      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17296      library_names_spec='$libname$release.a $libname.a'
17297      soname_spec='$libname$release$shared_ext$major'
17298      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17299      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)'
17300      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"'
17301      ;;
17302    esac
17303    shlibpath_var=LIBPATH
17304  fi
17305  ;;
17306
17307amigaos*)
17308  case $host_cpu in
17309  powerpc)
17310    # Since July 2007 AmigaOS4 officially supports .so libraries.
17311    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17312    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17313    ;;
17314  m68k)
17315    library_names_spec='$libname.ixlibrary $libname.a'
17316    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17317    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'
17318    ;;
17319  esac
17320  ;;
17321
17322beos*)
17323  library_names_spec='$libname$shared_ext'
17324  dynamic_linker="$host_os ld.so"
17325  shlibpath_var=LIBRARY_PATH
17326  ;;
17327
17328bsdi[45]*)
17329  version_type=linux # correct to gnu/linux during the next big refactor
17330  need_version=no
17331  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17332  soname_spec='$libname$release$shared_ext$major'
17333  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17334  shlibpath_var=LD_LIBRARY_PATH
17335  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17336  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17337  # the default ld.so.conf also contains /usr/contrib/lib and
17338  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17339  # libtool to hard-code these into programs
17340  ;;
17341
17342cygwin* | mingw* | pw32* | cegcc*)
17343  version_type=windows
17344  shrext_cmds=.dll
17345  need_version=no
17346  need_lib_prefix=no
17347
17348  case $GCC,$cc_basename in
17349  yes,*)
17350    # gcc
17351    library_names_spec='$libname.dll.a'
17352    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17353    postinstall_cmds='base_file=`basename \$file`~
17354      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17355      dldir=$destdir/`dirname \$dlpath`~
17356      test -d \$dldir || mkdir -p \$dldir~
17357      $install_prog $dir/$dlname \$dldir/$dlname~
17358      chmod a+x \$dldir/$dlname~
17359      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17360        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17361      fi'
17362    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17363      dlpath=$dir/\$dldll~
17364       $RM \$dlpath'
17365    shlibpath_overrides_runpath=yes
17366
17367    case $host_os in
17368    cygwin*)
17369      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17370      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17371
17372      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17373      ;;
17374    mingw* | cegcc*)
17375      # MinGW DLLs use traditional 'lib' prefix
17376      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17377      ;;
17378    pw32*)
17379      # pw32 DLLs use 'pw' prefix rather than 'lib'
17380      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17381      ;;
17382    esac
17383    dynamic_linker='Win32 ld.exe'
17384    ;;
17385
17386  *,cl*)
17387    # Native MSVC
17388    libname_spec='$name'
17389    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17390    library_names_spec='$libname.dll.lib'
17391
17392    case $build_os in
17393    mingw*)
17394      sys_lib_search_path_spec=
17395      lt_save_ifs=$IFS
17396      IFS=';'
17397      for lt_path in $LIB
17398      do
17399        IFS=$lt_save_ifs
17400        # Let DOS variable expansion print the short 8.3 style file name.
17401        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17402        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17403      done
17404      IFS=$lt_save_ifs
17405      # Convert to MSYS style.
17406      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17407      ;;
17408    cygwin*)
17409      # Convert to unix form, then to dos form, then back to unix form
17410      # but this time dos style (no spaces!) so that the unix form looks
17411      # like /cygdrive/c/PROGRA~1:/cygdr...
17412      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17413      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17414      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17415      ;;
17416    *)
17417      sys_lib_search_path_spec=$LIB
17418      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17419        # It is most probably a Windows format PATH.
17420        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17421      else
17422        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17423      fi
17424      # FIXME: find the short name or the path components, as spaces are
17425      # common. (e.g. "Program Files" -> "PROGRA~1")
17426      ;;
17427    esac
17428
17429    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17430    postinstall_cmds='base_file=`basename \$file`~
17431      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17432      dldir=$destdir/`dirname \$dlpath`~
17433      test -d \$dldir || mkdir -p \$dldir~
17434      $install_prog $dir/$dlname \$dldir/$dlname'
17435    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17436      dlpath=$dir/\$dldll~
17437       $RM \$dlpath'
17438    shlibpath_overrides_runpath=yes
17439    dynamic_linker='Win32 link.exe'
17440    ;;
17441
17442  *)
17443    # Assume MSVC wrapper
17444    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17445    dynamic_linker='Win32 ld.exe'
17446    ;;
17447  esac
17448  # FIXME: first we should search . and the directory the executable is in
17449  shlibpath_var=PATH
17450  ;;
17451
17452darwin* | rhapsody*)
17453  dynamic_linker="$host_os dyld"
17454  version_type=darwin
17455  need_lib_prefix=no
17456  need_version=no
17457  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17458  soname_spec='$libname$release$major$shared_ext'
17459  shlibpath_overrides_runpath=yes
17460  shlibpath_var=DYLD_LIBRARY_PATH
17461  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17462
17463  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17464  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17465  ;;
17466
17467dgux*)
17468  version_type=linux # correct to gnu/linux during the next big refactor
17469  need_lib_prefix=no
17470  need_version=no
17471  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17472  soname_spec='$libname$release$shared_ext$major'
17473  shlibpath_var=LD_LIBRARY_PATH
17474  ;;
17475
17476freebsd* | dragonfly*)
17477  # DragonFly does not have aout.  When/if they implement a new
17478  # versioning mechanism, adjust this.
17479  if test -x /usr/bin/objformat; then
17480    objformat=`/usr/bin/objformat`
17481  else
17482    case $host_os in
17483    freebsd[23].*) objformat=aout ;;
17484    *) objformat=elf ;;
17485    esac
17486  fi
17487  version_type=freebsd-$objformat
17488  case $version_type in
17489    freebsd-elf*)
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      need_version=no
17493      need_lib_prefix=no
17494      ;;
17495    freebsd-*)
17496      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17497      need_version=yes
17498      ;;
17499  esac
17500  shlibpath_var=LD_LIBRARY_PATH
17501  case $host_os in
17502  freebsd2.*)
17503    shlibpath_overrides_runpath=yes
17504    ;;
17505  freebsd3.[01]* | freebsdelf3.[01]*)
17506    shlibpath_overrides_runpath=yes
17507    hardcode_into_libs=yes
17508    ;;
17509  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17510  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17511    shlibpath_overrides_runpath=no
17512    hardcode_into_libs=yes
17513    ;;
17514  *) # from 4.6 on, and DragonFly
17515    shlibpath_overrides_runpath=yes
17516    hardcode_into_libs=yes
17517    ;;
17518  esac
17519  ;;
17520
17521haiku*)
17522  version_type=linux # correct to gnu/linux during the next big refactor
17523  need_lib_prefix=no
17524  need_version=no
17525  dynamic_linker="$host_os runtime_loader"
17526  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17527  soname_spec='$libname$release$shared_ext$major'
17528  shlibpath_var=LIBRARY_PATH
17529  shlibpath_overrides_runpath=no
17530  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17531  hardcode_into_libs=yes
17532  ;;
17533
17534hpux9* | hpux10* | hpux11*)
17535  # Give a soname corresponding to the major version so that dld.sl refuses to
17536  # link against other versions.
17537  version_type=sunos
17538  need_lib_prefix=no
17539  need_version=no
17540  case $host_cpu in
17541  ia64*)
17542    shrext_cmds='.so'
17543    hardcode_into_libs=yes
17544    dynamic_linker="$host_os dld.so"
17545    shlibpath_var=LD_LIBRARY_PATH
17546    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17547    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17548    soname_spec='$libname$release$shared_ext$major'
17549    if test 32 = "$HPUX_IA64_MODE"; then
17550      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17551      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17552    else
17553      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17554      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17555    fi
17556    ;;
17557  hppa*64*)
17558    shrext_cmds='.sl'
17559    hardcode_into_libs=yes
17560    dynamic_linker="$host_os dld.sl"
17561    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17562    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17563    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17564    soname_spec='$libname$release$shared_ext$major'
17565    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17566    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17567    ;;
17568  *)
17569    shrext_cmds='.sl'
17570    dynamic_linker="$host_os dld.sl"
17571    shlibpath_var=SHLIB_PATH
17572    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17573    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17574    soname_spec='$libname$release$shared_ext$major'
17575    ;;
17576  esac
17577  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17578  postinstall_cmds='chmod 555 $lib'
17579  # or fails outright, so override atomically:
17580  install_override_mode=555
17581  ;;
17582
17583interix[3-9]*)
17584  version_type=linux # correct to gnu/linux during the next big refactor
17585  need_lib_prefix=no
17586  need_version=no
17587  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17588  soname_spec='$libname$release$shared_ext$major'
17589  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17590  shlibpath_var=LD_LIBRARY_PATH
17591  shlibpath_overrides_runpath=no
17592  hardcode_into_libs=yes
17593  ;;
17594
17595irix5* | irix6* | nonstopux*)
17596  case $host_os in
17597    nonstopux*) version_type=nonstopux ;;
17598    *)
17599	if test yes = "$lt_cv_prog_gnu_ld"; then
17600		version_type=linux # correct to gnu/linux during the next big refactor
17601	else
17602		version_type=irix
17603	fi ;;
17604  esac
17605  need_lib_prefix=no
17606  need_version=no
17607  soname_spec='$libname$release$shared_ext$major'
17608  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17609  case $host_os in
17610  irix5* | nonstopux*)
17611    libsuff= shlibsuff=
17612    ;;
17613  *)
17614    case $LD in # libtool.m4 will add one of these switches to LD
17615    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17616      libsuff= shlibsuff= libmagic=32-bit;;
17617    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17618      libsuff=32 shlibsuff=N32 libmagic=N32;;
17619    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17620      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17621    *) libsuff= shlibsuff= libmagic=never-match;;
17622    esac
17623    ;;
17624  esac
17625  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17626  shlibpath_overrides_runpath=no
17627  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17628  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17629  hardcode_into_libs=yes
17630  ;;
17631
17632# No shared lib support for Linux oldld, aout, or coff.
17633linux*oldld* | linux*aout* | linux*coff*)
17634  dynamic_linker=no
17635  ;;
17636
17637linux*android*)
17638  version_type=none # Android doesn't support versioned libraries.
17639  need_lib_prefix=no
17640  need_version=no
17641  library_names_spec='$libname$release$shared_ext'
17642  soname_spec='$libname$release$shared_ext'
17643  finish_cmds=
17644  shlibpath_var=LD_LIBRARY_PATH
17645  shlibpath_overrides_runpath=yes
17646
17647  # This implies no fast_install, which is unacceptable.
17648  # Some rework will be needed to allow for fast_install
17649  # before this can be enabled.
17650  hardcode_into_libs=yes
17651
17652  dynamic_linker='Android linker'
17653  # Don't embed -rpath directories since the linker doesn't support them.
17654  hardcode_libdir_flag_spec='-L$libdir'
17655  ;;
17656
17657# This must be glibc/ELF.
17658linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17659  version_type=linux # correct to gnu/linux during the next big refactor
17660  need_lib_prefix=no
17661  need_version=no
17662  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17663  soname_spec='$libname$release$shared_ext$major'
17664  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17665  shlibpath_var=LD_LIBRARY_PATH
17666  shlibpath_overrides_runpath=no
17667
17668  # Some binutils ld are patched to set DT_RUNPATH
17669  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17670  $as_echo_n "(cached) " >&6
17671else
17672  lt_cv_shlibpath_overrides_runpath=no
17673    save_LDFLAGS=$LDFLAGS
17674    save_libdir=$libdir
17675    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17676	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17677    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678/* end confdefs.h.  */
17679
17680int
17681main ()
17682{
17683
17684  ;
17685  return 0;
17686}
17687_ACEOF
17688if ac_fn_c_try_link "$LINENO"; then :
17689  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17690  lt_cv_shlibpath_overrides_runpath=yes
17691fi
17692fi
17693rm -f core conftest.err conftest.$ac_objext \
17694    conftest$ac_exeext conftest.$ac_ext
17695    LDFLAGS=$save_LDFLAGS
17696    libdir=$save_libdir
17697
17698fi
17699
17700  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17701
17702  # This implies no fast_install, which is unacceptable.
17703  # Some rework will be needed to allow for fast_install
17704  # before this can be enabled.
17705  hardcode_into_libs=yes
17706
17707  # Ideally, we could use ldconfig to report *all* directores which are
17708  # searched for libraries, however this is still not possible.  Aside from not
17709  # being certain /sbin/ldconfig is available, command
17710  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17711  # even though it is searched at run-time.  Try to do the best guess by
17712  # appending ld.so.conf contents (and includes) to the search path.
17713  if test -f /etc/ld.so.conf; then
17714    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' ' '`
17715    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17716  fi
17717
17718  # We used to test for /lib/ld.so.1 and disable shared libraries on
17719  # powerpc, because MkLinux only supported shared libraries with the
17720  # GNU dynamic linker.  Since this was broken with cross compilers,
17721  # most powerpc-linux boxes support dynamic linking these days and
17722  # people can always --disable-shared, the test was removed, and we
17723  # assume the GNU/Linux dynamic linker is in use.
17724  dynamic_linker='GNU/Linux ld.so'
17725  ;;
17726
17727netbsd*)
17728  version_type=sunos
17729  need_lib_prefix=no
17730  need_version=no
17731  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17732    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17733    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17734    dynamic_linker='NetBSD (a.out) ld.so'
17735  else
17736    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17737    soname_spec='$libname$release$shared_ext$major'
17738    dynamic_linker='NetBSD ld.elf_so'
17739  fi
17740  shlibpath_var=LD_LIBRARY_PATH
17741  shlibpath_overrides_runpath=yes
17742  hardcode_into_libs=yes
17743  ;;
17744
17745newsos6)
17746  version_type=linux # correct to gnu/linux during the next big refactor
17747  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17748  shlibpath_var=LD_LIBRARY_PATH
17749  shlibpath_overrides_runpath=yes
17750  ;;
17751
17752*nto* | *qnx*)
17753  version_type=qnx
17754  need_lib_prefix=no
17755  need_version=no
17756  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17757  soname_spec='$libname$release$shared_ext$major'
17758  shlibpath_var=LD_LIBRARY_PATH
17759  shlibpath_overrides_runpath=no
17760  hardcode_into_libs=yes
17761  dynamic_linker='ldqnx.so'
17762  ;;
17763
17764openbsd* | bitrig*)
17765  version_type=sunos
17766  sys_lib_dlsearch_path_spec=/usr/lib
17767  need_lib_prefix=no
17768  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17769    need_version=no
17770  else
17771    need_version=yes
17772  fi
17773  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17774  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17775  shlibpath_var=LD_LIBRARY_PATH
17776  shlibpath_overrides_runpath=yes
17777  ;;
17778
17779os2*)
17780  libname_spec='$name'
17781  version_type=windows
17782  shrext_cmds=.dll
17783  need_version=no
17784  need_lib_prefix=no
17785  # OS/2 can only load a DLL with a base name of 8 characters or less.
17786  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17787    v=$($ECHO $release$versuffix | tr -d .-);
17788    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17789    $ECHO $n$v`$shared_ext'
17790  library_names_spec='${libname}_dll.$libext'
17791  dynamic_linker='OS/2 ld.exe'
17792  shlibpath_var=BEGINLIBPATH
17793  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17794  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17795  postinstall_cmds='base_file=`basename \$file`~
17796    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17797    dldir=$destdir/`dirname \$dlpath`~
17798    test -d \$dldir || mkdir -p \$dldir~
17799    $install_prog $dir/$dlname \$dldir/$dlname~
17800    chmod a+x \$dldir/$dlname~
17801    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17802      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17803    fi'
17804  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17805    dlpath=$dir/\$dldll~
17806    $RM \$dlpath'
17807  ;;
17808
17809osf3* | osf4* | osf5*)
17810  version_type=osf
17811  need_lib_prefix=no
17812  need_version=no
17813  soname_spec='$libname$release$shared_ext$major'
17814  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17815  shlibpath_var=LD_LIBRARY_PATH
17816  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17817  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17818  ;;
17819
17820rdos*)
17821  dynamic_linker=no
17822  ;;
17823
17824solaris*)
17825  version_type=linux # correct to gnu/linux during the next big refactor
17826  need_lib_prefix=no
17827  need_version=no
17828  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17829  soname_spec='$libname$release$shared_ext$major'
17830  shlibpath_var=LD_LIBRARY_PATH
17831  shlibpath_overrides_runpath=yes
17832  hardcode_into_libs=yes
17833  # ldd complains unless libraries are executable
17834  postinstall_cmds='chmod +x $lib'
17835  ;;
17836
17837sunos4*)
17838  version_type=sunos
17839  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17840  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17841  shlibpath_var=LD_LIBRARY_PATH
17842  shlibpath_overrides_runpath=yes
17843  if test yes = "$with_gnu_ld"; then
17844    need_lib_prefix=no
17845  fi
17846  need_version=yes
17847  ;;
17848
17849sysv4 | sysv4.3*)
17850  version_type=linux # correct to gnu/linux during the next big refactor
17851  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17852  soname_spec='$libname$release$shared_ext$major'
17853  shlibpath_var=LD_LIBRARY_PATH
17854  case $host_vendor in
17855    sni)
17856      shlibpath_overrides_runpath=no
17857      need_lib_prefix=no
17858      runpath_var=LD_RUN_PATH
17859      ;;
17860    siemens)
17861      need_lib_prefix=no
17862      ;;
17863    motorola)
17864      need_lib_prefix=no
17865      need_version=no
17866      shlibpath_overrides_runpath=no
17867      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17868      ;;
17869  esac
17870  ;;
17871
17872sysv4*MP*)
17873  if test -d /usr/nec; then
17874    version_type=linux # correct to gnu/linux during the next big refactor
17875    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17876    soname_spec='$libname$shared_ext.$major'
17877    shlibpath_var=LD_LIBRARY_PATH
17878  fi
17879  ;;
17880
17881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17882  version_type=sco
17883  need_lib_prefix=no
17884  need_version=no
17885  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17886  soname_spec='$libname$release$shared_ext$major'
17887  shlibpath_var=LD_LIBRARY_PATH
17888  shlibpath_overrides_runpath=yes
17889  hardcode_into_libs=yes
17890  if test yes = "$with_gnu_ld"; then
17891    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17892  else
17893    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17894    case $host_os in
17895      sco3.2v5*)
17896        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17897	;;
17898    esac
17899  fi
17900  sys_lib_dlsearch_path_spec='/usr/lib'
17901  ;;
17902
17903tpf*)
17904  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17905  version_type=linux # correct to gnu/linux during the next big refactor
17906  need_lib_prefix=no
17907  need_version=no
17908  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17909  shlibpath_var=LD_LIBRARY_PATH
17910  shlibpath_overrides_runpath=no
17911  hardcode_into_libs=yes
17912  ;;
17913
17914uts4*)
17915  version_type=linux # correct to gnu/linux during the next big refactor
17916  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17917  soname_spec='$libname$release$shared_ext$major'
17918  shlibpath_var=LD_LIBRARY_PATH
17919  ;;
17920
17921*)
17922  dynamic_linker=no
17923  ;;
17924esac
17925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17926$as_echo "$dynamic_linker" >&6; }
17927test no = "$dynamic_linker" && can_build_shared=no
17928
17929variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17930if test yes = "$GCC"; then
17931  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17932fi
17933
17934if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17935  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17936fi
17937
17938if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17939  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17940fi
17941
17942# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17943configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17944
17945# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17946func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17947
17948# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17949configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18048$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18049hardcode_action=
18050if test -n "$hardcode_libdir_flag_spec" ||
18051   test -n "$runpath_var" ||
18052   test yes = "$hardcode_automatic"; then
18053
18054  # We can hardcode non-existent directories.
18055  if test no != "$hardcode_direct" &&
18056     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18057     # have to relink, otherwise we might link with an installed library
18058     # when we should be linking with a yet-to-be-installed one
18059     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18060     test no != "$hardcode_minus_L"; then
18061    # Linking always hardcodes the temporary library directory.
18062    hardcode_action=relink
18063  else
18064    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18065    hardcode_action=immediate
18066  fi
18067else
18068  # We cannot hardcode anything, or else we can only hardcode existing
18069  # directories.
18070  hardcode_action=unsupported
18071fi
18072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18073$as_echo "$hardcode_action" >&6; }
18074
18075if test relink = "$hardcode_action" ||
18076   test yes = "$inherit_rpath"; then
18077  # Fast installation is not supported
18078  enable_fast_install=no
18079elif test yes = "$shlibpath_overrides_runpath" ||
18080     test no = "$enable_shared"; then
18081  # Fast installation is not necessary
18082  enable_fast_install=needless
18083fi
18084
18085
18086
18087
18088
18089
18090  if test yes != "$enable_dlopen"; then
18091  enable_dlopen=unknown
18092  enable_dlopen_self=unknown
18093  enable_dlopen_self_static=unknown
18094else
18095  lt_cv_dlopen=no
18096  lt_cv_dlopen_libs=
18097
18098  case $host_os in
18099  beos*)
18100    lt_cv_dlopen=load_add_on
18101    lt_cv_dlopen_libs=
18102    lt_cv_dlopen_self=yes
18103    ;;
18104
18105  mingw* | pw32* | cegcc*)
18106    lt_cv_dlopen=LoadLibrary
18107    lt_cv_dlopen_libs=
18108    ;;
18109
18110  cygwin*)
18111    lt_cv_dlopen=dlopen
18112    lt_cv_dlopen_libs=
18113    ;;
18114
18115  darwin*)
18116    # if libdl is installed we need to link against it
18117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18118$as_echo_n "checking for dlopen in -ldl... " >&6; }
18119if ${ac_cv_lib_dl_dlopen+:} false; then :
18120  $as_echo_n "(cached) " >&6
18121else
18122  ac_check_lib_save_LIBS=$LIBS
18123LIBS="-ldl  $LIBS"
18124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125/* end confdefs.h.  */
18126
18127/* Override any GCC internal prototype to avoid an error.
18128   Use char because int might match the return type of a GCC
18129   builtin and then its argument prototype would still apply.  */
18130#ifdef __cplusplus
18131extern "C"
18132#endif
18133char dlopen ();
18134int
18135main ()
18136{
18137return dlopen ();
18138  ;
18139  return 0;
18140}
18141_ACEOF
18142if ac_fn_c_try_link "$LINENO"; then :
18143  ac_cv_lib_dl_dlopen=yes
18144else
18145  ac_cv_lib_dl_dlopen=no
18146fi
18147rm -f core conftest.err conftest.$ac_objext \
18148    conftest$ac_exeext conftest.$ac_ext
18149LIBS=$ac_check_lib_save_LIBS
18150fi
18151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18152$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18153if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18154  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18155else
18156
18157    lt_cv_dlopen=dyld
18158    lt_cv_dlopen_libs=
18159    lt_cv_dlopen_self=yes
18160
18161fi
18162
18163    ;;
18164
18165  tpf*)
18166    # Don't try to run any link tests for TPF.  We know it's impossible
18167    # because TPF is a cross-compiler, and we know how we open DSOs.
18168    lt_cv_dlopen=dlopen
18169    lt_cv_dlopen_libs=
18170    lt_cv_dlopen_self=no
18171    ;;
18172
18173  *)
18174    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18175if test "x$ac_cv_func_shl_load" = xyes; then :
18176  lt_cv_dlopen=shl_load
18177else
18178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18179$as_echo_n "checking for shl_load in -ldld... " >&6; }
18180if ${ac_cv_lib_dld_shl_load+:} false; then :
18181  $as_echo_n "(cached) " >&6
18182else
18183  ac_check_lib_save_LIBS=$LIBS
18184LIBS="-ldld  $LIBS"
18185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18186/* end confdefs.h.  */
18187
18188/* Override any GCC internal prototype to avoid an error.
18189   Use char because int might match the return type of a GCC
18190   builtin and then its argument prototype would still apply.  */
18191#ifdef __cplusplus
18192extern "C"
18193#endif
18194char shl_load ();
18195int
18196main ()
18197{
18198return shl_load ();
18199  ;
18200  return 0;
18201}
18202_ACEOF
18203if ac_fn_c_try_link "$LINENO"; then :
18204  ac_cv_lib_dld_shl_load=yes
18205else
18206  ac_cv_lib_dld_shl_load=no
18207fi
18208rm -f core conftest.err conftest.$ac_objext \
18209    conftest$ac_exeext conftest.$ac_ext
18210LIBS=$ac_check_lib_save_LIBS
18211fi
18212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18213$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18214if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18215  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18216else
18217  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18218if test "x$ac_cv_func_dlopen" = xyes; then :
18219  lt_cv_dlopen=dlopen
18220else
18221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18222$as_echo_n "checking for dlopen in -ldl... " >&6; }
18223if ${ac_cv_lib_dl_dlopen+:} false; then :
18224  $as_echo_n "(cached) " >&6
18225else
18226  ac_check_lib_save_LIBS=$LIBS
18227LIBS="-ldl  $LIBS"
18228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229/* end confdefs.h.  */
18230
18231/* Override any GCC internal prototype to avoid an error.
18232   Use char because int might match the return type of a GCC
18233   builtin and then its argument prototype would still apply.  */
18234#ifdef __cplusplus
18235extern "C"
18236#endif
18237char dlopen ();
18238int
18239main ()
18240{
18241return dlopen ();
18242  ;
18243  return 0;
18244}
18245_ACEOF
18246if ac_fn_c_try_link "$LINENO"; then :
18247  ac_cv_lib_dl_dlopen=yes
18248else
18249  ac_cv_lib_dl_dlopen=no
18250fi
18251rm -f core conftest.err conftest.$ac_objext \
18252    conftest$ac_exeext conftest.$ac_ext
18253LIBS=$ac_check_lib_save_LIBS
18254fi
18255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18256$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18257if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18258  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18259else
18260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18261$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18262if ${ac_cv_lib_svld_dlopen+:} false; then :
18263  $as_echo_n "(cached) " >&6
18264else
18265  ac_check_lib_save_LIBS=$LIBS
18266LIBS="-lsvld  $LIBS"
18267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h.  */
18269
18270/* Override any GCC internal prototype to avoid an error.
18271   Use char because int might match the return type of a GCC
18272   builtin and then its argument prototype would still apply.  */
18273#ifdef __cplusplus
18274extern "C"
18275#endif
18276char dlopen ();
18277int
18278main ()
18279{
18280return dlopen ();
18281  ;
18282  return 0;
18283}
18284_ACEOF
18285if ac_fn_c_try_link "$LINENO"; then :
18286  ac_cv_lib_svld_dlopen=yes
18287else
18288  ac_cv_lib_svld_dlopen=no
18289fi
18290rm -f core conftest.err conftest.$ac_objext \
18291    conftest$ac_exeext conftest.$ac_ext
18292LIBS=$ac_check_lib_save_LIBS
18293fi
18294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18295$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18296if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18297  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18298else
18299  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18300$as_echo_n "checking for dld_link in -ldld... " >&6; }
18301if ${ac_cv_lib_dld_dld_link+:} false; then :
18302  $as_echo_n "(cached) " >&6
18303else
18304  ac_check_lib_save_LIBS=$LIBS
18305LIBS="-ldld  $LIBS"
18306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307/* end confdefs.h.  */
18308
18309/* Override any GCC internal prototype to avoid an error.
18310   Use char because int might match the return type of a GCC
18311   builtin and then its argument prototype would still apply.  */
18312#ifdef __cplusplus
18313extern "C"
18314#endif
18315char dld_link ();
18316int
18317main ()
18318{
18319return dld_link ();
18320  ;
18321  return 0;
18322}
18323_ACEOF
18324if ac_fn_c_try_link "$LINENO"; then :
18325  ac_cv_lib_dld_dld_link=yes
18326else
18327  ac_cv_lib_dld_dld_link=no
18328fi
18329rm -f core conftest.err conftest.$ac_objext \
18330    conftest$ac_exeext conftest.$ac_ext
18331LIBS=$ac_check_lib_save_LIBS
18332fi
18333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18334$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18335if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18336  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18337fi
18338
18339
18340fi
18341
18342
18343fi
18344
18345
18346fi
18347
18348
18349fi
18350
18351
18352fi
18353
18354    ;;
18355  esac
18356
18357  if test no = "$lt_cv_dlopen"; then
18358    enable_dlopen=no
18359  else
18360    enable_dlopen=yes
18361  fi
18362
18363  case $lt_cv_dlopen in
18364  dlopen)
18365    save_CPPFLAGS=$CPPFLAGS
18366    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18367
18368    save_LDFLAGS=$LDFLAGS
18369    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18370
18371    save_LIBS=$LIBS
18372    LIBS="$lt_cv_dlopen_libs $LIBS"
18373
18374    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18375$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18376if ${lt_cv_dlopen_self+:} false; then :
18377  $as_echo_n "(cached) " >&6
18378else
18379  	  if test yes = "$cross_compiling"; then :
18380  lt_cv_dlopen_self=cross
18381else
18382  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18383  lt_status=$lt_dlunknown
18384  cat > conftest.$ac_ext <<_LT_EOF
18385#line $LINENO "configure"
18386#include "confdefs.h"
18387
18388#if HAVE_DLFCN_H
18389#include <dlfcn.h>
18390#endif
18391
18392#include <stdio.h>
18393
18394#ifdef RTLD_GLOBAL
18395#  define LT_DLGLOBAL		RTLD_GLOBAL
18396#else
18397#  ifdef DL_GLOBAL
18398#    define LT_DLGLOBAL		DL_GLOBAL
18399#  else
18400#    define LT_DLGLOBAL		0
18401#  endif
18402#endif
18403
18404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18405   find out it does not work in some platform. */
18406#ifndef LT_DLLAZY_OR_NOW
18407#  ifdef RTLD_LAZY
18408#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18409#  else
18410#    ifdef DL_LAZY
18411#      define LT_DLLAZY_OR_NOW		DL_LAZY
18412#    else
18413#      ifdef RTLD_NOW
18414#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18415#      else
18416#        ifdef DL_NOW
18417#          define LT_DLLAZY_OR_NOW	DL_NOW
18418#        else
18419#          define LT_DLLAZY_OR_NOW	0
18420#        endif
18421#      endif
18422#    endif
18423#  endif
18424#endif
18425
18426/* When -fvisibility=hidden is used, assume the code has been annotated
18427   correspondingly for the symbols needed.  */
18428#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18429int fnord () __attribute__((visibility("default")));
18430#endif
18431
18432int fnord () { return 42; }
18433int main ()
18434{
18435  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18436  int status = $lt_dlunknown;
18437
18438  if (self)
18439    {
18440      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18441      else
18442        {
18443	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18444          else puts (dlerror ());
18445	}
18446      /* dlclose (self); */
18447    }
18448  else
18449    puts (dlerror ());
18450
18451  return status;
18452}
18453_LT_EOF
18454  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18455  (eval $ac_link) 2>&5
18456  ac_status=$?
18457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18458  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18459    (./conftest; exit; ) >&5 2>/dev/null
18460    lt_status=$?
18461    case x$lt_status in
18462      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18463      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18464      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18465    esac
18466  else :
18467    # compilation failed
18468    lt_cv_dlopen_self=no
18469  fi
18470fi
18471rm -fr conftest*
18472
18473
18474fi
18475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18476$as_echo "$lt_cv_dlopen_self" >&6; }
18477
18478    if test yes = "$lt_cv_dlopen_self"; then
18479      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18480      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18481$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18482if ${lt_cv_dlopen_self_static+:} false; then :
18483  $as_echo_n "(cached) " >&6
18484else
18485  	  if test yes = "$cross_compiling"; then :
18486  lt_cv_dlopen_self_static=cross
18487else
18488  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18489  lt_status=$lt_dlunknown
18490  cat > conftest.$ac_ext <<_LT_EOF
18491#line $LINENO "configure"
18492#include "confdefs.h"
18493
18494#if HAVE_DLFCN_H
18495#include <dlfcn.h>
18496#endif
18497
18498#include <stdio.h>
18499
18500#ifdef RTLD_GLOBAL
18501#  define LT_DLGLOBAL		RTLD_GLOBAL
18502#else
18503#  ifdef DL_GLOBAL
18504#    define LT_DLGLOBAL		DL_GLOBAL
18505#  else
18506#    define LT_DLGLOBAL		0
18507#  endif
18508#endif
18509
18510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18511   find out it does not work in some platform. */
18512#ifndef LT_DLLAZY_OR_NOW
18513#  ifdef RTLD_LAZY
18514#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18515#  else
18516#    ifdef DL_LAZY
18517#      define LT_DLLAZY_OR_NOW		DL_LAZY
18518#    else
18519#      ifdef RTLD_NOW
18520#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18521#      else
18522#        ifdef DL_NOW
18523#          define LT_DLLAZY_OR_NOW	DL_NOW
18524#        else
18525#          define LT_DLLAZY_OR_NOW	0
18526#        endif
18527#      endif
18528#    endif
18529#  endif
18530#endif
18531
18532/* When -fvisibility=hidden is used, assume the code has been annotated
18533   correspondingly for the symbols needed.  */
18534#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18535int fnord () __attribute__((visibility("default")));
18536#endif
18537
18538int fnord () { return 42; }
18539int main ()
18540{
18541  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18542  int status = $lt_dlunknown;
18543
18544  if (self)
18545    {
18546      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18547      else
18548        {
18549	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18550          else puts (dlerror ());
18551	}
18552      /* dlclose (self); */
18553    }
18554  else
18555    puts (dlerror ());
18556
18557  return status;
18558}
18559_LT_EOF
18560  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18561  (eval $ac_link) 2>&5
18562  ac_status=$?
18563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18564  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18565    (./conftest; exit; ) >&5 2>/dev/null
18566    lt_status=$?
18567    case x$lt_status in
18568      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18569      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18570      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18571    esac
18572  else :
18573    # compilation failed
18574    lt_cv_dlopen_self_static=no
18575  fi
18576fi
18577rm -fr conftest*
18578
18579
18580fi
18581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18582$as_echo "$lt_cv_dlopen_self_static" >&6; }
18583    fi
18584
18585    CPPFLAGS=$save_CPPFLAGS
18586    LDFLAGS=$save_LDFLAGS
18587    LIBS=$save_LIBS
18588    ;;
18589  esac
18590
18591  case $lt_cv_dlopen_self in
18592  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18593  *) enable_dlopen_self=unknown ;;
18594  esac
18595
18596  case $lt_cv_dlopen_self_static in
18597  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18598  *) enable_dlopen_self_static=unknown ;;
18599  esac
18600fi
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618striplib=
18619old_striplib=
18620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18621$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18622if test -z "$STRIP"; then
18623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624$as_echo "no" >&6; }
18625else
18626  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18627    old_striplib="$STRIP --strip-debug"
18628    striplib="$STRIP --strip-unneeded"
18629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18630$as_echo "yes" >&6; }
18631  else
18632    case $host_os in
18633    darwin*)
18634      # FIXME - insert some real tests, host_os isn't really good enough
18635      striplib="$STRIP -x"
18636      old_striplib="$STRIP -S"
18637      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18638$as_echo "yes" >&6; }
18639      ;;
18640    freebsd*)
18641      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
18642        old_striplib="$STRIP --strip-debug"
18643        striplib="$STRIP --strip-unneeded"
18644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18645$as_echo "yes" >&6; }
18646      else
18647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648$as_echo "no" >&6; }
18649      fi
18650      ;;
18651    *)
18652      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18653$as_echo "no" >&6; }
18654      ;;
18655    esac
18656  fi
18657fi
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670  # Report what library types will actually be built
18671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18672$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18674$as_echo "$can_build_shared" >&6; }
18675
18676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18677$as_echo_n "checking whether to build shared libraries... " >&6; }
18678  test no = "$can_build_shared" && enable_shared=no
18679
18680  # On AIX, shared libraries and static libraries use the same namespace, and
18681  # are all built from PIC.
18682  case $host_os in
18683  aix3*)
18684    test yes = "$enable_shared" && enable_static=no
18685    if test -n "$RANLIB"; then
18686      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18687      postinstall_cmds='$RANLIB $lib'
18688    fi
18689    ;;
18690
18691  aix[4-9]*)
18692    if test ia64 != "$host_cpu"; then
18693      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18694      yes,aix,yes) ;;			# shared object as lib.so file only
18695      yes,svr4,*) ;;			# shared object as lib.so archive member only
18696      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18697      esac
18698    fi
18699    ;;
18700  esac
18701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18702$as_echo "$enable_shared" >&6; }
18703
18704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18705$as_echo_n "checking whether to build static libraries... " >&6; }
18706  # Make sure either enable_shared or enable_static is yes.
18707  test yes = "$enable_shared" || enable_static=yes
18708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18709$as_echo "$enable_static" >&6; }
18710
18711
18712
18713
18714fi
18715ac_ext=c
18716ac_cpp='$CPP $CPPFLAGS'
18717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18719ac_compiler_gnu=$ac_cv_c_compiler_gnu
18720
18721CC=$lt_save_CC
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737        ac_config_commands="$ac_config_commands libtool"
18738
18739
18740
18741
18742# Only expand once:
18743
18744
18745
18746# Checks for programs.
18747
18748
18749if test "x$GCC" = "xyes"; then
18750	CPPFLAGS="$CPPFLAGS -Wall"
18751fi
18752
18753
18754
18755# Define a configure option for an alternate module directory
18756
18757# Check whether --with-xorg-module-dir was given.
18758if test "${with_xorg_module_dir+set}" = set; then :
18759  withval=$with_xorg_module_dir; moduledir="$withval"
18760else
18761  moduledir="$libdir/xorg/modules"
18762fi
18763
18764
18765# Store the list of server defined optional extensions in REQUIRED_MODULES
18766
18767
18768	SAVE_CFLAGS="$CFLAGS"
18769	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18770	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771/* end confdefs.h.  */
18772
18773#include "xorg-server.h"
18774#if !defined RANDR
18775#error RANDR not defined
18776#endif
18777
18778int
18779main ()
18780{
18781
18782  ;
18783  return 0;
18784}
18785_ACEOF
18786if ac_fn_c_try_compile "$LINENO"; then :
18787  _EXT_CHECK=yes
18788else
18789  _EXT_CHECK=no
18790fi
18791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18792	CFLAGS="$SAVE_CFLAGS"
18793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18794$as_echo_n "checking if RANDR is defined... " >&6; }
18795	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18796$as_echo "$_EXT_CHECK" >&6; }
18797	if test "$_EXT_CHECK" != no; then
18798		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18799	fi
18800
18801
18802
18803	SAVE_CFLAGS="$CFLAGS"
18804	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18805	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806/* end confdefs.h.  */
18807
18808#include "xorg-server.h"
18809#if !defined RENDER
18810#error RENDER not defined
18811#endif
18812
18813int
18814main ()
18815{
18816
18817  ;
18818  return 0;
18819}
18820_ACEOF
18821if ac_fn_c_try_compile "$LINENO"; then :
18822  _EXT_CHECK=yes
18823else
18824  _EXT_CHECK=no
18825fi
18826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18827	CFLAGS="$SAVE_CFLAGS"
18828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18829$as_echo_n "checking if RENDER is defined... " >&6; }
18830	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18831$as_echo "$_EXT_CHECK" >&6; }
18832	if test "$_EXT_CHECK" != no; then
18833		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18834	fi
18835
18836
18837
18838	SAVE_CFLAGS="$CFLAGS"
18839	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18840	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841/* end confdefs.h.  */
18842
18843#include "xorg-server.h"
18844#if !defined XV
18845#error XV not defined
18846#endif
18847
18848int
18849main ()
18850{
18851
18852  ;
18853  return 0;
18854}
18855_ACEOF
18856if ac_fn_c_try_compile "$LINENO"; then :
18857  _EXT_CHECK=yes
18858else
18859  _EXT_CHECK=no
18860fi
18861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862	CFLAGS="$SAVE_CFLAGS"
18863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18864$as_echo_n "checking if XV is defined... " >&6; }
18865	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18866$as_echo "$_EXT_CHECK" >&6; }
18867	if test "$_EXT_CHECK" != no; then
18868		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18869	fi
18870
18871
18872
18873	SAVE_CFLAGS="$CFLAGS"
18874	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18875	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h.  */
18877
18878#include "xorg-server.h"
18879#if !defined DPMSExtension
18880#error DPMSExtension not defined
18881#endif
18882
18883int
18884main ()
18885{
18886
18887  ;
18888  return 0;
18889}
18890_ACEOF
18891if ac_fn_c_try_compile "$LINENO"; then :
18892  _EXT_CHECK=yes
18893else
18894  _EXT_CHECK=no
18895fi
18896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18897	CFLAGS="$SAVE_CFLAGS"
18898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18899$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18900	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18901$as_echo "$_EXT_CHECK" >&6; }
18902	if test "$_EXT_CHECK" != no; then
18903		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18904	fi
18905
18906
18907# Checks for libraries.
18908
18909pkg_failed=no
18910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18911$as_echo_n "checking for LIBDRM... " >&6; }
18912
18913if test -n "$LIBDRM_CFLAGS"; then
18914    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18915 elif test -n "$PKG_CONFIG"; then
18916    if test -n "$PKG_CONFIG" && \
18917    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
18918  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
18919  ac_status=$?
18920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18921  test $ac_status = 0; }; then
18922  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.89" 2>/dev/null`
18923		      test "x$?" != "x0" && pkg_failed=yes
18924else
18925  pkg_failed=yes
18926fi
18927 else
18928    pkg_failed=untried
18929fi
18930if test -n "$LIBDRM_LIBS"; then
18931    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18932 elif test -n "$PKG_CONFIG"; then
18933    if test -n "$PKG_CONFIG" && \
18934    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.89\""; } >&5
18935  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.89") 2>&5
18936  ac_status=$?
18937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18938  test $ac_status = 0; }; then
18939  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.89" 2>/dev/null`
18940		      test "x$?" != "x0" && pkg_failed=yes
18941else
18942  pkg_failed=yes
18943fi
18944 else
18945    pkg_failed=untried
18946fi
18947
18948
18949
18950if test $pkg_failed = yes; then
18951   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18952$as_echo "no" >&6; }
18953
18954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18955        _pkg_short_errors_supported=yes
18956else
18957        _pkg_short_errors_supported=no
18958fi
18959        if test $_pkg_short_errors_supported = yes; then
18960	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
18961        else
18962	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.89" 2>&1`
18963        fi
18964	# Put the nasty error message in config.log where it belongs
18965	echo "$LIBDRM_PKG_ERRORS" >&5
18966
18967	as_fn_error $? "Package requirements (libdrm >= 2.4.89) were not met:
18968
18969$LIBDRM_PKG_ERRORS
18970
18971Consider adjusting the PKG_CONFIG_PATH environment variable if you
18972installed software in a non-standard prefix.
18973
18974Alternatively, you may set the environment variables LIBDRM_CFLAGS
18975and LIBDRM_LIBS to avoid the need to call pkg-config.
18976See the pkg-config man page for more details." "$LINENO" 5
18977elif test $pkg_failed = untried; then
18978     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18979$as_echo "no" >&6; }
18980	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18982as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18983is in your PATH or set the PKG_CONFIG environment variable to the full
18984path to pkg-config.
18985
18986Alternatively, you may set the environment variables LIBDRM_CFLAGS
18987and LIBDRM_LIBS to avoid the need to call pkg-config.
18988See the pkg-config man page for more details.
18989
18990To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18991See \`config.log' for more details" "$LINENO" 5; }
18992else
18993	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18994	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18995        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18996$as_echo "yes" >&6; }
18997
18998fi
18999
19000pkg_failed=no
19001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_AMDGPU" >&5
19002$as_echo_n "checking for LIBDRM_AMDGPU... " >&6; }
19003
19004if test -n "$LIBDRM_AMDGPU_CFLAGS"; then
19005    pkg_cv_LIBDRM_AMDGPU_CFLAGS="$LIBDRM_AMDGPU_CFLAGS"
19006 elif test -n "$PKG_CONFIG"; then
19007    if test -n "$PKG_CONFIG" && \
19008    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_amdgpu >= 2.4.76\""; } >&5
19009  ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 2>&5
19010  ac_status=$?
19011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19012  test $ac_status = 0; }; then
19013  pkg_cv_LIBDRM_AMDGPU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_amdgpu >= 2.4.76" 2>/dev/null`
19014		      test "x$?" != "x0" && pkg_failed=yes
19015else
19016  pkg_failed=yes
19017fi
19018 else
19019    pkg_failed=untried
19020fi
19021if test -n "$LIBDRM_AMDGPU_LIBS"; then
19022    pkg_cv_LIBDRM_AMDGPU_LIBS="$LIBDRM_AMDGPU_LIBS"
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 \"libdrm_amdgpu >= 2.4.76\""; } >&5
19026  ($PKG_CONFIG --exists --print-errors "libdrm_amdgpu >= 2.4.76") 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_LIBDRM_AMDGPU_LIBS=`$PKG_CONFIG --libs "libdrm_amdgpu >= 2.4.76" 2>/dev/null`
19031		      test "x$?" != "x0" && pkg_failed=yes
19032else
19033  pkg_failed=yes
19034fi
19035 else
19036    pkg_failed=untried
19037fi
19038
19039
19040
19041if test $pkg_failed = yes; then
19042   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19043$as_echo "no" >&6; }
19044
19045if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19046        _pkg_short_errors_supported=yes
19047else
19048        _pkg_short_errors_supported=no
19049fi
19050        if test $_pkg_short_errors_supported = yes; then
19051	        LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1`
19052        else
19053	        LIBDRM_AMDGPU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_amdgpu >= 2.4.76" 2>&1`
19054        fi
19055	# Put the nasty error message in config.log where it belongs
19056	echo "$LIBDRM_AMDGPU_PKG_ERRORS" >&5
19057
19058	as_fn_error $? "Package requirements (libdrm_amdgpu >= 2.4.76) were not met:
19059
19060$LIBDRM_AMDGPU_PKG_ERRORS
19061
19062Consider adjusting the PKG_CONFIG_PATH environment variable if you
19063installed software in a non-standard prefix.
19064
19065Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS
19066and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config.
19067See the pkg-config man page for more details." "$LINENO" 5
19068elif test $pkg_failed = untried; then
19069     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070$as_echo "no" >&6; }
19071	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19073as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19074is in your PATH or set the PKG_CONFIG environment variable to the full
19075path to pkg-config.
19076
19077Alternatively, you may set the environment variables LIBDRM_AMDGPU_CFLAGS
19078and LIBDRM_AMDGPU_LIBS to avoid the need to call pkg-config.
19079See the pkg-config man page for more details.
19080
19081To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19082See \`config.log' for more details" "$LINENO" 5; }
19083else
19084	LIBDRM_AMDGPU_CFLAGS=$pkg_cv_LIBDRM_AMDGPU_CFLAGS
19085	LIBDRM_AMDGPU_LIBS=$pkg_cv_LIBDRM_AMDGPU_LIBS
19086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19087$as_echo "yes" >&6; }
19088
19089fi
19090
19091pkg_failed=no
19092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
19093$as_echo_n "checking for GBM... " >&6; }
19094
19095if test -n "$GBM_CFLAGS"; then
19096    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
19097 elif test -n "$PKG_CONFIG"; then
19098    if test -n "$PKG_CONFIG" && \
19099    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
19100  ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
19101  ac_status=$?
19102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19103  test $ac_status = 0; }; then
19104  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null`
19105		      test "x$?" != "x0" && pkg_failed=yes
19106else
19107  pkg_failed=yes
19108fi
19109 else
19110    pkg_failed=untried
19111fi
19112if test -n "$GBM_LIBS"; then
19113    pkg_cv_GBM_LIBS="$GBM_LIBS"
19114 elif test -n "$PKG_CONFIG"; then
19115    if test -n "$PKG_CONFIG" && \
19116    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5
19117  ($PKG_CONFIG --exists --print-errors "gbm") 2>&5
19118  ac_status=$?
19119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120  test $ac_status = 0; }; then
19121  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null`
19122		      test "x$?" != "x0" && pkg_failed=yes
19123else
19124  pkg_failed=yes
19125fi
19126 else
19127    pkg_failed=untried
19128fi
19129
19130
19131
19132if test $pkg_failed = yes; then
19133   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19134$as_echo "no" >&6; }
19135
19136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19137        _pkg_short_errors_supported=yes
19138else
19139        _pkg_short_errors_supported=no
19140fi
19141        if test $_pkg_short_errors_supported = yes; then
19142	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1`
19143        else
19144	        GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1`
19145        fi
19146	# Put the nasty error message in config.log where it belongs
19147	echo "$GBM_PKG_ERRORS" >&5
19148
19149	as_fn_error $? "Package requirements (gbm) were not met:
19150
19151$GBM_PKG_ERRORS
19152
19153Consider adjusting the PKG_CONFIG_PATH environment variable if you
19154installed software in a non-standard prefix.
19155
19156Alternatively, you may set the environment variables GBM_CFLAGS
19157and GBM_LIBS to avoid the need to call pkg-config.
19158See the pkg-config man page for more details." "$LINENO" 5
19159elif test $pkg_failed = untried; then
19160     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161$as_echo "no" >&6; }
19162	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19164as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19165is in your PATH or set the PKG_CONFIG environment variable to the full
19166path to pkg-config.
19167
19168Alternatively, you may set the environment variables GBM_CFLAGS
19169and GBM_LIBS to avoid the need to call pkg-config.
19170See the pkg-config man page for more details.
19171
19172To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19173See \`config.log' for more details" "$LINENO" 5; }
19174else
19175	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
19176	GBM_LIBS=$pkg_cv_GBM_LIBS
19177        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19178$as_echo "yes" >&6; }
19179
19180fi
19181
19182# Obtain compiler/linker options for the driver dependencies
19183
19184pkg_failed=no
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19186$as_echo_n "checking for XORG... " >&6; }
19187
19188if test -n "$XORG_CFLAGS"; then
19189    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19190 elif test -n "$PKG_CONFIG"; then
19191    if test -n "$PKG_CONFIG" && \
19192    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19193  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19194  ac_status=$?
19195  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19196  test $ac_status = 0; }; then
19197  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19198		      test "x$?" != "x0" && pkg_failed=yes
19199else
19200  pkg_failed=yes
19201fi
19202 else
19203    pkg_failed=untried
19204fi
19205if test -n "$XORG_LIBS"; then
19206    pkg_cv_XORG_LIBS="$XORG_LIBS"
19207 elif test -n "$PKG_CONFIG"; then
19208    if test -n "$PKG_CONFIG" && \
19209    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.13 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19210  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19211  ac_status=$?
19212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19213  test $ac_status = 0; }; then
19214  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19215		      test "x$?" != "x0" && pkg_failed=yes
19216else
19217  pkg_failed=yes
19218fi
19219 else
19220    pkg_failed=untried
19221fi
19222
19223
19224
19225if test $pkg_failed = yes; then
19226   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227$as_echo "no" >&6; }
19228
19229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19230        _pkg_short_errors_supported=yes
19231else
19232        _pkg_short_errors_supported=no
19233fi
19234        if test $_pkg_short_errors_supported = yes; then
19235	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19236        else
19237	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19238        fi
19239	# Put the nasty error message in config.log where it belongs
19240	echo "$XORG_PKG_ERRORS" >&5
19241
19242	as_fn_error $? "Package requirements (xorg-server >= 1.13 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
19243
19244$XORG_PKG_ERRORS
19245
19246Consider adjusting the PKG_CONFIG_PATH environment variable if you
19247installed software in a non-standard prefix.
19248
19249Alternatively, you may set the environment variables XORG_CFLAGS
19250and XORG_LIBS to avoid the need to call pkg-config.
19251See the pkg-config man page for more details." "$LINENO" 5
19252elif test $pkg_failed = untried; then
19253     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19254$as_echo "no" >&6; }
19255	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19257as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19258is in your PATH or set the PKG_CONFIG environment variable to the full
19259path to pkg-config.
19260
19261Alternatively, you may set the environment variables XORG_CFLAGS
19262and XORG_LIBS to avoid the need to call pkg-config.
19263See the pkg-config man page for more details.
19264
19265To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19266See \`config.log' for more details" "$LINENO" 5; }
19267else
19268	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19269	XORG_LIBS=$pkg_cv_XORG_LIBS
19270        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19271$as_echo "yes" >&6; }
19272
19273fi
19274
19275pkg_failed=no
19276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19277$as_echo_n "checking for XEXT... " >&6; }
19278
19279if test -n "$XEXT_CFLAGS"; then
19280    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19281 elif test -n "$PKG_CONFIG"; then
19282    if test -n "$PKG_CONFIG" && \
19283    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19284  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19285  ac_status=$?
19286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19287  test $ac_status = 0; }; then
19288  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19289		      test "x$?" != "x0" && pkg_failed=yes
19290else
19291  pkg_failed=yes
19292fi
19293 else
19294    pkg_failed=untried
19295fi
19296if test -n "$XEXT_LIBS"; then
19297    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19298 elif test -n "$PKG_CONFIG"; then
19299    if test -n "$PKG_CONFIG" && \
19300    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19301  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19302  ac_status=$?
19303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19304  test $ac_status = 0; }; then
19305  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19306		      test "x$?" != "x0" && pkg_failed=yes
19307else
19308  pkg_failed=yes
19309fi
19310 else
19311    pkg_failed=untried
19312fi
19313
19314
19315
19316if test $pkg_failed = yes; then
19317   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318$as_echo "no" >&6; }
19319
19320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19321        _pkg_short_errors_supported=yes
19322else
19323        _pkg_short_errors_supported=no
19324fi
19325        if test $_pkg_short_errors_supported = yes; then
19326	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19327        else
19328	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19329        fi
19330	# Put the nasty error message in config.log where it belongs
19331	echo "$XEXT_PKG_ERRORS" >&5
19332
19333	HAVE_XEXTPROTO_71="no"
19334elif test $pkg_failed = untried; then
19335     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19336$as_echo "no" >&6; }
19337	HAVE_XEXTPROTO_71="no"
19338else
19339	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19340	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19341        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19342$as_echo "yes" >&6; }
19343	HAVE_XEXTPROTO_71="yes";
19344$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19345
19346fi
19347 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19348  HAVE_XEXTPROTO_71_TRUE=
19349  HAVE_XEXTPROTO_71_FALSE='#'
19350else
19351  HAVE_XEXTPROTO_71_TRUE='#'
19352  HAVE_XEXTPROTO_71_FALSE=
19353fi
19354
19355
19356# Section "OutputClass" is only supported as of xserver 1.16
19357if test -n "$PKG_CONFIG" && \
19358    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
19359  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
19360  ac_status=$?
19361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19362  test $ac_status = 0; }; then
19363  sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
19364else
19365  sysconfigdir=""
19366fi
19367 if test "x$sysconfigdir" != "x"; then
19368  HAS_XORG_CONF_DIR_TRUE=
19369  HAS_XORG_CONF_DIR_FALSE='#'
19370else
19371  HAS_XORG_CONF_DIR_TRUE='#'
19372  HAS_XORG_CONF_DIR_FALSE=
19373fi
19374
19375
19376# Define a configure option for an alternate X Server configuration directory
19377
19378# Check whether --with-xorg-conf-dir was given.
19379if test "${with_xorg_conf_dir+set}" = set; then :
19380  withval=$with_xorg_conf_dir; configdir="$withval"
19381else
19382  configdir='${prefix}/share/X11/xorg.conf.d'
19383fi
19384
19385
19386
19387# Check whether --enable-udev was given.
19388if test "${enable_udev+set}" = set; then :
19389  enableval=$enable_udev; enable_udev="$enableval"
19390else
19391  enable_udev=auto
19392fi
19393
19394if test "x$enable_udev" != "xno"; then
19395
19396pkg_failed=no
19397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19398$as_echo_n "checking for LIBUDEV... " >&6; }
19399
19400if test -n "$LIBUDEV_CFLAGS"; then
19401    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19402 elif test -n "$PKG_CONFIG"; then
19403    if test -n "$PKG_CONFIG" && \
19404    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19405  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19406  ac_status=$?
19407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19408  test $ac_status = 0; }; then
19409  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19410		      test "x$?" != "x0" && pkg_failed=yes
19411else
19412  pkg_failed=yes
19413fi
19414 else
19415    pkg_failed=untried
19416fi
19417if test -n "$LIBUDEV_LIBS"; then
19418    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19419 elif test -n "$PKG_CONFIG"; then
19420    if test -n "$PKG_CONFIG" && \
19421    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19422  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19423  ac_status=$?
19424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19425  test $ac_status = 0; }; then
19426  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19427		      test "x$?" != "x0" && pkg_failed=yes
19428else
19429  pkg_failed=yes
19430fi
19431 else
19432    pkg_failed=untried
19433fi
19434
19435
19436
19437if test $pkg_failed = yes; then
19438   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439$as_echo "no" >&6; }
19440
19441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19442        _pkg_short_errors_supported=yes
19443else
19444        _pkg_short_errors_supported=no
19445fi
19446        if test $_pkg_short_errors_supported = yes; then
19447	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19448        else
19449	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19450        fi
19451	# Put the nasty error message in config.log where it belongs
19452	echo "$LIBUDEV_PKG_ERRORS" >&5
19453
19454	LIBUDEV=no
19455elif test $pkg_failed = untried; then
19456     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19457$as_echo "no" >&6; }
19458	LIBUDEV=no
19459else
19460	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19461	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19462        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19463$as_echo "yes" >&6; }
19464	LIBUDEV=yes
19465fi
19466	if test "x$LIBUDEV" = xyes; then
19467
19468$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19469
19470	elif test "x$enable_udev" != "xauto"; then
19471		as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
19472	fi
19473fi
19474 if test x$LIBUDEV = xyes; then
19475  LIBUDEV_TRUE=
19476  LIBUDEV_FALSE='#'
19477else
19478  LIBUDEV_TRUE='#'
19479  LIBUDEV_FALSE=
19480fi
19481
19482
19483SAVE_CPPFLAGS="$CPPFLAGS"
19484CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19485
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
19487$as_echo_n "checking whether to include GLAMOR support... " >&6; }
19488# Check whether --enable-glamor was given.
19489if test "${enable_glamor+set}" = set; then :
19490  enableval=$enable_glamor; GLAMOR="$enableval"
19491else
19492  GLAMOR=yes
19493fi
19494
19495
19496if test "x$GLAMOR" != "xno"; then
19497	for ac_header in glamor.h
19498do :
19499  ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
19500"
19501if test "x$ac_cv_header_glamor_h" = xyes; then :
19502  cat >>confdefs.h <<_ACEOF
19503#define HAVE_GLAMOR_H 1
19504_ACEOF
19505 GLAMOR_H="yes"
19506else
19507  GLAMOR_H="no"
19508fi
19509
19510done
19511
19512
19513	if test "x$GLAMOR_H" = xyes; then
19514		ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
19515			       #include \"glamor.h\"
19516"
19517if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then :
19518  GLAMOR_XSERVER="yes"
19519else
19520  GLAMOR_XSERVER="no"
19521fi
19522
19523
19524		ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
19525			       #include \"glamor.h\"
19526"
19527if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then :
19528
19529$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
19530
19531fi
19532
19533
19534		ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
19535			       #include \"glamor.h\"
19536"
19537if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then :
19538
19539$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
19540
19541fi
19542
19543
19544		ac_fn_c_check_decl "$LINENO" "glamor_finish" "ac_cv_have_decl_glamor_finish" "#include \"xorg-server.h\"
19545			       #include \"glamor.h\"
19546"
19547if test "x$ac_cv_have_decl_glamor_finish" = xyes; then :
19548
19549$as_echo "#define HAVE_GLAMOR_FINISH 1" >>confdefs.h
19550
19551else
19552
19553pkg_failed=no
19554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGL" >&5
19555$as_echo_n "checking for LIBGL... " >&6; }
19556
19557if test -n "$LIBGL_CFLAGS"; then
19558    pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
19559 elif test -n "$PKG_CONFIG"; then
19560    if test -n "$PKG_CONFIG" && \
19561    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
19562  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
19563  ac_status=$?
19564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19565  test $ac_status = 0; }; then
19566  pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
19567		      test "x$?" != "x0" && pkg_failed=yes
19568else
19569  pkg_failed=yes
19570fi
19571 else
19572    pkg_failed=untried
19573fi
19574if test -n "$LIBGL_LIBS"; then
19575    pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
19576 elif test -n "$PKG_CONFIG"; then
19577    if test -n "$PKG_CONFIG" && \
19578    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
19579  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
19580  ac_status=$?
19581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19582  test $ac_status = 0; }; then
19583  pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
19584		      test "x$?" != "x0" && pkg_failed=yes
19585else
19586  pkg_failed=yes
19587fi
19588 else
19589    pkg_failed=untried
19590fi
19591
19592
19593
19594if test $pkg_failed = yes; then
19595   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19596$as_echo "no" >&6; }
19597
19598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19599        _pkg_short_errors_supported=yes
19600else
19601        _pkg_short_errors_supported=no
19602fi
19603        if test $_pkg_short_errors_supported = yes; then
19604	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
19605        else
19606	        LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
19607        fi
19608	# Put the nasty error message in config.log where it belongs
19609	echo "$LIBGL_PKG_ERRORS" >&5
19610
19611	as_fn_error $? "Package requirements (gl) were not met:
19612
19613$LIBGL_PKG_ERRORS
19614
19615Consider adjusting the PKG_CONFIG_PATH environment variable if you
19616installed software in a non-standard prefix.
19617
19618Alternatively, you may set the environment variables LIBGL_CFLAGS
19619and LIBGL_LIBS to avoid the need to call pkg-config.
19620See the pkg-config man page for more details." "$LINENO" 5
19621elif test $pkg_failed = untried; then
19622     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19623$as_echo "no" >&6; }
19624	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19626as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19627is in your PATH or set the PKG_CONFIG environment variable to the full
19628path to pkg-config.
19629
19630Alternatively, you may set the environment variables LIBGL_CFLAGS
19631and LIBGL_LIBS to avoid the need to call pkg-config.
19632See the pkg-config man page for more details.
19633
19634To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19635See \`config.log' for more details" "$LINENO" 5; }
19636else
19637	LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
19638	LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
19639        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19640$as_echo "yes" >&6; }
19641
19642fi
19643fi
19644
19645	fi
19646
19647	if test "x$GLAMOR_XSERVER" != xyes; then
19648
19649pkg_failed=no
19650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
19651$as_echo_n "checking for LIBGLAMOR... " >&6; }
19652
19653if test -n "$LIBGLAMOR_CFLAGS"; then
19654    pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
19655 elif test -n "$PKG_CONFIG"; then
19656    if test -n "$PKG_CONFIG" && \
19657    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19658  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19659  ac_status=$?
19660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19661  test $ac_status = 0; }; then
19662  pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
19663		      test "x$?" != "x0" && pkg_failed=yes
19664else
19665  pkg_failed=yes
19666fi
19667 else
19668    pkg_failed=untried
19669fi
19670if test -n "$LIBGLAMOR_LIBS"; then
19671    pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
19672 elif test -n "$PKG_CONFIG"; then
19673    if test -n "$PKG_CONFIG" && \
19674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19675  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19676  ac_status=$?
19677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19678  test $ac_status = 0; }; then
19679  pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
19680		      test "x$?" != "x0" && pkg_failed=yes
19681else
19682  pkg_failed=yes
19683fi
19684 else
19685    pkg_failed=untried
19686fi
19687
19688
19689
19690if test $pkg_failed = yes; then
19691   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19692$as_echo "no" >&6; }
19693
19694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19695        _pkg_short_errors_supported=yes
19696else
19697        _pkg_short_errors_supported=no
19698fi
19699        if test $_pkg_short_errors_supported = yes; then
19700	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19701        else
19702	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19703        fi
19704	# Put the nasty error message in config.log where it belongs
19705	echo "$LIBGLAMOR_PKG_ERRORS" >&5
19706
19707	as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
19708
19709$LIBGLAMOR_PKG_ERRORS
19710
19711Consider adjusting the PKG_CONFIG_PATH environment variable if you
19712installed software in a non-standard prefix.
19713
19714Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19715and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19716See the pkg-config man page for more details." "$LINENO" 5
19717elif test $pkg_failed = untried; then
19718     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19719$as_echo "no" >&6; }
19720	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19722as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19723is in your PATH or set the PKG_CONFIG environment variable to the full
19724path to pkg-config.
19725
19726Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19727and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19728See the pkg-config man page for more details.
19729
19730To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19731See \`config.log' for more details" "$LINENO" 5; }
19732else
19733	LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
19734	LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
19735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19736$as_echo "yes" >&6; }
19737
19738fi
19739
19740pkg_failed=no
19741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
19742$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
19743
19744if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
19745    pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
19746 elif test -n "$PKG_CONFIG"; then
19747    if test -n "$PKG_CONFIG" && \
19748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19749  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19750  ac_status=$?
19751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19752  test $ac_status = 0; }; then
19753  pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
19754		      test "x$?" != "x0" && pkg_failed=yes
19755else
19756  pkg_failed=yes
19757fi
19758 else
19759    pkg_failed=untried
19760fi
19761if test -n "$LIBGLAMOR_EGL_LIBS"; then
19762    pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
19763 elif test -n "$PKG_CONFIG"; then
19764    if test -n "$PKG_CONFIG" && \
19765    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19766  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19767  ac_status=$?
19768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769  test $ac_status = 0; }; then
19770  pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
19771		      test "x$?" != "x0" && pkg_failed=yes
19772else
19773  pkg_failed=yes
19774fi
19775 else
19776    pkg_failed=untried
19777fi
19778
19779
19780
19781if test $pkg_failed = yes; then
19782   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19783$as_echo "no" >&6; }
19784
19785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19786        _pkg_short_errors_supported=yes
19787else
19788        _pkg_short_errors_supported=no
19789fi
19790        if test $_pkg_short_errors_supported = yes; then
19791	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
19792        else
19793	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
19794        fi
19795	# Put the nasty error message in config.log where it belongs
19796	echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
19797
19798	as_fn_error $? "Package requirements (glamor-egl) were not met:
19799
19800$LIBGLAMOR_EGL_PKG_ERRORS
19801
19802Consider adjusting the PKG_CONFIG_PATH environment variable if you
19803installed software in a non-standard prefix.
19804
19805Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19806and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19807See the pkg-config man page for more details." "$LINENO" 5
19808elif test $pkg_failed = untried; then
19809     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19810$as_echo "no" >&6; }
19811	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19813as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19814is in your PATH or set the PKG_CONFIG environment variable to the full
19815path to pkg-config.
19816
19817Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19818and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19819See the pkg-config man page for more details.
19820
19821To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19822See \`config.log' for more details" "$LINENO" 5; }
19823else
19824	LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
19825	LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
19826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19827$as_echo "yes" >&6; }
19828
19829fi
19830	fi
19831
19832$as_echo "#define USE_GLAMOR 1" >>confdefs.h
19833
19834else
19835	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
19836$as_echo "$GLAMOR" >&6; }
19837fi
19838 if test x$GLAMOR != xno; then
19839  GLAMOR_TRUE=
19840  GLAMOR_FALSE='#'
19841else
19842  GLAMOR_TRUE='#'
19843  GLAMOR_FALSE=
19844fi
19845
19846
19847ac_fn_c_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h>
19848	       #include <regionstr.h>
19849"
19850if test "x$ac_cv_have_decl_RegionDuplicate" = xyes; then :
19851
19852$as_echo "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h
19853
19854fi
19855
19856
19857ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
19858	       #include <X11/Xfuncproto.h>
19859	       #include <X11/extensions/renderproto.h>
19860	       #include <xorg-server.h>
19861	       #include <picture.h>
19862	       #include <glyphstr.h>
19863	       #include <fbpict.h>
19864"
19865if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then :
19866
19867$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h
19868
19869fi
19870
19871
19872ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
19873	       #include <xf86Cursor.h>
19874"
19875if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then :
19876
19877$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
19878
19879fi
19880
19881
19882ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
19883	       #include <gbm.h>
19884"
19885if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then :
19886
19887$as_echo "#define HAVE_GBM_BO_USE_LINEAR 1" >>confdefs.h
19888
19889fi
19890
19891
19892for ac_header in misyncshm.h
19893do :
19894  ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
19895	          #include <X11/Xfuncproto.h>
19896	          #include <xorg-server.h>
19897		  #include <screenint.h>
19898"
19899if test "x$ac_cv_header_misyncshm_h" = xyes; then :
19900  cat >>confdefs.h <<_ACEOF
19901#define HAVE_MISYNCSHM_H 1
19902_ACEOF
19903
19904fi
19905
19906done
19907
19908
19909for ac_header in present.h
19910do :
19911  ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
19912		 #include <X11/Xproto.h>
19913		 #include \"xorg-server.h\"
19914		 #include <X11/X.h>
19915"
19916if test "x$ac_cv_header_present_h" = xyes; then :
19917  cat >>confdefs.h <<_ACEOF
19918#define HAVE_PRESENT_H 1
19919_ACEOF
19920
19921fi
19922
19923done
19924
19925
19926for ac_header in dri3.h
19927do :
19928  ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
19929		 #include <xorg-server.h>
19930"
19931if test "x$ac_cv_header_dri3_h" = xyes; then :
19932  cat >>confdefs.h <<_ACEOF
19933#define HAVE_DRI3_H 1
19934_ACEOF
19935
19936fi
19937
19938done
19939
19940
19941CPPFLAGS="$SAVE_CPPFLAGS"
19942
19943# Checks for headers/macros for byte swapping
19944# Known variants:
19945#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
19946#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
19947#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
19948#	and a fallback to local macros if none of the above are found
19949
19950# if <byteswap.h> is found, assume it's the correct version
19951for ac_header in byteswap.h
19952do :
19953  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19954if test "x$ac_cv_header_byteswap_h" = xyes; then :
19955  cat >>confdefs.h <<_ACEOF
19956#define HAVE_BYTESWAP_H 1
19957_ACEOF
19958
19959fi
19960
19961done
19962
19963
19964# if <sys/endian.h> is found, have to check which version
19965ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19966if test "x$ac_cv_header_sys_endian_h" = xyes; then :
19967  HAVE_SYS_ENDIAN_H="yes"
19968else
19969  HAVE_SYS_ENDIAN_H="no"
19970fi
19971
19972
19973
19974if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
19975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
19976$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19977	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978/* end confdefs.h.  */
19979
19980#include <sys/types.h>
19981#include <sys/endian.h>
19982
19983int
19984main ()
19985{
19986
19987int a = 1, b;
19988b = __swap16(a);
19989
19990  ;
19991  return 0;
19992}
19993
19994_ACEOF
19995if ac_fn_c_try_link "$LINENO"; then :
19996  SYS_ENDIAN__SWAP='yes'
19997else
19998  SYS_ENDIAN__SWAP='no'
19999fi
20000rm -f core conftest.err conftest.$ac_objext \
20001    conftest$ac_exeext conftest.$ac_ext
20002	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
20003$as_echo "$SYS_ENDIAN__SWAP" >&6; }
20004
20005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
20006$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
20007	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008/* end confdefs.h.  */
20009
20010#include <sys/types.h>
20011#include <sys/endian.h>
20012
20013int
20014main ()
20015{
20016
20017int a = 1, b;
20018b = bswap16(a);
20019
20020  ;
20021  return 0;
20022}
20023
20024_ACEOF
20025if ac_fn_c_try_link "$LINENO"; then :
20026  SYS_ENDIAN_BSWAP='yes'
20027else
20028  SYS_ENDIAN_BSWAP='no'
20029fi
20030rm -f core conftest.err conftest.$ac_objext \
20031    conftest$ac_exeext conftest.$ac_ext
20032	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
20033$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
20034
20035    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
20036		USE_SYS_ENDIAN_H=yes
20037		BSWAP=bswap
20038	else
20039	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
20040			USE_SYS_ENDIAN_H=yes
20041			BSWAP=__swap
20042		else
20043			USE_SYS_ENDIAN_H=no
20044		fi
20045	fi
20046
20047	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
20048
20049$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
20050
20051
20052cat >>confdefs.h <<_ACEOF
20053#define bswap_16 ${BSWAP}16
20054_ACEOF
20055
20056
20057cat >>confdefs.h <<_ACEOF
20058#define bswap_32 ${BSWAP}32
20059_ACEOF
20060
20061
20062cat >>confdefs.h <<_ACEOF
20063#define bswap_64 ${BSWAP}64
20064_ACEOF
20065
20066	fi
20067fi
20068
20069
20070
20071DRIVER_NAME=amdgpu
20072
20073
20074ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
20075
20076cat >confcache <<\_ACEOF
20077# This file is a shell script that caches the results of configure
20078# tests run on this system so they can be shared between configure
20079# scripts and configure runs, see configure's option --config-cache.
20080# It is not useful on other systems.  If it contains results you don't
20081# want to keep, you may remove or edit it.
20082#
20083# config.status only pays attention to the cache file if you give it
20084# the --recheck option to rerun configure.
20085#
20086# `ac_cv_env_foo' variables (set or unset) will be overridden when
20087# loading this file, other *unset* `ac_cv_foo' will be assigned the
20088# following values.
20089
20090_ACEOF
20091
20092# The following way of writing the cache mishandles newlines in values,
20093# but we know of no workaround that is simple, portable, and efficient.
20094# So, we kill variables containing newlines.
20095# Ultrix sh set writes to stderr and can't be redirected directly,
20096# and sets the high bit in the cache file unless we assign to the vars.
20097(
20098  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20099    eval ac_val=\$$ac_var
20100    case $ac_val in #(
20101    *${as_nl}*)
20102      case $ac_var in #(
20103      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20105      esac
20106      case $ac_var in #(
20107      _ | IFS | as_nl) ;; #(
20108      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20109      *) { eval $ac_var=; unset $ac_var;} ;;
20110      esac ;;
20111    esac
20112  done
20113
20114  (set) 2>&1 |
20115    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20116    *${as_nl}ac_space=\ *)
20117      # `set' does not quote correctly, so add quotes: double-quote
20118      # substitution turns \\\\ into \\, and sed turns \\ into \.
20119      sed -n \
20120	"s/'/'\\\\''/g;
20121	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20122      ;; #(
20123    *)
20124      # `set' quotes correctly as required by POSIX, so do not add quotes.
20125      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20126      ;;
20127    esac |
20128    sort
20129) |
20130  sed '
20131     /^ac_cv_env_/b end
20132     t clear
20133     :clear
20134     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20135     t end
20136     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20137     :end' >>confcache
20138if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20139  if test -w "$cache_file"; then
20140    if test "x$cache_file" != "x/dev/null"; then
20141      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20142$as_echo "$as_me: updating cache $cache_file" >&6;}
20143      if test ! -f "$cache_file" || test -h "$cache_file"; then
20144	cat confcache >"$cache_file"
20145      else
20146        case $cache_file in #(
20147        */* | ?:*)
20148	  mv -f confcache "$cache_file"$$ &&
20149	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20150        *)
20151	  mv -f confcache "$cache_file" ;;
20152	esac
20153      fi
20154    fi
20155  else
20156    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20157$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20158  fi
20159fi
20160rm -f confcache
20161
20162test "x$prefix" = xNONE && prefix=$ac_default_prefix
20163# Let make expand exec_prefix.
20164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20165
20166DEFS=-DHAVE_CONFIG_H
20167
20168ac_libobjs=
20169ac_ltlibobjs=
20170U=
20171for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20172  # 1. Remove the extension, and $U if already installed.
20173  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20174  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20175  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20176  #    will be set to the directory where LIBOBJS objects are built.
20177  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20178  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20179done
20180LIBOBJS=$ac_libobjs
20181
20182LTLIBOBJS=$ac_ltlibobjs
20183
20184
20185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20186$as_echo_n "checking that generated files are newer than configure... " >&6; }
20187   if test -n "$am_sleep_pid"; then
20188     # Hide warnings about reused PIDs.
20189     wait $am_sleep_pid 2>/dev/null
20190   fi
20191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20192$as_echo "done" >&6; }
20193 if test -n "$EXEEXT"; then
20194  am__EXEEXT_TRUE=
20195  am__EXEEXT_FALSE='#'
20196else
20197  am__EXEEXT_TRUE='#'
20198  am__EXEEXT_FALSE=
20199fi
20200
20201if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20202  as_fn_error $? "conditional \"AMDEP\" was never defined.
20203Usually this means the macro was only invoked conditionally." "$LINENO" 5
20204fi
20205if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20206  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20207Usually this means the macro was only invoked conditionally." "$LINENO" 5
20208fi
20209if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20210  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20211Usually this means the macro was only invoked conditionally." "$LINENO" 5
20212fi
20213if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
20214  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
20215Usually this means the macro was only invoked conditionally." "$LINENO" 5
20216fi
20217if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20218  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20219Usually this means the macro was only invoked conditionally." "$LINENO" 5
20220fi
20221if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20222  as_fn_error $? "conditional \"GLAMOR\" was never defined.
20223Usually this means the macro was only invoked conditionally." "$LINENO" 5
20224fi
20225
20226: "${CONFIG_STATUS=./config.status}"
20227ac_write_fail=0
20228ac_clean_files_save=$ac_clean_files
20229ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20230{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20231$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20232as_write_fail=0
20233cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20234#! $SHELL
20235# Generated by $as_me.
20236# Run this file to recreate the current configuration.
20237# Compiler output produced by configure, useful for debugging
20238# configure, is in config.log if it exists.
20239
20240debug=false
20241ac_cs_recheck=false
20242ac_cs_silent=false
20243
20244SHELL=\${CONFIG_SHELL-$SHELL}
20245export SHELL
20246_ASEOF
20247cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20248## -------------------- ##
20249## M4sh Initialization. ##
20250## -------------------- ##
20251
20252# Be more Bourne compatible
20253DUALCASE=1; export DUALCASE # for MKS sh
20254if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20255  emulate sh
20256  NULLCMD=:
20257  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20258  # is contrary to our usage.  Disable this feature.
20259  alias -g '${1+"$@"}'='"$@"'
20260  setopt NO_GLOB_SUBST
20261else
20262  case `(set -o) 2>/dev/null` in #(
20263  *posix*) :
20264    set -o posix ;; #(
20265  *) :
20266     ;;
20267esac
20268fi
20269
20270
20271as_nl='
20272'
20273export as_nl
20274# Printing a long string crashes Solaris 7 /usr/bin/printf.
20275as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20277as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20278# Prefer a ksh shell builtin over an external printf program on Solaris,
20279# but without wasting forks for bash or zsh.
20280if test -z "$BASH_VERSION$ZSH_VERSION" \
20281    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20282  as_echo='print -r --'
20283  as_echo_n='print -rn --'
20284elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20285  as_echo='printf %s\n'
20286  as_echo_n='printf %s'
20287else
20288  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20289    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20290    as_echo_n='/usr/ucb/echo -n'
20291  else
20292    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20293    as_echo_n_body='eval
20294      arg=$1;
20295      case $arg in #(
20296      *"$as_nl"*)
20297	expr "X$arg" : "X\\(.*\\)$as_nl";
20298	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20299      esac;
20300      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20301    '
20302    export as_echo_n_body
20303    as_echo_n='sh -c $as_echo_n_body as_echo'
20304  fi
20305  export as_echo_body
20306  as_echo='sh -c $as_echo_body as_echo'
20307fi
20308
20309# The user is always right.
20310if test "${PATH_SEPARATOR+set}" != set; then
20311  PATH_SEPARATOR=:
20312  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20313    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20314      PATH_SEPARATOR=';'
20315  }
20316fi
20317
20318
20319# IFS
20320# We need space, tab and new line, in precisely that order.  Quoting is
20321# there to prevent editors from complaining about space-tab.
20322# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20323# splitting by setting IFS to empty value.)
20324IFS=" ""	$as_nl"
20325
20326# Find who we are.  Look in the path if we contain no directory separator.
20327as_myself=
20328case $0 in #((
20329  *[\\/]* ) as_myself=$0 ;;
20330  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20331for as_dir in $PATH
20332do
20333  IFS=$as_save_IFS
20334  test -z "$as_dir" && as_dir=.
20335    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20336  done
20337IFS=$as_save_IFS
20338
20339     ;;
20340esac
20341# We did not find ourselves, most probably we were run as `sh COMMAND'
20342# in which case we are not to be found in the path.
20343if test "x$as_myself" = x; then
20344  as_myself=$0
20345fi
20346if test ! -f "$as_myself"; then
20347  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20348  exit 1
20349fi
20350
20351# Unset variables that we do not need and which cause bugs (e.g. in
20352# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20353# suppresses any "Segmentation fault" message there.  '((' could
20354# trigger a bug in pdksh 5.2.14.
20355for as_var in BASH_ENV ENV MAIL MAILPATH
20356do eval test x\${$as_var+set} = xset \
20357  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20358done
20359PS1='$ '
20360PS2='> '
20361PS4='+ '
20362
20363# NLS nuisances.
20364LC_ALL=C
20365export LC_ALL
20366LANGUAGE=C
20367export LANGUAGE
20368
20369# CDPATH.
20370(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20371
20372
20373# as_fn_error STATUS ERROR [LINENO LOG_FD]
20374# ----------------------------------------
20375# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20376# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20377# script with STATUS, using 1 if that was 0.
20378as_fn_error ()
20379{
20380  as_status=$1; test $as_status -eq 0 && as_status=1
20381  if test "$4"; then
20382    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20383    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20384  fi
20385  $as_echo "$as_me: error: $2" >&2
20386  as_fn_exit $as_status
20387} # as_fn_error
20388
20389
20390# as_fn_set_status STATUS
20391# -----------------------
20392# Set $? to STATUS, without forking.
20393as_fn_set_status ()
20394{
20395  return $1
20396} # as_fn_set_status
20397
20398# as_fn_exit STATUS
20399# -----------------
20400# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20401as_fn_exit ()
20402{
20403  set +e
20404  as_fn_set_status $1
20405  exit $1
20406} # as_fn_exit
20407
20408# as_fn_unset VAR
20409# ---------------
20410# Portably unset VAR.
20411as_fn_unset ()
20412{
20413  { eval $1=; unset $1;}
20414}
20415as_unset=as_fn_unset
20416# as_fn_append VAR VALUE
20417# ----------------------
20418# Append the text in VALUE to the end of the definition contained in VAR. Take
20419# advantage of any shell optimizations that allow amortized linear growth over
20420# repeated appends, instead of the typical quadratic growth present in naive
20421# implementations.
20422if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20423  eval 'as_fn_append ()
20424  {
20425    eval $1+=\$2
20426  }'
20427else
20428  as_fn_append ()
20429  {
20430    eval $1=\$$1\$2
20431  }
20432fi # as_fn_append
20433
20434# as_fn_arith ARG...
20435# ------------------
20436# Perform arithmetic evaluation on the ARGs, and store the result in the
20437# global $as_val. Take advantage of shells that can avoid forks. The arguments
20438# must be portable across $(()) and expr.
20439if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20440  eval 'as_fn_arith ()
20441  {
20442    as_val=$(( $* ))
20443  }'
20444else
20445  as_fn_arith ()
20446  {
20447    as_val=`expr "$@" || test $? -eq 1`
20448  }
20449fi # as_fn_arith
20450
20451
20452if expr a : '\(a\)' >/dev/null 2>&1 &&
20453   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20454  as_expr=expr
20455else
20456  as_expr=false
20457fi
20458
20459if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20460  as_basename=basename
20461else
20462  as_basename=false
20463fi
20464
20465if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20466  as_dirname=dirname
20467else
20468  as_dirname=false
20469fi
20470
20471as_me=`$as_basename -- "$0" ||
20472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20473	 X"$0" : 'X\(//\)$' \| \
20474	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20475$as_echo X/"$0" |
20476    sed '/^.*\/\([^/][^/]*\)\/*$/{
20477	    s//\1/
20478	    q
20479	  }
20480	  /^X\/\(\/\/\)$/{
20481	    s//\1/
20482	    q
20483	  }
20484	  /^X\/\(\/\).*/{
20485	    s//\1/
20486	    q
20487	  }
20488	  s/.*/./; q'`
20489
20490# Avoid depending upon Character Ranges.
20491as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20493as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20494as_cr_digits='0123456789'
20495as_cr_alnum=$as_cr_Letters$as_cr_digits
20496
20497ECHO_C= ECHO_N= ECHO_T=
20498case `echo -n x` in #(((((
20499-n*)
20500  case `echo 'xy\c'` in
20501  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20502  xy)  ECHO_C='\c';;
20503  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20504       ECHO_T='	';;
20505  esac;;
20506*)
20507  ECHO_N='-n';;
20508esac
20509
20510rm -f conf$$ conf$$.exe conf$$.file
20511if test -d conf$$.dir; then
20512  rm -f conf$$.dir/conf$$.file
20513else
20514  rm -f conf$$.dir
20515  mkdir conf$$.dir 2>/dev/null
20516fi
20517if (echo >conf$$.file) 2>/dev/null; then
20518  if ln -s conf$$.file conf$$ 2>/dev/null; then
20519    as_ln_s='ln -s'
20520    # ... but there are two gotchas:
20521    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20522    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20523    # In both cases, we have to default to `cp -pR'.
20524    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20525      as_ln_s='cp -pR'
20526  elif ln conf$$.file conf$$ 2>/dev/null; then
20527    as_ln_s=ln
20528  else
20529    as_ln_s='cp -pR'
20530  fi
20531else
20532  as_ln_s='cp -pR'
20533fi
20534rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20535rmdir conf$$.dir 2>/dev/null
20536
20537
20538# as_fn_mkdir_p
20539# -------------
20540# Create "$as_dir" as a directory, including parents if necessary.
20541as_fn_mkdir_p ()
20542{
20543
20544  case $as_dir in #(
20545  -*) as_dir=./$as_dir;;
20546  esac
20547  test -d "$as_dir" || eval $as_mkdir_p || {
20548    as_dirs=
20549    while :; do
20550      case $as_dir in #(
20551      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20552      *) as_qdir=$as_dir;;
20553      esac
20554      as_dirs="'$as_qdir' $as_dirs"
20555      as_dir=`$as_dirname -- "$as_dir" ||
20556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20557	 X"$as_dir" : 'X\(//\)[^/]' \| \
20558	 X"$as_dir" : 'X\(//\)$' \| \
20559	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20560$as_echo X"$as_dir" |
20561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20562	    s//\1/
20563	    q
20564	  }
20565	  /^X\(\/\/\)[^/].*/{
20566	    s//\1/
20567	    q
20568	  }
20569	  /^X\(\/\/\)$/{
20570	    s//\1/
20571	    q
20572	  }
20573	  /^X\(\/\).*/{
20574	    s//\1/
20575	    q
20576	  }
20577	  s/.*/./; q'`
20578      test -d "$as_dir" && break
20579    done
20580    test -z "$as_dirs" || eval "mkdir $as_dirs"
20581  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20582
20583
20584} # as_fn_mkdir_p
20585if mkdir -p . 2>/dev/null; then
20586  as_mkdir_p='mkdir -p "$as_dir"'
20587else
20588  test -d ./-p && rmdir ./-p
20589  as_mkdir_p=false
20590fi
20591
20592
20593# as_fn_executable_p FILE
20594# -----------------------
20595# Test if FILE is an executable regular file.
20596as_fn_executable_p ()
20597{
20598  test -f "$1" && test -x "$1"
20599} # as_fn_executable_p
20600as_test_x='test -x'
20601as_executable_p=as_fn_executable_p
20602
20603# Sed expression to map a string onto a valid CPP name.
20604as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20605
20606# Sed expression to map a string onto a valid variable name.
20607as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20608
20609
20610exec 6>&1
20611## ----------------------------------- ##
20612## Main body of $CONFIG_STATUS script. ##
20613## ----------------------------------- ##
20614_ASEOF
20615test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20616
20617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20618# Save the log message, to keep $0 and so on meaningful, and to
20619# report actual input values of CONFIG_FILES etc. instead of their
20620# values after options handling.
20621ac_log="
20622This file was extended by xf86-video-amdgpu $as_me 19.1.0, which was
20623generated by GNU Autoconf 2.69.  Invocation command line was
20624
20625  CONFIG_FILES    = $CONFIG_FILES
20626  CONFIG_HEADERS  = $CONFIG_HEADERS
20627  CONFIG_LINKS    = $CONFIG_LINKS
20628  CONFIG_COMMANDS = $CONFIG_COMMANDS
20629  $ $0 $@
20630
20631on `(hostname || uname -n) 2>/dev/null | sed 1q`
20632"
20633
20634_ACEOF
20635
20636case $ac_config_files in *"
20637"*) set x $ac_config_files; shift; ac_config_files=$*;;
20638esac
20639
20640case $ac_config_headers in *"
20641"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20642esac
20643
20644
20645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20646# Files that config.status was made for.
20647config_files="$ac_config_files"
20648config_headers="$ac_config_headers"
20649config_commands="$ac_config_commands"
20650
20651_ACEOF
20652
20653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20654ac_cs_usage="\
20655\`$as_me' instantiates files and other configuration actions
20656from templates according to the current configuration.  Unless the files
20657and actions are specified as TAGs, all are instantiated by default.
20658
20659Usage: $0 [OPTION]... [TAG]...
20660
20661  -h, --help       print this help, then exit
20662  -V, --version    print version number and configuration settings, then exit
20663      --config     print configuration, then exit
20664  -q, --quiet, --silent
20665                   do not print progress messages
20666  -d, --debug      don't remove temporary files
20667      --recheck    update $as_me by reconfiguring in the same conditions
20668      --file=FILE[:TEMPLATE]
20669                   instantiate the configuration file FILE
20670      --header=FILE[:TEMPLATE]
20671                   instantiate the configuration header FILE
20672
20673Configuration files:
20674$config_files
20675
20676Configuration headers:
20677$config_headers
20678
20679Configuration commands:
20680$config_commands
20681
20682Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/AMDgpu>."
20683
20684_ACEOF
20685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20686ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20687ac_cs_version="\\
20688xf86-video-amdgpu config.status 19.1.0
20689configured by $0, generated by GNU Autoconf 2.69,
20690  with options \\"\$ac_cs_config\\"
20691
20692Copyright (C) 2012 Free Software Foundation, Inc.
20693This config.status script is free software; the Free Software Foundation
20694gives unlimited permission to copy, distribute and modify it."
20695
20696ac_pwd='$ac_pwd'
20697srcdir='$srcdir'
20698INSTALL='$INSTALL'
20699MKDIR_P='$MKDIR_P'
20700AWK='$AWK'
20701test -n "\$AWK" || AWK=awk
20702_ACEOF
20703
20704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20705# The default lists apply if the user does not specify any file.
20706ac_need_defaults=:
20707while test $# != 0
20708do
20709  case $1 in
20710  --*=?*)
20711    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20712    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20713    ac_shift=:
20714    ;;
20715  --*=)
20716    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20717    ac_optarg=
20718    ac_shift=:
20719    ;;
20720  *)
20721    ac_option=$1
20722    ac_optarg=$2
20723    ac_shift=shift
20724    ;;
20725  esac
20726
20727  case $ac_option in
20728  # Handling of the options.
20729  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20730    ac_cs_recheck=: ;;
20731  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20732    $as_echo "$ac_cs_version"; exit ;;
20733  --config | --confi | --conf | --con | --co | --c )
20734    $as_echo "$ac_cs_config"; exit ;;
20735  --debug | --debu | --deb | --de | --d | -d )
20736    debug=: ;;
20737  --file | --fil | --fi | --f )
20738    $ac_shift
20739    case $ac_optarg in
20740    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20741    '') as_fn_error $? "missing file argument" ;;
20742    esac
20743    as_fn_append CONFIG_FILES " '$ac_optarg'"
20744    ac_need_defaults=false;;
20745  --header | --heade | --head | --hea )
20746    $ac_shift
20747    case $ac_optarg in
20748    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20749    esac
20750    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20751    ac_need_defaults=false;;
20752  --he | --h)
20753    # Conflict between --help and --header
20754    as_fn_error $? "ambiguous option: \`$1'
20755Try \`$0 --help' for more information.";;
20756  --help | --hel | -h )
20757    $as_echo "$ac_cs_usage"; exit ;;
20758  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20759  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20760    ac_cs_silent=: ;;
20761
20762  # This is an error.
20763  -*) as_fn_error $? "unrecognized option: \`$1'
20764Try \`$0 --help' for more information." ;;
20765
20766  *) as_fn_append ac_config_targets " $1"
20767     ac_need_defaults=false ;;
20768
20769  esac
20770  shift
20771done
20772
20773ac_configure_extra_args=
20774
20775if $ac_cs_silent; then
20776  exec 6>/dev/null
20777  ac_configure_extra_args="$ac_configure_extra_args --silent"
20778fi
20779
20780_ACEOF
20781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20782if \$ac_cs_recheck; then
20783  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20784  shift
20785  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20786  CONFIG_SHELL='$SHELL'
20787  export CONFIG_SHELL
20788  exec "\$@"
20789fi
20790
20791_ACEOF
20792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20793exec 5>>config.log
20794{
20795  echo
20796  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20797## Running $as_me. ##
20798_ASBOX
20799  $as_echo "$ac_log"
20800} >&5
20801
20802_ACEOF
20803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20804#
20805# INIT-COMMANDS
20806#
20807AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20808
20809
20810# The HP-UX ksh and POSIX shell print the target directory to stdout
20811# if CDPATH is set.
20812(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20813
20814sed_quote_subst='$sed_quote_subst'
20815double_quote_subst='$double_quote_subst'
20816delay_variable_subst='$delay_variable_subst'
20817enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20818macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20819macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20820enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20821pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20822enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20823shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20824SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20825ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20826PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20827host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20828host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20829host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20830build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20831build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20832build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20833SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20834Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20835GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20836EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20837FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20838LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20839NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20840LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20841max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20842ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20843exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20844lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20845lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20846lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20847lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20848lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20849reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20850reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20851OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20852deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20853file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20854file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20855want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20856DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20857sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20858AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20859lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20860AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20861archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20862STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20863RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20864old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20865old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20866old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20867lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20868CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20869CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20870compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20871GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20872lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20873lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20874lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20875lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20876lt_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"`'
20877lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20878nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20879lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20880lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20881objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20882MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20883lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20884lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20885lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20886lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20887lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20888need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20889MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20890DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20891NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20892LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20893OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20894OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20895libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20896shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20897extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20898archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20899enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20900export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20901whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20902compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20903old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20904old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20905archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20906archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20907module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20908module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20909with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20910allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20911no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20912hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20913hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20914hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20915hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20916hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20917hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20918hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20919inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20920link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20921always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20922export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20923exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20924include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20925prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20926postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20927file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20928variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20929need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20930need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20931version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20932runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20933shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20934shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20935libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20936library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20937soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20938install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20939postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20940postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20941finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20942finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20943hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20944sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20945configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20946configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20947hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20948enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20949enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20950enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20951old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20952striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20953
20954LTCC='$LTCC'
20955LTCFLAGS='$LTCFLAGS'
20956compiler='$compiler_DEFAULT'
20957
20958# A function that is used when there is no print builtin or printf.
20959func_fallback_echo ()
20960{
20961  eval 'cat <<_LTECHO_EOF
20962\$1
20963_LTECHO_EOF'
20964}
20965
20966# Quote evaled strings.
20967for var in SHELL \
20968ECHO \
20969PATH_SEPARATOR \
20970SED \
20971GREP \
20972EGREP \
20973FGREP \
20974LD \
20975NM \
20976LN_S \
20977lt_SP2NL \
20978lt_NL2SP \
20979reload_flag \
20980OBJDUMP \
20981deplibs_check_method \
20982file_magic_cmd \
20983file_magic_glob \
20984want_nocaseglob \
20985DLLTOOL \
20986sharedlib_from_linklib_cmd \
20987AR \
20988archiver_list_spec \
20989STRIP \
20990RANLIB \
20991CC \
20992CFLAGS \
20993compiler \
20994lt_cv_sys_global_symbol_pipe \
20995lt_cv_sys_global_symbol_to_cdecl \
20996lt_cv_sys_global_symbol_to_import \
20997lt_cv_sys_global_symbol_to_c_name_address \
20998lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20999lt_cv_nm_interface \
21000nm_file_list_spec \
21001lt_cv_truncate_bin \
21002lt_prog_compiler_no_builtin_flag \
21003lt_prog_compiler_pic \
21004lt_prog_compiler_wl \
21005lt_prog_compiler_static \
21006lt_cv_prog_compiler_c_o \
21007need_locks \
21008MANIFEST_TOOL \
21009DSYMUTIL \
21010NMEDIT \
21011LIPO \
21012OTOOL \
21013OTOOL64 \
21014shrext_cmds \
21015export_dynamic_flag_spec \
21016whole_archive_flag_spec \
21017compiler_needs_object \
21018with_gnu_ld \
21019allow_undefined_flag \
21020no_undefined_flag \
21021hardcode_libdir_flag_spec \
21022hardcode_libdir_separator \
21023exclude_expsyms \
21024include_expsyms \
21025file_list_spec \
21026variables_saved_for_relink \
21027libname_spec \
21028library_names_spec \
21029soname_spec \
21030install_override_mode \
21031finish_eval \
21032old_striplib \
21033striplib; do
21034    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21035    *[\\\\\\\`\\"\\\$]*)
21036      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21037      ;;
21038    *)
21039      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21040      ;;
21041    esac
21042done
21043
21044# Double-quote double-evaled strings.
21045for var in reload_cmds \
21046old_postinstall_cmds \
21047old_postuninstall_cmds \
21048old_archive_cmds \
21049extract_expsyms_cmds \
21050old_archive_from_new_cmds \
21051old_archive_from_expsyms_cmds \
21052archive_cmds \
21053archive_expsym_cmds \
21054module_cmds \
21055module_expsym_cmds \
21056export_symbols_cmds \
21057prelink_cmds \
21058postlink_cmds \
21059postinstall_cmds \
21060postuninstall_cmds \
21061finish_cmds \
21062sys_lib_search_path_spec \
21063configure_time_dlsearch_path \
21064configure_time_lt_sys_library_path; do
21065    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21066    *[\\\\\\\`\\"\\\$]*)
21067      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21068      ;;
21069    *)
21070      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21071      ;;
21072    esac
21073done
21074
21075ac_aux_dir='$ac_aux_dir'
21076
21077# See if we are running on zsh, and set the options that allow our
21078# commands through without removal of \ escapes INIT.
21079if test -n "\${ZSH_VERSION+set}"; then
21080   setopt NO_GLOB_SUBST
21081fi
21082
21083
21084    PACKAGE='$PACKAGE'
21085    VERSION='$VERSION'
21086    RM='$RM'
21087    ofile='$ofile'
21088
21089
21090
21091
21092_ACEOF
21093
21094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21095
21096# Handling of arguments.
21097for ac_config_target in $ac_config_targets
21098do
21099  case $ac_config_target in
21100    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21101    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21102    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21103    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21104    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21105    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21106    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
21107
21108  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21109  esac
21110done
21111
21112
21113# If the user did not use the arguments to specify the items to instantiate,
21114# then the envvar interface is used.  Set only those that are not.
21115# We use the long form for the default assignment because of an extremely
21116# bizarre bug on SunOS 4.1.3.
21117if $ac_need_defaults; then
21118  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21119  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21120  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21121fi
21122
21123# Have a temporary directory for convenience.  Make it in the build tree
21124# simply because there is no reason against having it here, and in addition,
21125# creating and moving files from /tmp can sometimes cause problems.
21126# Hook for its removal unless debugging.
21127# Note that there is a small window in which the directory will not be cleaned:
21128# after its creation but before its name has been assigned to `$tmp'.
21129$debug ||
21130{
21131  tmp= ac_tmp=
21132  trap 'exit_status=$?
21133  : "${ac_tmp:=$tmp}"
21134  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21135' 0
21136  trap 'as_fn_exit 1' 1 2 13 15
21137}
21138# Create a (secure) tmp directory for tmp files.
21139
21140{
21141  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21142  test -d "$tmp"
21143}  ||
21144{
21145  tmp=./conf$$-$RANDOM
21146  (umask 077 && mkdir "$tmp")
21147} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21148ac_tmp=$tmp
21149
21150# Set up the scripts for CONFIG_FILES section.
21151# No need to generate them if there are no CONFIG_FILES.
21152# This happens for instance with `./config.status config.h'.
21153if test -n "$CONFIG_FILES"; then
21154
21155
21156ac_cr=`echo X | tr X '\015'`
21157# On cygwin, bash can eat \r inside `` if the user requested igncr.
21158# But we know of no other shell where ac_cr would be empty at this
21159# point, so we can use a bashism as a fallback.
21160if test "x$ac_cr" = x; then
21161  eval ac_cr=\$\'\\r\'
21162fi
21163ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21164if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21165  ac_cs_awk_cr='\\r'
21166else
21167  ac_cs_awk_cr=$ac_cr
21168fi
21169
21170echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21171_ACEOF
21172
21173
21174{
21175  echo "cat >conf$$subs.awk <<_ACEOF" &&
21176  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21177  echo "_ACEOF"
21178} >conf$$subs.sh ||
21179  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21180ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21181ac_delim='%!_!# '
21182for ac_last_try in false false false false false :; do
21183  . ./conf$$subs.sh ||
21184    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21185
21186  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21187  if test $ac_delim_n = $ac_delim_num; then
21188    break
21189  elif $ac_last_try; then
21190    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21191  else
21192    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21193  fi
21194done
21195rm -f conf$$subs.sh
21196
21197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21198cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21199_ACEOF
21200sed -n '
21201h
21202s/^/S["/; s/!.*/"]=/
21203p
21204g
21205s/^[^!]*!//
21206:repl
21207t repl
21208s/'"$ac_delim"'$//
21209t delim
21210:nl
21211h
21212s/\(.\{148\}\)..*/\1/
21213t more1
21214s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21215p
21216n
21217b repl
21218:more1
21219s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21220p
21221g
21222s/.\{148\}//
21223t nl
21224:delim
21225h
21226s/\(.\{148\}\)..*/\1/
21227t more2
21228s/["\\]/\\&/g; s/^/"/; s/$/"/
21229p
21230b
21231:more2
21232s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21233p
21234g
21235s/.\{148\}//
21236t delim
21237' <conf$$subs.awk | sed '
21238/^[^""]/{
21239  N
21240  s/\n//
21241}
21242' >>$CONFIG_STATUS || ac_write_fail=1
21243rm -f conf$$subs.awk
21244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21245_ACAWK
21246cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21247  for (key in S) S_is_set[key] = 1
21248  FS = ""
21249
21250}
21251{
21252  line = $ 0
21253  nfields = split(line, field, "@")
21254  substed = 0
21255  len = length(field[1])
21256  for (i = 2; i < nfields; i++) {
21257    key = field[i]
21258    keylen = length(key)
21259    if (S_is_set[key]) {
21260      value = S[key]
21261      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21262      len += length(value) + length(field[++i])
21263      substed = 1
21264    } else
21265      len += 1 + keylen
21266  }
21267
21268  print line
21269}
21270
21271_ACAWK
21272_ACEOF
21273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21274if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21275  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21276else
21277  cat
21278fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21279  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21280_ACEOF
21281
21282# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21283# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21284# trailing colons and then remove the whole line if VPATH becomes empty
21285# (actually we leave an empty line to preserve line numbers).
21286if test "x$srcdir" = x.; then
21287  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21288h
21289s///
21290s/^/:/
21291s/[	 ]*$/:/
21292s/:\$(srcdir):/:/g
21293s/:\${srcdir}:/:/g
21294s/:@srcdir@:/:/g
21295s/^:*//
21296s/:*$//
21297x
21298s/\(=[	 ]*\).*/\1/
21299G
21300s/\n//
21301s/^[^=]*=[	 ]*$//
21302}'
21303fi
21304
21305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21306fi # test -n "$CONFIG_FILES"
21307
21308# Set up the scripts for CONFIG_HEADERS section.
21309# No need to generate them if there are no CONFIG_HEADERS.
21310# This happens for instance with `./config.status Makefile'.
21311if test -n "$CONFIG_HEADERS"; then
21312cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21313BEGIN {
21314_ACEOF
21315
21316# Transform confdefs.h into an awk script `defines.awk', embedded as
21317# here-document in config.status, that substitutes the proper values into
21318# config.h.in to produce config.h.
21319
21320# Create a delimiter string that does not exist in confdefs.h, to ease
21321# handling of long lines.
21322ac_delim='%!_!# '
21323for ac_last_try in false false :; do
21324  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21325  if test -z "$ac_tt"; then
21326    break
21327  elif $ac_last_try; then
21328    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21329  else
21330    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21331  fi
21332done
21333
21334# For the awk script, D is an array of macro values keyed by name,
21335# likewise P contains macro parameters if any.  Preserve backslash
21336# newline sequences.
21337
21338ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21339sed -n '
21340s/.\{148\}/&'"$ac_delim"'/g
21341t rset
21342:rset
21343s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21344t def
21345d
21346:def
21347s/\\$//
21348t bsnl
21349s/["\\]/\\&/g
21350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21351D["\1"]=" \3"/p
21352s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21353d
21354:bsnl
21355s/["\\]/\\&/g
21356s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21357D["\1"]=" \3\\\\\\n"\\/p
21358t cont
21359s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21360t cont
21361d
21362:cont
21363n
21364s/.\{148\}/&'"$ac_delim"'/g
21365t clear
21366:clear
21367s/\\$//
21368t bsnlc
21369s/["\\]/\\&/g; s/^/"/; s/$/"/p
21370d
21371:bsnlc
21372s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21373b cont
21374' <confdefs.h | sed '
21375s/'"$ac_delim"'/"\\\
21376"/g' >>$CONFIG_STATUS || ac_write_fail=1
21377
21378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21379  for (key in D) D_is_set[key] = 1
21380  FS = ""
21381}
21382/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21383  line = \$ 0
21384  split(line, arg, " ")
21385  if (arg[1] == "#") {
21386    defundef = arg[2]
21387    mac1 = arg[3]
21388  } else {
21389    defundef = substr(arg[1], 2)
21390    mac1 = arg[2]
21391  }
21392  split(mac1, mac2, "(") #)
21393  macro = mac2[1]
21394  prefix = substr(line, 1, index(line, defundef) - 1)
21395  if (D_is_set[macro]) {
21396    # Preserve the white space surrounding the "#".
21397    print prefix "define", macro P[macro] D[macro]
21398    next
21399  } else {
21400    # Replace #undef with comments.  This is necessary, for example,
21401    # in the case of _POSIX_SOURCE, which is predefined and required
21402    # on some systems where configure will not decide to define it.
21403    if (defundef == "undef") {
21404      print "/*", prefix defundef, macro, "*/"
21405      next
21406    }
21407  }
21408}
21409{ print }
21410_ACAWK
21411_ACEOF
21412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21413  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21414fi # test -n "$CONFIG_HEADERS"
21415
21416
21417eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21418shift
21419for ac_tag
21420do
21421  case $ac_tag in
21422  :[FHLC]) ac_mode=$ac_tag; continue;;
21423  esac
21424  case $ac_mode$ac_tag in
21425  :[FHL]*:*);;
21426  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21427  :[FH]-) ac_tag=-:-;;
21428  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21429  esac
21430  ac_save_IFS=$IFS
21431  IFS=:
21432  set x $ac_tag
21433  IFS=$ac_save_IFS
21434  shift
21435  ac_file=$1
21436  shift
21437
21438  case $ac_mode in
21439  :L) ac_source=$1;;
21440  :[FH])
21441    ac_file_inputs=
21442    for ac_f
21443    do
21444      case $ac_f in
21445      -) ac_f="$ac_tmp/stdin";;
21446      *) # Look for the file first in the build tree, then in the source tree
21447	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21448	 # because $ac_f cannot contain `:'.
21449	 test -f "$ac_f" ||
21450	   case $ac_f in
21451	   [\\/$]*) false;;
21452	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21453	   esac ||
21454	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21455      esac
21456      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21457      as_fn_append ac_file_inputs " '$ac_f'"
21458    done
21459
21460    # Let's still pretend it is `configure' which instantiates (i.e., don't
21461    # use $as_me), people would be surprised to read:
21462    #    /* config.h.  Generated by config.status.  */
21463    configure_input='Generated from '`
21464	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21465	`' by configure.'
21466    if test x"$ac_file" != x-; then
21467      configure_input="$ac_file.  $configure_input"
21468      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21469$as_echo "$as_me: creating $ac_file" >&6;}
21470    fi
21471    # Neutralize special characters interpreted by sed in replacement strings.
21472    case $configure_input in #(
21473    *\&* | *\|* | *\\* )
21474       ac_sed_conf_input=`$as_echo "$configure_input" |
21475       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21476    *) ac_sed_conf_input=$configure_input;;
21477    esac
21478
21479    case $ac_tag in
21480    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21481      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21482    esac
21483    ;;
21484  esac
21485
21486  ac_dir=`$as_dirname -- "$ac_file" ||
21487$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21488	 X"$ac_file" : 'X\(//\)[^/]' \| \
21489	 X"$ac_file" : 'X\(//\)$' \| \
21490	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21491$as_echo X"$ac_file" |
21492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21493	    s//\1/
21494	    q
21495	  }
21496	  /^X\(\/\/\)[^/].*/{
21497	    s//\1/
21498	    q
21499	  }
21500	  /^X\(\/\/\)$/{
21501	    s//\1/
21502	    q
21503	  }
21504	  /^X\(\/\).*/{
21505	    s//\1/
21506	    q
21507	  }
21508	  s/.*/./; q'`
21509  as_dir="$ac_dir"; as_fn_mkdir_p
21510  ac_builddir=.
21511
21512case "$ac_dir" in
21513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21514*)
21515  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21516  # A ".." for each directory in $ac_dir_suffix.
21517  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21518  case $ac_top_builddir_sub in
21519  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21520  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21521  esac ;;
21522esac
21523ac_abs_top_builddir=$ac_pwd
21524ac_abs_builddir=$ac_pwd$ac_dir_suffix
21525# for backward compatibility:
21526ac_top_builddir=$ac_top_build_prefix
21527
21528case $srcdir in
21529  .)  # We are building in place.
21530    ac_srcdir=.
21531    ac_top_srcdir=$ac_top_builddir_sub
21532    ac_abs_top_srcdir=$ac_pwd ;;
21533  [\\/]* | ?:[\\/]* )  # Absolute name.
21534    ac_srcdir=$srcdir$ac_dir_suffix;
21535    ac_top_srcdir=$srcdir
21536    ac_abs_top_srcdir=$srcdir ;;
21537  *) # Relative name.
21538    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21539    ac_top_srcdir=$ac_top_build_prefix$srcdir
21540    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21541esac
21542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21543
21544
21545  case $ac_mode in
21546  :F)
21547  #
21548  # CONFIG_FILE
21549  #
21550
21551  case $INSTALL in
21552  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21553  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21554  esac
21555  ac_MKDIR_P=$MKDIR_P
21556  case $MKDIR_P in
21557  [\\/$]* | ?:[\\/]* ) ;;
21558  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21559  esac
21560_ACEOF
21561
21562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21563# If the template does not know about datarootdir, expand it.
21564# FIXME: This hack should be removed a few years after 2.60.
21565ac_datarootdir_hack=; ac_datarootdir_seen=
21566ac_sed_dataroot='
21567/datarootdir/ {
21568  p
21569  q
21570}
21571/@datadir@/p
21572/@docdir@/p
21573/@infodir@/p
21574/@localedir@/p
21575/@mandir@/p'
21576case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21577*datarootdir*) ac_datarootdir_seen=yes;;
21578*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21579  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21580$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21581_ACEOF
21582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21583  ac_datarootdir_hack='
21584  s&@datadir@&$datadir&g
21585  s&@docdir@&$docdir&g
21586  s&@infodir@&$infodir&g
21587  s&@localedir@&$localedir&g
21588  s&@mandir@&$mandir&g
21589  s&\\\${datarootdir}&$datarootdir&g' ;;
21590esac
21591_ACEOF
21592
21593# Neutralize VPATH when `$srcdir' = `.'.
21594# Shell code in configure.ac might set extrasub.
21595# FIXME: do we really want to maintain this feature?
21596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21597ac_sed_extra="$ac_vpsub
21598$extrasub
21599_ACEOF
21600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21601:t
21602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21603s|@configure_input@|$ac_sed_conf_input|;t t
21604s&@top_builddir@&$ac_top_builddir_sub&;t t
21605s&@top_build_prefix@&$ac_top_build_prefix&;t t
21606s&@srcdir@&$ac_srcdir&;t t
21607s&@abs_srcdir@&$ac_abs_srcdir&;t t
21608s&@top_srcdir@&$ac_top_srcdir&;t t
21609s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21610s&@builddir@&$ac_builddir&;t t
21611s&@abs_builddir@&$ac_abs_builddir&;t t
21612s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21613s&@INSTALL@&$ac_INSTALL&;t t
21614s&@MKDIR_P@&$ac_MKDIR_P&;t t
21615$ac_datarootdir_hack
21616"
21617eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21618  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21619
21620test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21621  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21622  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21623      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21624  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21625which seems to be undefined.  Please make sure it is defined" >&5
21626$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21627which seems to be undefined.  Please make sure it is defined" >&2;}
21628
21629  rm -f "$ac_tmp/stdin"
21630  case $ac_file in
21631  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21632  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21633  esac \
21634  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21635 ;;
21636  :H)
21637  #
21638  # CONFIG_HEADER
21639  #
21640  if test x"$ac_file" != x-; then
21641    {
21642      $as_echo "/* $configure_input  */" \
21643      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21644    } >"$ac_tmp/config.h" \
21645      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21646    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21647      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21648$as_echo "$as_me: $ac_file is unchanged" >&6;}
21649    else
21650      rm -f "$ac_file"
21651      mv "$ac_tmp/config.h" "$ac_file" \
21652	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21653    fi
21654  else
21655    $as_echo "/* $configure_input  */" \
21656      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21657      || as_fn_error $? "could not create -" "$LINENO" 5
21658  fi
21659# Compute "$ac_file"'s index in $config_headers.
21660_am_arg="$ac_file"
21661_am_stamp_count=1
21662for _am_header in $config_headers :; do
21663  case $_am_header in
21664    $_am_arg | $_am_arg:* )
21665      break ;;
21666    * )
21667      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21668  esac
21669done
21670echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21671$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21672	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21673	 X"$_am_arg" : 'X\(//\)$' \| \
21674	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21675$as_echo X"$_am_arg" |
21676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21677	    s//\1/
21678	    q
21679	  }
21680	  /^X\(\/\/\)[^/].*/{
21681	    s//\1/
21682	    q
21683	  }
21684	  /^X\(\/\/\)$/{
21685	    s//\1/
21686	    q
21687	  }
21688	  /^X\(\/\).*/{
21689	    s//\1/
21690	    q
21691	  }
21692	  s/.*/./; q'`/stamp-h$_am_stamp_count
21693 ;;
21694
21695  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21696$as_echo "$as_me: executing $ac_file commands" >&6;}
21697 ;;
21698  esac
21699
21700
21701  case $ac_file$ac_mode in
21702    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21703  # Older Autoconf quotes --file arguments for eval, but not when files
21704  # are listed without --file.  Let's play safe and only enable the eval
21705  # if we detect the quoting.
21706  # TODO: see whether this extra hack can be removed once we start
21707  # requiring Autoconf 2.70 or later.
21708  case $CONFIG_FILES in #(
21709  *\'*) :
21710    eval set x "$CONFIG_FILES" ;; #(
21711  *) :
21712    set x $CONFIG_FILES ;; #(
21713  *) :
21714     ;;
21715esac
21716  shift
21717  # Used to flag and report bootstrapping failures.
21718  am_rc=0
21719  for am_mf
21720  do
21721    # Strip MF so we end up with the name of the file.
21722    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21723    # Check whether this is an Automake generated Makefile which includes
21724    # dependency-tracking related rules and includes.
21725    # Grep'ing the whole file directly is not great: AIX grep has a line
21726    # limit of 2048, but all sed's we know have understand at least 4000.
21727    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21728      || continue
21729    am_dirpart=`$as_dirname -- "$am_mf" ||
21730$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21731	 X"$am_mf" : 'X\(//\)[^/]' \| \
21732	 X"$am_mf" : 'X\(//\)$' \| \
21733	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21734$as_echo X"$am_mf" |
21735    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21736	    s//\1/
21737	    q
21738	  }
21739	  /^X\(\/\/\)[^/].*/{
21740	    s//\1/
21741	    q
21742	  }
21743	  /^X\(\/\/\)$/{
21744	    s//\1/
21745	    q
21746	  }
21747	  /^X\(\/\).*/{
21748	    s//\1/
21749	    q
21750	  }
21751	  s/.*/./; q'`
21752    am_filepart=`$as_basename -- "$am_mf" ||
21753$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21754	 X"$am_mf" : 'X\(//\)$' \| \
21755	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21756$as_echo X/"$am_mf" |
21757    sed '/^.*\/\([^/][^/]*\)\/*$/{
21758	    s//\1/
21759	    q
21760	  }
21761	  /^X\/\(\/\/\)$/{
21762	    s//\1/
21763	    q
21764	  }
21765	  /^X\/\(\/\).*/{
21766	    s//\1/
21767	    q
21768	  }
21769	  s/.*/./; q'`
21770    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21771      && sed -e '/# am--include-marker/d' "$am_filepart" \
21772        | $MAKE -f - am--depfiles" >&5
21773   (cd "$am_dirpart" \
21774      && sed -e '/# am--include-marker/d' "$am_filepart" \
21775        | $MAKE -f - am--depfiles) >&5 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); } || am_rc=$?
21779  done
21780  if test $am_rc -ne 0; then
21781    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21783as_fn_error $? "Something went wrong bootstrapping makefile fragments
21784    for automatic dependency tracking.  Try re-running configure with the
21785    '--disable-dependency-tracking' option to at least be able to build
21786    the package (albeit without support for automatic dependency tracking).
21787See \`config.log' for more details" "$LINENO" 5; }
21788  fi
21789  { am_dirpart=; unset am_dirpart;}
21790  { am_filepart=; unset am_filepart;}
21791  { am_mf=; unset am_mf;}
21792  { am_rc=; unset am_rc;}
21793  rm -f conftest-deps.mk
21794}
21795 ;;
21796    "libtool":C)
21797
21798    # See if we are running on zsh, and set the options that allow our
21799    # commands through without removal of \ escapes.
21800    if test -n "${ZSH_VERSION+set}"; then
21801      setopt NO_GLOB_SUBST
21802    fi
21803
21804    cfgfile=${ofile}T
21805    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21806    $RM "$cfgfile"
21807
21808    cat <<_LT_EOF >> "$cfgfile"
21809#! $SHELL
21810# Generated automatically by $as_me ($PACKAGE) $VERSION
21811# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21812# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21813
21814# Provide generalized library-building support services.
21815# Written by Gordon Matzigkeit, 1996
21816
21817# Copyright (C) 2014 Free Software Foundation, Inc.
21818# This is free software; see the source for copying conditions.  There is NO
21819# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21820
21821# GNU Libtool is free software; you can redistribute it and/or modify
21822# it under the terms of the GNU General Public License as published by
21823# the Free Software Foundation; either version 2 of of the License, or
21824# (at your option) any later version.
21825#
21826# As a special exception to the GNU General Public License, if you
21827# distribute this file as part of a program or library that is built
21828# using GNU Libtool, you may include this file under the  same
21829# distribution terms that you use for the rest of that program.
21830#
21831# GNU Libtool is distributed in the hope that it will be useful, but
21832# WITHOUT ANY WARRANTY; without even the implied warranty of
21833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21834# GNU General Public License for more details.
21835#
21836# You should have received a copy of the GNU General Public License
21837# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21838
21839
21840# The names of the tagged configurations supported by this script.
21841available_tags=''
21842
21843# Configured defaults for sys_lib_dlsearch_path munging.
21844: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21845
21846# ### BEGIN LIBTOOL CONFIG
21847
21848# Whether or not to build static libraries.
21849build_old_libs=$enable_static
21850
21851# Which release of libtool.m4 was used?
21852macro_version=$macro_version
21853macro_revision=$macro_revision
21854
21855# Whether or not to build shared libraries.
21856build_libtool_libs=$enable_shared
21857
21858# What type of objects to build.
21859pic_mode=$pic_mode
21860
21861# Whether or not to optimize for fast installation.
21862fast_install=$enable_fast_install
21863
21864# Shared archive member basename,for filename based shared library versioning on AIX.
21865shared_archive_member_spec=$shared_archive_member_spec
21866
21867# Shell to use when invoking shell scripts.
21868SHELL=$lt_SHELL
21869
21870# An echo program that protects backslashes.
21871ECHO=$lt_ECHO
21872
21873# The PATH separator for the build system.
21874PATH_SEPARATOR=$lt_PATH_SEPARATOR
21875
21876# The host system.
21877host_alias=$host_alias
21878host=$host
21879host_os=$host_os
21880
21881# The build system.
21882build_alias=$build_alias
21883build=$build
21884build_os=$build_os
21885
21886# A sed program that does not truncate output.
21887SED=$lt_SED
21888
21889# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21890Xsed="\$SED -e 1s/^X//"
21891
21892# A grep program that handles long lines.
21893GREP=$lt_GREP
21894
21895# An ERE matcher.
21896EGREP=$lt_EGREP
21897
21898# A literal string matcher.
21899FGREP=$lt_FGREP
21900
21901# A BSD- or MS-compatible name lister.
21902NM=$lt_NM
21903
21904# Whether we need soft or hard links.
21905LN_S=$lt_LN_S
21906
21907# What is the maximum length of a command?
21908max_cmd_len=$max_cmd_len
21909
21910# Object file suffix (normally "o").
21911objext=$ac_objext
21912
21913# Executable file suffix (normally "").
21914exeext=$exeext
21915
21916# whether the shell understands "unset".
21917lt_unset=$lt_unset
21918
21919# turn spaces into newlines.
21920SP2NL=$lt_lt_SP2NL
21921
21922# turn newlines into spaces.
21923NL2SP=$lt_lt_NL2SP
21924
21925# convert \$build file names to \$host format.
21926to_host_file_cmd=$lt_cv_to_host_file_cmd
21927
21928# convert \$build files to toolchain format.
21929to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21930
21931# An object symbol dumper.
21932OBJDUMP=$lt_OBJDUMP
21933
21934# Method to check whether dependent libraries are shared objects.
21935deplibs_check_method=$lt_deplibs_check_method
21936
21937# Command to use when deplibs_check_method = "file_magic".
21938file_magic_cmd=$lt_file_magic_cmd
21939
21940# How to find potential files when deplibs_check_method = "file_magic".
21941file_magic_glob=$lt_file_magic_glob
21942
21943# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21944want_nocaseglob=$lt_want_nocaseglob
21945
21946# DLL creation program.
21947DLLTOOL=$lt_DLLTOOL
21948
21949# Command to associate shared and link libraries.
21950sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21951
21952# The archiver.
21953AR=$lt_AR
21954
21955# Flags to create an archive (by configure).
21956lt_ar_flags=$lt_ar_flags
21957
21958# Flags to create an archive.
21959AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21960
21961# How to feed a file listing to the archiver.
21962archiver_list_spec=$lt_archiver_list_spec
21963
21964# A symbol stripping program.
21965STRIP=$lt_STRIP
21966
21967# Commands used to install an old-style archive.
21968RANLIB=$lt_RANLIB
21969old_postinstall_cmds=$lt_old_postinstall_cmds
21970old_postuninstall_cmds=$lt_old_postuninstall_cmds
21971
21972# Whether to use a lock for old archive extraction.
21973lock_old_archive_extraction=$lock_old_archive_extraction
21974
21975# A C compiler.
21976LTCC=$lt_CC
21977
21978# LTCC compiler flags.
21979LTCFLAGS=$lt_CFLAGS
21980
21981# Take the output of nm and produce a listing of raw symbols and C names.
21982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21983
21984# Transform the output of nm in a proper C declaration.
21985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21986
21987# Transform the output of nm into a list of symbols to manually relocate.
21988global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21989
21990# Transform the output of nm in a C name address pair.
21991global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21992
21993# Transform the output of nm in a C name address pair when lib prefix is needed.
21994global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21995
21996# The name lister interface.
21997nm_interface=$lt_lt_cv_nm_interface
21998
21999# Specify filename containing input files for \$NM.
22000nm_file_list_spec=$lt_nm_file_list_spec
22001
22002# The root where to search for dependent libraries,and where our libraries should be installed.
22003lt_sysroot=$lt_sysroot
22004
22005# Command to truncate a binary pipe.
22006lt_truncate_bin=$lt_lt_cv_truncate_bin
22007
22008# The name of the directory that contains temporary libtool files.
22009objdir=$objdir
22010
22011# Used to examine libraries when file_magic_cmd begins with "file".
22012MAGIC_CMD=$MAGIC_CMD
22013
22014# Must we lock files when doing compilation?
22015need_locks=$lt_need_locks
22016
22017# Manifest tool.
22018MANIFEST_TOOL=$lt_MANIFEST_TOOL
22019
22020# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22021DSYMUTIL=$lt_DSYMUTIL
22022
22023# Tool to change global to local symbols on Mac OS X.
22024NMEDIT=$lt_NMEDIT
22025
22026# Tool to manipulate fat objects and archives on Mac OS X.
22027LIPO=$lt_LIPO
22028
22029# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22030OTOOL=$lt_OTOOL
22031
22032# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22033OTOOL64=$lt_OTOOL64
22034
22035# Old archive suffix (normally "a").
22036libext=$libext
22037
22038# Shared library suffix (normally ".so").
22039shrext_cmds=$lt_shrext_cmds
22040
22041# The commands to extract the exported symbol list from a shared archive.
22042extract_expsyms_cmds=$lt_extract_expsyms_cmds
22043
22044# Variables whose values should be saved in libtool wrapper scripts and
22045# restored at link time.
22046variables_saved_for_relink=$lt_variables_saved_for_relink
22047
22048# Do we need the "lib" prefix for modules?
22049need_lib_prefix=$need_lib_prefix
22050
22051# Do we need a version for libraries?
22052need_version=$need_version
22053
22054# Library versioning type.
22055version_type=$version_type
22056
22057# Shared library runtime path variable.
22058runpath_var=$runpath_var
22059
22060# Shared library path variable.
22061shlibpath_var=$shlibpath_var
22062
22063# Is shlibpath searched before the hard-coded library search path?
22064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22065
22066# Format of library name prefix.
22067libname_spec=$lt_libname_spec
22068
22069# List of archive names.  First name is the real one, the rest are links.
22070# The last name is the one that the linker finds with -lNAME
22071library_names_spec=$lt_library_names_spec
22072
22073# The coded name of the library, if different from the real name.
22074soname_spec=$lt_soname_spec
22075
22076# Permission mode override for installation of shared libraries.
22077install_override_mode=$lt_install_override_mode
22078
22079# Command to use after installation of a shared archive.
22080postinstall_cmds=$lt_postinstall_cmds
22081
22082# Command to use after uninstallation of a shared archive.
22083postuninstall_cmds=$lt_postuninstall_cmds
22084
22085# Commands used to finish a libtool library installation in a directory.
22086finish_cmds=$lt_finish_cmds
22087
22088# As "finish_cmds", except a single script fragment to be evaled but
22089# not shown.
22090finish_eval=$lt_finish_eval
22091
22092# Whether we should hardcode library paths into libraries.
22093hardcode_into_libs=$hardcode_into_libs
22094
22095# Compile-time system search path for libraries.
22096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22097
22098# Detected run-time system search path for libraries.
22099sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22100
22101# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22102configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22103
22104# Whether dlopen is supported.
22105dlopen_support=$enable_dlopen
22106
22107# Whether dlopen of programs is supported.
22108dlopen_self=$enable_dlopen_self
22109
22110# Whether dlopen of statically linked programs is supported.
22111dlopen_self_static=$enable_dlopen_self_static
22112
22113# Commands to strip libraries.
22114old_striplib=$lt_old_striplib
22115striplib=$lt_striplib
22116
22117
22118# The linker used to build libraries.
22119LD=$lt_LD
22120
22121# How to create reloadable object files.
22122reload_flag=$lt_reload_flag
22123reload_cmds=$lt_reload_cmds
22124
22125# Commands used to build an old-style archive.
22126old_archive_cmds=$lt_old_archive_cmds
22127
22128# A language specific compiler.
22129CC=$lt_compiler
22130
22131# Is the compiler the GNU compiler?
22132with_gcc=$GCC
22133
22134# Compiler flag to turn off builtin functions.
22135no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22136
22137# Additional compiler flags for building library objects.
22138pic_flag=$lt_lt_prog_compiler_pic
22139
22140# How to pass a linker flag through the compiler.
22141wl=$lt_lt_prog_compiler_wl
22142
22143# Compiler flag to prevent dynamic linking.
22144link_static_flag=$lt_lt_prog_compiler_static
22145
22146# Does compiler simultaneously support -c and -o options?
22147compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22148
22149# Whether or not to add -lc for building shared libraries.
22150build_libtool_need_lc=$archive_cmds_need_lc
22151
22152# Whether or not to disallow shared libs when runtime libs are static.
22153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22154
22155# Compiler flag to allow reflexive dlopens.
22156export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22157
22158# Compiler flag to generate shared objects directly from archives.
22159whole_archive_flag_spec=$lt_whole_archive_flag_spec
22160
22161# Whether the compiler copes with passing no objects directly.
22162compiler_needs_object=$lt_compiler_needs_object
22163
22164# Create an old-style archive from a shared archive.
22165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22166
22167# Create a temporary old-style archive to link instead of a shared archive.
22168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22169
22170# Commands used to build a shared archive.
22171archive_cmds=$lt_archive_cmds
22172archive_expsym_cmds=$lt_archive_expsym_cmds
22173
22174# Commands used to build a loadable module if different from building
22175# a shared archive.
22176module_cmds=$lt_module_cmds
22177module_expsym_cmds=$lt_module_expsym_cmds
22178
22179# Whether we are building with GNU ld or not.
22180with_gnu_ld=$lt_with_gnu_ld
22181
22182# Flag that allows shared libraries with undefined symbols to be built.
22183allow_undefined_flag=$lt_allow_undefined_flag
22184
22185# Flag that enforces no undefined symbols.
22186no_undefined_flag=$lt_no_undefined_flag
22187
22188# Flag to hardcode \$libdir into a binary during linking.
22189# This must work even if \$libdir does not exist
22190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22191
22192# Whether we need a single "-rpath" flag with a separated argument.
22193hardcode_libdir_separator=$lt_hardcode_libdir_separator
22194
22195# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22196# DIR into the resulting binary.
22197hardcode_direct=$hardcode_direct
22198
22199# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22200# DIR into the resulting binary and the resulting library dependency is
22201# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22202# library is relocated.
22203hardcode_direct_absolute=$hardcode_direct_absolute
22204
22205# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22206# into the resulting binary.
22207hardcode_minus_L=$hardcode_minus_L
22208
22209# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22210# into the resulting binary.
22211hardcode_shlibpath_var=$hardcode_shlibpath_var
22212
22213# Set to "yes" if building a shared library automatically hardcodes DIR
22214# into the library and all subsequent libraries and executables linked
22215# against it.
22216hardcode_automatic=$hardcode_automatic
22217
22218# Set to yes if linker adds runtime paths of dependent libraries
22219# to runtime path list.
22220inherit_rpath=$inherit_rpath
22221
22222# Whether libtool must link a program against all its dependency libraries.
22223link_all_deplibs=$link_all_deplibs
22224
22225# Set to "yes" if exported symbols are required.
22226always_export_symbols=$always_export_symbols
22227
22228# The commands to list exported symbols.
22229export_symbols_cmds=$lt_export_symbols_cmds
22230
22231# Symbols that should not be listed in the preloaded symbols.
22232exclude_expsyms=$lt_exclude_expsyms
22233
22234# Symbols that must always be exported.
22235include_expsyms=$lt_include_expsyms
22236
22237# Commands necessary for linking programs (against libraries) with templates.
22238prelink_cmds=$lt_prelink_cmds
22239
22240# Commands necessary for finishing linking programs.
22241postlink_cmds=$lt_postlink_cmds
22242
22243# Specify filename containing input files.
22244file_list_spec=$lt_file_list_spec
22245
22246# How to hardcode a shared library path into an executable.
22247hardcode_action=$hardcode_action
22248
22249# ### END LIBTOOL CONFIG
22250
22251_LT_EOF
22252
22253    cat <<'_LT_EOF' >> "$cfgfile"
22254
22255# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22256
22257# func_munge_path_list VARIABLE PATH
22258# -----------------------------------
22259# VARIABLE is name of variable containing _space_ separated list of
22260# directories to be munged by the contents of PATH, which is string
22261# having a format:
22262# "DIR[:DIR]:"
22263#       string "DIR[ DIR]" will be prepended to VARIABLE
22264# ":DIR[:DIR]"
22265#       string "DIR[ DIR]" will be appended to VARIABLE
22266# "DIRP[:DIRP]::[DIRA:]DIRA"
22267#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22268#       "DIRA[ DIRA]" will be appended to VARIABLE
22269# "DIR[:DIR]"
22270#       VARIABLE will be replaced by "DIR[ DIR]"
22271func_munge_path_list ()
22272{
22273    case x$2 in
22274    x)
22275        ;;
22276    *:)
22277        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22278        ;;
22279    x:*)
22280        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22281        ;;
22282    *::*)
22283        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22284        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22285        ;;
22286    *)
22287        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22288        ;;
22289    esac
22290}
22291
22292
22293# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22294func_cc_basename ()
22295{
22296    for cc_temp in $*""; do
22297      case $cc_temp in
22298        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22299        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22300        \-*) ;;
22301        *) break;;
22302      esac
22303    done
22304    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22305}
22306
22307
22308# ### END FUNCTIONS SHARED WITH CONFIGURE
22309
22310_LT_EOF
22311
22312  case $host_os in
22313  aix3*)
22314    cat <<\_LT_EOF >> "$cfgfile"
22315# AIX sometimes has problems with the GCC collect2 program.  For some
22316# reason, if we set the COLLECT_NAMES environment variable, the problems
22317# vanish in a puff of smoke.
22318if test set != "${COLLECT_NAMES+set}"; then
22319  COLLECT_NAMES=
22320  export COLLECT_NAMES
22321fi
22322_LT_EOF
22323    ;;
22324  esac
22325
22326
22327ltmain=$ac_aux_dir/ltmain.sh
22328
22329
22330  # We use sed instead of cat because bash on DJGPP gets confused if
22331  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22332  # text mode, it properly converts lines to CR/LF.  This bash problem
22333  # is reportedly fixed, but why not run on old versions too?
22334  sed '$q' "$ltmain" >> "$cfgfile" \
22335     || (rm -f "$cfgfile"; exit 1)
22336
22337   mv -f "$cfgfile" "$ofile" ||
22338    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22339  chmod +x "$ofile"
22340
22341 ;;
22342
22343  esac
22344done # for ac_tag
22345
22346
22347as_fn_exit 0
22348_ACEOF
22349ac_clean_files=$ac_clean_files_save
22350
22351test $ac_write_fail = 0 ||
22352  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22353
22354
22355# configure is writing to config.log, and then calls config.status.
22356# config.status does its own redirection, appending to config.log.
22357# Unfortunately, on DOS this fails, as config.log is still kept open
22358# by configure, so config.status won't be able to write to it; its
22359# output is simply discarded.  So we exec the FD to /dev/null,
22360# effectively closing config.log, so it can be properly (re)opened and
22361# appended to by config.status.  When coming back to configure, we
22362# need to make the FD available again.
22363if test "$no_create" != yes; then
22364  ac_cs_success=:
22365  ac_config_status_args=
22366  test "$silent" = yes &&
22367    ac_config_status_args="$ac_config_status_args --quiet"
22368  exec 5>/dev/null
22369  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22370  exec 5>>config.log
22371  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22372  # would make configure fail if this is the last instruction.
22373  $ac_cs_success || as_fn_exit 1
22374fi
22375if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22376  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22377$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22378fi
22379
22380
22381echo ""
22382echo "        prefix:              $prefix"
22383echo "        exec_prefix:         $exec_prefix"
22384echo "        libdir:              $libdir"
22385echo "        includedir:          $includedir"
22386echo "        configdir:           $configdir"
22387
22388echo ""
22389echo "        CFLAGS:              $CFLAGS"
22390echo "        CXXFLAGS:            $CXXFLAGS"
22391echo "        Macros:              $DEFINES"
22392
22393echo ""
22394echo "        Run '${MAKE-make}' to build xf86-video-amdgpu"
22395echo ""
22396