1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xcb-util-renderutil 0.3.9.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
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
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || 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=xcb&component=Utils
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='xcb-util-renderutil'
593PACKAGE_TARNAME='xcb-util-renderutil'
594PACKAGE_VERSION='0.3.9'
595PACKAGE_STRING='xcb-util-renderutil 0.3.9'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils'
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
640XCB_RENDER_LIBS
641XCB_RENDER_CFLAGS
642HAVE_DOXYGEN_FALSE
643HAVE_DOXYGEN_TRUE
644HAVE_DOT_FALSE
645HAVE_DOT_TRUE
646HAVE_DOT
647DOT
648DOXYGEN
649ENABLE_DEVEL_DOCS_FALSE
650ENABLE_DEVEL_DOCS_TRUE
651MAN_SUBSTS
652XORG_MAN_PAGE
653ADMIN_MAN_DIR
654DRIVER_MAN_DIR
655MISC_MAN_DIR
656FILE_MAN_DIR
657LIB_MAN_DIR
658APP_MAN_DIR
659ADMIN_MAN_SUFFIX
660DRIVER_MAN_SUFFIX
661MISC_MAN_SUFFIX
662FILE_MAN_SUFFIX
663LIB_MAN_SUFFIX
664APP_MAN_SUFFIX
665INSTALL_CMD
666CHANGELOG_CMD
667STRICT_CFLAGS
668CWARNFLAGS
669BASE_CFLAGS
670XCB_LIBS
671XCB_CFLAGS
672PKG_CONFIG_LIBDIR
673PKG_CONFIG_PATH
674PKG_CONFIG
675pkgconfigdir
676xcbincludedir
677CPP
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687DLLTOOL
688OBJDUMP
689LN_S
690NM
691ac_ct_DUMPBIN
692DUMPBIN
693LD
694FGREP
695EGREP
696GREP
697SED
698am__fastdepCC_FALSE
699am__fastdepCC_TRUE
700CCDEPMODE
701am__nodep
702AMDEPBACKSLASH
703AMDEP_FALSE
704AMDEP_TRUE
705am__quote
706am__include
707DEPDIR
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723LIBTOOL
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_silent_rules
796enable_maintainer_mode
797enable_shared
798enable_static
799with_pic
800enable_fast_install
801enable_dependency_tracking
802with_gnu_ld
803with_sysroot
804enable_libtool_lock
805enable_selective_werror
806enable_strict_compilation
807enable_devel_docs
808with_doxygen
809'
810      ac_precious_vars='build_alias
811host_alias
812target_alias
813CC
814CFLAGS
815LDFLAGS
816LIBS
817CPPFLAGS
818CPP
819PKG_CONFIG
820PKG_CONFIG_PATH
821PKG_CONFIG_LIBDIR
822XCB_CFLAGS
823XCB_LIBS
824DOXYGEN
825DOT
826XCB_RENDER_CFLAGS
827XCB_RENDER_LIBS'
828
829
830# Initialize some variables set by options.
831ac_init_help=
832ac_init_version=false
833ac_unrecognized_opts=
834ac_unrecognized_sep=
835# The variables have the same names as the options, with
836# dashes changed to underlines.
837cache_file=/dev/null
838exec_prefix=NONE
839no_create=
840no_recursion=
841prefix=NONE
842program_prefix=NONE
843program_suffix=NONE
844program_transform_name=s,x,x,
845silent=
846site=
847srcdir=
848verbose=
849x_includes=NONE
850x_libraries=NONE
851
852# Installation directory options.
853# These are left unexpanded so users can "make install exec_prefix=/foo"
854# and all the variables that are supposed to be based on exec_prefix
855# by default will actually change.
856# Use braces instead of parens because sh, perl, etc. also accept them.
857# (The list follows the same order as the GNU Coding Standards.)
858bindir='${exec_prefix}/bin'
859sbindir='${exec_prefix}/sbin'
860libexecdir='${exec_prefix}/libexec'
861datarootdir='${prefix}/share'
862datadir='${datarootdir}'
863sysconfdir='${prefix}/etc'
864sharedstatedir='${prefix}/com'
865localstatedir='${prefix}/var'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882  # If the previous option needs an argument, assign it.
883  if test -n "$ac_prev"; then
884    eval $ac_prev=\$ac_option
885    ac_prev=
886    continue
887  fi
888
889  case $ac_option in
890  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891  *=)   ac_optarg= ;;
892  *)    ac_optarg=yes ;;
893  esac
894
895  # Accept the important Cygnus configure options, so we can diagnose typos.
896
897  case $ac_dashdash$ac_option in
898  --)
899    ac_dashdash=yes ;;
900
901  -bindir | --bindir | --bindi | --bind | --bin | --bi)
902    ac_prev=bindir ;;
903  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904    bindir=$ac_optarg ;;
905
906  -build | --build | --buil | --bui | --bu)
907    ac_prev=build_alias ;;
908  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909    build_alias=$ac_optarg ;;
910
911  -cache-file | --cache-file | --cache-fil | --cache-fi \
912  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913    ac_prev=cache_file ;;
914  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916    cache_file=$ac_optarg ;;
917
918  --config-cache | -C)
919    cache_file=config.cache ;;
920
921  -datadir | --datadir | --datadi | --datad)
922    ac_prev=datadir ;;
923  -datadir=* | --datadir=* | --datadi=* | --datad=*)
924    datadir=$ac_optarg ;;
925
926  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927  | --dataroo | --dataro | --datar)
928    ac_prev=datarootdir ;;
929  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931    datarootdir=$ac_optarg ;;
932
933  -disable-* | --disable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=no ;;
948
949  -docdir | --docdir | --docdi | --doc | --do)
950    ac_prev=docdir ;;
951  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952    docdir=$ac_optarg ;;
953
954  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955    ac_prev=dvidir ;;
956  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957    dvidir=$ac_optarg ;;
958
959  -enable-* | --enable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=\$ac_optarg ;;
974
975  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977  | --exec | --exe | --ex)
978    ac_prev=exec_prefix ;;
979  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981  | --exec=* | --exe=* | --ex=*)
982    exec_prefix=$ac_optarg ;;
983
984  -gas | --gas | --ga | --g)
985    # Obsolete; use --with-gas.
986    with_gas=yes ;;
987
988  -help | --help | --hel | --he | -h)
989    ac_init_help=long ;;
990  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991    ac_init_help=recursive ;;
992  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993    ac_init_help=short ;;
994
995  -host | --host | --hos | --ho)
996    ac_prev=host_alias ;;
997  -host=* | --host=* | --hos=* | --ho=*)
998    host_alias=$ac_optarg ;;
999
1000  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001    ac_prev=htmldir ;;
1002  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003  | --ht=*)
1004    htmldir=$ac_optarg ;;
1005
1006  -includedir | --includedir | --includedi | --included | --include \
1007  | --includ | --inclu | --incl | --inc)
1008    ac_prev=includedir ;;
1009  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010  | --includ=* | --inclu=* | --incl=* | --inc=*)
1011    includedir=$ac_optarg ;;
1012
1013  -infodir | --infodir | --infodi | --infod | --info | --inf)
1014    ac_prev=infodir ;;
1015  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016    infodir=$ac_optarg ;;
1017
1018  -libdir | --libdir | --libdi | --libd)
1019    ac_prev=libdir ;;
1020  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021    libdir=$ac_optarg ;;
1022
1023  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024  | --libexe | --libex | --libe)
1025    ac_prev=libexecdir ;;
1026  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027  | --libexe=* | --libex=* | --libe=*)
1028    libexecdir=$ac_optarg ;;
1029
1030  -localedir | --localedir | --localedi | --localed | --locale)
1031    ac_prev=localedir ;;
1032  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033    localedir=$ac_optarg ;;
1034
1035  -localstatedir | --localstatedir | --localstatedi | --localstated \
1036  | --localstate | --localstat | --localsta | --localst | --locals)
1037    ac_prev=localstatedir ;;
1038  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040    localstatedir=$ac_optarg ;;
1041
1042  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043    ac_prev=mandir ;;
1044  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045    mandir=$ac_optarg ;;
1046
1047  -nfp | --nfp | --nf)
1048    # Obsolete; use --without-fp.
1049    with_fp=no ;;
1050
1051  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052  | --no-cr | --no-c | -n)
1053    no_create=yes ;;
1054
1055  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057    no_recursion=yes ;;
1058
1059  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061  | --oldin | --oldi | --old | --ol | --o)
1062    ac_prev=oldincludedir ;;
1063  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066    oldincludedir=$ac_optarg ;;
1067
1068  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069    ac_prev=prefix ;;
1070  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071    prefix=$ac_optarg ;;
1072
1073  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074  | --program-pre | --program-pr | --program-p)
1075    ac_prev=program_prefix ;;
1076  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078    program_prefix=$ac_optarg ;;
1079
1080  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081  | --program-suf | --program-su | --program-s)
1082    ac_prev=program_suffix ;;
1083  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085    program_suffix=$ac_optarg ;;
1086
1087  -program-transform-name | --program-transform-name \
1088  | --program-transform-nam | --program-transform-na \
1089  | --program-transform-n | --program-transform- \
1090  | --program-transform | --program-transfor \
1091  | --program-transfo | --program-transf \
1092  | --program-trans | --program-tran \
1093  | --progr-tra | --program-tr | --program-t)
1094    ac_prev=program_transform_name ;;
1095  -program-transform-name=* | --program-transform-name=* \
1096  | --program-transform-nam=* | --program-transform-na=* \
1097  | --program-transform-n=* | --program-transform-=* \
1098  | --program-transform=* | --program-transfor=* \
1099  | --program-transfo=* | --program-transf=* \
1100  | --program-trans=* | --program-tran=* \
1101  | --progr-tra=* | --program-tr=* | --program-t=*)
1102    program_transform_name=$ac_optarg ;;
1103
1104  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105    ac_prev=pdfdir ;;
1106  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107    pdfdir=$ac_optarg ;;
1108
1109  -psdir | --psdir | --psdi | --psd | --ps)
1110    ac_prev=psdir ;;
1111  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112    psdir=$ac_optarg ;;
1113
1114  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115  | -silent | --silent | --silen | --sile | --sil)
1116    silent=yes ;;
1117
1118  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119    ac_prev=sbindir ;;
1120  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121  | --sbi=* | --sb=*)
1122    sbindir=$ac_optarg ;;
1123
1124  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126  | --sharedst | --shareds | --shared | --share | --shar \
1127  | --sha | --sh)
1128    ac_prev=sharedstatedir ;;
1129  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132  | --sha=* | --sh=*)
1133    sharedstatedir=$ac_optarg ;;
1134
1135  -site | --site | --sit)
1136    ac_prev=site ;;
1137  -site=* | --site=* | --sit=*)
1138    site=$ac_optarg ;;
1139
1140  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141    ac_prev=srcdir ;;
1142  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143    srcdir=$ac_optarg ;;
1144
1145  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146  | --syscon | --sysco | --sysc | --sys | --sy)
1147    ac_prev=sysconfdir ;;
1148  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150    sysconfdir=$ac_optarg ;;
1151
1152  -target | --target | --targe | --targ | --tar | --ta | --t)
1153    ac_prev=target_alias ;;
1154  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155    target_alias=$ac_optarg ;;
1156
1157  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158    verbose=yes ;;
1159
1160  -version | --version | --versio | --versi | --vers | -V)
1161    ac_init_version=: ;;
1162
1163  -with-* | --with-*)
1164    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165    # Reject names that are not valid shell variable names.
1166    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167      as_fn_error $? "invalid package name: $ac_useropt"
1168    ac_useropt_orig=$ac_useropt
1169    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170    case $ac_user_opts in
1171      *"
1172"with_$ac_useropt"
1173"*) ;;
1174      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175	 ac_unrecognized_sep=', ';;
1176    esac
1177    eval with_$ac_useropt=\$ac_optarg ;;
1178
1179  -without-* | --without-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: $ac_useropt"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=no ;;
1194
1195  --x)
1196    # Obsolete; use --with-x.
1197    with_x=yes ;;
1198
1199  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200  | --x-incl | --x-inc | --x-in | --x-i)
1201    ac_prev=x_includes ;;
1202  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204    x_includes=$ac_optarg ;;
1205
1206  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208    ac_prev=x_libraries ;;
1209  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211    x_libraries=$ac_optarg ;;
1212
1213  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information"
1215    ;;
1216
1217  *=*)
1218    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219    # Reject names that are not valid shell variable names.
1220    case $ac_envvar in #(
1221      '' | [0-9]* | *[!_$as_cr_alnum]* )
1222      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223    esac
1224    eval $ac_envvar=\$ac_optarg
1225    export $ac_envvar ;;
1226
1227  *)
1228    # FIXME: should be removed in autoconf 3.0.
1229    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233    ;;
1234
1235  esac
1236done
1237
1238if test -n "$ac_prev"; then
1239  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240  as_fn_error $? "missing argument to $ac_option"
1241fi
1242
1243if test -n "$ac_unrecognized_opts"; then
1244  case $enable_option_checking in
1245    no) ;;
1246    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248  esac
1249fi
1250
1251# Check all directory arguments for consistency.
1252for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253		datadir sysconfdir sharedstatedir localstatedir includedir \
1254		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255		libdir localedir mandir
1256do
1257  eval ac_val=\$$ac_var
1258  # Remove trailing slashes.
1259  case $ac_val in
1260    */ )
1261      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262      eval $ac_var=\$ac_val;;
1263  esac
1264  # Be sure to have absolute directory names.
1265  case $ac_val in
1266    [\\/$]* | ?:[\\/]* )  continue;;
1267    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268  esac
1269  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270done
1271
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
1278
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281  if test "x$build_alias" = x; then
1282    cross_compiling=maybe
1283  elif test "x$build_alias" != "x$host_alias"; then
1284    cross_compiling=yes
1285  fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
1292
1293
1294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297  as_fn_error $? "working directory cannot be determined"
1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299  as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304  ac_srcdir_defaulted=yes
1305  # Try the directory containing this script, then the parent directory.
1306  ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308	 X"$as_myself" : 'X\(//\)[^/]' \| \
1309	 X"$as_myself" : 'X\(//\)$' \| \
1310	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
1312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313	    s//\1/
1314	    q
1315	  }
1316	  /^X\(\/\/\)[^/].*/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)$/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\).*/{
1325	    s//\1/
1326	    q
1327	  }
1328	  s/.*/./; q'`
1329  srcdir=$ac_confdir
1330  if test ! -r "$srcdir/$ac_unique_file"; then
1331    srcdir=..
1332  fi
1333else
1334  ac_srcdir_defaulted=no
1335fi
1336if test ! -r "$srcdir/$ac_unique_file"; then
1337  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339fi
1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
1342	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343	pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346  srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356  eval ac_env_${ac_var}_value=\$${ac_var}
1357  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
1360
1361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365  # Omit some internal or obsolete options to make the list less imposing.
1366  # This message is too long to be a string in the A/UX 3.1 sh.
1367  cat <<_ACEOF
1368\`configure' configures xcb-util-renderutil 0.3.9 to adapt to many kinds of systems.
1369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE.  See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378  -h, --help              display this help and exit
1379      --help=short        display options specific to this package
1380      --help=recursive    display the short help of all the included packages
1381  -V, --version           display version information and exit
1382  -q, --quiet, --silent   do not print \`checking ...' messages
1383      --cache-file=FILE   cache test results in FILE [disabled]
1384  -C, --config-cache      alias for \`--cache-file=config.cache'
1385  -n, --no-create         do not create output files
1386      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1387
1388Installation directories:
1389  --prefix=PREFIX         install architecture-independent files in PREFIX
1390                          [$ac_default_prefix]
1391  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1392                          [PREFIX]
1393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
1402  --bindir=DIR            user executables [EPREFIX/bin]
1403  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1404  --libexecdir=DIR        program executables [EPREFIX/libexec]
1405  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1406  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1407  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1408  --libdir=DIR            object code libraries [EPREFIX/lib]
1409  --includedir=DIR        C header files [PREFIX/include]
1410  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413  --infodir=DIR           info documentation [DATAROOTDIR/info]
1414  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415  --mandir=DIR            man documentation [DATAROOTDIR/man]
1416  --docdir=DIR            documentation root
1417                          [DATAROOTDIR/doc/xcb-util-renderutil]
1418  --htmldir=DIR           html documentation [DOCDIR]
1419  --dvidir=DIR            dvi documentation [DOCDIR]
1420  --pdfdir=DIR            pdf documentation [DOCDIR]
1421  --psdir=DIR             ps documentation [DOCDIR]
1422_ACEOF
1423
1424  cat <<\_ACEOF
1425
1426Program names:
1427  --program-prefix=PREFIX            prepend PREFIX to installed program names
1428  --program-suffix=SUFFIX            append SUFFIX to installed program names
1429  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431System types:
1432  --build=BUILD     configure for building on BUILD [guessed]
1433  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434_ACEOF
1435fi
1436
1437if test -n "$ac_init_help"; then
1438  case $ac_init_help in
1439     short | recursive ) echo "Configuration of xcb-util-renderutil 0.3.9:";;
1440   esac
1441  cat <<\_ACEOF
1442
1443Optional Features:
1444  --disable-option-checking  ignore unrecognized --enable/--with options
1445  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448  --disable-silent-rules  verbose build output (undo: "make V=0")
1449  --enable-maintainer-mode
1450                          enable make rules and dependencies not useful (and
1451                          sometimes confusing) to the casual installer
1452  --enable-shared[=PKGS]  build shared libraries [default=yes]
1453  --enable-static[=PKGS]  build static libraries [default=yes]
1454  --enable-fast-install[=PKGS]
1455                          optimize for fast installation [default=yes]
1456  --enable-dependency-tracking
1457                          do not reject slow dependency extractors
1458  --disable-dependency-tracking
1459                          speeds up one-time build
1460  --disable-libtool-lock  avoid locking (might break parallel builds)
1461  --disable-selective-werror
1462                          Turn off selective compiler errors. (default:
1463                          enabled)
1464  --enable-strict-compilation
1465                          Enable all warnings from compiler and make them
1466                          errors (default: disabled)
1467  --enable-devel-docs     Enable building the developer documentation
1468                          (default: yes)
1469
1470Optional Packages:
1471  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1472  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1473  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1474                          both]
1475  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1476  --with-sysroot=DIR Search for dependent libraries within DIR
1477                        (or the compiler's sysroot if not specified).
1478  --with-doxygen          Use doxygen to regenerate documentation (default:
1479                          auto)
1480
1481Some influential environment variables:
1482  CC          C compiler command
1483  CFLAGS      C compiler flags
1484  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1485              nonstandard directory <lib dir>
1486  LIBS        libraries to pass to the linker, e.g. -l<library>
1487  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488              you have headers in a nonstandard directory <include dir>
1489  CPP         C preprocessor
1490  PKG_CONFIG  path to pkg-config utility
1491  PKG_CONFIG_PATH
1492              directories to add to pkg-config's search path
1493  PKG_CONFIG_LIBDIR
1494              path overriding pkg-config's built-in search path
1495  XCB_CFLAGS  C compiler flags for XCB, overriding pkg-config
1496  XCB_LIBS    linker flags for XCB, overriding pkg-config
1497  DOXYGEN     Path to doxygen command
1498  DOT         Path to the dot graphics utility
1499  XCB_RENDER_CFLAGS
1500              C compiler flags for XCB_RENDER, overriding pkg-config
1501  XCB_RENDER_LIBS
1502              linker flags for XCB_RENDER, overriding pkg-config
1503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
1507Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>.
1508_ACEOF
1509ac_status=$?
1510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513  # If there are subdirs, report their specific --help.
1514  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515    test -d "$ac_dir" ||
1516      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517      continue
1518    ac_builddir=.
1519
1520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
1523  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524  # A ".." for each directory in $ac_dir_suffix.
1525  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526  case $ac_top_builddir_sub in
1527  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529  esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
1535
1536case $srcdir in
1537  .)  # We are building in place.
1538    ac_srcdir=.
1539    ac_top_srcdir=$ac_top_builddir_sub
1540    ac_abs_top_srcdir=$ac_pwd ;;
1541  [\\/]* | ?:[\\/]* )  # Absolute name.
1542    ac_srcdir=$srcdir$ac_dir_suffix;
1543    ac_top_srcdir=$srcdir
1544    ac_abs_top_srcdir=$srcdir ;;
1545  *) # Relative name.
1546    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547    ac_top_srcdir=$ac_top_build_prefix$srcdir
1548    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549esac
1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552    cd "$ac_dir" || { ac_status=$?; continue; }
1553    # Check for guested configure.
1554    if test -f "$ac_srcdir/configure.gnu"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557    elif test -f "$ac_srcdir/configure"; then
1558      echo &&
1559      $SHELL "$ac_srcdir/configure" --help=recursive
1560    else
1561      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562    fi || ac_status=$?
1563    cd "$ac_pwd" || { ac_status=$?; break; }
1564  done
1565fi
1566
1567test -n "$ac_init_help" && exit $ac_status
1568if $ac_init_version; then
1569  cat <<\_ACEOF
1570xcb-util-renderutil configure 0.3.9
1571generated by GNU Autoconf 2.69
1572
1573Copyright (C) 2012 Free Software Foundation, Inc.
1574This configure script is free software; the Free Software Foundation
1575gives unlimited permission to copy, distribute and modify it.
1576_ACEOF
1577  exit
1578fi
1579
1580## ------------------------ ##
1581## Autoconf initialization. ##
1582## ------------------------ ##
1583
1584# ac_fn_c_try_compile LINENO
1585# --------------------------
1586# Try to compile conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_compile ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  rm -f conftest.$ac_objext
1591  if { { ac_try="$ac_compile"
1592case "(($ac_try" in
1593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594  *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598  (eval "$ac_compile") 2>conftest.err
1599  ac_status=$?
1600  if test -s conftest.err; then
1601    grep -v '^ *+' conftest.err >conftest.er1
1602    cat conftest.er1 >&5
1603    mv -f conftest.er1 conftest.err
1604  fi
1605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606  test $ac_status = 0; } && {
1607	 test -z "$ac_c_werror_flag" ||
1608	 test ! -s conftest.err
1609       } && test -s conftest.$ac_objext; then :
1610  ac_retval=0
1611else
1612  $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615	ac_retval=1
1616fi
1617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618  as_fn_set_status $ac_retval
1619
1620} # ac_fn_c_try_compile
1621
1622# ac_fn_c_try_link LINENO
1623# -----------------------
1624# Try to link conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_link ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  rm -f conftest.$ac_objext conftest$ac_exeext
1629  if { { ac_try="$ac_link"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_link") 2>conftest.err
1637  ac_status=$?
1638  if test -s conftest.err; then
1639    grep -v '^ *+' conftest.err >conftest.er1
1640    cat conftest.er1 >&5
1641    mv -f conftest.er1 conftest.err
1642  fi
1643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; } && {
1645	 test -z "$ac_c_werror_flag" ||
1646	 test ! -s conftest.err
1647       } && test -s conftest$ac_exeext && {
1648	 test "$cross_compiling" = yes ||
1649	 test -x conftest$ac_exeext
1650       }; then :
1651  ac_retval=0
1652else
1653  $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656	ac_retval=1
1657fi
1658  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660  # interfere with the next link command; also delete a directory that is
1661  # left behind by Apple's compiler.  We do this before executing the actions.
1662  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664  as_fn_set_status $ac_retval
1665
1666} # ac_fn_c_try_link
1667
1668# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669# -------------------------------------------------------
1670# Tests whether HEADER exists and can be compiled using the include files in
1671# INCLUDES, setting the cache variable VAR accordingly.
1672ac_fn_c_check_header_compile ()
1673{
1674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676$as_echo_n "checking for $2... " >&6; }
1677if eval \${$3+:} false; then :
1678  $as_echo_n "(cached) " >&6
1679else
1680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h.  */
1682$4
1683#include <$2>
1684_ACEOF
1685if ac_fn_c_try_compile "$LINENO"; then :
1686  eval "$3=yes"
1687else
1688  eval "$3=no"
1689fi
1690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691fi
1692eval ac_res=\$$3
1693	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694$as_echo "$ac_res" >&6; }
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697} # ac_fn_c_check_header_compile
1698
1699# ac_fn_c_try_cpp LINENO
1700# ----------------------
1701# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702ac_fn_c_try_cpp ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  if { { ac_try="$ac_cpp conftest.$ac_ext"
1706case "(($ac_try" in
1707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708  *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713  ac_status=$?
1714  if test -s conftest.err; then
1715    grep -v '^ *+' conftest.err >conftest.er1
1716    cat conftest.er1 >&5
1717    mv -f conftest.er1 conftest.err
1718  fi
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; } > conftest.i && {
1721	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722	 test ! -s conftest.err
1723       }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729    ac_retval=1
1730fi
1731  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732  as_fn_set_status $ac_retval
1733
1734} # ac_fn_c_try_cpp
1735
1736# ac_fn_c_try_run LINENO
1737# ----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739# that executables *can* be run.
1740ac_fn_c_try_run ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750  (eval "$ac_link") 2>&5
1751  ac_status=$?
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754  { { case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_try") 2>&5
1761  ac_status=$?
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; }; }; then :
1764  ac_retval=0
1765else
1766  $as_echo "$as_me: program exited with status $ac_status" >&5
1767       $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770       ac_retval=$ac_status
1771fi
1772  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774  as_fn_set_status $ac_retval
1775
1776} # ac_fn_c_try_run
1777
1778# ac_fn_c_check_func LINENO FUNC VAR
1779# ----------------------------------
1780# Tests whether FUNC exists, setting the cache variable VAR accordingly
1781ac_fn_c_check_func ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1793#define $2 innocuous_$2
1794
1795/* System header to define __stub macros and hopefully few prototypes,
1796    which can conflict with char $2 (); below.
1797    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798    <limits.h> exists even on freestanding compilers.  */
1799
1800#ifdef __STDC__
1801# include <limits.h>
1802#else
1803# include <assert.h>
1804#endif
1805
1806#undef $2
1807
1808/* Override any GCC internal prototype to avoid an error.
1809   Use char because int might match the return type of a GCC
1810   builtin and then its argument prototype would still apply.  */
1811#ifdef __cplusplus
1812extern "C"
1813#endif
1814char $2 ();
1815/* The GNU C library defines this for functions which it implements
1816    to always fail with ENOSYS.  Some functions are actually named
1817    something starting with __ and the normal name is an alias.  */
1818#if defined __stub_$2 || defined __stub___$2
1819choke me
1820#endif
1821
1822int
1823main ()
1824{
1825return $2 ();
1826  ;
1827  return 0;
1828}
1829_ACEOF
1830if ac_fn_c_try_link "$LINENO"; then :
1831  eval "$3=yes"
1832else
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext \
1836    conftest$ac_exeext conftest.$ac_ext
1837fi
1838eval ac_res=\$$3
1839	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840$as_echo "$ac_res" >&6; }
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843} # ac_fn_c_check_func
1844
1845# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1846# ---------------------------------------------
1847# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1848# accordingly.
1849ac_fn_c_check_decl ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  as_decl_name=`echo $2|sed 's/ *(.*//'`
1853  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1855$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858else
1859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h.  */
1861$4
1862int
1863main ()
1864{
1865#ifndef $as_decl_name
1866#ifdef __cplusplus
1867  (void) $as_decl_use;
1868#else
1869  (void) $as_decl_name;
1870#endif
1871#endif
1872
1873  ;
1874  return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_compile "$LINENO"; then :
1878  eval "$3=yes"
1879else
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_decl
1890cat >config.log <<_ACEOF
1891This file contains any messages produced by compilers while
1892running configure, to aid debugging if configure makes a mistake.
1893
1894It was created by xcb-util-renderutil $as_me 0.3.9, which was
1895generated by GNU Autoconf 2.69.  Invocation command line was
1896
1897  $ $0 $@
1898
1899_ACEOF
1900exec 5>>config.log
1901{
1902cat <<_ASUNAME
1903## --------- ##
1904## Platform. ##
1905## --------- ##
1906
1907hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1915
1916/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1917/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1918/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1920/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1921/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1922/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1923
1924_ASUNAME
1925
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929  IFS=$as_save_IFS
1930  test -z "$as_dir" && as_dir=.
1931    $as_echo "PATH: $as_dir"
1932  done
1933IFS=$as_save_IFS
1934
1935} >&5
1936
1937cat >&5 <<_ACEOF
1938
1939
1940## ----------- ##
1941## Core tests. ##
1942## ----------- ##
1943
1944_ACEOF
1945
1946
1947# Keep a trace of the command line.
1948# Strip out --no-create and --no-recursion so they do not pile up.
1949# Strip out --silent because we don't want to record it for future runs.
1950# Also quote any args containing shell meta-characters.
1951# Make two passes to allow for proper duplicate-argument suppression.
1952ac_configure_args=
1953ac_configure_args0=
1954ac_configure_args1=
1955ac_must_keep_next=false
1956for ac_pass in 1 2
1957do
1958  for ac_arg
1959  do
1960    case $ac_arg in
1961    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963    | -silent | --silent | --silen | --sile | --sil)
1964      continue ;;
1965    *\'*)
1966      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967    esac
1968    case $ac_pass in
1969    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970    2)
1971      as_fn_append ac_configure_args1 " '$ac_arg'"
1972      if test $ac_must_keep_next = true; then
1973	ac_must_keep_next=false # Got value, back to normal.
1974      else
1975	case $ac_arg in
1976	  *=* | --config-cache | -C | -disable-* | --disable-* \
1977	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979	  | -with-* | --with-* | -without-* | --without-* | --x)
1980	    case "$ac_configure_args0 " in
1981	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982	    esac
1983	    ;;
1984	  -* ) ac_must_keep_next=true ;;
1985	esac
1986      fi
1987      as_fn_append ac_configure_args " '$ac_arg'"
1988      ;;
1989    esac
1990  done
1991done
1992{ ac_configure_args0=; unset ac_configure_args0;}
1993{ ac_configure_args1=; unset ac_configure_args1;}
1994
1995# When interrupted or exit'd, cleanup temporary files, and complete
1996# config.log.  We remove comments because anyway the quotes in there
1997# would cause problems or look ugly.
1998# WARNING: Use '\'' to represent an apostrophe within the trap.
1999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000trap 'exit_status=$?
2001  # Save into config.log some information that might help in debugging.
2002  {
2003    echo
2004
2005    $as_echo "## ---------------- ##
2006## Cache variables. ##
2007## ---------------- ##"
2008    echo
2009    # The following way of writing the cache mishandles newlines in values,
2010(
2011  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2012    eval ac_val=\$$ac_var
2013    case $ac_val in #(
2014    *${as_nl}*)
2015      case $ac_var in #(
2016      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018      esac
2019      case $ac_var in #(
2020      _ | IFS | as_nl) ;; #(
2021      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2022      *) { eval $ac_var=; unset $ac_var;} ;;
2023      esac ;;
2024    esac
2025  done
2026  (set) 2>&1 |
2027    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2028    *${as_nl}ac_space=\ *)
2029      sed -n \
2030	"s/'\''/'\''\\\\'\'''\''/g;
2031	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032      ;; #(
2033    *)
2034      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035      ;;
2036    esac |
2037    sort
2038)
2039    echo
2040
2041    $as_echo "## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##"
2044    echo
2045    for ac_var in $ac_subst_vars
2046    do
2047      eval ac_val=\$$ac_var
2048      case $ac_val in
2049      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050      esac
2051      $as_echo "$ac_var='\''$ac_val'\''"
2052    done | sort
2053    echo
2054
2055    if test -n "$ac_subst_files"; then
2056      $as_echo "## ------------------- ##
2057## File substitutions. ##
2058## ------------------- ##"
2059      echo
2060      for ac_var in $ac_subst_files
2061      do
2062	eval ac_val=\$$ac_var
2063	case $ac_val in
2064	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065	esac
2066	$as_echo "$ac_var='\''$ac_val'\''"
2067      done | sort
2068      echo
2069    fi
2070
2071    if test -s confdefs.h; then
2072      $as_echo "## ----------- ##
2073## confdefs.h. ##
2074## ----------- ##"
2075      echo
2076      cat confdefs.h
2077      echo
2078    fi
2079    test "$ac_signal" != 0 &&
2080      $as_echo "$as_me: caught signal $ac_signal"
2081    $as_echo "$as_me: exit $exit_status"
2082  } >&5
2083  rm -f core *.core core.conftest.* &&
2084    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085    exit $exit_status
2086' 0
2087for ac_signal in 1 2 13 15; do
2088  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089done
2090ac_signal=0
2091
2092# confdefs.h avoids OS command line length limits that DEFS can exceed.
2093rm -f -r conftest* confdefs.h
2094
2095$as_echo "/* confdefs.h */" > confdefs.h
2096
2097# Predefined preprocessor variables.
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_NAME "$PACKAGE_NAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_VERSION "$PACKAGE_VERSION"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_STRING "$PACKAGE_STRING"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117_ACEOF
2118
2119cat >>confdefs.h <<_ACEOF
2120#define PACKAGE_URL "$PACKAGE_URL"
2121_ACEOF
2122
2123
2124# Let the site file select an alternate cache file if it wants to.
2125# Prefer an explicitly selected file to automatically selected ones.
2126ac_site_file1=NONE
2127ac_site_file2=NONE
2128if test -n "$CONFIG_SITE"; then
2129  # We do not want a PATH search for config.site.
2130  case $CONFIG_SITE in #((
2131    -*)  ac_site_file1=./$CONFIG_SITE;;
2132    */*) ac_site_file1=$CONFIG_SITE;;
2133    *)   ac_site_file1=./$CONFIG_SITE;;
2134  esac
2135elif test "x$prefix" != xNONE; then
2136  ac_site_file1=$prefix/share/config.site
2137  ac_site_file2=$prefix/etc/config.site
2138else
2139  ac_site_file1=$ac_default_prefix/share/config.site
2140  ac_site_file2=$ac_default_prefix/etc/config.site
2141fi
2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144  test "x$ac_site_file" = xNONE && continue
2145  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2146    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148    sed 's/^/| /' "$ac_site_file" >&5
2149    . "$ac_site_file" \
2150      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152as_fn_error $? "failed to load site script $ac_site_file
2153See \`config.log' for more details" "$LINENO" 5; }
2154  fi
2155done
2156
2157if test -r "$cache_file"; then
2158  # Some versions of bash will fail to source /dev/null (special files
2159  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2160  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162$as_echo "$as_me: loading cache $cache_file" >&6;}
2163    case $cache_file in
2164      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165      *)                      . "./$cache_file";;
2166    esac
2167  fi
2168else
2169  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170$as_echo "$as_me: creating cache $cache_file" >&6;}
2171  >$cache_file
2172fi
2173
2174# Check that the precious variables saved in the cache have kept the same
2175# value.
2176ac_cache_corrupted=false
2177for ac_var in $ac_precious_vars; do
2178  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179  eval ac_new_set=\$ac_env_${ac_var}_set
2180  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181  eval ac_new_val=\$ac_env_${ac_var}_value
2182  case $ac_old_set,$ac_new_set in
2183    set,)
2184      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186      ac_cache_corrupted=: ;;
2187    ,set)
2188      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190      ac_cache_corrupted=: ;;
2191    ,);;
2192    *)
2193      if test "x$ac_old_val" != "x$ac_new_val"; then
2194	# differences in whitespace do not lead to failure.
2195	ac_old_val_w=`echo x $ac_old_val`
2196	ac_new_val_w=`echo x $ac_new_val`
2197	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200	  ac_cache_corrupted=:
2201	else
2202	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204	  eval $ac_var=\$ac_old_val
2205	fi
2206	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2207$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2208	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2209$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2210      fi;;
2211  esac
2212  # Pass precious variables to config.status.
2213  if test "$ac_new_set" = set; then
2214    case $ac_new_val in
2215    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216    *) ac_arg=$ac_var=$ac_new_val ;;
2217    esac
2218    case " $ac_configure_args " in
2219      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2220      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221    esac
2222  fi
2223done
2224if $ac_cache_corrupted; then
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230fi
2231## -------------------- ##
2232## Main body of script. ##
2233## -------------------- ##
2234
2235ac_ext=c
2236ac_cpp='$CPP $CPPFLAGS'
2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242
2243ac_config_headers="$ac_config_headers config.h"
2244
2245
2246am__api_version='1.14'
2247
2248ac_aux_dir=
2249for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2250  if test -f "$ac_dir/install-sh"; then
2251    ac_aux_dir=$ac_dir
2252    ac_install_sh="$ac_aux_dir/install-sh -c"
2253    break
2254  elif test -f "$ac_dir/install.sh"; then
2255    ac_aux_dir=$ac_dir
2256    ac_install_sh="$ac_aux_dir/install.sh -c"
2257    break
2258  elif test -f "$ac_dir/shtool"; then
2259    ac_aux_dir=$ac_dir
2260    ac_install_sh="$ac_aux_dir/shtool install -c"
2261    break
2262  fi
2263done
2264if test -z "$ac_aux_dir"; then
2265  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2266fi
2267
2268# These three variables are undocumented and unsupported,
2269# and are intended to be withdrawn in a future Autoconf release.
2270# They can cause serious problems if a builder's source tree is in a directory
2271# whose full name contains unusual characters.
2272ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2273ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2274ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2275
2276
2277# Find a good install program.  We prefer a C program (faster),
2278# so one script is as good as another.  But avoid the broken or
2279# incompatible versions:
2280# SysV /etc/install, /usr/sbin/install
2281# SunOS /usr/etc/install
2282# IRIX /sbin/install
2283# AIX /bin/install
2284# AmigaOS /C/install, which installs bootblocks on floppy discs
2285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2286# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2288# OS/2's system install, which has a completely different semantic
2289# ./install, which can be erroneously created by make from ./install.sh.
2290# Reject install programs that cannot install multiple files.
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2292$as_echo_n "checking for a BSD-compatible install... " >&6; }
2293if test -z "$INSTALL"; then
2294if ${ac_cv_path_install+:} false; then :
2295  $as_echo_n "(cached) " >&6
2296else
2297  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300  IFS=$as_save_IFS
2301  test -z "$as_dir" && as_dir=.
2302    # Account for people who put trailing slashes in PATH elements.
2303case $as_dir/ in #((
2304  ./ | .// | /[cC]/* | \
2305  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2306  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2307  /usr/ucb/* ) ;;
2308  *)
2309    # OSF1 and SCO ODT 3.0 have their own names for install.
2310    # Don't use installbsd from OSF since it installs stuff as root
2311    # by default.
2312    for ac_prog in ginstall scoinst install; do
2313      for ac_exec_ext in '' $ac_executable_extensions; do
2314	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2315	  if test $ac_prog = install &&
2316	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317	    # AIX install.  It has an incompatible calling convention.
2318	    :
2319	  elif test $ac_prog = install &&
2320	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321	    # program-specific install script used by HP pwplus--don't use.
2322	    :
2323	  else
2324	    rm -rf conftest.one conftest.two conftest.dir
2325	    echo one > conftest.one
2326	    echo two > conftest.two
2327	    mkdir conftest.dir
2328	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2329	      test -s conftest.one && test -s conftest.two &&
2330	      test -s conftest.dir/conftest.one &&
2331	      test -s conftest.dir/conftest.two
2332	    then
2333	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2334	      break 3
2335	    fi
2336	  fi
2337	fi
2338      done
2339    done
2340    ;;
2341esac
2342
2343  done
2344IFS=$as_save_IFS
2345
2346rm -rf conftest.one conftest.two conftest.dir
2347
2348fi
2349  if test "${ac_cv_path_install+set}" = set; then
2350    INSTALL=$ac_cv_path_install
2351  else
2352    # As a last resort, use the slow shell script.  Don't cache a
2353    # value for INSTALL within a source directory, because that will
2354    # break other packages using the cache if that directory is
2355    # removed, or if the value is a relative name.
2356    INSTALL=$ac_install_sh
2357  fi
2358fi
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2360$as_echo "$INSTALL" >&6; }
2361
2362# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2363# It thinks the first close brace ends the variable substitution.
2364test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2365
2366test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2367
2368test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2369
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2371$as_echo_n "checking whether build environment is sane... " >&6; }
2372# Reject unsafe characters in $srcdir or the absolute working directory
2373# name.  Accept space and tab only in the latter.
2374am_lf='
2375'
2376case `pwd` in
2377  *[\\\"\#\$\&\'\`$am_lf]*)
2378    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2379esac
2380case $srcdir in
2381  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2382    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2383esac
2384
2385# Do 'set' in a subshell so we don't clobber the current shell's
2386# arguments.  Must try -L first in case configure is actually a
2387# symlink; some systems play weird games with the mod time of symlinks
2388# (eg FreeBSD returns the mod time of the symlink's containing
2389# directory).
2390if (
2391   am_has_slept=no
2392   for am_try in 1 2; do
2393     echo "timestamp, slept: $am_has_slept" > conftest.file
2394     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2395     if test "$*" = "X"; then
2396	# -L didn't work.
2397	set X `ls -t "$srcdir/configure" conftest.file`
2398     fi
2399     if test "$*" != "X $srcdir/configure conftest.file" \
2400	&& test "$*" != "X conftest.file $srcdir/configure"; then
2401
2402	# If neither matched, then we have a broken ls.  This can happen
2403	# if, for instance, CONFIG_SHELL is bash and it inherits a
2404	# broken ls alias from the environment.  This has actually
2405	# happened.  Such a system could not be considered "sane".
2406	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2407  alias in your environment" "$LINENO" 5
2408     fi
2409     if test "$2" = conftest.file || test $am_try -eq 2; then
2410       break
2411     fi
2412     # Just in case.
2413     sleep 1
2414     am_has_slept=yes
2415   done
2416   test "$2" = conftest.file
2417   )
2418then
2419   # Ok.
2420   :
2421else
2422   as_fn_error $? "newly created file is older than distributed files!
2423Check your system clock" "$LINENO" 5
2424fi
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2426$as_echo "yes" >&6; }
2427# If we didn't sleep, we still need to ensure time stamps of config.status and
2428# generated files are strictly newer.
2429am_sleep_pid=
2430if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2431  ( sleep 1 ) &
2432  am_sleep_pid=$!
2433fi
2434
2435rm -f conftest.file
2436
2437test "$program_prefix" != NONE &&
2438  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439# Use a double $ so make ignores it.
2440test "$program_suffix" != NONE &&
2441  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442# Double any \ or $.
2443# By default was `s,x,x', remove it if useless.
2444ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446
2447# expand $ac_aux_dir to an absolute path
2448am_aux_dir=`cd $ac_aux_dir && pwd`
2449
2450if test x"${MISSING+set}" != xset; then
2451  case $am_aux_dir in
2452  *\ * | *\	*)
2453    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2454  *)
2455    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2456  esac
2457fi
2458# Use eval to expand $SHELL
2459if eval "$MISSING --is-lightweight"; then
2460  am_missing_run="$MISSING "
2461else
2462  am_missing_run=
2463  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2464$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2465fi
2466
2467if test x"${install_sh}" != xset; then
2468  case $am_aux_dir in
2469  *\ * | *\	*)
2470    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2471  *)
2472    install_sh="\${SHELL} $am_aux_dir/install-sh"
2473  esac
2474fi
2475
2476# Installed binaries are usually stripped using 'strip' when the user
2477# run "make install-strip".  However 'strip' might not be the right
2478# tool to use in cross-compilation environments, therefore Automake
2479# will honor the 'STRIP' environment variable to overrule this program.
2480if test "$cross_compiling" != no; then
2481  if test -n "$ac_tool_prefix"; then
2482  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483set dummy ${ac_tool_prefix}strip; ac_word=$2
2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485$as_echo_n "checking for $ac_word... " >&6; }
2486if ${ac_cv_prog_STRIP+:} false; then :
2487  $as_echo_n "(cached) " >&6
2488else
2489  if test -n "$STRIP"; then
2490  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497    for ac_exec_ext in '' $ac_executable_extensions; do
2498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504  done
2505IFS=$as_save_IFS
2506
2507fi
2508fi
2509STRIP=$ac_cv_prog_STRIP
2510if test -n "$STRIP"; then
2511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512$as_echo "$STRIP" >&6; }
2513else
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515$as_echo "no" >&6; }
2516fi
2517
2518
2519fi
2520if test -z "$ac_cv_prog_STRIP"; then
2521  ac_ct_STRIP=$STRIP
2522  # Extract the first word of "strip", so it can be a program name with args.
2523set dummy strip; ac_word=$2
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527  $as_echo_n "(cached) " >&6
2528else
2529  if test -n "$ac_ct_STRIP"; then
2530  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537    for ac_exec_ext in '' $ac_executable_extensions; do
2538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539    ac_cv_prog_ac_ct_STRIP="strip"
2540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541    break 2
2542  fi
2543done
2544  done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550if test -n "$ac_ct_STRIP"; then
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552$as_echo "$ac_ct_STRIP" >&6; }
2553else
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555$as_echo "no" >&6; }
2556fi
2557
2558  if test "x$ac_ct_STRIP" = x; then
2559    STRIP=":"
2560  else
2561    case $cross_compiling:$ac_tool_warned in
2562yes:)
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565ac_tool_warned=yes ;;
2566esac
2567    STRIP=$ac_ct_STRIP
2568  fi
2569else
2570  STRIP="$ac_cv_prog_STRIP"
2571fi
2572
2573fi
2574INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578if test -z "$MKDIR_P"; then
2579  if ${ac_cv_path_mkdir+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    for ac_prog in mkdir gmkdir; do
2588	 for ac_exec_ext in '' $ac_executable_extensions; do
2589	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591	     'mkdir (GNU coreutils) '* | \
2592	     'mkdir (coreutils) '* | \
2593	     'mkdir (fileutils) '4.1*)
2594	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2595	       break 3;;
2596	   esac
2597	 done
2598       done
2599  done
2600IFS=$as_save_IFS
2601
2602fi
2603
2604  test -d ./--version && rmdir ./--version
2605  if test "${ac_cv_path_mkdir+set}" = set; then
2606    MKDIR_P="$ac_cv_path_mkdir -p"
2607  else
2608    # As a last resort, use the slow shell script.  Don't cache a
2609    # value for MKDIR_P within a source directory, because that will
2610    # break other packages using the cache if that directory is
2611    # removed, or if the value is a relative name.
2612    MKDIR_P="$ac_install_sh -d"
2613  fi
2614fi
2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616$as_echo "$MKDIR_P" >&6; }
2617
2618for ac_prog in gawk mawk nawk awk
2619do
2620  # Extract the first word of "$ac_prog", so it can be a program name with args.
2621set dummy $ac_prog; ac_word=$2
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623$as_echo_n "checking for $ac_word... " >&6; }
2624if ${ac_cv_prog_AWK+:} false; then :
2625  $as_echo_n "(cached) " >&6
2626else
2627  if test -n "$AWK"; then
2628  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633  IFS=$as_save_IFS
2634  test -z "$as_dir" && as_dir=.
2635    for ac_exec_ext in '' $ac_executable_extensions; do
2636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637    ac_cv_prog_AWK="$ac_prog"
2638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639    break 2
2640  fi
2641done
2642  done
2643IFS=$as_save_IFS
2644
2645fi
2646fi
2647AWK=$ac_cv_prog_AWK
2648if test -n "$AWK"; then
2649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650$as_echo "$AWK" >&6; }
2651else
2652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653$as_echo "no" >&6; }
2654fi
2655
2656
2657  test -n "$AWK" && break
2658done
2659
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2662set x ${MAKE-make}
2663ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665  $as_echo_n "(cached) " >&6
2666else
2667  cat >conftest.make <<\_ACEOF
2668SHELL = /bin/sh
2669all:
2670	@echo '@@@%%%=$(MAKE)=@@@%%%'
2671_ACEOF
2672# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673case `${MAKE-make} -f conftest.make 2>/dev/null` in
2674  *@@@%%%=?*=@@@%%%*)
2675    eval ac_cv_prog_make_${ac_make}_set=yes;;
2676  *)
2677    eval ac_cv_prog_make_${ac_make}_set=no;;
2678esac
2679rm -f conftest.make
2680fi
2681if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683$as_echo "yes" >&6; }
2684  SET_MAKE=
2685else
2686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687$as_echo "no" >&6; }
2688  SET_MAKE="MAKE=${MAKE-make}"
2689fi
2690
2691rm -rf .tst 2>/dev/null
2692mkdir .tst 2>/dev/null
2693if test -d .tst; then
2694  am__leading_dot=.
2695else
2696  am__leading_dot=_
2697fi
2698rmdir .tst 2>/dev/null
2699
2700# Check whether --enable-silent-rules was given.
2701if test "${enable_silent_rules+set}" = set; then :
2702  enableval=$enable_silent_rules;
2703fi
2704
2705case $enable_silent_rules in # (((
2706  yes) AM_DEFAULT_VERBOSITY=0;;
2707   no) AM_DEFAULT_VERBOSITY=1;;
2708    *) AM_DEFAULT_VERBOSITY=1;;
2709esac
2710am_make=${MAKE-make}
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2712$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2713if ${am_cv_make_support_nested_variables+:} false; then :
2714  $as_echo_n "(cached) " >&6
2715else
2716  if $as_echo 'TRUE=$(BAR$(V))
2717BAR0=false
2718BAR1=true
2719V=1
2720am__doit:
2721	@$(TRUE)
2722.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2723  am_cv_make_support_nested_variables=yes
2724else
2725  am_cv_make_support_nested_variables=no
2726fi
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2729$as_echo "$am_cv_make_support_nested_variables" >&6; }
2730if test $am_cv_make_support_nested_variables = yes; then
2731    AM_V='$(V)'
2732  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2733else
2734  AM_V=$AM_DEFAULT_VERBOSITY
2735  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2736fi
2737AM_BACKSLASH='\'
2738
2739if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741  # is not polluted with repeated "-I."
2742  am__isrc=' -I$(srcdir)'
2743  # test to see if srcdir already configured
2744  if test -f $srcdir/config.status; then
2745    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2746  fi
2747fi
2748
2749# test whether we have cygpath
2750if test -z "$CYGPATH_W"; then
2751  if (cygpath --version) >/dev/null 2>/dev/null; then
2752    CYGPATH_W='cygpath -w'
2753  else
2754    CYGPATH_W=echo
2755  fi
2756fi
2757
2758
2759# Define the identity of the package.
2760 PACKAGE='xcb-util-renderutil'
2761 VERSION='0.3.9'
2762
2763
2764cat >>confdefs.h <<_ACEOF
2765#define PACKAGE "$PACKAGE"
2766_ACEOF
2767
2768
2769cat >>confdefs.h <<_ACEOF
2770#define VERSION "$VERSION"
2771_ACEOF
2772
2773# Some tools Automake needs.
2774
2775ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2776
2777
2778AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2779
2780
2781AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2782
2783
2784AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2785
2786
2787MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2788
2789# For better backward compatibility.  To be removed once Automake 1.9.x
2790# dies out for good.  For more background, see:
2791# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793mkdir_p='$(MKDIR_P)'
2794
2795# We need awk for the "check" target.  The system "awk" is bad on
2796# some platforms.
2797# Always define AMTAR for backward compatibility.  Yes, it's still used
2798# in the wild :-(  We should find a proper way to deprecate it ...
2799AMTAR='$${TAR-tar}'
2800
2801
2802# We'll loop over all known methods to create a tar archive until one works.
2803_am_tools='gnutar  pax cpio none'
2804
2805am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2806
2807
2808
2809
2810
2811
2812# POSIX will say in a future version that running "rm -f" with no argument
2813# is OK; and we want to be able to make that assumption in our Makefile
2814# recipes.  So use an aggressive probe to check that the usage we want is
2815# actually supported "in the wild" to an acceptable degree.
2816# See automake bug#10828.
2817# To make any issue more visible, cause the running configure to be aborted
2818# by default if the 'rm' program in use doesn't match our expectations; the
2819# user can still override this though.
2820if rm -f && rm -fr && rm -rf; then : OK; else
2821  cat >&2 <<'END'
2822Oops!
2823
2824Your 'rm' program seems unable to run without file operands specified
2825on the command line, even when the '-f' option is present.  This is contrary
2826to the behaviour of most rm programs out there, and not conforming with
2827the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2828
2829Please tell bug-automake@gnu.org about your system, including the value
2830of your $PATH and any error possibly output before this message.  This
2831can help us improve future automake versions.
2832
2833END
2834  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2835    echo 'Configuration will proceed anyway, since you have set the' >&2
2836    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2837    echo >&2
2838  else
2839    cat >&2 <<'END'
2840Aborting the configuration process, to ensure you take notice of the issue.
2841
2842You can download and install GNU coreutils to get an 'rm' implementation
2843that behaves properly: <http://www.gnu.org/software/coreutils/>.
2844
2845If you want to complete the configuration process using your problematic
2846'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2847to "yes", and re-run configure.
2848
2849END
2850    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2851  fi
2852fi
2853
2854
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2856$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2857    # Check whether --enable-maintainer-mode was given.
2858if test "${enable_maintainer_mode+set}" = set; then :
2859  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2860else
2861  USE_MAINTAINER_MODE=no
2862fi
2863
2864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2865$as_echo "$USE_MAINTAINER_MODE" >&6; }
2866   if test $USE_MAINTAINER_MODE = yes; then
2867  MAINTAINER_MODE_TRUE=
2868  MAINTAINER_MODE_FALSE='#'
2869else
2870  MAINTAINER_MODE_TRUE='#'
2871  MAINTAINER_MODE_FALSE=
2872fi
2873
2874  MAINT=$MAINTAINER_MODE_TRUE
2875
2876
2877
2878case `pwd` in
2879  *\ * | *\	*)
2880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2881$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2882esac
2883
2884
2885
2886macro_version='2.4.2'
2887macro_revision='1.3337'
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901ltmain="$ac_aux_dir/ltmain.sh"
2902
2903# Make sure we can run config.sub.
2904$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2905  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2906
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2908$as_echo_n "checking build system type... " >&6; }
2909if ${ac_cv_build+:} false; then :
2910  $as_echo_n "(cached) " >&6
2911else
2912  ac_build_alias=$build_alias
2913test "x$ac_build_alias" = x &&
2914  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2915test "x$ac_build_alias" = x &&
2916  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2917ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2918  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2919
2920fi
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2922$as_echo "$ac_cv_build" >&6; }
2923case $ac_cv_build in
2924*-*-*) ;;
2925*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2926esac
2927build=$ac_cv_build
2928ac_save_IFS=$IFS; IFS='-'
2929set x $ac_cv_build
2930shift
2931build_cpu=$1
2932build_vendor=$2
2933shift; shift
2934# Remember, the first character of IFS is used to create $*,
2935# except with old shells:
2936build_os=$*
2937IFS=$ac_save_IFS
2938case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2939
2940
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2942$as_echo_n "checking host system type... " >&6; }
2943if ${ac_cv_host+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  if test "x$host_alias" = x; then
2947  ac_cv_host=$ac_cv_build
2948else
2949  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2950    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2951fi
2952
2953fi
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2955$as_echo "$ac_cv_host" >&6; }
2956case $ac_cv_host in
2957*-*-*) ;;
2958*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2959esac
2960host=$ac_cv_host
2961ac_save_IFS=$IFS; IFS='-'
2962set x $ac_cv_host
2963shift
2964host_cpu=$1
2965host_vendor=$2
2966shift; shift
2967# Remember, the first character of IFS is used to create $*,
2968# except with old shells:
2969host_os=$*
2970IFS=$ac_save_IFS
2971case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2972
2973
2974# Backslashify metacharacters that are still active within
2975# double-quoted strings.
2976sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2977
2978# Same as above, but do not quote variable references.
2979double_quote_subst='s/\(["`\\]\)/\\\1/g'
2980
2981# Sed substitution to delay expansion of an escaped shell variable in a
2982# double_quote_subst'ed string.
2983delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2984
2985# Sed substitution to delay expansion of an escaped single quote.
2986delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2987
2988# Sed substitution to avoid accidental globbing in evaled expressions
2989no_glob_subst='s/\*/\\\*/g'
2990
2991ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2992ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2993ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2994
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2996$as_echo_n "checking how to print strings... " >&6; }
2997# Test print first, because it will be a builtin if present.
2998if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2999   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3000  ECHO='print -r --'
3001elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3002  ECHO='printf %s\n'
3003else
3004  # Use this function as a fallback that always works.
3005  func_fallback_echo ()
3006  {
3007    eval 'cat <<_LTECHO_EOF
3008$1
3009_LTECHO_EOF'
3010  }
3011  ECHO='func_fallback_echo'
3012fi
3013
3014# func_echo_all arg...
3015# Invoke $ECHO with all args, space-separated.
3016func_echo_all ()
3017{
3018    $ECHO ""
3019}
3020
3021case "$ECHO" in
3022  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3023$as_echo "printf" >&6; } ;;
3024  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3025$as_echo "print -r" >&6; } ;;
3026  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3027$as_echo "cat" >&6; } ;;
3028esac
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043DEPDIR="${am__leading_dot}deps"
3044
3045ac_config_commands="$ac_config_commands depfiles"
3046
3047
3048am_make=${MAKE-make}
3049cat > confinc << 'END'
3050am__doit:
3051	@echo this is the am__doit target
3052.PHONY: am__doit
3053END
3054# If we don't find an include directive, just comment out the code.
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3056$as_echo_n "checking for style of include used by $am_make... " >&6; }
3057am__include="#"
3058am__quote=
3059_am_result=none
3060# First try GNU make style include.
3061echo "include confinc" > confmf
3062# Ignore all kinds of additional output from 'make'.
3063case `$am_make -s -f confmf 2> /dev/null` in #(
3064*the\ am__doit\ target*)
3065  am__include=include
3066  am__quote=
3067  _am_result=GNU
3068  ;;
3069esac
3070# Now try BSD make style include.
3071if test "$am__include" = "#"; then
3072   echo '.include "confinc"' > confmf
3073   case `$am_make -s -f confmf 2> /dev/null` in #(
3074   *the\ am__doit\ target*)
3075     am__include=.include
3076     am__quote="\""
3077     _am_result=BSD
3078     ;;
3079   esac
3080fi
3081
3082
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3084$as_echo "$_am_result" >&6; }
3085rm -f confinc confmf
3086
3087# Check whether --enable-dependency-tracking was given.
3088if test "${enable_dependency_tracking+set}" = set; then :
3089  enableval=$enable_dependency_tracking;
3090fi
3091
3092if test "x$enable_dependency_tracking" != xno; then
3093  am_depcomp="$ac_aux_dir/depcomp"
3094  AMDEPBACKSLASH='\'
3095  am__nodep='_no'
3096fi
3097 if test "x$enable_dependency_tracking" != xno; then
3098  AMDEP_TRUE=
3099  AMDEP_FALSE='#'
3100else
3101  AMDEP_TRUE='#'
3102  AMDEP_FALSE=
3103fi
3104
3105
3106ac_ext=c
3107ac_cpp='$CPP $CPPFLAGS'
3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111if test -n "$ac_tool_prefix"; then
3112  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3113set dummy ${ac_tool_prefix}gcc; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if ${ac_cv_prog_CC+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127    for ac_exec_ext in '' $ac_executable_extensions; do
3128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139CC=$ac_cv_prog_CC
3140if test -n "$CC"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142$as_echo "$CC" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149fi
3150if test -z "$ac_cv_prog_CC"; then
3151  ac_ct_CC=$CC
3152  # Extract the first word of "gcc", so it can be a program name with args.
3153set dummy gcc; ac_word=$2
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if ${ac_cv_prog_ac_ct_CC+:} false; then :
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$ac_ct_CC"; then
3160  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161else
3162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    for ac_exec_ext in '' $ac_executable_extensions; do
3168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169    ac_cv_prog_ac_ct_CC="gcc"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177fi
3178fi
3179ac_ct_CC=$ac_cv_prog_ac_ct_CC
3180if test -n "$ac_ct_CC"; then
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3182$as_echo "$ac_ct_CC" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186fi
3187
3188  if test "x$ac_ct_CC" = x; then
3189    CC=""
3190  else
3191    case $cross_compiling:$ac_tool_warned in
3192yes:)
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195ac_tool_warned=yes ;;
3196esac
3197    CC=$ac_ct_CC
3198  fi
3199else
3200  CC="$ac_cv_prog_CC"
3201fi
3202
3203if test -z "$CC"; then
3204          if test -n "$ac_tool_prefix"; then
3205    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3206set dummy ${ac_tool_prefix}cc; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if ${ac_cv_prog_CC+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$CC"; then
3213  ac_cv_prog_CC="$CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_CC="${ac_tool_prefix}cc"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232CC=$ac_cv_prog_CC
3233if test -n "$CC"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235$as_echo "$CC" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241
3242  fi
3243fi
3244if test -z "$CC"; then
3245  # Extract the first word of "cc", so it can be a program name with args.
3246set dummy cc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test -n "$CC"; then
3253  ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255  ac_prog_rejected=no
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261    for ac_exec_ext in '' $ac_executable_extensions; do
3262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264       ac_prog_rejected=yes
3265       continue
3266     fi
3267    ac_cv_prog_CC="cc"
3268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272  done
3273IFS=$as_save_IFS
3274
3275if test $ac_prog_rejected = yes; then
3276  # We found a bogon in the path, so make sure we never use it.
3277  set dummy $ac_cv_prog_CC
3278  shift
3279  if test $# != 0; then
3280    # We chose a different compiler from the bogus one.
3281    # However, it has the same basename, so the bogon will be chosen
3282    # first if we set CC to just the basename; use the full file name.
3283    shift
3284    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3285  fi
3286fi
3287fi
3288fi
3289CC=$ac_cv_prog_CC
3290if test -n "$CC"; then
3291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292$as_echo "$CC" >&6; }
3293else
3294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295$as_echo "no" >&6; }
3296fi
3297
3298
3299fi
3300if test -z "$CC"; then
3301  if test -n "$ac_tool_prefix"; then
3302  for ac_prog in cl.exe
3303  do
3304    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307$as_echo_n "checking for $ac_word... " >&6; }
3308if ${ac_cv_prog_CC+:} false; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  if test -n "$CC"; then
3312  ac_cv_prog_CC="$CC" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319    for ac_exec_ext in '' $ac_executable_extensions; do
3320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326  done
3327IFS=$as_save_IFS
3328
3329fi
3330fi
3331CC=$ac_cv_prog_CC
3332if test -n "$CC"; then
3333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334$as_echo "$CC" >&6; }
3335else
3336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337$as_echo "no" >&6; }
3338fi
3339
3340
3341    test -n "$CC" && break
3342  done
3343fi
3344if test -z "$CC"; then
3345  ac_ct_CC=$CC
3346  for ac_prog in cl.exe
3347do
3348  # Extract the first word of "$ac_prog", so it can be a program name with args.
3349set dummy $ac_prog; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if ${ac_cv_prog_ac_ct_CC+:} false; then :
3353  $as_echo_n "(cached) " >&6
3354else
3355  if test -n "$ac_ct_CC"; then
3356  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361  IFS=$as_save_IFS
3362  test -z "$as_dir" && as_dir=.
3363    for ac_exec_ext in '' $ac_executable_extensions; do
3364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365    ac_cv_prog_ac_ct_CC="$ac_prog"
3366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367    break 2
3368  fi
3369done
3370  done
3371IFS=$as_save_IFS
3372
3373fi
3374fi
3375ac_ct_CC=$ac_cv_prog_ac_ct_CC
3376if test -n "$ac_ct_CC"; then
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3378$as_echo "$ac_ct_CC" >&6; }
3379else
3380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384
3385  test -n "$ac_ct_CC" && break
3386done
3387
3388  if test "x$ac_ct_CC" = x; then
3389    CC=""
3390  else
3391    case $cross_compiling:$ac_tool_warned in
3392yes:)
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395ac_tool_warned=yes ;;
3396esac
3397    CC=$ac_ct_CC
3398  fi
3399fi
3400
3401fi
3402
3403
3404test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406as_fn_error $? "no acceptable C compiler found in \$PATH
3407See \`config.log' for more details" "$LINENO" 5; }
3408
3409# Provide some information about the compiler.
3410$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3411set X $ac_compile
3412ac_compiler=$2
3413for ac_option in --version -v -V -qversion; do
3414  { { ac_try="$ac_compiler $ac_option >&5"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3422  ac_status=$?
3423  if test -s conftest.err; then
3424    sed '10a\
3425... rest of stderr output deleted ...
3426         10q' conftest.err >conftest.er1
3427    cat conftest.er1 >&5
3428  fi
3429  rm -f conftest.er1 conftest.err
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }
3432done
3433
3434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445ac_clean_files_save=$ac_clean_files
3446ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3447# Try to create an executable without -o first, disregard a.out.
3448# It will help us diagnose broken compilers, and finding out an intuition
3449# of exeext.
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3451$as_echo_n "checking whether the C compiler works... " >&6; }
3452ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3453
3454# The possible output files:
3455ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3456
3457ac_rmfiles=
3458for ac_file in $ac_files
3459do
3460  case $ac_file in
3461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3463  esac
3464done
3465rm -f $ac_rmfiles
3466
3467if { { ac_try="$ac_link_default"
3468case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_link_default") 2>&5
3475  ac_status=$?
3476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477  test $ac_status = 0; }; then :
3478  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3479# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3480# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3481# so that the user can short-circuit this test for compilers unknown to
3482# Autoconf.
3483for ac_file in $ac_files ''
3484do
3485  test -f "$ac_file" || continue
3486  case $ac_file in
3487    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3488	;;
3489    [ab].out )
3490	# We found the default executable, but exeext='' is most
3491	# certainly right.
3492	break;;
3493    *.* )
3494	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3495	then :; else
3496	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497	fi
3498	# We set ac_cv_exeext here because the later test for it is not
3499	# safe: cross compilers may not add the suffix if given an `-o'
3500	# argument, so we may need to know it at that point already.
3501	# Even if this section looks crufty: it has the advantage of
3502	# actually working.
3503	break;;
3504    * )
3505	break;;
3506  esac
3507done
3508test "$ac_cv_exeext" = no && ac_cv_exeext=
3509
3510else
3511  ac_file=''
3512fi
3513if test -z "$ac_file"; then :
3514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516$as_echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error 77 "C compiler cannot create executables
3522See \`config.log' for more details" "$LINENO" 5; }
3523else
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525$as_echo "yes" >&6; }
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528$as_echo_n "checking for C compiler default output file name... " >&6; }
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530$as_echo "$ac_file" >&6; }
3531ac_exeext=$ac_cv_exeext
3532
3533rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3534ac_clean_files=$ac_clean_files_save
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3536$as_echo_n "checking for suffix of executables... " >&6; }
3537if { { ac_try="$ac_link"
3538case "(($ac_try" in
3539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540  *) ac_try_echo=$ac_try;;
3541esac
3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543$as_echo "$ac_try_echo"; } >&5
3544  (eval "$ac_link") 2>&5
3545  ac_status=$?
3546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547  test $ac_status = 0; }; then :
3548  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3549# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3550# work properly (i.e., refer to `conftest.exe'), while it won't with
3551# `rm'.
3552for ac_file in conftest.exe conftest conftest.*; do
3553  test -f "$ac_file" || continue
3554  case $ac_file in
3555    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557	  break;;
3558    * ) break;;
3559  esac
3560done
3561else
3562  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3565See \`config.log' for more details" "$LINENO" 5; }
3566fi
3567rm -f conftest conftest$ac_cv_exeext
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3569$as_echo "$ac_cv_exeext" >&6; }
3570
3571rm -f conftest.$ac_ext
3572EXEEXT=$ac_cv_exeext
3573ac_exeext=$EXEEXT
3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576#include <stdio.h>
3577int
3578main ()
3579{
3580FILE *f = fopen ("conftest.out", "w");
3581 return ferror (f) || fclose (f) != 0;
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587ac_clean_files="$ac_clean_files conftest.out"
3588# Check that the compiler produces executables we can run.  If not, either
3589# the compiler is broken, or we cross compile.
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591$as_echo_n "checking whether we are cross compiling... " >&6; }
3592if test "$cross_compiling" != yes; then
3593  { { ac_try="$ac_link"
3594case "(($ac_try" in
3595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596  *) ac_try_echo=$ac_try;;
3597esac
3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599$as_echo "$ac_try_echo"; } >&5
3600  (eval "$ac_link") 2>&5
3601  ac_status=$?
3602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603  test $ac_status = 0; }
3604  if { ac_try='./conftest$ac_cv_exeext'
3605  { { case "(($ac_try" in
3606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607  *) ac_try_echo=$ac_try;;
3608esac
3609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610$as_echo "$ac_try_echo"; } >&5
3611  (eval "$ac_try") 2>&5
3612  ac_status=$?
3613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614  test $ac_status = 0; }; }; then
3615    cross_compiling=no
3616  else
3617    if test "$cross_compiling" = maybe; then
3618	cross_compiling=yes
3619    else
3620	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622as_fn_error $? "cannot run C compiled programs.
3623If you meant to cross compile, use \`--host'.
3624See \`config.log' for more details" "$LINENO" 5; }
3625    fi
3626  fi
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629$as_echo "$cross_compiling" >&6; }
3630
3631rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632ac_clean_files=$ac_clean_files_save
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634$as_echo_n "checking for suffix of object files... " >&6; }
3635if ${ac_cv_objext+:} false; then :
3636  $as_echo_n "(cached) " >&6
3637else
3638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649rm -f conftest.o conftest.obj
3650if { { ac_try="$ac_compile"
3651case "(($ac_try" in
3652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653  *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656$as_echo "$ac_try_echo"; } >&5
3657  (eval "$ac_compile") 2>&5
3658  ac_status=$?
3659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660  test $ac_status = 0; }; then :
3661  for ac_file in conftest.o conftest.obj conftest.*; do
3662  test -f "$ac_file" || continue;
3663  case $ac_file in
3664    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3665    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3666       break;;
3667  esac
3668done
3669else
3670  $as_echo "$as_me: failed program was:" >&5
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
3673{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675as_fn_error $? "cannot compute suffix of object files: cannot compile
3676See \`config.log' for more details" "$LINENO" 5; }
3677fi
3678rm -f conftest.$ac_cv_objext conftest.$ac_ext
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3681$as_echo "$ac_cv_objext" >&6; }
3682OBJEXT=$ac_cv_objext
3683ac_objext=$OBJEXT
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686if ${ac_cv_c_compiler_gnu+:} false; then :
3687  $as_echo_n "(cached) " >&6
3688else
3689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695#ifndef __GNUC__
3696       choke me
3697#endif
3698
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703if ac_fn_c_try_compile "$LINENO"; then :
3704  ac_compiler_gnu=yes
3705else
3706  ac_compiler_gnu=no
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709ac_cv_c_compiler_gnu=$ac_compiler_gnu
3710
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3713$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3714if test $ac_compiler_gnu = yes; then
3715  GCC=yes
3716else
3717  GCC=
3718fi
3719ac_test_CFLAGS=${CFLAGS+set}
3720ac_save_CFLAGS=$CFLAGS
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722$as_echo_n "checking whether $CC accepts -g... " >&6; }
3723if ${ac_cv_prog_cc_g+:} false; then :
3724  $as_echo_n "(cached) " >&6
3725else
3726  ac_save_c_werror_flag=$ac_c_werror_flag
3727   ac_c_werror_flag=yes
3728   ac_cv_prog_cc_g=no
3729   CFLAGS="-g"
3730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h.  */
3732
3733int
3734main ()
3735{
3736
3737  ;
3738  return 0;
3739}
3740_ACEOF
3741if ac_fn_c_try_compile "$LINENO"; then :
3742  ac_cv_prog_cc_g=yes
3743else
3744  CFLAGS=""
3745      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h.  */
3747
3748int
3749main ()
3750{
3751
3752  ;
3753  return 0;
3754}
3755_ACEOF
3756if ac_fn_c_try_compile "$LINENO"; then :
3757
3758else
3759  ac_c_werror_flag=$ac_save_c_werror_flag
3760	 CFLAGS="-g"
3761	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772if ac_fn_c_try_compile "$LINENO"; then :
3773  ac_cv_prog_cc_g=yes
3774fi
3775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776fi
3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778fi
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780   ac_c_werror_flag=$ac_save_c_werror_flag
3781fi
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3783$as_echo "$ac_cv_prog_cc_g" >&6; }
3784if test "$ac_test_CFLAGS" = set; then
3785  CFLAGS=$ac_save_CFLAGS
3786elif test $ac_cv_prog_cc_g = yes; then
3787  if test "$GCC" = yes; then
3788    CFLAGS="-g -O2"
3789  else
3790    CFLAGS="-g"
3791  fi
3792else
3793  if test "$GCC" = yes; then
3794    CFLAGS="-O2"
3795  else
3796    CFLAGS=
3797  fi
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801if ${ac_cv_prog_cc_c89+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  ac_cv_prog_cc_c89=no
3805ac_save_CC=$CC
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808#include <stdarg.h>
3809#include <stdio.h>
3810struct stat;
3811/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3812struct buf { int x; };
3813FILE * (*rcsopen) (struct buf *, struct stat *, int);
3814static char *e (p, i)
3815     char **p;
3816     int i;
3817{
3818  return p[i];
3819}
3820static char *f (char * (*g) (char **, int), char **p, ...)
3821{
3822  char *s;
3823  va_list v;
3824  va_start (v,p);
3825  s = g (p, va_arg (v,int));
3826  va_end (v);
3827  return s;
3828}
3829
3830/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3831   function prototypes and stuff, but not '\xHH' hex character constants.
3832   These don't provoke an error unfortunately, instead are silently treated
3833   as 'x'.  The following induces an error, until -std is added to get
3834   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3835   array size at least.  It's necessary to write '\x00'==0 to get something
3836   that's true only with -std.  */
3837int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3838
3839/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3840   inside strings and character constants.  */
3841#define FOO(x) 'x'
3842int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3843
3844int test (int i, double x);
3845struct s1 {int (*f) (int a);};
3846struct s2 {int (*f) (double a);};
3847int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3848int argc;
3849char **argv;
3850int
3851main ()
3852{
3853return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3859	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3860do
3861  CC="$ac_save_CC $ac_arg"
3862  if ac_fn_c_try_compile "$LINENO"; then :
3863  ac_cv_prog_cc_c89=$ac_arg
3864fi
3865rm -f core conftest.err conftest.$ac_objext
3866  test "x$ac_cv_prog_cc_c89" != "xno" && break
3867done
3868rm -f conftest.$ac_ext
3869CC=$ac_save_CC
3870
3871fi
3872# AC_CACHE_VAL
3873case "x$ac_cv_prog_cc_c89" in
3874  x)
3875    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3876$as_echo "none needed" >&6; } ;;
3877  xno)
3878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3879$as_echo "unsupported" >&6; } ;;
3880  *)
3881    CC="$CC $ac_cv_prog_cc_c89"
3882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3883$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3884esac
3885if test "x$ac_cv_prog_cc_c89" != xno; then :
3886
3887fi
3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895ac_ext=c
3896ac_cpp='$CPP $CPPFLAGS'
3897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3901$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3902if ${am_cv_prog_cc_c_o+:} false; then :
3903  $as_echo_n "(cached) " >&6
3904else
3905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h.  */
3907
3908int
3909main ()
3910{
3911
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916  # Make sure it works both with $CC and with simple cc.
3917  # Following AC_PROG_CC_C_O, we do the test twice because some
3918  # compilers refuse to overwrite an existing .o file with -o,
3919  # though they will create one.
3920  am_cv_prog_cc_c_o=yes
3921  for am_i in 1 2; do
3922    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3923   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); } \
3927         && test -f conftest2.$ac_objext; then
3928      : OK
3929    else
3930      am_cv_prog_cc_c_o=no
3931      break
3932    fi
3933  done
3934  rm -f core conftest*
3935  unset am_i
3936fi
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3938$as_echo "$am_cv_prog_cc_c_o" >&6; }
3939if test "$am_cv_prog_cc_c_o" != yes; then
3940   # Losing compiler, so override with the script.
3941   # FIXME: It is wrong to rewrite CC.
3942   # But if we don't then we get into trouble of one sort or another.
3943   # A longer-term fix would be to have automake use am__CC in this case,
3944   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3945   CC="$am_aux_dir/compile $CC"
3946fi
3947ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953
3954depcc="$CC"   am_compiler_list=
3955
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3957$as_echo_n "checking dependency style of $depcc... " >&6; }
3958if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3959  $as_echo_n "(cached) " >&6
3960else
3961  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3962  # We make a subdir and do the tests there.  Otherwise we can end up
3963  # making bogus files that we don't know about and never remove.  For
3964  # instance it was reported that on HP-UX the gcc test will end up
3965  # making a dummy file named 'D' -- because '-MD' means "put the output
3966  # in D".
3967  rm -rf conftest.dir
3968  mkdir conftest.dir
3969  # Copy depcomp to subdir because otherwise we won't find it if we're
3970  # using a relative directory.
3971  cp "$am_depcomp" conftest.dir
3972  cd conftest.dir
3973  # We will build objects and dependencies in a subdirectory because
3974  # it helps to detect inapplicable dependency modes.  For instance
3975  # both Tru64's cc and ICC support -MD to output dependencies as a
3976  # side effect of compilation, but ICC will put the dependencies in
3977  # the current directory while Tru64 will put them in the object
3978  # directory.
3979  mkdir sub
3980
3981  am_cv_CC_dependencies_compiler_type=none
3982  if test "$am_compiler_list" = ""; then
3983     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3984  fi
3985  am__universal=false
3986  case " $depcc " in #(
3987     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3988     esac
3989
3990  for depmode in $am_compiler_list; do
3991    # Setup a source with many dependencies, because some compilers
3992    # like to wrap large dependency lists on column 80 (with \), and
3993    # we should not choose a depcomp mode which is confused by this.
3994    #
3995    # We need to recreate these files for each test, as the compiler may
3996    # overwrite some of them when testing with obscure command lines.
3997    # This happens at least with the AIX C compiler.
3998    : > sub/conftest.c
3999    for i in 1 2 3 4 5 6; do
4000      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4001      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4002      # Solaris 10 /bin/sh.
4003      echo '/* dummy */' > sub/conftst$i.h
4004    done
4005    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4006
4007    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4008    # mode.  It turns out that the SunPro C++ compiler does not properly
4009    # handle '-M -o', and we need to detect this.  Also, some Intel
4010    # versions had trouble with output in subdirs.
4011    am__obj=sub/conftest.${OBJEXT-o}
4012    am__minus_obj="-o $am__obj"
4013    case $depmode in
4014    gcc)
4015      # This depmode causes a compiler race in universal mode.
4016      test "$am__universal" = false || continue
4017      ;;
4018    nosideeffect)
4019      # After this tag, mechanisms are not by side-effect, so they'll
4020      # only be used when explicitly requested.
4021      if test "x$enable_dependency_tracking" = xyes; then
4022	continue
4023      else
4024	break
4025      fi
4026      ;;
4027    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4028      # This compiler won't grok '-c -o', but also, the minuso test has
4029      # not run yet.  These depmodes are late enough in the game, and
4030      # so weak that their functioning should not be impacted.
4031      am__obj=conftest.${OBJEXT-o}
4032      am__minus_obj=
4033      ;;
4034    none) break ;;
4035    esac
4036    if depmode=$depmode \
4037       source=sub/conftest.c object=$am__obj \
4038       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4039       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4040         >/dev/null 2>conftest.err &&
4041       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4042       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4043       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4044       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4045      # icc doesn't choke on unknown options, it will just issue warnings
4046      # or remarks (even with -Werror).  So we grep stderr for any message
4047      # that says an option was ignored or not supported.
4048      # When given -MP, icc 7.0 and 7.1 complain thusly:
4049      #   icc: Command line warning: ignoring option '-M'; no argument required
4050      # The diagnosis changed in icc 8.0:
4051      #   icc: Command line remark: option '-MP' not supported
4052      if (grep 'ignoring option' conftest.err ||
4053          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4054        am_cv_CC_dependencies_compiler_type=$depmode
4055        break
4056      fi
4057    fi
4058  done
4059
4060  cd ..
4061  rm -rf conftest.dir
4062else
4063  am_cv_CC_dependencies_compiler_type=none
4064fi
4065
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4068$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4069CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4070
4071 if
4072  test "x$enable_dependency_tracking" != xno \
4073  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4074  am__fastdepCC_TRUE=
4075  am__fastdepCC_FALSE='#'
4076else
4077  am__fastdepCC_TRUE='#'
4078  am__fastdepCC_FALSE=
4079fi
4080
4081
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4083$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4084if ${ac_cv_path_SED+:} false; then :
4085  $as_echo_n "(cached) " >&6
4086else
4087            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4088     for ac_i in 1 2 3 4 5 6 7; do
4089       ac_script="$ac_script$as_nl$ac_script"
4090     done
4091     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4092     { ac_script=; unset ac_script;}
4093     if test -z "$SED"; then
4094  ac_path_SED_found=false
4095  # Loop through the user's path and test for each of PROGNAME-LIST
4096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101    for ac_prog in sed gsed; do
4102    for ac_exec_ext in '' $ac_executable_extensions; do
4103      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4104      as_fn_executable_p "$ac_path_SED" || continue
4105# Check for GNU ac_path_SED and select it if it is found.
4106  # Check for GNU $ac_path_SED
4107case `"$ac_path_SED" --version 2>&1` in
4108*GNU*)
4109  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4110*)
4111  ac_count=0
4112  $as_echo_n 0123456789 >"conftest.in"
4113  while :
4114  do
4115    cat "conftest.in" "conftest.in" >"conftest.tmp"
4116    mv "conftest.tmp" "conftest.in"
4117    cp "conftest.in" "conftest.nl"
4118    $as_echo '' >> "conftest.nl"
4119    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121    as_fn_arith $ac_count + 1 && ac_count=$as_val
4122    if test $ac_count -gt ${ac_path_SED_max-0}; then
4123      # Best one so far, save it but keep looking for a better one
4124      ac_cv_path_SED="$ac_path_SED"
4125      ac_path_SED_max=$ac_count
4126    fi
4127    # 10*(2^10) chars as input seems more than enough
4128    test $ac_count -gt 10 && break
4129  done
4130  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131esac
4132
4133      $ac_path_SED_found && break 3
4134    done
4135  done
4136  done
4137IFS=$as_save_IFS
4138  if test -z "$ac_cv_path_SED"; then
4139    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4140  fi
4141else
4142  ac_cv_path_SED=$SED
4143fi
4144
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4147$as_echo "$ac_cv_path_SED" >&6; }
4148 SED="$ac_cv_path_SED"
4149  rm -f conftest.sed
4150
4151test -z "$SED" && SED=sed
4152Xsed="$SED -e 1s/^X//"
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4165$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4166if ${ac_cv_path_GREP+:} false; then :
4167  $as_echo_n "(cached) " >&6
4168else
4169  if test -z "$GREP"; then
4170  ac_path_GREP_found=false
4171  # Loop through the user's path and test for each of PROGNAME-LIST
4172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174do
4175  IFS=$as_save_IFS
4176  test -z "$as_dir" && as_dir=.
4177    for ac_prog in grep ggrep; do
4178    for ac_exec_ext in '' $ac_executable_extensions; do
4179      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4180      as_fn_executable_p "$ac_path_GREP" || continue
4181# Check for GNU ac_path_GREP and select it if it is found.
4182  # Check for GNU $ac_path_GREP
4183case `"$ac_path_GREP" --version 2>&1` in
4184*GNU*)
4185  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4186*)
4187  ac_count=0
4188  $as_echo_n 0123456789 >"conftest.in"
4189  while :
4190  do
4191    cat "conftest.in" "conftest.in" >"conftest.tmp"
4192    mv "conftest.tmp" "conftest.in"
4193    cp "conftest.in" "conftest.nl"
4194    $as_echo 'GREP' >> "conftest.nl"
4195    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197    as_fn_arith $ac_count + 1 && ac_count=$as_val
4198    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4199      # Best one so far, save it but keep looking for a better one
4200      ac_cv_path_GREP="$ac_path_GREP"
4201      ac_path_GREP_max=$ac_count
4202    fi
4203    # 10*(2^10) chars as input seems more than enough
4204    test $ac_count -gt 10 && break
4205  done
4206  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207esac
4208
4209      $ac_path_GREP_found && break 3
4210    done
4211  done
4212  done
4213IFS=$as_save_IFS
4214  if test -z "$ac_cv_path_GREP"; then
4215    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4216  fi
4217else
4218  ac_cv_path_GREP=$GREP
4219fi
4220
4221fi
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4223$as_echo "$ac_cv_path_GREP" >&6; }
4224 GREP="$ac_cv_path_GREP"
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4228$as_echo_n "checking for egrep... " >&6; }
4229if ${ac_cv_path_EGREP+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4233   then ac_cv_path_EGREP="$GREP -E"
4234   else
4235     if test -z "$EGREP"; then
4236  ac_path_EGREP_found=false
4237  # Loop through the user's path and test for each of PROGNAME-LIST
4238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240do
4241  IFS=$as_save_IFS
4242  test -z "$as_dir" && as_dir=.
4243    for ac_prog in egrep; do
4244    for ac_exec_ext in '' $ac_executable_extensions; do
4245      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4246      as_fn_executable_p "$ac_path_EGREP" || continue
4247# Check for GNU ac_path_EGREP and select it if it is found.
4248  # Check for GNU $ac_path_EGREP
4249case `"$ac_path_EGREP" --version 2>&1` in
4250*GNU*)
4251  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4252*)
4253  ac_count=0
4254  $as_echo_n 0123456789 >"conftest.in"
4255  while :
4256  do
4257    cat "conftest.in" "conftest.in" >"conftest.tmp"
4258    mv "conftest.tmp" "conftest.in"
4259    cp "conftest.in" "conftest.nl"
4260    $as_echo 'EGREP' >> "conftest.nl"
4261    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263    as_fn_arith $ac_count + 1 && ac_count=$as_val
4264    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4265      # Best one so far, save it but keep looking for a better one
4266      ac_cv_path_EGREP="$ac_path_EGREP"
4267      ac_path_EGREP_max=$ac_count
4268    fi
4269    # 10*(2^10) chars as input seems more than enough
4270    test $ac_count -gt 10 && break
4271  done
4272  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4273esac
4274
4275      $ac_path_EGREP_found && break 3
4276    done
4277  done
4278  done
4279IFS=$as_save_IFS
4280  if test -z "$ac_cv_path_EGREP"; then
4281    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4282  fi
4283else
4284  ac_cv_path_EGREP=$EGREP
4285fi
4286
4287   fi
4288fi
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4290$as_echo "$ac_cv_path_EGREP" >&6; }
4291 EGREP="$ac_cv_path_EGREP"
4292
4293
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4295$as_echo_n "checking for fgrep... " >&6; }
4296if ${ac_cv_path_FGREP+:} false; then :
4297  $as_echo_n "(cached) " >&6
4298else
4299  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4300   then ac_cv_path_FGREP="$GREP -F"
4301   else
4302     if test -z "$FGREP"; then
4303  ac_path_FGREP_found=false
4304  # Loop through the user's path and test for each of PROGNAME-LIST
4305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307do
4308  IFS=$as_save_IFS
4309  test -z "$as_dir" && as_dir=.
4310    for ac_prog in fgrep; do
4311    for ac_exec_ext in '' $ac_executable_extensions; do
4312      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4313      as_fn_executable_p "$ac_path_FGREP" || continue
4314# Check for GNU ac_path_FGREP and select it if it is found.
4315  # Check for GNU $ac_path_FGREP
4316case `"$ac_path_FGREP" --version 2>&1` in
4317*GNU*)
4318  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4319*)
4320  ac_count=0
4321  $as_echo_n 0123456789 >"conftest.in"
4322  while :
4323  do
4324    cat "conftest.in" "conftest.in" >"conftest.tmp"
4325    mv "conftest.tmp" "conftest.in"
4326    cp "conftest.in" "conftest.nl"
4327    $as_echo 'FGREP' >> "conftest.nl"
4328    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330    as_fn_arith $ac_count + 1 && ac_count=$as_val
4331    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4332      # Best one so far, save it but keep looking for a better one
4333      ac_cv_path_FGREP="$ac_path_FGREP"
4334      ac_path_FGREP_max=$ac_count
4335    fi
4336    # 10*(2^10) chars as input seems more than enough
4337    test $ac_count -gt 10 && break
4338  done
4339  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340esac
4341
4342      $ac_path_FGREP_found && break 3
4343    done
4344  done
4345  done
4346IFS=$as_save_IFS
4347  if test -z "$ac_cv_path_FGREP"; then
4348    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4349  fi
4350else
4351  ac_cv_path_FGREP=$FGREP
4352fi
4353
4354   fi
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4357$as_echo "$ac_cv_path_FGREP" >&6; }
4358 FGREP="$ac_cv_path_FGREP"
4359
4360
4361test -z "$GREP" && GREP=grep
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381# Check whether --with-gnu-ld was given.
4382if test "${with_gnu_ld+set}" = set; then :
4383  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4384else
4385  with_gnu_ld=no
4386fi
4387
4388ac_prog=ld
4389if test "$GCC" = yes; then
4390  # Check if gcc -print-prog-name=ld gives a path.
4391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4392$as_echo_n "checking for ld used by $CC... " >&6; }
4393  case $host in
4394  *-*-mingw*)
4395    # gcc leaves a trailing carriage return which upsets mingw
4396    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4397  *)
4398    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4399  esac
4400  case $ac_prog in
4401    # Accept absolute paths.
4402    [\\/]* | ?:[\\/]*)
4403      re_direlt='/[^/][^/]*/\.\./'
4404      # Canonicalize the pathname of ld
4405      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4406      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4407	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4408      done
4409      test -z "$LD" && LD="$ac_prog"
4410      ;;
4411  "")
4412    # If it fails, then pretend we aren't using GCC.
4413    ac_prog=ld
4414    ;;
4415  *)
4416    # If it is relative, then search for the first ld in PATH.
4417    with_gnu_ld=unknown
4418    ;;
4419  esac
4420elif test "$with_gnu_ld" = yes; then
4421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4422$as_echo_n "checking for GNU ld... " >&6; }
4423else
4424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4425$as_echo_n "checking for non-GNU ld... " >&6; }
4426fi
4427if ${lt_cv_path_LD+:} false; then :
4428  $as_echo_n "(cached) " >&6
4429else
4430  if test -z "$LD"; then
4431  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4432  for ac_dir in $PATH; do
4433    IFS="$lt_save_ifs"
4434    test -z "$ac_dir" && ac_dir=.
4435    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4436      lt_cv_path_LD="$ac_dir/$ac_prog"
4437      # Check to see if the program is GNU ld.  I'd rather use --version,
4438      # but apparently some variants of GNU ld only accept -v.
4439      # Break only if it was the GNU/non-GNU ld that we prefer.
4440      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4441      *GNU* | *'with BFD'*)
4442	test "$with_gnu_ld" != no && break
4443	;;
4444      *)
4445	test "$with_gnu_ld" != yes && break
4446	;;
4447      esac
4448    fi
4449  done
4450  IFS="$lt_save_ifs"
4451else
4452  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4453fi
4454fi
4455
4456LD="$lt_cv_path_LD"
4457if test -n "$LD"; then
4458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4459$as_echo "$LD" >&6; }
4460else
4461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462$as_echo "no" >&6; }
4463fi
4464test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4466$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4467if ${lt_cv_prog_gnu_ld+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4471case `$LD -v 2>&1 </dev/null` in
4472*GNU* | *'with BFD'*)
4473  lt_cv_prog_gnu_ld=yes
4474  ;;
4475*)
4476  lt_cv_prog_gnu_ld=no
4477  ;;
4478esac
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4481$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4482with_gnu_ld=$lt_cv_prog_gnu_ld
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4493$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4494if ${lt_cv_path_NM+:} false; then :
4495  $as_echo_n "(cached) " >&6
4496else
4497  if test -n "$NM"; then
4498  # Let the user override the test.
4499  lt_cv_path_NM="$NM"
4500else
4501  lt_nm_to_check="${ac_tool_prefix}nm"
4502  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4503    lt_nm_to_check="$lt_nm_to_check nm"
4504  fi
4505  for lt_tmp_nm in $lt_nm_to_check; do
4506    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4507    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4508      IFS="$lt_save_ifs"
4509      test -z "$ac_dir" && ac_dir=.
4510      tmp_nm="$ac_dir/$lt_tmp_nm"
4511      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4512	# Check to see if the nm accepts a BSD-compat flag.
4513	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4514	#   nm: unknown option "B" ignored
4515	# Tru64's nm complains that /dev/null is an invalid object file
4516	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4517	*/dev/null* | *'Invalid file or object type'*)
4518	  lt_cv_path_NM="$tmp_nm -B"
4519	  break
4520	  ;;
4521	*)
4522	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4523	  */dev/null*)
4524	    lt_cv_path_NM="$tmp_nm -p"
4525	    break
4526	    ;;
4527	  *)
4528	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4529	    continue # so that we can try to find one that supports BSD flags
4530	    ;;
4531	  esac
4532	  ;;
4533	esac
4534      fi
4535    done
4536    IFS="$lt_save_ifs"
4537  done
4538  : ${lt_cv_path_NM=no}
4539fi
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4542$as_echo "$lt_cv_path_NM" >&6; }
4543if test "$lt_cv_path_NM" != "no"; then
4544  NM="$lt_cv_path_NM"
4545else
4546  # Didn't find any BSD compatible name lister, look for dumpbin.
4547  if test -n "$DUMPBIN"; then :
4548    # Let the user override the test.
4549  else
4550    if test -n "$ac_tool_prefix"; then
4551  for ac_prog in dumpbin "link -dump"
4552  do
4553    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556$as_echo_n "checking for $ac_word... " >&6; }
4557if ${ac_cv_prog_DUMPBIN+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  if test -n "$DUMPBIN"; then
4561  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572    break 2
4573  fi
4574done
4575  done
4576IFS=$as_save_IFS
4577
4578fi
4579fi
4580DUMPBIN=$ac_cv_prog_DUMPBIN
4581if test -n "$DUMPBIN"; then
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4583$as_echo "$DUMPBIN" >&6; }
4584else
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586$as_echo "no" >&6; }
4587fi
4588
4589
4590    test -n "$DUMPBIN" && break
4591  done
4592fi
4593if test -z "$DUMPBIN"; then
4594  ac_ct_DUMPBIN=$DUMPBIN
4595  for ac_prog in dumpbin "link -dump"
4596do
4597  # Extract the first word of "$ac_prog", so it can be a program name with args.
4598set dummy $ac_prog; ac_word=$2
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
4601if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  if test -n "$ac_ct_DUMPBIN"; then
4605  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612    for ac_exec_ext in '' $ac_executable_extensions; do
4613  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616    break 2
4617  fi
4618done
4619  done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4625if test -n "$ac_ct_DUMPBIN"; then
4626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4627$as_echo "$ac_ct_DUMPBIN" >&6; }
4628else
4629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631fi
4632
4633
4634  test -n "$ac_ct_DUMPBIN" && break
4635done
4636
4637  if test "x$ac_ct_DUMPBIN" = x; then
4638    DUMPBIN=":"
4639  else
4640    case $cross_compiling:$ac_tool_warned in
4641yes:)
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644ac_tool_warned=yes ;;
4645esac
4646    DUMPBIN=$ac_ct_DUMPBIN
4647  fi
4648fi
4649
4650    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4651    *COFF*)
4652      DUMPBIN="$DUMPBIN -symbols"
4653      ;;
4654    *)
4655      DUMPBIN=:
4656      ;;
4657    esac
4658  fi
4659
4660  if test "$DUMPBIN" != ":"; then
4661    NM="$DUMPBIN"
4662  fi
4663fi
4664test -z "$NM" && NM=nm
4665
4666
4667
4668
4669
4670
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4672$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4673if ${lt_cv_nm_interface+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  lt_cv_nm_interface="BSD nm"
4677  echo "int some_variable = 0;" > conftest.$ac_ext
4678  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4679  (eval "$ac_compile" 2>conftest.err)
4680  cat conftest.err >&5
4681  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4682  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4683  cat conftest.err >&5
4684  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4685  cat conftest.out >&5
4686  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4687    lt_cv_nm_interface="MS dumpbin"
4688  fi
4689  rm -f conftest*
4690fi
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4692$as_echo "$lt_cv_nm_interface" >&6; }
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4695$as_echo_n "checking whether ln -s works... " >&6; }
4696LN_S=$as_ln_s
4697if test "$LN_S" = "ln -s"; then
4698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4699$as_echo "yes" >&6; }
4700else
4701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4702$as_echo "no, using $LN_S" >&6; }
4703fi
4704
4705# find the maximum length of command line arguments
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4707$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4708if ${lt_cv_sys_max_cmd_len+:} false; then :
4709  $as_echo_n "(cached) " >&6
4710else
4711    i=0
4712  teststring="ABCD"
4713
4714  case $build_os in
4715  msdosdjgpp*)
4716    # On DJGPP, this test can blow up pretty badly due to problems in libc
4717    # (any single argument exceeding 2000 bytes causes a buffer overrun
4718    # during glob expansion).  Even if it were fixed, the result of this
4719    # check would be larger than it should be.
4720    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4721    ;;
4722
4723  gnu*)
4724    # Under GNU Hurd, this test is not required because there is
4725    # no limit to the length of command line arguments.
4726    # Libtool will interpret -1 as no limit whatsoever
4727    lt_cv_sys_max_cmd_len=-1;
4728    ;;
4729
4730  cygwin* | mingw* | cegcc*)
4731    # On Win9x/ME, this test blows up -- it succeeds, but takes
4732    # about 5 minutes as the teststring grows exponentially.
4733    # Worse, since 9x/ME are not pre-emptively multitasking,
4734    # you end up with a "frozen" computer, even though with patience
4735    # the test eventually succeeds (with a max line length of 256k).
4736    # Instead, let's just punt: use the minimum linelength reported by
4737    # all of the supported platforms: 8192 (on NT/2K/XP).
4738    lt_cv_sys_max_cmd_len=8192;
4739    ;;
4740
4741  mint*)
4742    # On MiNT this can take a long time and run out of memory.
4743    lt_cv_sys_max_cmd_len=8192;
4744    ;;
4745
4746  amigaos*)
4747    # On AmigaOS with pdksh, this test takes hours, literally.
4748    # So we just punt and use a minimum line length of 8192.
4749    lt_cv_sys_max_cmd_len=8192;
4750    ;;
4751
4752  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4753    # This has been around since 386BSD, at least.  Likely further.
4754    if test -x /sbin/sysctl; then
4755      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4756    elif test -x /usr/sbin/sysctl; then
4757      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4758    else
4759      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4760    fi
4761    # And add a safety zone
4762    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4763    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4764    ;;
4765
4766  interix*)
4767    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4768    lt_cv_sys_max_cmd_len=196608
4769    ;;
4770
4771  os2*)
4772    # The test takes a long time on OS/2.
4773    lt_cv_sys_max_cmd_len=8192
4774    ;;
4775
4776  osf*)
4777    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4778    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4779    # nice to cause kernel panics so lets avoid the loop below.
4780    # First set a reasonable default.
4781    lt_cv_sys_max_cmd_len=16384
4782    #
4783    if test -x /sbin/sysconfig; then
4784      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4785        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4786      esac
4787    fi
4788    ;;
4789  sco3.2v5*)
4790    lt_cv_sys_max_cmd_len=102400
4791    ;;
4792  sysv5* | sco5v6* | sysv4.2uw2*)
4793    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4794    if test -n "$kargmax"; then
4795      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4796    else
4797      lt_cv_sys_max_cmd_len=32768
4798    fi
4799    ;;
4800  *)
4801    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4802    if test -n "$lt_cv_sys_max_cmd_len" && \
4803	test undefined != "$lt_cv_sys_max_cmd_len"; then
4804      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4805      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4806    else
4807      # Make teststring a little bigger before we do anything with it.
4808      # a 1K string should be a reasonable start.
4809      for i in 1 2 3 4 5 6 7 8 ; do
4810        teststring=$teststring$teststring
4811      done
4812      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4813      # If test is not a shell built-in, we'll probably end up computing a
4814      # maximum length that is only half of the actual maximum length, but
4815      # we can't tell.
4816      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4817	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4818	      test $i != 17 # 1/2 MB should be enough
4819      do
4820        i=`expr $i + 1`
4821        teststring=$teststring$teststring
4822      done
4823      # Only check the string length outside the loop.
4824      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4825      teststring=
4826      # Add a significant safety factor because C++ compilers can tack on
4827      # massive amounts of additional arguments before passing them to the
4828      # linker.  It appears as though 1/2 is a usable value.
4829      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4830    fi
4831    ;;
4832  esac
4833
4834fi
4835
4836if test -n $lt_cv_sys_max_cmd_len ; then
4837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4838$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4839else
4840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4841$as_echo "none" >&6; }
4842fi
4843max_cmd_len=$lt_cv_sys_max_cmd_len
4844
4845
4846
4847
4848
4849
4850: ${CP="cp -f"}
4851: ${MV="mv -f"}
4852: ${RM="rm -f"}
4853
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4855$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4856# Try some XSI features
4857xsi_shell=no
4858( _lt_dummy="a/b/c"
4859  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4860      = c,a/b,b/c, \
4861    && eval 'test $(( 1 + 1 )) -eq 2 \
4862    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4863  && xsi_shell=yes
4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4865$as_echo "$xsi_shell" >&6; }
4866
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4869$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4870lt_shell_append=no
4871( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4872    >/dev/null 2>&1 \
4873  && lt_shell_append=yes
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4875$as_echo "$lt_shell_append" >&6; }
4876
4877
4878if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4879  lt_unset=unset
4880else
4881  lt_unset=false
4882fi
4883
4884
4885
4886
4887
4888# test EBCDIC or ASCII
4889case `echo X|tr X '\101'` in
4890 A) # ASCII based system
4891    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4892  lt_SP2NL='tr \040 \012'
4893  lt_NL2SP='tr \015\012 \040\040'
4894  ;;
4895 *) # EBCDIC based system
4896  lt_SP2NL='tr \100 \n'
4897  lt_NL2SP='tr \r\n \100\100'
4898  ;;
4899esac
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4910$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4911if ${lt_cv_to_host_file_cmd+:} false; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  case $host in
4915  *-*-mingw* )
4916    case $build in
4917      *-*-mingw* ) # actually msys
4918        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4919        ;;
4920      *-*-cygwin* )
4921        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4922        ;;
4923      * ) # otherwise, assume *nix
4924        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4925        ;;
4926    esac
4927    ;;
4928  *-*-cygwin* )
4929    case $build in
4930      *-*-mingw* ) # actually msys
4931        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4932        ;;
4933      *-*-cygwin* )
4934        lt_cv_to_host_file_cmd=func_convert_file_noop
4935        ;;
4936      * ) # otherwise, assume *nix
4937        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4938        ;;
4939    esac
4940    ;;
4941  * ) # unhandled hosts (and "normal" native builds)
4942    lt_cv_to_host_file_cmd=func_convert_file_noop
4943    ;;
4944esac
4945
4946fi
4947
4948to_host_file_cmd=$lt_cv_to_host_file_cmd
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4950$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4951
4952
4953
4954
4955
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4957$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4958if ${lt_cv_to_tool_file_cmd+:} false; then :
4959  $as_echo_n "(cached) " >&6
4960else
4961  #assume ordinary cross tools, or native build.
4962lt_cv_to_tool_file_cmd=func_convert_file_noop
4963case $host in
4964  *-*-mingw* )
4965    case $build in
4966      *-*-mingw* ) # actually msys
4967        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4968        ;;
4969    esac
4970    ;;
4971esac
4972
4973fi
4974
4975to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4977$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4978
4979
4980
4981
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4984$as_echo_n "checking for $LD option to reload object files... " >&6; }
4985if ${lt_cv_ld_reload_flag+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  lt_cv_ld_reload_flag='-r'
4989fi
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4991$as_echo "$lt_cv_ld_reload_flag" >&6; }
4992reload_flag=$lt_cv_ld_reload_flag
4993case $reload_flag in
4994"" | " "*) ;;
4995*) reload_flag=" $reload_flag" ;;
4996esac
4997reload_cmds='$LD$reload_flag -o $output$reload_objs'
4998case $host_os in
4999  cygwin* | mingw* | pw32* | cegcc*)
5000    if test "$GCC" != yes; then
5001      reload_cmds=false
5002    fi
5003    ;;
5004  darwin*)
5005    if test "$GCC" = yes; then
5006      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5007    else
5008      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5009    fi
5010    ;;
5011esac
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021if test -n "$ac_tool_prefix"; then
5022  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5023set dummy ${ac_tool_prefix}objdump; ac_word=$2
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025$as_echo_n "checking for $ac_word... " >&6; }
5026if ${ac_cv_prog_OBJDUMP+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  if test -n "$OBJDUMP"; then
5030  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5031else
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035  IFS=$as_save_IFS
5036  test -z "$as_dir" && as_dir=.
5037    for ac_exec_ext in '' $ac_executable_extensions; do
5038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041    break 2
5042  fi
5043done
5044  done
5045IFS=$as_save_IFS
5046
5047fi
5048fi
5049OBJDUMP=$ac_cv_prog_OBJDUMP
5050if test -n "$OBJDUMP"; then
5051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5052$as_echo "$OBJDUMP" >&6; }
5053else
5054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055$as_echo "no" >&6; }
5056fi
5057
5058
5059fi
5060if test -z "$ac_cv_prog_OBJDUMP"; then
5061  ac_ct_OBJDUMP=$OBJDUMP
5062  # Extract the first word of "objdump", so it can be a program name with args.
5063set dummy objdump; ac_word=$2
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065$as_echo_n "checking for $ac_word... " >&6; }
5066if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5067  $as_echo_n "(cached) " >&6
5068else
5069  if test -n "$ac_ct_OBJDUMP"; then
5070  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  test -z "$as_dir" && as_dir=.
5077    for ac_exec_ext in '' $ac_executable_extensions; do
5078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081    break 2
5082  fi
5083done
5084  done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5090if test -n "$ac_ct_OBJDUMP"; then
5091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5092$as_echo "$ac_ct_OBJDUMP" >&6; }
5093else
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095$as_echo "no" >&6; }
5096fi
5097
5098  if test "x$ac_ct_OBJDUMP" = x; then
5099    OBJDUMP="false"
5100  else
5101    case $cross_compiling:$ac_tool_warned in
5102yes:)
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105ac_tool_warned=yes ;;
5106esac
5107    OBJDUMP=$ac_ct_OBJDUMP
5108  fi
5109else
5110  OBJDUMP="$ac_cv_prog_OBJDUMP"
5111fi
5112
5113test -z "$OBJDUMP" && OBJDUMP=objdump
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5124$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5125if ${lt_cv_deplibs_check_method+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  lt_cv_file_magic_cmd='$MAGIC_CMD'
5129lt_cv_file_magic_test_file=
5130lt_cv_deplibs_check_method='unknown'
5131# Need to set the preceding variable on all platforms that support
5132# interlibrary dependencies.
5133# 'none' -- dependencies not supported.
5134# `unknown' -- same as none, but documents that we really don't know.
5135# 'pass_all' -- all dependencies passed with no checks.
5136# 'test_compile' -- check by making test program.
5137# 'file_magic [[regex]]' -- check by looking for files in library path
5138# which responds to the $file_magic_cmd with a given extended regex.
5139# If you have `file' or equivalent on your system and you're not sure
5140# whether `pass_all' will *always* work, you probably want this one.
5141
5142case $host_os in
5143aix[4-9]*)
5144  lt_cv_deplibs_check_method=pass_all
5145  ;;
5146
5147beos*)
5148  lt_cv_deplibs_check_method=pass_all
5149  ;;
5150
5151bsdi[45]*)
5152  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5153  lt_cv_file_magic_cmd='/usr/bin/file -L'
5154  lt_cv_file_magic_test_file=/shlib/libc.so
5155  ;;
5156
5157cygwin*)
5158  # func_win32_libid is a shell function defined in ltmain.sh
5159  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160  lt_cv_file_magic_cmd='func_win32_libid'
5161  ;;
5162
5163mingw* | pw32*)
5164  # Base MSYS/MinGW do not provide the 'file' command needed by
5165  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5166  # unless we find 'file', for example because we are cross-compiling.
5167  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5168  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5169    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5170    lt_cv_file_magic_cmd='func_win32_libid'
5171  else
5172    # Keep this pattern in sync with the one in func_win32_libid.
5173    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5174    lt_cv_file_magic_cmd='$OBJDUMP -f'
5175  fi
5176  ;;
5177
5178cegcc*)
5179  # use the weaker test based on 'objdump'. See mingw*.
5180  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5181  lt_cv_file_magic_cmd='$OBJDUMP -f'
5182  ;;
5183
5184darwin* | rhapsody*)
5185  lt_cv_deplibs_check_method=pass_all
5186  ;;
5187
5188freebsd* | dragonfly*)
5189  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5190    case $host_cpu in
5191    i*86 )
5192      # Not sure whether the presence of OpenBSD here was a mistake.
5193      # Let's accept both of them until this is cleared up.
5194      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5195      lt_cv_file_magic_cmd=/usr/bin/file
5196      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5197      ;;
5198    esac
5199  else
5200    lt_cv_deplibs_check_method=pass_all
5201  fi
5202  ;;
5203
5204haiku*)
5205  lt_cv_deplibs_check_method=pass_all
5206  ;;
5207
5208hpux10.20* | hpux11*)
5209  lt_cv_file_magic_cmd=/usr/bin/file
5210  case $host_cpu in
5211  ia64*)
5212    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5213    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5214    ;;
5215  hppa*64*)
5216    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]'
5217    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5218    ;;
5219  *)
5220    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5221    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5222    ;;
5223  esac
5224  ;;
5225
5226interix[3-9]*)
5227  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5228  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5229  ;;
5230
5231irix5* | irix6* | nonstopux*)
5232  case $LD in
5233  *-32|*"-32 ") libmagic=32-bit;;
5234  *-n32|*"-n32 ") libmagic=N32;;
5235  *-64|*"-64 ") libmagic=64-bit;;
5236  *) libmagic=never-match;;
5237  esac
5238  lt_cv_deplibs_check_method=pass_all
5239  ;;
5240
5241# This must be glibc/ELF.
5242linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5243  lt_cv_deplibs_check_method=pass_all
5244  ;;
5245
5246netbsd* | netbsdelf*-gnu)
5247  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5248    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5249  else
5250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5251  fi
5252  ;;
5253
5254newos6*)
5255  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5256  lt_cv_file_magic_cmd=/usr/bin/file
5257  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5258  ;;
5259
5260*nto* | *qnx*)
5261  lt_cv_deplibs_check_method=pass_all
5262  ;;
5263
5264openbsd*)
5265  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5266    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5267  else
5268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269  fi
5270  ;;
5271
5272osf3* | osf4* | osf5*)
5273  lt_cv_deplibs_check_method=pass_all
5274  ;;
5275
5276rdos*)
5277  lt_cv_deplibs_check_method=pass_all
5278  ;;
5279
5280solaris*)
5281  lt_cv_deplibs_check_method=pass_all
5282  ;;
5283
5284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5285  lt_cv_deplibs_check_method=pass_all
5286  ;;
5287
5288sysv4 | sysv4.3*)
5289  case $host_vendor in
5290  motorola)
5291    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]'
5292    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5293    ;;
5294  ncr)
5295    lt_cv_deplibs_check_method=pass_all
5296    ;;
5297  sequent)
5298    lt_cv_file_magic_cmd='/bin/file'
5299    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5300    ;;
5301  sni)
5302    lt_cv_file_magic_cmd='/bin/file'
5303    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5304    lt_cv_file_magic_test_file=/lib/libc.so
5305    ;;
5306  siemens)
5307    lt_cv_deplibs_check_method=pass_all
5308    ;;
5309  pc)
5310    lt_cv_deplibs_check_method=pass_all
5311    ;;
5312  esac
5313  ;;
5314
5315tpf*)
5316  lt_cv_deplibs_check_method=pass_all
5317  ;;
5318esac
5319
5320fi
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5322$as_echo "$lt_cv_deplibs_check_method" >&6; }
5323
5324file_magic_glob=
5325want_nocaseglob=no
5326if test "$build" = "$host"; then
5327  case $host_os in
5328  mingw* | pw32*)
5329    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5330      want_nocaseglob=yes
5331    else
5332      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5333    fi
5334    ;;
5335  esac
5336fi
5337
5338file_magic_cmd=$lt_cv_file_magic_cmd
5339deplibs_check_method=$lt_cv_deplibs_check_method
5340test -z "$deplibs_check_method" && deplibs_check_method=unknown
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363if test -n "$ac_tool_prefix"; then
5364  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5365set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367$as_echo_n "checking for $ac_word... " >&6; }
5368if ${ac_cv_prog_DLLTOOL+:} false; then :
5369  $as_echo_n "(cached) " >&6
5370else
5371  if test -n "$DLLTOOL"; then
5372  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379    for ac_exec_ext in '' $ac_executable_extensions; do
5380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383    break 2
5384  fi
5385done
5386  done
5387IFS=$as_save_IFS
5388
5389fi
5390fi
5391DLLTOOL=$ac_cv_prog_DLLTOOL
5392if test -n "$DLLTOOL"; then
5393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5394$as_echo "$DLLTOOL" >&6; }
5395else
5396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397$as_echo "no" >&6; }
5398fi
5399
5400
5401fi
5402if test -z "$ac_cv_prog_DLLTOOL"; then
5403  ac_ct_DLLTOOL=$DLLTOOL
5404  # Extract the first word of "dlltool", so it can be a program name with args.
5405set dummy dlltool; ac_word=$2
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407$as_echo_n "checking for $ac_word... " >&6; }
5408if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  if test -n "$ac_ct_DLLTOOL"; then
5412  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5413else
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417  IFS=$as_save_IFS
5418  test -z "$as_dir" && as_dir=.
5419    for ac_exec_ext in '' $ac_executable_extensions; do
5420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423    break 2
5424  fi
5425done
5426  done
5427IFS=$as_save_IFS
5428
5429fi
5430fi
5431ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5432if test -n "$ac_ct_DLLTOOL"; then
5433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5434$as_echo "$ac_ct_DLLTOOL" >&6; }
5435else
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437$as_echo "no" >&6; }
5438fi
5439
5440  if test "x$ac_ct_DLLTOOL" = x; then
5441    DLLTOOL="false"
5442  else
5443    case $cross_compiling:$ac_tool_warned in
5444yes:)
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447ac_tool_warned=yes ;;
5448esac
5449    DLLTOOL=$ac_ct_DLLTOOL
5450  fi
5451else
5452  DLLTOOL="$ac_cv_prog_DLLTOOL"
5453fi
5454
5455test -z "$DLLTOOL" && DLLTOOL=dlltool
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5467$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5468if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5469  $as_echo_n "(cached) " >&6
5470else
5471  lt_cv_sharedlib_from_linklib_cmd='unknown'
5472
5473case $host_os in
5474cygwin* | mingw* | pw32* | cegcc*)
5475  # two different shell functions defined in ltmain.sh
5476  # decide which to use based on capabilities of $DLLTOOL
5477  case `$DLLTOOL --help 2>&1` in
5478  *--identify-strict*)
5479    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5480    ;;
5481  *)
5482    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5483    ;;
5484  esac
5485  ;;
5486*)
5487  # fallback: assume linklib IS sharedlib
5488  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5489  ;;
5490esac
5491
5492fi
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5494$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5495sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5496test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5497
5498
5499
5500
5501
5502
5503
5504
5505if test -n "$ac_tool_prefix"; then
5506  for ac_prog in ar
5507  do
5508    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
5512if ${ac_cv_prog_AR+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  if test -n "$AR"; then
5516  ac_cv_prog_AR="$AR" # Let the user override the test.
5517else
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521  IFS=$as_save_IFS
5522  test -z "$as_dir" && as_dir=.
5523    for ac_exec_ext in '' $ac_executable_extensions; do
5524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527    break 2
5528  fi
5529done
5530  done
5531IFS=$as_save_IFS
5532
5533fi
5534fi
5535AR=$ac_cv_prog_AR
5536if test -n "$AR"; then
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5538$as_echo "$AR" >&6; }
5539else
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541$as_echo "no" >&6; }
5542fi
5543
5544
5545    test -n "$AR" && break
5546  done
5547fi
5548if test -z "$AR"; then
5549  ac_ct_AR=$AR
5550  for ac_prog in ar
5551do
5552  # Extract the first word of "$ac_prog", so it can be a program name with args.
5553set dummy $ac_prog; ac_word=$2
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555$as_echo_n "checking for $ac_word... " >&6; }
5556if ${ac_cv_prog_ac_ct_AR+:} false; then :
5557  $as_echo_n "(cached) " >&6
5558else
5559  if test -n "$ac_ct_AR"; then
5560  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565  IFS=$as_save_IFS
5566  test -z "$as_dir" && as_dir=.
5567    for ac_exec_ext in '' $ac_executable_extensions; do
5568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569    ac_cv_prog_ac_ct_AR="$ac_prog"
5570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571    break 2
5572  fi
5573done
5574  done
5575IFS=$as_save_IFS
5576
5577fi
5578fi
5579ac_ct_AR=$ac_cv_prog_ac_ct_AR
5580if test -n "$ac_ct_AR"; then
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5582$as_echo "$ac_ct_AR" >&6; }
5583else
5584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585$as_echo "no" >&6; }
5586fi
5587
5588
5589  test -n "$ac_ct_AR" && break
5590done
5591
5592  if test "x$ac_ct_AR" = x; then
5593    AR="false"
5594  else
5595    case $cross_compiling:$ac_tool_warned in
5596yes:)
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599ac_tool_warned=yes ;;
5600esac
5601    AR=$ac_ct_AR
5602  fi
5603fi
5604
5605: ${AR=ar}
5606: ${AR_FLAGS=cru}
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5619$as_echo_n "checking for archiver @FILE support... " >&6; }
5620if ${lt_cv_ar_at_file+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  lt_cv_ar_at_file=no
5624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626
5627int
5628main ()
5629{
5630
5631  ;
5632  return 0;
5633}
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then :
5636  echo conftest.$ac_objext > conftest.lst
5637      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5638      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5639  (eval $lt_ar_try) 2>&5
5640  ac_status=$?
5641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642  test $ac_status = 0; }
5643      if test "$ac_status" -eq 0; then
5644	# Ensure the archiver fails upon bogus file names.
5645	rm -f conftest.$ac_objext libconftest.a
5646	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5647  (eval $lt_ar_try) 2>&5
5648  ac_status=$?
5649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650  test $ac_status = 0; }
5651	if test "$ac_status" -ne 0; then
5652          lt_cv_ar_at_file=@
5653        fi
5654      fi
5655      rm -f conftest.* libconftest.a
5656
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5662$as_echo "$lt_cv_ar_at_file" >&6; }
5663
5664if test "x$lt_cv_ar_at_file" = xno; then
5665  archiver_list_spec=
5666else
5667  archiver_list_spec=$lt_cv_ar_at_file
5668fi
5669
5670
5671
5672
5673
5674
5675
5676if test -n "$ac_tool_prefix"; then
5677  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5678set dummy ${ac_tool_prefix}strip; ac_word=$2
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680$as_echo_n "checking for $ac_word... " >&6; }
5681if ${ac_cv_prog_STRIP+:} false; then :
5682  $as_echo_n "(cached) " >&6
5683else
5684  if test -n "$STRIP"; then
5685  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690  IFS=$as_save_IFS
5691  test -z "$as_dir" && as_dir=.
5692    for ac_exec_ext in '' $ac_executable_extensions; do
5693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696    break 2
5697  fi
5698done
5699  done
5700IFS=$as_save_IFS
5701
5702fi
5703fi
5704STRIP=$ac_cv_prog_STRIP
5705if test -n "$STRIP"; then
5706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5707$as_echo "$STRIP" >&6; }
5708else
5709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710$as_echo "no" >&6; }
5711fi
5712
5713
5714fi
5715if test -z "$ac_cv_prog_STRIP"; then
5716  ac_ct_STRIP=$STRIP
5717  # Extract the first word of "strip", so it can be a program name with args.
5718set dummy strip; ac_word=$2
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  if test -n "$ac_ct_STRIP"; then
5725  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730  IFS=$as_save_IFS
5731  test -z "$as_dir" && as_dir=.
5732    for ac_exec_ext in '' $ac_executable_extensions; do
5733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734    ac_cv_prog_ac_ct_STRIP="strip"
5735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736    break 2
5737  fi
5738done
5739  done
5740IFS=$as_save_IFS
5741
5742fi
5743fi
5744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5745if test -n "$ac_ct_STRIP"; then
5746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5747$as_echo "$ac_ct_STRIP" >&6; }
5748else
5749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
5751fi
5752
5753  if test "x$ac_ct_STRIP" = x; then
5754    STRIP=":"
5755  else
5756    case $cross_compiling:$ac_tool_warned in
5757yes:)
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760ac_tool_warned=yes ;;
5761esac
5762    STRIP=$ac_ct_STRIP
5763  fi
5764else
5765  STRIP="$ac_cv_prog_STRIP"
5766fi
5767
5768test -z "$STRIP" && STRIP=:
5769
5770
5771
5772
5773
5774
5775if test -n "$ac_tool_prefix"; then
5776  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5777set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779$as_echo_n "checking for $ac_word... " >&6; }
5780if ${ac_cv_prog_RANLIB+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  if test -n "$RANLIB"; then
5784  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5785else
5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787for as_dir in $PATH
5788do
5789  IFS=$as_save_IFS
5790  test -z "$as_dir" && as_dir=.
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795    break 2
5796  fi
5797done
5798  done
5799IFS=$as_save_IFS
5800
5801fi
5802fi
5803RANLIB=$ac_cv_prog_RANLIB
5804if test -n "$RANLIB"; then
5805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5806$as_echo "$RANLIB" >&6; }
5807else
5808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809$as_echo "no" >&6; }
5810fi
5811
5812
5813fi
5814if test -z "$ac_cv_prog_RANLIB"; then
5815  ac_ct_RANLIB=$RANLIB
5816  # Extract the first word of "ranlib", so it can be a program name with args.
5817set dummy ranlib; ac_word=$2
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5821  $as_echo_n "(cached) " >&6
5822else
5823  if test -n "$ac_ct_RANLIB"; then
5824  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829  IFS=$as_save_IFS
5830  test -z "$as_dir" && as_dir=.
5831    for ac_exec_ext in '' $ac_executable_extensions; do
5832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833    ac_cv_prog_ac_ct_RANLIB="ranlib"
5834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835    break 2
5836  fi
5837done
5838  done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5844if test -n "$ac_ct_RANLIB"; then
5845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5846$as_echo "$ac_ct_RANLIB" >&6; }
5847else
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852  if test "x$ac_ct_RANLIB" = x; then
5853    RANLIB=":"
5854  else
5855    case $cross_compiling:$ac_tool_warned in
5856yes:)
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859ac_tool_warned=yes ;;
5860esac
5861    RANLIB=$ac_ct_RANLIB
5862  fi
5863else
5864  RANLIB="$ac_cv_prog_RANLIB"
5865fi
5866
5867test -z "$RANLIB" && RANLIB=:
5868
5869
5870
5871
5872
5873
5874# Determine commands to create old-style static archives.
5875old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5876old_postinstall_cmds='chmod 644 $oldlib'
5877old_postuninstall_cmds=
5878
5879if test -n "$RANLIB"; then
5880  case $host_os in
5881  openbsd*)
5882    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5883    ;;
5884  *)
5885    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5886    ;;
5887  esac
5888  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5889fi
5890
5891case $host_os in
5892  darwin*)
5893    lock_old_archive_extraction=yes ;;
5894  *)
5895    lock_old_archive_extraction=no ;;
5896esac
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936# If no C compiler was specified, use CC.
5937LTCC=${LTCC-"$CC"}
5938
5939# If no C compiler flags were specified, use CFLAGS.
5940LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5941
5942# Allow CC to be a program name with arguments.
5943compiler=$CC
5944
5945
5946# Check for command to grab the raw symbol name followed by C symbol from nm.
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5948$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5949if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952
5953# These are sane defaults that work on at least a few old systems.
5954# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5955
5956# Character class describing NM global symbol codes.
5957symcode='[BCDEGRST]'
5958
5959# Regexp to match symbols that can be accessed directly from C.
5960sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5961
5962# Define system-specific variables.
5963case $host_os in
5964aix*)
5965  symcode='[BCDT]'
5966  ;;
5967cygwin* | mingw* | pw32* | cegcc*)
5968  symcode='[ABCDGISTW]'
5969  ;;
5970hpux*)
5971  if test "$host_cpu" = ia64; then
5972    symcode='[ABCDEGRST]'
5973  fi
5974  ;;
5975irix* | nonstopux*)
5976  symcode='[BCDEGRST]'
5977  ;;
5978osf*)
5979  symcode='[BCDEGQRST]'
5980  ;;
5981solaris*)
5982  symcode='[BDRT]'
5983  ;;
5984sco3.2v5*)
5985  symcode='[DT]'
5986  ;;
5987sysv4.2uw2*)
5988  symcode='[DT]'
5989  ;;
5990sysv5* | sco5v6* | unixware* | OpenUNIX*)
5991  symcode='[ABDT]'
5992  ;;
5993sysv4)
5994  symcode='[DFNSTU]'
5995  ;;
5996esac
5997
5998# If we're using GNU nm, then use its standard symbol codes.
5999case `$NM -V 2>&1` in
6000*GNU* | *'with BFD'*)
6001  symcode='[ABCDGIRSTW]' ;;
6002esac
6003
6004# Transform an extracted symbol line into a proper C declaration.
6005# Some systems (esp. on ia64) link data and code symbols differently,
6006# so use this general approach.
6007lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6008
6009# Transform an extracted symbol line into symbol name and symbol address
6010lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6011lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6012
6013# Handle CRLF in mingw tool chain
6014opt_cr=
6015case $build_os in
6016mingw*)
6017  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6018  ;;
6019esac
6020
6021# Try without a prefix underscore, then with it.
6022for ac_symprfx in "" "_"; do
6023
6024  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6025  symxfrm="\\1 $ac_symprfx\\2 \\2"
6026
6027  # Write the raw and C identifiers.
6028  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6029    # Fake it for dumpbin and say T for any non-static function
6030    # and D for any global variable.
6031    # Also find C++ and __fastcall symbols from MSVC++,
6032    # which start with @ or ?.
6033    lt_cv_sys_global_symbol_pipe="$AWK '"\
6034"     {last_section=section; section=\$ 3};"\
6035"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6036"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6037"     \$ 0!~/External *\|/{next};"\
6038"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6039"     {if(hide[section]) next};"\
6040"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6041"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6042"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6043"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6044"     ' prfx=^$ac_symprfx"
6045  else
6046    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6047  fi
6048  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6049
6050  # Check to see that the pipe works correctly.
6051  pipe_works=no
6052
6053  rm -f conftest*
6054  cat > conftest.$ac_ext <<_LT_EOF
6055#ifdef __cplusplus
6056extern "C" {
6057#endif
6058char nm_test_var;
6059void nm_test_func(void);
6060void nm_test_func(void){}
6061#ifdef __cplusplus
6062}
6063#endif
6064int main(){nm_test_var='a';nm_test_func();return(0);}
6065_LT_EOF
6066
6067  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6068  (eval $ac_compile) 2>&5
6069  ac_status=$?
6070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071  test $ac_status = 0; }; then
6072    # Now try to grab the symbols.
6073    nlist=conftest.nm
6074    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6075  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6076  ac_status=$?
6077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078  test $ac_status = 0; } && test -s "$nlist"; then
6079      # Try sorting and uniquifying the output.
6080      if sort "$nlist" | uniq > "$nlist"T; then
6081	mv -f "$nlist"T "$nlist"
6082      else
6083	rm -f "$nlist"T
6084      fi
6085
6086      # Make sure that we snagged all the symbols we need.
6087      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6088	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6089	  cat <<_LT_EOF > conftest.$ac_ext
6090/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6091#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6092/* DATA imports from DLLs on WIN32 con't be const, because runtime
6093   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6094# define LT_DLSYM_CONST
6095#elif defined(__osf__)
6096/* This system does not cope well with relocations in const data.  */
6097# define LT_DLSYM_CONST
6098#else
6099# define LT_DLSYM_CONST const
6100#endif
6101
6102#ifdef __cplusplus
6103extern "C" {
6104#endif
6105
6106_LT_EOF
6107	  # Now generate the symbol file.
6108	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6109
6110	  cat <<_LT_EOF >> conftest.$ac_ext
6111
6112/* The mapping between symbol names and symbols.  */
6113LT_DLSYM_CONST struct {
6114  const char *name;
6115  void       *address;
6116}
6117lt__PROGRAM__LTX_preloaded_symbols[] =
6118{
6119  { "@PROGRAM@", (void *) 0 },
6120_LT_EOF
6121	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6122	  cat <<\_LT_EOF >> conftest.$ac_ext
6123  {0, (void *) 0}
6124};
6125
6126/* This works around a problem in FreeBSD linker */
6127#ifdef FREEBSD_WORKAROUND
6128static const void *lt_preloaded_setup() {
6129  return lt__PROGRAM__LTX_preloaded_symbols;
6130}
6131#endif
6132
6133#ifdef __cplusplus
6134}
6135#endif
6136_LT_EOF
6137	  # Now try linking the two files.
6138	  mv conftest.$ac_objext conftstm.$ac_objext
6139	  lt_globsym_save_LIBS=$LIBS
6140	  lt_globsym_save_CFLAGS=$CFLAGS
6141	  LIBS="conftstm.$ac_objext"
6142	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6143	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6144  (eval $ac_link) 2>&5
6145  ac_status=$?
6146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6148	    pipe_works=yes
6149	  fi
6150	  LIBS=$lt_globsym_save_LIBS
6151	  CFLAGS=$lt_globsym_save_CFLAGS
6152	else
6153	  echo "cannot find nm_test_func in $nlist" >&5
6154	fi
6155      else
6156	echo "cannot find nm_test_var in $nlist" >&5
6157      fi
6158    else
6159      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6160    fi
6161  else
6162    echo "$progname: failed program was:" >&5
6163    cat conftest.$ac_ext >&5
6164  fi
6165  rm -rf conftest* conftst*
6166
6167  # Do not use the global_symbol_pipe unless it works.
6168  if test "$pipe_works" = yes; then
6169    break
6170  else
6171    lt_cv_sys_global_symbol_pipe=
6172  fi
6173done
6174
6175fi
6176
6177if test -z "$lt_cv_sys_global_symbol_pipe"; then
6178  lt_cv_sys_global_symbol_to_cdecl=
6179fi
6180if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6182$as_echo "failed" >&6; }
6183else
6184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6185$as_echo "ok" >&6; }
6186fi
6187
6188# Response file support.
6189if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6190  nm_file_list_spec='@'
6191elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6192  nm_file_list_spec='@'
6193fi
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6222$as_echo_n "checking for sysroot... " >&6; }
6223
6224# Check whether --with-sysroot was given.
6225if test "${with_sysroot+set}" = set; then :
6226  withval=$with_sysroot;
6227else
6228  with_sysroot=no
6229fi
6230
6231
6232lt_sysroot=
6233case ${with_sysroot} in #(
6234 yes)
6235   if test "$GCC" = yes; then
6236     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6237   fi
6238   ;; #(
6239 /*)
6240   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6241   ;; #(
6242 no|'')
6243   ;; #(
6244 *)
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6246$as_echo "${with_sysroot}" >&6; }
6247   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6248   ;;
6249esac
6250
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6252$as_echo "${lt_sysroot:-no}" >&6; }
6253
6254
6255
6256
6257
6258# Check whether --enable-libtool-lock was given.
6259if test "${enable_libtool_lock+set}" = set; then :
6260  enableval=$enable_libtool_lock;
6261fi
6262
6263test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6264
6265# Some flags need to be propagated to the compiler or linker for good
6266# libtool support.
6267case $host in
6268ia64-*-hpux*)
6269  # Find out which ABI we are using.
6270  echo 'int i;' > conftest.$ac_ext
6271  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6272  (eval $ac_compile) 2>&5
6273  ac_status=$?
6274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275  test $ac_status = 0; }; then
6276    case `/usr/bin/file conftest.$ac_objext` in
6277      *ELF-32*)
6278	HPUX_IA64_MODE="32"
6279	;;
6280      *ELF-64*)
6281	HPUX_IA64_MODE="64"
6282	;;
6283    esac
6284  fi
6285  rm -rf conftest*
6286  ;;
6287*-*-irix6*)
6288  # Find out which ABI we are using.
6289  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6290  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6291  (eval $ac_compile) 2>&5
6292  ac_status=$?
6293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294  test $ac_status = 0; }; then
6295    if test "$lt_cv_prog_gnu_ld" = yes; then
6296      case `/usr/bin/file conftest.$ac_objext` in
6297	*32-bit*)
6298	  LD="${LD-ld} -melf32bsmip"
6299	  ;;
6300	*N32*)
6301	  LD="${LD-ld} -melf32bmipn32"
6302	  ;;
6303	*64-bit*)
6304	  LD="${LD-ld} -melf64bmip"
6305	;;
6306      esac
6307    else
6308      case `/usr/bin/file conftest.$ac_objext` in
6309	*32-bit*)
6310	  LD="${LD-ld} -32"
6311	  ;;
6312	*N32*)
6313	  LD="${LD-ld} -n32"
6314	  ;;
6315	*64-bit*)
6316	  LD="${LD-ld} -64"
6317	  ;;
6318      esac
6319    fi
6320  fi
6321  rm -rf conftest*
6322  ;;
6323
6324x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6325s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6326  # Find out which ABI we are using.
6327  echo 'int i;' > conftest.$ac_ext
6328  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329  (eval $ac_compile) 2>&5
6330  ac_status=$?
6331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332  test $ac_status = 0; }; then
6333    case `/usr/bin/file conftest.o` in
6334      *32-bit*)
6335	case $host in
6336	  x86_64-*kfreebsd*-gnu)
6337	    LD="${LD-ld} -m elf_i386_fbsd"
6338	    ;;
6339	  x86_64-*linux*)
6340	    case `/usr/bin/file conftest.o` in
6341	      *x86-64*)
6342		LD="${LD-ld} -m elf32_x86_64"
6343		;;
6344	      *)
6345		LD="${LD-ld} -m elf_i386"
6346		;;
6347	    esac
6348	    ;;
6349	  powerpc64le-*)
6350	    LD="${LD-ld} -m elf32lppclinux"
6351	    ;;
6352	  powerpc64-*)
6353	    LD="${LD-ld} -m elf32ppclinux"
6354	    ;;
6355	  s390x-*linux*)
6356	    LD="${LD-ld} -m elf_s390"
6357	    ;;
6358	  sparc64-*linux*)
6359	    LD="${LD-ld} -m elf32_sparc"
6360	    ;;
6361	esac
6362	;;
6363      *64-bit*)
6364	case $host in
6365	  x86_64-*kfreebsd*-gnu)
6366	    LD="${LD-ld} -m elf_x86_64_fbsd"
6367	    ;;
6368	  x86_64-*linux*)
6369	    LD="${LD-ld} -m elf_x86_64"
6370	    ;;
6371	  powerpcle-*)
6372	    LD="${LD-ld} -m elf64lppc"
6373	    ;;
6374	  powerpc-*)
6375	    LD="${LD-ld} -m elf64ppc"
6376	    ;;
6377	  s390*-*linux*|s390*-*tpf*)
6378	    LD="${LD-ld} -m elf64_s390"
6379	    ;;
6380	  sparc*-*linux*)
6381	    LD="${LD-ld} -m elf64_sparc"
6382	    ;;
6383	esac
6384	;;
6385    esac
6386  fi
6387  rm -rf conftest*
6388  ;;
6389
6390*-*-sco3.2v5*)
6391  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6392  SAVE_CFLAGS="$CFLAGS"
6393  CFLAGS="$CFLAGS -belf"
6394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6395$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6396if ${lt_cv_cc_needs_belf+:} false; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  ac_ext=c
6400ac_cpp='$CPP $CPPFLAGS'
6401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6403ac_compiler_gnu=$ac_cv_c_compiler_gnu
6404
6405     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h.  */
6407
6408int
6409main ()
6410{
6411
6412  ;
6413  return 0;
6414}
6415_ACEOF
6416if ac_fn_c_try_link "$LINENO"; then :
6417  lt_cv_cc_needs_belf=yes
6418else
6419  lt_cv_cc_needs_belf=no
6420fi
6421rm -f core conftest.err conftest.$ac_objext \
6422    conftest$ac_exeext conftest.$ac_ext
6423     ac_ext=c
6424ac_cpp='$CPP $CPPFLAGS'
6425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427ac_compiler_gnu=$ac_cv_c_compiler_gnu
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6431$as_echo "$lt_cv_cc_needs_belf" >&6; }
6432  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6433    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6434    CFLAGS="$SAVE_CFLAGS"
6435  fi
6436  ;;
6437*-*solaris*)
6438  # Find out which ABI we are using.
6439  echo 'int i;' > conftest.$ac_ext
6440  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441  (eval $ac_compile) 2>&5
6442  ac_status=$?
6443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444  test $ac_status = 0; }; then
6445    case `/usr/bin/file conftest.o` in
6446    *64-bit*)
6447      case $lt_cv_prog_gnu_ld in
6448      yes*)
6449        case $host in
6450        i?86-*-solaris*)
6451          LD="${LD-ld} -m elf_x86_64"
6452          ;;
6453        sparc*-*-solaris*)
6454          LD="${LD-ld} -m elf64_sparc"
6455          ;;
6456        esac
6457        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6458        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6459          LD="${LD-ld}_sol2"
6460        fi
6461        ;;
6462      *)
6463	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6464	  LD="${LD-ld} -64"
6465	fi
6466	;;
6467      esac
6468      ;;
6469    esac
6470  fi
6471  rm -rf conftest*
6472  ;;
6473esac
6474
6475need_locks="$enable_libtool_lock"
6476
6477if test -n "$ac_tool_prefix"; then
6478  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6479set dummy ${ac_tool_prefix}mt; ac_word=$2
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481$as_echo_n "checking for $ac_word... " >&6; }
6482if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6483  $as_echo_n "(cached) " >&6
6484else
6485  if test -n "$MANIFEST_TOOL"; then
6486  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6487else
6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489for as_dir in $PATH
6490do
6491  IFS=$as_save_IFS
6492  test -z "$as_dir" && as_dir=.
6493    for ac_exec_ext in '' $ac_executable_extensions; do
6494  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6496    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497    break 2
6498  fi
6499done
6500  done
6501IFS=$as_save_IFS
6502
6503fi
6504fi
6505MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6506if test -n "$MANIFEST_TOOL"; then
6507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6508$as_echo "$MANIFEST_TOOL" >&6; }
6509else
6510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511$as_echo "no" >&6; }
6512fi
6513
6514
6515fi
6516if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6517  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6518  # Extract the first word of "mt", so it can be a program name with args.
6519set dummy mt; ac_word=$2
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521$as_echo_n "checking for $ac_word... " >&6; }
6522if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6523  $as_echo_n "(cached) " >&6
6524else
6525  if test -n "$ac_ct_MANIFEST_TOOL"; then
6526  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6527else
6528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531  IFS=$as_save_IFS
6532  test -z "$as_dir" && as_dir=.
6533    for ac_exec_ext in '' $ac_executable_extensions; do
6534  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6536    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537    break 2
6538  fi
6539done
6540  done
6541IFS=$as_save_IFS
6542
6543fi
6544fi
6545ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6546if test -n "$ac_ct_MANIFEST_TOOL"; then
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6548$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6549else
6550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551$as_echo "no" >&6; }
6552fi
6553
6554  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6555    MANIFEST_TOOL=":"
6556  else
6557    case $cross_compiling:$ac_tool_warned in
6558yes:)
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561ac_tool_warned=yes ;;
6562esac
6563    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6564  fi
6565else
6566  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6567fi
6568
6569test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6571$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6572if ${lt_cv_path_mainfest_tool+:} false; then :
6573  $as_echo_n "(cached) " >&6
6574else
6575  lt_cv_path_mainfest_tool=no
6576  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6577  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6578  cat conftest.err >&5
6579  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6580    lt_cv_path_mainfest_tool=yes
6581  fi
6582  rm -f conftest*
6583fi
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6585$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6586if test "x$lt_cv_path_mainfest_tool" != xyes; then
6587  MANIFEST_TOOL=:
6588fi
6589
6590
6591
6592
6593
6594
6595  case $host_os in
6596    rhapsody* | darwin*)
6597    if test -n "$ac_tool_prefix"; then
6598  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6599set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601$as_echo_n "checking for $ac_word... " >&6; }
6602if ${ac_cv_prog_DSYMUTIL+:} false; then :
6603  $as_echo_n "(cached) " >&6
6604else
6605  if test -n "$DSYMUTIL"; then
6606  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6607else
6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611  IFS=$as_save_IFS
6612  test -z "$as_dir" && as_dir=.
6613    for ac_exec_ext in '' $ac_executable_extensions; do
6614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6615    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617    break 2
6618  fi
6619done
6620  done
6621IFS=$as_save_IFS
6622
6623fi
6624fi
6625DSYMUTIL=$ac_cv_prog_DSYMUTIL
6626if test -n "$DSYMUTIL"; then
6627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6628$as_echo "$DSYMUTIL" >&6; }
6629else
6630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631$as_echo "no" >&6; }
6632fi
6633
6634
6635fi
6636if test -z "$ac_cv_prog_DSYMUTIL"; then
6637  ac_ct_DSYMUTIL=$DSYMUTIL
6638  # Extract the first word of "dsymutil", so it can be a program name with args.
6639set dummy dsymutil; ac_word=$2
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  if test -n "$ac_ct_DSYMUTIL"; then
6646  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653    for ac_exec_ext in '' $ac_executable_extensions; do
6654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660  done
6661IFS=$as_save_IFS
6662
6663fi
6664fi
6665ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6666if test -n "$ac_ct_DSYMUTIL"; then
6667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6668$as_echo "$ac_ct_DSYMUTIL" >&6; }
6669else
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674  if test "x$ac_ct_DSYMUTIL" = x; then
6675    DSYMUTIL=":"
6676  else
6677    case $cross_compiling:$ac_tool_warned in
6678yes:)
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681ac_tool_warned=yes ;;
6682esac
6683    DSYMUTIL=$ac_ct_DSYMUTIL
6684  fi
6685else
6686  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6687fi
6688
6689    if test -n "$ac_tool_prefix"; then
6690  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6691set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if ${ac_cv_prog_NMEDIT+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  if test -n "$NMEDIT"; then
6698  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703  IFS=$as_save_IFS
6704  test -z "$as_dir" && as_dir=.
6705    for ac_exec_ext in '' $ac_executable_extensions; do
6706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709    break 2
6710  fi
6711done
6712  done
6713IFS=$as_save_IFS
6714
6715fi
6716fi
6717NMEDIT=$ac_cv_prog_NMEDIT
6718if test -n "$NMEDIT"; then
6719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6720$as_echo "$NMEDIT" >&6; }
6721else
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723$as_echo "no" >&6; }
6724fi
6725
6726
6727fi
6728if test -z "$ac_cv_prog_NMEDIT"; then
6729  ac_ct_NMEDIT=$NMEDIT
6730  # Extract the first word of "nmedit", so it can be a program name with args.
6731set dummy nmedit; ac_word=$2
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733$as_echo_n "checking for $ac_word... " >&6; }
6734if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  if test -n "$ac_ct_NMEDIT"; then
6738  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6739else
6740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741for as_dir in $PATH
6742do
6743  IFS=$as_save_IFS
6744  test -z "$as_dir" && as_dir=.
6745    for ac_exec_ext in '' $ac_executable_extensions; do
6746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749    break 2
6750  fi
6751done
6752  done
6753IFS=$as_save_IFS
6754
6755fi
6756fi
6757ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6758if test -n "$ac_ct_NMEDIT"; then
6759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6760$as_echo "$ac_ct_NMEDIT" >&6; }
6761else
6762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763$as_echo "no" >&6; }
6764fi
6765
6766  if test "x$ac_ct_NMEDIT" = x; then
6767    NMEDIT=":"
6768  else
6769    case $cross_compiling:$ac_tool_warned in
6770yes:)
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773ac_tool_warned=yes ;;
6774esac
6775    NMEDIT=$ac_ct_NMEDIT
6776  fi
6777else
6778  NMEDIT="$ac_cv_prog_NMEDIT"
6779fi
6780
6781    if test -n "$ac_tool_prefix"; then
6782  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6783set dummy ${ac_tool_prefix}lipo; ac_word=$2
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785$as_echo_n "checking for $ac_word... " >&6; }
6786if ${ac_cv_prog_LIPO+:} false; then :
6787  $as_echo_n "(cached) " >&6
6788else
6789  if test -n "$LIPO"; then
6790  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795  IFS=$as_save_IFS
6796  test -z "$as_dir" && as_dir=.
6797    for ac_exec_ext in '' $ac_executable_extensions; do
6798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801    break 2
6802  fi
6803done
6804  done
6805IFS=$as_save_IFS
6806
6807fi
6808fi
6809LIPO=$ac_cv_prog_LIPO
6810if test -n "$LIPO"; then
6811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6812$as_echo "$LIPO" >&6; }
6813else
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
6816fi
6817
6818
6819fi
6820if test -z "$ac_cv_prog_LIPO"; then
6821  ac_ct_LIPO=$LIPO
6822  # Extract the first word of "lipo", so it can be a program name with args.
6823set dummy lipo; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6827  $as_echo_n "(cached) " >&6
6828else
6829  if test -n "$ac_ct_LIPO"; then
6830  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835  IFS=$as_save_IFS
6836  test -z "$as_dir" && as_dir=.
6837    for ac_exec_ext in '' $ac_executable_extensions; do
6838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839    ac_cv_prog_ac_ct_LIPO="lipo"
6840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841    break 2
6842  fi
6843done
6844  done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6850if test -n "$ac_ct_LIPO"; then
6851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6852$as_echo "$ac_ct_LIPO" >&6; }
6853else
6854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858  if test "x$ac_ct_LIPO" = x; then
6859    LIPO=":"
6860  else
6861    case $cross_compiling:$ac_tool_warned in
6862yes:)
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865ac_tool_warned=yes ;;
6866esac
6867    LIPO=$ac_ct_LIPO
6868  fi
6869else
6870  LIPO="$ac_cv_prog_LIPO"
6871fi
6872
6873    if test -n "$ac_tool_prefix"; then
6874  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6875set dummy ${ac_tool_prefix}otool; ac_word=$2
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877$as_echo_n "checking for $ac_word... " >&6; }
6878if ${ac_cv_prog_OTOOL+:} false; then :
6879  $as_echo_n "(cached) " >&6
6880else
6881  if test -n "$OTOOL"; then
6882  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  test -z "$as_dir" && as_dir=.
6889    for ac_exec_ext in '' $ac_executable_extensions; do
6890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893    break 2
6894  fi
6895done
6896  done
6897IFS=$as_save_IFS
6898
6899fi
6900fi
6901OTOOL=$ac_cv_prog_OTOOL
6902if test -n "$OTOOL"; then
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6904$as_echo "$OTOOL" >&6; }
6905else
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907$as_echo "no" >&6; }
6908fi
6909
6910
6911fi
6912if test -z "$ac_cv_prog_OTOOL"; then
6913  ac_ct_OTOOL=$OTOOL
6914  # Extract the first word of "otool", so it can be a program name with args.
6915set dummy otool; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
6918if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  if test -n "$ac_ct_OTOOL"; then
6922  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927  IFS=$as_save_IFS
6928  test -z "$as_dir" && as_dir=.
6929    for ac_exec_ext in '' $ac_executable_extensions; do
6930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931    ac_cv_prog_ac_ct_OTOOL="otool"
6932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933    break 2
6934  fi
6935done
6936  done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6942if test -n "$ac_ct_OTOOL"; then
6943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6944$as_echo "$ac_ct_OTOOL" >&6; }
6945else
6946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950  if test "x$ac_ct_OTOOL" = x; then
6951    OTOOL=":"
6952  else
6953    case $cross_compiling:$ac_tool_warned in
6954yes:)
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957ac_tool_warned=yes ;;
6958esac
6959    OTOOL=$ac_ct_OTOOL
6960  fi
6961else
6962  OTOOL="$ac_cv_prog_OTOOL"
6963fi
6964
6965    if test -n "$ac_tool_prefix"; then
6966  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6967set dummy ${ac_tool_prefix}otool64; ac_word=$2
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969$as_echo_n "checking for $ac_word... " >&6; }
6970if ${ac_cv_prog_OTOOL64+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  if test -n "$OTOOL64"; then
6974  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6975else
6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979  IFS=$as_save_IFS
6980  test -z "$as_dir" && as_dir=.
6981    for ac_exec_ext in '' $ac_executable_extensions; do
6982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985    break 2
6986  fi
6987done
6988  done
6989IFS=$as_save_IFS
6990
6991fi
6992fi
6993OTOOL64=$ac_cv_prog_OTOOL64
6994if test -n "$OTOOL64"; then
6995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6996$as_echo "$OTOOL64" >&6; }
6997else
6998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999$as_echo "no" >&6; }
7000fi
7001
7002
7003fi
7004if test -z "$ac_cv_prog_OTOOL64"; then
7005  ac_ct_OTOOL64=$OTOOL64
7006  # Extract the first word of "otool64", so it can be a program name with args.
7007set dummy otool64; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  if test -n "$ac_ct_OTOOL64"; then
7014  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019  IFS=$as_save_IFS
7020  test -z "$as_dir" && as_dir=.
7021    for ac_exec_ext in '' $ac_executable_extensions; do
7022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023    ac_cv_prog_ac_ct_OTOOL64="otool64"
7024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025    break 2
7026  fi
7027done
7028  done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7034if test -n "$ac_ct_OTOOL64"; then
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7036$as_echo "$ac_ct_OTOOL64" >&6; }
7037else
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042  if test "x$ac_ct_OTOOL64" = x; then
7043    OTOOL64=":"
7044  else
7045    case $cross_compiling:$ac_tool_warned in
7046yes:)
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049ac_tool_warned=yes ;;
7050esac
7051    OTOOL64=$ac_ct_OTOOL64
7052  fi
7053else
7054  OTOOL64="$ac_cv_prog_OTOOL64"
7055fi
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7084$as_echo_n "checking for -single_module linker flag... " >&6; }
7085if ${lt_cv_apple_cc_single_mod+:} false; then :
7086  $as_echo_n "(cached) " >&6
7087else
7088  lt_cv_apple_cc_single_mod=no
7089      if test -z "${LT_MULTI_MODULE}"; then
7090	# By default we will add the -single_module flag. You can override
7091	# by either setting the environment variable LT_MULTI_MODULE
7092	# non-empty at configure time, or by adding -multi_module to the
7093	# link flags.
7094	rm -rf libconftest.dylib*
7095	echo "int foo(void){return 1;}" > conftest.c
7096	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7097-dynamiclib -Wl,-single_module conftest.c" >&5
7098	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7099	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7100        _lt_result=$?
7101	# If there is a non-empty error log, and "single_module"
7102	# appears in it, assume the flag caused a linker warning
7103        if test -s conftest.err && $GREP single_module conftest.err; then
7104	  cat conftest.err >&5
7105	# Otherwise, if the output was created with a 0 exit code from
7106	# the compiler, it worked.
7107	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7108	  lt_cv_apple_cc_single_mod=yes
7109	else
7110	  cat conftest.err >&5
7111	fi
7112	rm -rf libconftest.dylib*
7113	rm -f conftest.*
7114      fi
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7117$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7118
7119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7120$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7121if ${lt_cv_ld_exported_symbols_list+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  lt_cv_ld_exported_symbols_list=no
7125      save_LDFLAGS=$LDFLAGS
7126      echo "_main" > conftest.sym
7127      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129/* end confdefs.h.  */
7130
7131int
7132main ()
7133{
7134
7135  ;
7136  return 0;
7137}
7138_ACEOF
7139if ac_fn_c_try_link "$LINENO"; then :
7140  lt_cv_ld_exported_symbols_list=yes
7141else
7142  lt_cv_ld_exported_symbols_list=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext \
7145    conftest$ac_exeext conftest.$ac_ext
7146	LDFLAGS="$save_LDFLAGS"
7147
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7150$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7151
7152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7153$as_echo_n "checking for -force_load linker flag... " >&6; }
7154if ${lt_cv_ld_force_load+:} false; then :
7155  $as_echo_n "(cached) " >&6
7156else
7157  lt_cv_ld_force_load=no
7158      cat > conftest.c << _LT_EOF
7159int forced_loaded() { return 2;}
7160_LT_EOF
7161      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7162      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7163      echo "$AR cru libconftest.a conftest.o" >&5
7164      $AR cru libconftest.a conftest.o 2>&5
7165      echo "$RANLIB libconftest.a" >&5
7166      $RANLIB libconftest.a 2>&5
7167      cat > conftest.c << _LT_EOF
7168int main() { return 0;}
7169_LT_EOF
7170      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7171      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7172      _lt_result=$?
7173      if test -s conftest.err && $GREP force_load conftest.err; then
7174	cat conftest.err >&5
7175      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7176	lt_cv_ld_force_load=yes
7177      else
7178	cat conftest.err >&5
7179      fi
7180        rm -f conftest.err libconftest.a conftest conftest.c
7181        rm -rf conftest.dSYM
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7185$as_echo "$lt_cv_ld_force_load" >&6; }
7186    case $host_os in
7187    rhapsody* | darwin1.[012])
7188      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7189    darwin1.*)
7190      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7191    darwin*) # darwin 5.x on
7192      # if running on 10.5 or later, the deployment target defaults
7193      # to the OS version, if on x86, and 10.4, the deployment
7194      # target defaults to 10.4. Don't you love it?
7195      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7196	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7197	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7198	10.[012]*)
7199	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7200	10.*)
7201	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7202      esac
7203    ;;
7204  esac
7205    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7206      _lt_dar_single_mod='$single_module'
7207    fi
7208    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7209      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7210    else
7211      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7212    fi
7213    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7214      _lt_dsymutil='~$DSYMUTIL $lib || :'
7215    else
7216      _lt_dsymutil=
7217    fi
7218    ;;
7219  esac
7220
7221ac_ext=c
7222ac_cpp='$CPP $CPPFLAGS'
7223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7225ac_compiler_gnu=$ac_cv_c_compiler_gnu
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7227$as_echo_n "checking how to run the C preprocessor... " >&6; }
7228# On Suns, sometimes $CPP names a directory.
7229if test -n "$CPP" && test -d "$CPP"; then
7230  CPP=
7231fi
7232if test -z "$CPP"; then
7233  if ${ac_cv_prog_CPP+:} false; then :
7234  $as_echo_n "(cached) " >&6
7235else
7236      # Double quotes because CPP needs to be expanded
7237    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7238    do
7239      ac_preproc_ok=false
7240for ac_c_preproc_warn_flag in '' yes
7241do
7242  # Use a header file that comes with gcc, so configuring glibc
7243  # with a fresh cross-compiler works.
7244  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7245  # <limits.h> exists even on freestanding compilers.
7246  # On the NeXT, cc -E runs the code through the compiler's parser,
7247  # not just through cpp. "Syntax error" is here to catch this case.
7248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249/* end confdefs.h.  */
7250#ifdef __STDC__
7251# include <limits.h>
7252#else
7253# include <assert.h>
7254#endif
7255		     Syntax error
7256_ACEOF
7257if ac_fn_c_try_cpp "$LINENO"; then :
7258
7259else
7260  # Broken: fails on valid input.
7261continue
7262fi
7263rm -f conftest.err conftest.i conftest.$ac_ext
7264
7265  # OK, works on sane cases.  Now check whether nonexistent headers
7266  # can be detected and how.
7267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268/* end confdefs.h.  */
7269#include <ac_nonexistent.h>
7270_ACEOF
7271if ac_fn_c_try_cpp "$LINENO"; then :
7272  # Broken: success on invalid input.
7273continue
7274else
7275  # Passes both tests.
7276ac_preproc_ok=:
7277break
7278fi
7279rm -f conftest.err conftest.i conftest.$ac_ext
7280
7281done
7282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7283rm -f conftest.i conftest.err conftest.$ac_ext
7284if $ac_preproc_ok; then :
7285  break
7286fi
7287
7288    done
7289    ac_cv_prog_CPP=$CPP
7290
7291fi
7292  CPP=$ac_cv_prog_CPP
7293else
7294  ac_cv_prog_CPP=$CPP
7295fi
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7297$as_echo "$CPP" >&6; }
7298ac_preproc_ok=false
7299for ac_c_preproc_warn_flag in '' yes
7300do
7301  # Use a header file that comes with gcc, so configuring glibc
7302  # with a fresh cross-compiler works.
7303  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7304  # <limits.h> exists even on freestanding compilers.
7305  # On the NeXT, cc -E runs the code through the compiler's parser,
7306  # not just through cpp. "Syntax error" is here to catch this case.
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309#ifdef __STDC__
7310# include <limits.h>
7311#else
7312# include <assert.h>
7313#endif
7314		     Syntax error
7315_ACEOF
7316if ac_fn_c_try_cpp "$LINENO"; then :
7317
7318else
7319  # Broken: fails on valid input.
7320continue
7321fi
7322rm -f conftest.err conftest.i conftest.$ac_ext
7323
7324  # OK, works on sane cases.  Now check whether nonexistent headers
7325  # can be detected and how.
7326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328#include <ac_nonexistent.h>
7329_ACEOF
7330if ac_fn_c_try_cpp "$LINENO"; then :
7331  # Broken: success on invalid input.
7332continue
7333else
7334  # Passes both tests.
7335ac_preproc_ok=:
7336break
7337fi
7338rm -f conftest.err conftest.i conftest.$ac_ext
7339
7340done
7341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7342rm -f conftest.i conftest.err conftest.$ac_ext
7343if $ac_preproc_ok; then :
7344
7345else
7346  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7348as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7349See \`config.log' for more details" "$LINENO" 5; }
7350fi
7351
7352ac_ext=c
7353ac_cpp='$CPP $CPPFLAGS'
7354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357
7358
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7360$as_echo_n "checking for ANSI C header files... " >&6; }
7361if ${ac_cv_header_stdc+:} false; then :
7362  $as_echo_n "(cached) " >&6
7363else
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366#include <stdlib.h>
7367#include <stdarg.h>
7368#include <string.h>
7369#include <float.h>
7370
7371int
7372main ()
7373{
7374
7375  ;
7376  return 0;
7377}
7378_ACEOF
7379if ac_fn_c_try_compile "$LINENO"; then :
7380  ac_cv_header_stdc=yes
7381else
7382  ac_cv_header_stdc=no
7383fi
7384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385
7386if test $ac_cv_header_stdc = yes; then
7387  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h.  */
7390#include <string.h>
7391
7392_ACEOF
7393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7394  $EGREP "memchr" >/dev/null 2>&1; then :
7395
7396else
7397  ac_cv_header_stdc=no
7398fi
7399rm -f conftest*
7400
7401fi
7402
7403if test $ac_cv_header_stdc = yes; then
7404  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h.  */
7407#include <stdlib.h>
7408
7409_ACEOF
7410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7411  $EGREP "free" >/dev/null 2>&1; then :
7412
7413else
7414  ac_cv_header_stdc=no
7415fi
7416rm -f conftest*
7417
7418fi
7419
7420if test $ac_cv_header_stdc = yes; then
7421  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7422  if test "$cross_compiling" = yes; then :
7423  :
7424else
7425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426/* end confdefs.h.  */
7427#include <ctype.h>
7428#include <stdlib.h>
7429#if ((' ' & 0x0FF) == 0x020)
7430# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7431# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7432#else
7433# define ISLOWER(c) \
7434		   (('a' <= (c) && (c) <= 'i') \
7435		     || ('j' <= (c) && (c) <= 'r') \
7436		     || ('s' <= (c) && (c) <= 'z'))
7437# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7438#endif
7439
7440#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7441int
7442main ()
7443{
7444  int i;
7445  for (i = 0; i < 256; i++)
7446    if (XOR (islower (i), ISLOWER (i))
7447	|| toupper (i) != TOUPPER (i))
7448      return 2;
7449  return 0;
7450}
7451_ACEOF
7452if ac_fn_c_try_run "$LINENO"; then :
7453
7454else
7455  ac_cv_header_stdc=no
7456fi
7457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7458  conftest.$ac_objext conftest.beam conftest.$ac_ext
7459fi
7460
7461fi
7462fi
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7464$as_echo "$ac_cv_header_stdc" >&6; }
7465if test $ac_cv_header_stdc = yes; then
7466
7467$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7468
7469fi
7470
7471# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7472for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7473		  inttypes.h stdint.h unistd.h
7474do :
7475  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7476ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7477"
7478if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7479  cat >>confdefs.h <<_ACEOF
7480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481_ACEOF
7482
7483fi
7484
7485done
7486
7487
7488for ac_header in dlfcn.h
7489do :
7490  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7491"
7492if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7493  cat >>confdefs.h <<_ACEOF
7494#define HAVE_DLFCN_H 1
7495_ACEOF
7496
7497fi
7498
7499done
7500
7501
7502
7503
7504
7505# Set options
7506
7507
7508
7509        enable_dlopen=no
7510
7511
7512  enable_win32_dll=no
7513
7514
7515            # Check whether --enable-shared was given.
7516if test "${enable_shared+set}" = set; then :
7517  enableval=$enable_shared; p=${PACKAGE-default}
7518    case $enableval in
7519    yes) enable_shared=yes ;;
7520    no) enable_shared=no ;;
7521    *)
7522      enable_shared=no
7523      # Look at the argument we got.  We use all the common list separators.
7524      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7525      for pkg in $enableval; do
7526	IFS="$lt_save_ifs"
7527	if test "X$pkg" = "X$p"; then
7528	  enable_shared=yes
7529	fi
7530      done
7531      IFS="$lt_save_ifs"
7532      ;;
7533    esac
7534else
7535  enable_shared=yes
7536fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546  # Check whether --enable-static was given.
7547if test "${enable_static+set}" = set; then :
7548  enableval=$enable_static; p=${PACKAGE-default}
7549    case $enableval in
7550    yes) enable_static=yes ;;
7551    no) enable_static=no ;;
7552    *)
7553     enable_static=no
7554      # Look at the argument we got.  We use all the common list separators.
7555      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7556      for pkg in $enableval; do
7557	IFS="$lt_save_ifs"
7558	if test "X$pkg" = "X$p"; then
7559	  enable_static=yes
7560	fi
7561      done
7562      IFS="$lt_save_ifs"
7563      ;;
7564    esac
7565else
7566  enable_static=yes
7567fi
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578# Check whether --with-pic was given.
7579if test "${with_pic+set}" = set; then :
7580  withval=$with_pic; lt_p=${PACKAGE-default}
7581    case $withval in
7582    yes|no) pic_mode=$withval ;;
7583    *)
7584      pic_mode=default
7585      # Look at the argument we got.  We use all the common list separators.
7586      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7587      for lt_pkg in $withval; do
7588	IFS="$lt_save_ifs"
7589	if test "X$lt_pkg" = "X$lt_p"; then
7590	  pic_mode=yes
7591	fi
7592      done
7593      IFS="$lt_save_ifs"
7594      ;;
7595    esac
7596else
7597  pic_mode=default
7598fi
7599
7600
7601test -z "$pic_mode" && pic_mode=default
7602
7603
7604
7605
7606
7607
7608
7609  # Check whether --enable-fast-install was given.
7610if test "${enable_fast_install+set}" = set; then :
7611  enableval=$enable_fast_install; p=${PACKAGE-default}
7612    case $enableval in
7613    yes) enable_fast_install=yes ;;
7614    no) enable_fast_install=no ;;
7615    *)
7616      enable_fast_install=no
7617      # Look at the argument we got.  We use all the common list separators.
7618      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7619      for pkg in $enableval; do
7620	IFS="$lt_save_ifs"
7621	if test "X$pkg" = "X$p"; then
7622	  enable_fast_install=yes
7623	fi
7624      done
7625      IFS="$lt_save_ifs"
7626      ;;
7627    esac
7628else
7629  enable_fast_install=yes
7630fi
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642# This can be used to rebuild libtool when needed
7643LIBTOOL_DEPS="$ltmain"
7644
7645# Always use our own libtool.
7646LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677test -z "$LN_S" && LN_S="ln -s"
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692if test -n "${ZSH_VERSION+set}" ; then
7693   setopt NO_GLOB_SUBST
7694fi
7695
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7697$as_echo_n "checking for objdir... " >&6; }
7698if ${lt_cv_objdir+:} false; then :
7699  $as_echo_n "(cached) " >&6
7700else
7701  rm -f .libs 2>/dev/null
7702mkdir .libs 2>/dev/null
7703if test -d .libs; then
7704  lt_cv_objdir=.libs
7705else
7706  # MS-DOS does not allow filenames that begin with a dot.
7707  lt_cv_objdir=_libs
7708fi
7709rmdir .libs 2>/dev/null
7710fi
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7712$as_echo "$lt_cv_objdir" >&6; }
7713objdir=$lt_cv_objdir
7714
7715
7716
7717
7718
7719cat >>confdefs.h <<_ACEOF
7720#define LT_OBJDIR "$lt_cv_objdir/"
7721_ACEOF
7722
7723
7724
7725
7726case $host_os in
7727aix3*)
7728  # AIX sometimes has problems with the GCC collect2 program.  For some
7729  # reason, if we set the COLLECT_NAMES environment variable, the problems
7730  # vanish in a puff of smoke.
7731  if test "X${COLLECT_NAMES+set}" != Xset; then
7732    COLLECT_NAMES=
7733    export COLLECT_NAMES
7734  fi
7735  ;;
7736esac
7737
7738# Global variables:
7739ofile=libtool
7740can_build_shared=yes
7741
7742# All known linkers require a `.a' archive for static linking (except MSVC,
7743# which needs '.lib').
7744libext=a
7745
7746with_gnu_ld="$lt_cv_prog_gnu_ld"
7747
7748old_CC="$CC"
7749old_CFLAGS="$CFLAGS"
7750
7751# Set sane defaults for various variables
7752test -z "$CC" && CC=cc
7753test -z "$LTCC" && LTCC=$CC
7754test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7755test -z "$LD" && LD=ld
7756test -z "$ac_objext" && ac_objext=o
7757
7758for cc_temp in $compiler""; do
7759  case $cc_temp in
7760    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7761    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7762    \-*) ;;
7763    *) break;;
7764  esac
7765done
7766cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7767
7768
7769# Only perform the check for file, if the check method requires it
7770test -z "$MAGIC_CMD" && MAGIC_CMD=file
7771case $deplibs_check_method in
7772file_magic*)
7773  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7775$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7776if ${lt_cv_path_MAGIC_CMD+:} false; then :
7777  $as_echo_n "(cached) " >&6
7778else
7779  case $MAGIC_CMD in
7780[\\/*] |  ?:[\\/]*)
7781  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7782  ;;
7783*)
7784  lt_save_MAGIC_CMD="$MAGIC_CMD"
7785  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7786  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7787  for ac_dir in $ac_dummy; do
7788    IFS="$lt_save_ifs"
7789    test -z "$ac_dir" && ac_dir=.
7790    if test -f $ac_dir/${ac_tool_prefix}file; then
7791      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7792      if test -n "$file_magic_test_file"; then
7793	case $deplibs_check_method in
7794	"file_magic "*)
7795	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7796	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7798	    $EGREP "$file_magic_regex" > /dev/null; then
7799	    :
7800	  else
7801	    cat <<_LT_EOF 1>&2
7802
7803*** Warning: the command libtool uses to detect shared libraries,
7804*** $file_magic_cmd, produces output that libtool cannot recognize.
7805*** The result is that libtool may fail to recognize shared libraries
7806*** as such.  This will affect the creation of libtool libraries that
7807*** depend on shared libraries, but programs linked with such libtool
7808*** libraries will work regardless of this problem.  Nevertheless, you
7809*** may want to report the problem to your system manager and/or to
7810*** bug-libtool@gnu.org
7811
7812_LT_EOF
7813	  fi ;;
7814	esac
7815      fi
7816      break
7817    fi
7818  done
7819  IFS="$lt_save_ifs"
7820  MAGIC_CMD="$lt_save_MAGIC_CMD"
7821  ;;
7822esac
7823fi
7824
7825MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826if test -n "$MAGIC_CMD"; then
7827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7828$as_echo "$MAGIC_CMD" >&6; }
7829else
7830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832fi
7833
7834
7835
7836
7837
7838if test -z "$lt_cv_path_MAGIC_CMD"; then
7839  if test -n "$ac_tool_prefix"; then
7840    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7841$as_echo_n "checking for file... " >&6; }
7842if ${lt_cv_path_MAGIC_CMD+:} false; then :
7843  $as_echo_n "(cached) " >&6
7844else
7845  case $MAGIC_CMD in
7846[\\/*] |  ?:[\\/]*)
7847  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7848  ;;
7849*)
7850  lt_save_MAGIC_CMD="$MAGIC_CMD"
7851  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7852  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7853  for ac_dir in $ac_dummy; do
7854    IFS="$lt_save_ifs"
7855    test -z "$ac_dir" && ac_dir=.
7856    if test -f $ac_dir/file; then
7857      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7858      if test -n "$file_magic_test_file"; then
7859	case $deplibs_check_method in
7860	"file_magic "*)
7861	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7862	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7863	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7864	    $EGREP "$file_magic_regex" > /dev/null; then
7865	    :
7866	  else
7867	    cat <<_LT_EOF 1>&2
7868
7869*** Warning: the command libtool uses to detect shared libraries,
7870*** $file_magic_cmd, produces output that libtool cannot recognize.
7871*** The result is that libtool may fail to recognize shared libraries
7872*** as such.  This will affect the creation of libtool libraries that
7873*** depend on shared libraries, but programs linked with such libtool
7874*** libraries will work regardless of this problem.  Nevertheless, you
7875*** may want to report the problem to your system manager and/or to
7876*** bug-libtool@gnu.org
7877
7878_LT_EOF
7879	  fi ;;
7880	esac
7881      fi
7882      break
7883    fi
7884  done
7885  IFS="$lt_save_ifs"
7886  MAGIC_CMD="$lt_save_MAGIC_CMD"
7887  ;;
7888esac
7889fi
7890
7891MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7892if test -n "$MAGIC_CMD"; then
7893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7894$as_echo "$MAGIC_CMD" >&6; }
7895else
7896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
7898fi
7899
7900
7901  else
7902    MAGIC_CMD=:
7903  fi
7904fi
7905
7906  fi
7907  ;;
7908esac
7909
7910# Use C for the default configuration in the libtool script
7911
7912lt_save_CC="$CC"
7913ac_ext=c
7914ac_cpp='$CPP $CPPFLAGS'
7915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918
7919
7920# Source file extension for C test sources.
7921ac_ext=c
7922
7923# Object file extension for compiled C test sources.
7924objext=o
7925objext=$objext
7926
7927# Code to be used in simple compile tests
7928lt_simple_compile_test_code="int some_variable = 0;"
7929
7930# Code to be used in simple link tests
7931lt_simple_link_test_code='int main(){return(0);}'
7932
7933
7934
7935
7936
7937
7938
7939# If no C compiler was specified, use CC.
7940LTCC=${LTCC-"$CC"}
7941
7942# If no C compiler flags were specified, use CFLAGS.
7943LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7944
7945# Allow CC to be a program name with arguments.
7946compiler=$CC
7947
7948# Save the default compiler, since it gets overwritten when the other
7949# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7950compiler_DEFAULT=$CC
7951
7952# save warnings/boilerplate of simple test code
7953ac_outfile=conftest.$ac_objext
7954echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7955eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7956_lt_compiler_boilerplate=`cat conftest.err`
7957$RM conftest*
7958
7959ac_outfile=conftest.$ac_objext
7960echo "$lt_simple_link_test_code" >conftest.$ac_ext
7961eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7962_lt_linker_boilerplate=`cat conftest.err`
7963$RM -r conftest*
7964
7965
7966## CAVEAT EMPTOR:
7967## There is no encapsulation within the following macros, do not change
7968## the running order or otherwise move them around unless you know exactly
7969## what you are doing...
7970if test -n "$compiler"; then
7971
7972lt_prog_compiler_no_builtin_flag=
7973
7974if test "$GCC" = yes; then
7975  case $cc_basename in
7976  nvcc*)
7977    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7978  *)
7979    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7980  esac
7981
7982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7983$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7984if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  lt_cv_prog_compiler_rtti_exceptions=no
7988   ac_outfile=conftest.$ac_objext
7989   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7990   lt_compiler_flag="-fno-rtti -fno-exceptions"
7991   # Insert the option either (1) after the last *FLAGS variable, or
7992   # (2) before a word containing "conftest.", or (3) at the end.
7993   # Note that $ac_compile itself does not contain backslashes and begins
7994   # with a dollar sign (not a hyphen), so the echo should work correctly.
7995   # The option is referenced via a variable to avoid confusing sed.
7996   lt_compile=`echo "$ac_compile" | $SED \
7997   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7998   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7999   -e 's:$: $lt_compiler_flag:'`
8000   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8001   (eval "$lt_compile" 2>conftest.err)
8002   ac_status=$?
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   if (exit $ac_status) && test -s "$ac_outfile"; then
8006     # The compiler can only warn and ignore the option if not recognized
8007     # So say no if there are warnings other than the usual output.
8008     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8009     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8010     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8011       lt_cv_prog_compiler_rtti_exceptions=yes
8012     fi
8013   fi
8014   $RM conftest*
8015
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8018$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8019
8020if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8021    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8022else
8023    :
8024fi
8025
8026fi
8027
8028
8029
8030
8031
8032
8033  lt_prog_compiler_wl=
8034lt_prog_compiler_pic=
8035lt_prog_compiler_static=
8036
8037
8038  if test "$GCC" = yes; then
8039    lt_prog_compiler_wl='-Wl,'
8040    lt_prog_compiler_static='-static'
8041
8042    case $host_os in
8043      aix*)
8044      # All AIX code is PIC.
8045      if test "$host_cpu" = ia64; then
8046	# AIX 5 now supports IA64 processor
8047	lt_prog_compiler_static='-Bstatic'
8048      fi
8049      ;;
8050
8051    amigaos*)
8052      case $host_cpu in
8053      powerpc)
8054            # see comment about AmigaOS4 .so support
8055            lt_prog_compiler_pic='-fPIC'
8056        ;;
8057      m68k)
8058            # FIXME: we need at least 68020 code to build shared libraries, but
8059            # adding the `-m68020' flag to GCC prevents building anything better,
8060            # like `-m68040'.
8061            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8062        ;;
8063      esac
8064      ;;
8065
8066    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8067      # PIC is the default for these OSes.
8068      ;;
8069
8070    mingw* | cygwin* | pw32* | os2* | cegcc*)
8071      # This hack is so that the source file can tell whether it is being
8072      # built for inclusion in a dll (and should export symbols for example).
8073      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8074      # (--disable-auto-import) libraries
8075      lt_prog_compiler_pic='-DDLL_EXPORT'
8076      ;;
8077
8078    darwin* | rhapsody*)
8079      # PIC is the default on this platform
8080      # Common symbols not allowed in MH_DYLIB files
8081      lt_prog_compiler_pic='-fno-common'
8082      ;;
8083
8084    haiku*)
8085      # PIC is the default for Haiku.
8086      # The "-static" flag exists, but is broken.
8087      lt_prog_compiler_static=
8088      ;;
8089
8090    hpux*)
8091      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8092      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8093      # sets the default TLS model and affects inlining.
8094      case $host_cpu in
8095      hppa*64*)
8096	# +Z the default
8097	;;
8098      *)
8099	lt_prog_compiler_pic='-fPIC'
8100	;;
8101      esac
8102      ;;
8103
8104    interix[3-9]*)
8105      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8106      # Instead, we relocate shared libraries at runtime.
8107      ;;
8108
8109    msdosdjgpp*)
8110      # Just because we use GCC doesn't mean we suddenly get shared libraries
8111      # on systems that don't support them.
8112      lt_prog_compiler_can_build_shared=no
8113      enable_shared=no
8114      ;;
8115
8116    *nto* | *qnx*)
8117      # QNX uses GNU C++, but need to define -shared option too, otherwise
8118      # it will coredump.
8119      lt_prog_compiler_pic='-fPIC -shared'
8120      ;;
8121
8122    sysv4*MP*)
8123      if test -d /usr/nec; then
8124	lt_prog_compiler_pic=-Kconform_pic
8125      fi
8126      ;;
8127
8128    *)
8129      lt_prog_compiler_pic='-fPIC'
8130      ;;
8131    esac
8132
8133    case $cc_basename in
8134    nvcc*) # Cuda Compiler Driver 2.2
8135      lt_prog_compiler_wl='-Xlinker '
8136      if test -n "$lt_prog_compiler_pic"; then
8137        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8138      fi
8139      ;;
8140    esac
8141  else
8142    # PORTME Check for flag to pass linker flags through the system compiler.
8143    case $host_os in
8144    aix*)
8145      lt_prog_compiler_wl='-Wl,'
8146      if test "$host_cpu" = ia64; then
8147	# AIX 5 now supports IA64 processor
8148	lt_prog_compiler_static='-Bstatic'
8149      else
8150	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8151      fi
8152      ;;
8153
8154    mingw* | cygwin* | pw32* | os2* | cegcc*)
8155      # This hack is so that the source file can tell whether it is being
8156      # built for inclusion in a dll (and should export symbols for example).
8157      lt_prog_compiler_pic='-DDLL_EXPORT'
8158      ;;
8159
8160    hpux9* | hpux10* | hpux11*)
8161      lt_prog_compiler_wl='-Wl,'
8162      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8163      # not for PA HP-UX.
8164      case $host_cpu in
8165      hppa*64*|ia64*)
8166	# +Z the default
8167	;;
8168      *)
8169	lt_prog_compiler_pic='+Z'
8170	;;
8171      esac
8172      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8173      lt_prog_compiler_static='${wl}-a ${wl}archive'
8174      ;;
8175
8176    irix5* | irix6* | nonstopux*)
8177      lt_prog_compiler_wl='-Wl,'
8178      # PIC (with -KPIC) is the default.
8179      lt_prog_compiler_static='-non_shared'
8180      ;;
8181
8182    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8183      case $cc_basename in
8184      # old Intel for x86_64 which still supported -KPIC.
8185      ecc*)
8186	lt_prog_compiler_wl='-Wl,'
8187	lt_prog_compiler_pic='-KPIC'
8188	lt_prog_compiler_static='-static'
8189        ;;
8190      # icc used to be incompatible with GCC.
8191      # ICC 10 doesn't accept -KPIC any more.
8192      icc* | ifort*)
8193	lt_prog_compiler_wl='-Wl,'
8194	lt_prog_compiler_pic='-fPIC'
8195	lt_prog_compiler_static='-static'
8196        ;;
8197      # Lahey Fortran 8.1.
8198      lf95*)
8199	lt_prog_compiler_wl='-Wl,'
8200	lt_prog_compiler_pic='--shared'
8201	lt_prog_compiler_static='--static'
8202	;;
8203      nagfor*)
8204	# NAG Fortran compiler
8205	lt_prog_compiler_wl='-Wl,-Wl,,'
8206	lt_prog_compiler_pic='-PIC'
8207	lt_prog_compiler_static='-Bstatic'
8208	;;
8209      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8210        # Portland Group compilers (*not* the Pentium gcc compiler,
8211	# which looks to be a dead project)
8212	lt_prog_compiler_wl='-Wl,'
8213	lt_prog_compiler_pic='-fpic'
8214	lt_prog_compiler_static='-Bstatic'
8215        ;;
8216      ccc*)
8217        lt_prog_compiler_wl='-Wl,'
8218        # All Alpha code is PIC.
8219        lt_prog_compiler_static='-non_shared'
8220        ;;
8221      xl* | bgxl* | bgf* | mpixl*)
8222	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8223	lt_prog_compiler_wl='-Wl,'
8224	lt_prog_compiler_pic='-qpic'
8225	lt_prog_compiler_static='-qstaticlink'
8226	;;
8227      *)
8228	case `$CC -V 2>&1 | sed 5q` in
8229	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8230	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8231	  lt_prog_compiler_pic='-KPIC'
8232	  lt_prog_compiler_static='-Bstatic'
8233	  lt_prog_compiler_wl=''
8234	  ;;
8235	*Sun\ F* | *Sun*Fortran*)
8236	  lt_prog_compiler_pic='-KPIC'
8237	  lt_prog_compiler_static='-Bstatic'
8238	  lt_prog_compiler_wl='-Qoption ld '
8239	  ;;
8240	*Sun\ C*)
8241	  # Sun C 5.9
8242	  lt_prog_compiler_pic='-KPIC'
8243	  lt_prog_compiler_static='-Bstatic'
8244	  lt_prog_compiler_wl='-Wl,'
8245	  ;;
8246        *Intel*\ [CF]*Compiler*)
8247	  lt_prog_compiler_wl='-Wl,'
8248	  lt_prog_compiler_pic='-fPIC'
8249	  lt_prog_compiler_static='-static'
8250	  ;;
8251	*Portland\ Group*)
8252	  lt_prog_compiler_wl='-Wl,'
8253	  lt_prog_compiler_pic='-fpic'
8254	  lt_prog_compiler_static='-Bstatic'
8255	  ;;
8256	esac
8257	;;
8258      esac
8259      ;;
8260
8261    newsos6)
8262      lt_prog_compiler_pic='-KPIC'
8263      lt_prog_compiler_static='-Bstatic'
8264      ;;
8265
8266    *nto* | *qnx*)
8267      # QNX uses GNU C++, but need to define -shared option too, otherwise
8268      # it will coredump.
8269      lt_prog_compiler_pic='-fPIC -shared'
8270      ;;
8271
8272    osf3* | osf4* | osf5*)
8273      lt_prog_compiler_wl='-Wl,'
8274      # All OSF/1 code is PIC.
8275      lt_prog_compiler_static='-non_shared'
8276      ;;
8277
8278    rdos*)
8279      lt_prog_compiler_static='-non_shared'
8280      ;;
8281
8282    solaris*)
8283      lt_prog_compiler_pic='-KPIC'
8284      lt_prog_compiler_static='-Bstatic'
8285      case $cc_basename in
8286      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8287	lt_prog_compiler_wl='-Qoption ld ';;
8288      *)
8289	lt_prog_compiler_wl='-Wl,';;
8290      esac
8291      ;;
8292
8293    sunos4*)
8294      lt_prog_compiler_wl='-Qoption ld '
8295      lt_prog_compiler_pic='-PIC'
8296      lt_prog_compiler_static='-Bstatic'
8297      ;;
8298
8299    sysv4 | sysv4.2uw2* | sysv4.3*)
8300      lt_prog_compiler_wl='-Wl,'
8301      lt_prog_compiler_pic='-KPIC'
8302      lt_prog_compiler_static='-Bstatic'
8303      ;;
8304
8305    sysv4*MP*)
8306      if test -d /usr/nec ;then
8307	lt_prog_compiler_pic='-Kconform_pic'
8308	lt_prog_compiler_static='-Bstatic'
8309      fi
8310      ;;
8311
8312    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8313      lt_prog_compiler_wl='-Wl,'
8314      lt_prog_compiler_pic='-KPIC'
8315      lt_prog_compiler_static='-Bstatic'
8316      ;;
8317
8318    unicos*)
8319      lt_prog_compiler_wl='-Wl,'
8320      lt_prog_compiler_can_build_shared=no
8321      ;;
8322
8323    uts4*)
8324      lt_prog_compiler_pic='-pic'
8325      lt_prog_compiler_static='-Bstatic'
8326      ;;
8327
8328    *)
8329      lt_prog_compiler_can_build_shared=no
8330      ;;
8331    esac
8332  fi
8333
8334case $host_os in
8335  # For platforms which do not support PIC, -DPIC is meaningless:
8336  *djgpp*)
8337    lt_prog_compiler_pic=
8338    ;;
8339  *)
8340    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8341    ;;
8342esac
8343
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8345$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8346if ${lt_cv_prog_compiler_pic+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8352$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8353lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8354
8355#
8356# Check to make sure the PIC flag actually works.
8357#
8358if test -n "$lt_prog_compiler_pic"; then
8359  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8360$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8361if ${lt_cv_prog_compiler_pic_works+:} false; then :
8362  $as_echo_n "(cached) " >&6
8363else
8364  lt_cv_prog_compiler_pic_works=no
8365   ac_outfile=conftest.$ac_objext
8366   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8367   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8368   # Insert the option either (1) after the last *FLAGS variable, or
8369   # (2) before a word containing "conftest.", or (3) at the end.
8370   # Note that $ac_compile itself does not contain backslashes and begins
8371   # with a dollar sign (not a hyphen), so the echo should work correctly.
8372   # The option is referenced via a variable to avoid confusing sed.
8373   lt_compile=`echo "$ac_compile" | $SED \
8374   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8375   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8376   -e 's:$: $lt_compiler_flag:'`
8377   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8378   (eval "$lt_compile" 2>conftest.err)
8379   ac_status=$?
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   if (exit $ac_status) && test -s "$ac_outfile"; then
8383     # The compiler can only warn and ignore the option if not recognized
8384     # So say no if there are warnings other than the usual output.
8385     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8386     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8387     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8388       lt_cv_prog_compiler_pic_works=yes
8389     fi
8390   fi
8391   $RM conftest*
8392
8393fi
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8395$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8396
8397if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8398    case $lt_prog_compiler_pic in
8399     "" | " "*) ;;
8400     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8401     esac
8402else
8403    lt_prog_compiler_pic=
8404     lt_prog_compiler_can_build_shared=no
8405fi
8406
8407fi
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419#
8420# Check to make sure the static flag actually works.
8421#
8422wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8424$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8425if ${lt_cv_prog_compiler_static_works+:} false; then :
8426  $as_echo_n "(cached) " >&6
8427else
8428  lt_cv_prog_compiler_static_works=no
8429   save_LDFLAGS="$LDFLAGS"
8430   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8431   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8432   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8433     # The linker can only warn and ignore the option if not recognized
8434     # So say no if there are warnings
8435     if test -s conftest.err; then
8436       # Append any errors to the config.log.
8437       cat conftest.err 1>&5
8438       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8439       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8440       if diff conftest.exp conftest.er2 >/dev/null; then
8441         lt_cv_prog_compiler_static_works=yes
8442       fi
8443     else
8444       lt_cv_prog_compiler_static_works=yes
8445     fi
8446   fi
8447   $RM -r conftest*
8448   LDFLAGS="$save_LDFLAGS"
8449
8450fi
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8452$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8453
8454if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8455    :
8456else
8457    lt_prog_compiler_static=
8458fi
8459
8460
8461
8462
8463
8464
8465
8466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468if ${lt_cv_prog_compiler_c_o+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  lt_cv_prog_compiler_c_o=no
8472   $RM -r conftest 2>/dev/null
8473   mkdir conftest
8474   cd conftest
8475   mkdir out
8476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8477
8478   lt_compiler_flag="-o out/conftest2.$ac_objext"
8479   # Insert the option either (1) after the last *FLAGS variable, or
8480   # (2) before a word containing "conftest.", or (3) at the end.
8481   # Note that $ac_compile itself does not contain backslashes and begins
8482   # with a dollar sign (not a hyphen), so the echo should work correctly.
8483   lt_compile=`echo "$ac_compile" | $SED \
8484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486   -e 's:$: $lt_compiler_flag:'`
8487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8488   (eval "$lt_compile" 2>out/conftest.err)
8489   ac_status=$?
8490   cat out/conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493   then
8494     # The compiler can only warn and ignore the option if not recognized
8495     # So say no if there are warnings
8496     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8497     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499       lt_cv_prog_compiler_c_o=yes
8500     fi
8501   fi
8502   chmod u+w . 2>&5
8503   $RM conftest*
8504   # SGI C++ compiler will create directory out/ii_files/ for
8505   # template instantiation
8506   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507   $RM out/* && rmdir out
8508   cd ..
8509   $RM -r conftest
8510   $RM conftest*
8511
8512fi
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8515
8516
8517
8518
8519
8520
8521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8522$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8523if ${lt_cv_prog_compiler_c_o+:} false; then :
8524  $as_echo_n "(cached) " >&6
8525else
8526  lt_cv_prog_compiler_c_o=no
8527   $RM -r conftest 2>/dev/null
8528   mkdir conftest
8529   cd conftest
8530   mkdir out
8531   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532
8533   lt_compiler_flag="-o out/conftest2.$ac_objext"
8534   # Insert the option either (1) after the last *FLAGS variable, or
8535   # (2) before a word containing "conftest.", or (3) at the end.
8536   # Note that $ac_compile itself does not contain backslashes and begins
8537   # with a dollar sign (not a hyphen), so the echo should work correctly.
8538   lt_compile=`echo "$ac_compile" | $SED \
8539   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541   -e 's:$: $lt_compiler_flag:'`
8542   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8543   (eval "$lt_compile" 2>out/conftest.err)
8544   ac_status=$?
8545   cat out/conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8548   then
8549     # The compiler can only warn and ignore the option if not recognized
8550     # So say no if there are warnings
8551     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8552     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8553     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8554       lt_cv_prog_compiler_c_o=yes
8555     fi
8556   fi
8557   chmod u+w . 2>&5
8558   $RM conftest*
8559   # SGI C++ compiler will create directory out/ii_files/ for
8560   # template instantiation
8561   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8562   $RM out/* && rmdir out
8563   cd ..
8564   $RM -r conftest
8565   $RM conftest*
8566
8567fi
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8569$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8570
8571
8572
8573
8574hard_links="nottested"
8575if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8576  # do not overwrite the value of need_locks provided by the user
8577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8578$as_echo_n "checking if we can lock with hard links... " >&6; }
8579  hard_links=yes
8580  $RM conftest*
8581  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8582  touch conftest.a
8583  ln conftest.a conftest.b 2>&5 || hard_links=no
8584  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8586$as_echo "$hard_links" >&6; }
8587  if test "$hard_links" = no; then
8588    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8589$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8590    need_locks=warn
8591  fi
8592else
8593  need_locks=no
8594fi
8595
8596
8597
8598
8599
8600
8601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8602$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8603
8604  runpath_var=
8605  allow_undefined_flag=
8606  always_export_symbols=no
8607  archive_cmds=
8608  archive_expsym_cmds=
8609  compiler_needs_object=no
8610  enable_shared_with_static_runtimes=no
8611  export_dynamic_flag_spec=
8612  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8613  hardcode_automatic=no
8614  hardcode_direct=no
8615  hardcode_direct_absolute=no
8616  hardcode_libdir_flag_spec=
8617  hardcode_libdir_separator=
8618  hardcode_minus_L=no
8619  hardcode_shlibpath_var=unsupported
8620  inherit_rpath=no
8621  link_all_deplibs=unknown
8622  module_cmds=
8623  module_expsym_cmds=
8624  old_archive_from_new_cmds=
8625  old_archive_from_expsyms_cmds=
8626  thread_safe_flag_spec=
8627  whole_archive_flag_spec=
8628  # include_expsyms should be a list of space-separated symbols to be *always*
8629  # included in the symbol list
8630  include_expsyms=
8631  # exclude_expsyms can be an extended regexp of symbols to exclude
8632  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8633  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8634  # as well as any symbol that contains `d'.
8635  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8636  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8637  # platforms (ab)use it in PIC code, but their linkers get confused if
8638  # the symbol is explicitly referenced.  Since portable code cannot
8639  # rely on this symbol name, it's probably fine to never include it in
8640  # preloaded symbol tables.
8641  # Exclude shared library initialization/finalization symbols.
8642  extract_expsyms_cmds=
8643
8644  case $host_os in
8645  cygwin* | mingw* | pw32* | cegcc*)
8646    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8647    # When not using gcc, we currently assume that we are using
8648    # Microsoft Visual C++.
8649    if test "$GCC" != yes; then
8650      with_gnu_ld=no
8651    fi
8652    ;;
8653  interix*)
8654    # we just hope/assume this is gcc and not c89 (= MSVC++)
8655    with_gnu_ld=yes
8656    ;;
8657  openbsd*)
8658    with_gnu_ld=no
8659    ;;
8660  linux* | k*bsd*-gnu | gnu*)
8661    link_all_deplibs=no
8662    ;;
8663  esac
8664
8665  ld_shlibs=yes
8666
8667  # On some targets, GNU ld is compatible enough with the native linker
8668  # that we're better off using the native interface for both.
8669  lt_use_gnu_ld_interface=no
8670  if test "$with_gnu_ld" = yes; then
8671    case $host_os in
8672      aix*)
8673	# The AIX port of GNU ld has always aspired to compatibility
8674	# with the native linker.  However, as the warning in the GNU ld
8675	# block says, versions before 2.19.5* couldn't really create working
8676	# shared libraries, regardless of the interface used.
8677	case `$LD -v 2>&1` in
8678	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8679	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8680	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8681	  *)
8682	    lt_use_gnu_ld_interface=yes
8683	    ;;
8684	esac
8685	;;
8686      *)
8687	lt_use_gnu_ld_interface=yes
8688	;;
8689    esac
8690  fi
8691
8692  if test "$lt_use_gnu_ld_interface" = yes; then
8693    # If archive_cmds runs LD, not CC, wlarc should be empty
8694    wlarc='${wl}'
8695
8696    # Set some defaults for GNU ld with shared library support. These
8697    # are reset later if shared libraries are not supported. Putting them
8698    # here allows them to be overridden if necessary.
8699    runpath_var=LD_RUN_PATH
8700    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8701    export_dynamic_flag_spec='${wl}--export-dynamic'
8702    # ancient GNU ld didn't support --whole-archive et. al.
8703    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8704      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8705    else
8706      whole_archive_flag_spec=
8707    fi
8708    supports_anon_versioning=no
8709    case `$LD -v 2>&1` in
8710      *GNU\ gold*) supports_anon_versioning=yes ;;
8711      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8712      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8713      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8714      *\ 2.11.*) ;; # other 2.11 versions
8715      *) supports_anon_versioning=yes ;;
8716    esac
8717
8718    # See if GNU ld supports shared libraries.
8719    case $host_os in
8720    aix[3-9]*)
8721      # On AIX/PPC, the GNU linker is very broken
8722      if test "$host_cpu" != ia64; then
8723	ld_shlibs=no
8724	cat <<_LT_EOF 1>&2
8725
8726*** Warning: the GNU linker, at least up to release 2.19, is reported
8727*** to be unable to reliably create shared libraries on AIX.
8728*** Therefore, libtool is disabling shared libraries support.  If you
8729*** really care for shared libraries, you may want to install binutils
8730*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8731*** You will then need to restart the configuration process.
8732
8733_LT_EOF
8734      fi
8735      ;;
8736
8737    amigaos*)
8738      case $host_cpu in
8739      powerpc)
8740            # see comment about AmigaOS4 .so support
8741            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742            archive_expsym_cmds=''
8743        ;;
8744      m68k)
8745            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)'
8746            hardcode_libdir_flag_spec='-L$libdir'
8747            hardcode_minus_L=yes
8748        ;;
8749      esac
8750      ;;
8751
8752    beos*)
8753      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8754	allow_undefined_flag=unsupported
8755	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8756	# support --undefined.  This deserves some investigation.  FIXME
8757	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758      else
8759	ld_shlibs=no
8760      fi
8761      ;;
8762
8763    cygwin* | mingw* | pw32* | cegcc*)
8764      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8765      # as there is no search path for DLLs.
8766      hardcode_libdir_flag_spec='-L$libdir'
8767      export_dynamic_flag_spec='${wl}--export-all-symbols'
8768      allow_undefined_flag=unsupported
8769      always_export_symbols=no
8770      enable_shared_with_static_runtimes=yes
8771      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'
8772      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8773
8774      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8775        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8776	# If the export-symbols file already is a .def file (1st line
8777	# is EXPORTS), use it as is; otherwise, prepend...
8778	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8779	  cp $export_symbols $output_objdir/$soname.def;
8780	else
8781	  echo EXPORTS > $output_objdir/$soname.def;
8782	  cat $export_symbols >> $output_objdir/$soname.def;
8783	fi~
8784	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8785      else
8786	ld_shlibs=no
8787      fi
8788      ;;
8789
8790    haiku*)
8791      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792      link_all_deplibs=yes
8793      ;;
8794
8795    interix[3-9]*)
8796      hardcode_direct=no
8797      hardcode_shlibpath_var=no
8798      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8799      export_dynamic_flag_spec='${wl}-E'
8800      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8801      # Instead, shared libraries are loaded at an image base (0x10000000 by
8802      # default) and relocated if they conflict, which is a slow very memory
8803      # consuming and fragmenting process.  To avoid this, we pick a random,
8804      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8805      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8806      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8807      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'
8808      ;;
8809
8810    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8811      tmp_diet=no
8812      if test "$host_os" = linux-dietlibc; then
8813	case $cc_basename in
8814	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8815	esac
8816      fi
8817      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8818	 && test "$tmp_diet" = no
8819      then
8820	tmp_addflag=' $pic_flag'
8821	tmp_sharedflag='-shared'
8822	case $cc_basename,$host_cpu in
8823        pgcc*)				# Portland Group C compiler
8824	  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'
8825	  tmp_addflag=' $pic_flag'
8826	  ;;
8827	pgf77* | pgf90* | pgf95* | pgfortran*)
8828					# Portland Group f77 and f90 compilers
8829	  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'
8830	  tmp_addflag=' $pic_flag -Mnomain' ;;
8831	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8832	  tmp_addflag=' -i_dynamic' ;;
8833	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8834	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8835	ifc* | ifort*)			# Intel Fortran compiler
8836	  tmp_addflag=' -nofor_main' ;;
8837	lf95*)				# Lahey Fortran 8.1
8838	  whole_archive_flag_spec=
8839	  tmp_sharedflag='--shared' ;;
8840	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8841	  tmp_sharedflag='-qmkshrobj'
8842	  tmp_addflag= ;;
8843	nvcc*)	# Cuda Compiler Driver 2.2
8844	  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'
8845	  compiler_needs_object=yes
8846	  ;;
8847	esac
8848	case `$CC -V 2>&1 | sed 5q` in
8849	*Sun\ C*)			# Sun C 5.9
8850	  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'
8851	  compiler_needs_object=yes
8852	  tmp_sharedflag='-G' ;;
8853	*Sun\ F*)			# Sun Fortran 8.3
8854	  tmp_sharedflag='-G' ;;
8855	esac
8856	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8857
8858        if test "x$supports_anon_versioning" = xyes; then
8859          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8860	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8861	    echo "local: *; };" >> $output_objdir/$libname.ver~
8862	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8863        fi
8864
8865	case $cc_basename in
8866	xlf* | bgf* | bgxlf* | mpixlf*)
8867	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8868	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8869	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8870	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8871	  if test "x$supports_anon_versioning" = xyes; then
8872	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8873	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8874	      echo "local: *; };" >> $output_objdir/$libname.ver~
8875	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8876	  fi
8877	  ;;
8878	esac
8879      else
8880        ld_shlibs=no
8881      fi
8882      ;;
8883
8884    netbsd* | netbsdelf*-gnu)
8885      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8886	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8887	wlarc=
8888      else
8889	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8891      fi
8892      ;;
8893
8894    solaris*)
8895      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8896	ld_shlibs=no
8897	cat <<_LT_EOF 1>&2
8898
8899*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8900*** create shared libraries on Solaris systems.  Therefore, libtool
8901*** is disabling shared libraries support.  We urge you to upgrade GNU
8902*** binutils to release 2.9.1 or newer.  Another option is to modify
8903*** your PATH or compiler configuration so that the native linker is
8904*** used, and then restart.
8905
8906_LT_EOF
8907      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8908	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8910      else
8911	ld_shlibs=no
8912      fi
8913      ;;
8914
8915    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8916      case `$LD -v 2>&1` in
8917        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8918	ld_shlibs=no
8919	cat <<_LT_EOF 1>&2
8920
8921*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8922*** reliably create shared libraries on SCO systems.  Therefore, libtool
8923*** is disabling shared libraries support.  We urge you to upgrade GNU
8924*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8925*** your PATH or compiler configuration so that the native linker is
8926*** used, and then restart.
8927
8928_LT_EOF
8929	;;
8930	*)
8931	  # For security reasons, it is highly recommended that you always
8932	  # use absolute paths for naming shared libraries, and exclude the
8933	  # DT_RUNPATH tag from executables and libraries.  But doing so
8934	  # requires that you compile everything twice, which is a pain.
8935	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8936	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8937	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8938	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8939	  else
8940	    ld_shlibs=no
8941	  fi
8942	;;
8943      esac
8944      ;;
8945
8946    sunos4*)
8947      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8948      wlarc=
8949      hardcode_direct=yes
8950      hardcode_shlibpath_var=no
8951      ;;
8952
8953    *)
8954      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8955	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8957      else
8958	ld_shlibs=no
8959      fi
8960      ;;
8961    esac
8962
8963    if test "$ld_shlibs" = no; then
8964      runpath_var=
8965      hardcode_libdir_flag_spec=
8966      export_dynamic_flag_spec=
8967      whole_archive_flag_spec=
8968    fi
8969  else
8970    # PORTME fill in a description of your system's linker (not GNU ld)
8971    case $host_os in
8972    aix3*)
8973      allow_undefined_flag=unsupported
8974      always_export_symbols=yes
8975      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'
8976      # Note: this linker hardcodes the directories in LIBPATH if there
8977      # are no directories specified by -L.
8978      hardcode_minus_L=yes
8979      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8980	# Neither direct hardcoding nor static linking is supported with a
8981	# broken collect2.
8982	hardcode_direct=unsupported
8983      fi
8984      ;;
8985
8986    aix[4-9]*)
8987      if test "$host_cpu" = ia64; then
8988	# On IA64, the linker does run time linking by default, so we don't
8989	# have to do anything special.
8990	aix_use_runtimelinking=no
8991	exp_sym_flag='-Bexport'
8992	no_entry_flag=""
8993      else
8994	# If we're using GNU nm, then we don't want the "-C" option.
8995	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8996	# Also, AIX nm treats weak defined symbols like other global
8997	# defined symbols, whereas GNU nm marks them as "W".
8998	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8999	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9000	else
9001	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9002	fi
9003	aix_use_runtimelinking=no
9004
9005	# Test if we are trying to use run time linking or normal
9006	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9007	# need to do runtime linking.
9008	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9009	  for ld_flag in $LDFLAGS; do
9010	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9011	    aix_use_runtimelinking=yes
9012	    break
9013	  fi
9014	  done
9015	  ;;
9016	esac
9017
9018	exp_sym_flag='-bexport'
9019	no_entry_flag='-bnoentry'
9020      fi
9021
9022      # When large executables or shared objects are built, AIX ld can
9023      # have problems creating the table of contents.  If linking a library
9024      # or program results in "error TOC overflow" add -mminimal-toc to
9025      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9026      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9027
9028      archive_cmds=''
9029      hardcode_direct=yes
9030      hardcode_direct_absolute=yes
9031      hardcode_libdir_separator=':'
9032      link_all_deplibs=yes
9033      file_list_spec='${wl}-f,'
9034
9035      if test "$GCC" = yes; then
9036	case $host_os in aix4.[012]|aix4.[012].*)
9037	# We only want to do this on AIX 4.2 and lower, the check
9038	# below for broken collect2 doesn't work under 4.3+
9039	  collect2name=`${CC} -print-prog-name=collect2`
9040	  if test -f "$collect2name" &&
9041	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9042	  then
9043	  # We have reworked collect2
9044	  :
9045	  else
9046	  # We have old collect2
9047	  hardcode_direct=unsupported
9048	  # It fails to find uninstalled libraries when the uninstalled
9049	  # path is not listed in the libpath.  Setting hardcode_minus_L
9050	  # to unsupported forces relinking
9051	  hardcode_minus_L=yes
9052	  hardcode_libdir_flag_spec='-L$libdir'
9053	  hardcode_libdir_separator=
9054	  fi
9055	  ;;
9056	esac
9057	shared_flag='-shared'
9058	if test "$aix_use_runtimelinking" = yes; then
9059	  shared_flag="$shared_flag "'${wl}-G'
9060	fi
9061	link_all_deplibs=no
9062      else
9063	# not using gcc
9064	if test "$host_cpu" = ia64; then
9065	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9066	# chokes on -Wl,-G. The following line is correct:
9067	  shared_flag='-G'
9068	else
9069	  if test "$aix_use_runtimelinking" = yes; then
9070	    shared_flag='${wl}-G'
9071	  else
9072	    shared_flag='${wl}-bM:SRE'
9073	  fi
9074	fi
9075      fi
9076
9077      export_dynamic_flag_spec='${wl}-bexpall'
9078      # It seems that -bexpall does not export symbols beginning with
9079      # underscore (_), so it is better to generate a list of symbols to export.
9080      always_export_symbols=yes
9081      if test "$aix_use_runtimelinking" = yes; then
9082	# Warning - without using the other runtime loading flags (-brtl),
9083	# -berok will link without error, but may produce a broken library.
9084	allow_undefined_flag='-berok'
9085        # Determine the default libpath from the value encoded in an
9086        # empty executable.
9087        if test "${lt_cv_aix_libpath+set}" = set; then
9088  aix_libpath=$lt_cv_aix_libpath
9089else
9090  if ${lt_cv_aix_libpath_+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095
9096int
9097main ()
9098{
9099
9100  ;
9101  return 0;
9102}
9103_ACEOF
9104if ac_fn_c_try_link "$LINENO"; then :
9105
9106  lt_aix_libpath_sed='
9107      /Import File Strings/,/^$/ {
9108	  /^0/ {
9109	      s/^0  *\([^ ]*\) *$/\1/
9110	      p
9111	  }
9112      }'
9113  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9114  # Check for a 64-bit object if we didn't find anything.
9115  if test -z "$lt_cv_aix_libpath_"; then
9116    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9117  fi
9118fi
9119rm -f core conftest.err conftest.$ac_objext \
9120    conftest$ac_exeext conftest.$ac_ext
9121  if test -z "$lt_cv_aix_libpath_"; then
9122    lt_cv_aix_libpath_="/usr/lib:/lib"
9123  fi
9124
9125fi
9126
9127  aix_libpath=$lt_cv_aix_libpath_
9128fi
9129
9130        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9131        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9132      else
9133	if test "$host_cpu" = ia64; then
9134	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9135	  allow_undefined_flag="-z nodefs"
9136	  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"
9137	else
9138	 # Determine the default libpath from the value encoded in an
9139	 # empty executable.
9140	 if test "${lt_cv_aix_libpath+set}" = set; then
9141  aix_libpath=$lt_cv_aix_libpath
9142else
9143  if ${lt_cv_aix_libpath_+:} false; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147/* end confdefs.h.  */
9148
9149int
9150main ()
9151{
9152
9153  ;
9154  return 0;
9155}
9156_ACEOF
9157if ac_fn_c_try_link "$LINENO"; then :
9158
9159  lt_aix_libpath_sed='
9160      /Import File Strings/,/^$/ {
9161	  /^0/ {
9162	      s/^0  *\([^ ]*\) *$/\1/
9163	      p
9164	  }
9165      }'
9166  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9167  # Check for a 64-bit object if we didn't find anything.
9168  if test -z "$lt_cv_aix_libpath_"; then
9169    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9170  fi
9171fi
9172rm -f core conftest.err conftest.$ac_objext \
9173    conftest$ac_exeext conftest.$ac_ext
9174  if test -z "$lt_cv_aix_libpath_"; then
9175    lt_cv_aix_libpath_="/usr/lib:/lib"
9176  fi
9177
9178fi
9179
9180  aix_libpath=$lt_cv_aix_libpath_
9181fi
9182
9183	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9184	  # Warning - without using the other run time loading flags,
9185	  # -berok will link without error, but may produce a broken library.
9186	  no_undefined_flag=' ${wl}-bernotok'
9187	  allow_undefined_flag=' ${wl}-berok'
9188	  if test "$with_gnu_ld" = yes; then
9189	    # We only use this code for GNU lds that support --whole-archive.
9190	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9191	  else
9192	    # Exported symbols can be pulled into shared objects from archives
9193	    whole_archive_flag_spec='$convenience'
9194	  fi
9195	  archive_cmds_need_lc=yes
9196	  # This is similar to how AIX traditionally builds its shared libraries.
9197	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9198	fi
9199      fi
9200      ;;
9201
9202    amigaos*)
9203      case $host_cpu in
9204      powerpc)
9205            # see comment about AmigaOS4 .so support
9206            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207            archive_expsym_cmds=''
9208        ;;
9209      m68k)
9210            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)'
9211            hardcode_libdir_flag_spec='-L$libdir'
9212            hardcode_minus_L=yes
9213        ;;
9214      esac
9215      ;;
9216
9217    bsdi[45]*)
9218      export_dynamic_flag_spec=-rdynamic
9219      ;;
9220
9221    cygwin* | mingw* | pw32* | cegcc*)
9222      # When not using gcc, we currently assume that we are using
9223      # Microsoft Visual C++.
9224      # hardcode_libdir_flag_spec is actually meaningless, as there is
9225      # no search path for DLLs.
9226      case $cc_basename in
9227      cl*)
9228	# Native MSVC
9229	hardcode_libdir_flag_spec=' '
9230	allow_undefined_flag=unsupported
9231	always_export_symbols=yes
9232	file_list_spec='@'
9233	# Tell ltmain to make .lib files, not .a files.
9234	libext=lib
9235	# Tell ltmain to make .dll files, not .so files.
9236	shrext_cmds=".dll"
9237	# FIXME: Setting linknames here is a bad hack.
9238	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9239	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9240	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9241	  else
9242	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9243	  fi~
9244	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9245	  linknames='
9246	# The linker will not automatically build a static lib if we build a DLL.
9247	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9248	enable_shared_with_static_runtimes=yes
9249	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9250	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9251	# Don't use ranlib
9252	old_postinstall_cmds='chmod 644 $oldlib'
9253	postlink_cmds='lt_outputfile="@OUTPUT@"~
9254	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9255	  case $lt_outputfile in
9256	    *.exe|*.EXE) ;;
9257	    *)
9258	      lt_outputfile="$lt_outputfile.exe"
9259	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9260	      ;;
9261	  esac~
9262	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9263	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9264	    $RM "$lt_outputfile.manifest";
9265	  fi'
9266	;;
9267      *)
9268	# Assume MSVC wrapper
9269	hardcode_libdir_flag_spec=' '
9270	allow_undefined_flag=unsupported
9271	# Tell ltmain to make .lib files, not .a files.
9272	libext=lib
9273	# Tell ltmain to make .dll files, not .so files.
9274	shrext_cmds=".dll"
9275	# FIXME: Setting linknames here is a bad hack.
9276	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9277	# The linker will automatically build a .lib file if we build a DLL.
9278	old_archive_from_new_cmds='true'
9279	# FIXME: Should let the user specify the lib program.
9280	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9281	enable_shared_with_static_runtimes=yes
9282	;;
9283      esac
9284      ;;
9285
9286    darwin* | rhapsody*)
9287
9288
9289  archive_cmds_need_lc=no
9290  hardcode_direct=no
9291  hardcode_automatic=yes
9292  hardcode_shlibpath_var=unsupported
9293  if test "$lt_cv_ld_force_load" = "yes"; then
9294    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\"`'
9295
9296  else
9297    whole_archive_flag_spec=''
9298  fi
9299  link_all_deplibs=yes
9300  allow_undefined_flag="$_lt_dar_allow_undefined"
9301  case $cc_basename in
9302     ifort*) _lt_dar_can_shared=yes ;;
9303     *) _lt_dar_can_shared=$GCC ;;
9304  esac
9305  if test "$_lt_dar_can_shared" = "yes"; then
9306    output_verbose_link_cmd=func_echo_all
9307    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9308    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9309    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}"
9310    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}"
9311
9312  else
9313  ld_shlibs=no
9314  fi
9315
9316      ;;
9317
9318    dgux*)
9319      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320      hardcode_libdir_flag_spec='-L$libdir'
9321      hardcode_shlibpath_var=no
9322      ;;
9323
9324    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9325    # support.  Future versions do this automatically, but an explicit c++rt0.o
9326    # does not break anything, and helps significantly (at the cost of a little
9327    # extra space).
9328    freebsd2.2*)
9329      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9330      hardcode_libdir_flag_spec='-R$libdir'
9331      hardcode_direct=yes
9332      hardcode_shlibpath_var=no
9333      ;;
9334
9335    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9336    freebsd2.*)
9337      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9338      hardcode_direct=yes
9339      hardcode_minus_L=yes
9340      hardcode_shlibpath_var=no
9341      ;;
9342
9343    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9344    freebsd* | dragonfly*)
9345      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9346      hardcode_libdir_flag_spec='-R$libdir'
9347      hardcode_direct=yes
9348      hardcode_shlibpath_var=no
9349      ;;
9350
9351    hpux9*)
9352      if test "$GCC" = yes; then
9353	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9354      else
9355	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9356      fi
9357      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358      hardcode_libdir_separator=:
9359      hardcode_direct=yes
9360
9361      # hardcode_minus_L: Not really in the search PATH,
9362      # but as the default location of the library.
9363      hardcode_minus_L=yes
9364      export_dynamic_flag_spec='${wl}-E'
9365      ;;
9366
9367    hpux10*)
9368      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9369	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9370      else
9371	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9372      fi
9373      if test "$with_gnu_ld" = no; then
9374	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9375	hardcode_libdir_separator=:
9376	hardcode_direct=yes
9377	hardcode_direct_absolute=yes
9378	export_dynamic_flag_spec='${wl}-E'
9379	# hardcode_minus_L: Not really in the search PATH,
9380	# but as the default location of the library.
9381	hardcode_minus_L=yes
9382      fi
9383      ;;
9384
9385    hpux11*)
9386      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9387	case $host_cpu in
9388	hppa*64*)
9389	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390	  ;;
9391	ia64*)
9392	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9393	  ;;
9394	*)
9395	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396	  ;;
9397	esac
9398      else
9399	case $host_cpu in
9400	hppa*64*)
9401	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402	  ;;
9403	ia64*)
9404	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9405	  ;;
9406	*)
9407
9408	  # Older versions of the 11.00 compiler do not understand -b yet
9409	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9410	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9411$as_echo_n "checking if $CC understands -b... " >&6; }
9412if ${lt_cv_prog_compiler__b+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415  lt_cv_prog_compiler__b=no
9416   save_LDFLAGS="$LDFLAGS"
9417   LDFLAGS="$LDFLAGS -b"
9418   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9419   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9420     # The linker can only warn and ignore the option if not recognized
9421     # So say no if there are warnings
9422     if test -s conftest.err; then
9423       # Append any errors to the config.log.
9424       cat conftest.err 1>&5
9425       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9426       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9427       if diff conftest.exp conftest.er2 >/dev/null; then
9428         lt_cv_prog_compiler__b=yes
9429       fi
9430     else
9431       lt_cv_prog_compiler__b=yes
9432     fi
9433   fi
9434   $RM -r conftest*
9435   LDFLAGS="$save_LDFLAGS"
9436
9437fi
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9439$as_echo "$lt_cv_prog_compiler__b" >&6; }
9440
9441if test x"$lt_cv_prog_compiler__b" = xyes; then
9442    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443else
9444    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9445fi
9446
9447	  ;;
9448	esac
9449      fi
9450      if test "$with_gnu_ld" = no; then
9451	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9452	hardcode_libdir_separator=:
9453
9454	case $host_cpu in
9455	hppa*64*|ia64*)
9456	  hardcode_direct=no
9457	  hardcode_shlibpath_var=no
9458	  ;;
9459	*)
9460	  hardcode_direct=yes
9461	  hardcode_direct_absolute=yes
9462	  export_dynamic_flag_spec='${wl}-E'
9463
9464	  # hardcode_minus_L: Not really in the search PATH,
9465	  # but as the default location of the library.
9466	  hardcode_minus_L=yes
9467	  ;;
9468	esac
9469      fi
9470      ;;
9471
9472    irix5* | irix6* | nonstopux*)
9473      if test "$GCC" = yes; then
9474	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'
9475	# Try to use the -exported_symbol ld option, if it does not
9476	# work, assume that -exports_file does not work either and
9477	# implicitly export all symbols.
9478	# This should be the same for all languages, so no per-tag cache variable.
9479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9480$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9481if ${lt_cv_irix_exported_symbol+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  save_LDFLAGS="$LDFLAGS"
9485	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9486	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487/* end confdefs.h.  */
9488int foo (void) { return 0; }
9489_ACEOF
9490if ac_fn_c_try_link "$LINENO"; then :
9491  lt_cv_irix_exported_symbol=yes
9492else
9493  lt_cv_irix_exported_symbol=no
9494fi
9495rm -f core conftest.err conftest.$ac_objext \
9496    conftest$ac_exeext conftest.$ac_ext
9497           LDFLAGS="$save_LDFLAGS"
9498fi
9499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9500$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9501	if test "$lt_cv_irix_exported_symbol" = yes; then
9502          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'
9503	fi
9504      else
9505	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'
9506	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'
9507      fi
9508      archive_cmds_need_lc='no'
9509      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510      hardcode_libdir_separator=:
9511      inherit_rpath=yes
9512      link_all_deplibs=yes
9513      ;;
9514
9515    netbsd* | netbsdelf*-gnu)
9516      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9517	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9518      else
9519	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9520      fi
9521      hardcode_libdir_flag_spec='-R$libdir'
9522      hardcode_direct=yes
9523      hardcode_shlibpath_var=no
9524      ;;
9525
9526    newsos6)
9527      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528      hardcode_direct=yes
9529      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530      hardcode_libdir_separator=:
9531      hardcode_shlibpath_var=no
9532      ;;
9533
9534    *nto* | *qnx*)
9535      ;;
9536
9537    openbsd*)
9538      if test -f /usr/libexec/ld.so; then
9539	hardcode_direct=yes
9540	hardcode_shlibpath_var=no
9541	hardcode_direct_absolute=yes
9542	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9543	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9544	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9545	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546	  export_dynamic_flag_spec='${wl}-E'
9547	else
9548	  case $host_os in
9549	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9550	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551	     hardcode_libdir_flag_spec='-R$libdir'
9552	     ;;
9553	   *)
9554	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9556	     ;;
9557	  esac
9558	fi
9559      else
9560	ld_shlibs=no
9561      fi
9562      ;;
9563
9564    os2*)
9565      hardcode_libdir_flag_spec='-L$libdir'
9566      hardcode_minus_L=yes
9567      allow_undefined_flag=unsupported
9568      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9569      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9570      ;;
9571
9572    osf3*)
9573      if test "$GCC" = yes; then
9574	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9575	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'
9576      else
9577	allow_undefined_flag=' -expect_unresolved \*'
9578	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'
9579      fi
9580      archive_cmds_need_lc='no'
9581      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582      hardcode_libdir_separator=:
9583      ;;
9584
9585    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9586      if test "$GCC" = yes; then
9587	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588	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'
9589	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590      else
9591	allow_undefined_flag=' -expect_unresolved \*'
9592	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'
9593	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~
9594	$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'
9595
9596	# Both c and cxx compiler support -rpath directly
9597	hardcode_libdir_flag_spec='-rpath $libdir'
9598      fi
9599      archive_cmds_need_lc='no'
9600      hardcode_libdir_separator=:
9601      ;;
9602
9603    solaris*)
9604      no_undefined_flag=' -z defs'
9605      if test "$GCC" = yes; then
9606	wlarc='${wl}'
9607	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9609	  $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'
9610      else
9611	case `$CC -V 2>&1` in
9612	*"Compilers 5.0"*)
9613	  wlarc=''
9614	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9617	  ;;
9618	*)
9619	  wlarc='${wl}'
9620	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9621	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623	  ;;
9624	esac
9625      fi
9626      hardcode_libdir_flag_spec='-R$libdir'
9627      hardcode_shlibpath_var=no
9628      case $host_os in
9629      solaris2.[0-5] | solaris2.[0-5].*) ;;
9630      *)
9631	# The compiler driver will combine and reorder linker options,
9632	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9633	# but is careful enough not to reorder.
9634	# Supported since Solaris 2.6 (maybe 2.5.1?)
9635	if test "$GCC" = yes; then
9636	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9637	else
9638	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9639	fi
9640	;;
9641      esac
9642      link_all_deplibs=yes
9643      ;;
9644
9645    sunos4*)
9646      if test "x$host_vendor" = xsequent; then
9647	# Use $CC to link under sequent, because it throws in some extra .o
9648	# files that make .init and .fini sections work.
9649	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9650      else
9651	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9652      fi
9653      hardcode_libdir_flag_spec='-L$libdir'
9654      hardcode_direct=yes
9655      hardcode_minus_L=yes
9656      hardcode_shlibpath_var=no
9657      ;;
9658
9659    sysv4)
9660      case $host_vendor in
9661	sni)
9662	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663	  hardcode_direct=yes # is this really true???
9664	;;
9665	siemens)
9666	  ## LD is ld it makes a PLAMLIB
9667	  ## CC just makes a GrossModule.
9668	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9669	  reload_cmds='$CC -r -o $output$reload_objs'
9670	  hardcode_direct=no
9671        ;;
9672	motorola)
9673	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9675	;;
9676      esac
9677      runpath_var='LD_RUN_PATH'
9678      hardcode_shlibpath_var=no
9679      ;;
9680
9681    sysv4.3*)
9682      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683      hardcode_shlibpath_var=no
9684      export_dynamic_flag_spec='-Bexport'
9685      ;;
9686
9687    sysv4*MP*)
9688      if test -d /usr/nec; then
9689	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690	hardcode_shlibpath_var=no
9691	runpath_var=LD_RUN_PATH
9692	hardcode_runpath_var=yes
9693	ld_shlibs=yes
9694      fi
9695      ;;
9696
9697    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9698      no_undefined_flag='${wl}-z,text'
9699      archive_cmds_need_lc=no
9700      hardcode_shlibpath_var=no
9701      runpath_var='LD_RUN_PATH'
9702
9703      if test "$GCC" = yes; then
9704	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706      else
9707	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709      fi
9710      ;;
9711
9712    sysv5* | sco3.2v5* | sco5v6*)
9713      # Note: We can NOT use -z defs as we might desire, because we do not
9714      # link with -lc, and that would cause any symbols used from libc to
9715      # always be unresolved, which means just about no library would
9716      # ever link correctly.  If we're not using GNU ld we use -z text
9717      # though, which does catch some bad symbols but isn't as heavy-handed
9718      # as -z defs.
9719      no_undefined_flag='${wl}-z,text'
9720      allow_undefined_flag='${wl}-z,nodefs'
9721      archive_cmds_need_lc=no
9722      hardcode_shlibpath_var=no
9723      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9724      hardcode_libdir_separator=':'
9725      link_all_deplibs=yes
9726      export_dynamic_flag_spec='${wl}-Bexport'
9727      runpath_var='LD_RUN_PATH'
9728
9729      if test "$GCC" = yes; then
9730	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732      else
9733	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735      fi
9736      ;;
9737
9738    uts4*)
9739      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740      hardcode_libdir_flag_spec='-L$libdir'
9741      hardcode_shlibpath_var=no
9742      ;;
9743
9744    *)
9745      ld_shlibs=no
9746      ;;
9747    esac
9748
9749    if test x$host_vendor = xsni; then
9750      case $host in
9751      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9752	export_dynamic_flag_spec='${wl}-Blargedynsym'
9753	;;
9754      esac
9755    fi
9756  fi
9757
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9759$as_echo "$ld_shlibs" >&6; }
9760test "$ld_shlibs" = no && can_build_shared=no
9761
9762with_gnu_ld=$with_gnu_ld
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778#
9779# Do we need to explicitly link libc?
9780#
9781case "x$archive_cmds_need_lc" in
9782x|xyes)
9783  # Assume -lc should be added
9784  archive_cmds_need_lc=yes
9785
9786  if test "$enable_shared" = yes && test "$GCC" = yes; then
9787    case $archive_cmds in
9788    *'~'*)
9789      # FIXME: we may have to deal with multi-command sequences.
9790      ;;
9791    '$CC '*)
9792      # Test whether the compiler implicitly links with -lc since on some
9793      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9794      # to ld, don't add -lc before -lgcc.
9795      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9796$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9797if ${lt_cv_archive_cmds_need_lc+:} false; then :
9798  $as_echo_n "(cached) " >&6
9799else
9800  $RM conftest*
9801	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
9803	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9804  (eval $ac_compile) 2>&5
9805  ac_status=$?
9806  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9807  test $ac_status = 0; } 2>conftest.err; then
9808	  soname=conftest
9809	  lib=conftest
9810	  libobjs=conftest.$ac_objext
9811	  deplibs=
9812	  wl=$lt_prog_compiler_wl
9813	  pic_flag=$lt_prog_compiler_pic
9814	  compiler_flags=-v
9815	  linker_flags=-v
9816	  verstring=
9817	  output_objdir=.
9818	  libname=conftest
9819	  lt_save_allow_undefined_flag=$allow_undefined_flag
9820	  allow_undefined_flag=
9821	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9822  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9823  ac_status=$?
9824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9825  test $ac_status = 0; }
9826	  then
9827	    lt_cv_archive_cmds_need_lc=no
9828	  else
9829	    lt_cv_archive_cmds_need_lc=yes
9830	  fi
9831	  allow_undefined_flag=$lt_save_allow_undefined_flag
9832	else
9833	  cat conftest.err 1>&5
9834	fi
9835	$RM conftest*
9836
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9839$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9840      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9841      ;;
9842    esac
9843  fi
9844  ;;
9845esac
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9999$as_echo_n "checking dynamic linker characteristics... " >&6; }
10000
10001if test "$GCC" = yes; then
10002  case $host_os in
10003    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10004    *) lt_awk_arg="/^libraries:/" ;;
10005  esac
10006  case $host_os in
10007    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10008    *) lt_sed_strip_eq="s,=/,/,g" ;;
10009  esac
10010  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10011  case $lt_search_path_spec in
10012  *\;*)
10013    # if the path contains ";" then we assume it to be the separator
10014    # otherwise default to the standard path separator (i.e. ":") - it is
10015    # assumed that no part of a normal pathname contains ";" but that should
10016    # okay in the real world where ";" in dirpaths is itself problematic.
10017    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10018    ;;
10019  *)
10020    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10021    ;;
10022  esac
10023  # Ok, now we have the path, separated by spaces, we can step through it
10024  # and add multilib dir if necessary.
10025  lt_tmp_lt_search_path_spec=
10026  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10027  for lt_sys_path in $lt_search_path_spec; do
10028    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10029      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10030    else
10031      test -d "$lt_sys_path" && \
10032	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10033    fi
10034  done
10035  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10036BEGIN {RS=" "; FS="/|\n";} {
10037  lt_foo="";
10038  lt_count=0;
10039  for (lt_i = NF; lt_i > 0; lt_i--) {
10040    if ($lt_i != "" && $lt_i != ".") {
10041      if ($lt_i == "..") {
10042        lt_count++;
10043      } else {
10044        if (lt_count == 0) {
10045          lt_foo="/" $lt_i lt_foo;
10046        } else {
10047          lt_count--;
10048        }
10049      }
10050    }
10051  }
10052  if (lt_foo != "") { lt_freq[lt_foo]++; }
10053  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10054}'`
10055  # AWK program above erroneously prepends '/' to C:/dos/paths
10056  # for these hosts.
10057  case $host_os in
10058    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10059      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10060  esac
10061  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10062else
10063  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10064fi
10065library_names_spec=
10066libname_spec='lib$name'
10067soname_spec=
10068shrext_cmds=".so"
10069postinstall_cmds=
10070postuninstall_cmds=
10071finish_cmds=
10072finish_eval=
10073shlibpath_var=
10074shlibpath_overrides_runpath=unknown
10075version_type=none
10076dynamic_linker="$host_os ld.so"
10077sys_lib_dlsearch_path_spec="/lib /usr/lib"
10078need_lib_prefix=unknown
10079hardcode_into_libs=no
10080
10081# when you set need_version to no, make sure it does not cause -set_version
10082# flags to be left without arguments
10083need_version=unknown
10084
10085case $host_os in
10086aix3*)
10087  version_type=linux # correct to gnu/linux during the next big refactor
10088  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10089  shlibpath_var=LIBPATH
10090
10091  # AIX 3 has no versioning support, so we append a major version to the name.
10092  soname_spec='${libname}${release}${shared_ext}$major'
10093  ;;
10094
10095aix[4-9]*)
10096  version_type=linux # correct to gnu/linux during the next big refactor
10097  need_lib_prefix=no
10098  need_version=no
10099  hardcode_into_libs=yes
10100  if test "$host_cpu" = ia64; then
10101    # AIX 5 supports IA64
10102    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10103    shlibpath_var=LD_LIBRARY_PATH
10104  else
10105    # With GCC up to 2.95.x, collect2 would create an import file
10106    # for dependence libraries.  The import file would start with
10107    # the line `#! .'.  This would cause the generated library to
10108    # depend on `.', always an invalid library.  This was fixed in
10109    # development snapshots of GCC prior to 3.0.
10110    case $host_os in
10111      aix4 | aix4.[01] | aix4.[01].*)
10112      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10113	   echo ' yes '
10114	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10115	:
10116      else
10117	can_build_shared=no
10118      fi
10119      ;;
10120    esac
10121    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10122    # soname into executable. Probably we can add versioning support to
10123    # collect2, so additional links can be useful in future.
10124    if test "$aix_use_runtimelinking" = yes; then
10125      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10126      # instead of lib<name>.a to let people know that these are not
10127      # typical AIX shared libraries.
10128      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129    else
10130      # We preserve .a as extension for shared libraries through AIX4.2
10131      # and later when we are not doing run time linking.
10132      library_names_spec='${libname}${release}.a $libname.a'
10133      soname_spec='${libname}${release}${shared_ext}$major'
10134    fi
10135    shlibpath_var=LIBPATH
10136  fi
10137  ;;
10138
10139amigaos*)
10140  case $host_cpu in
10141  powerpc)
10142    # Since July 2007 AmigaOS4 officially supports .so libraries.
10143    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10144    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145    ;;
10146  m68k)
10147    library_names_spec='$libname.ixlibrary $libname.a'
10148    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10149    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10150    ;;
10151  esac
10152  ;;
10153
10154beos*)
10155  library_names_spec='${libname}${shared_ext}'
10156  dynamic_linker="$host_os ld.so"
10157  shlibpath_var=LIBRARY_PATH
10158  ;;
10159
10160bsdi[45]*)
10161  version_type=linux # correct to gnu/linux during the next big refactor
10162  need_version=no
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164  soname_spec='${libname}${release}${shared_ext}$major'
10165  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10166  shlibpath_var=LD_LIBRARY_PATH
10167  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10168  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10169  # the default ld.so.conf also contains /usr/contrib/lib and
10170  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10171  # libtool to hard-code these into programs
10172  ;;
10173
10174cygwin* | mingw* | pw32* | cegcc*)
10175  version_type=windows
10176  shrext_cmds=".dll"
10177  need_version=no
10178  need_lib_prefix=no
10179
10180  case $GCC,$cc_basename in
10181  yes,*)
10182    # gcc
10183    library_names_spec='$libname.dll.a'
10184    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185    postinstall_cmds='base_file=`basename \${file}`~
10186      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187      dldir=$destdir/`dirname \$dlpath`~
10188      test -d \$dldir || mkdir -p \$dldir~
10189      $install_prog $dir/$dlname \$dldir/$dlname~
10190      chmod a+x \$dldir/$dlname~
10191      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10193      fi'
10194    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195      dlpath=$dir/\$dldll~
10196       $RM \$dlpath'
10197    shlibpath_overrides_runpath=yes
10198
10199    case $host_os in
10200    cygwin*)
10201      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203
10204      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10205      ;;
10206    mingw* | cegcc*)
10207      # MinGW DLLs use traditional 'lib' prefix
10208      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209      ;;
10210    pw32*)
10211      # pw32 DLLs use 'pw' prefix rather than 'lib'
10212      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10213      ;;
10214    esac
10215    dynamic_linker='Win32 ld.exe'
10216    ;;
10217
10218  *,cl*)
10219    # Native MSVC
10220    libname_spec='$name'
10221    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10222    library_names_spec='${libname}.dll.lib'
10223
10224    case $build_os in
10225    mingw*)
10226      sys_lib_search_path_spec=
10227      lt_save_ifs=$IFS
10228      IFS=';'
10229      for lt_path in $LIB
10230      do
10231        IFS=$lt_save_ifs
10232        # Let DOS variable expansion print the short 8.3 style file name.
10233        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10234        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10235      done
10236      IFS=$lt_save_ifs
10237      # Convert to MSYS style.
10238      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10239      ;;
10240    cygwin*)
10241      # Convert to unix form, then to dos form, then back to unix form
10242      # but this time dos style (no spaces!) so that the unix form looks
10243      # like /cygdrive/c/PROGRA~1:/cygdr...
10244      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10245      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10246      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10247      ;;
10248    *)
10249      sys_lib_search_path_spec="$LIB"
10250      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10251        # It is most probably a Windows format PATH.
10252        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10253      else
10254        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10255      fi
10256      # FIXME: find the short name or the path components, as spaces are
10257      # common. (e.g. "Program Files" -> "PROGRA~1")
10258      ;;
10259    esac
10260
10261    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10262    postinstall_cmds='base_file=`basename \${file}`~
10263      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10264      dldir=$destdir/`dirname \$dlpath`~
10265      test -d \$dldir || mkdir -p \$dldir~
10266      $install_prog $dir/$dlname \$dldir/$dlname'
10267    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10268      dlpath=$dir/\$dldll~
10269       $RM \$dlpath'
10270    shlibpath_overrides_runpath=yes
10271    dynamic_linker='Win32 link.exe'
10272    ;;
10273
10274  *)
10275    # Assume MSVC wrapper
10276    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10277    dynamic_linker='Win32 ld.exe'
10278    ;;
10279  esac
10280  # FIXME: first we should search . and the directory the executable is in
10281  shlibpath_var=PATH
10282  ;;
10283
10284darwin* | rhapsody*)
10285  dynamic_linker="$host_os dyld"
10286  version_type=darwin
10287  need_lib_prefix=no
10288  need_version=no
10289  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10290  soname_spec='${libname}${release}${major}$shared_ext'
10291  shlibpath_overrides_runpath=yes
10292  shlibpath_var=DYLD_LIBRARY_PATH
10293  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10294
10295  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10296  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10297  ;;
10298
10299dgux*)
10300  version_type=linux # correct to gnu/linux during the next big refactor
10301  need_lib_prefix=no
10302  need_version=no
10303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10304  soname_spec='${libname}${release}${shared_ext}$major'
10305  shlibpath_var=LD_LIBRARY_PATH
10306  ;;
10307
10308freebsd* | dragonfly*)
10309  # DragonFly does not have aout.  When/if they implement a new
10310  # versioning mechanism, adjust this.
10311  if test -x /usr/bin/objformat; then
10312    objformat=`/usr/bin/objformat`
10313  else
10314    case $host_os in
10315    freebsd[23].*) objformat=aout ;;
10316    *) objformat=elf ;;
10317    esac
10318  fi
10319  version_type=freebsd-$objformat
10320  case $version_type in
10321    freebsd-elf*)
10322      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10323      need_version=no
10324      need_lib_prefix=no
10325      ;;
10326    freebsd-*)
10327      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10328      need_version=yes
10329      ;;
10330  esac
10331  shlibpath_var=LD_LIBRARY_PATH
10332  case $host_os in
10333  freebsd2.*)
10334    shlibpath_overrides_runpath=yes
10335    ;;
10336  freebsd3.[01]* | freebsdelf3.[01]*)
10337    shlibpath_overrides_runpath=yes
10338    hardcode_into_libs=yes
10339    ;;
10340  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10341  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10342    shlibpath_overrides_runpath=no
10343    hardcode_into_libs=yes
10344    ;;
10345  *) # from 4.6 on, and DragonFly
10346    shlibpath_overrides_runpath=yes
10347    hardcode_into_libs=yes
10348    ;;
10349  esac
10350  ;;
10351
10352haiku*)
10353  version_type=linux # correct to gnu/linux during the next big refactor
10354  need_lib_prefix=no
10355  need_version=no
10356  dynamic_linker="$host_os runtime_loader"
10357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10358  soname_spec='${libname}${release}${shared_ext}$major'
10359  shlibpath_var=LIBRARY_PATH
10360  shlibpath_overrides_runpath=yes
10361  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10362  hardcode_into_libs=yes
10363  ;;
10364
10365hpux9* | hpux10* | hpux11*)
10366  # Give a soname corresponding to the major version so that dld.sl refuses to
10367  # link against other versions.
10368  version_type=sunos
10369  need_lib_prefix=no
10370  need_version=no
10371  case $host_cpu in
10372  ia64*)
10373    shrext_cmds='.so'
10374    hardcode_into_libs=yes
10375    dynamic_linker="$host_os dld.so"
10376    shlibpath_var=LD_LIBRARY_PATH
10377    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379    soname_spec='${libname}${release}${shared_ext}$major'
10380    if test "X$HPUX_IA64_MODE" = X32; then
10381      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10382    else
10383      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10384    fi
10385    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10386    ;;
10387  hppa*64*)
10388    shrext_cmds='.sl'
10389    hardcode_into_libs=yes
10390    dynamic_linker="$host_os dld.sl"
10391    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10392    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394    soname_spec='${libname}${release}${shared_ext}$major'
10395    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10396    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10397    ;;
10398  *)
10399    shrext_cmds='.sl'
10400    dynamic_linker="$host_os dld.sl"
10401    shlibpath_var=SHLIB_PATH
10402    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404    soname_spec='${libname}${release}${shared_ext}$major'
10405    ;;
10406  esac
10407  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10408  postinstall_cmds='chmod 555 $lib'
10409  # or fails outright, so override atomically:
10410  install_override_mode=555
10411  ;;
10412
10413interix[3-9]*)
10414  version_type=linux # correct to gnu/linux during the next big refactor
10415  need_lib_prefix=no
10416  need_version=no
10417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10418  soname_spec='${libname}${release}${shared_ext}$major'
10419  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10420  shlibpath_var=LD_LIBRARY_PATH
10421  shlibpath_overrides_runpath=no
10422  hardcode_into_libs=yes
10423  ;;
10424
10425irix5* | irix6* | nonstopux*)
10426  case $host_os in
10427    nonstopux*) version_type=nonstopux ;;
10428    *)
10429	if test "$lt_cv_prog_gnu_ld" = yes; then
10430		version_type=linux # correct to gnu/linux during the next big refactor
10431	else
10432		version_type=irix
10433	fi ;;
10434  esac
10435  need_lib_prefix=no
10436  need_version=no
10437  soname_spec='${libname}${release}${shared_ext}$major'
10438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10439  case $host_os in
10440  irix5* | nonstopux*)
10441    libsuff= shlibsuff=
10442    ;;
10443  *)
10444    case $LD in # libtool.m4 will add one of these switches to LD
10445    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10446      libsuff= shlibsuff= libmagic=32-bit;;
10447    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10448      libsuff=32 shlibsuff=N32 libmagic=N32;;
10449    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10450      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10451    *) libsuff= shlibsuff= libmagic=never-match;;
10452    esac
10453    ;;
10454  esac
10455  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10456  shlibpath_overrides_runpath=no
10457  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10458  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10459  hardcode_into_libs=yes
10460  ;;
10461
10462# No shared lib support for Linux oldld, aout, or coff.
10463linux*oldld* | linux*aout* | linux*coff*)
10464  dynamic_linker=no
10465  ;;
10466
10467# This must be glibc/ELF.
10468linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10469  version_type=linux # correct to gnu/linux during the next big refactor
10470  need_lib_prefix=no
10471  need_version=no
10472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473  soname_spec='${libname}${release}${shared_ext}$major'
10474  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10475  shlibpath_var=LD_LIBRARY_PATH
10476  shlibpath_overrides_runpath=no
10477
10478  # Some binutils ld are patched to set DT_RUNPATH
10479  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10480  $as_echo_n "(cached) " >&6
10481else
10482  lt_cv_shlibpath_overrides_runpath=no
10483    save_LDFLAGS=$LDFLAGS
10484    save_libdir=$libdir
10485    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10486	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489
10490int
10491main ()
10492{
10493
10494  ;
10495  return 0;
10496}
10497_ACEOF
10498if ac_fn_c_try_link "$LINENO"; then :
10499  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10500  lt_cv_shlibpath_overrides_runpath=yes
10501fi
10502fi
10503rm -f core conftest.err conftest.$ac_objext \
10504    conftest$ac_exeext conftest.$ac_ext
10505    LDFLAGS=$save_LDFLAGS
10506    libdir=$save_libdir
10507
10508fi
10509
10510  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10511
10512  # This implies no fast_install, which is unacceptable.
10513  # Some rework will be needed to allow for fast_install
10514  # before this can be enabled.
10515  hardcode_into_libs=yes
10516
10517  # Append ld.so.conf contents to the search path
10518  if test -f /etc/ld.so.conf; then
10519    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' ' '`
10520    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10521  fi
10522
10523  # We used to test for /lib/ld.so.1 and disable shared libraries on
10524  # powerpc, because MkLinux only supported shared libraries with the
10525  # GNU dynamic linker.  Since this was broken with cross compilers,
10526  # most powerpc-linux boxes support dynamic linking these days and
10527  # people can always --disable-shared, the test was removed, and we
10528  # assume the GNU/Linux dynamic linker is in use.
10529  dynamic_linker='GNU/Linux ld.so'
10530  ;;
10531
10532netbsdelf*-gnu)
10533  version_type=linux
10534  need_lib_prefix=no
10535  need_version=no
10536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10537  soname_spec='${libname}${release}${shared_ext}$major'
10538  shlibpath_var=LD_LIBRARY_PATH
10539  shlibpath_overrides_runpath=no
10540  hardcode_into_libs=yes
10541  dynamic_linker='NetBSD ld.elf_so'
10542  ;;
10543
10544netbsd*)
10545  version_type=sunos
10546  need_lib_prefix=no
10547  need_version=no
10548  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10549    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10550    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10551    dynamic_linker='NetBSD (a.out) ld.so'
10552  else
10553    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10554    soname_spec='${libname}${release}${shared_ext}$major'
10555    dynamic_linker='NetBSD ld.elf_so'
10556  fi
10557  shlibpath_var=LD_LIBRARY_PATH
10558  shlibpath_overrides_runpath=yes
10559  hardcode_into_libs=yes
10560  ;;
10561
10562newsos6)
10563  version_type=linux # correct to gnu/linux during the next big refactor
10564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565  shlibpath_var=LD_LIBRARY_PATH
10566  shlibpath_overrides_runpath=yes
10567  ;;
10568
10569*nto* | *qnx*)
10570  version_type=qnx
10571  need_lib_prefix=no
10572  need_version=no
10573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574  soname_spec='${libname}${release}${shared_ext}$major'
10575  shlibpath_var=LD_LIBRARY_PATH
10576  shlibpath_overrides_runpath=no
10577  hardcode_into_libs=yes
10578  dynamic_linker='ldqnx.so'
10579  ;;
10580
10581openbsd*)
10582  version_type=sunos
10583  sys_lib_dlsearch_path_spec="/usr/lib"
10584  need_lib_prefix=no
10585  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10586  case $host_os in
10587    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10588    *)				need_version=no  ;;
10589  esac
10590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10591  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10592  shlibpath_var=LD_LIBRARY_PATH
10593  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10594    case $host_os in
10595      openbsd2.[89] | openbsd2.[89].*)
10596	shlibpath_overrides_runpath=no
10597	;;
10598      *)
10599	shlibpath_overrides_runpath=yes
10600	;;
10601      esac
10602  else
10603    shlibpath_overrides_runpath=yes
10604  fi
10605  ;;
10606
10607os2*)
10608  libname_spec='$name'
10609  shrext_cmds=".dll"
10610  need_lib_prefix=no
10611  library_names_spec='$libname${shared_ext} $libname.a'
10612  dynamic_linker='OS/2 ld.exe'
10613  shlibpath_var=LIBPATH
10614  ;;
10615
10616osf3* | osf4* | osf5*)
10617  version_type=osf
10618  need_lib_prefix=no
10619  need_version=no
10620  soname_spec='${libname}${release}${shared_ext}$major'
10621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622  shlibpath_var=LD_LIBRARY_PATH
10623  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10624  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10625  ;;
10626
10627rdos*)
10628  dynamic_linker=no
10629  ;;
10630
10631solaris*)
10632  version_type=linux # correct to gnu/linux during the next big refactor
10633  need_lib_prefix=no
10634  need_version=no
10635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636  soname_spec='${libname}${release}${shared_ext}$major'
10637  shlibpath_var=LD_LIBRARY_PATH
10638  shlibpath_overrides_runpath=yes
10639  hardcode_into_libs=yes
10640  # ldd complains unless libraries are executable
10641  postinstall_cmds='chmod +x $lib'
10642  ;;
10643
10644sunos4*)
10645  version_type=sunos
10646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10647  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10648  shlibpath_var=LD_LIBRARY_PATH
10649  shlibpath_overrides_runpath=yes
10650  if test "$with_gnu_ld" = yes; then
10651    need_lib_prefix=no
10652  fi
10653  need_version=yes
10654  ;;
10655
10656sysv4 | sysv4.3*)
10657  version_type=linux # correct to gnu/linux during the next big refactor
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659  soname_spec='${libname}${release}${shared_ext}$major'
10660  shlibpath_var=LD_LIBRARY_PATH
10661  case $host_vendor in
10662    sni)
10663      shlibpath_overrides_runpath=no
10664      need_lib_prefix=no
10665      runpath_var=LD_RUN_PATH
10666      ;;
10667    siemens)
10668      need_lib_prefix=no
10669      ;;
10670    motorola)
10671      need_lib_prefix=no
10672      need_version=no
10673      shlibpath_overrides_runpath=no
10674      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10675      ;;
10676  esac
10677  ;;
10678
10679sysv4*MP*)
10680  if test -d /usr/nec ;then
10681    version_type=linux # correct to gnu/linux during the next big refactor
10682    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10683    soname_spec='$libname${shared_ext}.$major'
10684    shlibpath_var=LD_LIBRARY_PATH
10685  fi
10686  ;;
10687
10688sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10689  version_type=freebsd-elf
10690  need_lib_prefix=no
10691  need_version=no
10692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10693  soname_spec='${libname}${release}${shared_ext}$major'
10694  shlibpath_var=LD_LIBRARY_PATH
10695  shlibpath_overrides_runpath=yes
10696  hardcode_into_libs=yes
10697  if test "$with_gnu_ld" = yes; then
10698    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10699  else
10700    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10701    case $host_os in
10702      sco3.2v5*)
10703        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10704	;;
10705    esac
10706  fi
10707  sys_lib_dlsearch_path_spec='/usr/lib'
10708  ;;
10709
10710tpf*)
10711  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10712  version_type=linux # correct to gnu/linux during the next big refactor
10713  need_lib_prefix=no
10714  need_version=no
10715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716  shlibpath_var=LD_LIBRARY_PATH
10717  shlibpath_overrides_runpath=no
10718  hardcode_into_libs=yes
10719  ;;
10720
10721uts4*)
10722  version_type=linux # correct to gnu/linux during the next big refactor
10723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724  soname_spec='${libname}${release}${shared_ext}$major'
10725  shlibpath_var=LD_LIBRARY_PATH
10726  ;;
10727
10728*)
10729  dynamic_linker=no
10730  ;;
10731esac
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10733$as_echo "$dynamic_linker" >&6; }
10734test "$dynamic_linker" = no && can_build_shared=no
10735
10736variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10737if test "$GCC" = yes; then
10738  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10739fi
10740
10741if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10742  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10743fi
10744if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10745  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10746fi
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10840$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10841hardcode_action=
10842if test -n "$hardcode_libdir_flag_spec" ||
10843   test -n "$runpath_var" ||
10844   test "X$hardcode_automatic" = "Xyes" ; then
10845
10846  # We can hardcode non-existent directories.
10847  if test "$hardcode_direct" != no &&
10848     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10849     # have to relink, otherwise we might link with an installed library
10850     # when we should be linking with a yet-to-be-installed one
10851     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10852     test "$hardcode_minus_L" != no; then
10853    # Linking always hardcodes the temporary library directory.
10854    hardcode_action=relink
10855  else
10856    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10857    hardcode_action=immediate
10858  fi
10859else
10860  # We cannot hardcode anything, or else we can only hardcode existing
10861  # directories.
10862  hardcode_action=unsupported
10863fi
10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10865$as_echo "$hardcode_action" >&6; }
10866
10867if test "$hardcode_action" = relink ||
10868   test "$inherit_rpath" = yes; then
10869  # Fast installation is not supported
10870  enable_fast_install=no
10871elif test "$shlibpath_overrides_runpath" = yes ||
10872     test "$enable_shared" = no; then
10873  # Fast installation is not necessary
10874  enable_fast_install=needless
10875fi
10876
10877
10878
10879
10880
10881
10882  if test "x$enable_dlopen" != xyes; then
10883  enable_dlopen=unknown
10884  enable_dlopen_self=unknown
10885  enable_dlopen_self_static=unknown
10886else
10887  lt_cv_dlopen=no
10888  lt_cv_dlopen_libs=
10889
10890  case $host_os in
10891  beos*)
10892    lt_cv_dlopen="load_add_on"
10893    lt_cv_dlopen_libs=
10894    lt_cv_dlopen_self=yes
10895    ;;
10896
10897  mingw* | pw32* | cegcc*)
10898    lt_cv_dlopen="LoadLibrary"
10899    lt_cv_dlopen_libs=
10900    ;;
10901
10902  cygwin*)
10903    lt_cv_dlopen="dlopen"
10904    lt_cv_dlopen_libs=
10905    ;;
10906
10907  darwin*)
10908  # if libdl is installed we need to link against it
10909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10910$as_echo_n "checking for dlopen in -ldl... " >&6; }
10911if ${ac_cv_lib_dl_dlopen+:} false; then :
10912  $as_echo_n "(cached) " >&6
10913else
10914  ac_check_lib_save_LIBS=$LIBS
10915LIBS="-ldl  $LIBS"
10916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917/* end confdefs.h.  */
10918
10919/* Override any GCC internal prototype to avoid an error.
10920   Use char because int might match the return type of a GCC
10921   builtin and then its argument prototype would still apply.  */
10922#ifdef __cplusplus
10923extern "C"
10924#endif
10925char dlopen ();
10926int
10927main ()
10928{
10929return dlopen ();
10930  ;
10931  return 0;
10932}
10933_ACEOF
10934if ac_fn_c_try_link "$LINENO"; then :
10935  ac_cv_lib_dl_dlopen=yes
10936else
10937  ac_cv_lib_dl_dlopen=no
10938fi
10939rm -f core conftest.err conftest.$ac_objext \
10940    conftest$ac_exeext conftest.$ac_ext
10941LIBS=$ac_check_lib_save_LIBS
10942fi
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10944$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10945if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10946  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10947else
10948
10949    lt_cv_dlopen="dyld"
10950    lt_cv_dlopen_libs=
10951    lt_cv_dlopen_self=yes
10952
10953fi
10954
10955    ;;
10956
10957  *)
10958    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10959if test "x$ac_cv_func_shl_load" = xyes; then :
10960  lt_cv_dlopen="shl_load"
10961else
10962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10963$as_echo_n "checking for shl_load in -ldld... " >&6; }
10964if ${ac_cv_lib_dld_shl_load+:} false; then :
10965  $as_echo_n "(cached) " >&6
10966else
10967  ac_check_lib_save_LIBS=$LIBS
10968LIBS="-ldld  $LIBS"
10969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970/* end confdefs.h.  */
10971
10972/* Override any GCC internal prototype to avoid an error.
10973   Use char because int might match the return type of a GCC
10974   builtin and then its argument prototype would still apply.  */
10975#ifdef __cplusplus
10976extern "C"
10977#endif
10978char shl_load ();
10979int
10980main ()
10981{
10982return shl_load ();
10983  ;
10984  return 0;
10985}
10986_ACEOF
10987if ac_fn_c_try_link "$LINENO"; then :
10988  ac_cv_lib_dld_shl_load=yes
10989else
10990  ac_cv_lib_dld_shl_load=no
10991fi
10992rm -f core conftest.err conftest.$ac_objext \
10993    conftest$ac_exeext conftest.$ac_ext
10994LIBS=$ac_check_lib_save_LIBS
10995fi
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10997$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10998if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10999  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11000else
11001  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11002if test "x$ac_cv_func_dlopen" = xyes; then :
11003  lt_cv_dlopen="dlopen"
11004else
11005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11006$as_echo_n "checking for dlopen in -ldl... " >&6; }
11007if ${ac_cv_lib_dl_dlopen+:} false; then :
11008  $as_echo_n "(cached) " >&6
11009else
11010  ac_check_lib_save_LIBS=$LIBS
11011LIBS="-ldl  $LIBS"
11012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014
11015/* Override any GCC internal prototype to avoid an error.
11016   Use char because int might match the return type of a GCC
11017   builtin and then its argument prototype would still apply.  */
11018#ifdef __cplusplus
11019extern "C"
11020#endif
11021char dlopen ();
11022int
11023main ()
11024{
11025return dlopen ();
11026  ;
11027  return 0;
11028}
11029_ACEOF
11030if ac_fn_c_try_link "$LINENO"; then :
11031  ac_cv_lib_dl_dlopen=yes
11032else
11033  ac_cv_lib_dl_dlopen=no
11034fi
11035rm -f core conftest.err conftest.$ac_objext \
11036    conftest$ac_exeext conftest.$ac_ext
11037LIBS=$ac_check_lib_save_LIBS
11038fi
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11040$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11042  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11043else
11044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11045$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11046if ${ac_cv_lib_svld_dlopen+:} false; then :
11047  $as_echo_n "(cached) " >&6
11048else
11049  ac_check_lib_save_LIBS=$LIBS
11050LIBS="-lsvld  $LIBS"
11051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052/* end confdefs.h.  */
11053
11054/* Override any GCC internal prototype to avoid an error.
11055   Use char because int might match the return type of a GCC
11056   builtin and then its argument prototype would still apply.  */
11057#ifdef __cplusplus
11058extern "C"
11059#endif
11060char dlopen ();
11061int
11062main ()
11063{
11064return dlopen ();
11065  ;
11066  return 0;
11067}
11068_ACEOF
11069if ac_fn_c_try_link "$LINENO"; then :
11070  ac_cv_lib_svld_dlopen=yes
11071else
11072  ac_cv_lib_svld_dlopen=no
11073fi
11074rm -f core conftest.err conftest.$ac_objext \
11075    conftest$ac_exeext conftest.$ac_ext
11076LIBS=$ac_check_lib_save_LIBS
11077fi
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11079$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11080if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11081  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11082else
11083  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11084$as_echo_n "checking for dld_link in -ldld... " >&6; }
11085if ${ac_cv_lib_dld_dld_link+:} false; then :
11086  $as_echo_n "(cached) " >&6
11087else
11088  ac_check_lib_save_LIBS=$LIBS
11089LIBS="-ldld  $LIBS"
11090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091/* end confdefs.h.  */
11092
11093/* Override any GCC internal prototype to avoid an error.
11094   Use char because int might match the return type of a GCC
11095   builtin and then its argument prototype would still apply.  */
11096#ifdef __cplusplus
11097extern "C"
11098#endif
11099char dld_link ();
11100int
11101main ()
11102{
11103return dld_link ();
11104  ;
11105  return 0;
11106}
11107_ACEOF
11108if ac_fn_c_try_link "$LINENO"; then :
11109  ac_cv_lib_dld_dld_link=yes
11110else
11111  ac_cv_lib_dld_dld_link=no
11112fi
11113rm -f core conftest.err conftest.$ac_objext \
11114    conftest$ac_exeext conftest.$ac_ext
11115LIBS=$ac_check_lib_save_LIBS
11116fi
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11118$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11119if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11120  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11121fi
11122
11123
11124fi
11125
11126
11127fi
11128
11129
11130fi
11131
11132
11133fi
11134
11135
11136fi
11137
11138    ;;
11139  esac
11140
11141  if test "x$lt_cv_dlopen" != xno; then
11142    enable_dlopen=yes
11143  else
11144    enable_dlopen=no
11145  fi
11146
11147  case $lt_cv_dlopen in
11148  dlopen)
11149    save_CPPFLAGS="$CPPFLAGS"
11150    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11151
11152    save_LDFLAGS="$LDFLAGS"
11153    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11154
11155    save_LIBS="$LIBS"
11156    LIBS="$lt_cv_dlopen_libs $LIBS"
11157
11158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11159$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11160if ${lt_cv_dlopen_self+:} false; then :
11161  $as_echo_n "(cached) " >&6
11162else
11163  	  if test "$cross_compiling" = yes; then :
11164  lt_cv_dlopen_self=cross
11165else
11166  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167  lt_status=$lt_dlunknown
11168  cat > conftest.$ac_ext <<_LT_EOF
11169#line $LINENO "configure"
11170#include "confdefs.h"
11171
11172#if HAVE_DLFCN_H
11173#include <dlfcn.h>
11174#endif
11175
11176#include <stdio.h>
11177
11178#ifdef RTLD_GLOBAL
11179#  define LT_DLGLOBAL		RTLD_GLOBAL
11180#else
11181#  ifdef DL_GLOBAL
11182#    define LT_DLGLOBAL		DL_GLOBAL
11183#  else
11184#    define LT_DLGLOBAL		0
11185#  endif
11186#endif
11187
11188/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189   find out it does not work in some platform. */
11190#ifndef LT_DLLAZY_OR_NOW
11191#  ifdef RTLD_LAZY
11192#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11193#  else
11194#    ifdef DL_LAZY
11195#      define LT_DLLAZY_OR_NOW		DL_LAZY
11196#    else
11197#      ifdef RTLD_NOW
11198#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11199#      else
11200#        ifdef DL_NOW
11201#          define LT_DLLAZY_OR_NOW	DL_NOW
11202#        else
11203#          define LT_DLLAZY_OR_NOW	0
11204#        endif
11205#      endif
11206#    endif
11207#  endif
11208#endif
11209
11210/* When -fvisbility=hidden is used, assume the code has been annotated
11211   correspondingly for the symbols needed.  */
11212#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11213int fnord () __attribute__((visibility("default")));
11214#endif
11215
11216int fnord () { return 42; }
11217int main ()
11218{
11219  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11220  int status = $lt_dlunknown;
11221
11222  if (self)
11223    {
11224      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11225      else
11226        {
11227	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11228          else puts (dlerror ());
11229	}
11230      /* dlclose (self); */
11231    }
11232  else
11233    puts (dlerror ());
11234
11235  return status;
11236}
11237_LT_EOF
11238  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11239  (eval $ac_link) 2>&5
11240  ac_status=$?
11241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11243    (./conftest; exit; ) >&5 2>/dev/null
11244    lt_status=$?
11245    case x$lt_status in
11246      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11247      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11248      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11249    esac
11250  else :
11251    # compilation failed
11252    lt_cv_dlopen_self=no
11253  fi
11254fi
11255rm -fr conftest*
11256
11257
11258fi
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11260$as_echo "$lt_cv_dlopen_self" >&6; }
11261
11262    if test "x$lt_cv_dlopen_self" = xyes; then
11263      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11264      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11265$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11266if ${lt_cv_dlopen_self_static+:} false; then :
11267  $as_echo_n "(cached) " >&6
11268else
11269  	  if test "$cross_compiling" = yes; then :
11270  lt_cv_dlopen_self_static=cross
11271else
11272  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11273  lt_status=$lt_dlunknown
11274  cat > conftest.$ac_ext <<_LT_EOF
11275#line $LINENO "configure"
11276#include "confdefs.h"
11277
11278#if HAVE_DLFCN_H
11279#include <dlfcn.h>
11280#endif
11281
11282#include <stdio.h>
11283
11284#ifdef RTLD_GLOBAL
11285#  define LT_DLGLOBAL		RTLD_GLOBAL
11286#else
11287#  ifdef DL_GLOBAL
11288#    define LT_DLGLOBAL		DL_GLOBAL
11289#  else
11290#    define LT_DLGLOBAL		0
11291#  endif
11292#endif
11293
11294/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11295   find out it does not work in some platform. */
11296#ifndef LT_DLLAZY_OR_NOW
11297#  ifdef RTLD_LAZY
11298#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11299#  else
11300#    ifdef DL_LAZY
11301#      define LT_DLLAZY_OR_NOW		DL_LAZY
11302#    else
11303#      ifdef RTLD_NOW
11304#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11305#      else
11306#        ifdef DL_NOW
11307#          define LT_DLLAZY_OR_NOW	DL_NOW
11308#        else
11309#          define LT_DLLAZY_OR_NOW	0
11310#        endif
11311#      endif
11312#    endif
11313#  endif
11314#endif
11315
11316/* When -fvisbility=hidden is used, assume the code has been annotated
11317   correspondingly for the symbols needed.  */
11318#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11319int fnord () __attribute__((visibility("default")));
11320#endif
11321
11322int fnord () { return 42; }
11323int main ()
11324{
11325  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11326  int status = $lt_dlunknown;
11327
11328  if (self)
11329    {
11330      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11331      else
11332        {
11333	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11334          else puts (dlerror ());
11335	}
11336      /* dlclose (self); */
11337    }
11338  else
11339    puts (dlerror ());
11340
11341  return status;
11342}
11343_LT_EOF
11344  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11345  (eval $ac_link) 2>&5
11346  ac_status=$?
11347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11348  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11349    (./conftest; exit; ) >&5 2>/dev/null
11350    lt_status=$?
11351    case x$lt_status in
11352      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11353      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11354      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11355    esac
11356  else :
11357    # compilation failed
11358    lt_cv_dlopen_self_static=no
11359  fi
11360fi
11361rm -fr conftest*
11362
11363
11364fi
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11366$as_echo "$lt_cv_dlopen_self_static" >&6; }
11367    fi
11368
11369    CPPFLAGS="$save_CPPFLAGS"
11370    LDFLAGS="$save_LDFLAGS"
11371    LIBS="$save_LIBS"
11372    ;;
11373  esac
11374
11375  case $lt_cv_dlopen_self in
11376  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11377  *) enable_dlopen_self=unknown ;;
11378  esac
11379
11380  case $lt_cv_dlopen_self_static in
11381  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11382  *) enable_dlopen_self_static=unknown ;;
11383  esac
11384fi
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402striplib=
11403old_striplib=
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11405$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11406if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11407  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11408  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410$as_echo "yes" >&6; }
11411else
11412# FIXME - insert some real tests, host_os isn't really good enough
11413  case $host_os in
11414  darwin*)
11415    if test -n "$STRIP" ; then
11416      striplib="$STRIP -x"
11417      old_striplib="$STRIP -S"
11418      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11419$as_echo "yes" >&6; }
11420    else
11421      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
11423    fi
11424    ;;
11425  *)
11426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
11428    ;;
11429  esac
11430fi
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443  # Report which library types will actually be built
11444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11445$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11447$as_echo "$can_build_shared" >&6; }
11448
11449  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11450$as_echo_n "checking whether to build shared libraries... " >&6; }
11451  test "$can_build_shared" = "no" && enable_shared=no
11452
11453  # On AIX, shared libraries and static libraries use the same namespace, and
11454  # are all built from PIC.
11455  case $host_os in
11456  aix3*)
11457    test "$enable_shared" = yes && enable_static=no
11458    if test -n "$RANLIB"; then
11459      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11460      postinstall_cmds='$RANLIB $lib'
11461    fi
11462    ;;
11463
11464  aix[4-9]*)
11465    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11466      test "$enable_shared" = yes && enable_static=no
11467    fi
11468    ;;
11469  esac
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11471$as_echo "$enable_shared" >&6; }
11472
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11474$as_echo_n "checking whether to build static libraries... " >&6; }
11475  # Make sure either enable_shared or enable_static is yes.
11476  test "$enable_shared" = yes || enable_static=yes
11477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11478$as_echo "$enable_static" >&6; }
11479
11480
11481
11482
11483fi
11484ac_ext=c
11485ac_cpp='$CPP $CPPFLAGS'
11486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11488ac_compiler_gnu=$ac_cv_c_compiler_gnu
11489
11490CC="$lt_save_CC"
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506        ac_config_commands="$ac_config_commands libtool"
11507
11508
11509
11510
11511# Only expand once:
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11522	if test -n "$ac_tool_prefix"; then
11523  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11524set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526$as_echo_n "checking for $ac_word... " >&6; }
11527if ${ac_cv_path_PKG_CONFIG+:} false; then :
11528  $as_echo_n "(cached) " >&6
11529else
11530  case $PKG_CONFIG in
11531  [\\/]* | ?:[\\/]*)
11532  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11533  ;;
11534  *)
11535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536for as_dir in $PATH
11537do
11538  IFS=$as_save_IFS
11539  test -z "$as_dir" && as_dir=.
11540    for ac_exec_ext in '' $ac_executable_extensions; do
11541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11542    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544    break 2
11545  fi
11546done
11547  done
11548IFS=$as_save_IFS
11549
11550  ;;
11551esac
11552fi
11553PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11554if test -n "$PKG_CONFIG"; then
11555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11556$as_echo "$PKG_CONFIG" >&6; }
11557else
11558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559$as_echo "no" >&6; }
11560fi
11561
11562
11563fi
11564if test -z "$ac_cv_path_PKG_CONFIG"; then
11565  ac_pt_PKG_CONFIG=$PKG_CONFIG
11566  # Extract the first word of "pkg-config", so it can be a program name with args.
11567set dummy pkg-config; ac_word=$2
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569$as_echo_n "checking for $ac_word... " >&6; }
11570if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11571  $as_echo_n "(cached) " >&6
11572else
11573  case $ac_pt_PKG_CONFIG in
11574  [\\/]* | ?:[\\/]*)
11575  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11576  ;;
11577  *)
11578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579for as_dir in $PATH
11580do
11581  IFS=$as_save_IFS
11582  test -z "$as_dir" && as_dir=.
11583    for ac_exec_ext in '' $ac_executable_extensions; do
11584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587    break 2
11588  fi
11589done
11590  done
11591IFS=$as_save_IFS
11592
11593  ;;
11594esac
11595fi
11596ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11597if test -n "$ac_pt_PKG_CONFIG"; then
11598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11599$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11600else
11601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602$as_echo "no" >&6; }
11603fi
11604
11605  if test "x$ac_pt_PKG_CONFIG" = x; then
11606    PKG_CONFIG=""
11607  else
11608    case $cross_compiling:$ac_tool_warned in
11609yes:)
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11612ac_tool_warned=yes ;;
11613esac
11614    PKG_CONFIG=$ac_pt_PKG_CONFIG
11615  fi
11616else
11617  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11618fi
11619
11620fi
11621if test -n "$PKG_CONFIG"; then
11622	_pkg_min_version=0.9.0
11623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11624$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11625	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11627$as_echo "yes" >&6; }
11628	else
11629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630$as_echo "no" >&6; }
11631		PKG_CONFIG=""
11632	fi
11633fi
11634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11635$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11636if ${ac_cv_prog_cc_c99+:} false; then :
11637  $as_echo_n "(cached) " >&6
11638else
11639  ac_cv_prog_cc_c99=no
11640ac_save_CC=$CC
11641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642/* end confdefs.h.  */
11643#include <stdarg.h>
11644#include <stdbool.h>
11645#include <stdlib.h>
11646#include <wchar.h>
11647#include <stdio.h>
11648
11649// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11650#define debug(...) fprintf (stderr, __VA_ARGS__)
11651#define showlist(...) puts (#__VA_ARGS__)
11652#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11653static void
11654test_varargs_macros (void)
11655{
11656  int x = 1234;
11657  int y = 5678;
11658  debug ("Flag");
11659  debug ("X = %d\n", x);
11660  showlist (The first, second, and third items.);
11661  report (x>y, "x is %d but y is %d", x, y);
11662}
11663
11664// Check long long types.
11665#define BIG64 18446744073709551615ull
11666#define BIG32 4294967295ul
11667#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11668#if !BIG_OK
11669  your preprocessor is broken;
11670#endif
11671#if BIG_OK
11672#else
11673  your preprocessor is broken;
11674#endif
11675static long long int bignum = -9223372036854775807LL;
11676static unsigned long long int ubignum = BIG64;
11677
11678struct incomplete_array
11679{
11680  int datasize;
11681  double data[];
11682};
11683
11684struct named_init {
11685  int number;
11686  const wchar_t *name;
11687  double average;
11688};
11689
11690typedef const char *ccp;
11691
11692static inline int
11693test_restrict (ccp restrict text)
11694{
11695  // See if C++-style comments work.
11696  // Iterate through items via the restricted pointer.
11697  // Also check for declarations in for loops.
11698  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11699    continue;
11700  return 0;
11701}
11702
11703// Check varargs and va_copy.
11704static void
11705test_varargs (const char *format, ...)
11706{
11707  va_list args;
11708  va_start (args, format);
11709  va_list args_copy;
11710  va_copy (args_copy, args);
11711
11712  const char *str;
11713  int number;
11714  float fnumber;
11715
11716  while (*format)
11717    {
11718      switch (*format++)
11719	{
11720	case 's': // string
11721	  str = va_arg (args_copy, const char *);
11722	  break;
11723	case 'd': // int
11724	  number = va_arg (args_copy, int);
11725	  break;
11726	case 'f': // float
11727	  fnumber = va_arg (args_copy, double);
11728	  break;
11729	default:
11730	  break;
11731	}
11732    }
11733  va_end (args_copy);
11734  va_end (args);
11735}
11736
11737int
11738main ()
11739{
11740
11741  // Check bool.
11742  _Bool success = false;
11743
11744  // Check restrict.
11745  if (test_restrict ("String literal") == 0)
11746    success = true;
11747  char *restrict newvar = "Another string";
11748
11749  // Check varargs.
11750  test_varargs ("s, d' f .", "string", 65, 34.234);
11751  test_varargs_macros ();
11752
11753  // Check flexible array members.
11754  struct incomplete_array *ia =
11755    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11756  ia->datasize = 10;
11757  for (int i = 0; i < ia->datasize; ++i)
11758    ia->data[i] = i * 1.234;
11759
11760  // Check named initializers.
11761  struct named_init ni = {
11762    .number = 34,
11763    .name = L"Test wide string",
11764    .average = 543.34343,
11765  };
11766
11767  ni.number = 58;
11768
11769  int dynamic_array[ni.number];
11770  dynamic_array[ni.number - 1] = 543;
11771
11772  // work around unused variable warnings
11773  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11774	  || dynamic_array[ni.number - 1] != 543);
11775
11776  ;
11777  return 0;
11778}
11779_ACEOF
11780for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
11781do
11782  CC="$ac_save_CC $ac_arg"
11783  if ac_fn_c_try_compile "$LINENO"; then :
11784  ac_cv_prog_cc_c99=$ac_arg
11785fi
11786rm -f core conftest.err conftest.$ac_objext
11787  test "x$ac_cv_prog_cc_c99" != "xno" && break
11788done
11789rm -f conftest.$ac_ext
11790CC=$ac_save_CC
11791
11792fi
11793# AC_CACHE_VAL
11794case "x$ac_cv_prog_cc_c99" in
11795  x)
11796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11797$as_echo "none needed" >&6; } ;;
11798  xno)
11799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11800$as_echo "unsupported" >&6; } ;;
11801  *)
11802    CC="$CC $ac_cv_prog_cc_c99"
11803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11804$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11805esac
11806if test "x$ac_cv_prog_cc_c99" != xno; then :
11807
11808fi
11809
11810
11811
11812
11813
11814
11815ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11816if test "x$ac_cv_have_decl___clang__" = xyes; then :
11817  CLANGCC="yes"
11818else
11819  CLANGCC="no"
11820fi
11821
11822ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11823if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11824  INTELCC="yes"
11825else
11826  INTELCC="no"
11827fi
11828
11829ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11830if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11831  SUNCC="yes"
11832else
11833  SUNCC="no"
11834fi
11835
11836
11837
11838
11839
11840
11841
11842# Define header files and pkgconfig paths
11843xcbincludedir='${includedir}/xcb'
11844
11845pkgconfigdir='${prefix}/libdata/pkgconfig'
11846
11847
11848# Check xcb version
11849
11850pkg_failed=no
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
11852$as_echo_n "checking for XCB... " >&6; }
11853
11854if test -n "$XCB_CFLAGS"; then
11855    pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
11856 elif test -n "$PKG_CONFIG"; then
11857    if test -n "$PKG_CONFIG" && \
11858    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
11859  ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
11860  ac_status=$?
11861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11862  test $ac_status = 0; }; then
11863  pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.4" 2>/dev/null`
11864		      test "x$?" != "x0" && pkg_failed=yes
11865else
11866  pkg_failed=yes
11867fi
11868 else
11869    pkg_failed=untried
11870fi
11871if test -n "$XCB_LIBS"; then
11872    pkg_cv_XCB_LIBS="$XCB_LIBS"
11873 elif test -n "$PKG_CONFIG"; then
11874    if test -n "$PKG_CONFIG" && \
11875    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.4\""; } >&5
11876  ($PKG_CONFIG --exists --print-errors "xcb >= 1.4") 2>&5
11877  ac_status=$?
11878  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11879  test $ac_status = 0; }; then
11880  pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb >= 1.4" 2>/dev/null`
11881		      test "x$?" != "x0" && pkg_failed=yes
11882else
11883  pkg_failed=yes
11884fi
11885 else
11886    pkg_failed=untried
11887fi
11888
11889
11890
11891if test $pkg_failed = yes; then
11892   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893$as_echo "no" >&6; }
11894
11895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11896        _pkg_short_errors_supported=yes
11897else
11898        _pkg_short_errors_supported=no
11899fi
11900        if test $_pkg_short_errors_supported = yes; then
11901	        XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
11902        else
11903	        XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.4" 2>&1`
11904        fi
11905	# Put the nasty error message in config.log where it belongs
11906	echo "$XCB_PKG_ERRORS" >&5
11907
11908	as_fn_error $? "Package requirements (xcb >= 1.4) were not met:
11909
11910$XCB_PKG_ERRORS
11911
11912Consider adjusting the PKG_CONFIG_PATH environment variable if you
11913installed software in a non-standard prefix.
11914
11915Alternatively, you may set the environment variables XCB_CFLAGS
11916and XCB_LIBS to avoid the need to call pkg-config.
11917See the pkg-config man page for more details." "$LINENO" 5
11918elif test $pkg_failed = untried; then
11919     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
11921	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11923as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11924is in your PATH or set the PKG_CONFIG environment variable to the full
11925path to pkg-config.
11926
11927Alternatively, you may set the environment variables XCB_CFLAGS
11928and XCB_LIBS to avoid the need to call pkg-config.
11929See the pkg-config man page for more details.
11930
11931To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11932See \`config.log' for more details" "$LINENO" 5; }
11933else
11934	XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
11935	XCB_LIBS=$pkg_cv_XCB_LIBS
11936        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11937$as_echo "yes" >&6; }
11938
11939fi
11940
11941# Check version of xcb-proto that xcb was compiled against
11942xcbproto_required=1.6
11943
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxcb was compiled against xcb-proto >= $xcbproto_required" >&5
11945$as_echo_n "checking whether libxcb was compiled against xcb-proto >= $xcbproto_required... " >&6; }
11946xcbproto_version=`$PKG_CONFIG --variable=xcbproto_version xcb`
11947
11948  for ac_prog in gawk mawk nawk awk
11949do
11950  # Extract the first word of "$ac_prog", so it can be a program name with args.
11951set dummy $ac_prog; ac_word=$2
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
11954if ${ac_cv_prog_AWK+:} false; then :
11955  $as_echo_n "(cached) " >&6
11956else
11957  if test -n "$AWK"; then
11958  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11959else
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963  IFS=$as_save_IFS
11964  test -z "$as_dir" && as_dir=.
11965    for ac_exec_ext in '' $ac_executable_extensions; do
11966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967    ac_cv_prog_AWK="$ac_prog"
11968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969    break 2
11970  fi
11971done
11972  done
11973IFS=$as_save_IFS
11974
11975fi
11976fi
11977AWK=$ac_cv_prog_AWK
11978if test -n "$AWK"; then
11979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11980$as_echo "$AWK" >&6; }
11981else
11982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
11984fi
11985
11986
11987  test -n "$AWK" && break
11988done
11989
11990
11991  # Used to indicate true or false condition
11992  ax_compare_version=false
11993
11994  # Convert the two version strings to be compared into a format that
11995  # allows a simple string comparison.  The end result is that a version
11996  # string of the form 1.12.5-r617 will be converted to the form
11997  # 0001001200050617.  In other words, each number is zero padded to four
11998  # digits, and non digits are removed.
11999
12000  ax_compare_version_A=`echo "$xcbproto_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12001                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12002                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12003                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12004                     -e 's/[^0-9]//g'`
12005
12006
12007  ax_compare_version_B=`echo "$xcbproto_required" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12008                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12009                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12010                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12011                     -e 's/[^0-9]//g'`
12012
12013
12014    ax_compare_version=`echo "x$ax_compare_version_A
12015x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
12016
12017
12018
12019    if test "$ax_compare_version" = "true" ; then
12020    xcbproto_ok="yes"
12021    else xcbproto_ok="no"
12022  fi
12023
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xcbproto_ok" >&5
12025$as_echo "$xcbproto_ok" >&6; }
12026
12027if test $xcbproto_ok = no; then
12028   as_fn_error $? "libxcb was compiled against xcb-proto $xcbproto_version; it needs to be compiled against version $xcbproto_required or higher" "$LINENO" 5
12029fi
12030
12031# Call macros from Xorg util-macros
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049# Check whether --enable-selective-werror was given.
12050if test "${enable_selective_werror+set}" = set; then :
12051  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12052else
12053  SELECTIVE_WERROR=yes
12054fi
12055
12056
12057
12058
12059
12060# -v is too short to test reliably with XORG_TESTSET_CFLAG
12061if test "x$SUNCC" = "xyes"; then
12062    BASE_CFLAGS="-v"
12063else
12064    BASE_CFLAGS=""
12065fi
12066
12067# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081xorg_testset_save_CFLAGS="$CFLAGS"
12082
12083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12088  $as_echo_n "(cached) " >&6
12089else
12090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091/* end confdefs.h.  */
12092int i;
12093_ACEOF
12094if ac_fn_c_try_compile "$LINENO"; then :
12095  xorg_cv_cc_flag_unknown_warning_option=yes
12096else
12097  xorg_cv_cc_flag_unknown_warning_option=no
12098fi
12099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100fi
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12104	CFLAGS="$xorg_testset_save_CFLAGS"
12105fi
12106
12107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12110	fi
12111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12115  $as_echo_n "(cached) " >&6
12116else
12117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118/* end confdefs.h.  */
12119int i;
12120_ACEOF
12121if ac_fn_c_try_compile "$LINENO"; then :
12122  xorg_cv_cc_flag_unused_command_line_argument=yes
12123else
12124  xorg_cv_cc_flag_unused_command_line_argument=no
12125fi
12126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127fi
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12131	CFLAGS="$xorg_testset_save_CFLAGS"
12132fi
12133
12134found="no"
12135
12136	if test $found = "no" ; then
12137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12139		fi
12140
12141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12143		fi
12144
12145		CFLAGS="$CFLAGS -Wall"
12146
12147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12148$as_echo_n "checking if $CC supports -Wall... " >&6; }
12149		cacheid=xorg_cv_cc_flag__Wall
12150		if eval \${$cacheid+:} false; then :
12151  $as_echo_n "(cached) " >&6
12152else
12153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154/* end confdefs.h.  */
12155int i;
12156int
12157main ()
12158{
12159
12160  ;
12161  return 0;
12162}
12163_ACEOF
12164if ac_fn_c_try_link "$LINENO"; then :
12165  eval $cacheid=yes
12166else
12167  eval $cacheid=no
12168fi
12169rm -f core conftest.err conftest.$ac_objext \
12170    conftest$ac_exeext conftest.$ac_ext
12171fi
12172
12173
12174		CFLAGS="$xorg_testset_save_CFLAGS"
12175
12176		eval supported=\$$cacheid
12177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12178$as_echo "$supported" >&6; }
12179		if test "$supported" = "yes" ; then
12180			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12181			found="yes"
12182		fi
12183	fi
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199xorg_testset_save_CFLAGS="$CFLAGS"
12200
12201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12206  $as_echo_n "(cached) " >&6
12207else
12208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209/* end confdefs.h.  */
12210int i;
12211_ACEOF
12212if ac_fn_c_try_compile "$LINENO"; then :
12213  xorg_cv_cc_flag_unknown_warning_option=yes
12214else
12215  xorg_cv_cc_flag_unknown_warning_option=no
12216fi
12217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218fi
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12221	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12222	CFLAGS="$xorg_testset_save_CFLAGS"
12223fi
12224
12225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12226	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12228	fi
12229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236/* end confdefs.h.  */
12237int i;
12238_ACEOF
12239if ac_fn_c_try_compile "$LINENO"; then :
12240  xorg_cv_cc_flag_unused_command_line_argument=yes
12241else
12242  xorg_cv_cc_flag_unused_command_line_argument=no
12243fi
12244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245fi
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12249	CFLAGS="$xorg_testset_save_CFLAGS"
12250fi
12251
12252found="no"
12253
12254	if test $found = "no" ; then
12255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12257		fi
12258
12259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12261		fi
12262
12263		CFLAGS="$CFLAGS -Wpointer-arith"
12264
12265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12266$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12267		cacheid=xorg_cv_cc_flag__Wpointer_arith
12268		if eval \${$cacheid+:} false; then :
12269  $as_echo_n "(cached) " >&6
12270else
12271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272/* end confdefs.h.  */
12273int i;
12274int
12275main ()
12276{
12277
12278  ;
12279  return 0;
12280}
12281_ACEOF
12282if ac_fn_c_try_link "$LINENO"; then :
12283  eval $cacheid=yes
12284else
12285  eval $cacheid=no
12286fi
12287rm -f core conftest.err conftest.$ac_objext \
12288    conftest$ac_exeext conftest.$ac_ext
12289fi
12290
12291
12292		CFLAGS="$xorg_testset_save_CFLAGS"
12293
12294		eval supported=\$$cacheid
12295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12296$as_echo "$supported" >&6; }
12297		if test "$supported" = "yes" ; then
12298			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12299			found="yes"
12300		fi
12301	fi
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317xorg_testset_save_CFLAGS="$CFLAGS"
12318
12319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12324  $as_echo_n "(cached) " >&6
12325else
12326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h.  */
12328int i;
12329_ACEOF
12330if ac_fn_c_try_compile "$LINENO"; then :
12331  xorg_cv_cc_flag_unknown_warning_option=yes
12332else
12333  xorg_cv_cc_flag_unknown_warning_option=no
12334fi
12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336fi
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12340	CFLAGS="$xorg_testset_save_CFLAGS"
12341fi
12342
12343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12346	fi
12347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12351  $as_echo_n "(cached) " >&6
12352else
12353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h.  */
12355int i;
12356_ACEOF
12357if ac_fn_c_try_compile "$LINENO"; then :
12358  xorg_cv_cc_flag_unused_command_line_argument=yes
12359else
12360  xorg_cv_cc_flag_unused_command_line_argument=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12367	CFLAGS="$xorg_testset_save_CFLAGS"
12368fi
12369
12370found="no"
12371
12372	if test $found = "no" ; then
12373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12375		fi
12376
12377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12379		fi
12380
12381		CFLAGS="$CFLAGS -Wmissing-declarations"
12382
12383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12384$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12385		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12386		if eval \${$cacheid+:} false; then :
12387  $as_echo_n "(cached) " >&6
12388else
12389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390/* end confdefs.h.  */
12391int i;
12392int
12393main ()
12394{
12395
12396  ;
12397  return 0;
12398}
12399_ACEOF
12400if ac_fn_c_try_link "$LINENO"; then :
12401  eval $cacheid=yes
12402else
12403  eval $cacheid=no
12404fi
12405rm -f core conftest.err conftest.$ac_objext \
12406    conftest$ac_exeext conftest.$ac_ext
12407fi
12408
12409
12410		CFLAGS="$xorg_testset_save_CFLAGS"
12411
12412		eval supported=\$$cacheid
12413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12414$as_echo "$supported" >&6; }
12415		if test "$supported" = "yes" ; then
12416			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12417			found="yes"
12418		fi
12419	fi
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435xorg_testset_save_CFLAGS="$CFLAGS"
12436
12437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12442  $as_echo_n "(cached) " >&6
12443else
12444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445/* end confdefs.h.  */
12446int i;
12447_ACEOF
12448if ac_fn_c_try_compile "$LINENO"; then :
12449  xorg_cv_cc_flag_unknown_warning_option=yes
12450else
12451  xorg_cv_cc_flag_unknown_warning_option=no
12452fi
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454fi
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12458	CFLAGS="$xorg_testset_save_CFLAGS"
12459fi
12460
12461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12464	fi
12465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12469  $as_echo_n "(cached) " >&6
12470else
12471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472/* end confdefs.h.  */
12473int i;
12474_ACEOF
12475if ac_fn_c_try_compile "$LINENO"; then :
12476  xorg_cv_cc_flag_unused_command_line_argument=yes
12477else
12478  xorg_cv_cc_flag_unused_command_line_argument=no
12479fi
12480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481fi
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12485	CFLAGS="$xorg_testset_save_CFLAGS"
12486fi
12487
12488found="no"
12489
12490	if test $found = "no" ; then
12491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12493		fi
12494
12495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12497		fi
12498
12499		CFLAGS="$CFLAGS -Wformat=2"
12500
12501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12502$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12503		cacheid=xorg_cv_cc_flag__Wformat_2
12504		if eval \${$cacheid+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508/* end confdefs.h.  */
12509int i;
12510int
12511main ()
12512{
12513
12514  ;
12515  return 0;
12516}
12517_ACEOF
12518if ac_fn_c_try_link "$LINENO"; then :
12519  eval $cacheid=yes
12520else
12521  eval $cacheid=no
12522fi
12523rm -f core conftest.err conftest.$ac_objext \
12524    conftest$ac_exeext conftest.$ac_ext
12525fi
12526
12527
12528		CFLAGS="$xorg_testset_save_CFLAGS"
12529
12530		eval supported=\$$cacheid
12531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12532$as_echo "$supported" >&6; }
12533		if test "$supported" = "yes" ; then
12534			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12535			found="yes"
12536		fi
12537	fi
12538
12539	if test $found = "no" ; then
12540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12542		fi
12543
12544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12546		fi
12547
12548		CFLAGS="$CFLAGS -Wformat"
12549
12550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12551$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12552		cacheid=xorg_cv_cc_flag__Wformat
12553		if eval \${$cacheid+:} false; then :
12554  $as_echo_n "(cached) " >&6
12555else
12556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557/* end confdefs.h.  */
12558int i;
12559int
12560main ()
12561{
12562
12563  ;
12564  return 0;
12565}
12566_ACEOF
12567if ac_fn_c_try_link "$LINENO"; then :
12568  eval $cacheid=yes
12569else
12570  eval $cacheid=no
12571fi
12572rm -f core conftest.err conftest.$ac_objext \
12573    conftest$ac_exeext conftest.$ac_ext
12574fi
12575
12576
12577		CFLAGS="$xorg_testset_save_CFLAGS"
12578
12579		eval supported=\$$cacheid
12580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12581$as_echo "$supported" >&6; }
12582		if test "$supported" = "yes" ; then
12583			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12584			found="yes"
12585		fi
12586	fi
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604xorg_testset_save_CFLAGS="$CFLAGS"
12605
12606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12611  $as_echo_n "(cached) " >&6
12612else
12613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614/* end confdefs.h.  */
12615int i;
12616_ACEOF
12617if ac_fn_c_try_compile "$LINENO"; then :
12618  xorg_cv_cc_flag_unknown_warning_option=yes
12619else
12620  xorg_cv_cc_flag_unknown_warning_option=no
12621fi
12622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623fi
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12627	CFLAGS="$xorg_testset_save_CFLAGS"
12628fi
12629
12630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12633	fi
12634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12638  $as_echo_n "(cached) " >&6
12639else
12640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641/* end confdefs.h.  */
12642int i;
12643_ACEOF
12644if ac_fn_c_try_compile "$LINENO"; then :
12645  xorg_cv_cc_flag_unused_command_line_argument=yes
12646else
12647  xorg_cv_cc_flag_unused_command_line_argument=no
12648fi
12649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650fi
12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12654	CFLAGS="$xorg_testset_save_CFLAGS"
12655fi
12656
12657found="no"
12658
12659	if test $found = "no" ; then
12660		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12662		fi
12663
12664		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12666		fi
12667
12668		CFLAGS="$CFLAGS -Wstrict-prototypes"
12669
12670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12671$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12672		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12673		if eval \${$cacheid+:} false; then :
12674  $as_echo_n "(cached) " >&6
12675else
12676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677/* end confdefs.h.  */
12678int i;
12679int
12680main ()
12681{
12682
12683  ;
12684  return 0;
12685}
12686_ACEOF
12687if ac_fn_c_try_link "$LINENO"; then :
12688  eval $cacheid=yes
12689else
12690  eval $cacheid=no
12691fi
12692rm -f core conftest.err conftest.$ac_objext \
12693    conftest$ac_exeext conftest.$ac_ext
12694fi
12695
12696
12697		CFLAGS="$xorg_testset_save_CFLAGS"
12698
12699		eval supported=\$$cacheid
12700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12701$as_echo "$supported" >&6; }
12702		if test "$supported" = "yes" ; then
12703			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12704			found="yes"
12705		fi
12706	fi
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722xorg_testset_save_CFLAGS="$CFLAGS"
12723
12724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12729  $as_echo_n "(cached) " >&6
12730else
12731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h.  */
12733int i;
12734_ACEOF
12735if ac_fn_c_try_compile "$LINENO"; then :
12736  xorg_cv_cc_flag_unknown_warning_option=yes
12737else
12738  xorg_cv_cc_flag_unknown_warning_option=no
12739fi
12740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741fi
12742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12745	CFLAGS="$xorg_testset_save_CFLAGS"
12746fi
12747
12748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12751	fi
12752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12756  $as_echo_n "(cached) " >&6
12757else
12758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759/* end confdefs.h.  */
12760int i;
12761_ACEOF
12762if ac_fn_c_try_compile "$LINENO"; then :
12763  xorg_cv_cc_flag_unused_command_line_argument=yes
12764else
12765  xorg_cv_cc_flag_unused_command_line_argument=no
12766fi
12767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768fi
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12772	CFLAGS="$xorg_testset_save_CFLAGS"
12773fi
12774
12775found="no"
12776
12777	if test $found = "no" ; then
12778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12780		fi
12781
12782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12784		fi
12785
12786		CFLAGS="$CFLAGS -Wmissing-prototypes"
12787
12788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12789$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12790		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12791		if eval \${$cacheid+:} false; then :
12792  $as_echo_n "(cached) " >&6
12793else
12794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h.  */
12796int i;
12797int
12798main ()
12799{
12800
12801  ;
12802  return 0;
12803}
12804_ACEOF
12805if ac_fn_c_try_link "$LINENO"; then :
12806  eval $cacheid=yes
12807else
12808  eval $cacheid=no
12809fi
12810rm -f core conftest.err conftest.$ac_objext \
12811    conftest$ac_exeext conftest.$ac_ext
12812fi
12813
12814
12815		CFLAGS="$xorg_testset_save_CFLAGS"
12816
12817		eval supported=\$$cacheid
12818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12819$as_echo "$supported" >&6; }
12820		if test "$supported" = "yes" ; then
12821			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12822			found="yes"
12823		fi
12824	fi
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840xorg_testset_save_CFLAGS="$CFLAGS"
12841
12842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12847  $as_echo_n "(cached) " >&6
12848else
12849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850/* end confdefs.h.  */
12851int i;
12852_ACEOF
12853if ac_fn_c_try_compile "$LINENO"; then :
12854  xorg_cv_cc_flag_unknown_warning_option=yes
12855else
12856  xorg_cv_cc_flag_unknown_warning_option=no
12857fi
12858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859fi
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12863	CFLAGS="$xorg_testset_save_CFLAGS"
12864fi
12865
12866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12869	fi
12870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12874  $as_echo_n "(cached) " >&6
12875else
12876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h.  */
12878int i;
12879_ACEOF
12880if ac_fn_c_try_compile "$LINENO"; then :
12881  xorg_cv_cc_flag_unused_command_line_argument=yes
12882else
12883  xorg_cv_cc_flag_unused_command_line_argument=no
12884fi
12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886fi
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12890	CFLAGS="$xorg_testset_save_CFLAGS"
12891fi
12892
12893found="no"
12894
12895	if test $found = "no" ; then
12896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12898		fi
12899
12900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12902		fi
12903
12904		CFLAGS="$CFLAGS -Wnested-externs"
12905
12906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12907$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12908		cacheid=xorg_cv_cc_flag__Wnested_externs
12909		if eval \${$cacheid+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913/* end confdefs.h.  */
12914int i;
12915int
12916main ()
12917{
12918
12919  ;
12920  return 0;
12921}
12922_ACEOF
12923if ac_fn_c_try_link "$LINENO"; then :
12924  eval $cacheid=yes
12925else
12926  eval $cacheid=no
12927fi
12928rm -f core conftest.err conftest.$ac_objext \
12929    conftest$ac_exeext conftest.$ac_ext
12930fi
12931
12932
12933		CFLAGS="$xorg_testset_save_CFLAGS"
12934
12935		eval supported=\$$cacheid
12936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12937$as_echo "$supported" >&6; }
12938		if test "$supported" = "yes" ; then
12939			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12940			found="yes"
12941		fi
12942	fi
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958xorg_testset_save_CFLAGS="$CFLAGS"
12959
12960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12965  $as_echo_n "(cached) " >&6
12966else
12967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968/* end confdefs.h.  */
12969int i;
12970_ACEOF
12971if ac_fn_c_try_compile "$LINENO"; then :
12972  xorg_cv_cc_flag_unknown_warning_option=yes
12973else
12974  xorg_cv_cc_flag_unknown_warning_option=no
12975fi
12976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12977fi
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12981	CFLAGS="$xorg_testset_save_CFLAGS"
12982fi
12983
12984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12987	fi
12988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12992  $as_echo_n "(cached) " >&6
12993else
12994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995/* end confdefs.h.  */
12996int i;
12997_ACEOF
12998if ac_fn_c_try_compile "$LINENO"; then :
12999  xorg_cv_cc_flag_unused_command_line_argument=yes
13000else
13001  xorg_cv_cc_flag_unused_command_line_argument=no
13002fi
13003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004fi
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13008	CFLAGS="$xorg_testset_save_CFLAGS"
13009fi
13010
13011found="no"
13012
13013	if test $found = "no" ; then
13014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13016		fi
13017
13018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13020		fi
13021
13022		CFLAGS="$CFLAGS -Wbad-function-cast"
13023
13024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13025$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13026		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13027		if eval \${$cacheid+:} false; then :
13028  $as_echo_n "(cached) " >&6
13029else
13030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031/* end confdefs.h.  */
13032int i;
13033int
13034main ()
13035{
13036
13037  ;
13038  return 0;
13039}
13040_ACEOF
13041if ac_fn_c_try_link "$LINENO"; then :
13042  eval $cacheid=yes
13043else
13044  eval $cacheid=no
13045fi
13046rm -f core conftest.err conftest.$ac_objext \
13047    conftest$ac_exeext conftest.$ac_ext
13048fi
13049
13050
13051		CFLAGS="$xorg_testset_save_CFLAGS"
13052
13053		eval supported=\$$cacheid
13054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13055$as_echo "$supported" >&6; }
13056		if test "$supported" = "yes" ; then
13057			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13058			found="yes"
13059		fi
13060	fi
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076xorg_testset_save_CFLAGS="$CFLAGS"
13077
13078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13083  $as_echo_n "(cached) " >&6
13084else
13085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086/* end confdefs.h.  */
13087int i;
13088_ACEOF
13089if ac_fn_c_try_compile "$LINENO"; then :
13090  xorg_cv_cc_flag_unknown_warning_option=yes
13091else
13092  xorg_cv_cc_flag_unknown_warning_option=no
13093fi
13094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095fi
13096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13099	CFLAGS="$xorg_testset_save_CFLAGS"
13100fi
13101
13102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13105	fi
13106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13110  $as_echo_n "(cached) " >&6
13111else
13112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113/* end confdefs.h.  */
13114int i;
13115_ACEOF
13116if ac_fn_c_try_compile "$LINENO"; then :
13117  xorg_cv_cc_flag_unused_command_line_argument=yes
13118else
13119  xorg_cv_cc_flag_unused_command_line_argument=no
13120fi
13121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13122fi
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13126	CFLAGS="$xorg_testset_save_CFLAGS"
13127fi
13128
13129found="no"
13130
13131	if test $found = "no" ; then
13132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13134		fi
13135
13136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13138		fi
13139
13140		CFLAGS="$CFLAGS -Wold-style-definition"
13141
13142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13143$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13144		cacheid=xorg_cv_cc_flag__Wold_style_definition
13145		if eval \${$cacheid+:} false; then :
13146  $as_echo_n "(cached) " >&6
13147else
13148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149/* end confdefs.h.  */
13150int i;
13151int
13152main ()
13153{
13154
13155  ;
13156  return 0;
13157}
13158_ACEOF
13159if ac_fn_c_try_link "$LINENO"; then :
13160  eval $cacheid=yes
13161else
13162  eval $cacheid=no
13163fi
13164rm -f core conftest.err conftest.$ac_objext \
13165    conftest$ac_exeext conftest.$ac_ext
13166fi
13167
13168
13169		CFLAGS="$xorg_testset_save_CFLAGS"
13170
13171		eval supported=\$$cacheid
13172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13173$as_echo "$supported" >&6; }
13174		if test "$supported" = "yes" ; then
13175			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13176			found="yes"
13177		fi
13178	fi
13179
13180	if test $found = "no" ; then
13181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13183		fi
13184
13185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13187		fi
13188
13189		CFLAGS="$CFLAGS -fd"
13190
13191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13192$as_echo_n "checking if $CC supports -fd... " >&6; }
13193		cacheid=xorg_cv_cc_flag__fd
13194		if eval \${$cacheid+:} false; then :
13195  $as_echo_n "(cached) " >&6
13196else
13197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198/* end confdefs.h.  */
13199int i;
13200int
13201main ()
13202{
13203
13204  ;
13205  return 0;
13206}
13207_ACEOF
13208if ac_fn_c_try_link "$LINENO"; then :
13209  eval $cacheid=yes
13210else
13211  eval $cacheid=no
13212fi
13213rm -f core conftest.err conftest.$ac_objext \
13214    conftest$ac_exeext conftest.$ac_ext
13215fi
13216
13217
13218		CFLAGS="$xorg_testset_save_CFLAGS"
13219
13220		eval supported=\$$cacheid
13221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13222$as_echo "$supported" >&6; }
13223		if test "$supported" = "yes" ; then
13224			BASE_CFLAGS="$BASE_CFLAGS -fd"
13225			found="yes"
13226		fi
13227	fi
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243xorg_testset_save_CFLAGS="$CFLAGS"
13244
13245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13250  $as_echo_n "(cached) " >&6
13251else
13252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253/* end confdefs.h.  */
13254int i;
13255_ACEOF
13256if ac_fn_c_try_compile "$LINENO"; then :
13257  xorg_cv_cc_flag_unknown_warning_option=yes
13258else
13259  xorg_cv_cc_flag_unknown_warning_option=no
13260fi
13261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13266	CFLAGS="$xorg_testset_save_CFLAGS"
13267fi
13268
13269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13272	fi
13273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13277  $as_echo_n "(cached) " >&6
13278else
13279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280/* end confdefs.h.  */
13281int i;
13282_ACEOF
13283if ac_fn_c_try_compile "$LINENO"; then :
13284  xorg_cv_cc_flag_unused_command_line_argument=yes
13285else
13286  xorg_cv_cc_flag_unused_command_line_argument=no
13287fi
13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289fi
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13293	CFLAGS="$xorg_testset_save_CFLAGS"
13294fi
13295
13296found="no"
13297
13298	if test $found = "no" ; then
13299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13301		fi
13302
13303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13305		fi
13306
13307		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13308
13309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13310$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13311		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13312		if eval \${$cacheid+:} false; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316/* end confdefs.h.  */
13317int i;
13318int
13319main ()
13320{
13321
13322  ;
13323  return 0;
13324}
13325_ACEOF
13326if ac_fn_c_try_link "$LINENO"; then :
13327  eval $cacheid=yes
13328else
13329  eval $cacheid=no
13330fi
13331rm -f core conftest.err conftest.$ac_objext \
13332    conftest$ac_exeext conftest.$ac_ext
13333fi
13334
13335
13336		CFLAGS="$xorg_testset_save_CFLAGS"
13337
13338		eval supported=\$$cacheid
13339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13340$as_echo "$supported" >&6; }
13341		if test "$supported" = "yes" ; then
13342			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13343			found="yes"
13344		fi
13345	fi
13346
13347
13348
13349
13350
13351# This chunk adds additional warnings that could catch undesired effects.
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365xorg_testset_save_CFLAGS="$CFLAGS"
13366
13367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13369	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13372  $as_echo_n "(cached) " >&6
13373else
13374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h.  */
13376int i;
13377_ACEOF
13378if ac_fn_c_try_compile "$LINENO"; then :
13379  xorg_cv_cc_flag_unknown_warning_option=yes
13380else
13381  xorg_cv_cc_flag_unknown_warning_option=no
13382fi
13383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384fi
13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13388	CFLAGS="$xorg_testset_save_CFLAGS"
13389fi
13390
13391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394	fi
13395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13399  $as_echo_n "(cached) " >&6
13400else
13401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402/* end confdefs.h.  */
13403int i;
13404_ACEOF
13405if ac_fn_c_try_compile "$LINENO"; then :
13406  xorg_cv_cc_flag_unused_command_line_argument=yes
13407else
13408  xorg_cv_cc_flag_unused_command_line_argument=no
13409fi
13410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411fi
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13415	CFLAGS="$xorg_testset_save_CFLAGS"
13416fi
13417
13418found="no"
13419
13420	if test $found = "no" ; then
13421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13423		fi
13424
13425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13427		fi
13428
13429		CFLAGS="$CFLAGS -Wunused"
13430
13431		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13432$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13433		cacheid=xorg_cv_cc_flag__Wunused
13434		if eval \${$cacheid+:} false; then :
13435  $as_echo_n "(cached) " >&6
13436else
13437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h.  */
13439int i;
13440int
13441main ()
13442{
13443
13444  ;
13445  return 0;
13446}
13447_ACEOF
13448if ac_fn_c_try_link "$LINENO"; then :
13449  eval $cacheid=yes
13450else
13451  eval $cacheid=no
13452fi
13453rm -f core conftest.err conftest.$ac_objext \
13454    conftest$ac_exeext conftest.$ac_ext
13455fi
13456
13457
13458		CFLAGS="$xorg_testset_save_CFLAGS"
13459
13460		eval supported=\$$cacheid
13461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13462$as_echo "$supported" >&6; }
13463		if test "$supported" = "yes" ; then
13464			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13465			found="yes"
13466		fi
13467	fi
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483xorg_testset_save_CFLAGS="$CFLAGS"
13484
13485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13487	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13490  $as_echo_n "(cached) " >&6
13491else
13492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493/* end confdefs.h.  */
13494int i;
13495_ACEOF
13496if ac_fn_c_try_compile "$LINENO"; then :
13497  xorg_cv_cc_flag_unknown_warning_option=yes
13498else
13499  xorg_cv_cc_flag_unknown_warning_option=no
13500fi
13501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502fi
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13506	CFLAGS="$xorg_testset_save_CFLAGS"
13507fi
13508
13509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13512	fi
13513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13517  $as_echo_n "(cached) " >&6
13518else
13519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520/* end confdefs.h.  */
13521int i;
13522_ACEOF
13523if ac_fn_c_try_compile "$LINENO"; then :
13524  xorg_cv_cc_flag_unused_command_line_argument=yes
13525else
13526  xorg_cv_cc_flag_unused_command_line_argument=no
13527fi
13528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529fi
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13533	CFLAGS="$xorg_testset_save_CFLAGS"
13534fi
13535
13536found="no"
13537
13538	if test $found = "no" ; then
13539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13541		fi
13542
13543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13545		fi
13546
13547		CFLAGS="$CFLAGS -Wuninitialized"
13548
13549		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13550$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13551		cacheid=xorg_cv_cc_flag__Wuninitialized
13552		if eval \${$cacheid+:} false; then :
13553  $as_echo_n "(cached) " >&6
13554else
13555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h.  */
13557int i;
13558int
13559main ()
13560{
13561
13562  ;
13563  return 0;
13564}
13565_ACEOF
13566if ac_fn_c_try_link "$LINENO"; then :
13567  eval $cacheid=yes
13568else
13569  eval $cacheid=no
13570fi
13571rm -f core conftest.err conftest.$ac_objext \
13572    conftest$ac_exeext conftest.$ac_ext
13573fi
13574
13575
13576		CFLAGS="$xorg_testset_save_CFLAGS"
13577
13578		eval supported=\$$cacheid
13579		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13580$as_echo "$supported" >&6; }
13581		if test "$supported" = "yes" ; then
13582			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13583			found="yes"
13584		fi
13585	fi
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601xorg_testset_save_CFLAGS="$CFLAGS"
13602
13603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13608  $as_echo_n "(cached) " >&6
13609else
13610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611/* end confdefs.h.  */
13612int i;
13613_ACEOF
13614if ac_fn_c_try_compile "$LINENO"; then :
13615  xorg_cv_cc_flag_unknown_warning_option=yes
13616else
13617  xorg_cv_cc_flag_unknown_warning_option=no
13618fi
13619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620fi
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13623	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13624	CFLAGS="$xorg_testset_save_CFLAGS"
13625fi
13626
13627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13628	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13629		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13630	fi
13631	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13632	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13635  $as_echo_n "(cached) " >&6
13636else
13637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638/* end confdefs.h.  */
13639int i;
13640_ACEOF
13641if ac_fn_c_try_compile "$LINENO"; then :
13642  xorg_cv_cc_flag_unused_command_line_argument=yes
13643else
13644  xorg_cv_cc_flag_unused_command_line_argument=no
13645fi
13646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13647fi
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13650	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13651	CFLAGS="$xorg_testset_save_CFLAGS"
13652fi
13653
13654found="no"
13655
13656	if test $found = "no" ; then
13657		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13658			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13659		fi
13660
13661		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13662			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13663		fi
13664
13665		CFLAGS="$CFLAGS -Wshadow"
13666
13667		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13668$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13669		cacheid=xorg_cv_cc_flag__Wshadow
13670		if eval \${$cacheid+:} false; then :
13671  $as_echo_n "(cached) " >&6
13672else
13673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674/* end confdefs.h.  */
13675int i;
13676int
13677main ()
13678{
13679
13680  ;
13681  return 0;
13682}
13683_ACEOF
13684if ac_fn_c_try_link "$LINENO"; then :
13685  eval $cacheid=yes
13686else
13687  eval $cacheid=no
13688fi
13689rm -f core conftest.err conftest.$ac_objext \
13690    conftest$ac_exeext conftest.$ac_ext
13691fi
13692
13693
13694		CFLAGS="$xorg_testset_save_CFLAGS"
13695
13696		eval supported=\$$cacheid
13697		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13698$as_echo "$supported" >&6; }
13699		if test "$supported" = "yes" ; then
13700			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13701			found="yes"
13702		fi
13703	fi
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719xorg_testset_save_CFLAGS="$CFLAGS"
13720
13721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13722	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13723	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13726  $as_echo_n "(cached) " >&6
13727else
13728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729/* end confdefs.h.  */
13730int i;
13731_ACEOF
13732if ac_fn_c_try_compile "$LINENO"; then :
13733  xorg_cv_cc_flag_unknown_warning_option=yes
13734else
13735  xorg_cv_cc_flag_unknown_warning_option=no
13736fi
13737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738fi
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13741	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13742	CFLAGS="$xorg_testset_save_CFLAGS"
13743fi
13744
13745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13746	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13747		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13748	fi
13749	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13750	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13753  $as_echo_n "(cached) " >&6
13754else
13755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h.  */
13757int i;
13758_ACEOF
13759if ac_fn_c_try_compile "$LINENO"; then :
13760  xorg_cv_cc_flag_unused_command_line_argument=yes
13761else
13762  xorg_cv_cc_flag_unused_command_line_argument=no
13763fi
13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765fi
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13769	CFLAGS="$xorg_testset_save_CFLAGS"
13770fi
13771
13772found="no"
13773
13774	if test $found = "no" ; then
13775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13777		fi
13778
13779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13781		fi
13782
13783		CFLAGS="$CFLAGS -Wmissing-noreturn"
13784
13785		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13786$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13787		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13788		if eval \${$cacheid+:} false; then :
13789  $as_echo_n "(cached) " >&6
13790else
13791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792/* end confdefs.h.  */
13793int i;
13794int
13795main ()
13796{
13797
13798  ;
13799  return 0;
13800}
13801_ACEOF
13802if ac_fn_c_try_link "$LINENO"; then :
13803  eval $cacheid=yes
13804else
13805  eval $cacheid=no
13806fi
13807rm -f core conftest.err conftest.$ac_objext \
13808    conftest$ac_exeext conftest.$ac_ext
13809fi
13810
13811
13812		CFLAGS="$xorg_testset_save_CFLAGS"
13813
13814		eval supported=\$$cacheid
13815		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13816$as_echo "$supported" >&6; }
13817		if test "$supported" = "yes" ; then
13818			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13819			found="yes"
13820		fi
13821	fi
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837xorg_testset_save_CFLAGS="$CFLAGS"
13838
13839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13842$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13843if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13844  $as_echo_n "(cached) " >&6
13845else
13846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847/* end confdefs.h.  */
13848int i;
13849_ACEOF
13850if ac_fn_c_try_compile "$LINENO"; then :
13851  xorg_cv_cc_flag_unknown_warning_option=yes
13852else
13853  xorg_cv_cc_flag_unknown_warning_option=no
13854fi
13855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856fi
13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13858$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13860	CFLAGS="$xorg_testset_save_CFLAGS"
13861fi
13862
13863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13866	fi
13867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13868	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13869$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13870if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13871  $as_echo_n "(cached) " >&6
13872else
13873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874/* end confdefs.h.  */
13875int i;
13876_ACEOF
13877if ac_fn_c_try_compile "$LINENO"; then :
13878  xorg_cv_cc_flag_unused_command_line_argument=yes
13879else
13880  xorg_cv_cc_flag_unused_command_line_argument=no
13881fi
13882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883fi
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13885$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13887	CFLAGS="$xorg_testset_save_CFLAGS"
13888fi
13889
13890found="no"
13891
13892	if test $found = "no" ; then
13893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13895		fi
13896
13897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13899		fi
13900
13901		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13902
13903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13904$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13905		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13906		if eval \${$cacheid+:} false; then :
13907  $as_echo_n "(cached) " >&6
13908else
13909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911int i;
13912int
13913main ()
13914{
13915
13916  ;
13917  return 0;
13918}
13919_ACEOF
13920if ac_fn_c_try_link "$LINENO"; then :
13921  eval $cacheid=yes
13922else
13923  eval $cacheid=no
13924fi
13925rm -f core conftest.err conftest.$ac_objext \
13926    conftest$ac_exeext conftest.$ac_ext
13927fi
13928
13929
13930		CFLAGS="$xorg_testset_save_CFLAGS"
13931
13932		eval supported=\$$cacheid
13933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13934$as_echo "$supported" >&6; }
13935		if test "$supported" = "yes" ; then
13936			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13937			found="yes"
13938		fi
13939	fi
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955xorg_testset_save_CFLAGS="$CFLAGS"
13956
13957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13962  $as_echo_n "(cached) " >&6
13963else
13964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965/* end confdefs.h.  */
13966int i;
13967_ACEOF
13968if ac_fn_c_try_compile "$LINENO"; then :
13969  xorg_cv_cc_flag_unknown_warning_option=yes
13970else
13971  xorg_cv_cc_flag_unknown_warning_option=no
13972fi
13973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13978	CFLAGS="$xorg_testset_save_CFLAGS"
13979fi
13980
13981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13984	fi
13985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13989  $as_echo_n "(cached) " >&6
13990else
13991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h.  */
13993int i;
13994_ACEOF
13995if ac_fn_c_try_compile "$LINENO"; then :
13996  xorg_cv_cc_flag_unused_command_line_argument=yes
13997else
13998  xorg_cv_cc_flag_unused_command_line_argument=no
13999fi
14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001fi
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14005	CFLAGS="$xorg_testset_save_CFLAGS"
14006fi
14007
14008found="no"
14009
14010	if test $found = "no" ; then
14011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14013		fi
14014
14015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14017		fi
14018
14019		CFLAGS="$CFLAGS -Wredundant-decls"
14020
14021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14022$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14023		cacheid=xorg_cv_cc_flag__Wredundant_decls
14024		if eval \${$cacheid+:} false; then :
14025  $as_echo_n "(cached) " >&6
14026else
14027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028/* end confdefs.h.  */
14029int i;
14030int
14031main ()
14032{
14033
14034  ;
14035  return 0;
14036}
14037_ACEOF
14038if ac_fn_c_try_link "$LINENO"; then :
14039  eval $cacheid=yes
14040else
14041  eval $cacheid=no
14042fi
14043rm -f core conftest.err conftest.$ac_objext \
14044    conftest$ac_exeext conftest.$ac_ext
14045fi
14046
14047
14048		CFLAGS="$xorg_testset_save_CFLAGS"
14049
14050		eval supported=\$$cacheid
14051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14052$as_echo "$supported" >&6; }
14053		if test "$supported" = "yes" ; then
14054			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14055			found="yes"
14056		fi
14057	fi
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073xorg_testset_save_CFLAGS="$CFLAGS"
14074
14075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14080  $as_echo_n "(cached) " >&6
14081else
14082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083/* end confdefs.h.  */
14084int i;
14085_ACEOF
14086if ac_fn_c_try_compile "$LINENO"; then :
14087  xorg_cv_cc_flag_unknown_warning_option=yes
14088else
14089  xorg_cv_cc_flag_unknown_warning_option=no
14090fi
14091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092fi
14093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14096	CFLAGS="$xorg_testset_save_CFLAGS"
14097fi
14098
14099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14102	fi
14103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14107  $as_echo_n "(cached) " >&6
14108else
14109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110/* end confdefs.h.  */
14111int i;
14112_ACEOF
14113if ac_fn_c_try_compile "$LINENO"; then :
14114  xorg_cv_cc_flag_unused_command_line_argument=yes
14115else
14116  xorg_cv_cc_flag_unused_command_line_argument=no
14117fi
14118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119fi
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14123	CFLAGS="$xorg_testset_save_CFLAGS"
14124fi
14125
14126found="no"
14127
14128	if test $found = "no" ; then
14129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14131		fi
14132
14133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14135		fi
14136
14137		CFLAGS="$CFLAGS -Wlogical-op"
14138
14139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14140$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14141		cacheid=xorg_cv_cc_flag__Wlogical_op
14142		if eval \${$cacheid+:} false; then :
14143  $as_echo_n "(cached) " >&6
14144else
14145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146/* end confdefs.h.  */
14147int i;
14148int
14149main ()
14150{
14151
14152  ;
14153  return 0;
14154}
14155_ACEOF
14156if ac_fn_c_try_link "$LINENO"; then :
14157  eval $cacheid=yes
14158else
14159  eval $cacheid=no
14160fi
14161rm -f core conftest.err conftest.$ac_objext \
14162    conftest$ac_exeext conftest.$ac_ext
14163fi
14164
14165
14166		CFLAGS="$xorg_testset_save_CFLAGS"
14167
14168		eval supported=\$$cacheid
14169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14170$as_echo "$supported" >&6; }
14171		if test "$supported" = "yes" ; then
14172			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14173			found="yes"
14174		fi
14175	fi
14176
14177
14178
14179# These are currently disabled because they are noisy.  They will be enabled
14180# in the future once the codebase is sufficiently modernized to silence
14181# them.  For now, I don't want them to drown out the other warnings.
14182# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14183# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14184# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14185
14186# Turn some warnings into errors, so we don't accidently get successful builds
14187# when there are problems that should be fixed.
14188
14189if test "x$SELECTIVE_WERROR" = "xyes" ; then
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203xorg_testset_save_CFLAGS="$CFLAGS"
14204
14205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14210  $as_echo_n "(cached) " >&6
14211else
14212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213/* end confdefs.h.  */
14214int i;
14215_ACEOF
14216if ac_fn_c_try_compile "$LINENO"; then :
14217  xorg_cv_cc_flag_unknown_warning_option=yes
14218else
14219  xorg_cv_cc_flag_unknown_warning_option=no
14220fi
14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222fi
14223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14226	CFLAGS="$xorg_testset_save_CFLAGS"
14227fi
14228
14229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14232	fi
14233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14237  $as_echo_n "(cached) " >&6
14238else
14239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240/* end confdefs.h.  */
14241int i;
14242_ACEOF
14243if ac_fn_c_try_compile "$LINENO"; then :
14244  xorg_cv_cc_flag_unused_command_line_argument=yes
14245else
14246  xorg_cv_cc_flag_unused_command_line_argument=no
14247fi
14248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249fi
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14253	CFLAGS="$xorg_testset_save_CFLAGS"
14254fi
14255
14256found="no"
14257
14258	if test $found = "no" ; then
14259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14261		fi
14262
14263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14265		fi
14266
14267		CFLAGS="$CFLAGS -Werror=implicit"
14268
14269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14270$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14271		cacheid=xorg_cv_cc_flag__Werror_implicit
14272		if eval \${$cacheid+:} false; then :
14273  $as_echo_n "(cached) " >&6
14274else
14275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276/* end confdefs.h.  */
14277int i;
14278int
14279main ()
14280{
14281
14282  ;
14283  return 0;
14284}
14285_ACEOF
14286if ac_fn_c_try_link "$LINENO"; then :
14287  eval $cacheid=yes
14288else
14289  eval $cacheid=no
14290fi
14291rm -f core conftest.err conftest.$ac_objext \
14292    conftest$ac_exeext conftest.$ac_ext
14293fi
14294
14295
14296		CFLAGS="$xorg_testset_save_CFLAGS"
14297
14298		eval supported=\$$cacheid
14299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14300$as_echo "$supported" >&6; }
14301		if test "$supported" = "yes" ; then
14302			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14303			found="yes"
14304		fi
14305	fi
14306
14307	if test $found = "no" ; then
14308		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14309			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14310		fi
14311
14312		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14313			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14314		fi
14315
14316		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14317
14318		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14319$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14320		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14321		if eval \${$cacheid+:} false; then :
14322  $as_echo_n "(cached) " >&6
14323else
14324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325/* end confdefs.h.  */
14326int i;
14327int
14328main ()
14329{
14330
14331  ;
14332  return 0;
14333}
14334_ACEOF
14335if ac_fn_c_try_link "$LINENO"; then :
14336  eval $cacheid=yes
14337else
14338  eval $cacheid=no
14339fi
14340rm -f core conftest.err conftest.$ac_objext \
14341    conftest$ac_exeext conftest.$ac_ext
14342fi
14343
14344
14345		CFLAGS="$xorg_testset_save_CFLAGS"
14346
14347		eval supported=\$$cacheid
14348		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14349$as_echo "$supported" >&6; }
14350		if test "$supported" = "yes" ; then
14351			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14352			found="yes"
14353		fi
14354	fi
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370xorg_testset_save_CFLAGS="$CFLAGS"
14371
14372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14375$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14376if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14377  $as_echo_n "(cached) " >&6
14378else
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381int i;
14382_ACEOF
14383if ac_fn_c_try_compile "$LINENO"; then :
14384  xorg_cv_cc_flag_unknown_warning_option=yes
14385else
14386  xorg_cv_cc_flag_unknown_warning_option=no
14387fi
14388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14389fi
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14391$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14392	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14393	CFLAGS="$xorg_testset_save_CFLAGS"
14394fi
14395
14396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14397	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14398		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14399	fi
14400	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14401	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14402$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14403if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14404  $as_echo_n "(cached) " >&6
14405else
14406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407/* end confdefs.h.  */
14408int i;
14409_ACEOF
14410if ac_fn_c_try_compile "$LINENO"; then :
14411  xorg_cv_cc_flag_unused_command_line_argument=yes
14412else
14413  xorg_cv_cc_flag_unused_command_line_argument=no
14414fi
14415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416fi
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14418$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14420	CFLAGS="$xorg_testset_save_CFLAGS"
14421fi
14422
14423found="no"
14424
14425	if test $found = "no" ; then
14426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14428		fi
14429
14430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14432		fi
14433
14434		CFLAGS="$CFLAGS -Werror=nonnull"
14435
14436		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14437$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14438		cacheid=xorg_cv_cc_flag__Werror_nonnull
14439		if eval \${$cacheid+:} false; then :
14440  $as_echo_n "(cached) " >&6
14441else
14442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443/* end confdefs.h.  */
14444int i;
14445int
14446main ()
14447{
14448
14449  ;
14450  return 0;
14451}
14452_ACEOF
14453if ac_fn_c_try_link "$LINENO"; then :
14454  eval $cacheid=yes
14455else
14456  eval $cacheid=no
14457fi
14458rm -f core conftest.err conftest.$ac_objext \
14459    conftest$ac_exeext conftest.$ac_ext
14460fi
14461
14462
14463		CFLAGS="$xorg_testset_save_CFLAGS"
14464
14465		eval supported=\$$cacheid
14466		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14467$as_echo "$supported" >&6; }
14468		if test "$supported" = "yes" ; then
14469			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14470			found="yes"
14471		fi
14472	fi
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488xorg_testset_save_CFLAGS="$CFLAGS"
14489
14490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14493$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14494if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14495  $as_echo_n "(cached) " >&6
14496else
14497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h.  */
14499int i;
14500_ACEOF
14501if ac_fn_c_try_compile "$LINENO"; then :
14502  xorg_cv_cc_flag_unknown_warning_option=yes
14503else
14504  xorg_cv_cc_flag_unknown_warning_option=no
14505fi
14506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507fi
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14509$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14511	CFLAGS="$xorg_testset_save_CFLAGS"
14512fi
14513
14514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14517	fi
14518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14519	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14520$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14521if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14522  $as_echo_n "(cached) " >&6
14523else
14524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525/* end confdefs.h.  */
14526int i;
14527_ACEOF
14528if ac_fn_c_try_compile "$LINENO"; then :
14529  xorg_cv_cc_flag_unused_command_line_argument=yes
14530else
14531  xorg_cv_cc_flag_unused_command_line_argument=no
14532fi
14533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534fi
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14536$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14537	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14538	CFLAGS="$xorg_testset_save_CFLAGS"
14539fi
14540
14541found="no"
14542
14543	if test $found = "no" ; then
14544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14546		fi
14547
14548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14550		fi
14551
14552		CFLAGS="$CFLAGS -Werror=init-self"
14553
14554		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14555$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14556		cacheid=xorg_cv_cc_flag__Werror_init_self
14557		if eval \${$cacheid+:} false; then :
14558  $as_echo_n "(cached) " >&6
14559else
14560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561/* end confdefs.h.  */
14562int i;
14563int
14564main ()
14565{
14566
14567  ;
14568  return 0;
14569}
14570_ACEOF
14571if ac_fn_c_try_link "$LINENO"; then :
14572  eval $cacheid=yes
14573else
14574  eval $cacheid=no
14575fi
14576rm -f core conftest.err conftest.$ac_objext \
14577    conftest$ac_exeext conftest.$ac_ext
14578fi
14579
14580
14581		CFLAGS="$xorg_testset_save_CFLAGS"
14582
14583		eval supported=\$$cacheid
14584		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14585$as_echo "$supported" >&6; }
14586		if test "$supported" = "yes" ; then
14587			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14588			found="yes"
14589		fi
14590	fi
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606xorg_testset_save_CFLAGS="$CFLAGS"
14607
14608if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14609	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14611$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14612if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617int i;
14618_ACEOF
14619if ac_fn_c_try_compile "$LINENO"; then :
14620  xorg_cv_cc_flag_unknown_warning_option=yes
14621else
14622  xorg_cv_cc_flag_unknown_warning_option=no
14623fi
14624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14625fi
14626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14627$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14628	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14629	CFLAGS="$xorg_testset_save_CFLAGS"
14630fi
14631
14632if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14633	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14634		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14635	fi
14636	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14637	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14638$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14639if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14640  $as_echo_n "(cached) " >&6
14641else
14642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643/* end confdefs.h.  */
14644int i;
14645_ACEOF
14646if ac_fn_c_try_compile "$LINENO"; then :
14647  xorg_cv_cc_flag_unused_command_line_argument=yes
14648else
14649  xorg_cv_cc_flag_unused_command_line_argument=no
14650fi
14651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652fi
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14654$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14655	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14656	CFLAGS="$xorg_testset_save_CFLAGS"
14657fi
14658
14659found="no"
14660
14661	if test $found = "no" ; then
14662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664		fi
14665
14666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14668		fi
14669
14670		CFLAGS="$CFLAGS -Werror=main"
14671
14672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14673$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14674		cacheid=xorg_cv_cc_flag__Werror_main
14675		if eval \${$cacheid+:} false; then :
14676  $as_echo_n "(cached) " >&6
14677else
14678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679/* end confdefs.h.  */
14680int i;
14681int
14682main ()
14683{
14684
14685  ;
14686  return 0;
14687}
14688_ACEOF
14689if ac_fn_c_try_link "$LINENO"; then :
14690  eval $cacheid=yes
14691else
14692  eval $cacheid=no
14693fi
14694rm -f core conftest.err conftest.$ac_objext \
14695    conftest$ac_exeext conftest.$ac_ext
14696fi
14697
14698
14699		CFLAGS="$xorg_testset_save_CFLAGS"
14700
14701		eval supported=\$$cacheid
14702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14703$as_echo "$supported" >&6; }
14704		if test "$supported" = "yes" ; then
14705			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14706			found="yes"
14707		fi
14708	fi
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724xorg_testset_save_CFLAGS="$CFLAGS"
14725
14726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14731  $as_echo_n "(cached) " >&6
14732else
14733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735int i;
14736_ACEOF
14737if ac_fn_c_try_compile "$LINENO"; then :
14738  xorg_cv_cc_flag_unknown_warning_option=yes
14739else
14740  xorg_cv_cc_flag_unknown_warning_option=no
14741fi
14742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743fi
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14747	CFLAGS="$xorg_testset_save_CFLAGS"
14748fi
14749
14750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14753	fi
14754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14758  $as_echo_n "(cached) " >&6
14759else
14760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761/* end confdefs.h.  */
14762int i;
14763_ACEOF
14764if ac_fn_c_try_compile "$LINENO"; then :
14765  xorg_cv_cc_flag_unused_command_line_argument=yes
14766else
14767  xorg_cv_cc_flag_unused_command_line_argument=no
14768fi
14769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770fi
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14774	CFLAGS="$xorg_testset_save_CFLAGS"
14775fi
14776
14777found="no"
14778
14779	if test $found = "no" ; then
14780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14782		fi
14783
14784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14786		fi
14787
14788		CFLAGS="$CFLAGS -Werror=missing-braces"
14789
14790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14791$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14792		cacheid=xorg_cv_cc_flag__Werror_missing_braces
14793		if eval \${$cacheid+:} false; then :
14794  $as_echo_n "(cached) " >&6
14795else
14796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797/* end confdefs.h.  */
14798int i;
14799int
14800main ()
14801{
14802
14803  ;
14804  return 0;
14805}
14806_ACEOF
14807if ac_fn_c_try_link "$LINENO"; then :
14808  eval $cacheid=yes
14809else
14810  eval $cacheid=no
14811fi
14812rm -f core conftest.err conftest.$ac_objext \
14813    conftest$ac_exeext conftest.$ac_ext
14814fi
14815
14816
14817		CFLAGS="$xorg_testset_save_CFLAGS"
14818
14819		eval supported=\$$cacheid
14820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14821$as_echo "$supported" >&6; }
14822		if test "$supported" = "yes" ; then
14823			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14824			found="yes"
14825		fi
14826	fi
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842xorg_testset_save_CFLAGS="$CFLAGS"
14843
14844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854_ACEOF
14855if ac_fn_c_try_compile "$LINENO"; then :
14856  xorg_cv_cc_flag_unknown_warning_option=yes
14857else
14858  xorg_cv_cc_flag_unknown_warning_option=no
14859fi
14860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861fi
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14865	CFLAGS="$xorg_testset_save_CFLAGS"
14866fi
14867
14868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14871	fi
14872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14876  $as_echo_n "(cached) " >&6
14877else
14878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879/* end confdefs.h.  */
14880int i;
14881_ACEOF
14882if ac_fn_c_try_compile "$LINENO"; then :
14883  xorg_cv_cc_flag_unused_command_line_argument=yes
14884else
14885  xorg_cv_cc_flag_unused_command_line_argument=no
14886fi
14887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888fi
14889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14892	CFLAGS="$xorg_testset_save_CFLAGS"
14893fi
14894
14895found="no"
14896
14897	if test $found = "no" ; then
14898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14900		fi
14901
14902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14904		fi
14905
14906		CFLAGS="$CFLAGS -Werror=sequence-point"
14907
14908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14909$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14910		cacheid=xorg_cv_cc_flag__Werror_sequence_point
14911		if eval \${$cacheid+:} false; then :
14912  $as_echo_n "(cached) " >&6
14913else
14914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915/* end confdefs.h.  */
14916int i;
14917int
14918main ()
14919{
14920
14921  ;
14922  return 0;
14923}
14924_ACEOF
14925if ac_fn_c_try_link "$LINENO"; then :
14926  eval $cacheid=yes
14927else
14928  eval $cacheid=no
14929fi
14930rm -f core conftest.err conftest.$ac_objext \
14931    conftest$ac_exeext conftest.$ac_ext
14932fi
14933
14934
14935		CFLAGS="$xorg_testset_save_CFLAGS"
14936
14937		eval supported=\$$cacheid
14938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14939$as_echo "$supported" >&6; }
14940		if test "$supported" = "yes" ; then
14941			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14942			found="yes"
14943		fi
14944	fi
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960xorg_testset_save_CFLAGS="$CFLAGS"
14961
14962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14967  $as_echo_n "(cached) " >&6
14968else
14969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970/* end confdefs.h.  */
14971int i;
14972_ACEOF
14973if ac_fn_c_try_compile "$LINENO"; then :
14974  xorg_cv_cc_flag_unknown_warning_option=yes
14975else
14976  xorg_cv_cc_flag_unknown_warning_option=no
14977fi
14978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979fi
14980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14983	CFLAGS="$xorg_testset_save_CFLAGS"
14984fi
14985
14986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14989	fi
14990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14994  $as_echo_n "(cached) " >&6
14995else
14996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997/* end confdefs.h.  */
14998int i;
14999_ACEOF
15000if ac_fn_c_try_compile "$LINENO"; then :
15001  xorg_cv_cc_flag_unused_command_line_argument=yes
15002else
15003  xorg_cv_cc_flag_unused_command_line_argument=no
15004fi
15005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006fi
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15010	CFLAGS="$xorg_testset_save_CFLAGS"
15011fi
15012
15013found="no"
15014
15015	if test $found = "no" ; then
15016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15018		fi
15019
15020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15022		fi
15023
15024		CFLAGS="$CFLAGS -Werror=return-type"
15025
15026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15027$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15028		cacheid=xorg_cv_cc_flag__Werror_return_type
15029		if eval \${$cacheid+:} false; then :
15030  $as_echo_n "(cached) " >&6
15031else
15032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034int i;
15035int
15036main ()
15037{
15038
15039  ;
15040  return 0;
15041}
15042_ACEOF
15043if ac_fn_c_try_link "$LINENO"; then :
15044  eval $cacheid=yes
15045else
15046  eval $cacheid=no
15047fi
15048rm -f core conftest.err conftest.$ac_objext \
15049    conftest$ac_exeext conftest.$ac_ext
15050fi
15051
15052
15053		CFLAGS="$xorg_testset_save_CFLAGS"
15054
15055		eval supported=\$$cacheid
15056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15057$as_echo "$supported" >&6; }
15058		if test "$supported" = "yes" ; then
15059			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15060			found="yes"
15061		fi
15062	fi
15063
15064	if test $found = "no" ; then
15065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15067		fi
15068
15069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15071		fi
15072
15073		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15074
15075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15076$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15077		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15078		if eval \${$cacheid+:} false; then :
15079  $as_echo_n "(cached) " >&6
15080else
15081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082/* end confdefs.h.  */
15083int i;
15084int
15085main ()
15086{
15087
15088  ;
15089  return 0;
15090}
15091_ACEOF
15092if ac_fn_c_try_link "$LINENO"; then :
15093  eval $cacheid=yes
15094else
15095  eval $cacheid=no
15096fi
15097rm -f core conftest.err conftest.$ac_objext \
15098    conftest$ac_exeext conftest.$ac_ext
15099fi
15100
15101
15102		CFLAGS="$xorg_testset_save_CFLAGS"
15103
15104		eval supported=\$$cacheid
15105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15106$as_echo "$supported" >&6; }
15107		if test "$supported" = "yes" ; then
15108			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15109			found="yes"
15110		fi
15111	fi
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127xorg_testset_save_CFLAGS="$CFLAGS"
15128
15129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15134  $as_echo_n "(cached) " >&6
15135else
15136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137/* end confdefs.h.  */
15138int i;
15139_ACEOF
15140if ac_fn_c_try_compile "$LINENO"; then :
15141  xorg_cv_cc_flag_unknown_warning_option=yes
15142else
15143  xorg_cv_cc_flag_unknown_warning_option=no
15144fi
15145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146fi
15147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15150	CFLAGS="$xorg_testset_save_CFLAGS"
15151fi
15152
15153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15156	fi
15157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15161  $as_echo_n "(cached) " >&6
15162else
15163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164/* end confdefs.h.  */
15165int i;
15166_ACEOF
15167if ac_fn_c_try_compile "$LINENO"; then :
15168  xorg_cv_cc_flag_unused_command_line_argument=yes
15169else
15170  xorg_cv_cc_flag_unused_command_line_argument=no
15171fi
15172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173fi
15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15177	CFLAGS="$xorg_testset_save_CFLAGS"
15178fi
15179
15180found="no"
15181
15182	if test $found = "no" ; then
15183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15185		fi
15186
15187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15189		fi
15190
15191		CFLAGS="$CFLAGS -Werror=trigraphs"
15192
15193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15194$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15195		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15196		if eval \${$cacheid+:} false; then :
15197  $as_echo_n "(cached) " >&6
15198else
15199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200/* end confdefs.h.  */
15201int i;
15202int
15203main ()
15204{
15205
15206  ;
15207  return 0;
15208}
15209_ACEOF
15210if ac_fn_c_try_link "$LINENO"; then :
15211  eval $cacheid=yes
15212else
15213  eval $cacheid=no
15214fi
15215rm -f core conftest.err conftest.$ac_objext \
15216    conftest$ac_exeext conftest.$ac_ext
15217fi
15218
15219
15220		CFLAGS="$xorg_testset_save_CFLAGS"
15221
15222		eval supported=\$$cacheid
15223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15224$as_echo "$supported" >&6; }
15225		if test "$supported" = "yes" ; then
15226			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15227			found="yes"
15228		fi
15229	fi
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245xorg_testset_save_CFLAGS="$CFLAGS"
15246
15247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15252  $as_echo_n "(cached) " >&6
15253else
15254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255/* end confdefs.h.  */
15256int i;
15257_ACEOF
15258if ac_fn_c_try_compile "$LINENO"; then :
15259  xorg_cv_cc_flag_unknown_warning_option=yes
15260else
15261  xorg_cv_cc_flag_unknown_warning_option=no
15262fi
15263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264fi
15265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15268	CFLAGS="$xorg_testset_save_CFLAGS"
15269fi
15270
15271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15274	fi
15275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15279  $as_echo_n "(cached) " >&6
15280else
15281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282/* end confdefs.h.  */
15283int i;
15284_ACEOF
15285if ac_fn_c_try_compile "$LINENO"; then :
15286  xorg_cv_cc_flag_unused_command_line_argument=yes
15287else
15288  xorg_cv_cc_flag_unused_command_line_argument=no
15289fi
15290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291fi
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15295	CFLAGS="$xorg_testset_save_CFLAGS"
15296fi
15297
15298found="no"
15299
15300	if test $found = "no" ; then
15301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15303		fi
15304
15305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307		fi
15308
15309		CFLAGS="$CFLAGS -Werror=array-bounds"
15310
15311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15312$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15313		cacheid=xorg_cv_cc_flag__Werror_array_bounds
15314		if eval \${$cacheid+:} false; then :
15315  $as_echo_n "(cached) " >&6
15316else
15317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318/* end confdefs.h.  */
15319int i;
15320int
15321main ()
15322{
15323
15324  ;
15325  return 0;
15326}
15327_ACEOF
15328if ac_fn_c_try_link "$LINENO"; then :
15329  eval $cacheid=yes
15330else
15331  eval $cacheid=no
15332fi
15333rm -f core conftest.err conftest.$ac_objext \
15334    conftest$ac_exeext conftest.$ac_ext
15335fi
15336
15337
15338		CFLAGS="$xorg_testset_save_CFLAGS"
15339
15340		eval supported=\$$cacheid
15341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15342$as_echo "$supported" >&6; }
15343		if test "$supported" = "yes" ; then
15344			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15345			found="yes"
15346		fi
15347	fi
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363xorg_testset_save_CFLAGS="$CFLAGS"
15364
15365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15370  $as_echo_n "(cached) " >&6
15371else
15372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373/* end confdefs.h.  */
15374int i;
15375_ACEOF
15376if ac_fn_c_try_compile "$LINENO"; then :
15377  xorg_cv_cc_flag_unknown_warning_option=yes
15378else
15379  xorg_cv_cc_flag_unknown_warning_option=no
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15386	CFLAGS="$xorg_testset_save_CFLAGS"
15387fi
15388
15389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15392	fi
15393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15397  $as_echo_n "(cached) " >&6
15398else
15399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400/* end confdefs.h.  */
15401int i;
15402_ACEOF
15403if ac_fn_c_try_compile "$LINENO"; then :
15404  xorg_cv_cc_flag_unused_command_line_argument=yes
15405else
15406  xorg_cv_cc_flag_unused_command_line_argument=no
15407fi
15408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409fi
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15413	CFLAGS="$xorg_testset_save_CFLAGS"
15414fi
15415
15416found="no"
15417
15418	if test $found = "no" ; then
15419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15421		fi
15422
15423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15425		fi
15426
15427		CFLAGS="$CFLAGS -Werror=write-strings"
15428
15429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15430$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15431		cacheid=xorg_cv_cc_flag__Werror_write_strings
15432		if eval \${$cacheid+:} false; then :
15433  $as_echo_n "(cached) " >&6
15434else
15435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436/* end confdefs.h.  */
15437int i;
15438int
15439main ()
15440{
15441
15442  ;
15443  return 0;
15444}
15445_ACEOF
15446if ac_fn_c_try_link "$LINENO"; then :
15447  eval $cacheid=yes
15448else
15449  eval $cacheid=no
15450fi
15451rm -f core conftest.err conftest.$ac_objext \
15452    conftest$ac_exeext conftest.$ac_ext
15453fi
15454
15455
15456		CFLAGS="$xorg_testset_save_CFLAGS"
15457
15458		eval supported=\$$cacheid
15459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15460$as_echo "$supported" >&6; }
15461		if test "$supported" = "yes" ; then
15462			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15463			found="yes"
15464		fi
15465	fi
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481xorg_testset_save_CFLAGS="$CFLAGS"
15482
15483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15486$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15487if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15488  $as_echo_n "(cached) " >&6
15489else
15490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491/* end confdefs.h.  */
15492int i;
15493_ACEOF
15494if ac_fn_c_try_compile "$LINENO"; then :
15495  xorg_cv_cc_flag_unknown_warning_option=yes
15496else
15497  xorg_cv_cc_flag_unknown_warning_option=no
15498fi
15499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15500fi
15501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15502$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15504	CFLAGS="$xorg_testset_save_CFLAGS"
15505fi
15506
15507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15510	fi
15511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15513$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15514if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15515  $as_echo_n "(cached) " >&6
15516else
15517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518/* end confdefs.h.  */
15519int i;
15520_ACEOF
15521if ac_fn_c_try_compile "$LINENO"; then :
15522  xorg_cv_cc_flag_unused_command_line_argument=yes
15523else
15524  xorg_cv_cc_flag_unused_command_line_argument=no
15525fi
15526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527fi
15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15529$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15531	CFLAGS="$xorg_testset_save_CFLAGS"
15532fi
15533
15534found="no"
15535
15536	if test $found = "no" ; then
15537		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15539		fi
15540
15541		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15543		fi
15544
15545		CFLAGS="$CFLAGS -Werror=address"
15546
15547		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15548$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15549		cacheid=xorg_cv_cc_flag__Werror_address
15550		if eval \${$cacheid+:} false; then :
15551  $as_echo_n "(cached) " >&6
15552else
15553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554/* end confdefs.h.  */
15555int i;
15556int
15557main ()
15558{
15559
15560  ;
15561  return 0;
15562}
15563_ACEOF
15564if ac_fn_c_try_link "$LINENO"; then :
15565  eval $cacheid=yes
15566else
15567  eval $cacheid=no
15568fi
15569rm -f core conftest.err conftest.$ac_objext \
15570    conftest$ac_exeext conftest.$ac_ext
15571fi
15572
15573
15574		CFLAGS="$xorg_testset_save_CFLAGS"
15575
15576		eval supported=\$$cacheid
15577		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15578$as_echo "$supported" >&6; }
15579		if test "$supported" = "yes" ; then
15580			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15581			found="yes"
15582		fi
15583	fi
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599xorg_testset_save_CFLAGS="$CFLAGS"
15600
15601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15606  $as_echo_n "(cached) " >&6
15607else
15608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609/* end confdefs.h.  */
15610int i;
15611_ACEOF
15612if ac_fn_c_try_compile "$LINENO"; then :
15613  xorg_cv_cc_flag_unknown_warning_option=yes
15614else
15615  xorg_cv_cc_flag_unknown_warning_option=no
15616fi
15617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618fi
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15621	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15622	CFLAGS="$xorg_testset_save_CFLAGS"
15623fi
15624
15625if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15626	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15628	fi
15629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15633  $as_echo_n "(cached) " >&6
15634else
15635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637int i;
15638_ACEOF
15639if ac_fn_c_try_compile "$LINENO"; then :
15640  xorg_cv_cc_flag_unused_command_line_argument=yes
15641else
15642  xorg_cv_cc_flag_unused_command_line_argument=no
15643fi
15644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645fi
15646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15649	CFLAGS="$xorg_testset_save_CFLAGS"
15650fi
15651
15652found="no"
15653
15654	if test $found = "no" ; then
15655		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15657		fi
15658
15659		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15661		fi
15662
15663		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15664
15665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15666$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15667		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15668		if eval \${$cacheid+:} false; then :
15669  $as_echo_n "(cached) " >&6
15670else
15671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672/* end confdefs.h.  */
15673int i;
15674int
15675main ()
15676{
15677
15678  ;
15679  return 0;
15680}
15681_ACEOF
15682if ac_fn_c_try_link "$LINENO"; then :
15683  eval $cacheid=yes
15684else
15685  eval $cacheid=no
15686fi
15687rm -f core conftest.err conftest.$ac_objext \
15688    conftest$ac_exeext conftest.$ac_ext
15689fi
15690
15691
15692		CFLAGS="$xorg_testset_save_CFLAGS"
15693
15694		eval supported=\$$cacheid
15695		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15696$as_echo "$supported" >&6; }
15697		if test "$supported" = "yes" ; then
15698			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15699			found="yes"
15700		fi
15701	fi
15702
15703	if test $found = "no" ; then
15704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15706		fi
15707
15708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15710		fi
15711
15712		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15713
15714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15715$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15716		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15717		if eval \${$cacheid+:} false; then :
15718  $as_echo_n "(cached) " >&6
15719else
15720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721/* end confdefs.h.  */
15722int i;
15723int
15724main ()
15725{
15726
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731if ac_fn_c_try_link "$LINENO"; then :
15732  eval $cacheid=yes
15733else
15734  eval $cacheid=no
15735fi
15736rm -f core conftest.err conftest.$ac_objext \
15737    conftest$ac_exeext conftest.$ac_ext
15738fi
15739
15740
15741		CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743		eval supported=\$$cacheid
15744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745$as_echo "$supported" >&6; }
15746		if test "$supported" = "yes" ; then
15747			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15748			found="yes"
15749		fi
15750	fi
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15773  $as_echo_n "(cached) " >&6
15774else
15775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776/* end confdefs.h.  */
15777int i;
15778_ACEOF
15779if ac_fn_c_try_compile "$LINENO"; then :
15780  xorg_cv_cc_flag_unknown_warning_option=yes
15781else
15782  xorg_cv_cc_flag_unknown_warning_option=no
15783fi
15784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785fi
15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15789	CFLAGS="$xorg_testset_save_CFLAGS"
15790fi
15791
15792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795	fi
15796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15800  $as_echo_n "(cached) " >&6
15801else
15802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h.  */
15804int i;
15805_ACEOF
15806if ac_fn_c_try_compile "$LINENO"; then :
15807  xorg_cv_cc_flag_unused_command_line_argument=yes
15808else
15809  xorg_cv_cc_flag_unused_command_line_argument=no
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812fi
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15816	CFLAGS="$xorg_testset_save_CFLAGS"
15817fi
15818
15819found="no"
15820
15821	if test $found = "no" ; then
15822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824		fi
15825
15826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15828		fi
15829
15830		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15831
15832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15833$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15834		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
15835		if eval \${$cacheid+:} false; then :
15836  $as_echo_n "(cached) " >&6
15837else
15838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h.  */
15840int i;
15841int
15842main ()
15843{
15844
15845  ;
15846  return 0;
15847}
15848_ACEOF
15849if ac_fn_c_try_link "$LINENO"; then :
15850  eval $cacheid=yes
15851else
15852  eval $cacheid=no
15853fi
15854rm -f core conftest.err conftest.$ac_objext \
15855    conftest$ac_exeext conftest.$ac_ext
15856fi
15857
15858
15859		CFLAGS="$xorg_testset_save_CFLAGS"
15860
15861		eval supported=\$$cacheid
15862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15863$as_echo "$supported" >&6; }
15864		if test "$supported" = "yes" ; then
15865			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15866			found="yes"
15867		fi
15868	fi
15869
15870 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15871else
15872{ $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
15873$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;}
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887xorg_testset_save_CFLAGS="$CFLAGS"
15888
15889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15894  $as_echo_n "(cached) " >&6
15895else
15896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h.  */
15898int i;
15899_ACEOF
15900if ac_fn_c_try_compile "$LINENO"; then :
15901  xorg_cv_cc_flag_unknown_warning_option=yes
15902else
15903  xorg_cv_cc_flag_unknown_warning_option=no
15904fi
15905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906fi
15907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15910	CFLAGS="$xorg_testset_save_CFLAGS"
15911fi
15912
15913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15916	fi
15917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15921  $as_echo_n "(cached) " >&6
15922else
15923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924/* end confdefs.h.  */
15925int i;
15926_ACEOF
15927if ac_fn_c_try_compile "$LINENO"; then :
15928  xorg_cv_cc_flag_unused_command_line_argument=yes
15929else
15930  xorg_cv_cc_flag_unused_command_line_argument=no
15931fi
15932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15937	CFLAGS="$xorg_testset_save_CFLAGS"
15938fi
15939
15940found="no"
15941
15942	if test $found = "no" ; then
15943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15945		fi
15946
15947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15949		fi
15950
15951		CFLAGS="$CFLAGS -Wimplicit"
15952
15953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15954$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15955		cacheid=xorg_cv_cc_flag__Wimplicit
15956		if eval \${$cacheid+:} false; then :
15957  $as_echo_n "(cached) " >&6
15958else
15959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h.  */
15961int i;
15962int
15963main ()
15964{
15965
15966  ;
15967  return 0;
15968}
15969_ACEOF
15970if ac_fn_c_try_link "$LINENO"; then :
15971  eval $cacheid=yes
15972else
15973  eval $cacheid=no
15974fi
15975rm -f core conftest.err conftest.$ac_objext \
15976    conftest$ac_exeext conftest.$ac_ext
15977fi
15978
15979
15980		CFLAGS="$xorg_testset_save_CFLAGS"
15981
15982		eval supported=\$$cacheid
15983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15984$as_echo "$supported" >&6; }
15985		if test "$supported" = "yes" ; then
15986			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15987			found="yes"
15988		fi
15989	fi
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005xorg_testset_save_CFLAGS="$CFLAGS"
16006
16007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16012  $as_echo_n "(cached) " >&6
16013else
16014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015/* end confdefs.h.  */
16016int i;
16017_ACEOF
16018if ac_fn_c_try_compile "$LINENO"; then :
16019  xorg_cv_cc_flag_unknown_warning_option=yes
16020else
16021  xorg_cv_cc_flag_unknown_warning_option=no
16022fi
16023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024fi
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16028	CFLAGS="$xorg_testset_save_CFLAGS"
16029fi
16030
16031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16034	fi
16035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16039  $as_echo_n "(cached) " >&6
16040else
16041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h.  */
16043int i;
16044_ACEOF
16045if ac_fn_c_try_compile "$LINENO"; then :
16046  xorg_cv_cc_flag_unused_command_line_argument=yes
16047else
16048  xorg_cv_cc_flag_unused_command_line_argument=no
16049fi
16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051fi
16052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16055	CFLAGS="$xorg_testset_save_CFLAGS"
16056fi
16057
16058found="no"
16059
16060	if test $found = "no" ; then
16061		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16063		fi
16064
16065		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16067		fi
16068
16069		CFLAGS="$CFLAGS -Wnonnull"
16070
16071		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16072$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16073		cacheid=xorg_cv_cc_flag__Wnonnull
16074		if eval \${$cacheid+:} false; then :
16075  $as_echo_n "(cached) " >&6
16076else
16077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078/* end confdefs.h.  */
16079int i;
16080int
16081main ()
16082{
16083
16084  ;
16085  return 0;
16086}
16087_ACEOF
16088if ac_fn_c_try_link "$LINENO"; then :
16089  eval $cacheid=yes
16090else
16091  eval $cacheid=no
16092fi
16093rm -f core conftest.err conftest.$ac_objext \
16094    conftest$ac_exeext conftest.$ac_ext
16095fi
16096
16097
16098		CFLAGS="$xorg_testset_save_CFLAGS"
16099
16100		eval supported=\$$cacheid
16101		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16102$as_echo "$supported" >&6; }
16103		if test "$supported" = "yes" ; then
16104			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16105			found="yes"
16106		fi
16107	fi
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123xorg_testset_save_CFLAGS="$CFLAGS"
16124
16125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16130  $as_echo_n "(cached) " >&6
16131else
16132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133/* end confdefs.h.  */
16134int i;
16135_ACEOF
16136if ac_fn_c_try_compile "$LINENO"; then :
16137  xorg_cv_cc_flag_unknown_warning_option=yes
16138else
16139  xorg_cv_cc_flag_unknown_warning_option=no
16140fi
16141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142fi
16143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16146	CFLAGS="$xorg_testset_save_CFLAGS"
16147fi
16148
16149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16152	fi
16153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16157  $as_echo_n "(cached) " >&6
16158else
16159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160/* end confdefs.h.  */
16161int i;
16162_ACEOF
16163if ac_fn_c_try_compile "$LINENO"; then :
16164  xorg_cv_cc_flag_unused_command_line_argument=yes
16165else
16166  xorg_cv_cc_flag_unused_command_line_argument=no
16167fi
16168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16169fi
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16173	CFLAGS="$xorg_testset_save_CFLAGS"
16174fi
16175
16176found="no"
16177
16178	if test $found = "no" ; then
16179		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16181		fi
16182
16183		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16185		fi
16186
16187		CFLAGS="$CFLAGS -Winit-self"
16188
16189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16190$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16191		cacheid=xorg_cv_cc_flag__Winit_self
16192		if eval \${$cacheid+:} false; then :
16193  $as_echo_n "(cached) " >&6
16194else
16195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196/* end confdefs.h.  */
16197int i;
16198int
16199main ()
16200{
16201
16202  ;
16203  return 0;
16204}
16205_ACEOF
16206if ac_fn_c_try_link "$LINENO"; then :
16207  eval $cacheid=yes
16208else
16209  eval $cacheid=no
16210fi
16211rm -f core conftest.err conftest.$ac_objext \
16212    conftest$ac_exeext conftest.$ac_ext
16213fi
16214
16215
16216		CFLAGS="$xorg_testset_save_CFLAGS"
16217
16218		eval supported=\$$cacheid
16219		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16220$as_echo "$supported" >&6; }
16221		if test "$supported" = "yes" ; then
16222			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16223			found="yes"
16224		fi
16225	fi
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241xorg_testset_save_CFLAGS="$CFLAGS"
16242
16243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16248  $as_echo_n "(cached) " >&6
16249else
16250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251/* end confdefs.h.  */
16252int i;
16253_ACEOF
16254if ac_fn_c_try_compile "$LINENO"; then :
16255  xorg_cv_cc_flag_unknown_warning_option=yes
16256else
16257  xorg_cv_cc_flag_unknown_warning_option=no
16258fi
16259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16260fi
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16264	CFLAGS="$xorg_testset_save_CFLAGS"
16265fi
16266
16267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16270	fi
16271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16275  $as_echo_n "(cached) " >&6
16276else
16277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h.  */
16279int i;
16280_ACEOF
16281if ac_fn_c_try_compile "$LINENO"; then :
16282  xorg_cv_cc_flag_unused_command_line_argument=yes
16283else
16284  xorg_cv_cc_flag_unused_command_line_argument=no
16285fi
16286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16287fi
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16291	CFLAGS="$xorg_testset_save_CFLAGS"
16292fi
16293
16294found="no"
16295
16296	if test $found = "no" ; then
16297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16299		fi
16300
16301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16303		fi
16304
16305		CFLAGS="$CFLAGS -Wmain"
16306
16307		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16308$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16309		cacheid=xorg_cv_cc_flag__Wmain
16310		if eval \${$cacheid+:} false; then :
16311  $as_echo_n "(cached) " >&6
16312else
16313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314/* end confdefs.h.  */
16315int i;
16316int
16317main ()
16318{
16319
16320  ;
16321  return 0;
16322}
16323_ACEOF
16324if ac_fn_c_try_link "$LINENO"; then :
16325  eval $cacheid=yes
16326else
16327  eval $cacheid=no
16328fi
16329rm -f core conftest.err conftest.$ac_objext \
16330    conftest$ac_exeext conftest.$ac_ext
16331fi
16332
16333
16334		CFLAGS="$xorg_testset_save_CFLAGS"
16335
16336		eval supported=\$$cacheid
16337		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16338$as_echo "$supported" >&6; }
16339		if test "$supported" = "yes" ; then
16340			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16341			found="yes"
16342		fi
16343	fi
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359xorg_testset_save_CFLAGS="$CFLAGS"
16360
16361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16366  $as_echo_n "(cached) " >&6
16367else
16368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369/* end confdefs.h.  */
16370int i;
16371_ACEOF
16372if ac_fn_c_try_compile "$LINENO"; then :
16373  xorg_cv_cc_flag_unknown_warning_option=yes
16374else
16375  xorg_cv_cc_flag_unknown_warning_option=no
16376fi
16377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378fi
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16382	CFLAGS="$xorg_testset_save_CFLAGS"
16383fi
16384
16385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16388	fi
16389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16393  $as_echo_n "(cached) " >&6
16394else
16395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16396/* end confdefs.h.  */
16397int i;
16398_ACEOF
16399if ac_fn_c_try_compile "$LINENO"; then :
16400  xorg_cv_cc_flag_unused_command_line_argument=yes
16401else
16402  xorg_cv_cc_flag_unused_command_line_argument=no
16403fi
16404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405fi
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16409	CFLAGS="$xorg_testset_save_CFLAGS"
16410fi
16411
16412found="no"
16413
16414	if test $found = "no" ; then
16415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16417		fi
16418
16419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16421		fi
16422
16423		CFLAGS="$CFLAGS -Wmissing-braces"
16424
16425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16426$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16427		cacheid=xorg_cv_cc_flag__Wmissing_braces
16428		if eval \${$cacheid+:} false; then :
16429  $as_echo_n "(cached) " >&6
16430else
16431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432/* end confdefs.h.  */
16433int i;
16434int
16435main ()
16436{
16437
16438  ;
16439  return 0;
16440}
16441_ACEOF
16442if ac_fn_c_try_link "$LINENO"; then :
16443  eval $cacheid=yes
16444else
16445  eval $cacheid=no
16446fi
16447rm -f core conftest.err conftest.$ac_objext \
16448    conftest$ac_exeext conftest.$ac_ext
16449fi
16450
16451
16452		CFLAGS="$xorg_testset_save_CFLAGS"
16453
16454		eval supported=\$$cacheid
16455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16456$as_echo "$supported" >&6; }
16457		if test "$supported" = "yes" ; then
16458			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16459			found="yes"
16460		fi
16461	fi
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477xorg_testset_save_CFLAGS="$CFLAGS"
16478
16479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16484  $as_echo_n "(cached) " >&6
16485else
16486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487/* end confdefs.h.  */
16488int i;
16489_ACEOF
16490if ac_fn_c_try_compile "$LINENO"; then :
16491  xorg_cv_cc_flag_unknown_warning_option=yes
16492else
16493  xorg_cv_cc_flag_unknown_warning_option=no
16494fi
16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496fi
16497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16500	CFLAGS="$xorg_testset_save_CFLAGS"
16501fi
16502
16503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16506	fi
16507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16511  $as_echo_n "(cached) " >&6
16512else
16513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514/* end confdefs.h.  */
16515int i;
16516_ACEOF
16517if ac_fn_c_try_compile "$LINENO"; then :
16518  xorg_cv_cc_flag_unused_command_line_argument=yes
16519else
16520  xorg_cv_cc_flag_unused_command_line_argument=no
16521fi
16522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523fi
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16527	CFLAGS="$xorg_testset_save_CFLAGS"
16528fi
16529
16530found="no"
16531
16532	if test $found = "no" ; then
16533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16535		fi
16536
16537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16539		fi
16540
16541		CFLAGS="$CFLAGS -Wsequence-point"
16542
16543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16544$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16545		cacheid=xorg_cv_cc_flag__Wsequence_point
16546		if eval \${$cacheid+:} false; then :
16547  $as_echo_n "(cached) " >&6
16548else
16549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550/* end confdefs.h.  */
16551int i;
16552int
16553main ()
16554{
16555
16556  ;
16557  return 0;
16558}
16559_ACEOF
16560if ac_fn_c_try_link "$LINENO"; then :
16561  eval $cacheid=yes
16562else
16563  eval $cacheid=no
16564fi
16565rm -f core conftest.err conftest.$ac_objext \
16566    conftest$ac_exeext conftest.$ac_ext
16567fi
16568
16569
16570		CFLAGS="$xorg_testset_save_CFLAGS"
16571
16572		eval supported=\$$cacheid
16573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16574$as_echo "$supported" >&6; }
16575		if test "$supported" = "yes" ; then
16576			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16577			found="yes"
16578		fi
16579	fi
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595xorg_testset_save_CFLAGS="$CFLAGS"
16596
16597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16600$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16601if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16602  $as_echo_n "(cached) " >&6
16603else
16604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605/* end confdefs.h.  */
16606int i;
16607_ACEOF
16608if ac_fn_c_try_compile "$LINENO"; then :
16609  xorg_cv_cc_flag_unknown_warning_option=yes
16610else
16611  xorg_cv_cc_flag_unknown_warning_option=no
16612fi
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614fi
16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16616$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16617	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16618	CFLAGS="$xorg_testset_save_CFLAGS"
16619fi
16620
16621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16622	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16624	fi
16625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16627$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16628if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16629  $as_echo_n "(cached) " >&6
16630else
16631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16632/* end confdefs.h.  */
16633int i;
16634_ACEOF
16635if ac_fn_c_try_compile "$LINENO"; then :
16636  xorg_cv_cc_flag_unused_command_line_argument=yes
16637else
16638  xorg_cv_cc_flag_unused_command_line_argument=no
16639fi
16640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641fi
16642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16643$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16644	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16645	CFLAGS="$xorg_testset_save_CFLAGS"
16646fi
16647
16648found="no"
16649
16650	if test $found = "no" ; then
16651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16653		fi
16654
16655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16657		fi
16658
16659		CFLAGS="$CFLAGS -Wreturn-type"
16660
16661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16662$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16663		cacheid=xorg_cv_cc_flag__Wreturn_type
16664		if eval \${$cacheid+:} false; then :
16665  $as_echo_n "(cached) " >&6
16666else
16667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668/* end confdefs.h.  */
16669int i;
16670int
16671main ()
16672{
16673
16674  ;
16675  return 0;
16676}
16677_ACEOF
16678if ac_fn_c_try_link "$LINENO"; then :
16679  eval $cacheid=yes
16680else
16681  eval $cacheid=no
16682fi
16683rm -f core conftest.err conftest.$ac_objext \
16684    conftest$ac_exeext conftest.$ac_ext
16685fi
16686
16687
16688		CFLAGS="$xorg_testset_save_CFLAGS"
16689
16690		eval supported=\$$cacheid
16691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16692$as_echo "$supported" >&6; }
16693		if test "$supported" = "yes" ; then
16694			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16695			found="yes"
16696		fi
16697	fi
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713xorg_testset_save_CFLAGS="$CFLAGS"
16714
16715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16720  $as_echo_n "(cached) " >&6
16721else
16722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723/* end confdefs.h.  */
16724int i;
16725_ACEOF
16726if ac_fn_c_try_compile "$LINENO"; then :
16727  xorg_cv_cc_flag_unknown_warning_option=yes
16728else
16729  xorg_cv_cc_flag_unknown_warning_option=no
16730fi
16731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732fi
16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16736	CFLAGS="$xorg_testset_save_CFLAGS"
16737fi
16738
16739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16742	fi
16743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16747  $as_echo_n "(cached) " >&6
16748else
16749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750/* end confdefs.h.  */
16751int i;
16752_ACEOF
16753if ac_fn_c_try_compile "$LINENO"; then :
16754  xorg_cv_cc_flag_unused_command_line_argument=yes
16755else
16756  xorg_cv_cc_flag_unused_command_line_argument=no
16757fi
16758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759fi
16760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16763	CFLAGS="$xorg_testset_save_CFLAGS"
16764fi
16765
16766found="no"
16767
16768	if test $found = "no" ; then
16769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16771		fi
16772
16773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16775		fi
16776
16777		CFLAGS="$CFLAGS -Wtrigraphs"
16778
16779		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16780$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16781		cacheid=xorg_cv_cc_flag__Wtrigraphs
16782		if eval \${$cacheid+:} false; then :
16783  $as_echo_n "(cached) " >&6
16784else
16785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786/* end confdefs.h.  */
16787int i;
16788int
16789main ()
16790{
16791
16792  ;
16793  return 0;
16794}
16795_ACEOF
16796if ac_fn_c_try_link "$LINENO"; then :
16797  eval $cacheid=yes
16798else
16799  eval $cacheid=no
16800fi
16801rm -f core conftest.err conftest.$ac_objext \
16802    conftest$ac_exeext conftest.$ac_ext
16803fi
16804
16805
16806		CFLAGS="$xorg_testset_save_CFLAGS"
16807
16808		eval supported=\$$cacheid
16809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16810$as_echo "$supported" >&6; }
16811		if test "$supported" = "yes" ; then
16812			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16813			found="yes"
16814		fi
16815	fi
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831xorg_testset_save_CFLAGS="$CFLAGS"
16832
16833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16838  $as_echo_n "(cached) " >&6
16839else
16840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841/* end confdefs.h.  */
16842int i;
16843_ACEOF
16844if ac_fn_c_try_compile "$LINENO"; then :
16845  xorg_cv_cc_flag_unknown_warning_option=yes
16846else
16847  xorg_cv_cc_flag_unknown_warning_option=no
16848fi
16849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850fi
16851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16854	CFLAGS="$xorg_testset_save_CFLAGS"
16855fi
16856
16857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16860	fi
16861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16865  $as_echo_n "(cached) " >&6
16866else
16867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868/* end confdefs.h.  */
16869int i;
16870_ACEOF
16871if ac_fn_c_try_compile "$LINENO"; then :
16872  xorg_cv_cc_flag_unused_command_line_argument=yes
16873else
16874  xorg_cv_cc_flag_unused_command_line_argument=no
16875fi
16876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16881	CFLAGS="$xorg_testset_save_CFLAGS"
16882fi
16883
16884found="no"
16885
16886	if test $found = "no" ; then
16887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16889		fi
16890
16891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16893		fi
16894
16895		CFLAGS="$CFLAGS -Warray-bounds"
16896
16897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16898$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16899		cacheid=xorg_cv_cc_flag__Warray_bounds
16900		if eval \${$cacheid+:} false; then :
16901  $as_echo_n "(cached) " >&6
16902else
16903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904/* end confdefs.h.  */
16905int i;
16906int
16907main ()
16908{
16909
16910  ;
16911  return 0;
16912}
16913_ACEOF
16914if ac_fn_c_try_link "$LINENO"; then :
16915  eval $cacheid=yes
16916else
16917  eval $cacheid=no
16918fi
16919rm -f core conftest.err conftest.$ac_objext \
16920    conftest$ac_exeext conftest.$ac_ext
16921fi
16922
16923
16924		CFLAGS="$xorg_testset_save_CFLAGS"
16925
16926		eval supported=\$$cacheid
16927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16928$as_echo "$supported" >&6; }
16929		if test "$supported" = "yes" ; then
16930			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16931			found="yes"
16932		fi
16933	fi
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949xorg_testset_save_CFLAGS="$CFLAGS"
16950
16951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16956  $as_echo_n "(cached) " >&6
16957else
16958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960int i;
16961_ACEOF
16962if ac_fn_c_try_compile "$LINENO"; then :
16963  xorg_cv_cc_flag_unknown_warning_option=yes
16964else
16965  xorg_cv_cc_flag_unknown_warning_option=no
16966fi
16967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968fi
16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16972	CFLAGS="$xorg_testset_save_CFLAGS"
16973fi
16974
16975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16978	fi
16979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16983  $as_echo_n "(cached) " >&6
16984else
16985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986/* end confdefs.h.  */
16987int i;
16988_ACEOF
16989if ac_fn_c_try_compile "$LINENO"; then :
16990  xorg_cv_cc_flag_unused_command_line_argument=yes
16991else
16992  xorg_cv_cc_flag_unused_command_line_argument=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995fi
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16999	CFLAGS="$xorg_testset_save_CFLAGS"
17000fi
17001
17002found="no"
17003
17004	if test $found = "no" ; then
17005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17007		fi
17008
17009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17011		fi
17012
17013		CFLAGS="$CFLAGS -Wwrite-strings"
17014
17015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17016$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17017		cacheid=xorg_cv_cc_flag__Wwrite_strings
17018		if eval \${$cacheid+:} false; then :
17019  $as_echo_n "(cached) " >&6
17020else
17021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022/* end confdefs.h.  */
17023int i;
17024int
17025main ()
17026{
17027
17028  ;
17029  return 0;
17030}
17031_ACEOF
17032if ac_fn_c_try_link "$LINENO"; then :
17033  eval $cacheid=yes
17034else
17035  eval $cacheid=no
17036fi
17037rm -f core conftest.err conftest.$ac_objext \
17038    conftest$ac_exeext conftest.$ac_ext
17039fi
17040
17041
17042		CFLAGS="$xorg_testset_save_CFLAGS"
17043
17044		eval supported=\$$cacheid
17045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17046$as_echo "$supported" >&6; }
17047		if test "$supported" = "yes" ; then
17048			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17049			found="yes"
17050		fi
17051	fi
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067xorg_testset_save_CFLAGS="$CFLAGS"
17068
17069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17074  $as_echo_n "(cached) " >&6
17075else
17076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17077/* end confdefs.h.  */
17078int i;
17079_ACEOF
17080if ac_fn_c_try_compile "$LINENO"; then :
17081  xorg_cv_cc_flag_unknown_warning_option=yes
17082else
17083  xorg_cv_cc_flag_unknown_warning_option=no
17084fi
17085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086fi
17087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17090	CFLAGS="$xorg_testset_save_CFLAGS"
17091fi
17092
17093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17096	fi
17097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17101  $as_echo_n "(cached) " >&6
17102else
17103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104/* end confdefs.h.  */
17105int i;
17106_ACEOF
17107if ac_fn_c_try_compile "$LINENO"; then :
17108  xorg_cv_cc_flag_unused_command_line_argument=yes
17109else
17110  xorg_cv_cc_flag_unused_command_line_argument=no
17111fi
17112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17113fi
17114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17117	CFLAGS="$xorg_testset_save_CFLAGS"
17118fi
17119
17120found="no"
17121
17122	if test $found = "no" ; then
17123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17125		fi
17126
17127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129		fi
17130
17131		CFLAGS="$CFLAGS -Waddress"
17132
17133		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17134$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17135		cacheid=xorg_cv_cc_flag__Waddress
17136		if eval \${$cacheid+:} false; then :
17137  $as_echo_n "(cached) " >&6
17138else
17139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140/* end confdefs.h.  */
17141int i;
17142int
17143main ()
17144{
17145
17146  ;
17147  return 0;
17148}
17149_ACEOF
17150if ac_fn_c_try_link "$LINENO"; then :
17151  eval $cacheid=yes
17152else
17153  eval $cacheid=no
17154fi
17155rm -f core conftest.err conftest.$ac_objext \
17156    conftest$ac_exeext conftest.$ac_ext
17157fi
17158
17159
17160		CFLAGS="$xorg_testset_save_CFLAGS"
17161
17162		eval supported=\$$cacheid
17163		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17164$as_echo "$supported" >&6; }
17165		if test "$supported" = "yes" ; then
17166			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17167			found="yes"
17168		fi
17169	fi
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185xorg_testset_save_CFLAGS="$CFLAGS"
17186
17187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17192  $as_echo_n "(cached) " >&6
17193else
17194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195/* end confdefs.h.  */
17196int i;
17197_ACEOF
17198if ac_fn_c_try_compile "$LINENO"; then :
17199  xorg_cv_cc_flag_unknown_warning_option=yes
17200else
17201  xorg_cv_cc_flag_unknown_warning_option=no
17202fi
17203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204fi
17205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17208	CFLAGS="$xorg_testset_save_CFLAGS"
17209fi
17210
17211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17214	fi
17215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17219  $as_echo_n "(cached) " >&6
17220else
17221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h.  */
17223int i;
17224_ACEOF
17225if ac_fn_c_try_compile "$LINENO"; then :
17226  xorg_cv_cc_flag_unused_command_line_argument=yes
17227else
17228  xorg_cv_cc_flag_unused_command_line_argument=no
17229fi
17230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231fi
17232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17235	CFLAGS="$xorg_testset_save_CFLAGS"
17236fi
17237
17238found="no"
17239
17240	if test $found = "no" ; then
17241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243		fi
17244
17245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247		fi
17248
17249		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17250
17251		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17252$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17253		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17254		if eval \${$cacheid+:} false; then :
17255  $as_echo_n "(cached) " >&6
17256else
17257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258/* end confdefs.h.  */
17259int i;
17260int
17261main ()
17262{
17263
17264  ;
17265  return 0;
17266}
17267_ACEOF
17268if ac_fn_c_try_link "$LINENO"; then :
17269  eval $cacheid=yes
17270else
17271  eval $cacheid=no
17272fi
17273rm -f core conftest.err conftest.$ac_objext \
17274    conftest$ac_exeext conftest.$ac_ext
17275fi
17276
17277
17278		CFLAGS="$xorg_testset_save_CFLAGS"
17279
17280		eval supported=\$$cacheid
17281		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17282$as_echo "$supported" >&6; }
17283		if test "$supported" = "yes" ; then
17284			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17285			found="yes"
17286		fi
17287	fi
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303xorg_testset_save_CFLAGS="$CFLAGS"
17304
17305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17310  $as_echo_n "(cached) " >&6
17311else
17312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313/* end confdefs.h.  */
17314int i;
17315_ACEOF
17316if ac_fn_c_try_compile "$LINENO"; then :
17317  xorg_cv_cc_flag_unknown_warning_option=yes
17318else
17319  xorg_cv_cc_flag_unknown_warning_option=no
17320fi
17321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17322fi
17323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17326	CFLAGS="$xorg_testset_save_CFLAGS"
17327fi
17328
17329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17332	fi
17333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17337  $as_echo_n "(cached) " >&6
17338else
17339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340/* end confdefs.h.  */
17341int i;
17342_ACEOF
17343if ac_fn_c_try_compile "$LINENO"; then :
17344  xorg_cv_cc_flag_unused_command_line_argument=yes
17345else
17346  xorg_cv_cc_flag_unused_command_line_argument=no
17347fi
17348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349fi
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17353	CFLAGS="$xorg_testset_save_CFLAGS"
17354fi
17355
17356found="no"
17357
17358	if test $found = "no" ; then
17359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17361		fi
17362
17363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17365		fi
17366
17367		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17368
17369		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17370$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17371		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17372		if eval \${$cacheid+:} false; then :
17373  $as_echo_n "(cached) " >&6
17374else
17375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376/* end confdefs.h.  */
17377int i;
17378int
17379main ()
17380{
17381
17382  ;
17383  return 0;
17384}
17385_ACEOF
17386if ac_fn_c_try_link "$LINENO"; then :
17387  eval $cacheid=yes
17388else
17389  eval $cacheid=no
17390fi
17391rm -f core conftest.err conftest.$ac_objext \
17392    conftest$ac_exeext conftest.$ac_ext
17393fi
17394
17395
17396		CFLAGS="$xorg_testset_save_CFLAGS"
17397
17398		eval supported=\$$cacheid
17399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17400$as_echo "$supported" >&6; }
17401		if test "$supported" = "yes" ; then
17402			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17403			found="yes"
17404		fi
17405	fi
17406
17407
17408fi
17409
17410
17411
17412
17413
17414
17415
17416		CWARNFLAGS="$BASE_CFLAGS"
17417		if  test "x$GCC" = xyes ; then
17418		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17419		fi
17420
17421
17422
17423
17424
17425
17426
17427
17428# Check whether --enable-strict-compilation was given.
17429if test "${enable_strict_compilation+set}" = set; then :
17430  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17431else
17432  STRICT_COMPILE=no
17433fi
17434
17435
17436
17437
17438
17439
17440STRICT_CFLAGS=""
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454xorg_testset_save_CFLAGS="$CFLAGS"
17455
17456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17457	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17461  $as_echo_n "(cached) " >&6
17462else
17463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464/* end confdefs.h.  */
17465int i;
17466_ACEOF
17467if ac_fn_c_try_compile "$LINENO"; then :
17468  xorg_cv_cc_flag_unknown_warning_option=yes
17469else
17470  xorg_cv_cc_flag_unknown_warning_option=no
17471fi
17472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17476	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17477	CFLAGS="$xorg_testset_save_CFLAGS"
17478fi
17479
17480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17481	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17482		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17483	fi
17484	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17485	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17488  $as_echo_n "(cached) " >&6
17489else
17490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17491/* end confdefs.h.  */
17492int i;
17493_ACEOF
17494if ac_fn_c_try_compile "$LINENO"; then :
17495  xorg_cv_cc_flag_unused_command_line_argument=yes
17496else
17497  xorg_cv_cc_flag_unused_command_line_argument=no
17498fi
17499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17500fi
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17504	CFLAGS="$xorg_testset_save_CFLAGS"
17505fi
17506
17507found="no"
17508
17509	if test $found = "no" ; then
17510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17512		fi
17513
17514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17516		fi
17517
17518		CFLAGS="$CFLAGS -pedantic"
17519
17520		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17521$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17522		cacheid=xorg_cv_cc_flag__pedantic
17523		if eval \${$cacheid+:} false; then :
17524  $as_echo_n "(cached) " >&6
17525else
17526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527/* end confdefs.h.  */
17528int i;
17529int
17530main ()
17531{
17532
17533  ;
17534  return 0;
17535}
17536_ACEOF
17537if ac_fn_c_try_link "$LINENO"; then :
17538  eval $cacheid=yes
17539else
17540  eval $cacheid=no
17541fi
17542rm -f core conftest.err conftest.$ac_objext \
17543    conftest$ac_exeext conftest.$ac_ext
17544fi
17545
17546
17547		CFLAGS="$xorg_testset_save_CFLAGS"
17548
17549		eval supported=\$$cacheid
17550		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17551$as_echo "$supported" >&6; }
17552		if test "$supported" = "yes" ; then
17553			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17554			found="yes"
17555		fi
17556	fi
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572xorg_testset_save_CFLAGS="$CFLAGS"
17573
17574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17575	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17579  $as_echo_n "(cached) " >&6
17580else
17581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582/* end confdefs.h.  */
17583int i;
17584_ACEOF
17585if ac_fn_c_try_compile "$LINENO"; then :
17586  xorg_cv_cc_flag_unknown_warning_option=yes
17587else
17588  xorg_cv_cc_flag_unknown_warning_option=no
17589fi
17590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591fi
17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17595	CFLAGS="$xorg_testset_save_CFLAGS"
17596fi
17597
17598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17601	fi
17602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17606  $as_echo_n "(cached) " >&6
17607else
17608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609/* end confdefs.h.  */
17610int i;
17611_ACEOF
17612if ac_fn_c_try_compile "$LINENO"; then :
17613  xorg_cv_cc_flag_unused_command_line_argument=yes
17614else
17615  xorg_cv_cc_flag_unused_command_line_argument=no
17616fi
17617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17618fi
17619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17622	CFLAGS="$xorg_testset_save_CFLAGS"
17623fi
17624
17625found="no"
17626
17627	if test $found = "no" ; then
17628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17630		fi
17631
17632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17634		fi
17635
17636		CFLAGS="$CFLAGS -Werror"
17637
17638		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17639$as_echo_n "checking if $CC supports -Werror... " >&6; }
17640		cacheid=xorg_cv_cc_flag__Werror
17641		if eval \${$cacheid+:} false; then :
17642  $as_echo_n "(cached) " >&6
17643else
17644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645/* end confdefs.h.  */
17646int i;
17647int
17648main ()
17649{
17650
17651  ;
17652  return 0;
17653}
17654_ACEOF
17655if ac_fn_c_try_link "$LINENO"; then :
17656  eval $cacheid=yes
17657else
17658  eval $cacheid=no
17659fi
17660rm -f core conftest.err conftest.$ac_objext \
17661    conftest$ac_exeext conftest.$ac_ext
17662fi
17663
17664
17665		CFLAGS="$xorg_testset_save_CFLAGS"
17666
17667		eval supported=\$$cacheid
17668		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17669$as_echo "$supported" >&6; }
17670		if test "$supported" = "yes" ; then
17671			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17672			found="yes"
17673		fi
17674	fi
17675
17676	if test $found = "no" ; then
17677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17679		fi
17680
17681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17683		fi
17684
17685		CFLAGS="$CFLAGS -errwarn"
17686
17687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17688$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17689		cacheid=xorg_cv_cc_flag__errwarn
17690		if eval \${$cacheid+:} false; then :
17691  $as_echo_n "(cached) " >&6
17692else
17693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694/* end confdefs.h.  */
17695int i;
17696int
17697main ()
17698{
17699
17700  ;
17701  return 0;
17702}
17703_ACEOF
17704if ac_fn_c_try_link "$LINENO"; then :
17705  eval $cacheid=yes
17706else
17707  eval $cacheid=no
17708fi
17709rm -f core conftest.err conftest.$ac_objext \
17710    conftest$ac_exeext conftest.$ac_ext
17711fi
17712
17713
17714		CFLAGS="$xorg_testset_save_CFLAGS"
17715
17716		eval supported=\$$cacheid
17717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17718$as_echo "$supported" >&6; }
17719		if test "$supported" = "yes" ; then
17720			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17721			found="yes"
17722		fi
17723	fi
17724
17725
17726
17727# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17728# activate it with -Werror, so we add it here explicitly.
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742xorg_testset_save_CFLAGS="$CFLAGS"
17743
17744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17749  $as_echo_n "(cached) " >&6
17750else
17751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h.  */
17753int i;
17754_ACEOF
17755if ac_fn_c_try_compile "$LINENO"; then :
17756  xorg_cv_cc_flag_unknown_warning_option=yes
17757else
17758  xorg_cv_cc_flag_unknown_warning_option=no
17759fi
17760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17761fi
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17765	CFLAGS="$xorg_testset_save_CFLAGS"
17766fi
17767
17768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17771	fi
17772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17776  $as_echo_n "(cached) " >&6
17777else
17778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779/* end confdefs.h.  */
17780int i;
17781_ACEOF
17782if ac_fn_c_try_compile "$LINENO"; then :
17783  xorg_cv_cc_flag_unused_command_line_argument=yes
17784else
17785  xorg_cv_cc_flag_unused_command_line_argument=no
17786fi
17787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788fi
17789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17792	CFLAGS="$xorg_testset_save_CFLAGS"
17793fi
17794
17795found="no"
17796
17797	if test $found = "no" ; then
17798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17800		fi
17801
17802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17804		fi
17805
17806		CFLAGS="$CFLAGS -Werror=attributes"
17807
17808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17809$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17810		cacheid=xorg_cv_cc_flag__Werror_attributes
17811		if eval \${$cacheid+:} false; then :
17812  $as_echo_n "(cached) " >&6
17813else
17814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815/* end confdefs.h.  */
17816int i;
17817int
17818main ()
17819{
17820
17821  ;
17822  return 0;
17823}
17824_ACEOF
17825if ac_fn_c_try_link "$LINENO"; then :
17826  eval $cacheid=yes
17827else
17828  eval $cacheid=no
17829fi
17830rm -f core conftest.err conftest.$ac_objext \
17831    conftest$ac_exeext conftest.$ac_ext
17832fi
17833
17834
17835		CFLAGS="$xorg_testset_save_CFLAGS"
17836
17837		eval supported=\$$cacheid
17838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17839$as_echo "$supported" >&6; }
17840		if test "$supported" = "yes" ; then
17841			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17842			found="yes"
17843		fi
17844	fi
17845
17846
17847
17848if test "x$STRICT_COMPILE" = "xyes"; then
17849    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17850    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17851fi
17852
17853
17854
17855
17856
17857
17858cat >>confdefs.h <<_ACEOF
17859#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17860_ACEOF
17861
17862	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17863	if test "x$PVM" = "x"; then
17864		PVM="0"
17865	fi
17866
17867cat >>confdefs.h <<_ACEOF
17868#define PACKAGE_VERSION_MINOR $PVM
17869_ACEOF
17870
17871	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17872	if test "x$PVP" = "x"; then
17873		PVP="0"
17874	fi
17875
17876cat >>confdefs.h <<_ACEOF
17877#define PACKAGE_VERSION_PATCHLEVEL $PVP
17878_ACEOF
17879
17880
17881
17882CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17883mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17884|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17885echo 'git directory not found: installing possibly empty changelog.' >&2)"
17886
17887
17888
17889
17890macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17891INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17892mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17893|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17894echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17895
17896
17897
17898
17899
17900
17901if test x$APP_MAN_SUFFIX = x    ; then
17902    APP_MAN_SUFFIX=1
17903fi
17904if test x$APP_MAN_DIR = x    ; then
17905    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17906fi
17907
17908if test x$LIB_MAN_SUFFIX = x    ; then
17909    LIB_MAN_SUFFIX=3
17910fi
17911if test x$LIB_MAN_DIR = x    ; then
17912    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17913fi
17914
17915if test x$FILE_MAN_SUFFIX = x    ; then
17916    case $host_os in
17917	solaris*)	FILE_MAN_SUFFIX=4  ;;
17918	*)		FILE_MAN_SUFFIX=5  ;;
17919    esac
17920fi
17921if test x$FILE_MAN_DIR = x    ; then
17922    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17923fi
17924
17925if test x$MISC_MAN_SUFFIX = x    ; then
17926    case $host_os in
17927	solaris*)	MISC_MAN_SUFFIX=5  ;;
17928	*)		MISC_MAN_SUFFIX=7  ;;
17929    esac
17930fi
17931if test x$MISC_MAN_DIR = x    ; then
17932    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17933fi
17934
17935if test x$DRIVER_MAN_SUFFIX = x    ; then
17936    case $host_os in
17937	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17938	*)		DRIVER_MAN_SUFFIX=4  ;;
17939    esac
17940fi
17941if test x$DRIVER_MAN_DIR = x    ; then
17942    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17943fi
17944
17945if test x$ADMIN_MAN_SUFFIX = x    ; then
17946    case $host_os in
17947	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17948	*)		ADMIN_MAN_SUFFIX=8  ;;
17949    esac
17950fi
17951if test x$ADMIN_MAN_DIR = x    ; then
17952    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17953fi
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969XORG_MAN_PAGE="X Version 11"
17970
17971MAN_SUBSTS="\
17972	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17973	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17974	-e 's|__xservername__|Xorg|g' \
17975	-e 's|__xconfigfile__|xorg.conf|g' \
17976	-e 's|__projectroot__|\$(prefix)|g' \
17977	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17978	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17979	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17980	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17981	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17982	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17983	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17984
17985
17986
17987# Check whether --enable-silent-rules was given.
17988if test "${enable_silent_rules+set}" = set; then :
17989  enableval=$enable_silent_rules;
17990fi
17991
17992case $enable_silent_rules in # (((
17993  yes) AM_DEFAULT_VERBOSITY=0;;
17994   no) AM_DEFAULT_VERBOSITY=1;;
17995    *) AM_DEFAULT_VERBOSITY=0;;
17996esac
17997am_make=${MAKE-make}
17998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17999$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18000if ${am_cv_make_support_nested_variables+:} false; then :
18001  $as_echo_n "(cached) " >&6
18002else
18003  if $as_echo 'TRUE=$(BAR$(V))
18004BAR0=false
18005BAR1=true
18006V=1
18007am__doit:
18008	@$(TRUE)
18009.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18010  am_cv_make_support_nested_variables=yes
18011else
18012  am_cv_make_support_nested_variables=no
18013fi
18014fi
18015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18016$as_echo "$am_cv_make_support_nested_variables" >&6; }
18017if test $am_cv_make_support_nested_variables = yes; then
18018    AM_V='$(V)'
18019  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18020else
18021  AM_V=$AM_DEFAULT_VERBOSITY
18022  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18023fi
18024AM_BACKSLASH='\'
18025
18026
18027
18028
18029# Check whether --enable-devel-docs was given.
18030if test "${enable_devel_docs+set}" = set; then :
18031  enableval=$enable_devel_docs; build_devel_docs=$enableval
18032else
18033  build_devel_docs=yes
18034fi
18035
18036
18037 if test x$build_devel_docs = xyes; then
18038  ENABLE_DEVEL_DOCS_TRUE=
18039  ENABLE_DEVEL_DOCS_FALSE='#'
18040else
18041  ENABLE_DEVEL_DOCS_TRUE='#'
18042  ENABLE_DEVEL_DOCS_FALSE=
18043fi
18044
18045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18046$as_echo_n "checking whether to build developer documentation... " >&6; }
18047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18048$as_echo "$build_devel_docs" >&6; }
18049
18050
18051
18052
18053
18054
18055# Check whether --with-doxygen was given.
18056if test "${with_doxygen+set}" = set; then :
18057  withval=$with_doxygen; use_doxygen=$withval
18058else
18059  use_doxygen=auto
18060fi
18061
18062
18063
18064if test "x$use_doxygen" = x"auto"; then
18065   # Extract the first word of "doxygen", so it can be a program name with args.
18066set dummy doxygen; ac_word=$2
18067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18068$as_echo_n "checking for $ac_word... " >&6; }
18069if ${ac_cv_path_DOXYGEN+:} false; then :
18070  $as_echo_n "(cached) " >&6
18071else
18072  case $DOXYGEN in
18073  [\\/]* | ?:[\\/]*)
18074  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18075  ;;
18076  *)
18077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18078for as_dir in $PATH
18079do
18080  IFS=$as_save_IFS
18081  test -z "$as_dir" && as_dir=.
18082    for ac_exec_ext in '' $ac_executable_extensions; do
18083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18084    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18086    break 2
18087  fi
18088done
18089  done
18090IFS=$as_save_IFS
18091
18092  ;;
18093esac
18094fi
18095DOXYGEN=$ac_cv_path_DOXYGEN
18096if test -n "$DOXYGEN"; then
18097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18098$as_echo "$DOXYGEN" >&6; }
18099else
18100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18101$as_echo "no" >&6; }
18102fi
18103
18104
18105   if test "x$DOXYGEN" = "x"; then
18106        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
18107$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
18108	have_doxygen=no
18109   else
18110        have_doxygen=yes
18111   fi
18112elif test "x$use_doxygen" = x"yes" ; then
18113   # Extract the first word of "doxygen", so it can be a program name with args.
18114set dummy doxygen; ac_word=$2
18115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18116$as_echo_n "checking for $ac_word... " >&6; }
18117if ${ac_cv_path_DOXYGEN+:} false; then :
18118  $as_echo_n "(cached) " >&6
18119else
18120  case $DOXYGEN in
18121  [\\/]* | ?:[\\/]*)
18122  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18123  ;;
18124  *)
18125  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18126for as_dir in $PATH
18127do
18128  IFS=$as_save_IFS
18129  test -z "$as_dir" && as_dir=.
18130    for ac_exec_ext in '' $ac_executable_extensions; do
18131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18132    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18134    break 2
18135  fi
18136done
18137  done
18138IFS=$as_save_IFS
18139
18140  ;;
18141esac
18142fi
18143DOXYGEN=$ac_cv_path_DOXYGEN
18144if test -n "$DOXYGEN"; then
18145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18146$as_echo "$DOXYGEN" >&6; }
18147else
18148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18149$as_echo "no" >&6; }
18150fi
18151
18152
18153   if test "x$DOXYGEN" = "x"; then
18154        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
18155   fi
18156   have_doxygen=yes
18157elif test "x$use_doxygen" = x"no" ; then
18158   if test "x$DOXYGEN" != "x"; then
18159      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
18160$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
18161   fi
18162   have_doxygen=no
18163else
18164   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
18165fi
18166
18167
18168HAVE_DOT=no
18169if test "x$have_doxygen" = "xyes"; then
18170  # Extract the first word of "dot", so it can be a program name with args.
18171set dummy dot; ac_word=$2
18172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18173$as_echo_n "checking for $ac_word... " >&6; }
18174if ${ac_cv_path_DOT+:} false; then :
18175  $as_echo_n "(cached) " >&6
18176else
18177  case $DOT in
18178  [\\/]* | ?:[\\/]*)
18179  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18180  ;;
18181  *)
18182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18183for as_dir in $PATH
18184do
18185  IFS=$as_save_IFS
18186  test -z "$as_dir" && as_dir=.
18187    for ac_exec_ext in '' $ac_executable_extensions; do
18188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18189    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18191    break 2
18192  fi
18193done
18194  done
18195IFS=$as_save_IFS
18196
18197  ;;
18198esac
18199fi
18200DOT=$ac_cv_path_DOT
18201if test -n "$DOT"; then
18202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18203$as_echo "$DOT" >&6; }
18204else
18205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206$as_echo "no" >&6; }
18207fi
18208
18209
18210    if test "x$DOT" != "x"; then
18211      HAVE_DOT=yes
18212    fi
18213fi
18214
18215
18216 if test "$HAVE_DOT" = "yes"; then
18217  HAVE_DOT_TRUE=
18218  HAVE_DOT_FALSE='#'
18219else
18220  HAVE_DOT_TRUE='#'
18221  HAVE_DOT_FALSE=
18222fi
18223
18224 if test "$have_doxygen" = yes; then
18225  HAVE_DOXYGEN_TRUE=
18226  HAVE_DOXYGEN_FALSE='#'
18227else
18228  HAVE_DOXYGEN_TRUE='#'
18229  HAVE_DOXYGEN_FALSE=
18230fi
18231
18232
18233
18234
18235
18236pkg_failed=no
18237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_RENDER" >&5
18238$as_echo_n "checking for XCB_RENDER... " >&6; }
18239
18240if test -n "$XCB_RENDER_CFLAGS"; then
18241    pkg_cv_XCB_RENDER_CFLAGS="$XCB_RENDER_CFLAGS"
18242 elif test -n "$PKG_CONFIG"; then
18243    if test -n "$PKG_CONFIG" && \
18244    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5
18245  ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5
18246  ac_status=$?
18247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18248  test $ac_status = 0; }; then
18249  pkg_cv_XCB_RENDER_CFLAGS=`$PKG_CONFIG --cflags "xcb-render" 2>/dev/null`
18250		      test "x$?" != "x0" && pkg_failed=yes
18251else
18252  pkg_failed=yes
18253fi
18254 else
18255    pkg_failed=untried
18256fi
18257if test -n "$XCB_RENDER_LIBS"; then
18258    pkg_cv_XCB_RENDER_LIBS="$XCB_RENDER_LIBS"
18259 elif test -n "$PKG_CONFIG"; then
18260    if test -n "$PKG_CONFIG" && \
18261    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-render\""; } >&5
18262  ($PKG_CONFIG --exists --print-errors "xcb-render") 2>&5
18263  ac_status=$?
18264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18265  test $ac_status = 0; }; then
18266  pkg_cv_XCB_RENDER_LIBS=`$PKG_CONFIG --libs "xcb-render" 2>/dev/null`
18267		      test "x$?" != "x0" && pkg_failed=yes
18268else
18269  pkg_failed=yes
18270fi
18271 else
18272    pkg_failed=untried
18273fi
18274
18275
18276
18277if test $pkg_failed = yes; then
18278   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18279$as_echo "no" >&6; }
18280
18281if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18282        _pkg_short_errors_supported=yes
18283else
18284        _pkg_short_errors_supported=no
18285fi
18286        if test $_pkg_short_errors_supported = yes; then
18287	        XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-render" 2>&1`
18288        else
18289	        XCB_RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-render" 2>&1`
18290        fi
18291	# Put the nasty error message in config.log where it belongs
18292	echo "$XCB_RENDER_PKG_ERRORS" >&5
18293
18294	as_fn_error $? "Package requirements (xcb-render) were not met:
18295
18296$XCB_RENDER_PKG_ERRORS
18297
18298Consider adjusting the PKG_CONFIG_PATH environment variable if you
18299installed software in a non-standard prefix.
18300
18301Alternatively, you may set the environment variables XCB_RENDER_CFLAGS
18302and XCB_RENDER_LIBS to avoid the need to call pkg-config.
18303See the pkg-config man page for more details." "$LINENO" 5
18304elif test $pkg_failed = untried; then
18305     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306$as_echo "no" >&6; }
18307	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18309as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18310is in your PATH or set the PKG_CONFIG environment variable to the full
18311path to pkg-config.
18312
18313Alternatively, you may set the environment variables XCB_RENDER_CFLAGS
18314and XCB_RENDER_LIBS to avoid the need to call pkg-config.
18315See the pkg-config man page for more details.
18316
18317To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18318See \`config.log' for more details" "$LINENO" 5; }
18319else
18320	XCB_RENDER_CFLAGS=$pkg_cv_XCB_RENDER_CFLAGS
18321	XCB_RENDER_LIBS=$pkg_cv_XCB_RENDER_LIBS
18322        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18323$as_echo "yes" >&6; }
18324
18325fi
18326
18327ac_config_files="$ac_config_files Makefile renderutil/Makefile renderutil/xcb-renderutil.pc"
18328
18329cat >confcache <<\_ACEOF
18330# This file is a shell script that caches the results of configure
18331# tests run on this system so they can be shared between configure
18332# scripts and configure runs, see configure's option --config-cache.
18333# It is not useful on other systems.  If it contains results you don't
18334# want to keep, you may remove or edit it.
18335#
18336# config.status only pays attention to the cache file if you give it
18337# the --recheck option to rerun configure.
18338#
18339# `ac_cv_env_foo' variables (set or unset) will be overridden when
18340# loading this file, other *unset* `ac_cv_foo' will be assigned the
18341# following values.
18342
18343_ACEOF
18344
18345# The following way of writing the cache mishandles newlines in values,
18346# but we know of no workaround that is simple, portable, and efficient.
18347# So, we kill variables containing newlines.
18348# Ultrix sh set writes to stderr and can't be redirected directly,
18349# and sets the high bit in the cache file unless we assign to the vars.
18350(
18351  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18352    eval ac_val=\$$ac_var
18353    case $ac_val in #(
18354    *${as_nl}*)
18355      case $ac_var in #(
18356      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18357$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18358      esac
18359      case $ac_var in #(
18360      _ | IFS | as_nl) ;; #(
18361      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18362      *) { eval $ac_var=; unset $ac_var;} ;;
18363      esac ;;
18364    esac
18365  done
18366
18367  (set) 2>&1 |
18368    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18369    *${as_nl}ac_space=\ *)
18370      # `set' does not quote correctly, so add quotes: double-quote
18371      # substitution turns \\\\ into \\, and sed turns \\ into \.
18372      sed -n \
18373	"s/'/'\\\\''/g;
18374	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18375      ;; #(
18376    *)
18377      # `set' quotes correctly as required by POSIX, so do not add quotes.
18378      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18379      ;;
18380    esac |
18381    sort
18382) |
18383  sed '
18384     /^ac_cv_env_/b end
18385     t clear
18386     :clear
18387     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18388     t end
18389     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18390     :end' >>confcache
18391if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18392  if test -w "$cache_file"; then
18393    if test "x$cache_file" != "x/dev/null"; then
18394      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18395$as_echo "$as_me: updating cache $cache_file" >&6;}
18396      if test ! -f "$cache_file" || test -h "$cache_file"; then
18397	cat confcache >"$cache_file"
18398      else
18399        case $cache_file in #(
18400        */* | ?:*)
18401	  mv -f confcache "$cache_file"$$ &&
18402	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18403        *)
18404	  mv -f confcache "$cache_file" ;;
18405	esac
18406      fi
18407    fi
18408  else
18409    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18410$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18411  fi
18412fi
18413rm -f confcache
18414
18415test "x$prefix" = xNONE && prefix=$ac_default_prefix
18416# Let make expand exec_prefix.
18417test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18418
18419DEFS=-DHAVE_CONFIG_H
18420
18421ac_libobjs=
18422ac_ltlibobjs=
18423U=
18424for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18425  # 1. Remove the extension, and $U if already installed.
18426  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18427  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18428  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18429  #    will be set to the directory where LIBOBJS objects are built.
18430  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18431  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18432done
18433LIBOBJS=$ac_libobjs
18434
18435LTLIBOBJS=$ac_ltlibobjs
18436
18437
18438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18439$as_echo_n "checking that generated files are newer than configure... " >&6; }
18440   if test -n "$am_sleep_pid"; then
18441     # Hide warnings about reused PIDs.
18442     wait $am_sleep_pid 2>/dev/null
18443   fi
18444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18445$as_echo "done" >&6; }
18446 if test -n "$EXEEXT"; then
18447  am__EXEEXT_TRUE=
18448  am__EXEEXT_FALSE='#'
18449else
18450  am__EXEEXT_TRUE='#'
18451  am__EXEEXT_FALSE=
18452fi
18453
18454if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18455  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18456Usually this means the macro was only invoked conditionally." "$LINENO" 5
18457fi
18458if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18459  as_fn_error $? "conditional \"AMDEP\" was never defined.
18460Usually this means the macro was only invoked conditionally." "$LINENO" 5
18461fi
18462if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18463  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18464Usually this means the macro was only invoked conditionally." "$LINENO" 5
18465fi
18466if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
18467  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
18468Usually this means the macro was only invoked conditionally." "$LINENO" 5
18469fi
18470if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
18471  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
18472Usually this means the macro was only invoked conditionally." "$LINENO" 5
18473fi
18474if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
18475  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
18476Usually this means the macro was only invoked conditionally." "$LINENO" 5
18477fi
18478
18479: "${CONFIG_STATUS=./config.status}"
18480ac_write_fail=0
18481ac_clean_files_save=$ac_clean_files
18482ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18483{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18484$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18485as_write_fail=0
18486cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18487#! $SHELL
18488# Generated by $as_me.
18489# Run this file to recreate the current configuration.
18490# Compiler output produced by configure, useful for debugging
18491# configure, is in config.log if it exists.
18492
18493debug=false
18494ac_cs_recheck=false
18495ac_cs_silent=false
18496
18497SHELL=\${CONFIG_SHELL-$SHELL}
18498export SHELL
18499_ASEOF
18500cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18501## -------------------- ##
18502## M4sh Initialization. ##
18503## -------------------- ##
18504
18505# Be more Bourne compatible
18506DUALCASE=1; export DUALCASE # for MKS sh
18507if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18508  emulate sh
18509  NULLCMD=:
18510  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18511  # is contrary to our usage.  Disable this feature.
18512  alias -g '${1+"$@"}'='"$@"'
18513  setopt NO_GLOB_SUBST
18514else
18515  case `(set -o) 2>/dev/null` in #(
18516  *posix*) :
18517    set -o posix ;; #(
18518  *) :
18519     ;;
18520esac
18521fi
18522
18523
18524as_nl='
18525'
18526export as_nl
18527# Printing a long string crashes Solaris 7 /usr/bin/printf.
18528as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18529as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18530as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18531# Prefer a ksh shell builtin over an external printf program on Solaris,
18532# but without wasting forks for bash or zsh.
18533if test -z "$BASH_VERSION$ZSH_VERSION" \
18534    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18535  as_echo='print -r --'
18536  as_echo_n='print -rn --'
18537elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18538  as_echo='printf %s\n'
18539  as_echo_n='printf %s'
18540else
18541  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18542    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18543    as_echo_n='/usr/ucb/echo -n'
18544  else
18545    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18546    as_echo_n_body='eval
18547      arg=$1;
18548      case $arg in #(
18549      *"$as_nl"*)
18550	expr "X$arg" : "X\\(.*\\)$as_nl";
18551	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18552      esac;
18553      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18554    '
18555    export as_echo_n_body
18556    as_echo_n='sh -c $as_echo_n_body as_echo'
18557  fi
18558  export as_echo_body
18559  as_echo='sh -c $as_echo_body as_echo'
18560fi
18561
18562# The user is always right.
18563if test "${PATH_SEPARATOR+set}" != set; then
18564  PATH_SEPARATOR=:
18565  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18566    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18567      PATH_SEPARATOR=';'
18568  }
18569fi
18570
18571
18572# IFS
18573# We need space, tab and new line, in precisely that order.  Quoting is
18574# there to prevent editors from complaining about space-tab.
18575# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18576# splitting by setting IFS to empty value.)
18577IFS=" ""	$as_nl"
18578
18579# Find who we are.  Look in the path if we contain no directory separator.
18580as_myself=
18581case $0 in #((
18582  *[\\/]* ) as_myself=$0 ;;
18583  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584for as_dir in $PATH
18585do
18586  IFS=$as_save_IFS
18587  test -z "$as_dir" && as_dir=.
18588    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18589  done
18590IFS=$as_save_IFS
18591
18592     ;;
18593esac
18594# We did not find ourselves, most probably we were run as `sh COMMAND'
18595# in which case we are not to be found in the path.
18596if test "x$as_myself" = x; then
18597  as_myself=$0
18598fi
18599if test ! -f "$as_myself"; then
18600  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18601  exit 1
18602fi
18603
18604# Unset variables that we do not need and which cause bugs (e.g. in
18605# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18606# suppresses any "Segmentation fault" message there.  '((' could
18607# trigger a bug in pdksh 5.2.14.
18608for as_var in BASH_ENV ENV MAIL MAILPATH
18609do eval test x\${$as_var+set} = xset \
18610  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18611done
18612PS1='$ '
18613PS2='> '
18614PS4='+ '
18615
18616# NLS nuisances.
18617LC_ALL=C
18618export LC_ALL
18619LANGUAGE=C
18620export LANGUAGE
18621
18622# CDPATH.
18623(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18624
18625
18626# as_fn_error STATUS ERROR [LINENO LOG_FD]
18627# ----------------------------------------
18628# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18629# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18630# script with STATUS, using 1 if that was 0.
18631as_fn_error ()
18632{
18633  as_status=$1; test $as_status -eq 0 && as_status=1
18634  if test "$4"; then
18635    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18636    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18637  fi
18638  $as_echo "$as_me: error: $2" >&2
18639  as_fn_exit $as_status
18640} # as_fn_error
18641
18642
18643# as_fn_set_status STATUS
18644# -----------------------
18645# Set $? to STATUS, without forking.
18646as_fn_set_status ()
18647{
18648  return $1
18649} # as_fn_set_status
18650
18651# as_fn_exit STATUS
18652# -----------------
18653# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18654as_fn_exit ()
18655{
18656  set +e
18657  as_fn_set_status $1
18658  exit $1
18659} # as_fn_exit
18660
18661# as_fn_unset VAR
18662# ---------------
18663# Portably unset VAR.
18664as_fn_unset ()
18665{
18666  { eval $1=; unset $1;}
18667}
18668as_unset=as_fn_unset
18669# as_fn_append VAR VALUE
18670# ----------------------
18671# Append the text in VALUE to the end of the definition contained in VAR. Take
18672# advantage of any shell optimizations that allow amortized linear growth over
18673# repeated appends, instead of the typical quadratic growth present in naive
18674# implementations.
18675if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18676  eval 'as_fn_append ()
18677  {
18678    eval $1+=\$2
18679  }'
18680else
18681  as_fn_append ()
18682  {
18683    eval $1=\$$1\$2
18684  }
18685fi # as_fn_append
18686
18687# as_fn_arith ARG...
18688# ------------------
18689# Perform arithmetic evaluation on the ARGs, and store the result in the
18690# global $as_val. Take advantage of shells that can avoid forks. The arguments
18691# must be portable across $(()) and expr.
18692if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18693  eval 'as_fn_arith ()
18694  {
18695    as_val=$(( $* ))
18696  }'
18697else
18698  as_fn_arith ()
18699  {
18700    as_val=`expr "$@" || test $? -eq 1`
18701  }
18702fi # as_fn_arith
18703
18704
18705if expr a : '\(a\)' >/dev/null 2>&1 &&
18706   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18707  as_expr=expr
18708else
18709  as_expr=false
18710fi
18711
18712if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18713  as_basename=basename
18714else
18715  as_basename=false
18716fi
18717
18718if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18719  as_dirname=dirname
18720else
18721  as_dirname=false
18722fi
18723
18724as_me=`$as_basename -- "$0" ||
18725$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18726	 X"$0" : 'X\(//\)$' \| \
18727	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18728$as_echo X/"$0" |
18729    sed '/^.*\/\([^/][^/]*\)\/*$/{
18730	    s//\1/
18731	    q
18732	  }
18733	  /^X\/\(\/\/\)$/{
18734	    s//\1/
18735	    q
18736	  }
18737	  /^X\/\(\/\).*/{
18738	    s//\1/
18739	    q
18740	  }
18741	  s/.*/./; q'`
18742
18743# Avoid depending upon Character Ranges.
18744as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18745as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18746as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18747as_cr_digits='0123456789'
18748as_cr_alnum=$as_cr_Letters$as_cr_digits
18749
18750ECHO_C= ECHO_N= ECHO_T=
18751case `echo -n x` in #(((((
18752-n*)
18753  case `echo 'xy\c'` in
18754  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18755  xy)  ECHO_C='\c';;
18756  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18757       ECHO_T='	';;
18758  esac;;
18759*)
18760  ECHO_N='-n';;
18761esac
18762
18763rm -f conf$$ conf$$.exe conf$$.file
18764if test -d conf$$.dir; then
18765  rm -f conf$$.dir/conf$$.file
18766else
18767  rm -f conf$$.dir
18768  mkdir conf$$.dir 2>/dev/null
18769fi
18770if (echo >conf$$.file) 2>/dev/null; then
18771  if ln -s conf$$.file conf$$ 2>/dev/null; then
18772    as_ln_s='ln -s'
18773    # ... but there are two gotchas:
18774    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18775    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18776    # In both cases, we have to default to `cp -pR'.
18777    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18778      as_ln_s='cp -pR'
18779  elif ln conf$$.file conf$$ 2>/dev/null; then
18780    as_ln_s=ln
18781  else
18782    as_ln_s='cp -pR'
18783  fi
18784else
18785  as_ln_s='cp -pR'
18786fi
18787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18788rmdir conf$$.dir 2>/dev/null
18789
18790
18791# as_fn_mkdir_p
18792# -------------
18793# Create "$as_dir" as a directory, including parents if necessary.
18794as_fn_mkdir_p ()
18795{
18796
18797  case $as_dir in #(
18798  -*) as_dir=./$as_dir;;
18799  esac
18800  test -d "$as_dir" || eval $as_mkdir_p || {
18801    as_dirs=
18802    while :; do
18803      case $as_dir in #(
18804      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18805      *) as_qdir=$as_dir;;
18806      esac
18807      as_dirs="'$as_qdir' $as_dirs"
18808      as_dir=`$as_dirname -- "$as_dir" ||
18809$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18810	 X"$as_dir" : 'X\(//\)[^/]' \| \
18811	 X"$as_dir" : 'X\(//\)$' \| \
18812	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18813$as_echo X"$as_dir" |
18814    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18815	    s//\1/
18816	    q
18817	  }
18818	  /^X\(\/\/\)[^/].*/{
18819	    s//\1/
18820	    q
18821	  }
18822	  /^X\(\/\/\)$/{
18823	    s//\1/
18824	    q
18825	  }
18826	  /^X\(\/\).*/{
18827	    s//\1/
18828	    q
18829	  }
18830	  s/.*/./; q'`
18831      test -d "$as_dir" && break
18832    done
18833    test -z "$as_dirs" || eval "mkdir $as_dirs"
18834  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18835
18836
18837} # as_fn_mkdir_p
18838if mkdir -p . 2>/dev/null; then
18839  as_mkdir_p='mkdir -p "$as_dir"'
18840else
18841  test -d ./-p && rmdir ./-p
18842  as_mkdir_p=false
18843fi
18844
18845
18846# as_fn_executable_p FILE
18847# -----------------------
18848# Test if FILE is an executable regular file.
18849as_fn_executable_p ()
18850{
18851  test -f "$1" && test -x "$1"
18852} # as_fn_executable_p
18853as_test_x='test -x'
18854as_executable_p=as_fn_executable_p
18855
18856# Sed expression to map a string onto a valid CPP name.
18857as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18858
18859# Sed expression to map a string onto a valid variable name.
18860as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18861
18862
18863exec 6>&1
18864## ----------------------------------- ##
18865## Main body of $CONFIG_STATUS script. ##
18866## ----------------------------------- ##
18867_ASEOF
18868test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18869
18870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18871# Save the log message, to keep $0 and so on meaningful, and to
18872# report actual input values of CONFIG_FILES etc. instead of their
18873# values after options handling.
18874ac_log="
18875This file was extended by xcb-util-renderutil $as_me 0.3.9, which was
18876generated by GNU Autoconf 2.69.  Invocation command line was
18877
18878  CONFIG_FILES    = $CONFIG_FILES
18879  CONFIG_HEADERS  = $CONFIG_HEADERS
18880  CONFIG_LINKS    = $CONFIG_LINKS
18881  CONFIG_COMMANDS = $CONFIG_COMMANDS
18882  $ $0 $@
18883
18884on `(hostname || uname -n) 2>/dev/null | sed 1q`
18885"
18886
18887_ACEOF
18888
18889case $ac_config_files in *"
18890"*) set x $ac_config_files; shift; ac_config_files=$*;;
18891esac
18892
18893case $ac_config_headers in *"
18894"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18895esac
18896
18897
18898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18899# Files that config.status was made for.
18900config_files="$ac_config_files"
18901config_headers="$ac_config_headers"
18902config_commands="$ac_config_commands"
18903
18904_ACEOF
18905
18906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18907ac_cs_usage="\
18908\`$as_me' instantiates files and other configuration actions
18909from templates according to the current configuration.  Unless the files
18910and actions are specified as TAGs, all are instantiated by default.
18911
18912Usage: $0 [OPTION]... [TAG]...
18913
18914  -h, --help       print this help, then exit
18915  -V, --version    print version number and configuration settings, then exit
18916      --config     print configuration, then exit
18917  -q, --quiet, --silent
18918                   do not print progress messages
18919  -d, --debug      don't remove temporary files
18920      --recheck    update $as_me by reconfiguring in the same conditions
18921      --file=FILE[:TEMPLATE]
18922                   instantiate the configuration file FILE
18923      --header=FILE[:TEMPLATE]
18924                   instantiate the configuration header FILE
18925
18926Configuration files:
18927$config_files
18928
18929Configuration headers:
18930$config_headers
18931
18932Configuration commands:
18933$config_commands
18934
18935Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb&component=Utils>."
18936
18937_ACEOF
18938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18939ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18940ac_cs_version="\\
18941xcb-util-renderutil config.status 0.3.9
18942configured by $0, generated by GNU Autoconf 2.69,
18943  with options \\"\$ac_cs_config\\"
18944
18945Copyright (C) 2012 Free Software Foundation, Inc.
18946This config.status script is free software; the Free Software Foundation
18947gives unlimited permission to copy, distribute and modify it."
18948
18949ac_pwd='$ac_pwd'
18950srcdir='$srcdir'
18951INSTALL='$INSTALL'
18952MKDIR_P='$MKDIR_P'
18953AWK='$AWK'
18954test -n "\$AWK" || AWK=awk
18955_ACEOF
18956
18957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18958# The default lists apply if the user does not specify any file.
18959ac_need_defaults=:
18960while test $# != 0
18961do
18962  case $1 in
18963  --*=?*)
18964    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18965    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18966    ac_shift=:
18967    ;;
18968  --*=)
18969    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18970    ac_optarg=
18971    ac_shift=:
18972    ;;
18973  *)
18974    ac_option=$1
18975    ac_optarg=$2
18976    ac_shift=shift
18977    ;;
18978  esac
18979
18980  case $ac_option in
18981  # Handling of the options.
18982  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18983    ac_cs_recheck=: ;;
18984  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18985    $as_echo "$ac_cs_version"; exit ;;
18986  --config | --confi | --conf | --con | --co | --c )
18987    $as_echo "$ac_cs_config"; exit ;;
18988  --debug | --debu | --deb | --de | --d | -d )
18989    debug=: ;;
18990  --file | --fil | --fi | --f )
18991    $ac_shift
18992    case $ac_optarg in
18993    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18994    '') as_fn_error $? "missing file argument" ;;
18995    esac
18996    as_fn_append CONFIG_FILES " '$ac_optarg'"
18997    ac_need_defaults=false;;
18998  --header | --heade | --head | --hea )
18999    $ac_shift
19000    case $ac_optarg in
19001    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19002    esac
19003    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19004    ac_need_defaults=false;;
19005  --he | --h)
19006    # Conflict between --help and --header
19007    as_fn_error $? "ambiguous option: \`$1'
19008Try \`$0 --help' for more information.";;
19009  --help | --hel | -h )
19010    $as_echo "$ac_cs_usage"; exit ;;
19011  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19012  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19013    ac_cs_silent=: ;;
19014
19015  # This is an error.
19016  -*) as_fn_error $? "unrecognized option: \`$1'
19017Try \`$0 --help' for more information." ;;
19018
19019  *) as_fn_append ac_config_targets " $1"
19020     ac_need_defaults=false ;;
19021
19022  esac
19023  shift
19024done
19025
19026ac_configure_extra_args=
19027
19028if $ac_cs_silent; then
19029  exec 6>/dev/null
19030  ac_configure_extra_args="$ac_configure_extra_args --silent"
19031fi
19032
19033_ACEOF
19034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19035if \$ac_cs_recheck; then
19036  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19037  shift
19038  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19039  CONFIG_SHELL='$SHELL'
19040  export CONFIG_SHELL
19041  exec "\$@"
19042fi
19043
19044_ACEOF
19045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046exec 5>>config.log
19047{
19048  echo
19049  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19050## Running $as_me. ##
19051_ASBOX
19052  $as_echo "$ac_log"
19053} >&5
19054
19055_ACEOF
19056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19057#
19058# INIT-COMMANDS
19059#
19060AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19061
19062
19063# The HP-UX ksh and POSIX shell print the target directory to stdout
19064# if CDPATH is set.
19065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19066
19067sed_quote_subst='$sed_quote_subst'
19068double_quote_subst='$double_quote_subst'
19069delay_variable_subst='$delay_variable_subst'
19070macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19071macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19072enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19073enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19074pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19075enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19076SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19077ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19078PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19079host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19080host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19081host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19082build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19083build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19084build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19085SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19086Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19087GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19088EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19089FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19090LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19091NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19092LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19093max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19094ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19095exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19096lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19097lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19098lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19099lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19100lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19101reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19102reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19103OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19104deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19105file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19106file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19107want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19108DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19109sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19110AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19111AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19112archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19113STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19114RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19115old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19116old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19117old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19118lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19119CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19120CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19121compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19122GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19123lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19124lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19125lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19126lt_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"`'
19127nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19128lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19129objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19130MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19131lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19132lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19133lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19134lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19135lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19136need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19137MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19138DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19139NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19140LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19141OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19142OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19143libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19144shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19145extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19146archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19147enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19148export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19149whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19150compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19151old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19152old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19153archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19154archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19155module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19156module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19157with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19158allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19159no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19160hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19161hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19162hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19163hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19164hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19165hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19166hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19167inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19168link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19169always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19170export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19171exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19172include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19173prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19174postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19175file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19176variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19177need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19178need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19179version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19180runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19181shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19182shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19183libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19184library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19185soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19186install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19187postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19188postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19189finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19190finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19191hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19192sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19193sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19194hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19195enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19196enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19197enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19198old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19199striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19200
19201LTCC='$LTCC'
19202LTCFLAGS='$LTCFLAGS'
19203compiler='$compiler_DEFAULT'
19204
19205# A function that is used when there is no print builtin or printf.
19206func_fallback_echo ()
19207{
19208  eval 'cat <<_LTECHO_EOF
19209\$1
19210_LTECHO_EOF'
19211}
19212
19213# Quote evaled strings.
19214for var in SHELL \
19215ECHO \
19216PATH_SEPARATOR \
19217SED \
19218GREP \
19219EGREP \
19220FGREP \
19221LD \
19222NM \
19223LN_S \
19224lt_SP2NL \
19225lt_NL2SP \
19226reload_flag \
19227OBJDUMP \
19228deplibs_check_method \
19229file_magic_cmd \
19230file_magic_glob \
19231want_nocaseglob \
19232DLLTOOL \
19233sharedlib_from_linklib_cmd \
19234AR \
19235AR_FLAGS \
19236archiver_list_spec \
19237STRIP \
19238RANLIB \
19239CC \
19240CFLAGS \
19241compiler \
19242lt_cv_sys_global_symbol_pipe \
19243lt_cv_sys_global_symbol_to_cdecl \
19244lt_cv_sys_global_symbol_to_c_name_address \
19245lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19246nm_file_list_spec \
19247lt_prog_compiler_no_builtin_flag \
19248lt_prog_compiler_pic \
19249lt_prog_compiler_wl \
19250lt_prog_compiler_static \
19251lt_cv_prog_compiler_c_o \
19252need_locks \
19253MANIFEST_TOOL \
19254DSYMUTIL \
19255NMEDIT \
19256LIPO \
19257OTOOL \
19258OTOOL64 \
19259shrext_cmds \
19260export_dynamic_flag_spec \
19261whole_archive_flag_spec \
19262compiler_needs_object \
19263with_gnu_ld \
19264allow_undefined_flag \
19265no_undefined_flag \
19266hardcode_libdir_flag_spec \
19267hardcode_libdir_separator \
19268exclude_expsyms \
19269include_expsyms \
19270file_list_spec \
19271variables_saved_for_relink \
19272libname_spec \
19273library_names_spec \
19274soname_spec \
19275install_override_mode \
19276finish_eval \
19277old_striplib \
19278striplib; do
19279    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19280    *[\\\\\\\`\\"\\\$]*)
19281      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19282      ;;
19283    *)
19284      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19285      ;;
19286    esac
19287done
19288
19289# Double-quote double-evaled strings.
19290for var in reload_cmds \
19291old_postinstall_cmds \
19292old_postuninstall_cmds \
19293old_archive_cmds \
19294extract_expsyms_cmds \
19295old_archive_from_new_cmds \
19296old_archive_from_expsyms_cmds \
19297archive_cmds \
19298archive_expsym_cmds \
19299module_cmds \
19300module_expsym_cmds \
19301export_symbols_cmds \
19302prelink_cmds \
19303postlink_cmds \
19304postinstall_cmds \
19305postuninstall_cmds \
19306finish_cmds \
19307sys_lib_search_path_spec \
19308sys_lib_dlsearch_path_spec; do
19309    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19310    *[\\\\\\\`\\"\\\$]*)
19311      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19312      ;;
19313    *)
19314      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19315      ;;
19316    esac
19317done
19318
19319ac_aux_dir='$ac_aux_dir'
19320xsi_shell='$xsi_shell'
19321lt_shell_append='$lt_shell_append'
19322
19323# See if we are running on zsh, and set the options which allow our
19324# commands through without removal of \ escapes INIT.
19325if test -n "\${ZSH_VERSION+set}" ; then
19326   setopt NO_GLOB_SUBST
19327fi
19328
19329
19330    PACKAGE='$PACKAGE'
19331    VERSION='$VERSION'
19332    TIMESTAMP='$TIMESTAMP'
19333    RM='$RM'
19334    ofile='$ofile'
19335
19336
19337
19338
19339_ACEOF
19340
19341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19342
19343# Handling of arguments.
19344for ac_config_target in $ac_config_targets
19345do
19346  case $ac_config_target in
19347    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19348    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19349    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19350    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19351    "renderutil/Makefile") CONFIG_FILES="$CONFIG_FILES renderutil/Makefile" ;;
19352    "renderutil/xcb-renderutil.pc") CONFIG_FILES="$CONFIG_FILES renderutil/xcb-renderutil.pc" ;;
19353
19354  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19355  esac
19356done
19357
19358
19359# If the user did not use the arguments to specify the items to instantiate,
19360# then the envvar interface is used.  Set only those that are not.
19361# We use the long form for the default assignment because of an extremely
19362# bizarre bug on SunOS 4.1.3.
19363if $ac_need_defaults; then
19364  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19365  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19366  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19367fi
19368
19369# Have a temporary directory for convenience.  Make it in the build tree
19370# simply because there is no reason against having it here, and in addition,
19371# creating and moving files from /tmp can sometimes cause problems.
19372# Hook for its removal unless debugging.
19373# Note that there is a small window in which the directory will not be cleaned:
19374# after its creation but before its name has been assigned to `$tmp'.
19375$debug ||
19376{
19377  tmp= ac_tmp=
19378  trap 'exit_status=$?
19379  : "${ac_tmp:=$tmp}"
19380  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19381' 0
19382  trap 'as_fn_exit 1' 1 2 13 15
19383}
19384# Create a (secure) tmp directory for tmp files.
19385
19386{
19387  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19388  test -d "$tmp"
19389}  ||
19390{
19391  tmp=./conf$$-$RANDOM
19392  (umask 077 && mkdir "$tmp")
19393} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19394ac_tmp=$tmp
19395
19396# Set up the scripts for CONFIG_FILES section.
19397# No need to generate them if there are no CONFIG_FILES.
19398# This happens for instance with `./config.status config.h'.
19399if test -n "$CONFIG_FILES"; then
19400
19401
19402ac_cr=`echo X | tr X '\015'`
19403# On cygwin, bash can eat \r inside `` if the user requested igncr.
19404# But we know of no other shell where ac_cr would be empty at this
19405# point, so we can use a bashism as a fallback.
19406if test "x$ac_cr" = x; then
19407  eval ac_cr=\$\'\\r\'
19408fi
19409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19411  ac_cs_awk_cr='\\r'
19412else
19413  ac_cs_awk_cr=$ac_cr
19414fi
19415
19416echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19417_ACEOF
19418
19419
19420{
19421  echo "cat >conf$$subs.awk <<_ACEOF" &&
19422  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19423  echo "_ACEOF"
19424} >conf$$subs.sh ||
19425  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19426ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19427ac_delim='%!_!# '
19428for ac_last_try in false false false false false :; do
19429  . ./conf$$subs.sh ||
19430    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19431
19432  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19433  if test $ac_delim_n = $ac_delim_num; then
19434    break
19435  elif $ac_last_try; then
19436    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19437  else
19438    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19439  fi
19440done
19441rm -f conf$$subs.sh
19442
19443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19444cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19445_ACEOF
19446sed -n '
19447h
19448s/^/S["/; s/!.*/"]=/
19449p
19450g
19451s/^[^!]*!//
19452:repl
19453t repl
19454s/'"$ac_delim"'$//
19455t delim
19456:nl
19457h
19458s/\(.\{148\}\)..*/\1/
19459t more1
19460s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19461p
19462n
19463b repl
19464:more1
19465s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19466p
19467g
19468s/.\{148\}//
19469t nl
19470:delim
19471h
19472s/\(.\{148\}\)..*/\1/
19473t more2
19474s/["\\]/\\&/g; s/^/"/; s/$/"/
19475p
19476b
19477:more2
19478s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19479p
19480g
19481s/.\{148\}//
19482t delim
19483' <conf$$subs.awk | sed '
19484/^[^""]/{
19485  N
19486  s/\n//
19487}
19488' >>$CONFIG_STATUS || ac_write_fail=1
19489rm -f conf$$subs.awk
19490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19491_ACAWK
19492cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19493  for (key in S) S_is_set[key] = 1
19494  FS = ""
19495
19496}
19497{
19498  line = $ 0
19499  nfields = split(line, field, "@")
19500  substed = 0
19501  len = length(field[1])
19502  for (i = 2; i < nfields; i++) {
19503    key = field[i]
19504    keylen = length(key)
19505    if (S_is_set[key]) {
19506      value = S[key]
19507      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19508      len += length(value) + length(field[++i])
19509      substed = 1
19510    } else
19511      len += 1 + keylen
19512  }
19513
19514  print line
19515}
19516
19517_ACAWK
19518_ACEOF
19519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19520if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19521  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19522else
19523  cat
19524fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19525  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19526_ACEOF
19527
19528# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19529# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19530# trailing colons and then remove the whole line if VPATH becomes empty
19531# (actually we leave an empty line to preserve line numbers).
19532if test "x$srcdir" = x.; then
19533  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19534h
19535s///
19536s/^/:/
19537s/[	 ]*$/:/
19538s/:\$(srcdir):/:/g
19539s/:\${srcdir}:/:/g
19540s/:@srcdir@:/:/g
19541s/^:*//
19542s/:*$//
19543x
19544s/\(=[	 ]*\).*/\1/
19545G
19546s/\n//
19547s/^[^=]*=[	 ]*$//
19548}'
19549fi
19550
19551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19552fi # test -n "$CONFIG_FILES"
19553
19554# Set up the scripts for CONFIG_HEADERS section.
19555# No need to generate them if there are no CONFIG_HEADERS.
19556# This happens for instance with `./config.status Makefile'.
19557if test -n "$CONFIG_HEADERS"; then
19558cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19559BEGIN {
19560_ACEOF
19561
19562# Transform confdefs.h into an awk script `defines.awk', embedded as
19563# here-document in config.status, that substitutes the proper values into
19564# config.h.in to produce config.h.
19565
19566# Create a delimiter string that does not exist in confdefs.h, to ease
19567# handling of long lines.
19568ac_delim='%!_!# '
19569for ac_last_try in false false :; do
19570  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19571  if test -z "$ac_tt"; then
19572    break
19573  elif $ac_last_try; then
19574    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19575  else
19576    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19577  fi
19578done
19579
19580# For the awk script, D is an array of macro values keyed by name,
19581# likewise P contains macro parameters if any.  Preserve backslash
19582# newline sequences.
19583
19584ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19585sed -n '
19586s/.\{148\}/&'"$ac_delim"'/g
19587t rset
19588:rset
19589s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19590t def
19591d
19592:def
19593s/\\$//
19594t bsnl
19595s/["\\]/\\&/g
19596s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19597D["\1"]=" \3"/p
19598s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19599d
19600:bsnl
19601s/["\\]/\\&/g
19602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19603D["\1"]=" \3\\\\\\n"\\/p
19604t cont
19605s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19606t cont
19607d
19608:cont
19609n
19610s/.\{148\}/&'"$ac_delim"'/g
19611t clear
19612:clear
19613s/\\$//
19614t bsnlc
19615s/["\\]/\\&/g; s/^/"/; s/$/"/p
19616d
19617:bsnlc
19618s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19619b cont
19620' <confdefs.h | sed '
19621s/'"$ac_delim"'/"\\\
19622"/g' >>$CONFIG_STATUS || ac_write_fail=1
19623
19624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19625  for (key in D) D_is_set[key] = 1
19626  FS = ""
19627}
19628/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19629  line = \$ 0
19630  split(line, arg, " ")
19631  if (arg[1] == "#") {
19632    defundef = arg[2]
19633    mac1 = arg[3]
19634  } else {
19635    defundef = substr(arg[1], 2)
19636    mac1 = arg[2]
19637  }
19638  split(mac1, mac2, "(") #)
19639  macro = mac2[1]
19640  prefix = substr(line, 1, index(line, defundef) - 1)
19641  if (D_is_set[macro]) {
19642    # Preserve the white space surrounding the "#".
19643    print prefix "define", macro P[macro] D[macro]
19644    next
19645  } else {
19646    # Replace #undef with comments.  This is necessary, for example,
19647    # in the case of _POSIX_SOURCE, which is predefined and required
19648    # on some systems where configure will not decide to define it.
19649    if (defundef == "undef") {
19650      print "/*", prefix defundef, macro, "*/"
19651      next
19652    }
19653  }
19654}
19655{ print }
19656_ACAWK
19657_ACEOF
19658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19659  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19660fi # test -n "$CONFIG_HEADERS"
19661
19662
19663eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19664shift
19665for ac_tag
19666do
19667  case $ac_tag in
19668  :[FHLC]) ac_mode=$ac_tag; continue;;
19669  esac
19670  case $ac_mode$ac_tag in
19671  :[FHL]*:*);;
19672  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19673  :[FH]-) ac_tag=-:-;;
19674  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19675  esac
19676  ac_save_IFS=$IFS
19677  IFS=:
19678  set x $ac_tag
19679  IFS=$ac_save_IFS
19680  shift
19681  ac_file=$1
19682  shift
19683
19684  case $ac_mode in
19685  :L) ac_source=$1;;
19686  :[FH])
19687    ac_file_inputs=
19688    for ac_f
19689    do
19690      case $ac_f in
19691      -) ac_f="$ac_tmp/stdin";;
19692      *) # Look for the file first in the build tree, then in the source tree
19693	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19694	 # because $ac_f cannot contain `:'.
19695	 test -f "$ac_f" ||
19696	   case $ac_f in
19697	   [\\/$]*) false;;
19698	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19699	   esac ||
19700	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19701      esac
19702      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19703      as_fn_append ac_file_inputs " '$ac_f'"
19704    done
19705
19706    # Let's still pretend it is `configure' which instantiates (i.e., don't
19707    # use $as_me), people would be surprised to read:
19708    #    /* config.h.  Generated by config.status.  */
19709    configure_input='Generated from '`
19710	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19711	`' by configure.'
19712    if test x"$ac_file" != x-; then
19713      configure_input="$ac_file.  $configure_input"
19714      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19715$as_echo "$as_me: creating $ac_file" >&6;}
19716    fi
19717    # Neutralize special characters interpreted by sed in replacement strings.
19718    case $configure_input in #(
19719    *\&* | *\|* | *\\* )
19720       ac_sed_conf_input=`$as_echo "$configure_input" |
19721       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19722    *) ac_sed_conf_input=$configure_input;;
19723    esac
19724
19725    case $ac_tag in
19726    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19727      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19728    esac
19729    ;;
19730  esac
19731
19732  ac_dir=`$as_dirname -- "$ac_file" ||
19733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19734	 X"$ac_file" : 'X\(//\)[^/]' \| \
19735	 X"$ac_file" : 'X\(//\)$' \| \
19736	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19737$as_echo X"$ac_file" |
19738    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19739	    s//\1/
19740	    q
19741	  }
19742	  /^X\(\/\/\)[^/].*/{
19743	    s//\1/
19744	    q
19745	  }
19746	  /^X\(\/\/\)$/{
19747	    s//\1/
19748	    q
19749	  }
19750	  /^X\(\/\).*/{
19751	    s//\1/
19752	    q
19753	  }
19754	  s/.*/./; q'`
19755  as_dir="$ac_dir"; as_fn_mkdir_p
19756  ac_builddir=.
19757
19758case "$ac_dir" in
19759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19760*)
19761  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19762  # A ".." for each directory in $ac_dir_suffix.
19763  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19764  case $ac_top_builddir_sub in
19765  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19766  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19767  esac ;;
19768esac
19769ac_abs_top_builddir=$ac_pwd
19770ac_abs_builddir=$ac_pwd$ac_dir_suffix
19771# for backward compatibility:
19772ac_top_builddir=$ac_top_build_prefix
19773
19774case $srcdir in
19775  .)  # We are building in place.
19776    ac_srcdir=.
19777    ac_top_srcdir=$ac_top_builddir_sub
19778    ac_abs_top_srcdir=$ac_pwd ;;
19779  [\\/]* | ?:[\\/]* )  # Absolute name.
19780    ac_srcdir=$srcdir$ac_dir_suffix;
19781    ac_top_srcdir=$srcdir
19782    ac_abs_top_srcdir=$srcdir ;;
19783  *) # Relative name.
19784    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19785    ac_top_srcdir=$ac_top_build_prefix$srcdir
19786    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19787esac
19788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19789
19790
19791  case $ac_mode in
19792  :F)
19793  #
19794  # CONFIG_FILE
19795  #
19796
19797  case $INSTALL in
19798  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19799  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19800  esac
19801  ac_MKDIR_P=$MKDIR_P
19802  case $MKDIR_P in
19803  [\\/$]* | ?:[\\/]* ) ;;
19804  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19805  esac
19806_ACEOF
19807
19808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19809# If the template does not know about datarootdir, expand it.
19810# FIXME: This hack should be removed a few years after 2.60.
19811ac_datarootdir_hack=; ac_datarootdir_seen=
19812ac_sed_dataroot='
19813/datarootdir/ {
19814  p
19815  q
19816}
19817/@datadir@/p
19818/@docdir@/p
19819/@infodir@/p
19820/@localedir@/p
19821/@mandir@/p'
19822case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19823*datarootdir*) ac_datarootdir_seen=yes;;
19824*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19825  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19826$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19827_ACEOF
19828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19829  ac_datarootdir_hack='
19830  s&@datadir@&$datadir&g
19831  s&@docdir@&$docdir&g
19832  s&@infodir@&$infodir&g
19833  s&@localedir@&$localedir&g
19834  s&@mandir@&$mandir&g
19835  s&\\\${datarootdir}&$datarootdir&g' ;;
19836esac
19837_ACEOF
19838
19839# Neutralize VPATH when `$srcdir' = `.'.
19840# Shell code in configure.ac might set extrasub.
19841# FIXME: do we really want to maintain this feature?
19842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19843ac_sed_extra="$ac_vpsub
19844$extrasub
19845_ACEOF
19846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19847:t
19848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19849s|@configure_input@|$ac_sed_conf_input|;t t
19850s&@top_builddir@&$ac_top_builddir_sub&;t t
19851s&@top_build_prefix@&$ac_top_build_prefix&;t t
19852s&@srcdir@&$ac_srcdir&;t t
19853s&@abs_srcdir@&$ac_abs_srcdir&;t t
19854s&@top_srcdir@&$ac_top_srcdir&;t t
19855s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19856s&@builddir@&$ac_builddir&;t t
19857s&@abs_builddir@&$ac_abs_builddir&;t t
19858s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19859s&@INSTALL@&$ac_INSTALL&;t t
19860s&@MKDIR_P@&$ac_MKDIR_P&;t t
19861$ac_datarootdir_hack
19862"
19863eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19864  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19865
19866test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19867  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19868  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19869      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19870  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19871which seems to be undefined.  Please make sure it is defined" >&5
19872$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19873which seems to be undefined.  Please make sure it is defined" >&2;}
19874
19875  rm -f "$ac_tmp/stdin"
19876  case $ac_file in
19877  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19878  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19879  esac \
19880  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19881 ;;
19882  :H)
19883  #
19884  # CONFIG_HEADER
19885  #
19886  if test x"$ac_file" != x-; then
19887    {
19888      $as_echo "/* $configure_input  */" \
19889      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19890    } >"$ac_tmp/config.h" \
19891      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19892    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19893      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19894$as_echo "$as_me: $ac_file is unchanged" >&6;}
19895    else
19896      rm -f "$ac_file"
19897      mv "$ac_tmp/config.h" "$ac_file" \
19898	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19899    fi
19900  else
19901    $as_echo "/* $configure_input  */" \
19902      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19903      || as_fn_error $? "could not create -" "$LINENO" 5
19904  fi
19905# Compute "$ac_file"'s index in $config_headers.
19906_am_arg="$ac_file"
19907_am_stamp_count=1
19908for _am_header in $config_headers :; do
19909  case $_am_header in
19910    $_am_arg | $_am_arg:* )
19911      break ;;
19912    * )
19913      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19914  esac
19915done
19916echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19917$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19918	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19919	 X"$_am_arg" : 'X\(//\)$' \| \
19920	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19921$as_echo X"$_am_arg" |
19922    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19923	    s//\1/
19924	    q
19925	  }
19926	  /^X\(\/\/\)[^/].*/{
19927	    s//\1/
19928	    q
19929	  }
19930	  /^X\(\/\/\)$/{
19931	    s//\1/
19932	    q
19933	  }
19934	  /^X\(\/\).*/{
19935	    s//\1/
19936	    q
19937	  }
19938	  s/.*/./; q'`/stamp-h$_am_stamp_count
19939 ;;
19940
19941  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19942$as_echo "$as_me: executing $ac_file commands" >&6;}
19943 ;;
19944  esac
19945
19946
19947  case $ac_file$ac_mode in
19948    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19949  # Older Autoconf quotes --file arguments for eval, but not when files
19950  # are listed without --file.  Let's play safe and only enable the eval
19951  # if we detect the quoting.
19952  case $CONFIG_FILES in
19953  *\'*) eval set x "$CONFIG_FILES" ;;
19954  *)   set x $CONFIG_FILES ;;
19955  esac
19956  shift
19957  for mf
19958  do
19959    # Strip MF so we end up with the name of the file.
19960    mf=`echo "$mf" | sed -e 's/:.*$//'`
19961    # Check whether this is an Automake generated Makefile or not.
19962    # We used to match only the files named 'Makefile.in', but
19963    # some people rename them; so instead we look at the file content.
19964    # Grep'ing the first line is not enough: some people post-process
19965    # each Makefile.in and add a new line on top of each file to say so.
19966    # Grep'ing the whole file is not good either: AIX grep has a line
19967    # limit of 2048, but all sed's we know have understand at least 4000.
19968    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19969      dirpart=`$as_dirname -- "$mf" ||
19970$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19971	 X"$mf" : 'X\(//\)[^/]' \| \
19972	 X"$mf" : 'X\(//\)$' \| \
19973	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19974$as_echo X"$mf" |
19975    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19976	    s//\1/
19977	    q
19978	  }
19979	  /^X\(\/\/\)[^/].*/{
19980	    s//\1/
19981	    q
19982	  }
19983	  /^X\(\/\/\)$/{
19984	    s//\1/
19985	    q
19986	  }
19987	  /^X\(\/\).*/{
19988	    s//\1/
19989	    q
19990	  }
19991	  s/.*/./; q'`
19992    else
19993      continue
19994    fi
19995    # Extract the definition of DEPDIR, am__include, and am__quote
19996    # from the Makefile without running 'make'.
19997    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19998    test -z "$DEPDIR" && continue
19999    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20000    test -z "$am__include" && continue
20001    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20002    # Find all dependency output files, they are included files with
20003    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20004    # simplest approach to changing $(DEPDIR) to its actual value in the
20005    # expansion.
20006    for file in `sed -n "
20007      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20008	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20009      # Make sure the directory exists.
20010      test -f "$dirpart/$file" && continue
20011      fdir=`$as_dirname -- "$file" ||
20012$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20013	 X"$file" : 'X\(//\)[^/]' \| \
20014	 X"$file" : 'X\(//\)$' \| \
20015	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20016$as_echo X"$file" |
20017    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20018	    s//\1/
20019	    q
20020	  }
20021	  /^X\(\/\/\)[^/].*/{
20022	    s//\1/
20023	    q
20024	  }
20025	  /^X\(\/\/\)$/{
20026	    s//\1/
20027	    q
20028	  }
20029	  /^X\(\/\).*/{
20030	    s//\1/
20031	    q
20032	  }
20033	  s/.*/./; q'`
20034      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20035      # echo "creating $dirpart/$file"
20036      echo '# dummy' > "$dirpart/$file"
20037    done
20038  done
20039}
20040 ;;
20041    "libtool":C)
20042
20043    # See if we are running on zsh, and set the options which allow our
20044    # commands through without removal of \ escapes.
20045    if test -n "${ZSH_VERSION+set}" ; then
20046      setopt NO_GLOB_SUBST
20047    fi
20048
20049    cfgfile="${ofile}T"
20050    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20051    $RM "$cfgfile"
20052
20053    cat <<_LT_EOF >> "$cfgfile"
20054#! $SHELL
20055
20056# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20057# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20058# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20059# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20060#
20061#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20062#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20063#                 Foundation, Inc.
20064#   Written by Gordon Matzigkeit, 1996
20065#
20066#   This file is part of GNU Libtool.
20067#
20068# GNU Libtool is free software; you can redistribute it and/or
20069# modify it under the terms of the GNU General Public License as
20070# published by the Free Software Foundation; either version 2 of
20071# the License, or (at your option) any later version.
20072#
20073# As a special exception to the GNU General Public License,
20074# if you distribute this file as part of a program or library that
20075# is built using GNU Libtool, you may include this file under the
20076# same distribution terms that you use for the rest of that program.
20077#
20078# GNU Libtool is distributed in the hope that it will be useful,
20079# but WITHOUT ANY WARRANTY; without even the implied warranty of
20080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20081# GNU General Public License for more details.
20082#
20083# You should have received a copy of the GNU General Public License
20084# along with GNU Libtool; see the file COPYING.  If not, a copy
20085# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20086# obtained by writing to the Free Software Foundation, Inc.,
20087# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20088
20089
20090# The names of the tagged configurations supported by this script.
20091available_tags=""
20092
20093# ### BEGIN LIBTOOL CONFIG
20094
20095# Which release of libtool.m4 was used?
20096macro_version=$macro_version
20097macro_revision=$macro_revision
20098
20099# Whether or not to build shared libraries.
20100build_libtool_libs=$enable_shared
20101
20102# Whether or not to build static libraries.
20103build_old_libs=$enable_static
20104
20105# What type of objects to build.
20106pic_mode=$pic_mode
20107
20108# Whether or not to optimize for fast installation.
20109fast_install=$enable_fast_install
20110
20111# Shell to use when invoking shell scripts.
20112SHELL=$lt_SHELL
20113
20114# An echo program that protects backslashes.
20115ECHO=$lt_ECHO
20116
20117# The PATH separator for the build system.
20118PATH_SEPARATOR=$lt_PATH_SEPARATOR
20119
20120# The host system.
20121host_alias=$host_alias
20122host=$host
20123host_os=$host_os
20124
20125# The build system.
20126build_alias=$build_alias
20127build=$build
20128build_os=$build_os
20129
20130# A sed program that does not truncate output.
20131SED=$lt_SED
20132
20133# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20134Xsed="\$SED -e 1s/^X//"
20135
20136# A grep program that handles long lines.
20137GREP=$lt_GREP
20138
20139# An ERE matcher.
20140EGREP=$lt_EGREP
20141
20142# A literal string matcher.
20143FGREP=$lt_FGREP
20144
20145# A BSD- or MS-compatible name lister.
20146NM=$lt_NM
20147
20148# Whether we need soft or hard links.
20149LN_S=$lt_LN_S
20150
20151# What is the maximum length of a command?
20152max_cmd_len=$max_cmd_len
20153
20154# Object file suffix (normally "o").
20155objext=$ac_objext
20156
20157# Executable file suffix (normally "").
20158exeext=$exeext
20159
20160# whether the shell understands "unset".
20161lt_unset=$lt_unset
20162
20163# turn spaces into newlines.
20164SP2NL=$lt_lt_SP2NL
20165
20166# turn newlines into spaces.
20167NL2SP=$lt_lt_NL2SP
20168
20169# convert \$build file names to \$host format.
20170to_host_file_cmd=$lt_cv_to_host_file_cmd
20171
20172# convert \$build files to toolchain format.
20173to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20174
20175# An object symbol dumper.
20176OBJDUMP=$lt_OBJDUMP
20177
20178# Method to check whether dependent libraries are shared objects.
20179deplibs_check_method=$lt_deplibs_check_method
20180
20181# Command to use when deplibs_check_method = "file_magic".
20182file_magic_cmd=$lt_file_magic_cmd
20183
20184# How to find potential files when deplibs_check_method = "file_magic".
20185file_magic_glob=$lt_file_magic_glob
20186
20187# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20188want_nocaseglob=$lt_want_nocaseglob
20189
20190# DLL creation program.
20191DLLTOOL=$lt_DLLTOOL
20192
20193# Command to associate shared and link libraries.
20194sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20195
20196# The archiver.
20197AR=$lt_AR
20198
20199# Flags to create an archive.
20200AR_FLAGS=$lt_AR_FLAGS
20201
20202# How to feed a file listing to the archiver.
20203archiver_list_spec=$lt_archiver_list_spec
20204
20205# A symbol stripping program.
20206STRIP=$lt_STRIP
20207
20208# Commands used to install an old-style archive.
20209RANLIB=$lt_RANLIB
20210old_postinstall_cmds=$lt_old_postinstall_cmds
20211old_postuninstall_cmds=$lt_old_postuninstall_cmds
20212
20213# Whether to use a lock for old archive extraction.
20214lock_old_archive_extraction=$lock_old_archive_extraction
20215
20216# A C compiler.
20217LTCC=$lt_CC
20218
20219# LTCC compiler flags.
20220LTCFLAGS=$lt_CFLAGS
20221
20222# Take the output of nm and produce a listing of raw symbols and C names.
20223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20224
20225# Transform the output of nm in a proper C declaration.
20226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20227
20228# Transform the output of nm in a C name address pair.
20229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20230
20231# Transform the output of nm in a C name address pair when lib prefix is needed.
20232global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20233
20234# Specify filename containing input files for \$NM.
20235nm_file_list_spec=$lt_nm_file_list_spec
20236
20237# The root where to search for dependent libraries,and in which our libraries should be installed.
20238lt_sysroot=$lt_sysroot
20239
20240# The name of the directory that contains temporary libtool files.
20241objdir=$objdir
20242
20243# Used to examine libraries when file_magic_cmd begins with "file".
20244MAGIC_CMD=$MAGIC_CMD
20245
20246# Must we lock files when doing compilation?
20247need_locks=$lt_need_locks
20248
20249# Manifest tool.
20250MANIFEST_TOOL=$lt_MANIFEST_TOOL
20251
20252# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20253DSYMUTIL=$lt_DSYMUTIL
20254
20255# Tool to change global to local symbols on Mac OS X.
20256NMEDIT=$lt_NMEDIT
20257
20258# Tool to manipulate fat objects and archives on Mac OS X.
20259LIPO=$lt_LIPO
20260
20261# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20262OTOOL=$lt_OTOOL
20263
20264# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20265OTOOL64=$lt_OTOOL64
20266
20267# Old archive suffix (normally "a").
20268libext=$libext
20269
20270# Shared library suffix (normally ".so").
20271shrext_cmds=$lt_shrext_cmds
20272
20273# The commands to extract the exported symbol list from a shared archive.
20274extract_expsyms_cmds=$lt_extract_expsyms_cmds
20275
20276# Variables whose values should be saved in libtool wrapper scripts and
20277# restored at link time.
20278variables_saved_for_relink=$lt_variables_saved_for_relink
20279
20280# Do we need the "lib" prefix for modules?
20281need_lib_prefix=$need_lib_prefix
20282
20283# Do we need a version for libraries?
20284need_version=$need_version
20285
20286# Library versioning type.
20287version_type=$version_type
20288
20289# Shared library runtime path variable.
20290runpath_var=$runpath_var
20291
20292# Shared library path variable.
20293shlibpath_var=$shlibpath_var
20294
20295# Is shlibpath searched before the hard-coded library search path?
20296shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20297
20298# Format of library name prefix.
20299libname_spec=$lt_libname_spec
20300
20301# List of archive names.  First name is the real one, the rest are links.
20302# The last name is the one that the linker finds with -lNAME
20303library_names_spec=$lt_library_names_spec
20304
20305# The coded name of the library, if different from the real name.
20306soname_spec=$lt_soname_spec
20307
20308# Permission mode override for installation of shared libraries.
20309install_override_mode=$lt_install_override_mode
20310
20311# Command to use after installation of a shared archive.
20312postinstall_cmds=$lt_postinstall_cmds
20313
20314# Command to use after uninstallation of a shared archive.
20315postuninstall_cmds=$lt_postuninstall_cmds
20316
20317# Commands used to finish a libtool library installation in a directory.
20318finish_cmds=$lt_finish_cmds
20319
20320# As "finish_cmds", except a single script fragment to be evaled but
20321# not shown.
20322finish_eval=$lt_finish_eval
20323
20324# Whether we should hardcode library paths into libraries.
20325hardcode_into_libs=$hardcode_into_libs
20326
20327# Compile-time system search path for libraries.
20328sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20329
20330# Run-time system search path for libraries.
20331sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20332
20333# Whether dlopen is supported.
20334dlopen_support=$enable_dlopen
20335
20336# Whether dlopen of programs is supported.
20337dlopen_self=$enable_dlopen_self
20338
20339# Whether dlopen of statically linked programs is supported.
20340dlopen_self_static=$enable_dlopen_self_static
20341
20342# Commands to strip libraries.
20343old_striplib=$lt_old_striplib
20344striplib=$lt_striplib
20345
20346
20347# The linker used to build libraries.
20348LD=$lt_LD
20349
20350# How to create reloadable object files.
20351reload_flag=$lt_reload_flag
20352reload_cmds=$lt_reload_cmds
20353
20354# Commands used to build an old-style archive.
20355old_archive_cmds=$lt_old_archive_cmds
20356
20357# A language specific compiler.
20358CC=$lt_compiler
20359
20360# Is the compiler the GNU compiler?
20361with_gcc=$GCC
20362
20363# Compiler flag to turn off builtin functions.
20364no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20365
20366# Additional compiler flags for building library objects.
20367pic_flag=$lt_lt_prog_compiler_pic
20368
20369# How to pass a linker flag through the compiler.
20370wl=$lt_lt_prog_compiler_wl
20371
20372# Compiler flag to prevent dynamic linking.
20373link_static_flag=$lt_lt_prog_compiler_static
20374
20375# Does compiler simultaneously support -c and -o options?
20376compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20377
20378# Whether or not to add -lc for building shared libraries.
20379build_libtool_need_lc=$archive_cmds_need_lc
20380
20381# Whether or not to disallow shared libs when runtime libs are static.
20382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20383
20384# Compiler flag to allow reflexive dlopens.
20385export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20386
20387# Compiler flag to generate shared objects directly from archives.
20388whole_archive_flag_spec=$lt_whole_archive_flag_spec
20389
20390# Whether the compiler copes with passing no objects directly.
20391compiler_needs_object=$lt_compiler_needs_object
20392
20393# Create an old-style archive from a shared archive.
20394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20395
20396# Create a temporary old-style archive to link instead of a shared archive.
20397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20398
20399# Commands used to build a shared archive.
20400archive_cmds=$lt_archive_cmds
20401archive_expsym_cmds=$lt_archive_expsym_cmds
20402
20403# Commands used to build a loadable module if different from building
20404# a shared archive.
20405module_cmds=$lt_module_cmds
20406module_expsym_cmds=$lt_module_expsym_cmds
20407
20408# Whether we are building with GNU ld or not.
20409with_gnu_ld=$lt_with_gnu_ld
20410
20411# Flag that allows shared libraries with undefined symbols to be built.
20412allow_undefined_flag=$lt_allow_undefined_flag
20413
20414# Flag that enforces no undefined symbols.
20415no_undefined_flag=$lt_no_undefined_flag
20416
20417# Flag to hardcode \$libdir into a binary during linking.
20418# This must work even if \$libdir does not exist
20419hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20420
20421# Whether we need a single "-rpath" flag with a separated argument.
20422hardcode_libdir_separator=$lt_hardcode_libdir_separator
20423
20424# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20425# DIR into the resulting binary.
20426hardcode_direct=$hardcode_direct
20427
20428# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20429# DIR into the resulting binary and the resulting library dependency is
20430# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20431# library is relocated.
20432hardcode_direct_absolute=$hardcode_direct_absolute
20433
20434# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20435# into the resulting binary.
20436hardcode_minus_L=$hardcode_minus_L
20437
20438# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20439# into the resulting binary.
20440hardcode_shlibpath_var=$hardcode_shlibpath_var
20441
20442# Set to "yes" if building a shared library automatically hardcodes DIR
20443# into the library and all subsequent libraries and executables linked
20444# against it.
20445hardcode_automatic=$hardcode_automatic
20446
20447# Set to yes if linker adds runtime paths of dependent libraries
20448# to runtime path list.
20449inherit_rpath=$inherit_rpath
20450
20451# Whether libtool must link a program against all its dependency libraries.
20452link_all_deplibs=$link_all_deplibs
20453
20454# Set to "yes" if exported symbols are required.
20455always_export_symbols=$always_export_symbols
20456
20457# The commands to list exported symbols.
20458export_symbols_cmds=$lt_export_symbols_cmds
20459
20460# Symbols that should not be listed in the preloaded symbols.
20461exclude_expsyms=$lt_exclude_expsyms
20462
20463# Symbols that must always be exported.
20464include_expsyms=$lt_include_expsyms
20465
20466# Commands necessary for linking programs (against libraries) with templates.
20467prelink_cmds=$lt_prelink_cmds
20468
20469# Commands necessary for finishing linking programs.
20470postlink_cmds=$lt_postlink_cmds
20471
20472# Specify filename containing input files.
20473file_list_spec=$lt_file_list_spec
20474
20475# How to hardcode a shared library path into an executable.
20476hardcode_action=$hardcode_action
20477
20478# ### END LIBTOOL CONFIG
20479
20480_LT_EOF
20481
20482  case $host_os in
20483  aix3*)
20484    cat <<\_LT_EOF >> "$cfgfile"
20485# AIX sometimes has problems with the GCC collect2 program.  For some
20486# reason, if we set the COLLECT_NAMES environment variable, the problems
20487# vanish in a puff of smoke.
20488if test "X${COLLECT_NAMES+set}" != Xset; then
20489  COLLECT_NAMES=
20490  export COLLECT_NAMES
20491fi
20492_LT_EOF
20493    ;;
20494  esac
20495
20496
20497ltmain="$ac_aux_dir/ltmain.sh"
20498
20499
20500  # We use sed instead of cat because bash on DJGPP gets confused if
20501  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20502  # text mode, it properly converts lines to CR/LF.  This bash problem
20503  # is reportedly fixed, but why not run on old versions too?
20504  sed '$q' "$ltmain" >> "$cfgfile" \
20505     || (rm -f "$cfgfile"; exit 1)
20506
20507  if test x"$xsi_shell" = xyes; then
20508  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20509func_dirname ()\
20510{\
20511\    case ${1} in\
20512\      */*) func_dirname_result="${1%/*}${2}" ;;\
20513\      *  ) func_dirname_result="${3}" ;;\
20514\    esac\
20515} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20516  && mv -f "$cfgfile.tmp" "$cfgfile" \
20517    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20518test 0 -eq $? || _lt_function_replace_fail=:
20519
20520
20521  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20522func_basename ()\
20523{\
20524\    func_basename_result="${1##*/}"\
20525} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20526  && mv -f "$cfgfile.tmp" "$cfgfile" \
20527    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20528test 0 -eq $? || _lt_function_replace_fail=:
20529
20530
20531  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20532func_dirname_and_basename ()\
20533{\
20534\    case ${1} in\
20535\      */*) func_dirname_result="${1%/*}${2}" ;;\
20536\      *  ) func_dirname_result="${3}" ;;\
20537\    esac\
20538\    func_basename_result="${1##*/}"\
20539} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20540  && mv -f "$cfgfile.tmp" "$cfgfile" \
20541    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20542test 0 -eq $? || _lt_function_replace_fail=:
20543
20544
20545  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20546func_stripname ()\
20547{\
20548\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20549\    # positional parameters, so assign one to ordinary parameter first.\
20550\    func_stripname_result=${3}\
20551\    func_stripname_result=${func_stripname_result#"${1}"}\
20552\    func_stripname_result=${func_stripname_result%"${2}"}\
20553} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20554  && mv -f "$cfgfile.tmp" "$cfgfile" \
20555    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20556test 0 -eq $? || _lt_function_replace_fail=:
20557
20558
20559  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20560func_split_long_opt ()\
20561{\
20562\    func_split_long_opt_name=${1%%=*}\
20563\    func_split_long_opt_arg=${1#*=}\
20564} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20565  && mv -f "$cfgfile.tmp" "$cfgfile" \
20566    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20567test 0 -eq $? || _lt_function_replace_fail=:
20568
20569
20570  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20571func_split_short_opt ()\
20572{\
20573\    func_split_short_opt_arg=${1#??}\
20574\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20575} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20576  && mv -f "$cfgfile.tmp" "$cfgfile" \
20577    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20578test 0 -eq $? || _lt_function_replace_fail=:
20579
20580
20581  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20582func_lo2o ()\
20583{\
20584\    case ${1} in\
20585\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20586\      *)    func_lo2o_result=${1} ;;\
20587\    esac\
20588} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20589  && mv -f "$cfgfile.tmp" "$cfgfile" \
20590    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20591test 0 -eq $? || _lt_function_replace_fail=:
20592
20593
20594  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20595func_xform ()\
20596{\
20597    func_xform_result=${1%.*}.lo\
20598} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20599  && mv -f "$cfgfile.tmp" "$cfgfile" \
20600    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20601test 0 -eq $? || _lt_function_replace_fail=:
20602
20603
20604  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20605func_arith ()\
20606{\
20607    func_arith_result=$(( $* ))\
20608} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20609  && mv -f "$cfgfile.tmp" "$cfgfile" \
20610    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20611test 0 -eq $? || _lt_function_replace_fail=:
20612
20613
20614  sed -e '/^func_len ()$/,/^} # func_len /c\
20615func_len ()\
20616{\
20617    func_len_result=${#1}\
20618} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20619  && mv -f "$cfgfile.tmp" "$cfgfile" \
20620    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20621test 0 -eq $? || _lt_function_replace_fail=:
20622
20623fi
20624
20625if test x"$lt_shell_append" = xyes; then
20626  sed -e '/^func_append ()$/,/^} # func_append /c\
20627func_append ()\
20628{\
20629    eval "${1}+=\\${2}"\
20630} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20631  && mv -f "$cfgfile.tmp" "$cfgfile" \
20632    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20633test 0 -eq $? || _lt_function_replace_fail=:
20634
20635
20636  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20637func_append_quoted ()\
20638{\
20639\    func_quote_for_eval "${2}"\
20640\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20641} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20642  && mv -f "$cfgfile.tmp" "$cfgfile" \
20643    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20644test 0 -eq $? || _lt_function_replace_fail=:
20645
20646
20647  # Save a `func_append' function call where possible by direct use of '+='
20648  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20649    && mv -f "$cfgfile.tmp" "$cfgfile" \
20650      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20651  test 0 -eq $? || _lt_function_replace_fail=:
20652else
20653  # Save a `func_append' function call even when '+=' is not available
20654  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20655    && mv -f "$cfgfile.tmp" "$cfgfile" \
20656      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20657  test 0 -eq $? || _lt_function_replace_fail=:
20658fi
20659
20660if test x"$_lt_function_replace_fail" = x":"; then
20661  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20662$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20663fi
20664
20665
20666   mv -f "$cfgfile" "$ofile" ||
20667    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20668  chmod +x "$ofile"
20669
20670 ;;
20671
20672  esac
20673done # for ac_tag
20674
20675
20676as_fn_exit 0
20677_ACEOF
20678ac_clean_files=$ac_clean_files_save
20679
20680test $ac_write_fail = 0 ||
20681  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20682
20683
20684# configure is writing to config.log, and then calls config.status.
20685# config.status does its own redirection, appending to config.log.
20686# Unfortunately, on DOS this fails, as config.log is still kept open
20687# by configure, so config.status won't be able to write to it; its
20688# output is simply discarded.  So we exec the FD to /dev/null,
20689# effectively closing config.log, so it can be properly (re)opened and
20690# appended to by config.status.  When coming back to configure, we
20691# need to make the FD available again.
20692if test "$no_create" != yes; then
20693  ac_cs_success=:
20694  ac_config_status_args=
20695  test "$silent" = yes &&
20696    ac_config_status_args="$ac_config_status_args --quiet"
20697  exec 5>/dev/null
20698  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20699  exec 5>>config.log
20700  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20701  # would make configure fail if this is the last instruction.
20702  $ac_cs_success || as_fn_exit 1
20703fi
20704if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20705  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20706$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20707fi
20708
20709