configure revision 6dda92f9
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXdamage 1.1.4.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='libXdamage'
573PACKAGE_TARNAME='libXdamage'
574PACKAGE_VERSION='1.1.4'
575PACKAGE_STRING='libXdamage 1.1.4'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620XDAMAGE_LIBS
621XDAMAGE_CFLAGS
622DAMAGEEXT_VERSION
623AM_BACKSLASH
624AM_DEFAULT_VERBOSITY
625MAN_SUBSTS
626XORG_MAN_PAGE
627ADMIN_MAN_DIR
628DRIVER_MAN_DIR
629MISC_MAN_DIR
630FILE_MAN_DIR
631LIB_MAN_DIR
632APP_MAN_DIR
633ADMIN_MAN_SUFFIX
634DRIVER_MAN_SUFFIX
635MISC_MAN_SUFFIX
636FILE_MAN_SUFFIX
637LIB_MAN_SUFFIX
638APP_MAN_SUFFIX
639INSTALL_CMD
640PKG_CONFIG
641CHANGELOG_CMD
642STRICT_CFLAGS
643CWARNFLAGS
644BASE_CFLAGS
645CPP
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652RANLIB
653ac_ct_AR
654AR
655DLLTOOL
656OBJDUMP
657LN_S
658NM
659ac_ct_DUMPBIN
660DUMPBIN
661LD
662FGREP
663EGREP
664GREP
665SED
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691LIBTOOL
692MAINT
693MAINTAINER_MODE_FALSE
694MAINTAINER_MODE_TRUE
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
748PACKAGE_URL
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
755SHELL'
756ac_subst_files=''
757ac_user_opts='
758enable_option_checking
759enable_maintainer_mode
760enable_shared
761enable_static
762with_pic
763enable_fast_install
764enable_dependency_tracking
765with_gnu_ld
766with_sysroot
767enable_libtool_lock
768enable_selective_werror
769enable_strict_compilation
770enable_silent_rules
771'
772      ac_precious_vars='build_alias
773host_alias
774target_alias
775CC
776CFLAGS
777LDFLAGS
778LIBS
779CPPFLAGS
780CPP
781PKG_CONFIG
782XDAMAGE_CFLAGS
783XDAMAGE_LIBS'
784
785
786# Initialize some variables set by options.
787ac_init_help=
788ac_init_version=false
789ac_unrecognized_opts=
790ac_unrecognized_sep=
791# The variables have the same names as the options, with
792# dashes changed to underlines.
793cache_file=/dev/null
794exec_prefix=NONE
795no_create=
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
804verbose=
805x_includes=NONE
806x_libraries=NONE
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
813# (The list follows the same order as the GNU Coding Standards.)
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
833
834ac_prev=
835ac_dashdash=
836for ac_option
837do
838  # If the previous option needs an argument, assign it.
839  if test -n "$ac_prev"; then
840    eval $ac_prev=\$ac_option
841    ac_prev=
842    continue
843  fi
844
845  case $ac_option in
846  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847  *=)   ac_optarg= ;;
848  *)    ac_optarg=yes ;;
849  esac
850
851  # Accept the important Cygnus configure options, so we can diagnose typos.
852
853  case $ac_dashdash$ac_option in
854  --)
855    ac_dashdash=yes ;;
856
857  -bindir | --bindir | --bindi | --bind | --bin | --bi)
858    ac_prev=bindir ;;
859  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860    bindir=$ac_optarg ;;
861
862  -build | --build | --buil | --bui | --bu)
863    ac_prev=build_alias ;;
864  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865    build_alias=$ac_optarg ;;
866
867  -cache-file | --cache-file | --cache-fil | --cache-fi \
868  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869    ac_prev=cache_file ;;
870  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872    cache_file=$ac_optarg ;;
873
874  --config-cache | -C)
875    cache_file=config.cache ;;
876
877  -datadir | --datadir | --datadi | --datad)
878    ac_prev=datadir ;;
879  -datadir=* | --datadir=* | --datadi=* | --datad=*)
880    datadir=$ac_optarg ;;
881
882  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883  | --dataroo | --dataro | --datar)
884    ac_prev=datarootdir ;;
885  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887    datarootdir=$ac_optarg ;;
888
889  -disable-* | --disable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=no ;;
904
905  -docdir | --docdir | --docdi | --doc | --do)
906    ac_prev=docdir ;;
907  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908    docdir=$ac_optarg ;;
909
910  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911    ac_prev=dvidir ;;
912  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913    dvidir=$ac_optarg ;;
914
915  -enable-* | --enable-*)
916    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917    # Reject names that are not valid shell variable names.
918    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919      as_fn_error $? "invalid feature name: $ac_useropt"
920    ac_useropt_orig=$ac_useropt
921    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922    case $ac_user_opts in
923      *"
924"enable_$ac_useropt"
925"*) ;;
926      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927	 ac_unrecognized_sep=', ';;
928    esac
929    eval enable_$ac_useropt=\$ac_optarg ;;
930
931  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933  | --exec | --exe | --ex)
934    ac_prev=exec_prefix ;;
935  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937  | --exec=* | --exe=* | --ex=*)
938    exec_prefix=$ac_optarg ;;
939
940  -gas | --gas | --ga | --g)
941    # Obsolete; use --with-gas.
942    with_gas=yes ;;
943
944  -help | --help | --hel | --he | -h)
945    ac_init_help=long ;;
946  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947    ac_init_help=recursive ;;
948  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949    ac_init_help=short ;;
950
951  -host | --host | --hos | --ho)
952    ac_prev=host_alias ;;
953  -host=* | --host=* | --hos=* | --ho=*)
954    host_alias=$ac_optarg ;;
955
956  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957    ac_prev=htmldir ;;
958  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959  | --ht=*)
960    htmldir=$ac_optarg ;;
961
962  -includedir | --includedir | --includedi | --included | --include \
963  | --includ | --inclu | --incl | --inc)
964    ac_prev=includedir ;;
965  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966  | --includ=* | --inclu=* | --incl=* | --inc=*)
967    includedir=$ac_optarg ;;
968
969  -infodir | --infodir | --infodi | --infod | --info | --inf)
970    ac_prev=infodir ;;
971  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972    infodir=$ac_optarg ;;
973
974  -libdir | --libdir | --libdi | --libd)
975    ac_prev=libdir ;;
976  -libdir=* | --libdir=* | --libdi=* | --libd=*)
977    libdir=$ac_optarg ;;
978
979  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980  | --libexe | --libex | --libe)
981    ac_prev=libexecdir ;;
982  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983  | --libexe=* | --libex=* | --libe=*)
984    libexecdir=$ac_optarg ;;
985
986  -localedir | --localedir | --localedi | --localed | --locale)
987    ac_prev=localedir ;;
988  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989    localedir=$ac_optarg ;;
990
991  -localstatedir | --localstatedir | --localstatedi | --localstated \
992  | --localstate | --localstat | --localsta | --localst | --locals)
993    ac_prev=localstatedir ;;
994  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996    localstatedir=$ac_optarg ;;
997
998  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999    ac_prev=mandir ;;
1000  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001    mandir=$ac_optarg ;;
1002
1003  -nfp | --nfp | --nf)
1004    # Obsolete; use --without-fp.
1005    with_fp=no ;;
1006
1007  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008  | --no-cr | --no-c | -n)
1009    no_create=yes ;;
1010
1011  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013    no_recursion=yes ;;
1014
1015  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017  | --oldin | --oldi | --old | --ol | --o)
1018    ac_prev=oldincludedir ;;
1019  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022    oldincludedir=$ac_optarg ;;
1023
1024  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025    ac_prev=prefix ;;
1026  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027    prefix=$ac_optarg ;;
1028
1029  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030  | --program-pre | --program-pr | --program-p)
1031    ac_prev=program_prefix ;;
1032  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034    program_prefix=$ac_optarg ;;
1035
1036  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037  | --program-suf | --program-su | --program-s)
1038    ac_prev=program_suffix ;;
1039  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041    program_suffix=$ac_optarg ;;
1042
1043  -program-transform-name | --program-transform-name \
1044  | --program-transform-nam | --program-transform-na \
1045  | --program-transform-n | --program-transform- \
1046  | --program-transform | --program-transfor \
1047  | --program-transfo | --program-transf \
1048  | --program-trans | --program-tran \
1049  | --progr-tra | --program-tr | --program-t)
1050    ac_prev=program_transform_name ;;
1051  -program-transform-name=* | --program-transform-name=* \
1052  | --program-transform-nam=* | --program-transform-na=* \
1053  | --program-transform-n=* | --program-transform-=* \
1054  | --program-transform=* | --program-transfor=* \
1055  | --program-transfo=* | --program-transf=* \
1056  | --program-trans=* | --program-tran=* \
1057  | --progr-tra=* | --program-tr=* | --program-t=*)
1058    program_transform_name=$ac_optarg ;;
1059
1060  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061    ac_prev=pdfdir ;;
1062  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063    pdfdir=$ac_optarg ;;
1064
1065  -psdir | --psdir | --psdi | --psd | --ps)
1066    ac_prev=psdir ;;
1067  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068    psdir=$ac_optarg ;;
1069
1070  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071  | -silent | --silent | --silen | --sile | --sil)
1072    silent=yes ;;
1073
1074  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075    ac_prev=sbindir ;;
1076  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077  | --sbi=* | --sb=*)
1078    sbindir=$ac_optarg ;;
1079
1080  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082  | --sharedst | --shareds | --shared | --share | --shar \
1083  | --sha | --sh)
1084    ac_prev=sharedstatedir ;;
1085  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088  | --sha=* | --sh=*)
1089    sharedstatedir=$ac_optarg ;;
1090
1091  -site | --site | --sit)
1092    ac_prev=site ;;
1093  -site=* | --site=* | --sit=*)
1094    site=$ac_optarg ;;
1095
1096  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097    ac_prev=srcdir ;;
1098  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099    srcdir=$ac_optarg ;;
1100
1101  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102  | --syscon | --sysco | --sysc | --sys | --sy)
1103    ac_prev=sysconfdir ;;
1104  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106    sysconfdir=$ac_optarg ;;
1107
1108  -target | --target | --targe | --targ | --tar | --ta | --t)
1109    ac_prev=target_alias ;;
1110  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111    target_alias=$ac_optarg ;;
1112
1113  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114    verbose=yes ;;
1115
1116  -version | --version | --versio | --versi | --vers | -V)
1117    ac_init_version=: ;;
1118
1119  -with-* | --with-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid package name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"with_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval with_$ac_useropt=\$ac_optarg ;;
1134
1135  -without-* | --without-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=no ;;
1150
1151  --x)
1152    # Obsolete; use --with-x.
1153    with_x=yes ;;
1154
1155  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156  | --x-incl | --x-inc | --x-in | --x-i)
1157    ac_prev=x_includes ;;
1158  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160    x_includes=$ac_optarg ;;
1161
1162  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164    ac_prev=x_libraries ;;
1165  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167    x_libraries=$ac_optarg ;;
1168
1169  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170Try \`$0 --help' for more information"
1171    ;;
1172
1173  *=*)
1174    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175    # Reject names that are not valid shell variable names.
1176    case $ac_envvar in #(
1177      '' | [0-9]* | *[!_$as_cr_alnum]* )
1178      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179    esac
1180    eval $ac_envvar=\$ac_optarg
1181    export $ac_envvar ;;
1182
1183  *)
1184    # FIXME: should be removed in autoconf 3.0.
1185    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189    ;;
1190
1191  esac
1192done
1193
1194if test -n "$ac_prev"; then
1195  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196  as_fn_error $? "missing argument to $ac_option"
1197fi
1198
1199if test -n "$ac_unrecognized_opts"; then
1200  case $enable_option_checking in
1201    no) ;;
1202    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204  esac
1205fi
1206
1207# Check all directory arguments for consistency.
1208for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209		datadir sysconfdir sharedstatedir localstatedir includedir \
1210		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211		libdir localedir mandir
1212do
1213  eval ac_val=\$$ac_var
1214  # Remove trailing slashes.
1215  case $ac_val in
1216    */ )
1217      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218      eval $ac_var=\$ac_val;;
1219  esac
1220  # Be sure to have absolute directory names.
1221  case $ac_val in
1222    [\\/$]* | ?:[\\/]* )  continue;;
1223    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224  esac
1225  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226done
1227
1228# There might be people who depend on the old broken behavior: `$host'
1229# used to hold the argument of --host etc.
1230# FIXME: To remove some day.
1231build=$build_alias
1232host=$host_alias
1233target=$target_alias
1234
1235# FIXME: To remove some day.
1236if test "x$host_alias" != x; then
1237  if test "x$build_alias" = x; then
1238    cross_compiling=maybe
1239    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240    If a cross compiler is detected then cross compile mode will be used" >&2
1241  elif test "x$build_alias" != "x$host_alias"; then
1242    cross_compiling=yes
1243  fi
1244fi
1245
1246ac_tool_prefix=
1247test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249test "$silent" = yes && exec 6>/dev/null
1250
1251
1252ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253ac_ls_di=`ls -di .` &&
1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255  as_fn_error $? "working directory cannot be determined"
1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257  as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262  ac_srcdir_defaulted=yes
1263  # Try the directory containing this script, then the parent directory.
1264  ac_confdir=`$as_dirname -- "$as_myself" ||
1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266	 X"$as_myself" : 'X\(//\)[^/]' \| \
1267	 X"$as_myself" : 'X\(//\)$' \| \
1268	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269$as_echo X"$as_myself" |
1270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)[^/].*/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\/\)$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\).*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  s/.*/./; q'`
1287  srcdir=$ac_confdir
1288  if test ! -r "$srcdir/$ac_unique_file"; then
1289    srcdir=..
1290  fi
1291else
1292  ac_srcdir_defaulted=no
1293fi
1294if test ! -r "$srcdir/$ac_unique_file"; then
1295  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297fi
1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299ac_abs_confdir=`(
1300	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301	pwd)`
1302# When building in place, set srcdir=.
1303if test "$ac_abs_confdir" = "$ac_pwd"; then
1304  srcdir=.
1305fi
1306# Remove unnecessary trailing slashes from srcdir.
1307# Double slashes in file names in object file debugging info
1308# mess up M-x gdb in Emacs.
1309case $srcdir in
1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311esac
1312for ac_var in $ac_precious_vars; do
1313  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314  eval ac_env_${ac_var}_value=\$${ac_var}
1315  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317done
1318
1319#
1320# Report the --help message.
1321#
1322if test "$ac_init_help" = "long"; then
1323  # Omit some internal or obsolete options to make the list less imposing.
1324  # This message is too long to be a string in the A/UX 3.1 sh.
1325  cat <<_ACEOF
1326\`configure' configures libXdamage 1.1.4 to adapt to many kinds of systems.
1327
1328Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331VAR=VALUE.  See below for descriptions of some of the useful variables.
1332
1333Defaults for the options are specified in brackets.
1334
1335Configuration:
1336  -h, --help              display this help and exit
1337      --help=short        display options specific to this package
1338      --help=recursive    display the short help of all the included packages
1339  -V, --version           display version information and exit
1340  -q, --quiet, --silent   do not print \`checking ...' messages
1341      --cache-file=FILE   cache test results in FILE [disabled]
1342  -C, --config-cache      alias for \`--cache-file=config.cache'
1343  -n, --no-create         do not create output files
1344      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1345
1346Installation directories:
1347  --prefix=PREFIX         install architecture-independent files in PREFIX
1348                          [$ac_default_prefix]
1349  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1350                          [PREFIX]
1351
1352By default, \`make install' will install all the files in
1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1354an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355for instance \`--prefix=\$HOME'.
1356
1357For better control, use the options below.
1358
1359Fine tuning of the installation directories:
1360  --bindir=DIR            user executables [EPREFIX/bin]
1361  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1362  --libexecdir=DIR        program executables [EPREFIX/libexec]
1363  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1364  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1365  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1366  --libdir=DIR            object code libraries [EPREFIX/lib]
1367  --includedir=DIR        C header files [PREFIX/include]
1368  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1369  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1370  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1371  --infodir=DIR           info documentation [DATAROOTDIR/info]
1372  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1373  --mandir=DIR            man documentation [DATAROOTDIR/man]
1374  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXdamage]
1375  --htmldir=DIR           html documentation [DOCDIR]
1376  --dvidir=DIR            dvi documentation [DOCDIR]
1377  --pdfdir=DIR            pdf documentation [DOCDIR]
1378  --psdir=DIR             ps documentation [DOCDIR]
1379_ACEOF
1380
1381  cat <<\_ACEOF
1382
1383Program names:
1384  --program-prefix=PREFIX            prepend PREFIX to installed program names
1385  --program-suffix=SUFFIX            append SUFFIX to installed program names
1386  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1387
1388System types:
1389  --build=BUILD     configure for building on BUILD [guessed]
1390  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1391_ACEOF
1392fi
1393
1394if test -n "$ac_init_help"; then
1395  case $ac_init_help in
1396     short | recursive ) echo "Configuration of libXdamage 1.1.4:";;
1397   esac
1398  cat <<\_ACEOF
1399
1400Optional Features:
1401  --disable-option-checking  ignore unrecognized --enable/--with options
1402  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1403  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1404  --enable-maintainer-mode  enable make rules and dependencies not useful
1405			  (and sometimes confusing) to the casual installer
1406  --enable-shared[=PKGS]  build shared libraries [default=yes]
1407  --enable-static[=PKGS]  build static libraries [default=yes]
1408  --enable-fast-install[=PKGS]
1409                          optimize for fast installation [default=yes]
1410  --disable-dependency-tracking  speeds up one-time build
1411  --enable-dependency-tracking   do not reject slow dependency extractors
1412  --disable-libtool-lock  avoid locking (might break parallel builds)
1413  --disable-selective-werror
1414                          Turn off selective compiler errors. (default:
1415                          enabled)
1416  --enable-strict-compilation
1417                          Enable all warnings from compiler and make them
1418                          errors (default: disabled)
1419  --enable-silent-rules          less verbose build output (undo: `make V=1')
1420  --disable-silent-rules         verbose build output (undo: `make V=0')
1421
1422Optional Packages:
1423  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1424  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1425  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1426                          both]
1427  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1428  --with-sysroot=DIR Search for dependent libraries within DIR
1429                        (or the compiler's sysroot if not specified).
1430
1431Some influential environment variables:
1432  CC          C compiler command
1433  CFLAGS      C compiler flags
1434  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1435              nonstandard directory <lib dir>
1436  LIBS        libraries to pass to the linker, e.g. -l<library>
1437  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438              you have headers in a nonstandard directory <include dir>
1439  CPP         C preprocessor
1440  PKG_CONFIG  path to pkg-config utility
1441  XDAMAGE_CFLAGS
1442              C compiler flags for XDAMAGE, overriding pkg-config
1443  XDAMAGE_LIBS
1444              linker flags for XDAMAGE, overriding pkg-config
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
1449Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1450_ACEOF
1451ac_status=$?
1452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455  # If there are subdirs, report their specific --help.
1456  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457    test -d "$ac_dir" ||
1458      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459      continue
1460    ac_builddir=.
1461
1462case "$ac_dir" in
1463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464*)
1465  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466  # A ".." for each directory in $ac_dir_suffix.
1467  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468  case $ac_top_builddir_sub in
1469  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471  esac ;;
1472esac
1473ac_abs_top_builddir=$ac_pwd
1474ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475# for backward compatibility:
1476ac_top_builddir=$ac_top_build_prefix
1477
1478case $srcdir in
1479  .)  # We are building in place.
1480    ac_srcdir=.
1481    ac_top_srcdir=$ac_top_builddir_sub
1482    ac_abs_top_srcdir=$ac_pwd ;;
1483  [\\/]* | ?:[\\/]* )  # Absolute name.
1484    ac_srcdir=$srcdir$ac_dir_suffix;
1485    ac_top_srcdir=$srcdir
1486    ac_abs_top_srcdir=$srcdir ;;
1487  *) # Relative name.
1488    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489    ac_top_srcdir=$ac_top_build_prefix$srcdir
1490    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491esac
1492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494    cd "$ac_dir" || { ac_status=$?; continue; }
1495    # Check for guested configure.
1496    if test -f "$ac_srcdir/configure.gnu"; then
1497      echo &&
1498      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499    elif test -f "$ac_srcdir/configure"; then
1500      echo &&
1501      $SHELL "$ac_srcdir/configure" --help=recursive
1502    else
1503      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504    fi || ac_status=$?
1505    cd "$ac_pwd" || { ac_status=$?; break; }
1506  done
1507fi
1508
1509test -n "$ac_init_help" && exit $ac_status
1510if $ac_init_version; then
1511  cat <<\_ACEOF
1512libXdamage configure 1.1.4
1513generated by GNU Autoconf 2.68
1514
1515Copyright (C) 2010 Free Software Foundation, Inc.
1516This configure script is free software; the Free Software Foundation
1517gives unlimited permission to copy, distribute and modify it.
1518_ACEOF
1519  exit
1520fi
1521
1522## ------------------------ ##
1523## Autoconf initialization. ##
1524## ------------------------ ##
1525
1526# ac_fn_c_try_compile LINENO
1527# --------------------------
1528# Try to compile conftest.$ac_ext, and return whether this succeeded.
1529ac_fn_c_try_compile ()
1530{
1531  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532  rm -f conftest.$ac_objext
1533  if { { ac_try="$ac_compile"
1534case "(($ac_try" in
1535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536  *) ac_try_echo=$ac_try;;
1537esac
1538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539$as_echo "$ac_try_echo"; } >&5
1540  (eval "$ac_compile") 2>conftest.err
1541  ac_status=$?
1542  if test -s conftest.err; then
1543    grep -v '^ *+' conftest.err >conftest.er1
1544    cat conftest.er1 >&5
1545    mv -f conftest.er1 conftest.err
1546  fi
1547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548  test $ac_status = 0; } && {
1549	 test -z "$ac_c_werror_flag" ||
1550	 test ! -s conftest.err
1551       } && test -s conftest.$ac_objext; then :
1552  ac_retval=0
1553else
1554  $as_echo "$as_me: failed program was:" >&5
1555sed 's/^/| /' conftest.$ac_ext >&5
1556
1557	ac_retval=1
1558fi
1559  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560  as_fn_set_status $ac_retval
1561
1562} # ac_fn_c_try_compile
1563
1564# ac_fn_c_try_link LINENO
1565# -----------------------
1566# Try to link conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_link ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext conftest$ac_exeext
1571  if { { ac_try="$ac_link"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_link") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest$ac_exeext && {
1590	 test "$cross_compiling" = yes ||
1591	 $as_test_x conftest$ac_exeext
1592       }; then :
1593  ac_retval=0
1594else
1595  $as_echo "$as_me: failed program was:" >&5
1596sed 's/^/| /' conftest.$ac_ext >&5
1597
1598	ac_retval=1
1599fi
1600  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602  # interfere with the next link command; also delete a directory that is
1603  # left behind by Apple's compiler.  We do this before executing the actions.
1604  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606  as_fn_set_status $ac_retval
1607
1608} # ac_fn_c_try_link
1609
1610# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611# -------------------------------------------------------
1612# Tests whether HEADER exists and can be compiled using the include files in
1613# INCLUDES, setting the cache variable VAR accordingly.
1614ac_fn_c_check_header_compile ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618$as_echo_n "checking for $2... " >&6; }
1619if eval \${$3+:} false; then :
1620  $as_echo_n "(cached) " >&6
1621else
1622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623/* end confdefs.h.  */
1624$4
1625#include <$2>
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"; then :
1628  eval "$3=yes"
1629else
1630  eval "$3=no"
1631fi
1632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633fi
1634eval ac_res=\$$3
1635	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636$as_echo "$ac_res" >&6; }
1637  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639} # ac_fn_c_check_header_compile
1640
1641# ac_fn_c_try_cpp LINENO
1642# ----------------------
1643# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_cpp ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  if { { ac_try="$ac_cpp conftest.$ac_ext"
1648case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655  ac_status=$?
1656  if test -s conftest.err; then
1657    grep -v '^ *+' conftest.err >conftest.er1
1658    cat conftest.er1 >&5
1659    mv -f conftest.er1 conftest.err
1660  fi
1661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; } > conftest.i && {
1663	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664	 test ! -s conftest.err
1665       }; then :
1666  ac_retval=0
1667else
1668  $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671    ac_retval=1
1672fi
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_cpp
1677
1678# ac_fn_c_try_run LINENO
1679# ----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681# that executables *can* be run.
1682ac_fn_c_try_run ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>&5
1693  ac_status=$?
1694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696  { { case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_try") 2>&5
1703  ac_status=$?
1704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; }; }; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: program exited with status $ac_status" >&5
1709       $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712       ac_retval=$ac_status
1713fi
1714  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716  as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_run
1719
1720# ac_fn_c_check_func LINENO FUNC VAR
1721# ----------------------------------
1722# Tests whether FUNC exists, setting the cache variable VAR accordingly
1723ac_fn_c_check_func ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if eval \${$3+:} false; then :
1729  $as_echo_n "(cached) " >&6
1730else
1731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732/* end confdefs.h.  */
1733/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1735#define $2 innocuous_$2
1736
1737/* System header to define __stub macros and hopefully few prototypes,
1738    which can conflict with char $2 (); below.
1739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740    <limits.h> exists even on freestanding compilers.  */
1741
1742#ifdef __STDC__
1743# include <limits.h>
1744#else
1745# include <assert.h>
1746#endif
1747
1748#undef $2
1749
1750/* Override any GCC internal prototype to avoid an error.
1751   Use char because int might match the return type of a GCC
1752   builtin and then its argument prototype would still apply.  */
1753#ifdef __cplusplus
1754extern "C"
1755#endif
1756char $2 ();
1757/* The GNU C library defines this for functions which it implements
1758    to always fail with ENOSYS.  Some functions are actually named
1759    something starting with __ and the normal name is an alias.  */
1760#if defined __stub_$2 || defined __stub___$2
1761choke me
1762#endif
1763
1764int
1765main ()
1766{
1767return $2 ();
1768  ;
1769  return 0;
1770}
1771_ACEOF
1772if ac_fn_c_try_link "$LINENO"; then :
1773  eval "$3=yes"
1774else
1775  eval "$3=no"
1776fi
1777rm -f core conftest.err conftest.$ac_objext \
1778    conftest$ac_exeext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_func
1786
1787# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1788# ---------------------------------------------
1789# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1790# accordingly.
1791ac_fn_c_check_decl ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  as_decl_name=`echo $2|sed 's/ *(.*//'`
1795  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1797$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1798if eval \${$3+:} false; then :
1799  $as_echo_n "(cached) " >&6
1800else
1801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h.  */
1803$4
1804int
1805main ()
1806{
1807#ifndef $as_decl_name
1808#ifdef __cplusplus
1809  (void) $as_decl_use;
1810#else
1811  (void) $as_decl_name;
1812#endif
1813#endif
1814
1815  ;
1816  return 0;
1817}
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820  eval "$3=yes"
1821else
1822  eval "$3=no"
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831} # ac_fn_c_check_decl
1832cat >config.log <<_ACEOF
1833This file contains any messages produced by compilers while
1834running configure, to aid debugging if configure makes a mistake.
1835
1836It was created by libXdamage $as_me 1.1.4, which was
1837generated by GNU Autoconf 2.68.  Invocation command line was
1838
1839  $ $0 $@
1840
1841_ACEOF
1842exec 5>>config.log
1843{
1844cat <<_ASUNAME
1845## --------- ##
1846## Platform. ##
1847## --------- ##
1848
1849hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1850uname -m = `(uname -m) 2>/dev/null || echo unknown`
1851uname -r = `(uname -r) 2>/dev/null || echo unknown`
1852uname -s = `(uname -s) 2>/dev/null || echo unknown`
1853uname -v = `(uname -v) 2>/dev/null || echo unknown`
1854
1855/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1856/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1857
1858/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1859/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1860/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1861/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1862/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1863/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1864/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1865
1866_ASUNAME
1867
1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869for as_dir in $PATH
1870do
1871  IFS=$as_save_IFS
1872  test -z "$as_dir" && as_dir=.
1873    $as_echo "PATH: $as_dir"
1874  done
1875IFS=$as_save_IFS
1876
1877} >&5
1878
1879cat >&5 <<_ACEOF
1880
1881
1882## ----------- ##
1883## Core tests. ##
1884## ----------- ##
1885
1886_ACEOF
1887
1888
1889# Keep a trace of the command line.
1890# Strip out --no-create and --no-recursion so they do not pile up.
1891# Strip out --silent because we don't want to record it for future runs.
1892# Also quote any args containing shell meta-characters.
1893# Make two passes to allow for proper duplicate-argument suppression.
1894ac_configure_args=
1895ac_configure_args0=
1896ac_configure_args1=
1897ac_must_keep_next=false
1898for ac_pass in 1 2
1899do
1900  for ac_arg
1901  do
1902    case $ac_arg in
1903    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1904    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1905    | -silent | --silent | --silen | --sile | --sil)
1906      continue ;;
1907    *\'*)
1908      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1909    esac
1910    case $ac_pass in
1911    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1912    2)
1913      as_fn_append ac_configure_args1 " '$ac_arg'"
1914      if test $ac_must_keep_next = true; then
1915	ac_must_keep_next=false # Got value, back to normal.
1916      else
1917	case $ac_arg in
1918	  *=* | --config-cache | -C | -disable-* | --disable-* \
1919	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1920	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1921	  | -with-* | --with-* | -without-* | --without-* | --x)
1922	    case "$ac_configure_args0 " in
1923	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1924	    esac
1925	    ;;
1926	  -* ) ac_must_keep_next=true ;;
1927	esac
1928      fi
1929      as_fn_append ac_configure_args " '$ac_arg'"
1930      ;;
1931    esac
1932  done
1933done
1934{ ac_configure_args0=; unset ac_configure_args0;}
1935{ ac_configure_args1=; unset ac_configure_args1;}
1936
1937# When interrupted or exit'd, cleanup temporary files, and complete
1938# config.log.  We remove comments because anyway the quotes in there
1939# would cause problems or look ugly.
1940# WARNING: Use '\'' to represent an apostrophe within the trap.
1941# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1942trap 'exit_status=$?
1943  # Save into config.log some information that might help in debugging.
1944  {
1945    echo
1946
1947    $as_echo "## ---------------- ##
1948## Cache variables. ##
1949## ---------------- ##"
1950    echo
1951    # The following way of writing the cache mishandles newlines in values,
1952(
1953  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1954    eval ac_val=\$$ac_var
1955    case $ac_val in #(
1956    *${as_nl}*)
1957      case $ac_var in #(
1958      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1959$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1960      esac
1961      case $ac_var in #(
1962      _ | IFS | as_nl) ;; #(
1963      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1964      *) { eval $ac_var=; unset $ac_var;} ;;
1965      esac ;;
1966    esac
1967  done
1968  (set) 2>&1 |
1969    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1970    *${as_nl}ac_space=\ *)
1971      sed -n \
1972	"s/'\''/'\''\\\\'\'''\''/g;
1973	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1974      ;; #(
1975    *)
1976      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1977      ;;
1978    esac |
1979    sort
1980)
1981    echo
1982
1983    $as_echo "## ----------------- ##
1984## Output variables. ##
1985## ----------------- ##"
1986    echo
1987    for ac_var in $ac_subst_vars
1988    do
1989      eval ac_val=\$$ac_var
1990      case $ac_val in
1991      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992      esac
1993      $as_echo "$ac_var='\''$ac_val'\''"
1994    done | sort
1995    echo
1996
1997    if test -n "$ac_subst_files"; then
1998      $as_echo "## ------------------- ##
1999## File substitutions. ##
2000## ------------------- ##"
2001      echo
2002      for ac_var in $ac_subst_files
2003      do
2004	eval ac_val=\$$ac_var
2005	case $ac_val in
2006	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007	esac
2008	$as_echo "$ac_var='\''$ac_val'\''"
2009      done | sort
2010      echo
2011    fi
2012
2013    if test -s confdefs.h; then
2014      $as_echo "## ----------- ##
2015## confdefs.h. ##
2016## ----------- ##"
2017      echo
2018      cat confdefs.h
2019      echo
2020    fi
2021    test "$ac_signal" != 0 &&
2022      $as_echo "$as_me: caught signal $ac_signal"
2023    $as_echo "$as_me: exit $exit_status"
2024  } >&5
2025  rm -f core *.core core.conftest.* &&
2026    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2027    exit $exit_status
2028' 0
2029for ac_signal in 1 2 13 15; do
2030  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2031done
2032ac_signal=0
2033
2034# confdefs.h avoids OS command line length limits that DEFS can exceed.
2035rm -f -r conftest* confdefs.h
2036
2037$as_echo "/* confdefs.h */" > confdefs.h
2038
2039# Predefined preprocessor variables.
2040
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_NAME "$PACKAGE_NAME"
2043_ACEOF
2044
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2047_ACEOF
2048
2049cat >>confdefs.h <<_ACEOF
2050#define PACKAGE_VERSION "$PACKAGE_VERSION"
2051_ACEOF
2052
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_STRING "$PACKAGE_STRING"
2055_ACEOF
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2059_ACEOF
2060
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_URL "$PACKAGE_URL"
2063_ACEOF
2064
2065
2066# Let the site file select an alternate cache file if it wants to.
2067# Prefer an explicitly selected file to automatically selected ones.
2068ac_site_file1=NONE
2069ac_site_file2=NONE
2070if test -n "$CONFIG_SITE"; then
2071  # We do not want a PATH search for config.site.
2072  case $CONFIG_SITE in #((
2073    -*)  ac_site_file1=./$CONFIG_SITE;;
2074    */*) ac_site_file1=$CONFIG_SITE;;
2075    *)   ac_site_file1=./$CONFIG_SITE;;
2076  esac
2077elif test "x$prefix" != xNONE; then
2078  ac_site_file1=$prefix/share/config.site
2079  ac_site_file2=$prefix/etc/config.site
2080else
2081  ac_site_file1=$ac_default_prefix/share/config.site
2082  ac_site_file2=$ac_default_prefix/etc/config.site
2083fi
2084for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2085do
2086  test "x$ac_site_file" = xNONE && continue
2087  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2090    sed 's/^/| /' "$ac_site_file" >&5
2091    . "$ac_site_file" \
2092      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2094as_fn_error $? "failed to load site script $ac_site_file
2095See \`config.log' for more details" "$LINENO" 5; }
2096  fi
2097done
2098
2099if test -r "$cache_file"; then
2100  # Some versions of bash will fail to source /dev/null (special files
2101  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2102  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2103    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2104$as_echo "$as_me: loading cache $cache_file" >&6;}
2105    case $cache_file in
2106      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2107      *)                      . "./$cache_file";;
2108    esac
2109  fi
2110else
2111  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2112$as_echo "$as_me: creating cache $cache_file" >&6;}
2113  >$cache_file
2114fi
2115
2116# Check that the precious variables saved in the cache have kept the same
2117# value.
2118ac_cache_corrupted=false
2119for ac_var in $ac_precious_vars; do
2120  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2121  eval ac_new_set=\$ac_env_${ac_var}_set
2122  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2123  eval ac_new_val=\$ac_env_${ac_var}_value
2124  case $ac_old_set,$ac_new_set in
2125    set,)
2126      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2127$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2128      ac_cache_corrupted=: ;;
2129    ,set)
2130      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2131$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2132      ac_cache_corrupted=: ;;
2133    ,);;
2134    *)
2135      if test "x$ac_old_val" != "x$ac_new_val"; then
2136	# differences in whitespace do not lead to failure.
2137	ac_old_val_w=`echo x $ac_old_val`
2138	ac_new_val_w=`echo x $ac_new_val`
2139	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2140	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2141$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2142	  ac_cache_corrupted=:
2143	else
2144	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2145$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2146	  eval $ac_var=\$ac_old_val
2147	fi
2148	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2149$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2150	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2151$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2152      fi;;
2153  esac
2154  # Pass precious variables to config.status.
2155  if test "$ac_new_set" = set; then
2156    case $ac_new_val in
2157    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2158    *) ac_arg=$ac_var=$ac_new_val ;;
2159    esac
2160    case " $ac_configure_args " in
2161      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2162      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2163    esac
2164  fi
2165done
2166if $ac_cache_corrupted; then
2167  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2170$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2171  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2172fi
2173## -------------------- ##
2174## Main body of script. ##
2175## -------------------- ##
2176
2177ac_ext=c
2178ac_cpp='$CPP $CPPFLAGS'
2179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181ac_compiler_gnu=$ac_cv_c_compiler_gnu
2182
2183
2184
2185ac_config_headers="$ac_config_headers config.h"
2186
2187
2188# Initialize Automake
2189am__api_version='1.11'
2190
2191ac_aux_dir=
2192for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2193  if test -f "$ac_dir/install-sh"; then
2194    ac_aux_dir=$ac_dir
2195    ac_install_sh="$ac_aux_dir/install-sh -c"
2196    break
2197  elif test -f "$ac_dir/install.sh"; then
2198    ac_aux_dir=$ac_dir
2199    ac_install_sh="$ac_aux_dir/install.sh -c"
2200    break
2201  elif test -f "$ac_dir/shtool"; then
2202    ac_aux_dir=$ac_dir
2203    ac_install_sh="$ac_aux_dir/shtool install -c"
2204    break
2205  fi
2206done
2207if test -z "$ac_aux_dir"; then
2208  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2209fi
2210
2211# These three variables are undocumented and unsupported,
2212# and are intended to be withdrawn in a future Autoconf release.
2213# They can cause serious problems if a builder's source tree is in a directory
2214# whose full name contains unusual characters.
2215ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2216ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2217ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2218
2219
2220# Find a good install program.  We prefer a C program (faster),
2221# so one script is as good as another.  But avoid the broken or
2222# incompatible versions:
2223# SysV /etc/install, /usr/sbin/install
2224# SunOS /usr/etc/install
2225# IRIX /sbin/install
2226# AIX /bin/install
2227# AmigaOS /C/install, which installs bootblocks on floppy discs
2228# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2229# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2230# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2231# OS/2's system install, which has a completely different semantic
2232# ./install, which can be erroneously created by make from ./install.sh.
2233# Reject install programs that cannot install multiple files.
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2235$as_echo_n "checking for a BSD-compatible install... " >&6; }
2236if test -z "$INSTALL"; then
2237if ${ac_cv_path_install+:} false; then :
2238  $as_echo_n "(cached) " >&6
2239else
2240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245    # Account for people who put trailing slashes in PATH elements.
2246case $as_dir/ in #((
2247  ./ | .// | /[cC]/* | \
2248  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2250  /usr/ucb/* ) ;;
2251  *)
2252    # OSF1 and SCO ODT 3.0 have their own names for install.
2253    # Don't use installbsd from OSF since it installs stuff as root
2254    # by default.
2255    for ac_prog in ginstall scoinst install; do
2256      for ac_exec_ext in '' $ac_executable_extensions; do
2257	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2258	  if test $ac_prog = install &&
2259	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260	    # AIX install.  It has an incompatible calling convention.
2261	    :
2262	  elif test $ac_prog = install &&
2263	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264	    # program-specific install script used by HP pwplus--don't use.
2265	    :
2266	  else
2267	    rm -rf conftest.one conftest.two conftest.dir
2268	    echo one > conftest.one
2269	    echo two > conftest.two
2270	    mkdir conftest.dir
2271	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2272	      test -s conftest.one && test -s conftest.two &&
2273	      test -s conftest.dir/conftest.one &&
2274	      test -s conftest.dir/conftest.two
2275	    then
2276	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2277	      break 3
2278	    fi
2279	  fi
2280	fi
2281      done
2282    done
2283    ;;
2284esac
2285
2286  done
2287IFS=$as_save_IFS
2288
2289rm -rf conftest.one conftest.two conftest.dir
2290
2291fi
2292  if test "${ac_cv_path_install+set}" = set; then
2293    INSTALL=$ac_cv_path_install
2294  else
2295    # As a last resort, use the slow shell script.  Don't cache a
2296    # value for INSTALL within a source directory, because that will
2297    # break other packages using the cache if that directory is
2298    # removed, or if the value is a relative name.
2299    INSTALL=$ac_install_sh
2300  fi
2301fi
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2303$as_echo "$INSTALL" >&6; }
2304
2305# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306# It thinks the first close brace ends the variable substitution.
2307test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2308
2309test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2310
2311test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2312
2313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2314$as_echo_n "checking whether build environment is sane... " >&6; }
2315# Just in case
2316sleep 1
2317echo timestamp > conftest.file
2318# Reject unsafe characters in $srcdir or the absolute working directory
2319# name.  Accept space and tab only in the latter.
2320am_lf='
2321'
2322case `pwd` in
2323  *[\\\"\#\$\&\'\`$am_lf]*)
2324    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2325esac
2326case $srcdir in
2327  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2328    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2329esac
2330
2331# Do `set' in a subshell so we don't clobber the current shell's
2332# arguments.  Must try -L first in case configure is actually a
2333# symlink; some systems play weird games with the mod time of symlinks
2334# (eg FreeBSD returns the mod time of the symlink's containing
2335# directory).
2336if (
2337   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2338   if test "$*" = "X"; then
2339      # -L didn't work.
2340      set X `ls -t "$srcdir/configure" conftest.file`
2341   fi
2342   rm -f conftest.file
2343   if test "$*" != "X $srcdir/configure conftest.file" \
2344      && test "$*" != "X conftest.file $srcdir/configure"; then
2345
2346      # If neither matched, then we have a broken ls.  This can happen
2347      # if, for instance, CONFIG_SHELL is bash and it inherits a
2348      # broken ls alias from the environment.  This has actually
2349      # happened.  Such a system could not be considered "sane".
2350      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2351alias in your environment" "$LINENO" 5
2352   fi
2353
2354   test "$2" = conftest.file
2355   )
2356then
2357   # Ok.
2358   :
2359else
2360   as_fn_error $? "newly created file is older than distributed files!
2361Check your system clock" "$LINENO" 5
2362fi
2363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2364$as_echo "yes" >&6; }
2365test "$program_prefix" != NONE &&
2366  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2367# Use a double $ so make ignores it.
2368test "$program_suffix" != NONE &&
2369  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2370# Double any \ or $.
2371# By default was `s,x,x', remove it if useless.
2372ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2373program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2374
2375# expand $ac_aux_dir to an absolute path
2376am_aux_dir=`cd $ac_aux_dir && pwd`
2377
2378if test x"${MISSING+set}" != xset; then
2379  case $am_aux_dir in
2380  *\ * | *\	*)
2381    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2382  *)
2383    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2384  esac
2385fi
2386# Use eval to expand $SHELL
2387if eval "$MISSING --run true"; then
2388  am_missing_run="$MISSING --run "
2389else
2390  am_missing_run=
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2392$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2393fi
2394
2395if test x"${install_sh}" != xset; then
2396  case $am_aux_dir in
2397  *\ * | *\	*)
2398    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2399  *)
2400    install_sh="\${SHELL} $am_aux_dir/install-sh"
2401  esac
2402fi
2403
2404# Installed binaries are usually stripped using `strip' when the user
2405# run `make install-strip'.  However `strip' might not be the right
2406# tool to use in cross-compilation environments, therefore Automake
2407# will honor the `STRIP' environment variable to overrule this program.
2408if test "$cross_compiling" != no; then
2409  if test -n "$ac_tool_prefix"; then
2410  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411set dummy ${ac_tool_prefix}strip; ac_word=$2
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
2414if ${ac_cv_prog_STRIP+:} false; then :
2415  $as_echo_n "(cached) " >&6
2416else
2417  if test -n "$STRIP"; then
2418  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419else
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425    for ac_exec_ext in '' $ac_executable_extensions; do
2426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429    break 2
2430  fi
2431done
2432  done
2433IFS=$as_save_IFS
2434
2435fi
2436fi
2437STRIP=$ac_cv_prog_STRIP
2438if test -n "$STRIP"; then
2439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2440$as_echo "$STRIP" >&6; }
2441else
2442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443$as_echo "no" >&6; }
2444fi
2445
2446
2447fi
2448if test -z "$ac_cv_prog_STRIP"; then
2449  ac_ct_STRIP=$STRIP
2450  # Extract the first word of "strip", so it can be a program name with args.
2451set dummy strip; ac_word=$2
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
2454if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  if test -n "$ac_ct_STRIP"; then
2458  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    for ac_exec_ext in '' $ac_executable_extensions; do
2466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467    ac_cv_prog_ac_ct_STRIP="strip"
2468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469    break 2
2470  fi
2471done
2472  done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478if test -n "$ac_ct_STRIP"; then
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2480$as_echo "$ac_ct_STRIP" >&6; }
2481else
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483$as_echo "no" >&6; }
2484fi
2485
2486  if test "x$ac_ct_STRIP" = x; then
2487    STRIP=":"
2488  else
2489    case $cross_compiling:$ac_tool_warned in
2490yes:)
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493ac_tool_warned=yes ;;
2494esac
2495    STRIP=$ac_ct_STRIP
2496  fi
2497else
2498  STRIP="$ac_cv_prog_STRIP"
2499fi
2500
2501fi
2502INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2503
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2505$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2506if test -z "$MKDIR_P"; then
2507  if ${ac_cv_path_mkdir+:} false; then :
2508  $as_echo_n "(cached) " >&6
2509else
2510  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2512do
2513  IFS=$as_save_IFS
2514  test -z "$as_dir" && as_dir=.
2515    for ac_prog in mkdir gmkdir; do
2516	 for ac_exec_ext in '' $ac_executable_extensions; do
2517	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2518	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2519	     'mkdir (GNU coreutils) '* | \
2520	     'mkdir (coreutils) '* | \
2521	     'mkdir (fileutils) '4.1*)
2522	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2523	       break 3;;
2524	   esac
2525	 done
2526       done
2527  done
2528IFS=$as_save_IFS
2529
2530fi
2531
2532  test -d ./--version && rmdir ./--version
2533  if test "${ac_cv_path_mkdir+set}" = set; then
2534    MKDIR_P="$ac_cv_path_mkdir -p"
2535  else
2536    # As a last resort, use the slow shell script.  Don't cache a
2537    # value for MKDIR_P within a source directory, because that will
2538    # break other packages using the cache if that directory is
2539    # removed, or if the value is a relative name.
2540    MKDIR_P="$ac_install_sh -d"
2541  fi
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2544$as_echo "$MKDIR_P" >&6; }
2545
2546mkdir_p="$MKDIR_P"
2547case $mkdir_p in
2548  [\\/$]* | ?:[\\/]*) ;;
2549  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2550esac
2551
2552for ac_prog in gawk mawk nawk awk
2553do
2554  # Extract the first word of "$ac_prog", so it can be a program name with args.
2555set dummy $ac_prog; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if ${ac_cv_prog_AWK+:} false; then :
2559  $as_echo_n "(cached) " >&6
2560else
2561  if test -n "$AWK"; then
2562  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_exec_ext in '' $ac_executable_extensions; do
2570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571    ac_cv_prog_AWK="$ac_prog"
2572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581AWK=$ac_cv_prog_AWK
2582if test -n "$AWK"; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2584$as_echo "$AWK" >&6; }
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591  test -n "$AWK" && break
2592done
2593
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2595$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2596set x ${MAKE-make}
2597ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2598if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  cat >conftest.make <<\_ACEOF
2602SHELL = /bin/sh
2603all:
2604	@echo '@@@%%%=$(MAKE)=@@@%%%'
2605_ACEOF
2606# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2607case `${MAKE-make} -f conftest.make 2>/dev/null` in
2608  *@@@%%%=?*=@@@%%%*)
2609    eval ac_cv_prog_make_${ac_make}_set=yes;;
2610  *)
2611    eval ac_cv_prog_make_${ac_make}_set=no;;
2612esac
2613rm -f conftest.make
2614fi
2615if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617$as_echo "yes" >&6; }
2618  SET_MAKE=
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622  SET_MAKE="MAKE=${MAKE-make}"
2623fi
2624
2625rm -rf .tst 2>/dev/null
2626mkdir .tst 2>/dev/null
2627if test -d .tst; then
2628  am__leading_dot=.
2629else
2630  am__leading_dot=_
2631fi
2632rmdir .tst 2>/dev/null
2633
2634if test "`cd $srcdir && pwd`" != "`pwd`"; then
2635  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2636  # is not polluted with repeated "-I."
2637  am__isrc=' -I$(srcdir)'
2638  # test to see if srcdir already configured
2639  if test -f $srcdir/config.status; then
2640    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2641  fi
2642fi
2643
2644# test whether we have cygpath
2645if test -z "$CYGPATH_W"; then
2646  if (cygpath --version) >/dev/null 2>/dev/null; then
2647    CYGPATH_W='cygpath -w'
2648  else
2649    CYGPATH_W=echo
2650  fi
2651fi
2652
2653
2654# Define the identity of the package.
2655 PACKAGE='libXdamage'
2656 VERSION='1.1.4'
2657
2658
2659cat >>confdefs.h <<_ACEOF
2660#define PACKAGE "$PACKAGE"
2661_ACEOF
2662
2663
2664cat >>confdefs.h <<_ACEOF
2665#define VERSION "$VERSION"
2666_ACEOF
2667
2668# Some tools Automake needs.
2669
2670ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2671
2672
2673AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2674
2675
2676AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2677
2678
2679AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2680
2681
2682MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2683
2684# We need awk for the "check" target.  The system "awk" is bad on
2685# some platforms.
2686# Always define AMTAR for backward compatibility.
2687
2688AMTAR=${AMTAR-"${am_missing_run}tar"}
2689
2690am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2691
2692
2693
2694
2695
2696
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2698$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2699    # Check whether --enable-maintainer-mode was given.
2700if test "${enable_maintainer_mode+set}" = set; then :
2701  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2702else
2703  USE_MAINTAINER_MODE=no
2704fi
2705
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2707$as_echo "$USE_MAINTAINER_MODE" >&6; }
2708   if test $USE_MAINTAINER_MODE = yes; then
2709  MAINTAINER_MODE_TRUE=
2710  MAINTAINER_MODE_FALSE='#'
2711else
2712  MAINTAINER_MODE_TRUE='#'
2713  MAINTAINER_MODE_FALSE=
2714fi
2715
2716  MAINT=$MAINTAINER_MODE_TRUE
2717
2718
2719
2720# Initialize libtool
2721case `pwd` in
2722  *\ * | *\	*)
2723    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2724$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2725esac
2726
2727
2728
2729macro_version='2.4.2'
2730macro_revision='1.3337'
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744ltmain="$ac_aux_dir/ltmain.sh"
2745
2746# Make sure we can run config.sub.
2747$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2749
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2751$as_echo_n "checking build system type... " >&6; }
2752if ${ac_cv_build+:} false; then :
2753  $as_echo_n "(cached) " >&6
2754else
2755  ac_build_alias=$build_alias
2756test "x$ac_build_alias" = x &&
2757  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2758test "x$ac_build_alias" = x &&
2759  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2760ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2761  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2762
2763fi
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2765$as_echo "$ac_cv_build" >&6; }
2766case $ac_cv_build in
2767*-*-*) ;;
2768*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2769esac
2770build=$ac_cv_build
2771ac_save_IFS=$IFS; IFS='-'
2772set x $ac_cv_build
2773shift
2774build_cpu=$1
2775build_vendor=$2
2776shift; shift
2777# Remember, the first character of IFS is used to create $*,
2778# except with old shells:
2779build_os=$*
2780IFS=$ac_save_IFS
2781case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2782
2783
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2785$as_echo_n "checking host system type... " >&6; }
2786if ${ac_cv_host+:} false; then :
2787  $as_echo_n "(cached) " >&6
2788else
2789  if test "x$host_alias" = x; then
2790  ac_cv_host=$ac_cv_build
2791else
2792  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2793    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2794fi
2795
2796fi
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2798$as_echo "$ac_cv_host" >&6; }
2799case $ac_cv_host in
2800*-*-*) ;;
2801*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2802esac
2803host=$ac_cv_host
2804ac_save_IFS=$IFS; IFS='-'
2805set x $ac_cv_host
2806shift
2807host_cpu=$1
2808host_vendor=$2
2809shift; shift
2810# Remember, the first character of IFS is used to create $*,
2811# except with old shells:
2812host_os=$*
2813IFS=$ac_save_IFS
2814case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2815
2816
2817# Backslashify metacharacters that are still active within
2818# double-quoted strings.
2819sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2820
2821# Same as above, but do not quote variable references.
2822double_quote_subst='s/\(["`\\]\)/\\\1/g'
2823
2824# Sed substitution to delay expansion of an escaped shell variable in a
2825# double_quote_subst'ed string.
2826delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2827
2828# Sed substitution to delay expansion of an escaped single quote.
2829delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2830
2831# Sed substitution to avoid accidental globbing in evaled expressions
2832no_glob_subst='s/\*/\\\*/g'
2833
2834ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2835ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2836ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2837
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2839$as_echo_n "checking how to print strings... " >&6; }
2840# Test print first, because it will be a builtin if present.
2841if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2842   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2843  ECHO='print -r --'
2844elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2845  ECHO='printf %s\n'
2846else
2847  # Use this function as a fallback that always works.
2848  func_fallback_echo ()
2849  {
2850    eval 'cat <<_LTECHO_EOF
2851$1
2852_LTECHO_EOF'
2853  }
2854  ECHO='func_fallback_echo'
2855fi
2856
2857# func_echo_all arg...
2858# Invoke $ECHO with all args, space-separated.
2859func_echo_all ()
2860{
2861    $ECHO ""
2862}
2863
2864case "$ECHO" in
2865  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2866$as_echo "printf" >&6; } ;;
2867  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2868$as_echo "print -r" >&6; } ;;
2869  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2870$as_echo "cat" >&6; } ;;
2871esac
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886DEPDIR="${am__leading_dot}deps"
2887
2888ac_config_commands="$ac_config_commands depfiles"
2889
2890
2891am_make=${MAKE-make}
2892cat > confinc << 'END'
2893am__doit:
2894	@echo this is the am__doit target
2895.PHONY: am__doit
2896END
2897# If we don't find an include directive, just comment out the code.
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2899$as_echo_n "checking for style of include used by $am_make... " >&6; }
2900am__include="#"
2901am__quote=
2902_am_result=none
2903# First try GNU make style include.
2904echo "include confinc" > confmf
2905# Ignore all kinds of additional output from `make'.
2906case `$am_make -s -f confmf 2> /dev/null` in #(
2907*the\ am__doit\ target*)
2908  am__include=include
2909  am__quote=
2910  _am_result=GNU
2911  ;;
2912esac
2913# Now try BSD make style include.
2914if test "$am__include" = "#"; then
2915   echo '.include "confinc"' > confmf
2916   case `$am_make -s -f confmf 2> /dev/null` in #(
2917   *the\ am__doit\ target*)
2918     am__include=.include
2919     am__quote="\""
2920     _am_result=BSD
2921     ;;
2922   esac
2923fi
2924
2925
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2927$as_echo "$_am_result" >&6; }
2928rm -f confinc confmf
2929
2930# Check whether --enable-dependency-tracking was given.
2931if test "${enable_dependency_tracking+set}" = set; then :
2932  enableval=$enable_dependency_tracking;
2933fi
2934
2935if test "x$enable_dependency_tracking" != xno; then
2936  am_depcomp="$ac_aux_dir/depcomp"
2937  AMDEPBACKSLASH='\'
2938  am__nodep='_no'
2939fi
2940 if test "x$enable_dependency_tracking" != xno; then
2941  AMDEP_TRUE=
2942  AMDEP_FALSE='#'
2943else
2944  AMDEP_TRUE='#'
2945  AMDEP_FALSE=
2946fi
2947
2948
2949ac_ext=c
2950ac_cpp='$CPP $CPPFLAGS'
2951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954if test -n "$ac_tool_prefix"; then
2955  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2956set dummy ${ac_tool_prefix}gcc; ac_word=$2
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
2959if ${ac_cv_prog_CC+:} false; then :
2960  $as_echo_n "(cached) " >&6
2961else
2962  if test -n "$CC"; then
2963  ac_cv_prog_CC="$CC" # Let the user override the test.
2964else
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968  IFS=$as_save_IFS
2969  test -z "$as_dir" && as_dir=.
2970    for ac_exec_ext in '' $ac_executable_extensions; do
2971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974    break 2
2975  fi
2976done
2977  done
2978IFS=$as_save_IFS
2979
2980fi
2981fi
2982CC=$ac_cv_prog_CC
2983if test -n "$CC"; then
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985$as_echo "$CC" >&6; }
2986else
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
2989fi
2990
2991
2992fi
2993if test -z "$ac_cv_prog_CC"; then
2994  ac_ct_CC=$CC
2995  # Extract the first word of "gcc", so it can be a program name with args.
2996set dummy gcc; ac_word=$2
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998$as_echo_n "checking for $ac_word... " >&6; }
2999if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000  $as_echo_n "(cached) " >&6
3001else
3002  if test -n "$ac_ct_CC"; then
3003  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008  IFS=$as_save_IFS
3009  test -z "$as_dir" && as_dir=.
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012    ac_cv_prog_ac_ct_CC="gcc"
3013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014    break 2
3015  fi
3016done
3017  done
3018IFS=$as_save_IFS
3019
3020fi
3021fi
3022ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023if test -n "$ac_ct_CC"; then
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025$as_echo "$ac_ct_CC" >&6; }
3026else
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
3029fi
3030
3031  if test "x$ac_ct_CC" = x; then
3032    CC=""
3033  else
3034    case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040    CC=$ac_ct_CC
3041  fi
3042else
3043  CC="$ac_cv_prog_CC"
3044fi
3045
3046if test -z "$CC"; then
3047          if test -n "$ac_tool_prefix"; then
3048    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}cc; ac_word=$2
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051$as_echo_n "checking for $ac_word... " >&6; }
3052if ${ac_cv_prog_CC+:} false; then :
3053  $as_echo_n "(cached) " >&6
3054else
3055  if test -n "$CC"; then
3056  ac_cv_prog_CC="$CC" # Let the user override the test.
3057else
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061  IFS=$as_save_IFS
3062  test -z "$as_dir" && as_dir=.
3063    for ac_exec_ext in '' $ac_executable_extensions; do
3064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065    ac_cv_prog_CC="${ac_tool_prefix}cc"
3066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067    break 2
3068  fi
3069done
3070  done
3071IFS=$as_save_IFS
3072
3073fi
3074fi
3075CC=$ac_cv_prog_CC
3076if test -n "$CC"; then
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078$as_echo "$CC" >&6; }
3079else
3080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081$as_echo "no" >&6; }
3082fi
3083
3084
3085  fi
3086fi
3087if test -z "$CC"; then
3088  # Extract the first word of "cc", so it can be a program name with args.
3089set dummy cc; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if ${ac_cv_prog_CC+:} false; then :
3093  $as_echo_n "(cached) " >&6
3094else
3095  if test -n "$CC"; then
3096  ac_cv_prog_CC="$CC" # Let the user override the test.
3097else
3098  ac_prog_rejected=no
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104    for ac_exec_ext in '' $ac_executable_extensions; do
3105  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3107       ac_prog_rejected=yes
3108       continue
3109     fi
3110    ac_cv_prog_CC="cc"
3111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115  done
3116IFS=$as_save_IFS
3117
3118if test $ac_prog_rejected = yes; then
3119  # We found a bogon in the path, so make sure we never use it.
3120  set dummy $ac_cv_prog_CC
3121  shift
3122  if test $# != 0; then
3123    # We chose a different compiler from the bogus one.
3124    # However, it has the same basename, so the bogon will be chosen
3125    # first if we set CC to just the basename; use the full file name.
3126    shift
3127    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3128  fi
3129fi
3130fi
3131fi
3132CC=$ac_cv_prog_CC
3133if test -n "$CC"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135$as_echo "$CC" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142fi
3143if test -z "$CC"; then
3144  if test -n "$ac_tool_prefix"; then
3145  for ac_prog in cl.exe
3146  do
3147    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_CC+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184    test -n "$CC" && break
3185  done
3186fi
3187if test -z "$CC"; then
3188  ac_ct_CC=$CC
3189  for ac_prog in cl.exe
3190do
3191  # Extract the first word of "$ac_prog", so it can be a program name with args.
3192set dummy $ac_prog; ac_word=$2
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194$as_echo_n "checking for $ac_word... " >&6; }
3195if ${ac_cv_prog_ac_ct_CC+:} false; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198  if test -n "$ac_ct_CC"; then
3199  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200else
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204  IFS=$as_save_IFS
3205  test -z "$as_dir" && as_dir=.
3206    for ac_exec_ext in '' $ac_executable_extensions; do
3207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208    ac_cv_prog_ac_ct_CC="$ac_prog"
3209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210    break 2
3211  fi
3212done
3213  done
3214IFS=$as_save_IFS
3215
3216fi
3217fi
3218ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219if test -n "$ac_ct_CC"; then
3220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221$as_echo "$ac_ct_CC" >&6; }
3222else
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225fi
3226
3227
3228  test -n "$ac_ct_CC" && break
3229done
3230
3231  if test "x$ac_ct_CC" = x; then
3232    CC=""
3233  else
3234    case $cross_compiling:$ac_tool_warned in
3235yes:)
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238ac_tool_warned=yes ;;
3239esac
3240    CC=$ac_ct_CC
3241  fi
3242fi
3243
3244fi
3245
3246
3247test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249as_fn_error $? "no acceptable C compiler found in \$PATH
3250See \`config.log' for more details" "$LINENO" 5; }
3251
3252# Provide some information about the compiler.
3253$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3254set X $ac_compile
3255ac_compiler=$2
3256for ac_option in --version -v -V -qversion; do
3257  { { ac_try="$ac_compiler $ac_option >&5"
3258case "(($ac_try" in
3259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260  *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
3264  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3265  ac_status=$?
3266  if test -s conftest.err; then
3267    sed '10a\
3268... rest of stderr output deleted ...
3269         10q' conftest.err >conftest.er1
3270    cat conftest.er1 >&5
3271  fi
3272  rm -f conftest.er1 conftest.err
3273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274  test $ac_status = 0; }
3275done
3276
3277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h.  */
3279
3280int
3281main ()
3282{
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288ac_clean_files_save=$ac_clean_files
3289ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290# Try to create an executable without -o first, disregard a.out.
3291# It will help us diagnose broken compilers, and finding out an intuition
3292# of exeext.
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3294$as_echo_n "checking whether the C compiler works... " >&6; }
3295ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296
3297# The possible output files:
3298ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299
3300ac_rmfiles=
3301for ac_file in $ac_files
3302do
3303  case $ac_file in
3304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306  esac
3307done
3308rm -f $ac_rmfiles
3309
3310if { { ac_try="$ac_link_default"
3311case "(($ac_try" in
3312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313  *) ac_try_echo=$ac_try;;
3314esac
3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316$as_echo "$ac_try_echo"; } >&5
3317  (eval "$ac_link_default") 2>&5
3318  ac_status=$?
3319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320  test $ac_status = 0; }; then :
3321  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3324# so that the user can short-circuit this test for compilers unknown to
3325# Autoconf.
3326for ac_file in $ac_files ''
3327do
3328  test -f "$ac_file" || continue
3329  case $ac_file in
3330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3331	;;
3332    [ab].out )
3333	# We found the default executable, but exeext='' is most
3334	# certainly right.
3335	break;;
3336    *.* )
3337	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338	then :; else
3339	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340	fi
3341	# We set ac_cv_exeext here because the later test for it is not
3342	# safe: cross compilers may not add the suffix if given an `-o'
3343	# argument, so we may need to know it at that point already.
3344	# Even if this section looks crufty: it has the advantage of
3345	# actually working.
3346	break;;
3347    * )
3348	break;;
3349  esac
3350done
3351test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
3353else
3354  ac_file=''
3355fi
3356if test -z "$ac_file"; then :
3357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
3359$as_echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error 77 "C compiler cannot create executables
3365See \`config.log' for more details" "$LINENO" 5; }
3366else
3367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368$as_echo "yes" >&6; }
3369fi
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3371$as_echo_n "checking for C compiler default output file name... " >&6; }
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3373$as_echo "$ac_file" >&6; }
3374ac_exeext=$ac_cv_exeext
3375
3376rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3377ac_clean_files=$ac_clean_files_save
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3379$as_echo_n "checking for suffix of executables... " >&6; }
3380if { { ac_try="$ac_link"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387  (eval "$ac_link") 2>&5
3388  ac_status=$?
3389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390  test $ac_status = 0; }; then :
3391  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3393# work properly (i.e., refer to `conftest.exe'), while it won't with
3394# `rm'.
3395for ac_file in conftest.exe conftest conftest.*; do
3396  test -f "$ac_file" || continue
3397  case $ac_file in
3398    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400	  break;;
3401    * ) break;;
3402  esac
3403done
3404else
3405  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3408See \`config.log' for more details" "$LINENO" 5; }
3409fi
3410rm -f conftest conftest$ac_cv_exeext
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3412$as_echo "$ac_cv_exeext" >&6; }
3413
3414rm -f conftest.$ac_ext
3415EXEEXT=$ac_cv_exeext
3416ac_exeext=$EXEEXT
3417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419#include <stdio.h>
3420int
3421main ()
3422{
3423FILE *f = fopen ("conftest.out", "w");
3424 return ferror (f) || fclose (f) != 0;
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430ac_clean_files="$ac_clean_files conftest.out"
3431# Check that the compiler produces executables we can run.  If not, either
3432# the compiler is broken, or we cross compile.
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3434$as_echo_n "checking whether we are cross compiling... " >&6; }
3435if test "$cross_compiling" != yes; then
3436  { { ac_try="$ac_link"
3437case "(($ac_try" in
3438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439  *) ac_try_echo=$ac_try;;
3440esac
3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
3443  (eval "$ac_link") 2>&5
3444  ac_status=$?
3445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446  test $ac_status = 0; }
3447  if { ac_try='./conftest$ac_cv_exeext'
3448  { { case "(($ac_try" in
3449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450  *) ac_try_echo=$ac_try;;
3451esac
3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453$as_echo "$ac_try_echo"; } >&5
3454  (eval "$ac_try") 2>&5
3455  ac_status=$?
3456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457  test $ac_status = 0; }; }; then
3458    cross_compiling=no
3459  else
3460    if test "$cross_compiling" = maybe; then
3461	cross_compiling=yes
3462    else
3463	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465as_fn_error $? "cannot run C compiled programs.
3466If you meant to cross compile, use \`--host'.
3467See \`config.log' for more details" "$LINENO" 5; }
3468    fi
3469  fi
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472$as_echo "$cross_compiling" >&6; }
3473
3474rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3475ac_clean_files=$ac_clean_files_save
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3477$as_echo_n "checking for suffix of object files... " >&6; }
3478if ${ac_cv_objext+:} false; then :
3479  $as_echo_n "(cached) " >&6
3480else
3481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h.  */
3483
3484int
3485main ()
3486{
3487
3488  ;
3489  return 0;
3490}
3491_ACEOF
3492rm -f conftest.o conftest.obj
3493if { { ac_try="$ac_compile"
3494case "(($ac_try" in
3495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496  *) ac_try_echo=$ac_try;;
3497esac
3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499$as_echo "$ac_try_echo"; } >&5
3500  (eval "$ac_compile") 2>&5
3501  ac_status=$?
3502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503  test $ac_status = 0; }; then :
3504  for ac_file in conftest.o conftest.obj conftest.*; do
3505  test -f "$ac_file" || continue;
3506  case $ac_file in
3507    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509       break;;
3510  esac
3511done
3512else
3513  $as_echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518as_fn_error $? "cannot compute suffix of object files: cannot compile
3519See \`config.log' for more details" "$LINENO" 5; }
3520fi
3521rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522fi
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3524$as_echo "$ac_cv_objext" >&6; }
3525OBJEXT=$ac_cv_objext
3526ac_objext=$OBJEXT
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3528$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529if ${ac_cv_c_compiler_gnu+:} false; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534
3535int
3536main ()
3537{
3538#ifndef __GNUC__
3539       choke me
3540#endif
3541
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546if ac_fn_c_try_compile "$LINENO"; then :
3547  ac_compiler_gnu=yes
3548else
3549  ac_compiler_gnu=no
3550fi
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552ac_cv_c_compiler_gnu=$ac_compiler_gnu
3553
3554fi
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3556$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3557if test $ac_compiler_gnu = yes; then
3558  GCC=yes
3559else
3560  GCC=
3561fi
3562ac_test_CFLAGS=${CFLAGS+set}
3563ac_save_CFLAGS=$CFLAGS
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3565$as_echo_n "checking whether $CC accepts -g... " >&6; }
3566if ${ac_cv_prog_cc_g+:} false; then :
3567  $as_echo_n "(cached) " >&6
3568else
3569  ac_save_c_werror_flag=$ac_c_werror_flag
3570   ac_c_werror_flag=yes
3571   ac_cv_prog_cc_g=no
3572   CFLAGS="-g"
3573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575
3576int
3577main ()
3578{
3579
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"; then :
3585  ac_cv_prog_cc_g=yes
3586else
3587  CFLAGS=""
3588      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600
3601else
3602  ac_c_werror_flag=$ac_save_c_werror_flag
3603	 CFLAGS="-g"
3604	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615if ac_fn_c_try_compile "$LINENO"; then :
3616  ac_cv_prog_cc_g=yes
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619fi
3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621fi
3622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623   ac_c_werror_flag=$ac_save_c_werror_flag
3624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3626$as_echo "$ac_cv_prog_cc_g" >&6; }
3627if test "$ac_test_CFLAGS" = set; then
3628  CFLAGS=$ac_save_CFLAGS
3629elif test $ac_cv_prog_cc_g = yes; then
3630  if test "$GCC" = yes; then
3631    CFLAGS="-g -O2"
3632  else
3633    CFLAGS="-g"
3634  fi
3635else
3636  if test "$GCC" = yes; then
3637    CFLAGS="-O2"
3638  else
3639    CFLAGS=
3640  fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3644if ${ac_cv_prog_cc_c89+:} false; then :
3645  $as_echo_n "(cached) " >&6
3646else
3647  ac_cv_prog_cc_c89=no
3648ac_save_CC=$CC
3649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h.  */
3651#include <stdarg.h>
3652#include <stdio.h>
3653#include <sys/types.h>
3654#include <sys/stat.h>
3655/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3656struct buf { int x; };
3657FILE * (*rcsopen) (struct buf *, struct stat *, int);
3658static char *e (p, i)
3659     char **p;
3660     int i;
3661{
3662  return p[i];
3663}
3664static char *f (char * (*g) (char **, int), char **p, ...)
3665{
3666  char *s;
3667  va_list v;
3668  va_start (v,p);
3669  s = g (p, va_arg (v,int));
3670  va_end (v);
3671  return s;
3672}
3673
3674/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3675   function prototypes and stuff, but not '\xHH' hex character constants.
3676   These don't provoke an error unfortunately, instead are silently treated
3677   as 'x'.  The following induces an error, until -std is added to get
3678   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3679   array size at least.  It's necessary to write '\x00'==0 to get something
3680   that's true only with -std.  */
3681int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3682
3683/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3684   inside strings and character constants.  */
3685#define FOO(x) 'x'
3686int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3687
3688int test (int i, double x);
3689struct s1 {int (*f) (int a);};
3690struct s2 {int (*f) (double a);};
3691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692int argc;
3693char **argv;
3694int
3695main ()
3696{
3697return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3703	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704do
3705  CC="$ac_save_CC $ac_arg"
3706  if ac_fn_c_try_compile "$LINENO"; then :
3707  ac_cv_prog_cc_c89=$ac_arg
3708fi
3709rm -f core conftest.err conftest.$ac_objext
3710  test "x$ac_cv_prog_cc_c89" != "xno" && break
3711done
3712rm -f conftest.$ac_ext
3713CC=$ac_save_CC
3714
3715fi
3716# AC_CACHE_VAL
3717case "x$ac_cv_prog_cc_c89" in
3718  x)
3719    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3720$as_echo "none needed" >&6; } ;;
3721  xno)
3722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723$as_echo "unsupported" >&6; } ;;
3724  *)
3725    CC="$CC $ac_cv_prog_cc_c89"
3726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3727$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3728esac
3729if test "x$ac_cv_prog_cc_c89" != xno; then :
3730
3731fi
3732
3733ac_ext=c
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738
3739depcc="$CC"   am_compiler_list=
3740
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3742$as_echo_n "checking dependency style of $depcc... " >&6; }
3743if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3747  # We make a subdir and do the tests there.  Otherwise we can end up
3748  # making bogus files that we don't know about and never remove.  For
3749  # instance it was reported that on HP-UX the gcc test will end up
3750  # making a dummy file named `D' -- because `-MD' means `put the output
3751  # in D'.
3752  rm -rf conftest.dir
3753  mkdir conftest.dir
3754  # Copy depcomp to subdir because otherwise we won't find it if we're
3755  # using a relative directory.
3756  cp "$am_depcomp" conftest.dir
3757  cd conftest.dir
3758  # We will build objects and dependencies in a subdirectory because
3759  # it helps to detect inapplicable dependency modes.  For instance
3760  # both Tru64's cc and ICC support -MD to output dependencies as a
3761  # side effect of compilation, but ICC will put the dependencies in
3762  # the current directory while Tru64 will put them in the object
3763  # directory.
3764  mkdir sub
3765
3766  am_cv_CC_dependencies_compiler_type=none
3767  if test "$am_compiler_list" = ""; then
3768     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3769  fi
3770  am__universal=false
3771  case " $depcc " in #(
3772     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3773     esac
3774
3775  for depmode in $am_compiler_list; do
3776    # Setup a source with many dependencies, because some compilers
3777    # like to wrap large dependency lists on column 80 (with \), and
3778    # we should not choose a depcomp mode which is confused by this.
3779    #
3780    # We need to recreate these files for each test, as the compiler may
3781    # overwrite some of them when testing with obscure command lines.
3782    # This happens at least with the AIX C compiler.
3783    : > sub/conftest.c
3784    for i in 1 2 3 4 5 6; do
3785      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3786      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3787      # Solaris 8's {/usr,}/bin/sh.
3788      touch sub/conftst$i.h
3789    done
3790    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3791
3792    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3793    # mode.  It turns out that the SunPro C++ compiler does not properly
3794    # handle `-M -o', and we need to detect this.  Also, some Intel
3795    # versions had trouble with output in subdirs
3796    am__obj=sub/conftest.${OBJEXT-o}
3797    am__minus_obj="-o $am__obj"
3798    case $depmode in
3799    gcc)
3800      # This depmode causes a compiler race in universal mode.
3801      test "$am__universal" = false || continue
3802      ;;
3803    nosideeffect)
3804      # after this tag, mechanisms are not by side-effect, so they'll
3805      # only be used when explicitly requested
3806      if test "x$enable_dependency_tracking" = xyes; then
3807	continue
3808      else
3809	break
3810      fi
3811      ;;
3812    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3813      # This compiler won't grok `-c -o', but also, the minuso test has
3814      # not run yet.  These depmodes are late enough in the game, and
3815      # so weak that their functioning should not be impacted.
3816      am__obj=conftest.${OBJEXT-o}
3817      am__minus_obj=
3818      ;;
3819    none) break ;;
3820    esac
3821    if depmode=$depmode \
3822       source=sub/conftest.c object=$am__obj \
3823       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3824       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3825         >/dev/null 2>conftest.err &&
3826       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3827       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3828       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3829       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3830      # icc doesn't choke on unknown options, it will just issue warnings
3831      # or remarks (even with -Werror).  So we grep stderr for any message
3832      # that says an option was ignored or not supported.
3833      # When given -MP, icc 7.0 and 7.1 complain thusly:
3834      #   icc: Command line warning: ignoring option '-M'; no argument required
3835      # The diagnosis changed in icc 8.0:
3836      #   icc: Command line remark: option '-MP' not supported
3837      if (grep 'ignoring option' conftest.err ||
3838          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3839        am_cv_CC_dependencies_compiler_type=$depmode
3840        break
3841      fi
3842    fi
3843  done
3844
3845  cd ..
3846  rm -rf conftest.dir
3847else
3848  am_cv_CC_dependencies_compiler_type=none
3849fi
3850
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3853$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3854CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3855
3856 if
3857  test "x$enable_dependency_tracking" != xno \
3858  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3859  am__fastdepCC_TRUE=
3860  am__fastdepCC_FALSE='#'
3861else
3862  am__fastdepCC_TRUE='#'
3863  am__fastdepCC_FALSE=
3864fi
3865
3866
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3868$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3869if ${ac_cv_path_SED+:} false; then :
3870  $as_echo_n "(cached) " >&6
3871else
3872            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3873     for ac_i in 1 2 3 4 5 6 7; do
3874       ac_script="$ac_script$as_nl$ac_script"
3875     done
3876     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3877     { ac_script=; unset ac_script;}
3878     if test -z "$SED"; then
3879  ac_path_SED_found=false
3880  # Loop through the user's path and test for each of PROGNAME-LIST
3881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884  IFS=$as_save_IFS
3885  test -z "$as_dir" && as_dir=.
3886    for ac_prog in sed gsed; do
3887    for ac_exec_ext in '' $ac_executable_extensions; do
3888      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3889      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3890# Check for GNU ac_path_SED and select it if it is found.
3891  # Check for GNU $ac_path_SED
3892case `"$ac_path_SED" --version 2>&1` in
3893*GNU*)
3894  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3895*)
3896  ac_count=0
3897  $as_echo_n 0123456789 >"conftest.in"
3898  while :
3899  do
3900    cat "conftest.in" "conftest.in" >"conftest.tmp"
3901    mv "conftest.tmp" "conftest.in"
3902    cp "conftest.in" "conftest.nl"
3903    $as_echo '' >> "conftest.nl"
3904    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906    as_fn_arith $ac_count + 1 && ac_count=$as_val
3907    if test $ac_count -gt ${ac_path_SED_max-0}; then
3908      # Best one so far, save it but keep looking for a better one
3909      ac_cv_path_SED="$ac_path_SED"
3910      ac_path_SED_max=$ac_count
3911    fi
3912    # 10*(2^10) chars as input seems more than enough
3913    test $ac_count -gt 10 && break
3914  done
3915  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916esac
3917
3918      $ac_path_SED_found && break 3
3919    done
3920  done
3921  done
3922IFS=$as_save_IFS
3923  if test -z "$ac_cv_path_SED"; then
3924    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3925  fi
3926else
3927  ac_cv_path_SED=$SED
3928fi
3929
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3932$as_echo "$ac_cv_path_SED" >&6; }
3933 SED="$ac_cv_path_SED"
3934  rm -f conftest.sed
3935
3936test -z "$SED" && SED=sed
3937Xsed="$SED -e 1s/^X//"
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3950$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3951if ${ac_cv_path_GREP+:} false; then :
3952  $as_echo_n "(cached) " >&6
3953else
3954  if test -z "$GREP"; then
3955  ac_path_GREP_found=false
3956  # Loop through the user's path and test for each of PROGNAME-LIST
3957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3959do
3960  IFS=$as_save_IFS
3961  test -z "$as_dir" && as_dir=.
3962    for ac_prog in grep ggrep; do
3963    for ac_exec_ext in '' $ac_executable_extensions; do
3964      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3965      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3966# Check for GNU ac_path_GREP and select it if it is found.
3967  # Check for GNU $ac_path_GREP
3968case `"$ac_path_GREP" --version 2>&1` in
3969*GNU*)
3970  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3971*)
3972  ac_count=0
3973  $as_echo_n 0123456789 >"conftest.in"
3974  while :
3975  do
3976    cat "conftest.in" "conftest.in" >"conftest.tmp"
3977    mv "conftest.tmp" "conftest.in"
3978    cp "conftest.in" "conftest.nl"
3979    $as_echo 'GREP' >> "conftest.nl"
3980    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3981    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3982    as_fn_arith $ac_count + 1 && ac_count=$as_val
3983    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3984      # Best one so far, save it but keep looking for a better one
3985      ac_cv_path_GREP="$ac_path_GREP"
3986      ac_path_GREP_max=$ac_count
3987    fi
3988    # 10*(2^10) chars as input seems more than enough
3989    test $ac_count -gt 10 && break
3990  done
3991  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3992esac
3993
3994      $ac_path_GREP_found && break 3
3995    done
3996  done
3997  done
3998IFS=$as_save_IFS
3999  if test -z "$ac_cv_path_GREP"; then
4000    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4001  fi
4002else
4003  ac_cv_path_GREP=$GREP
4004fi
4005
4006fi
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4008$as_echo "$ac_cv_path_GREP" >&6; }
4009 GREP="$ac_cv_path_GREP"
4010
4011
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4013$as_echo_n "checking for egrep... " >&6; }
4014if ${ac_cv_path_EGREP+:} false; then :
4015  $as_echo_n "(cached) " >&6
4016else
4017  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4018   then ac_cv_path_EGREP="$GREP -E"
4019   else
4020     if test -z "$EGREP"; then
4021  ac_path_EGREP_found=false
4022  # Loop through the user's path and test for each of PROGNAME-LIST
4023  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025do
4026  IFS=$as_save_IFS
4027  test -z "$as_dir" && as_dir=.
4028    for ac_prog in egrep; do
4029    for ac_exec_ext in '' $ac_executable_extensions; do
4030      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4032# Check for GNU ac_path_EGREP and select it if it is found.
4033  # Check for GNU $ac_path_EGREP
4034case `"$ac_path_EGREP" --version 2>&1` in
4035*GNU*)
4036  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4037*)
4038  ac_count=0
4039  $as_echo_n 0123456789 >"conftest.in"
4040  while :
4041  do
4042    cat "conftest.in" "conftest.in" >"conftest.tmp"
4043    mv "conftest.tmp" "conftest.in"
4044    cp "conftest.in" "conftest.nl"
4045    $as_echo 'EGREP' >> "conftest.nl"
4046    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048    as_fn_arith $ac_count + 1 && ac_count=$as_val
4049    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050      # Best one so far, save it but keep looking for a better one
4051      ac_cv_path_EGREP="$ac_path_EGREP"
4052      ac_path_EGREP_max=$ac_count
4053    fi
4054    # 10*(2^10) chars as input seems more than enough
4055    test $ac_count -gt 10 && break
4056  done
4057  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058esac
4059
4060      $ac_path_EGREP_found && break 3
4061    done
4062  done
4063  done
4064IFS=$as_save_IFS
4065  if test -z "$ac_cv_path_EGREP"; then
4066    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4067  fi
4068else
4069  ac_cv_path_EGREP=$EGREP
4070fi
4071
4072   fi
4073fi
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4075$as_echo "$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4077
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4080$as_echo_n "checking for fgrep... " >&6; }
4081if ${ac_cv_path_FGREP+:} false; then :
4082  $as_echo_n "(cached) " >&6
4083else
4084  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4085   then ac_cv_path_FGREP="$GREP -F"
4086   else
4087     if test -z "$FGREP"; then
4088  ac_path_FGREP_found=false
4089  # Loop through the user's path and test for each of PROGNAME-LIST
4090  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4092do
4093  IFS=$as_save_IFS
4094  test -z "$as_dir" && as_dir=.
4095    for ac_prog in fgrep; do
4096    for ac_exec_ext in '' $ac_executable_extensions; do
4097      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4098      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4099# Check for GNU ac_path_FGREP and select it if it is found.
4100  # Check for GNU $ac_path_FGREP
4101case `"$ac_path_FGREP" --version 2>&1` in
4102*GNU*)
4103  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4104*)
4105  ac_count=0
4106  $as_echo_n 0123456789 >"conftest.in"
4107  while :
4108  do
4109    cat "conftest.in" "conftest.in" >"conftest.tmp"
4110    mv "conftest.tmp" "conftest.in"
4111    cp "conftest.in" "conftest.nl"
4112    $as_echo 'FGREP' >> "conftest.nl"
4113    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115    as_fn_arith $ac_count + 1 && ac_count=$as_val
4116    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4117      # Best one so far, save it but keep looking for a better one
4118      ac_cv_path_FGREP="$ac_path_FGREP"
4119      ac_path_FGREP_max=$ac_count
4120    fi
4121    # 10*(2^10) chars as input seems more than enough
4122    test $ac_count -gt 10 && break
4123  done
4124  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4125esac
4126
4127      $ac_path_FGREP_found && break 3
4128    done
4129  done
4130  done
4131IFS=$as_save_IFS
4132  if test -z "$ac_cv_path_FGREP"; then
4133    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134  fi
4135else
4136  ac_cv_path_FGREP=$FGREP
4137fi
4138
4139   fi
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4142$as_echo "$ac_cv_path_FGREP" >&6; }
4143 FGREP="$ac_cv_path_FGREP"
4144
4145
4146test -z "$GREP" && GREP=grep
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166# Check whether --with-gnu-ld was given.
4167if test "${with_gnu_ld+set}" = set; then :
4168  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4169else
4170  with_gnu_ld=no
4171fi
4172
4173ac_prog=ld
4174if test "$GCC" = yes; then
4175  # Check if gcc -print-prog-name=ld gives a path.
4176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4177$as_echo_n "checking for ld used by $CC... " >&6; }
4178  case $host in
4179  *-*-mingw*)
4180    # gcc leaves a trailing carriage return which upsets mingw
4181    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4182  *)
4183    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4184  esac
4185  case $ac_prog in
4186    # Accept absolute paths.
4187    [\\/]* | ?:[\\/]*)
4188      re_direlt='/[^/][^/]*/\.\./'
4189      # Canonicalize the pathname of ld
4190      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4191      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4192	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4193      done
4194      test -z "$LD" && LD="$ac_prog"
4195      ;;
4196  "")
4197    # If it fails, then pretend we aren't using GCC.
4198    ac_prog=ld
4199    ;;
4200  *)
4201    # If it is relative, then search for the first ld in PATH.
4202    with_gnu_ld=unknown
4203    ;;
4204  esac
4205elif test "$with_gnu_ld" = yes; then
4206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4207$as_echo_n "checking for GNU ld... " >&6; }
4208else
4209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4210$as_echo_n "checking for non-GNU ld... " >&6; }
4211fi
4212if ${lt_cv_path_LD+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  if test -z "$LD"; then
4216  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4217  for ac_dir in $PATH; do
4218    IFS="$lt_save_ifs"
4219    test -z "$ac_dir" && ac_dir=.
4220    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4221      lt_cv_path_LD="$ac_dir/$ac_prog"
4222      # Check to see if the program is GNU ld.  I'd rather use --version,
4223      # but apparently some variants of GNU ld only accept -v.
4224      # Break only if it was the GNU/non-GNU ld that we prefer.
4225      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4226      *GNU* | *'with BFD'*)
4227	test "$with_gnu_ld" != no && break
4228	;;
4229      *)
4230	test "$with_gnu_ld" != yes && break
4231	;;
4232      esac
4233    fi
4234  done
4235  IFS="$lt_save_ifs"
4236else
4237  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4238fi
4239fi
4240
4241LD="$lt_cv_path_LD"
4242if test -n "$LD"; then
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4244$as_echo "$LD" >&6; }
4245else
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247$as_echo "no" >&6; }
4248fi
4249test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4251$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4252if ${lt_cv_prog_gnu_ld+:} false; then :
4253  $as_echo_n "(cached) " >&6
4254else
4255  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4256case `$LD -v 2>&1 </dev/null` in
4257*GNU* | *'with BFD'*)
4258  lt_cv_prog_gnu_ld=yes
4259  ;;
4260*)
4261  lt_cv_prog_gnu_ld=no
4262  ;;
4263esac
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4266$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4267with_gnu_ld=$lt_cv_prog_gnu_ld
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4278$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4279if ${lt_cv_path_NM+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  if test -n "$NM"; then
4283  # Let the user override the test.
4284  lt_cv_path_NM="$NM"
4285else
4286  lt_nm_to_check="${ac_tool_prefix}nm"
4287  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4288    lt_nm_to_check="$lt_nm_to_check nm"
4289  fi
4290  for lt_tmp_nm in $lt_nm_to_check; do
4291    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4292    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4293      IFS="$lt_save_ifs"
4294      test -z "$ac_dir" && ac_dir=.
4295      tmp_nm="$ac_dir/$lt_tmp_nm"
4296      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4297	# Check to see if the nm accepts a BSD-compat flag.
4298	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4299	#   nm: unknown option "B" ignored
4300	# Tru64's nm complains that /dev/null is an invalid object file
4301	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4302	*/dev/null* | *'Invalid file or object type'*)
4303	  lt_cv_path_NM="$tmp_nm -B"
4304	  break
4305	  ;;
4306	*)
4307	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4308	  */dev/null*)
4309	    lt_cv_path_NM="$tmp_nm -p"
4310	    break
4311	    ;;
4312	  *)
4313	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4314	    continue # so that we can try to find one that supports BSD flags
4315	    ;;
4316	  esac
4317	  ;;
4318	esac
4319      fi
4320    done
4321    IFS="$lt_save_ifs"
4322  done
4323  : ${lt_cv_path_NM=no}
4324fi
4325fi
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4327$as_echo "$lt_cv_path_NM" >&6; }
4328if test "$lt_cv_path_NM" != "no"; then
4329  NM="$lt_cv_path_NM"
4330else
4331  # Didn't find any BSD compatible name lister, look for dumpbin.
4332  if test -n "$DUMPBIN"; then :
4333    # Let the user override the test.
4334  else
4335    if test -n "$ac_tool_prefix"; then
4336  for ac_prog in dumpbin "link -dump"
4337  do
4338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341$as_echo_n "checking for $ac_word... " >&6; }
4342if ${ac_cv_prog_DUMPBIN+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test -n "$DUMPBIN"; then
4346  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353    for ac_exec_ext in '' $ac_executable_extensions; do
4354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357    break 2
4358  fi
4359done
4360  done
4361IFS=$as_save_IFS
4362
4363fi
4364fi
4365DUMPBIN=$ac_cv_prog_DUMPBIN
4366if test -n "$DUMPBIN"; then
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4368$as_echo "$DUMPBIN" >&6; }
4369else
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371$as_echo "no" >&6; }
4372fi
4373
4374
4375    test -n "$DUMPBIN" && break
4376  done
4377fi
4378if test -z "$DUMPBIN"; then
4379  ac_ct_DUMPBIN=$DUMPBIN
4380  for ac_prog in dumpbin "link -dump"
4381do
4382  # Extract the first word of "$ac_prog", so it can be a program name with args.
4383set dummy $ac_prog; ac_word=$2
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4385$as_echo_n "checking for $ac_word... " >&6; }
4386if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if test -n "$ac_ct_DUMPBIN"; then
4390  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4391else
4392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH
4394do
4395  IFS=$as_save_IFS
4396  test -z "$as_dir" && as_dir=.
4397    for ac_exec_ext in '' $ac_executable_extensions; do
4398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4399    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401    break 2
4402  fi
4403done
4404  done
4405IFS=$as_save_IFS
4406
4407fi
4408fi
4409ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4410if test -n "$ac_ct_DUMPBIN"; then
4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4412$as_echo "$ac_ct_DUMPBIN" >&6; }
4413else
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
4416fi
4417
4418
4419  test -n "$ac_ct_DUMPBIN" && break
4420done
4421
4422  if test "x$ac_ct_DUMPBIN" = x; then
4423    DUMPBIN=":"
4424  else
4425    case $cross_compiling:$ac_tool_warned in
4426yes:)
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4429ac_tool_warned=yes ;;
4430esac
4431    DUMPBIN=$ac_ct_DUMPBIN
4432  fi
4433fi
4434
4435    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4436    *COFF*)
4437      DUMPBIN="$DUMPBIN -symbols"
4438      ;;
4439    *)
4440      DUMPBIN=:
4441      ;;
4442    esac
4443  fi
4444
4445  if test "$DUMPBIN" != ":"; then
4446    NM="$DUMPBIN"
4447  fi
4448fi
4449test -z "$NM" && NM=nm
4450
4451
4452
4453
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4457$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4458if ${lt_cv_nm_interface+:} false; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  lt_cv_nm_interface="BSD nm"
4462  echo "int some_variable = 0;" > conftest.$ac_ext
4463  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4464  (eval "$ac_compile" 2>conftest.err)
4465  cat conftest.err >&5
4466  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4467  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4468  cat conftest.err >&5
4469  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4470  cat conftest.out >&5
4471  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4472    lt_cv_nm_interface="MS dumpbin"
4473  fi
4474  rm -f conftest*
4475fi
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4477$as_echo "$lt_cv_nm_interface" >&6; }
4478
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4480$as_echo_n "checking whether ln -s works... " >&6; }
4481LN_S=$as_ln_s
4482if test "$LN_S" = "ln -s"; then
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484$as_echo "yes" >&6; }
4485else
4486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4487$as_echo "no, using $LN_S" >&6; }
4488fi
4489
4490# find the maximum length of command line arguments
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4492$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4493if ${lt_cv_sys_max_cmd_len+:} false; then :
4494  $as_echo_n "(cached) " >&6
4495else
4496    i=0
4497  teststring="ABCD"
4498
4499  case $build_os in
4500  msdosdjgpp*)
4501    # On DJGPP, this test can blow up pretty badly due to problems in libc
4502    # (any single argument exceeding 2000 bytes causes a buffer overrun
4503    # during glob expansion).  Even if it were fixed, the result of this
4504    # check would be larger than it should be.
4505    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4506    ;;
4507
4508  gnu*)
4509    # Under GNU Hurd, this test is not required because there is
4510    # no limit to the length of command line arguments.
4511    # Libtool will interpret -1 as no limit whatsoever
4512    lt_cv_sys_max_cmd_len=-1;
4513    ;;
4514
4515  cygwin* | mingw* | cegcc*)
4516    # On Win9x/ME, this test blows up -- it succeeds, but takes
4517    # about 5 minutes as the teststring grows exponentially.
4518    # Worse, since 9x/ME are not pre-emptively multitasking,
4519    # you end up with a "frozen" computer, even though with patience
4520    # the test eventually succeeds (with a max line length of 256k).
4521    # Instead, let's just punt: use the minimum linelength reported by
4522    # all of the supported platforms: 8192 (on NT/2K/XP).
4523    lt_cv_sys_max_cmd_len=8192;
4524    ;;
4525
4526  mint*)
4527    # On MiNT this can take a long time and run out of memory.
4528    lt_cv_sys_max_cmd_len=8192;
4529    ;;
4530
4531  amigaos*)
4532    # On AmigaOS with pdksh, this test takes hours, literally.
4533    # So we just punt and use a minimum line length of 8192.
4534    lt_cv_sys_max_cmd_len=8192;
4535    ;;
4536
4537  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4538    # This has been around since 386BSD, at least.  Likely further.
4539    if test -x /sbin/sysctl; then
4540      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4541    elif test -x /usr/sbin/sysctl; then
4542      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4543    else
4544      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4545    fi
4546    # And add a safety zone
4547    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4548    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4549    ;;
4550
4551  interix*)
4552    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4553    lt_cv_sys_max_cmd_len=196608
4554    ;;
4555
4556  os2*)
4557    # The test takes a long time on OS/2.
4558    lt_cv_sys_max_cmd_len=8192
4559    ;;
4560
4561  osf*)
4562    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4563    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4564    # nice to cause kernel panics so lets avoid the loop below.
4565    # First set a reasonable default.
4566    lt_cv_sys_max_cmd_len=16384
4567    #
4568    if test -x /sbin/sysconfig; then
4569      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4570        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4571      esac
4572    fi
4573    ;;
4574  sco3.2v5*)
4575    lt_cv_sys_max_cmd_len=102400
4576    ;;
4577  sysv5* | sco5v6* | sysv4.2uw2*)
4578    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4579    if test -n "$kargmax"; then
4580      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4581    else
4582      lt_cv_sys_max_cmd_len=32768
4583    fi
4584    ;;
4585  *)
4586    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4587    if test -n "$lt_cv_sys_max_cmd_len"; then
4588      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4589      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4590    else
4591      # Make teststring a little bigger before we do anything with it.
4592      # a 1K string should be a reasonable start.
4593      for i in 1 2 3 4 5 6 7 8 ; do
4594        teststring=$teststring$teststring
4595      done
4596      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4597      # If test is not a shell built-in, we'll probably end up computing a
4598      # maximum length that is only half of the actual maximum length, but
4599      # we can't tell.
4600      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4601	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4602	      test $i != 17 # 1/2 MB should be enough
4603      do
4604        i=`expr $i + 1`
4605        teststring=$teststring$teststring
4606      done
4607      # Only check the string length outside the loop.
4608      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4609      teststring=
4610      # Add a significant safety factor because C++ compilers can tack on
4611      # massive amounts of additional arguments before passing them to the
4612      # linker.  It appears as though 1/2 is a usable value.
4613      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4614    fi
4615    ;;
4616  esac
4617
4618fi
4619
4620if test -n $lt_cv_sys_max_cmd_len ; then
4621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4622$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4623else
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4625$as_echo "none" >&6; }
4626fi
4627max_cmd_len=$lt_cv_sys_max_cmd_len
4628
4629
4630
4631
4632
4633
4634: ${CP="cp -f"}
4635: ${MV="mv -f"}
4636: ${RM="rm -f"}
4637
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4639$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4640# Try some XSI features
4641xsi_shell=no
4642( _lt_dummy="a/b/c"
4643  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4644      = c,a/b,b/c, \
4645    && eval 'test $(( 1 + 1 )) -eq 2 \
4646    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4647  && xsi_shell=yes
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4649$as_echo "$xsi_shell" >&6; }
4650
4651
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4653$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4654lt_shell_append=no
4655( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4656    >/dev/null 2>&1 \
4657  && lt_shell_append=yes
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4659$as_echo "$lt_shell_append" >&6; }
4660
4661
4662if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4663  lt_unset=unset
4664else
4665  lt_unset=false
4666fi
4667
4668
4669
4670
4671
4672# test EBCDIC or ASCII
4673case `echo X|tr X '\101'` in
4674 A) # ASCII based system
4675    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4676  lt_SP2NL='tr \040 \012'
4677  lt_NL2SP='tr \015\012 \040\040'
4678  ;;
4679 *) # EBCDIC based system
4680  lt_SP2NL='tr \100 \n'
4681  lt_NL2SP='tr \r\n \100\100'
4682  ;;
4683esac
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4694$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4695if ${lt_cv_to_host_file_cmd+:} false; then :
4696  $as_echo_n "(cached) " >&6
4697else
4698  case $host in
4699  *-*-mingw* )
4700    case $build in
4701      *-*-mingw* ) # actually msys
4702        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4703        ;;
4704      *-*-cygwin* )
4705        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4706        ;;
4707      * ) # otherwise, assume *nix
4708        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4709        ;;
4710    esac
4711    ;;
4712  *-*-cygwin* )
4713    case $build in
4714      *-*-mingw* ) # actually msys
4715        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4716        ;;
4717      *-*-cygwin* )
4718        lt_cv_to_host_file_cmd=func_convert_file_noop
4719        ;;
4720      * ) # otherwise, assume *nix
4721        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4722        ;;
4723    esac
4724    ;;
4725  * ) # unhandled hosts (and "normal" native builds)
4726    lt_cv_to_host_file_cmd=func_convert_file_noop
4727    ;;
4728esac
4729
4730fi
4731
4732to_host_file_cmd=$lt_cv_to_host_file_cmd
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4734$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4735
4736
4737
4738
4739
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4741$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4742if ${lt_cv_to_tool_file_cmd+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  #assume ordinary cross tools, or native build.
4746lt_cv_to_tool_file_cmd=func_convert_file_noop
4747case $host in
4748  *-*-mingw* )
4749    case $build in
4750      *-*-mingw* ) # actually msys
4751        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4752        ;;
4753    esac
4754    ;;
4755esac
4756
4757fi
4758
4759to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4761$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4762
4763
4764
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4768$as_echo_n "checking for $LD option to reload object files... " >&6; }
4769if ${lt_cv_ld_reload_flag+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772  lt_cv_ld_reload_flag='-r'
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4775$as_echo "$lt_cv_ld_reload_flag" >&6; }
4776reload_flag=$lt_cv_ld_reload_flag
4777case $reload_flag in
4778"" | " "*) ;;
4779*) reload_flag=" $reload_flag" ;;
4780esac
4781reload_cmds='$LD$reload_flag -o $output$reload_objs'
4782case $host_os in
4783  cygwin* | mingw* | pw32* | cegcc*)
4784    if test "$GCC" != yes; then
4785      reload_cmds=false
4786    fi
4787    ;;
4788  darwin*)
4789    if test "$GCC" = yes; then
4790      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4791    else
4792      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4793    fi
4794    ;;
4795esac
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805if test -n "$ac_tool_prefix"; then
4806  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4807set dummy ${ac_tool_prefix}objdump; ac_word=$2
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if ${ac_cv_prog_OBJDUMP+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  if test -n "$OBJDUMP"; then
4814  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819  IFS=$as_save_IFS
4820  test -z "$as_dir" && as_dir=.
4821    for ac_exec_ext in '' $ac_executable_extensions; do
4822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825    break 2
4826  fi
4827done
4828  done
4829IFS=$as_save_IFS
4830
4831fi
4832fi
4833OBJDUMP=$ac_cv_prog_OBJDUMP
4834if test -n "$OBJDUMP"; then
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4836$as_echo "$OBJDUMP" >&6; }
4837else
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
4840fi
4841
4842
4843fi
4844if test -z "$ac_cv_prog_OBJDUMP"; then
4845  ac_ct_OBJDUMP=$OBJDUMP
4846  # Extract the first word of "objdump", so it can be a program name with args.
4847set dummy objdump; ac_word=$2
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849$as_echo_n "checking for $ac_word... " >&6; }
4850if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  if test -n "$ac_ct_OBJDUMP"; then
4854  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859  IFS=$as_save_IFS
4860  test -z "$as_dir" && as_dir=.
4861    for ac_exec_ext in '' $ac_executable_extensions; do
4862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865    break 2
4866  fi
4867done
4868  done
4869IFS=$as_save_IFS
4870
4871fi
4872fi
4873ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4874if test -n "$ac_ct_OBJDUMP"; then
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4876$as_echo "$ac_ct_OBJDUMP" >&6; }
4877else
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879$as_echo "no" >&6; }
4880fi
4881
4882  if test "x$ac_ct_OBJDUMP" = x; then
4883    OBJDUMP="false"
4884  else
4885    case $cross_compiling:$ac_tool_warned in
4886yes:)
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889ac_tool_warned=yes ;;
4890esac
4891    OBJDUMP=$ac_ct_OBJDUMP
4892  fi
4893else
4894  OBJDUMP="$ac_cv_prog_OBJDUMP"
4895fi
4896
4897test -z "$OBJDUMP" && OBJDUMP=objdump
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4908$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4909if ${lt_cv_deplibs_check_method+:} false; then :
4910  $as_echo_n "(cached) " >&6
4911else
4912  lt_cv_file_magic_cmd='$MAGIC_CMD'
4913lt_cv_file_magic_test_file=
4914lt_cv_deplibs_check_method='unknown'
4915# Need to set the preceding variable on all platforms that support
4916# interlibrary dependencies.
4917# 'none' -- dependencies not supported.
4918# `unknown' -- same as none, but documents that we really don't know.
4919# 'pass_all' -- all dependencies passed with no checks.
4920# 'test_compile' -- check by making test program.
4921# 'file_magic [[regex]]' -- check by looking for files in library path
4922# which responds to the $file_magic_cmd with a given extended regex.
4923# If you have `file' or equivalent on your system and you're not sure
4924# whether `pass_all' will *always* work, you probably want this one.
4925
4926case $host_os in
4927aix[4-9]*)
4928  lt_cv_deplibs_check_method=pass_all
4929  ;;
4930
4931beos*)
4932  lt_cv_deplibs_check_method=pass_all
4933  ;;
4934
4935bsdi[45]*)
4936  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4937  lt_cv_file_magic_cmd='/usr/bin/file -L'
4938  lt_cv_file_magic_test_file=/shlib/libc.so
4939  ;;
4940
4941cygwin*)
4942  # func_win32_libid is a shell function defined in ltmain.sh
4943  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4944  lt_cv_file_magic_cmd='func_win32_libid'
4945  ;;
4946
4947mingw* | pw32*)
4948  # Base MSYS/MinGW do not provide the 'file' command needed by
4949  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4950  # unless we find 'file', for example because we are cross-compiling.
4951  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4952  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4953    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4954    lt_cv_file_magic_cmd='func_win32_libid'
4955  else
4956    # Keep this pattern in sync with the one in func_win32_libid.
4957    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4958    lt_cv_file_magic_cmd='$OBJDUMP -f'
4959  fi
4960  ;;
4961
4962cegcc*)
4963  # use the weaker test based on 'objdump'. See mingw*.
4964  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4965  lt_cv_file_magic_cmd='$OBJDUMP -f'
4966  ;;
4967
4968darwin* | rhapsody*)
4969  lt_cv_deplibs_check_method=pass_all
4970  ;;
4971
4972freebsd* | dragonfly*)
4973  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4974    case $host_cpu in
4975    i*86 )
4976      # Not sure whether the presence of OpenBSD here was a mistake.
4977      # Let's accept both of them until this is cleared up.
4978      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4979      lt_cv_file_magic_cmd=/usr/bin/file
4980      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4981      ;;
4982    esac
4983  else
4984    lt_cv_deplibs_check_method=pass_all
4985  fi
4986  ;;
4987
4988gnu*)
4989  lt_cv_deplibs_check_method=pass_all
4990  ;;
4991
4992haiku*)
4993  lt_cv_deplibs_check_method=pass_all
4994  ;;
4995
4996hpux10.20* | hpux11*)
4997  lt_cv_file_magic_cmd=/usr/bin/file
4998  case $host_cpu in
4999  ia64*)
5000    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5001    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5002    ;;
5003  hppa*64*)
5004    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]'
5005    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5006    ;;
5007  *)
5008    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5009    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5010    ;;
5011  esac
5012  ;;
5013
5014interix[3-9]*)
5015  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5016  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5017  ;;
5018
5019irix5* | irix6* | nonstopux*)
5020  case $LD in
5021  *-32|*"-32 ") libmagic=32-bit;;
5022  *-n32|*"-n32 ") libmagic=N32;;
5023  *-64|*"-64 ") libmagic=64-bit;;
5024  *) libmagic=never-match;;
5025  esac
5026  lt_cv_deplibs_check_method=pass_all
5027  ;;
5028
5029# This must be glibc/ELF.
5030linux* | k*bsd*-gnu | kopensolaris*-gnu)
5031  lt_cv_deplibs_check_method=pass_all
5032  ;;
5033
5034netbsd*)
5035  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5036    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5037  else
5038    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5039  fi
5040  ;;
5041
5042newos6*)
5043  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5044  lt_cv_file_magic_cmd=/usr/bin/file
5045  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5046  ;;
5047
5048*nto* | *qnx*)
5049  lt_cv_deplibs_check_method=pass_all
5050  ;;
5051
5052openbsd*)
5053  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5054    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5055  else
5056    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5057  fi
5058  ;;
5059
5060osf3* | osf4* | osf5*)
5061  lt_cv_deplibs_check_method=pass_all
5062  ;;
5063
5064rdos*)
5065  lt_cv_deplibs_check_method=pass_all
5066  ;;
5067
5068solaris*)
5069  lt_cv_deplibs_check_method=pass_all
5070  ;;
5071
5072sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5073  lt_cv_deplibs_check_method=pass_all
5074  ;;
5075
5076sysv4 | sysv4.3*)
5077  case $host_vendor in
5078  motorola)
5079    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]'
5080    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5081    ;;
5082  ncr)
5083    lt_cv_deplibs_check_method=pass_all
5084    ;;
5085  sequent)
5086    lt_cv_file_magic_cmd='/bin/file'
5087    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5088    ;;
5089  sni)
5090    lt_cv_file_magic_cmd='/bin/file'
5091    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5092    lt_cv_file_magic_test_file=/lib/libc.so
5093    ;;
5094  siemens)
5095    lt_cv_deplibs_check_method=pass_all
5096    ;;
5097  pc)
5098    lt_cv_deplibs_check_method=pass_all
5099    ;;
5100  esac
5101  ;;
5102
5103tpf*)
5104  lt_cv_deplibs_check_method=pass_all
5105  ;;
5106esac
5107
5108fi
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5110$as_echo "$lt_cv_deplibs_check_method" >&6; }
5111
5112file_magic_glob=
5113want_nocaseglob=no
5114if test "$build" = "$host"; then
5115  case $host_os in
5116  mingw* | pw32*)
5117    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5118      want_nocaseglob=yes
5119    else
5120      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5121    fi
5122    ;;
5123  esac
5124fi
5125
5126file_magic_cmd=$lt_cv_file_magic_cmd
5127deplibs_check_method=$lt_cv_deplibs_check_method
5128test -z "$deplibs_check_method" && deplibs_check_method=unknown
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151if test -n "$ac_tool_prefix"; then
5152  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5153set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155$as_echo_n "checking for $ac_word... " >&6; }
5156if ${ac_cv_prog_DLLTOOL+:} false; then :
5157  $as_echo_n "(cached) " >&6
5158else
5159  if test -n "$DLLTOOL"; then
5160  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5161else
5162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167    for ac_exec_ext in '' $ac_executable_extensions; do
5168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171    break 2
5172  fi
5173done
5174  done
5175IFS=$as_save_IFS
5176
5177fi
5178fi
5179DLLTOOL=$ac_cv_prog_DLLTOOL
5180if test -n "$DLLTOOL"; then
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5182$as_echo "$DLLTOOL" >&6; }
5183else
5184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }
5186fi
5187
5188
5189fi
5190if test -z "$ac_cv_prog_DLLTOOL"; then
5191  ac_ct_DLLTOOL=$DLLTOOL
5192  # Extract the first word of "dlltool", so it can be a program name with args.
5193set dummy dlltool; ac_word=$2
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
5196if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  if test -n "$ac_ct_DLLTOOL"; then
5200  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5201else
5202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203for as_dir in $PATH
5204do
5205  IFS=$as_save_IFS
5206  test -z "$as_dir" && as_dir=.
5207    for ac_exec_ext in '' $ac_executable_extensions; do
5208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211    break 2
5212  fi
5213done
5214  done
5215IFS=$as_save_IFS
5216
5217fi
5218fi
5219ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5220if test -n "$ac_ct_DLLTOOL"; then
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5222$as_echo "$ac_ct_DLLTOOL" >&6; }
5223else
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225$as_echo "no" >&6; }
5226fi
5227
5228  if test "x$ac_ct_DLLTOOL" = x; then
5229    DLLTOOL="false"
5230  else
5231    case $cross_compiling:$ac_tool_warned in
5232yes:)
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5235ac_tool_warned=yes ;;
5236esac
5237    DLLTOOL=$ac_ct_DLLTOOL
5238  fi
5239else
5240  DLLTOOL="$ac_cv_prog_DLLTOOL"
5241fi
5242
5243test -z "$DLLTOOL" && DLLTOOL=dlltool
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5255$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5256if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  lt_cv_sharedlib_from_linklib_cmd='unknown'
5260
5261case $host_os in
5262cygwin* | mingw* | pw32* | cegcc*)
5263  # two different shell functions defined in ltmain.sh
5264  # decide which to use based on capabilities of $DLLTOOL
5265  case `$DLLTOOL --help 2>&1` in
5266  *--identify-strict*)
5267    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5268    ;;
5269  *)
5270    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5271    ;;
5272  esac
5273  ;;
5274*)
5275  # fallback: assume linklib IS sharedlib
5276  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5277  ;;
5278esac
5279
5280fi
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5282$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5283sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5284test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5285
5286
5287
5288
5289
5290
5291
5292
5293if test -n "$ac_tool_prefix"; then
5294  for ac_prog in ar
5295  do
5296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
5300if ${ac_cv_prog_AR+:} false; then :
5301  $as_echo_n "(cached) " >&6
5302else
5303  if test -n "$AR"; then
5304  ac_cv_prog_AR="$AR" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309  IFS=$as_save_IFS
5310  test -z "$as_dir" && as_dir=.
5311    for ac_exec_ext in '' $ac_executable_extensions; do
5312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5313    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315    break 2
5316  fi
5317done
5318  done
5319IFS=$as_save_IFS
5320
5321fi
5322fi
5323AR=$ac_cv_prog_AR
5324if test -n "$AR"; then
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5326$as_echo "$AR" >&6; }
5327else
5328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }
5330fi
5331
5332
5333    test -n "$AR" && break
5334  done
5335fi
5336if test -z "$AR"; then
5337  ac_ct_AR=$AR
5338  for ac_prog in ar
5339do
5340  # Extract the first word of "$ac_prog", so it can be a program name with args.
5341set dummy $ac_prog; ac_word=$2
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343$as_echo_n "checking for $ac_word... " >&6; }
5344if ${ac_cv_prog_ac_ct_AR+:} false; then :
5345  $as_echo_n "(cached) " >&6
5346else
5347  if test -n "$ac_ct_AR"; then
5348  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5349else
5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353  IFS=$as_save_IFS
5354  test -z "$as_dir" && as_dir=.
5355    for ac_exec_ext in '' $ac_executable_extensions; do
5356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357    ac_cv_prog_ac_ct_AR="$ac_prog"
5358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362  done
5363IFS=$as_save_IFS
5364
5365fi
5366fi
5367ac_ct_AR=$ac_cv_prog_ac_ct_AR
5368if test -n "$ac_ct_AR"; then
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5370$as_echo "$ac_ct_AR" >&6; }
5371else
5372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }
5374fi
5375
5376
5377  test -n "$ac_ct_AR" && break
5378done
5379
5380  if test "x$ac_ct_AR" = x; then
5381    AR="false"
5382  else
5383    case $cross_compiling:$ac_tool_warned in
5384yes:)
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5387ac_tool_warned=yes ;;
5388esac
5389    AR=$ac_ct_AR
5390  fi
5391fi
5392
5393: ${AR=ar}
5394: ${AR_FLAGS=cru}
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5407$as_echo_n "checking for archiver @FILE support... " >&6; }
5408if ${lt_cv_ar_at_file+:} false; then :
5409  $as_echo_n "(cached) " >&6
5410else
5411  lt_cv_ar_at_file=no
5412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414
5415int
5416main ()
5417{
5418
5419  ;
5420  return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_compile "$LINENO"; then :
5424  echo conftest.$ac_objext > conftest.lst
5425      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5426      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5427  (eval $lt_ar_try) 2>&5
5428  ac_status=$?
5429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5430  test $ac_status = 0; }
5431      if test "$ac_status" -eq 0; then
5432	# Ensure the archiver fails upon bogus file names.
5433	rm -f conftest.$ac_objext libconftest.a
5434	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5435  (eval $lt_ar_try) 2>&5
5436  ac_status=$?
5437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5438  test $ac_status = 0; }
5439	if test "$ac_status" -ne 0; then
5440          lt_cv_ar_at_file=@
5441        fi
5442      fi
5443      rm -f conftest.* libconftest.a
5444
5445fi
5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447
5448fi
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5450$as_echo "$lt_cv_ar_at_file" >&6; }
5451
5452if test "x$lt_cv_ar_at_file" = xno; then
5453  archiver_list_spec=
5454else
5455  archiver_list_spec=$lt_cv_ar_at_file
5456fi
5457
5458
5459
5460
5461
5462
5463
5464if test -n "$ac_tool_prefix"; then
5465  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5466set dummy ${ac_tool_prefix}strip; ac_word=$2
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468$as_echo_n "checking for $ac_word... " >&6; }
5469if ${ac_cv_prog_STRIP+:} false; then :
5470  $as_echo_n "(cached) " >&6
5471else
5472  if test -n "$STRIP"; then
5473  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5474else
5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476for as_dir in $PATH
5477do
5478  IFS=$as_save_IFS
5479  test -z "$as_dir" && as_dir=.
5480    for ac_exec_ext in '' $ac_executable_extensions; do
5481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484    break 2
5485  fi
5486done
5487  done
5488IFS=$as_save_IFS
5489
5490fi
5491fi
5492STRIP=$ac_cv_prog_STRIP
5493if test -n "$STRIP"; then
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5495$as_echo "$STRIP" >&6; }
5496else
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498$as_echo "no" >&6; }
5499fi
5500
5501
5502fi
5503if test -z "$ac_cv_prog_STRIP"; then
5504  ac_ct_STRIP=$STRIP
5505  # Extract the first word of "strip", so it can be a program name with args.
5506set dummy strip; ac_word=$2
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508$as_echo_n "checking for $ac_word... " >&6; }
5509if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  if test -n "$ac_ct_STRIP"; then
5513  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5514else
5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516for as_dir in $PATH
5517do
5518  IFS=$as_save_IFS
5519  test -z "$as_dir" && as_dir=.
5520    for ac_exec_ext in '' $ac_executable_extensions; do
5521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522    ac_cv_prog_ac_ct_STRIP="strip"
5523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524    break 2
5525  fi
5526done
5527  done
5528IFS=$as_save_IFS
5529
5530fi
5531fi
5532ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5533if test -n "$ac_ct_STRIP"; then
5534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5535$as_echo "$ac_ct_STRIP" >&6; }
5536else
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538$as_echo "no" >&6; }
5539fi
5540
5541  if test "x$ac_ct_STRIP" = x; then
5542    STRIP=":"
5543  else
5544    case $cross_compiling:$ac_tool_warned in
5545yes:)
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5548ac_tool_warned=yes ;;
5549esac
5550    STRIP=$ac_ct_STRIP
5551  fi
5552else
5553  STRIP="$ac_cv_prog_STRIP"
5554fi
5555
5556test -z "$STRIP" && STRIP=:
5557
5558
5559
5560
5561
5562
5563if test -n "$ac_tool_prefix"; then
5564  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5565set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
5568if ${ac_cv_prog_RANLIB+:} false; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  if test -n "$RANLIB"; then
5572  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577  IFS=$as_save_IFS
5578  test -z "$as_dir" && as_dir=.
5579    for ac_exec_ext in '' $ac_executable_extensions; do
5580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583    break 2
5584  fi
5585done
5586  done
5587IFS=$as_save_IFS
5588
5589fi
5590fi
5591RANLIB=$ac_cv_prog_RANLIB
5592if test -n "$RANLIB"; then
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5594$as_echo "$RANLIB" >&6; }
5595else
5596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598fi
5599
5600
5601fi
5602if test -z "$ac_cv_prog_RANLIB"; then
5603  ac_ct_RANLIB=$RANLIB
5604  # Extract the first word of "ranlib", so it can be a program name with args.
5605set dummy ranlib; ac_word=$2
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607$as_echo_n "checking for $ac_word... " >&6; }
5608if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test -n "$ac_ct_RANLIB"; then
5612  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617  IFS=$as_save_IFS
5618  test -z "$as_dir" && as_dir=.
5619    for ac_exec_ext in '' $ac_executable_extensions; do
5620  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621    ac_cv_prog_ac_ct_RANLIB="ranlib"
5622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623    break 2
5624  fi
5625done
5626  done
5627IFS=$as_save_IFS
5628
5629fi
5630fi
5631ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5632if test -n "$ac_ct_RANLIB"; then
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5634$as_echo "$ac_ct_RANLIB" >&6; }
5635else
5636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637$as_echo "no" >&6; }
5638fi
5639
5640  if test "x$ac_ct_RANLIB" = x; then
5641    RANLIB=":"
5642  else
5643    case $cross_compiling:$ac_tool_warned in
5644yes:)
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647ac_tool_warned=yes ;;
5648esac
5649    RANLIB=$ac_ct_RANLIB
5650  fi
5651else
5652  RANLIB="$ac_cv_prog_RANLIB"
5653fi
5654
5655test -z "$RANLIB" && RANLIB=:
5656
5657
5658
5659
5660
5661
5662# Determine commands to create old-style static archives.
5663old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5664old_postinstall_cmds='chmod 644 $oldlib'
5665old_postuninstall_cmds=
5666
5667if test -n "$RANLIB"; then
5668  case $host_os in
5669  openbsd*)
5670    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5671    ;;
5672  *)
5673    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5674    ;;
5675  esac
5676  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5677fi
5678
5679case $host_os in
5680  darwin*)
5681    lock_old_archive_extraction=yes ;;
5682  *)
5683    lock_old_archive_extraction=no ;;
5684esac
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724# If no C compiler was specified, use CC.
5725LTCC=${LTCC-"$CC"}
5726
5727# If no C compiler flags were specified, use CFLAGS.
5728LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5729
5730# Allow CC to be a program name with arguments.
5731compiler=$CC
5732
5733
5734# Check for command to grab the raw symbol name followed by C symbol from nm.
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5736$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5737if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740
5741# These are sane defaults that work on at least a few old systems.
5742# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5743
5744# Character class describing NM global symbol codes.
5745symcode='[BCDEGRST]'
5746
5747# Regexp to match symbols that can be accessed directly from C.
5748sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5749
5750# Define system-specific variables.
5751case $host_os in
5752aix*)
5753  symcode='[BCDT]'
5754  ;;
5755cygwin* | mingw* | pw32* | cegcc*)
5756  symcode='[ABCDGISTW]'
5757  ;;
5758hpux*)
5759  if test "$host_cpu" = ia64; then
5760    symcode='[ABCDEGRST]'
5761  fi
5762  ;;
5763irix* | nonstopux*)
5764  symcode='[BCDEGRST]'
5765  ;;
5766osf*)
5767  symcode='[BCDEGQRST]'
5768  ;;
5769solaris*)
5770  symcode='[BDRT]'
5771  ;;
5772sco3.2v5*)
5773  symcode='[DT]'
5774  ;;
5775sysv4.2uw2*)
5776  symcode='[DT]'
5777  ;;
5778sysv5* | sco5v6* | unixware* | OpenUNIX*)
5779  symcode='[ABDT]'
5780  ;;
5781sysv4)
5782  symcode='[DFNSTU]'
5783  ;;
5784esac
5785
5786# If we're using GNU nm, then use its standard symbol codes.
5787case `$NM -V 2>&1` in
5788*GNU* | *'with BFD'*)
5789  symcode='[ABCDGIRSTW]' ;;
5790esac
5791
5792# Transform an extracted symbol line into a proper C declaration.
5793# Some systems (esp. on ia64) link data and code symbols differently,
5794# so use this general approach.
5795lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5796
5797# Transform an extracted symbol line into symbol name and symbol address
5798lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5799lt_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'"
5800
5801# Handle CRLF in mingw tool chain
5802opt_cr=
5803case $build_os in
5804mingw*)
5805  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5806  ;;
5807esac
5808
5809# Try without a prefix underscore, then with it.
5810for ac_symprfx in "" "_"; do
5811
5812  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5813  symxfrm="\\1 $ac_symprfx\\2 \\2"
5814
5815  # Write the raw and C identifiers.
5816  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5817    # Fake it for dumpbin and say T for any non-static function
5818    # and D for any global variable.
5819    # Also find C++ and __fastcall symbols from MSVC++,
5820    # which start with @ or ?.
5821    lt_cv_sys_global_symbol_pipe="$AWK '"\
5822"     {last_section=section; section=\$ 3};"\
5823"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5824"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5825"     \$ 0!~/External *\|/{next};"\
5826"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5827"     {if(hide[section]) next};"\
5828"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5829"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5830"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5831"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5832"     ' prfx=^$ac_symprfx"
5833  else
5834    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5835  fi
5836  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5837
5838  # Check to see that the pipe works correctly.
5839  pipe_works=no
5840
5841  rm -f conftest*
5842  cat > conftest.$ac_ext <<_LT_EOF
5843#ifdef __cplusplus
5844extern "C" {
5845#endif
5846char nm_test_var;
5847void nm_test_func(void);
5848void nm_test_func(void){}
5849#ifdef __cplusplus
5850}
5851#endif
5852int main(){nm_test_var='a';nm_test_func();return(0);}
5853_LT_EOF
5854
5855  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5856  (eval $ac_compile) 2>&5
5857  ac_status=$?
5858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5859  test $ac_status = 0; }; then
5860    # Now try to grab the symbols.
5861    nlist=conftest.nm
5862    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5863  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5864  ac_status=$?
5865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866  test $ac_status = 0; } && test -s "$nlist"; then
5867      # Try sorting and uniquifying the output.
5868      if sort "$nlist" | uniq > "$nlist"T; then
5869	mv -f "$nlist"T "$nlist"
5870      else
5871	rm -f "$nlist"T
5872      fi
5873
5874      # Make sure that we snagged all the symbols we need.
5875      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5876	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5877	  cat <<_LT_EOF > conftest.$ac_ext
5878/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5879#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5880/* DATA imports from DLLs on WIN32 con't be const, because runtime
5881   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5882# define LT_DLSYM_CONST
5883#elif defined(__osf__)
5884/* This system does not cope well with relocations in const data.  */
5885# define LT_DLSYM_CONST
5886#else
5887# define LT_DLSYM_CONST const
5888#endif
5889
5890#ifdef __cplusplus
5891extern "C" {
5892#endif
5893
5894_LT_EOF
5895	  # Now generate the symbol file.
5896	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5897
5898	  cat <<_LT_EOF >> conftest.$ac_ext
5899
5900/* The mapping between symbol names and symbols.  */
5901LT_DLSYM_CONST struct {
5902  const char *name;
5903  void       *address;
5904}
5905lt__PROGRAM__LTX_preloaded_symbols[] =
5906{
5907  { "@PROGRAM@", (void *) 0 },
5908_LT_EOF
5909	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5910	  cat <<\_LT_EOF >> conftest.$ac_ext
5911  {0, (void *) 0}
5912};
5913
5914/* This works around a problem in FreeBSD linker */
5915#ifdef FREEBSD_WORKAROUND
5916static const void *lt_preloaded_setup() {
5917  return lt__PROGRAM__LTX_preloaded_symbols;
5918}
5919#endif
5920
5921#ifdef __cplusplus
5922}
5923#endif
5924_LT_EOF
5925	  # Now try linking the two files.
5926	  mv conftest.$ac_objext conftstm.$ac_objext
5927	  lt_globsym_save_LIBS=$LIBS
5928	  lt_globsym_save_CFLAGS=$CFLAGS
5929	  LIBS="conftstm.$ac_objext"
5930	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5931	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5932  (eval $ac_link) 2>&5
5933  ac_status=$?
5934  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5935  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5936	    pipe_works=yes
5937	  fi
5938	  LIBS=$lt_globsym_save_LIBS
5939	  CFLAGS=$lt_globsym_save_CFLAGS
5940	else
5941	  echo "cannot find nm_test_func in $nlist" >&5
5942	fi
5943      else
5944	echo "cannot find nm_test_var in $nlist" >&5
5945      fi
5946    else
5947      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5948    fi
5949  else
5950    echo "$progname: failed program was:" >&5
5951    cat conftest.$ac_ext >&5
5952  fi
5953  rm -rf conftest* conftst*
5954
5955  # Do not use the global_symbol_pipe unless it works.
5956  if test "$pipe_works" = yes; then
5957    break
5958  else
5959    lt_cv_sys_global_symbol_pipe=
5960  fi
5961done
5962
5963fi
5964
5965if test -z "$lt_cv_sys_global_symbol_pipe"; then
5966  lt_cv_sys_global_symbol_to_cdecl=
5967fi
5968if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5970$as_echo "failed" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5973$as_echo "ok" >&6; }
5974fi
5975
5976# Response file support.
5977if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5978  nm_file_list_spec='@'
5979elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5980  nm_file_list_spec='@'
5981fi
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6010$as_echo_n "checking for sysroot... " >&6; }
6011
6012# Check whether --with-sysroot was given.
6013if test "${with_sysroot+set}" = set; then :
6014  withval=$with_sysroot;
6015else
6016  with_sysroot=no
6017fi
6018
6019
6020lt_sysroot=
6021case ${with_sysroot} in #(
6022 yes)
6023   if test "$GCC" = yes; then
6024     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6025   fi
6026   ;; #(
6027 /*)
6028   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6029   ;; #(
6030 no|'')
6031   ;; #(
6032 *)
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6034$as_echo "${with_sysroot}" >&6; }
6035   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6036   ;;
6037esac
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6040$as_echo "${lt_sysroot:-no}" >&6; }
6041
6042
6043
6044
6045
6046# Check whether --enable-libtool-lock was given.
6047if test "${enable_libtool_lock+set}" = set; then :
6048  enableval=$enable_libtool_lock;
6049fi
6050
6051test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6052
6053# Some flags need to be propagated to the compiler or linker for good
6054# libtool support.
6055case $host in
6056ia64-*-hpux*)
6057  # Find out which ABI we are using.
6058  echo 'int i;' > conftest.$ac_ext
6059  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6060  (eval $ac_compile) 2>&5
6061  ac_status=$?
6062  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063  test $ac_status = 0; }; then
6064    case `/usr/bin/file conftest.$ac_objext` in
6065      *ELF-32*)
6066	HPUX_IA64_MODE="32"
6067	;;
6068      *ELF-64*)
6069	HPUX_IA64_MODE="64"
6070	;;
6071    esac
6072  fi
6073  rm -rf conftest*
6074  ;;
6075*-*-irix6*)
6076  # Find out which ABI we are using.
6077  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6078  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6079  (eval $ac_compile) 2>&5
6080  ac_status=$?
6081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082  test $ac_status = 0; }; then
6083    if test "$lt_cv_prog_gnu_ld" = yes; then
6084      case `/usr/bin/file conftest.$ac_objext` in
6085	*32-bit*)
6086	  LD="${LD-ld} -melf32bsmip"
6087	  ;;
6088	*N32*)
6089	  LD="${LD-ld} -melf32bmipn32"
6090	  ;;
6091	*64-bit*)
6092	  LD="${LD-ld} -melf64bmip"
6093	;;
6094      esac
6095    else
6096      case `/usr/bin/file conftest.$ac_objext` in
6097	*32-bit*)
6098	  LD="${LD-ld} -32"
6099	  ;;
6100	*N32*)
6101	  LD="${LD-ld} -n32"
6102	  ;;
6103	*64-bit*)
6104	  LD="${LD-ld} -64"
6105	  ;;
6106      esac
6107    fi
6108  fi
6109  rm -rf conftest*
6110  ;;
6111
6112x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6113s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6114  # Find out which ABI we are using.
6115  echo 'int i;' > conftest.$ac_ext
6116  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117  (eval $ac_compile) 2>&5
6118  ac_status=$?
6119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120  test $ac_status = 0; }; then
6121    case `/usr/bin/file conftest.o` in
6122      *32-bit*)
6123	case $host in
6124	  x86_64-*kfreebsd*-gnu)
6125	    LD="${LD-ld} -m elf_i386_fbsd"
6126	    ;;
6127	  x86_64-*linux*)
6128	    LD="${LD-ld} -m elf_i386"
6129	    ;;
6130	  ppc64-*linux*|powerpc64-*linux*)
6131	    LD="${LD-ld} -m elf32ppclinux"
6132	    ;;
6133	  s390x-*linux*)
6134	    LD="${LD-ld} -m elf_s390"
6135	    ;;
6136	  sparc64-*linux*)
6137	    LD="${LD-ld} -m elf32_sparc"
6138	    ;;
6139	esac
6140	;;
6141      *64-bit*)
6142	case $host in
6143	  x86_64-*kfreebsd*-gnu)
6144	    LD="${LD-ld} -m elf_x86_64_fbsd"
6145	    ;;
6146	  x86_64-*linux*)
6147	    LD="${LD-ld} -m elf_x86_64"
6148	    ;;
6149	  ppc*-*linux*|powerpc*-*linux*)
6150	    LD="${LD-ld} -m elf64ppc"
6151	    ;;
6152	  s390*-*linux*|s390*-*tpf*)
6153	    LD="${LD-ld} -m elf64_s390"
6154	    ;;
6155	  sparc*-*linux*)
6156	    LD="${LD-ld} -m elf64_sparc"
6157	    ;;
6158	esac
6159	;;
6160    esac
6161  fi
6162  rm -rf conftest*
6163  ;;
6164
6165*-*-sco3.2v5*)
6166  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6167  SAVE_CFLAGS="$CFLAGS"
6168  CFLAGS="$CFLAGS -belf"
6169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6170$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6171if ${lt_cv_cc_needs_belf+:} false; then :
6172  $as_echo_n "(cached) " >&6
6173else
6174  ac_ext=c
6175ac_cpp='$CPP $CPPFLAGS'
6176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179
6180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181/* end confdefs.h.  */
6182
6183int
6184main ()
6185{
6186
6187  ;
6188  return 0;
6189}
6190_ACEOF
6191if ac_fn_c_try_link "$LINENO"; then :
6192  lt_cv_cc_needs_belf=yes
6193else
6194  lt_cv_cc_needs_belf=no
6195fi
6196rm -f core conftest.err conftest.$ac_objext \
6197    conftest$ac_exeext conftest.$ac_ext
6198     ac_ext=c
6199ac_cpp='$CPP $CPPFLAGS'
6200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204fi
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6206$as_echo "$lt_cv_cc_needs_belf" >&6; }
6207  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6208    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6209    CFLAGS="$SAVE_CFLAGS"
6210  fi
6211  ;;
6212*-*solaris*)
6213  # Find out which ABI we are using.
6214  echo 'int i;' > conftest.$ac_ext
6215  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216  (eval $ac_compile) 2>&5
6217  ac_status=$?
6218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219  test $ac_status = 0; }; then
6220    case `/usr/bin/file conftest.o` in
6221    *64-bit*)
6222      case $lt_cv_prog_gnu_ld in
6223      yes*)
6224        case $host in
6225        i?86-*-solaris*)
6226          LD="${LD-ld} -m elf_x86_64"
6227          ;;
6228        sparc*-*-solaris*)
6229          LD="${LD-ld} -m elf64_sparc"
6230          ;;
6231        esac
6232        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6233        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6234          LD="${LD-ld}_sol2"
6235        fi
6236        ;;
6237      *)
6238	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6239	  LD="${LD-ld} -64"
6240	fi
6241	;;
6242      esac
6243      ;;
6244    esac
6245  fi
6246  rm -rf conftest*
6247  ;;
6248esac
6249
6250need_locks="$enable_libtool_lock"
6251
6252if test -n "$ac_tool_prefix"; then
6253  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6254set dummy ${ac_tool_prefix}mt; ac_word=$2
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256$as_echo_n "checking for $ac_word... " >&6; }
6257if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6258  $as_echo_n "(cached) " >&6
6259else
6260  if test -n "$MANIFEST_TOOL"; then
6261  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268    for ac_exec_ext in '' $ac_executable_extensions; do
6269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272    break 2
6273  fi
6274done
6275  done
6276IFS=$as_save_IFS
6277
6278fi
6279fi
6280MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6281if test -n "$MANIFEST_TOOL"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6283$as_echo "$MANIFEST_TOOL" >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286$as_echo "no" >&6; }
6287fi
6288
6289
6290fi
6291if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6292  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6293  # Extract the first word of "mt", so it can be a program name with args.
6294set dummy mt; ac_word=$2
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296$as_echo_n "checking for $ac_word... " >&6; }
6297if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6298  $as_echo_n "(cached) " >&6
6299else
6300  if test -n "$ac_ct_MANIFEST_TOOL"; then
6301  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  test -z "$as_dir" && as_dir=.
6308    for ac_exec_ext in '' $ac_executable_extensions; do
6309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315  done
6316IFS=$as_save_IFS
6317
6318fi
6319fi
6320ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6321if test -n "$ac_ct_MANIFEST_TOOL"; then
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6323$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6324else
6325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326$as_echo "no" >&6; }
6327fi
6328
6329  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6330    MANIFEST_TOOL=":"
6331  else
6332    case $cross_compiling:$ac_tool_warned in
6333yes:)
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6336ac_tool_warned=yes ;;
6337esac
6338    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6339  fi
6340else
6341  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6342fi
6343
6344test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6346$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6347if ${lt_cv_path_mainfest_tool+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  lt_cv_path_mainfest_tool=no
6351  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6352  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6353  cat conftest.err >&5
6354  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6355    lt_cv_path_mainfest_tool=yes
6356  fi
6357  rm -f conftest*
6358fi
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6360$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6361if test "x$lt_cv_path_mainfest_tool" != xyes; then
6362  MANIFEST_TOOL=:
6363fi
6364
6365
6366
6367
6368
6369
6370  case $host_os in
6371    rhapsody* | darwin*)
6372    if test -n "$ac_tool_prefix"; then
6373  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376$as_echo_n "checking for $ac_word... " >&6; }
6377if ${ac_cv_prog_DSYMUTIL+:} false; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  if test -n "$DSYMUTIL"; then
6381  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386  IFS=$as_save_IFS
6387  test -z "$as_dir" && as_dir=.
6388    for ac_exec_ext in '' $ac_executable_extensions; do
6389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392    break 2
6393  fi
6394done
6395  done
6396IFS=$as_save_IFS
6397
6398fi
6399fi
6400DSYMUTIL=$ac_cv_prog_DSYMUTIL
6401if test -n "$DSYMUTIL"; then
6402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6403$as_echo "$DSYMUTIL" >&6; }
6404else
6405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406$as_echo "no" >&6; }
6407fi
6408
6409
6410fi
6411if test -z "$ac_cv_prog_DSYMUTIL"; then
6412  ac_ct_DSYMUTIL=$DSYMUTIL
6413  # Extract the first word of "dsymutil", so it can be a program name with args.
6414set dummy dsymutil; ac_word=$2
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416$as_echo_n "checking for $ac_word... " >&6; }
6417if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  if test -n "$ac_ct_DSYMUTIL"; then
6421  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6422else
6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424for as_dir in $PATH
6425do
6426  IFS=$as_save_IFS
6427  test -z "$as_dir" && as_dir=.
6428    for ac_exec_ext in '' $ac_executable_extensions; do
6429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432    break 2
6433  fi
6434done
6435  done
6436IFS=$as_save_IFS
6437
6438fi
6439fi
6440ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6441if test -n "$ac_ct_DSYMUTIL"; then
6442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6443$as_echo "$ac_ct_DSYMUTIL" >&6; }
6444else
6445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
6447fi
6448
6449  if test "x$ac_ct_DSYMUTIL" = x; then
6450    DSYMUTIL=":"
6451  else
6452    case $cross_compiling:$ac_tool_warned in
6453yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458    DSYMUTIL=$ac_ct_DSYMUTIL
6459  fi
6460else
6461  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6462fi
6463
6464    if test -n "$ac_tool_prefix"; then
6465  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6466set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468$as_echo_n "checking for $ac_word... " >&6; }
6469if ${ac_cv_prog_NMEDIT+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  if test -n "$NMEDIT"; then
6473  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  test -z "$as_dir" && as_dir=.
6480    for ac_exec_ext in '' $ac_executable_extensions; do
6481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484    break 2
6485  fi
6486done
6487  done
6488IFS=$as_save_IFS
6489
6490fi
6491fi
6492NMEDIT=$ac_cv_prog_NMEDIT
6493if test -n "$NMEDIT"; then
6494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6495$as_echo "$NMEDIT" >&6; }
6496else
6497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
6499fi
6500
6501
6502fi
6503if test -z "$ac_cv_prog_NMEDIT"; then
6504  ac_ct_NMEDIT=$NMEDIT
6505  # Extract the first word of "nmedit", so it can be a program name with args.
6506set dummy nmedit; ac_word=$2
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508$as_echo_n "checking for $ac_word... " >&6; }
6509if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6510  $as_echo_n "(cached) " >&6
6511else
6512  if test -n "$ac_ct_NMEDIT"; then
6513  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520    for ac_exec_ext in '' $ac_executable_extensions; do
6521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527  done
6528IFS=$as_save_IFS
6529
6530fi
6531fi
6532ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6533if test -n "$ac_ct_NMEDIT"; then
6534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6535$as_echo "$ac_ct_NMEDIT" >&6; }
6536else
6537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538$as_echo "no" >&6; }
6539fi
6540
6541  if test "x$ac_ct_NMEDIT" = x; then
6542    NMEDIT=":"
6543  else
6544    case $cross_compiling:$ac_tool_warned in
6545yes:)
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548ac_tool_warned=yes ;;
6549esac
6550    NMEDIT=$ac_ct_NMEDIT
6551  fi
6552else
6553  NMEDIT="$ac_cv_prog_NMEDIT"
6554fi
6555
6556    if test -n "$ac_tool_prefix"; then
6557  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6558set dummy ${ac_tool_prefix}lipo; ac_word=$2
6559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560$as_echo_n "checking for $ac_word... " >&6; }
6561if ${ac_cv_prog_LIPO+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  if test -n "$LIPO"; then
6565  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572    for ac_exec_ext in '' $ac_executable_extensions; do
6573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579  done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584LIPO=$ac_cv_prog_LIPO
6585if test -n "$LIPO"; then
6586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6587$as_echo "$LIPO" >&6; }
6588else
6589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590$as_echo "no" >&6; }
6591fi
6592
6593
6594fi
6595if test -z "$ac_cv_prog_LIPO"; then
6596  ac_ct_LIPO=$LIPO
6597  # Extract the first word of "lipo", so it can be a program name with args.
6598set dummy lipo; ac_word=$2
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600$as_echo_n "checking for $ac_word... " >&6; }
6601if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  if test -n "$ac_ct_LIPO"; then
6605  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612    for ac_exec_ext in '' $ac_executable_extensions; do
6613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614    ac_cv_prog_ac_ct_LIPO="lipo"
6615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619  done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6625if test -n "$ac_ct_LIPO"; then
6626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6627$as_echo "$ac_ct_LIPO" >&6; }
6628else
6629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630$as_echo "no" >&6; }
6631fi
6632
6633  if test "x$ac_ct_LIPO" = x; then
6634    LIPO=":"
6635  else
6636    case $cross_compiling:$ac_tool_warned in
6637yes:)
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640ac_tool_warned=yes ;;
6641esac
6642    LIPO=$ac_ct_LIPO
6643  fi
6644else
6645  LIPO="$ac_cv_prog_LIPO"
6646fi
6647
6648    if test -n "$ac_tool_prefix"; then
6649  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6650set dummy ${ac_tool_prefix}otool; ac_word=$2
6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652$as_echo_n "checking for $ac_word... " >&6; }
6653if ${ac_cv_prog_OTOOL+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  if test -n "$OTOOL"; then
6657  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674fi
6675fi
6676OTOOL=$ac_cv_prog_OTOOL
6677if test -n "$OTOOL"; then
6678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6679$as_echo "$OTOOL" >&6; }
6680else
6681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682$as_echo "no" >&6; }
6683fi
6684
6685
6686fi
6687if test -z "$ac_cv_prog_OTOOL"; then
6688  ac_ct_OTOOL=$OTOOL
6689  # Extract the first word of "otool", so it can be a program name with args.
6690set dummy otool; ac_word=$2
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692$as_echo_n "checking for $ac_word... " >&6; }
6693if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  if test -n "$ac_ct_OTOOL"; then
6697  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702  IFS=$as_save_IFS
6703  test -z "$as_dir" && as_dir=.
6704    for ac_exec_ext in '' $ac_executable_extensions; do
6705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706    ac_cv_prog_ac_ct_OTOOL="otool"
6707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708    break 2
6709  fi
6710done
6711  done
6712IFS=$as_save_IFS
6713
6714fi
6715fi
6716ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6717if test -n "$ac_ct_OTOOL"; then
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6719$as_echo "$ac_ct_OTOOL" >&6; }
6720else
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722$as_echo "no" >&6; }
6723fi
6724
6725  if test "x$ac_ct_OTOOL" = x; then
6726    OTOOL=":"
6727  else
6728    case $cross_compiling:$ac_tool_warned in
6729yes:)
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732ac_tool_warned=yes ;;
6733esac
6734    OTOOL=$ac_ct_OTOOL
6735  fi
6736else
6737  OTOOL="$ac_cv_prog_OTOOL"
6738fi
6739
6740    if test -n "$ac_tool_prefix"; then
6741  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}otool64; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_OTOOL64+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  if test -n "$OTOOL64"; then
6749  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756    for ac_exec_ext in '' $ac_executable_extensions; do
6757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763  done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768OTOOL64=$ac_cv_prog_OTOOL64
6769if test -n "$OTOOL64"; then
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6771$as_echo "$OTOOL64" >&6; }
6772else
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_OTOOL64"; then
6780  ac_ct_OTOOL64=$OTOOL64
6781  # Extract the first word of "otool64", so it can be a program name with args.
6782set dummy otool64; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6786  $as_echo_n "(cached) " >&6
6787else
6788  if test -n "$ac_ct_OTOOL64"; then
6789  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794  IFS=$as_save_IFS
6795  test -z "$as_dir" && as_dir=.
6796    for ac_exec_ext in '' $ac_executable_extensions; do
6797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798    ac_cv_prog_ac_ct_OTOOL64="otool64"
6799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800    break 2
6801  fi
6802done
6803  done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6809if test -n "$ac_ct_OTOOL64"; then
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6811$as_echo "$ac_ct_OTOOL64" >&6; }
6812else
6813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817  if test "x$ac_ct_OTOOL64" = x; then
6818    OTOOL64=":"
6819  else
6820    case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826    OTOOL64=$ac_ct_OTOOL64
6827  fi
6828else
6829  OTOOL64="$ac_cv_prog_OTOOL64"
6830fi
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6859$as_echo_n "checking for -single_module linker flag... " >&6; }
6860if ${lt_cv_apple_cc_single_mod+:} false; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  lt_cv_apple_cc_single_mod=no
6864      if test -z "${LT_MULTI_MODULE}"; then
6865	# By default we will add the -single_module flag. You can override
6866	# by either setting the environment variable LT_MULTI_MODULE
6867	# non-empty at configure time, or by adding -multi_module to the
6868	# link flags.
6869	rm -rf libconftest.dylib*
6870	echo "int foo(void){return 1;}" > conftest.c
6871	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6872-dynamiclib -Wl,-single_module conftest.c" >&5
6873	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6874	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6875        _lt_result=$?
6876	# If there is a non-empty error log, and "single_module"
6877	# appears in it, assume the flag caused a linker warning
6878        if test -s conftest.err && $GREP single_module conftest.err; then
6879	  cat conftest.err >&5
6880	# Otherwise, if the output was created with a 0 exit code from
6881	# the compiler, it worked.
6882	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6883	  lt_cv_apple_cc_single_mod=yes
6884	else
6885	  cat conftest.err >&5
6886	fi
6887	rm -rf libconftest.dylib*
6888	rm -f conftest.*
6889      fi
6890fi
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6892$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6893
6894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6895$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6896if ${lt_cv_ld_exported_symbols_list+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  lt_cv_ld_exported_symbols_list=no
6900      save_LDFLAGS=$LDFLAGS
6901      echo "_main" > conftest.sym
6902      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6903      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905
6906int
6907main ()
6908{
6909
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914if ac_fn_c_try_link "$LINENO"; then :
6915  lt_cv_ld_exported_symbols_list=yes
6916else
6917  lt_cv_ld_exported_symbols_list=no
6918fi
6919rm -f core conftest.err conftest.$ac_objext \
6920    conftest$ac_exeext conftest.$ac_ext
6921	LDFLAGS="$save_LDFLAGS"
6922
6923fi
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6925$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6926
6927    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6928$as_echo_n "checking for -force_load linker flag... " >&6; }
6929if ${lt_cv_ld_force_load+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  lt_cv_ld_force_load=no
6933      cat > conftest.c << _LT_EOF
6934int forced_loaded() { return 2;}
6935_LT_EOF
6936      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6937      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6938      echo "$AR cru libconftest.a conftest.o" >&5
6939      $AR cru libconftest.a conftest.o 2>&5
6940      echo "$RANLIB libconftest.a" >&5
6941      $RANLIB libconftest.a 2>&5
6942      cat > conftest.c << _LT_EOF
6943int main() { return 0;}
6944_LT_EOF
6945      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6946      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6947      _lt_result=$?
6948      if test -s conftest.err && $GREP force_load conftest.err; then
6949	cat conftest.err >&5
6950      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6951	lt_cv_ld_force_load=yes
6952      else
6953	cat conftest.err >&5
6954      fi
6955        rm -f conftest.err libconftest.a conftest conftest.c
6956        rm -rf conftest.dSYM
6957
6958fi
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6960$as_echo "$lt_cv_ld_force_load" >&6; }
6961    case $host_os in
6962    rhapsody* | darwin1.[012])
6963      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6964    darwin1.*)
6965      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6966    darwin*) # darwin 5.x on
6967      # if running on 10.5 or later, the deployment target defaults
6968      # to the OS version, if on x86, and 10.4, the deployment
6969      # target defaults to 10.4. Don't you love it?
6970      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6971	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6972	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6973	10.[012]*)
6974	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6975	10.*)
6976	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6977      esac
6978    ;;
6979  esac
6980    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6981      _lt_dar_single_mod='$single_module'
6982    fi
6983    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6984      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6985    else
6986      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6987    fi
6988    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6989      _lt_dsymutil='~$DSYMUTIL $lib || :'
6990    else
6991      _lt_dsymutil=
6992    fi
6993    ;;
6994  esac
6995
6996ac_ext=c
6997ac_cpp='$CPP $CPPFLAGS'
6998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7002$as_echo_n "checking how to run the C preprocessor... " >&6; }
7003# On Suns, sometimes $CPP names a directory.
7004if test -n "$CPP" && test -d "$CPP"; then
7005  CPP=
7006fi
7007if test -z "$CPP"; then
7008  if ${ac_cv_prog_CPP+:} false; then :
7009  $as_echo_n "(cached) " >&6
7010else
7011      # Double quotes because CPP needs to be expanded
7012    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7013    do
7014      ac_preproc_ok=false
7015for ac_c_preproc_warn_flag in '' yes
7016do
7017  # Use a header file that comes with gcc, so configuring glibc
7018  # with a fresh cross-compiler works.
7019  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7020  # <limits.h> exists even on freestanding compilers.
7021  # On the NeXT, cc -E runs the code through the compiler's parser,
7022  # not just through cpp. "Syntax error" is here to catch this case.
7023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025#ifdef __STDC__
7026# include <limits.h>
7027#else
7028# include <assert.h>
7029#endif
7030		     Syntax error
7031_ACEOF
7032if ac_fn_c_try_cpp "$LINENO"; then :
7033
7034else
7035  # Broken: fails on valid input.
7036continue
7037fi
7038rm -f conftest.err conftest.i conftest.$ac_ext
7039
7040  # OK, works on sane cases.  Now check whether nonexistent headers
7041  # can be detected and how.
7042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h.  */
7044#include <ac_nonexistent.h>
7045_ACEOF
7046if ac_fn_c_try_cpp "$LINENO"; then :
7047  # Broken: success on invalid input.
7048continue
7049else
7050  # Passes both tests.
7051ac_preproc_ok=:
7052break
7053fi
7054rm -f conftest.err conftest.i conftest.$ac_ext
7055
7056done
7057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7058rm -f conftest.i conftest.err conftest.$ac_ext
7059if $ac_preproc_ok; then :
7060  break
7061fi
7062
7063    done
7064    ac_cv_prog_CPP=$CPP
7065
7066fi
7067  CPP=$ac_cv_prog_CPP
7068else
7069  ac_cv_prog_CPP=$CPP
7070fi
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7072$as_echo "$CPP" >&6; }
7073ac_preproc_ok=false
7074for ac_c_preproc_warn_flag in '' yes
7075do
7076  # Use a header file that comes with gcc, so configuring glibc
7077  # with a fresh cross-compiler works.
7078  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7079  # <limits.h> exists even on freestanding compilers.
7080  # On the NeXT, cc -E runs the code through the compiler's parser,
7081  # not just through cpp. "Syntax error" is here to catch this case.
7082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083/* end confdefs.h.  */
7084#ifdef __STDC__
7085# include <limits.h>
7086#else
7087# include <assert.h>
7088#endif
7089		     Syntax error
7090_ACEOF
7091if ac_fn_c_try_cpp "$LINENO"; then :
7092
7093else
7094  # Broken: fails on valid input.
7095continue
7096fi
7097rm -f conftest.err conftest.i conftest.$ac_ext
7098
7099  # OK, works on sane cases.  Now check whether nonexistent headers
7100  # can be detected and how.
7101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103#include <ac_nonexistent.h>
7104_ACEOF
7105if ac_fn_c_try_cpp "$LINENO"; then :
7106  # Broken: success on invalid input.
7107continue
7108else
7109  # Passes both tests.
7110ac_preproc_ok=:
7111break
7112fi
7113rm -f conftest.err conftest.i conftest.$ac_ext
7114
7115done
7116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7117rm -f conftest.i conftest.err conftest.$ac_ext
7118if $ac_preproc_ok; then :
7119
7120else
7121  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7123as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7124See \`config.log' for more details" "$LINENO" 5; }
7125fi
7126
7127ac_ext=c
7128ac_cpp='$CPP $CPPFLAGS'
7129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132
7133
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7135$as_echo_n "checking for ANSI C header files... " >&6; }
7136if ${ac_cv_header_stdc+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141#include <stdlib.h>
7142#include <stdarg.h>
7143#include <string.h>
7144#include <float.h>
7145
7146int
7147main ()
7148{
7149
7150  ;
7151  return 0;
7152}
7153_ACEOF
7154if ac_fn_c_try_compile "$LINENO"; then :
7155  ac_cv_header_stdc=yes
7156else
7157  ac_cv_header_stdc=no
7158fi
7159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160
7161if test $ac_cv_header_stdc = yes; then
7162  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165#include <string.h>
7166
7167_ACEOF
7168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7169  $EGREP "memchr" >/dev/null 2>&1; then :
7170
7171else
7172  ac_cv_header_stdc=no
7173fi
7174rm -f conftest*
7175
7176fi
7177
7178if test $ac_cv_header_stdc = yes; then
7179  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182#include <stdlib.h>
7183
7184_ACEOF
7185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186  $EGREP "free" >/dev/null 2>&1; then :
7187
7188else
7189  ac_cv_header_stdc=no
7190fi
7191rm -f conftest*
7192
7193fi
7194
7195if test $ac_cv_header_stdc = yes; then
7196  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7197  if test "$cross_compiling" = yes; then :
7198  :
7199else
7200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h.  */
7202#include <ctype.h>
7203#include <stdlib.h>
7204#if ((' ' & 0x0FF) == 0x020)
7205# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7206# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7207#else
7208# define ISLOWER(c) \
7209		   (('a' <= (c) && (c) <= 'i') \
7210		     || ('j' <= (c) && (c) <= 'r') \
7211		     || ('s' <= (c) && (c) <= 'z'))
7212# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7213#endif
7214
7215#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7216int
7217main ()
7218{
7219  int i;
7220  for (i = 0; i < 256; i++)
7221    if (XOR (islower (i), ISLOWER (i))
7222	|| toupper (i) != TOUPPER (i))
7223      return 2;
7224  return 0;
7225}
7226_ACEOF
7227if ac_fn_c_try_run "$LINENO"; then :
7228
7229else
7230  ac_cv_header_stdc=no
7231fi
7232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7233  conftest.$ac_objext conftest.beam conftest.$ac_ext
7234fi
7235
7236fi
7237fi
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7239$as_echo "$ac_cv_header_stdc" >&6; }
7240if test $ac_cv_header_stdc = yes; then
7241
7242$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7243
7244fi
7245
7246# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7247for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7248		  inttypes.h stdint.h unistd.h
7249do :
7250  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7251ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7252"
7253if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7254  cat >>confdefs.h <<_ACEOF
7255#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7256_ACEOF
7257
7258fi
7259
7260done
7261
7262
7263for ac_header in dlfcn.h
7264do :
7265  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7266"
7267if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7268  cat >>confdefs.h <<_ACEOF
7269#define HAVE_DLFCN_H 1
7270_ACEOF
7271
7272fi
7273
7274done
7275
7276
7277
7278
7279
7280# Set options
7281
7282
7283
7284        enable_dlopen=no
7285
7286
7287  enable_win32_dll=no
7288
7289
7290            # Check whether --enable-shared was given.
7291if test "${enable_shared+set}" = set; then :
7292  enableval=$enable_shared; p=${PACKAGE-default}
7293    case $enableval in
7294    yes) enable_shared=yes ;;
7295    no) enable_shared=no ;;
7296    *)
7297      enable_shared=no
7298      # Look at the argument we got.  We use all the common list separators.
7299      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7300      for pkg in $enableval; do
7301	IFS="$lt_save_ifs"
7302	if test "X$pkg" = "X$p"; then
7303	  enable_shared=yes
7304	fi
7305      done
7306      IFS="$lt_save_ifs"
7307      ;;
7308    esac
7309else
7310  enable_shared=yes
7311fi
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321  # Check whether --enable-static was given.
7322if test "${enable_static+set}" = set; then :
7323  enableval=$enable_static; p=${PACKAGE-default}
7324    case $enableval in
7325    yes) enable_static=yes ;;
7326    no) enable_static=no ;;
7327    *)
7328     enable_static=no
7329      # Look at the argument we got.  We use all the common list separators.
7330      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7331      for pkg in $enableval; do
7332	IFS="$lt_save_ifs"
7333	if test "X$pkg" = "X$p"; then
7334	  enable_static=yes
7335	fi
7336      done
7337      IFS="$lt_save_ifs"
7338      ;;
7339    esac
7340else
7341  enable_static=yes
7342fi
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353# Check whether --with-pic was given.
7354if test "${with_pic+set}" = set; then :
7355  withval=$with_pic; lt_p=${PACKAGE-default}
7356    case $withval in
7357    yes|no) pic_mode=$withval ;;
7358    *)
7359      pic_mode=default
7360      # Look at the argument we got.  We use all the common list separators.
7361      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7362      for lt_pkg in $withval; do
7363	IFS="$lt_save_ifs"
7364	if test "X$lt_pkg" = "X$lt_p"; then
7365	  pic_mode=yes
7366	fi
7367      done
7368      IFS="$lt_save_ifs"
7369      ;;
7370    esac
7371else
7372  pic_mode=default
7373fi
7374
7375
7376test -z "$pic_mode" && pic_mode=default
7377
7378
7379
7380
7381
7382
7383
7384  # Check whether --enable-fast-install was given.
7385if test "${enable_fast_install+set}" = set; then :
7386  enableval=$enable_fast_install; p=${PACKAGE-default}
7387    case $enableval in
7388    yes) enable_fast_install=yes ;;
7389    no) enable_fast_install=no ;;
7390    *)
7391      enable_fast_install=no
7392      # Look at the argument we got.  We use all the common list separators.
7393      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7394      for pkg in $enableval; do
7395	IFS="$lt_save_ifs"
7396	if test "X$pkg" = "X$p"; then
7397	  enable_fast_install=yes
7398	fi
7399      done
7400      IFS="$lt_save_ifs"
7401      ;;
7402    esac
7403else
7404  enable_fast_install=yes
7405fi
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417# This can be used to rebuild libtool when needed
7418LIBTOOL_DEPS="$ltmain"
7419
7420# Always use our own libtool.
7421LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452test -z "$LN_S" && LN_S="ln -s"
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467if test -n "${ZSH_VERSION+set}" ; then
7468   setopt NO_GLOB_SUBST
7469fi
7470
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7472$as_echo_n "checking for objdir... " >&6; }
7473if ${lt_cv_objdir+:} false; then :
7474  $as_echo_n "(cached) " >&6
7475else
7476  rm -f .libs 2>/dev/null
7477mkdir .libs 2>/dev/null
7478if test -d .libs; then
7479  lt_cv_objdir=.libs
7480else
7481  # MS-DOS does not allow filenames that begin with a dot.
7482  lt_cv_objdir=_libs
7483fi
7484rmdir .libs 2>/dev/null
7485fi
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7487$as_echo "$lt_cv_objdir" >&6; }
7488objdir=$lt_cv_objdir
7489
7490
7491
7492
7493
7494cat >>confdefs.h <<_ACEOF
7495#define LT_OBJDIR "$lt_cv_objdir/"
7496_ACEOF
7497
7498
7499
7500
7501case $host_os in
7502aix3*)
7503  # AIX sometimes has problems with the GCC collect2 program.  For some
7504  # reason, if we set the COLLECT_NAMES environment variable, the problems
7505  # vanish in a puff of smoke.
7506  if test "X${COLLECT_NAMES+set}" != Xset; then
7507    COLLECT_NAMES=
7508    export COLLECT_NAMES
7509  fi
7510  ;;
7511esac
7512
7513# Global variables:
7514ofile=libtool
7515can_build_shared=yes
7516
7517# All known linkers require a `.a' archive for static linking (except MSVC,
7518# which needs '.lib').
7519libext=a
7520
7521with_gnu_ld="$lt_cv_prog_gnu_ld"
7522
7523old_CC="$CC"
7524old_CFLAGS="$CFLAGS"
7525
7526# Set sane defaults for various variables
7527test -z "$CC" && CC=cc
7528test -z "$LTCC" && LTCC=$CC
7529test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7530test -z "$LD" && LD=ld
7531test -z "$ac_objext" && ac_objext=o
7532
7533for cc_temp in $compiler""; do
7534  case $cc_temp in
7535    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7536    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7537    \-*) ;;
7538    *) break;;
7539  esac
7540done
7541cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7542
7543
7544# Only perform the check for file, if the check method requires it
7545test -z "$MAGIC_CMD" && MAGIC_CMD=file
7546case $deplibs_check_method in
7547file_magic*)
7548  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7550$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7551if ${lt_cv_path_MAGIC_CMD+:} false; then :
7552  $as_echo_n "(cached) " >&6
7553else
7554  case $MAGIC_CMD in
7555[\\/*] |  ?:[\\/]*)
7556  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7557  ;;
7558*)
7559  lt_save_MAGIC_CMD="$MAGIC_CMD"
7560  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7561  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7562  for ac_dir in $ac_dummy; do
7563    IFS="$lt_save_ifs"
7564    test -z "$ac_dir" && ac_dir=.
7565    if test -f $ac_dir/${ac_tool_prefix}file; then
7566      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7567      if test -n "$file_magic_test_file"; then
7568	case $deplibs_check_method in
7569	"file_magic "*)
7570	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7571	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7572	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7573	    $EGREP "$file_magic_regex" > /dev/null; then
7574	    :
7575	  else
7576	    cat <<_LT_EOF 1>&2
7577
7578*** Warning: the command libtool uses to detect shared libraries,
7579*** $file_magic_cmd, produces output that libtool cannot recognize.
7580*** The result is that libtool may fail to recognize shared libraries
7581*** as such.  This will affect the creation of libtool libraries that
7582*** depend on shared libraries, but programs linked with such libtool
7583*** libraries will work regardless of this problem.  Nevertheless, you
7584*** may want to report the problem to your system manager and/or to
7585*** bug-libtool@gnu.org
7586
7587_LT_EOF
7588	  fi ;;
7589	esac
7590      fi
7591      break
7592    fi
7593  done
7594  IFS="$lt_save_ifs"
7595  MAGIC_CMD="$lt_save_MAGIC_CMD"
7596  ;;
7597esac
7598fi
7599
7600MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7601if test -n "$MAGIC_CMD"; then
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7603$as_echo "$MAGIC_CMD" >&6; }
7604else
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606$as_echo "no" >&6; }
7607fi
7608
7609
7610
7611
7612
7613if test -z "$lt_cv_path_MAGIC_CMD"; then
7614  if test -n "$ac_tool_prefix"; then
7615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7616$as_echo_n "checking for file... " >&6; }
7617if ${lt_cv_path_MAGIC_CMD+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  case $MAGIC_CMD in
7621[\\/*] |  ?:[\\/]*)
7622  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7623  ;;
7624*)
7625  lt_save_MAGIC_CMD="$MAGIC_CMD"
7626  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7627  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7628  for ac_dir in $ac_dummy; do
7629    IFS="$lt_save_ifs"
7630    test -z "$ac_dir" && ac_dir=.
7631    if test -f $ac_dir/file; then
7632      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7633      if test -n "$file_magic_test_file"; then
7634	case $deplibs_check_method in
7635	"file_magic "*)
7636	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7637	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7638	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7639	    $EGREP "$file_magic_regex" > /dev/null; then
7640	    :
7641	  else
7642	    cat <<_LT_EOF 1>&2
7643
7644*** Warning: the command libtool uses to detect shared libraries,
7645*** $file_magic_cmd, produces output that libtool cannot recognize.
7646*** The result is that libtool may fail to recognize shared libraries
7647*** as such.  This will affect the creation of libtool libraries that
7648*** depend on shared libraries, but programs linked with such libtool
7649*** libraries will work regardless of this problem.  Nevertheless, you
7650*** may want to report the problem to your system manager and/or to
7651*** bug-libtool@gnu.org
7652
7653_LT_EOF
7654	  fi ;;
7655	esac
7656      fi
7657      break
7658    fi
7659  done
7660  IFS="$lt_save_ifs"
7661  MAGIC_CMD="$lt_save_MAGIC_CMD"
7662  ;;
7663esac
7664fi
7665
7666MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7667if test -n "$MAGIC_CMD"; then
7668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7669$as_echo "$MAGIC_CMD" >&6; }
7670else
7671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672$as_echo "no" >&6; }
7673fi
7674
7675
7676  else
7677    MAGIC_CMD=:
7678  fi
7679fi
7680
7681  fi
7682  ;;
7683esac
7684
7685# Use C for the default configuration in the libtool script
7686
7687lt_save_CC="$CC"
7688ac_ext=c
7689ac_cpp='$CPP $CPPFLAGS'
7690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7692ac_compiler_gnu=$ac_cv_c_compiler_gnu
7693
7694
7695# Source file extension for C test sources.
7696ac_ext=c
7697
7698# Object file extension for compiled C test sources.
7699objext=o
7700objext=$objext
7701
7702# Code to be used in simple compile tests
7703lt_simple_compile_test_code="int some_variable = 0;"
7704
7705# Code to be used in simple link tests
7706lt_simple_link_test_code='int main(){return(0);}'
7707
7708
7709
7710
7711
7712
7713
7714# If no C compiler was specified, use CC.
7715LTCC=${LTCC-"$CC"}
7716
7717# If no C compiler flags were specified, use CFLAGS.
7718LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7719
7720# Allow CC to be a program name with arguments.
7721compiler=$CC
7722
7723# Save the default compiler, since it gets overwritten when the other
7724# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7725compiler_DEFAULT=$CC
7726
7727# save warnings/boilerplate of simple test code
7728ac_outfile=conftest.$ac_objext
7729echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7730eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7731_lt_compiler_boilerplate=`cat conftest.err`
7732$RM conftest*
7733
7734ac_outfile=conftest.$ac_objext
7735echo "$lt_simple_link_test_code" >conftest.$ac_ext
7736eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7737_lt_linker_boilerplate=`cat conftest.err`
7738$RM -r conftest*
7739
7740
7741if test -n "$compiler"; then
7742
7743lt_prog_compiler_no_builtin_flag=
7744
7745if test "$GCC" = yes; then
7746  case $cc_basename in
7747  nvcc*)
7748    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7749  *)
7750    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7751  esac
7752
7753  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7754$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7755if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  lt_cv_prog_compiler_rtti_exceptions=no
7759   ac_outfile=conftest.$ac_objext
7760   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7761   lt_compiler_flag="-fno-rtti -fno-exceptions"
7762   # Insert the option either (1) after the last *FLAGS variable, or
7763   # (2) before a word containing "conftest.", or (3) at the end.
7764   # Note that $ac_compile itself does not contain backslashes and begins
7765   # with a dollar sign (not a hyphen), so the echo should work correctly.
7766   # The option is referenced via a variable to avoid confusing sed.
7767   lt_compile=`echo "$ac_compile" | $SED \
7768   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7770   -e 's:$: $lt_compiler_flag:'`
7771   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7772   (eval "$lt_compile" 2>conftest.err)
7773   ac_status=$?
7774   cat conftest.err >&5
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   if (exit $ac_status) && test -s "$ac_outfile"; then
7777     # The compiler can only warn and ignore the option if not recognized
7778     # So say no if there are warnings other than the usual output.
7779     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7780     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7781     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7782       lt_cv_prog_compiler_rtti_exceptions=yes
7783     fi
7784   fi
7785   $RM conftest*
7786
7787fi
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7789$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7790
7791if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7792    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7793else
7794    :
7795fi
7796
7797fi
7798
7799
7800
7801
7802
7803
7804  lt_prog_compiler_wl=
7805lt_prog_compiler_pic=
7806lt_prog_compiler_static=
7807
7808
7809  if test "$GCC" = yes; then
7810    lt_prog_compiler_wl='-Wl,'
7811    lt_prog_compiler_static='-static'
7812
7813    case $host_os in
7814      aix*)
7815      # All AIX code is PIC.
7816      if test "$host_cpu" = ia64; then
7817	# AIX 5 now supports IA64 processor
7818	lt_prog_compiler_static='-Bstatic'
7819      fi
7820      ;;
7821
7822    amigaos*)
7823      case $host_cpu in
7824      powerpc)
7825            # see comment about AmigaOS4 .so support
7826            lt_prog_compiler_pic='-fPIC'
7827        ;;
7828      m68k)
7829            # FIXME: we need at least 68020 code to build shared libraries, but
7830            # adding the `-m68020' flag to GCC prevents building anything better,
7831            # like `-m68040'.
7832            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7833        ;;
7834      esac
7835      ;;
7836
7837    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7838      # PIC is the default for these OSes.
7839      ;;
7840
7841    mingw* | cygwin* | pw32* | os2* | cegcc*)
7842      # This hack is so that the source file can tell whether it is being
7843      # built for inclusion in a dll (and should export symbols for example).
7844      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7845      # (--disable-auto-import) libraries
7846      lt_prog_compiler_pic='-DDLL_EXPORT'
7847      ;;
7848
7849    darwin* | rhapsody*)
7850      # PIC is the default on this platform
7851      # Common symbols not allowed in MH_DYLIB files
7852      lt_prog_compiler_pic='-fno-common'
7853      ;;
7854
7855    haiku*)
7856      # PIC is the default for Haiku.
7857      # The "-static" flag exists, but is broken.
7858      lt_prog_compiler_static=
7859      ;;
7860
7861    hpux*)
7862      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7863      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7864      # sets the default TLS model and affects inlining.
7865      case $host_cpu in
7866      hppa*64*)
7867	# +Z the default
7868	;;
7869      *)
7870	lt_prog_compiler_pic='-fPIC'
7871	;;
7872      esac
7873      ;;
7874
7875    interix[3-9]*)
7876      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7877      # Instead, we relocate shared libraries at runtime.
7878      ;;
7879
7880    msdosdjgpp*)
7881      # Just because we use GCC doesn't mean we suddenly get shared libraries
7882      # on systems that don't support them.
7883      lt_prog_compiler_can_build_shared=no
7884      enable_shared=no
7885      ;;
7886
7887    *nto* | *qnx*)
7888      # QNX uses GNU C++, but need to define -shared option too, otherwise
7889      # it will coredump.
7890      lt_prog_compiler_pic='-fPIC -shared'
7891      ;;
7892
7893    sysv4*MP*)
7894      if test -d /usr/nec; then
7895	lt_prog_compiler_pic=-Kconform_pic
7896      fi
7897      ;;
7898
7899    *)
7900      lt_prog_compiler_pic='-fPIC'
7901      ;;
7902    esac
7903
7904    case $cc_basename in
7905    nvcc*) # Cuda Compiler Driver 2.2
7906      lt_prog_compiler_wl='-Xlinker '
7907      if test -n "$lt_prog_compiler_pic"; then
7908        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7909      fi
7910      ;;
7911    esac
7912  else
7913    # PORTME Check for flag to pass linker flags through the system compiler.
7914    case $host_os in
7915    aix*)
7916      lt_prog_compiler_wl='-Wl,'
7917      if test "$host_cpu" = ia64; then
7918	# AIX 5 now supports IA64 processor
7919	lt_prog_compiler_static='-Bstatic'
7920      else
7921	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7922      fi
7923      ;;
7924
7925    mingw* | cygwin* | pw32* | os2* | cegcc*)
7926      # This hack is so that the source file can tell whether it is being
7927      # built for inclusion in a dll (and should export symbols for example).
7928      lt_prog_compiler_pic='-DDLL_EXPORT'
7929      ;;
7930
7931    hpux9* | hpux10* | hpux11*)
7932      lt_prog_compiler_wl='-Wl,'
7933      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7934      # not for PA HP-UX.
7935      case $host_cpu in
7936      hppa*64*|ia64*)
7937	# +Z the default
7938	;;
7939      *)
7940	lt_prog_compiler_pic='+Z'
7941	;;
7942      esac
7943      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7944      lt_prog_compiler_static='${wl}-a ${wl}archive'
7945      ;;
7946
7947    irix5* | irix6* | nonstopux*)
7948      lt_prog_compiler_wl='-Wl,'
7949      # PIC (with -KPIC) is the default.
7950      lt_prog_compiler_static='-non_shared'
7951      ;;
7952
7953    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7954      case $cc_basename in
7955      # old Intel for x86_64 which still supported -KPIC.
7956      ecc*)
7957	lt_prog_compiler_wl='-Wl,'
7958	lt_prog_compiler_pic='-KPIC'
7959	lt_prog_compiler_static='-static'
7960        ;;
7961      # icc used to be incompatible with GCC.
7962      # ICC 10 doesn't accept -KPIC any more.
7963      icc* | ifort*)
7964	lt_prog_compiler_wl='-Wl,'
7965	lt_prog_compiler_pic='-fPIC'
7966	lt_prog_compiler_static='-static'
7967        ;;
7968      # Lahey Fortran 8.1.
7969      lf95*)
7970	lt_prog_compiler_wl='-Wl,'
7971	lt_prog_compiler_pic='--shared'
7972	lt_prog_compiler_static='--static'
7973	;;
7974      nagfor*)
7975	# NAG Fortran compiler
7976	lt_prog_compiler_wl='-Wl,-Wl,,'
7977	lt_prog_compiler_pic='-PIC'
7978	lt_prog_compiler_static='-Bstatic'
7979	;;
7980      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7981        # Portland Group compilers (*not* the Pentium gcc compiler,
7982	# which looks to be a dead project)
7983	lt_prog_compiler_wl='-Wl,'
7984	lt_prog_compiler_pic='-fpic'
7985	lt_prog_compiler_static='-Bstatic'
7986        ;;
7987      ccc*)
7988        lt_prog_compiler_wl='-Wl,'
7989        # All Alpha code is PIC.
7990        lt_prog_compiler_static='-non_shared'
7991        ;;
7992      xl* | bgxl* | bgf* | mpixl*)
7993	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7994	lt_prog_compiler_wl='-Wl,'
7995	lt_prog_compiler_pic='-qpic'
7996	lt_prog_compiler_static='-qstaticlink'
7997	;;
7998      *)
7999	case `$CC -V 2>&1 | sed 5q` in
8000	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8001	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8002	  lt_prog_compiler_pic='-KPIC'
8003	  lt_prog_compiler_static='-Bstatic'
8004	  lt_prog_compiler_wl=''
8005	  ;;
8006	*Sun\ F* | *Sun*Fortran*)
8007	  lt_prog_compiler_pic='-KPIC'
8008	  lt_prog_compiler_static='-Bstatic'
8009	  lt_prog_compiler_wl='-Qoption ld '
8010	  ;;
8011	*Sun\ C*)
8012	  # Sun C 5.9
8013	  lt_prog_compiler_pic='-KPIC'
8014	  lt_prog_compiler_static='-Bstatic'
8015	  lt_prog_compiler_wl='-Wl,'
8016	  ;;
8017        *Intel*\ [CF]*Compiler*)
8018	  lt_prog_compiler_wl='-Wl,'
8019	  lt_prog_compiler_pic='-fPIC'
8020	  lt_prog_compiler_static='-static'
8021	  ;;
8022	*Portland\ Group*)
8023	  lt_prog_compiler_wl='-Wl,'
8024	  lt_prog_compiler_pic='-fpic'
8025	  lt_prog_compiler_static='-Bstatic'
8026	  ;;
8027	esac
8028	;;
8029      esac
8030      ;;
8031
8032    newsos6)
8033      lt_prog_compiler_pic='-KPIC'
8034      lt_prog_compiler_static='-Bstatic'
8035      ;;
8036
8037    *nto* | *qnx*)
8038      # QNX uses GNU C++, but need to define -shared option too, otherwise
8039      # it will coredump.
8040      lt_prog_compiler_pic='-fPIC -shared'
8041      ;;
8042
8043    osf3* | osf4* | osf5*)
8044      lt_prog_compiler_wl='-Wl,'
8045      # All OSF/1 code is PIC.
8046      lt_prog_compiler_static='-non_shared'
8047      ;;
8048
8049    rdos*)
8050      lt_prog_compiler_static='-non_shared'
8051      ;;
8052
8053    solaris*)
8054      lt_prog_compiler_pic='-KPIC'
8055      lt_prog_compiler_static='-Bstatic'
8056      case $cc_basename in
8057      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8058	lt_prog_compiler_wl='-Qoption ld ';;
8059      *)
8060	lt_prog_compiler_wl='-Wl,';;
8061      esac
8062      ;;
8063
8064    sunos4*)
8065      lt_prog_compiler_wl='-Qoption ld '
8066      lt_prog_compiler_pic='-PIC'
8067      lt_prog_compiler_static='-Bstatic'
8068      ;;
8069
8070    sysv4 | sysv4.2uw2* | sysv4.3*)
8071      lt_prog_compiler_wl='-Wl,'
8072      lt_prog_compiler_pic='-KPIC'
8073      lt_prog_compiler_static='-Bstatic'
8074      ;;
8075
8076    sysv4*MP*)
8077      if test -d /usr/nec ;then
8078	lt_prog_compiler_pic='-Kconform_pic'
8079	lt_prog_compiler_static='-Bstatic'
8080      fi
8081      ;;
8082
8083    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8084      lt_prog_compiler_wl='-Wl,'
8085      lt_prog_compiler_pic='-KPIC'
8086      lt_prog_compiler_static='-Bstatic'
8087      ;;
8088
8089    unicos*)
8090      lt_prog_compiler_wl='-Wl,'
8091      lt_prog_compiler_can_build_shared=no
8092      ;;
8093
8094    uts4*)
8095      lt_prog_compiler_pic='-pic'
8096      lt_prog_compiler_static='-Bstatic'
8097      ;;
8098
8099    *)
8100      lt_prog_compiler_can_build_shared=no
8101      ;;
8102    esac
8103  fi
8104
8105case $host_os in
8106  # For platforms which do not support PIC, -DPIC is meaningless:
8107  *djgpp*)
8108    lt_prog_compiler_pic=
8109    ;;
8110  *)
8111    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8112    ;;
8113esac
8114
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8116$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8117if ${lt_cv_prog_compiler_pic+:} false; then :
8118  $as_echo_n "(cached) " >&6
8119else
8120  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8121fi
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8123$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8124lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8125
8126#
8127# Check to make sure the PIC flag actually works.
8128#
8129if test -n "$lt_prog_compiler_pic"; then
8130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8132if ${lt_cv_prog_compiler_pic_works+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  lt_cv_prog_compiler_pic_works=no
8136   ac_outfile=conftest.$ac_objext
8137   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8138   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8139   # Insert the option either (1) after the last *FLAGS variable, or
8140   # (2) before a word containing "conftest.", or (3) at the end.
8141   # Note that $ac_compile itself does not contain backslashes and begins
8142   # with a dollar sign (not a hyphen), so the echo should work correctly.
8143   # The option is referenced via a variable to avoid confusing sed.
8144   lt_compile=`echo "$ac_compile" | $SED \
8145   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8146   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147   -e 's:$: $lt_compiler_flag:'`
8148   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8149   (eval "$lt_compile" 2>conftest.err)
8150   ac_status=$?
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   if (exit $ac_status) && test -s "$ac_outfile"; then
8154     # The compiler can only warn and ignore the option if not recognized
8155     # So say no if there are warnings other than the usual output.
8156     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8157     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8158     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8159       lt_cv_prog_compiler_pic_works=yes
8160     fi
8161   fi
8162   $RM conftest*
8163
8164fi
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8166$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8167
8168if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8169    case $lt_prog_compiler_pic in
8170     "" | " "*) ;;
8171     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8172     esac
8173else
8174    lt_prog_compiler_pic=
8175     lt_prog_compiler_can_build_shared=no
8176fi
8177
8178fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190#
8191# Check to make sure the static flag actually works.
8192#
8193wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8195$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8196if ${lt_cv_prog_compiler_static_works+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  lt_cv_prog_compiler_static_works=no
8200   save_LDFLAGS="$LDFLAGS"
8201   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8202   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8203   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8204     # The linker can only warn and ignore the option if not recognized
8205     # So say no if there are warnings
8206     if test -s conftest.err; then
8207       # Append any errors to the config.log.
8208       cat conftest.err 1>&5
8209       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8210       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8211       if diff conftest.exp conftest.er2 >/dev/null; then
8212         lt_cv_prog_compiler_static_works=yes
8213       fi
8214     else
8215       lt_cv_prog_compiler_static_works=yes
8216     fi
8217   fi
8218   $RM -r conftest*
8219   LDFLAGS="$save_LDFLAGS"
8220
8221fi
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8223$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8224
8225if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8226    :
8227else
8228    lt_prog_compiler_static=
8229fi
8230
8231
8232
8233
8234
8235
8236
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8238$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8239if ${lt_cv_prog_compiler_c_o+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  lt_cv_prog_compiler_c_o=no
8243   $RM -r conftest 2>/dev/null
8244   mkdir conftest
8245   cd conftest
8246   mkdir out
8247   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
8249   lt_compiler_flag="-o out/conftest2.$ac_objext"
8250   # Insert the option either (1) after the last *FLAGS variable, or
8251   # (2) before a word containing "conftest.", or (3) at the end.
8252   # Note that $ac_compile itself does not contain backslashes and begins
8253   # with a dollar sign (not a hyphen), so the echo should work correctly.
8254   lt_compile=`echo "$ac_compile" | $SED \
8255   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257   -e 's:$: $lt_compiler_flag:'`
8258   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259   (eval "$lt_compile" 2>out/conftest.err)
8260   ac_status=$?
8261   cat out/conftest.err >&5
8262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8264   then
8265     # The compiler can only warn and ignore the option if not recognized
8266     # So say no if there are warnings
8267     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8268     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8269     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8270       lt_cv_prog_compiler_c_o=yes
8271     fi
8272   fi
8273   chmod u+w . 2>&5
8274   $RM conftest*
8275   # SGI C++ compiler will create directory out/ii_files/ for
8276   # template instantiation
8277   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8278   $RM out/* && rmdir out
8279   cd ..
8280   $RM -r conftest
8281   $RM conftest*
8282
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8285$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8286
8287
8288
8289
8290
8291
8292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8293$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8294if ${lt_cv_prog_compiler_c_o+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  lt_cv_prog_compiler_c_o=no
8298   $RM -r conftest 2>/dev/null
8299   mkdir conftest
8300   cd conftest
8301   mkdir out
8302   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8303
8304   lt_compiler_flag="-o out/conftest2.$ac_objext"
8305   # Insert the option either (1) after the last *FLAGS variable, or
8306   # (2) before a word containing "conftest.", or (3) at the end.
8307   # Note that $ac_compile itself does not contain backslashes and begins
8308   # with a dollar sign (not a hyphen), so the echo should work correctly.
8309   lt_compile=`echo "$ac_compile" | $SED \
8310   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8311   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8312   -e 's:$: $lt_compiler_flag:'`
8313   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8314   (eval "$lt_compile" 2>out/conftest.err)
8315   ac_status=$?
8316   cat out/conftest.err >&5
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8319   then
8320     # The compiler can only warn and ignore the option if not recognized
8321     # So say no if there are warnings
8322     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8323     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8324     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8325       lt_cv_prog_compiler_c_o=yes
8326     fi
8327   fi
8328   chmod u+w . 2>&5
8329   $RM conftest*
8330   # SGI C++ compiler will create directory out/ii_files/ for
8331   # template instantiation
8332   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8333   $RM out/* && rmdir out
8334   cd ..
8335   $RM -r conftest
8336   $RM conftest*
8337
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8340$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8341
8342
8343
8344
8345hard_links="nottested"
8346if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8347  # do not overwrite the value of need_locks provided by the user
8348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8349$as_echo_n "checking if we can lock with hard links... " >&6; }
8350  hard_links=yes
8351  $RM conftest*
8352  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8353  touch conftest.a
8354  ln conftest.a conftest.b 2>&5 || hard_links=no
8355  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8357$as_echo "$hard_links" >&6; }
8358  if test "$hard_links" = no; then
8359    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8360$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8361    need_locks=warn
8362  fi
8363else
8364  need_locks=no
8365fi
8366
8367
8368
8369
8370
8371
8372  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8373$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8374
8375  runpath_var=
8376  allow_undefined_flag=
8377  always_export_symbols=no
8378  archive_cmds=
8379  archive_expsym_cmds=
8380  compiler_needs_object=no
8381  enable_shared_with_static_runtimes=no
8382  export_dynamic_flag_spec=
8383  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8384  hardcode_automatic=no
8385  hardcode_direct=no
8386  hardcode_direct_absolute=no
8387  hardcode_libdir_flag_spec=
8388  hardcode_libdir_separator=
8389  hardcode_minus_L=no
8390  hardcode_shlibpath_var=unsupported
8391  inherit_rpath=no
8392  link_all_deplibs=unknown
8393  module_cmds=
8394  module_expsym_cmds=
8395  old_archive_from_new_cmds=
8396  old_archive_from_expsyms_cmds=
8397  thread_safe_flag_spec=
8398  whole_archive_flag_spec=
8399  # include_expsyms should be a list of space-separated symbols to be *always*
8400  # included in the symbol list
8401  include_expsyms=
8402  # exclude_expsyms can be an extended regexp of symbols to exclude
8403  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8404  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8405  # as well as any symbol that contains `d'.
8406  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8407  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8408  # platforms (ab)use it in PIC code, but their linkers get confused if
8409  # the symbol is explicitly referenced.  Since portable code cannot
8410  # rely on this symbol name, it's probably fine to never include it in
8411  # preloaded symbol tables.
8412  # Exclude shared library initialization/finalization symbols.
8413  extract_expsyms_cmds=
8414
8415  case $host_os in
8416  cygwin* | mingw* | pw32* | cegcc*)
8417    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8418    # When not using gcc, we currently assume that we are using
8419    # Microsoft Visual C++.
8420    if test "$GCC" != yes; then
8421      with_gnu_ld=no
8422    fi
8423    ;;
8424  interix*)
8425    # we just hope/assume this is gcc and not c89 (= MSVC++)
8426    with_gnu_ld=yes
8427    ;;
8428  openbsd*)
8429    with_gnu_ld=no
8430    ;;
8431  esac
8432
8433  ld_shlibs=yes
8434
8435  # On some targets, GNU ld is compatible enough with the native linker
8436  # that we're better off using the native interface for both.
8437  lt_use_gnu_ld_interface=no
8438  if test "$with_gnu_ld" = yes; then
8439    case $host_os in
8440      aix*)
8441	# The AIX port of GNU ld has always aspired to compatibility
8442	# with the native linker.  However, as the warning in the GNU ld
8443	# block says, versions before 2.19.5* couldn't really create working
8444	# shared libraries, regardless of the interface used.
8445	case `$LD -v 2>&1` in
8446	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8447	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8448	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8449	  *)
8450	    lt_use_gnu_ld_interface=yes
8451	    ;;
8452	esac
8453	;;
8454      *)
8455	lt_use_gnu_ld_interface=yes
8456	;;
8457    esac
8458  fi
8459
8460  if test "$lt_use_gnu_ld_interface" = yes; then
8461    # If archive_cmds runs LD, not CC, wlarc should be empty
8462    wlarc='${wl}'
8463
8464    # Set some defaults for GNU ld with shared library support. These
8465    # are reset later if shared libraries are not supported. Putting them
8466    # here allows them to be overridden if necessary.
8467    runpath_var=LD_RUN_PATH
8468    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8469    export_dynamic_flag_spec='${wl}--export-dynamic'
8470    # ancient GNU ld didn't support --whole-archive et. al.
8471    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8472      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8473    else
8474      whole_archive_flag_spec=
8475    fi
8476    supports_anon_versioning=no
8477    case `$LD -v 2>&1` in
8478      *GNU\ gold*) supports_anon_versioning=yes ;;
8479      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8480      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8481      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8482      *\ 2.11.*) ;; # other 2.11 versions
8483      *) supports_anon_versioning=yes ;;
8484    esac
8485
8486    # See if GNU ld supports shared libraries.
8487    case $host_os in
8488    aix[3-9]*)
8489      # On AIX/PPC, the GNU linker is very broken
8490      if test "$host_cpu" != ia64; then
8491	ld_shlibs=no
8492	cat <<_LT_EOF 1>&2
8493
8494*** Warning: the GNU linker, at least up to release 2.19, is reported
8495*** to be unable to reliably create shared libraries on AIX.
8496*** Therefore, libtool is disabling shared libraries support.  If you
8497*** really care for shared libraries, you may want to install binutils
8498*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8499*** You will then need to restart the configuration process.
8500
8501_LT_EOF
8502      fi
8503      ;;
8504
8505    amigaos*)
8506      case $host_cpu in
8507      powerpc)
8508            # see comment about AmigaOS4 .so support
8509            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510            archive_expsym_cmds=''
8511        ;;
8512      m68k)
8513            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)'
8514            hardcode_libdir_flag_spec='-L$libdir'
8515            hardcode_minus_L=yes
8516        ;;
8517      esac
8518      ;;
8519
8520    beos*)
8521      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8522	allow_undefined_flag=unsupported
8523	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8524	# support --undefined.  This deserves some investigation.  FIXME
8525	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526      else
8527	ld_shlibs=no
8528      fi
8529      ;;
8530
8531    cygwin* | mingw* | pw32* | cegcc*)
8532      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8533      # as there is no search path for DLLs.
8534      hardcode_libdir_flag_spec='-L$libdir'
8535      export_dynamic_flag_spec='${wl}--export-all-symbols'
8536      allow_undefined_flag=unsupported
8537      always_export_symbols=no
8538      enable_shared_with_static_runtimes=yes
8539      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'
8540      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8541
8542      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8543        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8544	# If the export-symbols file already is a .def file (1st line
8545	# is EXPORTS), use it as is; otherwise, prepend...
8546	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8547	  cp $export_symbols $output_objdir/$soname.def;
8548	else
8549	  echo EXPORTS > $output_objdir/$soname.def;
8550	  cat $export_symbols >> $output_objdir/$soname.def;
8551	fi~
8552	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8553      else
8554	ld_shlibs=no
8555      fi
8556      ;;
8557
8558    haiku*)
8559      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560      link_all_deplibs=yes
8561      ;;
8562
8563    interix[3-9]*)
8564      hardcode_direct=no
8565      hardcode_shlibpath_var=no
8566      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8567      export_dynamic_flag_spec='${wl}-E'
8568      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8569      # Instead, shared libraries are loaded at an image base (0x10000000 by
8570      # default) and relocated if they conflict, which is a slow very memory
8571      # consuming and fragmenting process.  To avoid this, we pick a random,
8572      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8573      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8574      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8575      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'
8576      ;;
8577
8578    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8579      tmp_diet=no
8580      if test "$host_os" = linux-dietlibc; then
8581	case $cc_basename in
8582	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8583	esac
8584      fi
8585      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8586	 && test "$tmp_diet" = no
8587      then
8588	tmp_addflag=' $pic_flag'
8589	tmp_sharedflag='-shared'
8590	case $cc_basename,$host_cpu in
8591        pgcc*)				# Portland Group C compiler
8592	  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'
8593	  tmp_addflag=' $pic_flag'
8594	  ;;
8595	pgf77* | pgf90* | pgf95* | pgfortran*)
8596					# Portland Group f77 and f90 compilers
8597	  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'
8598	  tmp_addflag=' $pic_flag -Mnomain' ;;
8599	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8600	  tmp_addflag=' -i_dynamic' ;;
8601	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8602	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8603	ifc* | ifort*)			# Intel Fortran compiler
8604	  tmp_addflag=' -nofor_main' ;;
8605	lf95*)				# Lahey Fortran 8.1
8606	  whole_archive_flag_spec=
8607	  tmp_sharedflag='--shared' ;;
8608	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8609	  tmp_sharedflag='-qmkshrobj'
8610	  tmp_addflag= ;;
8611	nvcc*)	# Cuda Compiler Driver 2.2
8612	  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'
8613	  compiler_needs_object=yes
8614	  ;;
8615	esac
8616	case `$CC -V 2>&1 | sed 5q` in
8617	*Sun\ C*)			# Sun C 5.9
8618	  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'
8619	  compiler_needs_object=yes
8620	  tmp_sharedflag='-G' ;;
8621	*Sun\ F*)			# Sun Fortran 8.3
8622	  tmp_sharedflag='-G' ;;
8623	esac
8624	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625
8626        if test "x$supports_anon_versioning" = xyes; then
8627          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8628	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8629	    echo "local: *; };" >> $output_objdir/$libname.ver~
8630	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8631        fi
8632
8633	case $cc_basename in
8634	xlf* | bgf* | bgxlf* | mpixlf*)
8635	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8636	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8637	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8639	  if test "x$supports_anon_versioning" = xyes; then
8640	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8641	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8642	      echo "local: *; };" >> $output_objdir/$libname.ver~
8643	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8644	  fi
8645	  ;;
8646	esac
8647      else
8648        ld_shlibs=no
8649      fi
8650      ;;
8651
8652    netbsd*)
8653      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8654	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8655	wlarc=
8656      else
8657	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8659      fi
8660      ;;
8661
8662    solaris*)
8663      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8664	ld_shlibs=no
8665	cat <<_LT_EOF 1>&2
8666
8667*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8668*** create shared libraries on Solaris systems.  Therefore, libtool
8669*** is disabling shared libraries support.  We urge you to upgrade GNU
8670*** binutils to release 2.9.1 or newer.  Another option is to modify
8671*** your PATH or compiler configuration so that the native linker is
8672*** used, and then restart.
8673
8674_LT_EOF
8675      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8676	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8678      else
8679	ld_shlibs=no
8680      fi
8681      ;;
8682
8683    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8684      case `$LD -v 2>&1` in
8685        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8686	ld_shlibs=no
8687	cat <<_LT_EOF 1>&2
8688
8689*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8690*** reliably create shared libraries on SCO systems.  Therefore, libtool
8691*** is disabling shared libraries support.  We urge you to upgrade GNU
8692*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8693*** your PATH or compiler configuration so that the native linker is
8694*** used, and then restart.
8695
8696_LT_EOF
8697	;;
8698	*)
8699	  # For security reasons, it is highly recommended that you always
8700	  # use absolute paths for naming shared libraries, and exclude the
8701	  # DT_RUNPATH tag from executables and libraries.  But doing so
8702	  # requires that you compile everything twice, which is a pain.
8703	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8704	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8705	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707	  else
8708	    ld_shlibs=no
8709	  fi
8710	;;
8711      esac
8712      ;;
8713
8714    sunos4*)
8715      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8716      wlarc=
8717      hardcode_direct=yes
8718      hardcode_shlibpath_var=no
8719      ;;
8720
8721    *)
8722      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8723	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8724	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8725      else
8726	ld_shlibs=no
8727      fi
8728      ;;
8729    esac
8730
8731    if test "$ld_shlibs" = no; then
8732      runpath_var=
8733      hardcode_libdir_flag_spec=
8734      export_dynamic_flag_spec=
8735      whole_archive_flag_spec=
8736    fi
8737  else
8738    # PORTME fill in a description of your system's linker (not GNU ld)
8739    case $host_os in
8740    aix3*)
8741      allow_undefined_flag=unsupported
8742      always_export_symbols=yes
8743      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'
8744      # Note: this linker hardcodes the directories in LIBPATH if there
8745      # are no directories specified by -L.
8746      hardcode_minus_L=yes
8747      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8748	# Neither direct hardcoding nor static linking is supported with a
8749	# broken collect2.
8750	hardcode_direct=unsupported
8751      fi
8752      ;;
8753
8754    aix[4-9]*)
8755      if test "$host_cpu" = ia64; then
8756	# On IA64, the linker does run time linking by default, so we don't
8757	# have to do anything special.
8758	aix_use_runtimelinking=no
8759	exp_sym_flag='-Bexport'
8760	no_entry_flag=""
8761      else
8762	# If we're using GNU nm, then we don't want the "-C" option.
8763	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8764	# Also, AIX nm treats weak defined symbols like other global
8765	# defined symbols, whereas GNU nm marks them as "W".
8766	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8767	  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'
8768	else
8769	  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'
8770	fi
8771	aix_use_runtimelinking=no
8772
8773	# Test if we are trying to use run time linking or normal
8774	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8775	# need to do runtime linking.
8776	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8777	  for ld_flag in $LDFLAGS; do
8778	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8779	    aix_use_runtimelinking=yes
8780	    break
8781	  fi
8782	  done
8783	  ;;
8784	esac
8785
8786	exp_sym_flag='-bexport'
8787	no_entry_flag='-bnoentry'
8788      fi
8789
8790      # When large executables or shared objects are built, AIX ld can
8791      # have problems creating the table of contents.  If linking a library
8792      # or program results in "error TOC overflow" add -mminimal-toc to
8793      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8794      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8795
8796      archive_cmds=''
8797      hardcode_direct=yes
8798      hardcode_direct_absolute=yes
8799      hardcode_libdir_separator=':'
8800      link_all_deplibs=yes
8801      file_list_spec='${wl}-f,'
8802
8803      if test "$GCC" = yes; then
8804	case $host_os in aix4.[012]|aix4.[012].*)
8805	# We only want to do this on AIX 4.2 and lower, the check
8806	# below for broken collect2 doesn't work under 4.3+
8807	  collect2name=`${CC} -print-prog-name=collect2`
8808	  if test -f "$collect2name" &&
8809	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8810	  then
8811	  # We have reworked collect2
8812	  :
8813	  else
8814	  # We have old collect2
8815	  hardcode_direct=unsupported
8816	  # It fails to find uninstalled libraries when the uninstalled
8817	  # path is not listed in the libpath.  Setting hardcode_minus_L
8818	  # to unsupported forces relinking
8819	  hardcode_minus_L=yes
8820	  hardcode_libdir_flag_spec='-L$libdir'
8821	  hardcode_libdir_separator=
8822	  fi
8823	  ;;
8824	esac
8825	shared_flag='-shared'
8826	if test "$aix_use_runtimelinking" = yes; then
8827	  shared_flag="$shared_flag "'${wl}-G'
8828	fi
8829      else
8830	# not using gcc
8831	if test "$host_cpu" = ia64; then
8832	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8833	# chokes on -Wl,-G. The following line is correct:
8834	  shared_flag='-G'
8835	else
8836	  if test "$aix_use_runtimelinking" = yes; then
8837	    shared_flag='${wl}-G'
8838	  else
8839	    shared_flag='${wl}-bM:SRE'
8840	  fi
8841	fi
8842      fi
8843
8844      export_dynamic_flag_spec='${wl}-bexpall'
8845      # It seems that -bexpall does not export symbols beginning with
8846      # underscore (_), so it is better to generate a list of symbols to export.
8847      always_export_symbols=yes
8848      if test "$aix_use_runtimelinking" = yes; then
8849	# Warning - without using the other runtime loading flags (-brtl),
8850	# -berok will link without error, but may produce a broken library.
8851	allow_undefined_flag='-berok'
8852        # Determine the default libpath from the value encoded in an
8853        # empty executable.
8854        if test "${lt_cv_aix_libpath+set}" = set; then
8855  aix_libpath=$lt_cv_aix_libpath
8856else
8857  if ${lt_cv_aix_libpath_+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862
8863int
8864main ()
8865{
8866
8867  ;
8868  return 0;
8869}
8870_ACEOF
8871if ac_fn_c_try_link "$LINENO"; then :
8872
8873  lt_aix_libpath_sed='
8874      /Import File Strings/,/^$/ {
8875	  /^0/ {
8876	      s/^0  *\([^ ]*\) *$/\1/
8877	      p
8878	  }
8879      }'
8880  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8881  # Check for a 64-bit object if we didn't find anything.
8882  if test -z "$lt_cv_aix_libpath_"; then
8883    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884  fi
8885fi
8886rm -f core conftest.err conftest.$ac_objext \
8887    conftest$ac_exeext conftest.$ac_ext
8888  if test -z "$lt_cv_aix_libpath_"; then
8889    lt_cv_aix_libpath_="/usr/lib:/lib"
8890  fi
8891
8892fi
8893
8894  aix_libpath=$lt_cv_aix_libpath_
8895fi
8896
8897        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8898        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"
8899      else
8900	if test "$host_cpu" = ia64; then
8901	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8902	  allow_undefined_flag="-z nodefs"
8903	  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"
8904	else
8905	 # Determine the default libpath from the value encoded in an
8906	 # empty executable.
8907	 if test "${lt_cv_aix_libpath+set}" = set; then
8908  aix_libpath=$lt_cv_aix_libpath
8909else
8910  if ${lt_cv_aix_libpath_+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915
8916int
8917main ()
8918{
8919
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924if ac_fn_c_try_link "$LINENO"; then :
8925
8926  lt_aix_libpath_sed='
8927      /Import File Strings/,/^$/ {
8928	  /^0/ {
8929	      s/^0  *\([^ ]*\) *$/\1/
8930	      p
8931	  }
8932      }'
8933  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8934  # Check for a 64-bit object if we didn't find anything.
8935  if test -z "$lt_cv_aix_libpath_"; then
8936    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937  fi
8938fi
8939rm -f core conftest.err conftest.$ac_objext \
8940    conftest$ac_exeext conftest.$ac_ext
8941  if test -z "$lt_cv_aix_libpath_"; then
8942    lt_cv_aix_libpath_="/usr/lib:/lib"
8943  fi
8944
8945fi
8946
8947  aix_libpath=$lt_cv_aix_libpath_
8948fi
8949
8950	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951	  # Warning - without using the other run time loading flags,
8952	  # -berok will link without error, but may produce a broken library.
8953	  no_undefined_flag=' ${wl}-bernotok'
8954	  allow_undefined_flag=' ${wl}-berok'
8955	  if test "$with_gnu_ld" = yes; then
8956	    # We only use this code for GNU lds that support --whole-archive.
8957	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8958	  else
8959	    # Exported symbols can be pulled into shared objects from archives
8960	    whole_archive_flag_spec='$convenience'
8961	  fi
8962	  archive_cmds_need_lc=yes
8963	  # This is similar to how AIX traditionally builds its shared libraries.
8964	  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'
8965	fi
8966      fi
8967      ;;
8968
8969    amigaos*)
8970      case $host_cpu in
8971      powerpc)
8972            # see comment about AmigaOS4 .so support
8973            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974            archive_expsym_cmds=''
8975        ;;
8976      m68k)
8977            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)'
8978            hardcode_libdir_flag_spec='-L$libdir'
8979            hardcode_minus_L=yes
8980        ;;
8981      esac
8982      ;;
8983
8984    bsdi[45]*)
8985      export_dynamic_flag_spec=-rdynamic
8986      ;;
8987
8988    cygwin* | mingw* | pw32* | cegcc*)
8989      # When not using gcc, we currently assume that we are using
8990      # Microsoft Visual C++.
8991      # hardcode_libdir_flag_spec is actually meaningless, as there is
8992      # no search path for DLLs.
8993      case $cc_basename in
8994      cl*)
8995	# Native MSVC
8996	hardcode_libdir_flag_spec=' '
8997	allow_undefined_flag=unsupported
8998	always_export_symbols=yes
8999	file_list_spec='@'
9000	# Tell ltmain to make .lib files, not .a files.
9001	libext=lib
9002	# Tell ltmain to make .dll files, not .so files.
9003	shrext_cmds=".dll"
9004	# FIXME: Setting linknames here is a bad hack.
9005	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9006	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9007	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9008	  else
9009	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9010	  fi~
9011	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9012	  linknames='
9013	# The linker will not automatically build a static lib if we build a DLL.
9014	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9015	enable_shared_with_static_runtimes=yes
9016	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9017	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9018	# Don't use ranlib
9019	old_postinstall_cmds='chmod 644 $oldlib'
9020	postlink_cmds='lt_outputfile="@OUTPUT@"~
9021	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9022	  case $lt_outputfile in
9023	    *.exe|*.EXE) ;;
9024	    *)
9025	      lt_outputfile="$lt_outputfile.exe"
9026	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9027	      ;;
9028	  esac~
9029	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9030	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9031	    $RM "$lt_outputfile.manifest";
9032	  fi'
9033	;;
9034      *)
9035	# Assume MSVC wrapper
9036	hardcode_libdir_flag_spec=' '
9037	allow_undefined_flag=unsupported
9038	# Tell ltmain to make .lib files, not .a files.
9039	libext=lib
9040	# Tell ltmain to make .dll files, not .so files.
9041	shrext_cmds=".dll"
9042	# FIXME: Setting linknames here is a bad hack.
9043	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9044	# The linker will automatically build a .lib file if we build a DLL.
9045	old_archive_from_new_cmds='true'
9046	# FIXME: Should let the user specify the lib program.
9047	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9048	enable_shared_with_static_runtimes=yes
9049	;;
9050      esac
9051      ;;
9052
9053    darwin* | rhapsody*)
9054
9055
9056  archive_cmds_need_lc=no
9057  hardcode_direct=no
9058  hardcode_automatic=yes
9059  hardcode_shlibpath_var=unsupported
9060  if test "$lt_cv_ld_force_load" = "yes"; then
9061    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\"`'
9062
9063  else
9064    whole_archive_flag_spec=''
9065  fi
9066  link_all_deplibs=yes
9067  allow_undefined_flag="$_lt_dar_allow_undefined"
9068  case $cc_basename in
9069     ifort*) _lt_dar_can_shared=yes ;;
9070     *) _lt_dar_can_shared=$GCC ;;
9071  esac
9072  if test "$_lt_dar_can_shared" = "yes"; then
9073    output_verbose_link_cmd=func_echo_all
9074    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9075    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9076    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}"
9077    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}"
9078
9079  else
9080  ld_shlibs=no
9081  fi
9082
9083      ;;
9084
9085    dgux*)
9086      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087      hardcode_libdir_flag_spec='-L$libdir'
9088      hardcode_shlibpath_var=no
9089      ;;
9090
9091    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9092    # support.  Future versions do this automatically, but an explicit c++rt0.o
9093    # does not break anything, and helps significantly (at the cost of a little
9094    # extra space).
9095    freebsd2.2*)
9096      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9097      hardcode_libdir_flag_spec='-R$libdir'
9098      hardcode_direct=yes
9099      hardcode_shlibpath_var=no
9100      ;;
9101
9102    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9103    freebsd2.*)
9104      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105      hardcode_direct=yes
9106      hardcode_minus_L=yes
9107      hardcode_shlibpath_var=no
9108      ;;
9109
9110    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9111    freebsd* | dragonfly*)
9112      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9113      hardcode_libdir_flag_spec='-R$libdir'
9114      hardcode_direct=yes
9115      hardcode_shlibpath_var=no
9116      ;;
9117
9118    hpux9*)
9119      if test "$GCC" = yes; then
9120	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'
9121      else
9122	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'
9123      fi
9124      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125      hardcode_libdir_separator=:
9126      hardcode_direct=yes
9127
9128      # hardcode_minus_L: Not really in the search PATH,
9129      # but as the default location of the library.
9130      hardcode_minus_L=yes
9131      export_dynamic_flag_spec='${wl}-E'
9132      ;;
9133
9134    hpux10*)
9135      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9136	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9137      else
9138	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9139      fi
9140      if test "$with_gnu_ld" = no; then
9141	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142	hardcode_libdir_separator=:
9143	hardcode_direct=yes
9144	hardcode_direct_absolute=yes
9145	export_dynamic_flag_spec='${wl}-E'
9146	# hardcode_minus_L: Not really in the search PATH,
9147	# but as the default location of the library.
9148	hardcode_minus_L=yes
9149      fi
9150      ;;
9151
9152    hpux11*)
9153      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9154	case $host_cpu in
9155	hppa*64*)
9156	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157	  ;;
9158	ia64*)
9159	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9160	  ;;
9161	*)
9162	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163	  ;;
9164	esac
9165      else
9166	case $host_cpu in
9167	hppa*64*)
9168	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9169	  ;;
9170	ia64*)
9171	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9172	  ;;
9173	*)
9174
9175	  # Older versions of the 11.00 compiler do not understand -b yet
9176	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9177	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9178$as_echo_n "checking if $CC understands -b... " >&6; }
9179if ${lt_cv_prog_compiler__b+:} false; then :
9180  $as_echo_n "(cached) " >&6
9181else
9182  lt_cv_prog_compiler__b=no
9183   save_LDFLAGS="$LDFLAGS"
9184   LDFLAGS="$LDFLAGS -b"
9185   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9186   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9187     # The linker can only warn and ignore the option if not recognized
9188     # So say no if there are warnings
9189     if test -s conftest.err; then
9190       # Append any errors to the config.log.
9191       cat conftest.err 1>&5
9192       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9193       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9194       if diff conftest.exp conftest.er2 >/dev/null; then
9195         lt_cv_prog_compiler__b=yes
9196       fi
9197     else
9198       lt_cv_prog_compiler__b=yes
9199     fi
9200   fi
9201   $RM -r conftest*
9202   LDFLAGS="$save_LDFLAGS"
9203
9204fi
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9206$as_echo "$lt_cv_prog_compiler__b" >&6; }
9207
9208if test x"$lt_cv_prog_compiler__b" = xyes; then
9209    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210else
9211    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9212fi
9213
9214	  ;;
9215	esac
9216      fi
9217      if test "$with_gnu_ld" = no; then
9218	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9219	hardcode_libdir_separator=:
9220
9221	case $host_cpu in
9222	hppa*64*|ia64*)
9223	  hardcode_direct=no
9224	  hardcode_shlibpath_var=no
9225	  ;;
9226	*)
9227	  hardcode_direct=yes
9228	  hardcode_direct_absolute=yes
9229	  export_dynamic_flag_spec='${wl}-E'
9230
9231	  # hardcode_minus_L: Not really in the search PATH,
9232	  # but as the default location of the library.
9233	  hardcode_minus_L=yes
9234	  ;;
9235	esac
9236      fi
9237      ;;
9238
9239    irix5* | irix6* | nonstopux*)
9240      if test "$GCC" = yes; then
9241	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'
9242	# Try to use the -exported_symbol ld option, if it does not
9243	# work, assume that -exports_file does not work either and
9244	# implicitly export all symbols.
9245	# This should be the same for all languages, so no per-tag cache variable.
9246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9247$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9248if ${lt_cv_irix_exported_symbol+:} false; then :
9249  $as_echo_n "(cached) " >&6
9250else
9251  save_LDFLAGS="$LDFLAGS"
9252	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9253	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254/* end confdefs.h.  */
9255int foo (void) { return 0; }
9256_ACEOF
9257if ac_fn_c_try_link "$LINENO"; then :
9258  lt_cv_irix_exported_symbol=yes
9259else
9260  lt_cv_irix_exported_symbol=no
9261fi
9262rm -f core conftest.err conftest.$ac_objext \
9263    conftest$ac_exeext conftest.$ac_ext
9264           LDFLAGS="$save_LDFLAGS"
9265fi
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9267$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9268	if test "$lt_cv_irix_exported_symbol" = yes; then
9269          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'
9270	fi
9271      else
9272	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'
9273	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'
9274      fi
9275      archive_cmds_need_lc='no'
9276      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277      hardcode_libdir_separator=:
9278      inherit_rpath=yes
9279      link_all_deplibs=yes
9280      ;;
9281
9282    netbsd*)
9283      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9284	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9285      else
9286	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9287      fi
9288      hardcode_libdir_flag_spec='-R$libdir'
9289      hardcode_direct=yes
9290      hardcode_shlibpath_var=no
9291      ;;
9292
9293    newsos6)
9294      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295      hardcode_direct=yes
9296      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297      hardcode_libdir_separator=:
9298      hardcode_shlibpath_var=no
9299      ;;
9300
9301    *nto* | *qnx*)
9302      ;;
9303
9304    openbsd*)
9305      if test -f /usr/libexec/ld.so; then
9306	hardcode_direct=yes
9307	hardcode_shlibpath_var=no
9308	hardcode_direct_absolute=yes
9309	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9310	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9311	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9312	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9313	  export_dynamic_flag_spec='${wl}-E'
9314	else
9315	  case $host_os in
9316	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9317	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9318	     hardcode_libdir_flag_spec='-R$libdir'
9319	     ;;
9320	   *)
9321	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9322	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9323	     ;;
9324	  esac
9325	fi
9326      else
9327	ld_shlibs=no
9328      fi
9329      ;;
9330
9331    os2*)
9332      hardcode_libdir_flag_spec='-L$libdir'
9333      hardcode_minus_L=yes
9334      allow_undefined_flag=unsupported
9335      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'
9336      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9337      ;;
9338
9339    osf3*)
9340      if test "$GCC" = yes; then
9341	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9342	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'
9343      else
9344	allow_undefined_flag=' -expect_unresolved \*'
9345	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'
9346      fi
9347      archive_cmds_need_lc='no'
9348      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349      hardcode_libdir_separator=:
9350      ;;
9351
9352    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9353      if test "$GCC" = yes; then
9354	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9355	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'
9356	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9357      else
9358	allow_undefined_flag=' -expect_unresolved \*'
9359	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'
9360	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~
9361	$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'
9362
9363	# Both c and cxx compiler support -rpath directly
9364	hardcode_libdir_flag_spec='-rpath $libdir'
9365      fi
9366      archive_cmds_need_lc='no'
9367      hardcode_libdir_separator=:
9368      ;;
9369
9370    solaris*)
9371      no_undefined_flag=' -z defs'
9372      if test "$GCC" = yes; then
9373	wlarc='${wl}'
9374	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9375	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9376	  $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'
9377      else
9378	case `$CC -V 2>&1` in
9379	*"Compilers 5.0"*)
9380	  wlarc=''
9381	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9383	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9384	  ;;
9385	*)
9386	  wlarc='${wl}'
9387	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9388	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9389	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9390	  ;;
9391	esac
9392      fi
9393      hardcode_libdir_flag_spec='-R$libdir'
9394      hardcode_shlibpath_var=no
9395      case $host_os in
9396      solaris2.[0-5] | solaris2.[0-5].*) ;;
9397      *)
9398	# The compiler driver will combine and reorder linker options,
9399	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9400	# but is careful enough not to reorder.
9401	# Supported since Solaris 2.6 (maybe 2.5.1?)
9402	if test "$GCC" = yes; then
9403	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9404	else
9405	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9406	fi
9407	;;
9408      esac
9409      link_all_deplibs=yes
9410      ;;
9411
9412    sunos4*)
9413      if test "x$host_vendor" = xsequent; then
9414	# Use $CC to link under sequent, because it throws in some extra .o
9415	# files that make .init and .fini sections work.
9416	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9417      else
9418	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9419      fi
9420      hardcode_libdir_flag_spec='-L$libdir'
9421      hardcode_direct=yes
9422      hardcode_minus_L=yes
9423      hardcode_shlibpath_var=no
9424      ;;
9425
9426    sysv4)
9427      case $host_vendor in
9428	sni)
9429	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430	  hardcode_direct=yes # is this really true???
9431	;;
9432	siemens)
9433	  ## LD is ld it makes a PLAMLIB
9434	  ## CC just makes a GrossModule.
9435	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9436	  reload_cmds='$CC -r -o $output$reload_objs'
9437	  hardcode_direct=no
9438        ;;
9439	motorola)
9440	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9442	;;
9443      esac
9444      runpath_var='LD_RUN_PATH'
9445      hardcode_shlibpath_var=no
9446      ;;
9447
9448    sysv4.3*)
9449      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450      hardcode_shlibpath_var=no
9451      export_dynamic_flag_spec='-Bexport'
9452      ;;
9453
9454    sysv4*MP*)
9455      if test -d /usr/nec; then
9456	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457	hardcode_shlibpath_var=no
9458	runpath_var=LD_RUN_PATH
9459	hardcode_runpath_var=yes
9460	ld_shlibs=yes
9461      fi
9462      ;;
9463
9464    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9465      no_undefined_flag='${wl}-z,text'
9466      archive_cmds_need_lc=no
9467      hardcode_shlibpath_var=no
9468      runpath_var='LD_RUN_PATH'
9469
9470      if test "$GCC" = yes; then
9471	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9473      else
9474	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9475	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476      fi
9477      ;;
9478
9479    sysv5* | sco3.2v5* | sco5v6*)
9480      # Note: We can NOT use -z defs as we might desire, because we do not
9481      # link with -lc, and that would cause any symbols used from libc to
9482      # always be unresolved, which means just about no library would
9483      # ever link correctly.  If we're not using GNU ld we use -z text
9484      # though, which does catch some bad symbols but isn't as heavy-handed
9485      # as -z defs.
9486      no_undefined_flag='${wl}-z,text'
9487      allow_undefined_flag='${wl}-z,nodefs'
9488      archive_cmds_need_lc=no
9489      hardcode_shlibpath_var=no
9490      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9491      hardcode_libdir_separator=':'
9492      link_all_deplibs=yes
9493      export_dynamic_flag_spec='${wl}-Bexport'
9494      runpath_var='LD_RUN_PATH'
9495
9496      if test "$GCC" = yes; then
9497	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499      else
9500	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502      fi
9503      ;;
9504
9505    uts4*)
9506      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507      hardcode_libdir_flag_spec='-L$libdir'
9508      hardcode_shlibpath_var=no
9509      ;;
9510
9511    *)
9512      ld_shlibs=no
9513      ;;
9514    esac
9515
9516    if test x$host_vendor = xsni; then
9517      case $host in
9518      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9519	export_dynamic_flag_spec='${wl}-Blargedynsym'
9520	;;
9521      esac
9522    fi
9523  fi
9524
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9526$as_echo "$ld_shlibs" >&6; }
9527test "$ld_shlibs" = no && can_build_shared=no
9528
9529with_gnu_ld=$with_gnu_ld
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545#
9546# Do we need to explicitly link libc?
9547#
9548case "x$archive_cmds_need_lc" in
9549x|xyes)
9550  # Assume -lc should be added
9551  archive_cmds_need_lc=yes
9552
9553  if test "$enable_shared" = yes && test "$GCC" = yes; then
9554    case $archive_cmds in
9555    *'~'*)
9556      # FIXME: we may have to deal with multi-command sequences.
9557      ;;
9558    '$CC '*)
9559      # Test whether the compiler implicitly links with -lc since on some
9560      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9561      # to ld, don't add -lc before -lgcc.
9562      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9563$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9564if ${lt_cv_archive_cmds_need_lc+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  $RM conftest*
9568	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9569
9570	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9571  (eval $ac_compile) 2>&5
9572  ac_status=$?
9573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9574  test $ac_status = 0; } 2>conftest.err; then
9575	  soname=conftest
9576	  lib=conftest
9577	  libobjs=conftest.$ac_objext
9578	  deplibs=
9579	  wl=$lt_prog_compiler_wl
9580	  pic_flag=$lt_prog_compiler_pic
9581	  compiler_flags=-v
9582	  linker_flags=-v
9583	  verstring=
9584	  output_objdir=.
9585	  libname=conftest
9586	  lt_save_allow_undefined_flag=$allow_undefined_flag
9587	  allow_undefined_flag=
9588	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9589  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9590  ac_status=$?
9591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9592  test $ac_status = 0; }
9593	  then
9594	    lt_cv_archive_cmds_need_lc=no
9595	  else
9596	    lt_cv_archive_cmds_need_lc=yes
9597	  fi
9598	  allow_undefined_flag=$lt_save_allow_undefined_flag
9599	else
9600	  cat conftest.err 1>&5
9601	fi
9602	$RM conftest*
9603
9604fi
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9606$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9607      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9608      ;;
9609    esac
9610  fi
9611  ;;
9612esac
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9766$as_echo_n "checking dynamic linker characteristics... " >&6; }
9767
9768if test "$GCC" = yes; then
9769  case $host_os in
9770    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9771    *) lt_awk_arg="/^libraries:/" ;;
9772  esac
9773  case $host_os in
9774    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9775    *) lt_sed_strip_eq="s,=/,/,g" ;;
9776  esac
9777  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9778  case $lt_search_path_spec in
9779  *\;*)
9780    # if the path contains ";" then we assume it to be the separator
9781    # otherwise default to the standard path separator (i.e. ":") - it is
9782    # assumed that no part of a normal pathname contains ";" but that should
9783    # okay in the real world where ";" in dirpaths is itself problematic.
9784    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9785    ;;
9786  *)
9787    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9788    ;;
9789  esac
9790  # Ok, now we have the path, separated by spaces, we can step through it
9791  # and add multilib dir if necessary.
9792  lt_tmp_lt_search_path_spec=
9793  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9794  for lt_sys_path in $lt_search_path_spec; do
9795    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9796      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9797    else
9798      test -d "$lt_sys_path" && \
9799	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9800    fi
9801  done
9802  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9803BEGIN {RS=" "; FS="/|\n";} {
9804  lt_foo="";
9805  lt_count=0;
9806  for (lt_i = NF; lt_i > 0; lt_i--) {
9807    if ($lt_i != "" && $lt_i != ".") {
9808      if ($lt_i == "..") {
9809        lt_count++;
9810      } else {
9811        if (lt_count == 0) {
9812          lt_foo="/" $lt_i lt_foo;
9813        } else {
9814          lt_count--;
9815        }
9816      }
9817    }
9818  }
9819  if (lt_foo != "") { lt_freq[lt_foo]++; }
9820  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9821}'`
9822  # AWK program above erroneously prepends '/' to C:/dos/paths
9823  # for these hosts.
9824  case $host_os in
9825    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9826      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9827  esac
9828  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9829else
9830  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9831fi
9832library_names_spec=
9833libname_spec='lib$name'
9834soname_spec=
9835shrext_cmds=".so"
9836postinstall_cmds=
9837postuninstall_cmds=
9838finish_cmds=
9839finish_eval=
9840shlibpath_var=
9841shlibpath_overrides_runpath=unknown
9842version_type=none
9843dynamic_linker="$host_os ld.so"
9844sys_lib_dlsearch_path_spec="/lib /usr/lib"
9845need_lib_prefix=unknown
9846hardcode_into_libs=no
9847
9848# when you set need_version to no, make sure it does not cause -set_version
9849# flags to be left without arguments
9850need_version=unknown
9851
9852case $host_os in
9853aix3*)
9854  version_type=linux # correct to gnu/linux during the next big refactor
9855  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9856  shlibpath_var=LIBPATH
9857
9858  # AIX 3 has no versioning support, so we append a major version to the name.
9859  soname_spec='${libname}${release}${shared_ext}$major'
9860  ;;
9861
9862aix[4-9]*)
9863  version_type=linux # correct to gnu/linux during the next big refactor
9864  need_lib_prefix=no
9865  need_version=no
9866  hardcode_into_libs=yes
9867  if test "$host_cpu" = ia64; then
9868    # AIX 5 supports IA64
9869    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870    shlibpath_var=LD_LIBRARY_PATH
9871  else
9872    # With GCC up to 2.95.x, collect2 would create an import file
9873    # for dependence libraries.  The import file would start with
9874    # the line `#! .'.  This would cause the generated library to
9875    # depend on `.', always an invalid library.  This was fixed in
9876    # development snapshots of GCC prior to 3.0.
9877    case $host_os in
9878      aix4 | aix4.[01] | aix4.[01].*)
9879      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9880	   echo ' yes '
9881	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9882	:
9883      else
9884	can_build_shared=no
9885      fi
9886      ;;
9887    esac
9888    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889    # soname into executable. Probably we can add versioning support to
9890    # collect2, so additional links can be useful in future.
9891    if test "$aix_use_runtimelinking" = yes; then
9892      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893      # instead of lib<name>.a to let people know that these are not
9894      # typical AIX shared libraries.
9895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896    else
9897      # We preserve .a as extension for shared libraries through AIX4.2
9898      # and later when we are not doing run time linking.
9899      library_names_spec='${libname}${release}.a $libname.a'
9900      soname_spec='${libname}${release}${shared_ext}$major'
9901    fi
9902    shlibpath_var=LIBPATH
9903  fi
9904  ;;
9905
9906amigaos*)
9907  case $host_cpu in
9908  powerpc)
9909    # Since July 2007 AmigaOS4 officially supports .so libraries.
9910    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9911    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912    ;;
9913  m68k)
9914    library_names_spec='$libname.ixlibrary $libname.a'
9915    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9916    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'
9917    ;;
9918  esac
9919  ;;
9920
9921beos*)
9922  library_names_spec='${libname}${shared_ext}'
9923  dynamic_linker="$host_os ld.so"
9924  shlibpath_var=LIBRARY_PATH
9925  ;;
9926
9927bsdi[45]*)
9928  version_type=linux # correct to gnu/linux during the next big refactor
9929  need_version=no
9930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931  soname_spec='${libname}${release}${shared_ext}$major'
9932  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9933  shlibpath_var=LD_LIBRARY_PATH
9934  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9935  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9936  # the default ld.so.conf also contains /usr/contrib/lib and
9937  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9938  # libtool to hard-code these into programs
9939  ;;
9940
9941cygwin* | mingw* | pw32* | cegcc*)
9942  version_type=windows
9943  shrext_cmds=".dll"
9944  need_version=no
9945  need_lib_prefix=no
9946
9947  case $GCC,$cc_basename in
9948  yes,*)
9949    # gcc
9950    library_names_spec='$libname.dll.a'
9951    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9952    postinstall_cmds='base_file=`basename \${file}`~
9953      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9954      dldir=$destdir/`dirname \$dlpath`~
9955      test -d \$dldir || mkdir -p \$dldir~
9956      $install_prog $dir/$dlname \$dldir/$dlname~
9957      chmod a+x \$dldir/$dlname~
9958      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9959        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9960      fi'
9961    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9962      dlpath=$dir/\$dldll~
9963       $RM \$dlpath'
9964    shlibpath_overrides_runpath=yes
9965
9966    case $host_os in
9967    cygwin*)
9968      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9969      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970
9971      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9972      ;;
9973    mingw* | cegcc*)
9974      # MinGW DLLs use traditional 'lib' prefix
9975      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976      ;;
9977    pw32*)
9978      # pw32 DLLs use 'pw' prefix rather than 'lib'
9979      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9980      ;;
9981    esac
9982    dynamic_linker='Win32 ld.exe'
9983    ;;
9984
9985  *,cl*)
9986    # Native MSVC
9987    libname_spec='$name'
9988    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9989    library_names_spec='${libname}.dll.lib'
9990
9991    case $build_os in
9992    mingw*)
9993      sys_lib_search_path_spec=
9994      lt_save_ifs=$IFS
9995      IFS=';'
9996      for lt_path in $LIB
9997      do
9998        IFS=$lt_save_ifs
9999        # Let DOS variable expansion print the short 8.3 style file name.
10000        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10001        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10002      done
10003      IFS=$lt_save_ifs
10004      # Convert to MSYS style.
10005      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10006      ;;
10007    cygwin*)
10008      # Convert to unix form, then to dos form, then back to unix form
10009      # but this time dos style (no spaces!) so that the unix form looks
10010      # like /cygdrive/c/PROGRA~1:/cygdr...
10011      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10012      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10013      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10014      ;;
10015    *)
10016      sys_lib_search_path_spec="$LIB"
10017      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10018        # It is most probably a Windows format PATH.
10019        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10020      else
10021        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10022      fi
10023      # FIXME: find the short name or the path components, as spaces are
10024      # common. (e.g. "Program Files" -> "PROGRA~1")
10025      ;;
10026    esac
10027
10028    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10029    postinstall_cmds='base_file=`basename \${file}`~
10030      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10031      dldir=$destdir/`dirname \$dlpath`~
10032      test -d \$dldir || mkdir -p \$dldir~
10033      $install_prog $dir/$dlname \$dldir/$dlname'
10034    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10035      dlpath=$dir/\$dldll~
10036       $RM \$dlpath'
10037    shlibpath_overrides_runpath=yes
10038    dynamic_linker='Win32 link.exe'
10039    ;;
10040
10041  *)
10042    # Assume MSVC wrapper
10043    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10044    dynamic_linker='Win32 ld.exe'
10045    ;;
10046  esac
10047  # FIXME: first we should search . and the directory the executable is in
10048  shlibpath_var=PATH
10049  ;;
10050
10051darwin* | rhapsody*)
10052  dynamic_linker="$host_os dyld"
10053  version_type=darwin
10054  need_lib_prefix=no
10055  need_version=no
10056  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10057  soname_spec='${libname}${release}${major}$shared_ext'
10058  shlibpath_overrides_runpath=yes
10059  shlibpath_var=DYLD_LIBRARY_PATH
10060  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10061
10062  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10063  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10064  ;;
10065
10066dgux*)
10067  version_type=linux # correct to gnu/linux during the next big refactor
10068  need_lib_prefix=no
10069  need_version=no
10070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10071  soname_spec='${libname}${release}${shared_ext}$major'
10072  shlibpath_var=LD_LIBRARY_PATH
10073  ;;
10074
10075freebsd* | dragonfly*)
10076  # DragonFly does not have aout.  When/if they implement a new
10077  # versioning mechanism, adjust this.
10078  if test -x /usr/bin/objformat; then
10079    objformat=`/usr/bin/objformat`
10080  else
10081    case $host_os in
10082    freebsd[23].*) objformat=aout ;;
10083    *) objformat=elf ;;
10084    esac
10085  fi
10086  version_type=freebsd-$objformat
10087  case $version_type in
10088    freebsd-elf*)
10089      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10090      need_version=no
10091      need_lib_prefix=no
10092      ;;
10093    freebsd-*)
10094      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10095      need_version=yes
10096      ;;
10097  esac
10098  shlibpath_var=LD_LIBRARY_PATH
10099  case $host_os in
10100  freebsd2.*)
10101    shlibpath_overrides_runpath=yes
10102    ;;
10103  freebsd3.[01]* | freebsdelf3.[01]*)
10104    shlibpath_overrides_runpath=yes
10105    hardcode_into_libs=yes
10106    ;;
10107  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10108  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10109    shlibpath_overrides_runpath=no
10110    hardcode_into_libs=yes
10111    ;;
10112  *) # from 4.6 on, and DragonFly
10113    shlibpath_overrides_runpath=yes
10114    hardcode_into_libs=yes
10115    ;;
10116  esac
10117  ;;
10118
10119gnu*)
10120  version_type=linux # correct to gnu/linux during the next big refactor
10121  need_lib_prefix=no
10122  need_version=no
10123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10124  soname_spec='${libname}${release}${shared_ext}$major'
10125  shlibpath_var=LD_LIBRARY_PATH
10126  shlibpath_overrides_runpath=no
10127  hardcode_into_libs=yes
10128  ;;
10129
10130haiku*)
10131  version_type=linux # correct to gnu/linux during the next big refactor
10132  need_lib_prefix=no
10133  need_version=no
10134  dynamic_linker="$host_os runtime_loader"
10135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10136  soname_spec='${libname}${release}${shared_ext}$major'
10137  shlibpath_var=LIBRARY_PATH
10138  shlibpath_overrides_runpath=yes
10139  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10140  hardcode_into_libs=yes
10141  ;;
10142
10143hpux9* | hpux10* | hpux11*)
10144  # Give a soname corresponding to the major version so that dld.sl refuses to
10145  # link against other versions.
10146  version_type=sunos
10147  need_lib_prefix=no
10148  need_version=no
10149  case $host_cpu in
10150  ia64*)
10151    shrext_cmds='.so'
10152    hardcode_into_libs=yes
10153    dynamic_linker="$host_os dld.so"
10154    shlibpath_var=LD_LIBRARY_PATH
10155    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157    soname_spec='${libname}${release}${shared_ext}$major'
10158    if test "X$HPUX_IA64_MODE" = X32; then
10159      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10160    else
10161      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10162    fi
10163    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164    ;;
10165  hppa*64*)
10166    shrext_cmds='.sl'
10167    hardcode_into_libs=yes
10168    dynamic_linker="$host_os dld.sl"
10169    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172    soname_spec='${libname}${release}${shared_ext}$major'
10173    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175    ;;
10176  *)
10177    shrext_cmds='.sl'
10178    dynamic_linker="$host_os dld.sl"
10179    shlibpath_var=SHLIB_PATH
10180    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182    soname_spec='${libname}${release}${shared_ext}$major'
10183    ;;
10184  esac
10185  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10186  postinstall_cmds='chmod 555 $lib'
10187  # or fails outright, so override atomically:
10188  install_override_mode=555
10189  ;;
10190
10191interix[3-9]*)
10192  version_type=linux # correct to gnu/linux during the next big refactor
10193  need_lib_prefix=no
10194  need_version=no
10195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10196  soname_spec='${libname}${release}${shared_ext}$major'
10197  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10198  shlibpath_var=LD_LIBRARY_PATH
10199  shlibpath_overrides_runpath=no
10200  hardcode_into_libs=yes
10201  ;;
10202
10203irix5* | irix6* | nonstopux*)
10204  case $host_os in
10205    nonstopux*) version_type=nonstopux ;;
10206    *)
10207	if test "$lt_cv_prog_gnu_ld" = yes; then
10208		version_type=linux # correct to gnu/linux during the next big refactor
10209	else
10210		version_type=irix
10211	fi ;;
10212  esac
10213  need_lib_prefix=no
10214  need_version=no
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10217  case $host_os in
10218  irix5* | nonstopux*)
10219    libsuff= shlibsuff=
10220    ;;
10221  *)
10222    case $LD in # libtool.m4 will add one of these switches to LD
10223    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10224      libsuff= shlibsuff= libmagic=32-bit;;
10225    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10226      libsuff=32 shlibsuff=N32 libmagic=N32;;
10227    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10228      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10229    *) libsuff= shlibsuff= libmagic=never-match;;
10230    esac
10231    ;;
10232  esac
10233  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10234  shlibpath_overrides_runpath=no
10235  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10236  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10237  hardcode_into_libs=yes
10238  ;;
10239
10240# No shared lib support for Linux oldld, aout, or coff.
10241linux*oldld* | linux*aout* | linux*coff*)
10242  dynamic_linker=no
10243  ;;
10244
10245# This must be glibc/ELF.
10246linux* | k*bsd*-gnu | kopensolaris*-gnu)
10247  version_type=linux # correct to gnu/linux during the next big refactor
10248  need_lib_prefix=no
10249  need_version=no
10250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251  soname_spec='${libname}${release}${shared_ext}$major'
10252  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10253  shlibpath_var=LD_LIBRARY_PATH
10254  shlibpath_overrides_runpath=no
10255
10256  # Some binutils ld are patched to set DT_RUNPATH
10257  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10258  $as_echo_n "(cached) " >&6
10259else
10260  lt_cv_shlibpath_overrides_runpath=no
10261    save_LDFLAGS=$LDFLAGS
10262    save_libdir=$libdir
10263    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10264	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266/* end confdefs.h.  */
10267
10268int
10269main ()
10270{
10271
10272  ;
10273  return 0;
10274}
10275_ACEOF
10276if ac_fn_c_try_link "$LINENO"; then :
10277  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10278  lt_cv_shlibpath_overrides_runpath=yes
10279fi
10280fi
10281rm -f core conftest.err conftest.$ac_objext \
10282    conftest$ac_exeext conftest.$ac_ext
10283    LDFLAGS=$save_LDFLAGS
10284    libdir=$save_libdir
10285
10286fi
10287
10288  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10289
10290  # This implies no fast_install, which is unacceptable.
10291  # Some rework will be needed to allow for fast_install
10292  # before this can be enabled.
10293  hardcode_into_libs=yes
10294
10295  # Append ld.so.conf contents to the search path
10296  if test -f /etc/ld.so.conf; then
10297    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' ' '`
10298    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10299  fi
10300
10301  # We used to test for /lib/ld.so.1 and disable shared libraries on
10302  # powerpc, because MkLinux only supported shared libraries with the
10303  # GNU dynamic linker.  Since this was broken with cross compilers,
10304  # most powerpc-linux boxes support dynamic linking these days and
10305  # people can always --disable-shared, the test was removed, and we
10306  # assume the GNU/Linux dynamic linker is in use.
10307  dynamic_linker='GNU/Linux ld.so'
10308  ;;
10309
10310netbsd*)
10311  version_type=sunos
10312  need_lib_prefix=no
10313  need_version=no
10314  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10317    dynamic_linker='NetBSD (a.out) ld.so'
10318  else
10319    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10320    soname_spec='${libname}${release}${shared_ext}$major'
10321    dynamic_linker='NetBSD ld.elf_so'
10322  fi
10323  shlibpath_var=LD_LIBRARY_PATH
10324  shlibpath_overrides_runpath=yes
10325  hardcode_into_libs=yes
10326  ;;
10327
10328newsos6)
10329  version_type=linux # correct to gnu/linux during the next big refactor
10330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331  shlibpath_var=LD_LIBRARY_PATH
10332  shlibpath_overrides_runpath=yes
10333  ;;
10334
10335*nto* | *qnx*)
10336  version_type=qnx
10337  need_lib_prefix=no
10338  need_version=no
10339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340  soname_spec='${libname}${release}${shared_ext}$major'
10341  shlibpath_var=LD_LIBRARY_PATH
10342  shlibpath_overrides_runpath=no
10343  hardcode_into_libs=yes
10344  dynamic_linker='ldqnx.so'
10345  ;;
10346
10347openbsd*)
10348  version_type=sunos
10349  sys_lib_dlsearch_path_spec="/usr/lib"
10350  need_lib_prefix=no
10351  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10352  case $host_os in
10353    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10354    *)				need_version=no  ;;
10355  esac
10356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10357  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10358  shlibpath_var=LD_LIBRARY_PATH
10359  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10360    case $host_os in
10361      openbsd2.[89] | openbsd2.[89].*)
10362	shlibpath_overrides_runpath=no
10363	;;
10364      *)
10365	shlibpath_overrides_runpath=yes
10366	;;
10367      esac
10368  else
10369    shlibpath_overrides_runpath=yes
10370  fi
10371  ;;
10372
10373os2*)
10374  libname_spec='$name'
10375  shrext_cmds=".dll"
10376  need_lib_prefix=no
10377  library_names_spec='$libname${shared_ext} $libname.a'
10378  dynamic_linker='OS/2 ld.exe'
10379  shlibpath_var=LIBPATH
10380  ;;
10381
10382osf3* | osf4* | osf5*)
10383  version_type=osf
10384  need_lib_prefix=no
10385  need_version=no
10386  soname_spec='${libname}${release}${shared_ext}$major'
10387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388  shlibpath_var=LD_LIBRARY_PATH
10389  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10390  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10391  ;;
10392
10393rdos*)
10394  dynamic_linker=no
10395  ;;
10396
10397solaris*)
10398  version_type=linux # correct to gnu/linux during the next big refactor
10399  need_lib_prefix=no
10400  need_version=no
10401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402  soname_spec='${libname}${release}${shared_ext}$major'
10403  shlibpath_var=LD_LIBRARY_PATH
10404  shlibpath_overrides_runpath=yes
10405  hardcode_into_libs=yes
10406  # ldd complains unless libraries are executable
10407  postinstall_cmds='chmod +x $lib'
10408  ;;
10409
10410sunos4*)
10411  version_type=sunos
10412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10413  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10414  shlibpath_var=LD_LIBRARY_PATH
10415  shlibpath_overrides_runpath=yes
10416  if test "$with_gnu_ld" = yes; then
10417    need_lib_prefix=no
10418  fi
10419  need_version=yes
10420  ;;
10421
10422sysv4 | sysv4.3*)
10423  version_type=linux # correct to gnu/linux during the next big refactor
10424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  shlibpath_var=LD_LIBRARY_PATH
10427  case $host_vendor in
10428    sni)
10429      shlibpath_overrides_runpath=no
10430      need_lib_prefix=no
10431      runpath_var=LD_RUN_PATH
10432      ;;
10433    siemens)
10434      need_lib_prefix=no
10435      ;;
10436    motorola)
10437      need_lib_prefix=no
10438      need_version=no
10439      shlibpath_overrides_runpath=no
10440      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10441      ;;
10442  esac
10443  ;;
10444
10445sysv4*MP*)
10446  if test -d /usr/nec ;then
10447    version_type=linux # correct to gnu/linux during the next big refactor
10448    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10449    soname_spec='$libname${shared_ext}.$major'
10450    shlibpath_var=LD_LIBRARY_PATH
10451  fi
10452  ;;
10453
10454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10455  version_type=freebsd-elf
10456  need_lib_prefix=no
10457  need_version=no
10458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10459  soname_spec='${libname}${release}${shared_ext}$major'
10460  shlibpath_var=LD_LIBRARY_PATH
10461  shlibpath_overrides_runpath=yes
10462  hardcode_into_libs=yes
10463  if test "$with_gnu_ld" = yes; then
10464    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10465  else
10466    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10467    case $host_os in
10468      sco3.2v5*)
10469        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10470	;;
10471    esac
10472  fi
10473  sys_lib_dlsearch_path_spec='/usr/lib'
10474  ;;
10475
10476tpf*)
10477  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10478  version_type=linux # correct to gnu/linux during the next big refactor
10479  need_lib_prefix=no
10480  need_version=no
10481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482  shlibpath_var=LD_LIBRARY_PATH
10483  shlibpath_overrides_runpath=no
10484  hardcode_into_libs=yes
10485  ;;
10486
10487uts4*)
10488  version_type=linux # correct to gnu/linux during the next big refactor
10489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490  soname_spec='${libname}${release}${shared_ext}$major'
10491  shlibpath_var=LD_LIBRARY_PATH
10492  ;;
10493
10494*)
10495  dynamic_linker=no
10496  ;;
10497esac
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10499$as_echo "$dynamic_linker" >&6; }
10500test "$dynamic_linker" = no && can_build_shared=no
10501
10502variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10503if test "$GCC" = yes; then
10504  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10505fi
10506
10507if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10508  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10509fi
10510if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10511  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10512fi
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10606$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10607hardcode_action=
10608if test -n "$hardcode_libdir_flag_spec" ||
10609   test -n "$runpath_var" ||
10610   test "X$hardcode_automatic" = "Xyes" ; then
10611
10612  # We can hardcode non-existent directories.
10613  if test "$hardcode_direct" != no &&
10614     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10615     # have to relink, otherwise we might link with an installed library
10616     # when we should be linking with a yet-to-be-installed one
10617     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10618     test "$hardcode_minus_L" != no; then
10619    # Linking always hardcodes the temporary library directory.
10620    hardcode_action=relink
10621  else
10622    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10623    hardcode_action=immediate
10624  fi
10625else
10626  # We cannot hardcode anything, or else we can only hardcode existing
10627  # directories.
10628  hardcode_action=unsupported
10629fi
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10631$as_echo "$hardcode_action" >&6; }
10632
10633if test "$hardcode_action" = relink ||
10634   test "$inherit_rpath" = yes; then
10635  # Fast installation is not supported
10636  enable_fast_install=no
10637elif test "$shlibpath_overrides_runpath" = yes ||
10638     test "$enable_shared" = no; then
10639  # Fast installation is not necessary
10640  enable_fast_install=needless
10641fi
10642
10643
10644
10645
10646
10647
10648  if test "x$enable_dlopen" != xyes; then
10649  enable_dlopen=unknown
10650  enable_dlopen_self=unknown
10651  enable_dlopen_self_static=unknown
10652else
10653  lt_cv_dlopen=no
10654  lt_cv_dlopen_libs=
10655
10656  case $host_os in
10657  beos*)
10658    lt_cv_dlopen="load_add_on"
10659    lt_cv_dlopen_libs=
10660    lt_cv_dlopen_self=yes
10661    ;;
10662
10663  mingw* | pw32* | cegcc*)
10664    lt_cv_dlopen="LoadLibrary"
10665    lt_cv_dlopen_libs=
10666    ;;
10667
10668  cygwin*)
10669    lt_cv_dlopen="dlopen"
10670    lt_cv_dlopen_libs=
10671    ;;
10672
10673  darwin*)
10674  # if libdl is installed we need to link against it
10675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10676$as_echo_n "checking for dlopen in -ldl... " >&6; }
10677if ${ac_cv_lib_dl_dlopen+:} false; then :
10678  $as_echo_n "(cached) " >&6
10679else
10680  ac_check_lib_save_LIBS=$LIBS
10681LIBS="-ldl  $LIBS"
10682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683/* end confdefs.h.  */
10684
10685/* Override any GCC internal prototype to avoid an error.
10686   Use char because int might match the return type of a GCC
10687   builtin and then its argument prototype would still apply.  */
10688#ifdef __cplusplus
10689extern "C"
10690#endif
10691char dlopen ();
10692int
10693main ()
10694{
10695return dlopen ();
10696  ;
10697  return 0;
10698}
10699_ACEOF
10700if ac_fn_c_try_link "$LINENO"; then :
10701  ac_cv_lib_dl_dlopen=yes
10702else
10703  ac_cv_lib_dl_dlopen=no
10704fi
10705rm -f core conftest.err conftest.$ac_objext \
10706    conftest$ac_exeext conftest.$ac_ext
10707LIBS=$ac_check_lib_save_LIBS
10708fi
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10710$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10711if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10712  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10713else
10714
10715    lt_cv_dlopen="dyld"
10716    lt_cv_dlopen_libs=
10717    lt_cv_dlopen_self=yes
10718
10719fi
10720
10721    ;;
10722
10723  *)
10724    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10725if test "x$ac_cv_func_shl_load" = xyes; then :
10726  lt_cv_dlopen="shl_load"
10727else
10728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10729$as_echo_n "checking for shl_load in -ldld... " >&6; }
10730if ${ac_cv_lib_dld_shl_load+:} false; then :
10731  $as_echo_n "(cached) " >&6
10732else
10733  ac_check_lib_save_LIBS=$LIBS
10734LIBS="-ldld  $LIBS"
10735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736/* end confdefs.h.  */
10737
10738/* Override any GCC internal prototype to avoid an error.
10739   Use char because int might match the return type of a GCC
10740   builtin and then its argument prototype would still apply.  */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char shl_load ();
10745int
10746main ()
10747{
10748return shl_load ();
10749  ;
10750  return 0;
10751}
10752_ACEOF
10753if ac_fn_c_try_link "$LINENO"; then :
10754  ac_cv_lib_dld_shl_load=yes
10755else
10756  ac_cv_lib_dld_shl_load=no
10757fi
10758rm -f core conftest.err conftest.$ac_objext \
10759    conftest$ac_exeext conftest.$ac_ext
10760LIBS=$ac_check_lib_save_LIBS
10761fi
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10763$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10764if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10765  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10766else
10767  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10768if test "x$ac_cv_func_dlopen" = xyes; then :
10769  lt_cv_dlopen="dlopen"
10770else
10771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10772$as_echo_n "checking for dlopen in -ldl... " >&6; }
10773if ${ac_cv_lib_dl_dlopen+:} false; then :
10774  $as_echo_n "(cached) " >&6
10775else
10776  ac_check_lib_save_LIBS=$LIBS
10777LIBS="-ldl  $LIBS"
10778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779/* end confdefs.h.  */
10780
10781/* Override any GCC internal prototype to avoid an error.
10782   Use char because int might match the return type of a GCC
10783   builtin and then its argument prototype would still apply.  */
10784#ifdef __cplusplus
10785extern "C"
10786#endif
10787char dlopen ();
10788int
10789main ()
10790{
10791return dlopen ();
10792  ;
10793  return 0;
10794}
10795_ACEOF
10796if ac_fn_c_try_link "$LINENO"; then :
10797  ac_cv_lib_dl_dlopen=yes
10798else
10799  ac_cv_lib_dl_dlopen=no
10800fi
10801rm -f core conftest.err conftest.$ac_objext \
10802    conftest$ac_exeext conftest.$ac_ext
10803LIBS=$ac_check_lib_save_LIBS
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10806$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10807if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10808  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10809else
10810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10811$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10812if ${ac_cv_lib_svld_dlopen+:} false; then :
10813  $as_echo_n "(cached) " >&6
10814else
10815  ac_check_lib_save_LIBS=$LIBS
10816LIBS="-lsvld  $LIBS"
10817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h.  */
10819
10820/* Override any GCC internal prototype to avoid an error.
10821   Use char because int might match the return type of a GCC
10822   builtin and then its argument prototype would still apply.  */
10823#ifdef __cplusplus
10824extern "C"
10825#endif
10826char dlopen ();
10827int
10828main ()
10829{
10830return dlopen ();
10831  ;
10832  return 0;
10833}
10834_ACEOF
10835if ac_fn_c_try_link "$LINENO"; then :
10836  ac_cv_lib_svld_dlopen=yes
10837else
10838  ac_cv_lib_svld_dlopen=no
10839fi
10840rm -f core conftest.err conftest.$ac_objext \
10841    conftest$ac_exeext conftest.$ac_ext
10842LIBS=$ac_check_lib_save_LIBS
10843fi
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10845$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10846if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10847  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10848else
10849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10850$as_echo_n "checking for dld_link in -ldld... " >&6; }
10851if ${ac_cv_lib_dld_dld_link+:} false; then :
10852  $as_echo_n "(cached) " >&6
10853else
10854  ac_check_lib_save_LIBS=$LIBS
10855LIBS="-ldld  $LIBS"
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860   Use char because int might match the return type of a GCC
10861   builtin and then its argument prototype would still apply.  */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char dld_link ();
10866int
10867main ()
10868{
10869return dld_link ();
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874if ac_fn_c_try_link "$LINENO"; then :
10875  ac_cv_lib_dld_dld_link=yes
10876else
10877  ac_cv_lib_dld_dld_link=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext \
10880    conftest$ac_exeext conftest.$ac_ext
10881LIBS=$ac_check_lib_save_LIBS
10882fi
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10884$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10885if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10886  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10887fi
10888
10889
10890fi
10891
10892
10893fi
10894
10895
10896fi
10897
10898
10899fi
10900
10901
10902fi
10903
10904    ;;
10905  esac
10906
10907  if test "x$lt_cv_dlopen" != xno; then
10908    enable_dlopen=yes
10909  else
10910    enable_dlopen=no
10911  fi
10912
10913  case $lt_cv_dlopen in
10914  dlopen)
10915    save_CPPFLAGS="$CPPFLAGS"
10916    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10917
10918    save_LDFLAGS="$LDFLAGS"
10919    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10920
10921    save_LIBS="$LIBS"
10922    LIBS="$lt_cv_dlopen_libs $LIBS"
10923
10924    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10925$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10926if ${lt_cv_dlopen_self+:} false; then :
10927  $as_echo_n "(cached) " >&6
10928else
10929  	  if test "$cross_compiling" = yes; then :
10930  lt_cv_dlopen_self=cross
10931else
10932  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10933  lt_status=$lt_dlunknown
10934  cat > conftest.$ac_ext <<_LT_EOF
10935#line $LINENO "configure"
10936#include "confdefs.h"
10937
10938#if HAVE_DLFCN_H
10939#include <dlfcn.h>
10940#endif
10941
10942#include <stdio.h>
10943
10944#ifdef RTLD_GLOBAL
10945#  define LT_DLGLOBAL		RTLD_GLOBAL
10946#else
10947#  ifdef DL_GLOBAL
10948#    define LT_DLGLOBAL		DL_GLOBAL
10949#  else
10950#    define LT_DLGLOBAL		0
10951#  endif
10952#endif
10953
10954/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10955   find out it does not work in some platform. */
10956#ifndef LT_DLLAZY_OR_NOW
10957#  ifdef RTLD_LAZY
10958#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10959#  else
10960#    ifdef DL_LAZY
10961#      define LT_DLLAZY_OR_NOW		DL_LAZY
10962#    else
10963#      ifdef RTLD_NOW
10964#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10965#      else
10966#        ifdef DL_NOW
10967#          define LT_DLLAZY_OR_NOW	DL_NOW
10968#        else
10969#          define LT_DLLAZY_OR_NOW	0
10970#        endif
10971#      endif
10972#    endif
10973#  endif
10974#endif
10975
10976/* When -fvisbility=hidden is used, assume the code has been annotated
10977   correspondingly for the symbols needed.  */
10978#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10979int fnord () __attribute__((visibility("default")));
10980#endif
10981
10982int fnord () { return 42; }
10983int main ()
10984{
10985  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986  int status = $lt_dlunknown;
10987
10988  if (self)
10989    {
10990      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10991      else
10992        {
10993	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10994          else puts (dlerror ());
10995	}
10996      /* dlclose (self); */
10997    }
10998  else
10999    puts (dlerror ());
11000
11001  return status;
11002}
11003_LT_EOF
11004  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11005  (eval $ac_link) 2>&5
11006  ac_status=$?
11007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11009    (./conftest; exit; ) >&5 2>/dev/null
11010    lt_status=$?
11011    case x$lt_status in
11012      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11013      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11014      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11015    esac
11016  else :
11017    # compilation failed
11018    lt_cv_dlopen_self=no
11019  fi
11020fi
11021rm -fr conftest*
11022
11023
11024fi
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11026$as_echo "$lt_cv_dlopen_self" >&6; }
11027
11028    if test "x$lt_cv_dlopen_self" = xyes; then
11029      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11030      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11031$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11032if ${lt_cv_dlopen_self_static+:} false; then :
11033  $as_echo_n "(cached) " >&6
11034else
11035  	  if test "$cross_compiling" = yes; then :
11036  lt_cv_dlopen_self_static=cross
11037else
11038  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11039  lt_status=$lt_dlunknown
11040  cat > conftest.$ac_ext <<_LT_EOF
11041#line $LINENO "configure"
11042#include "confdefs.h"
11043
11044#if HAVE_DLFCN_H
11045#include <dlfcn.h>
11046#endif
11047
11048#include <stdio.h>
11049
11050#ifdef RTLD_GLOBAL
11051#  define LT_DLGLOBAL		RTLD_GLOBAL
11052#else
11053#  ifdef DL_GLOBAL
11054#    define LT_DLGLOBAL		DL_GLOBAL
11055#  else
11056#    define LT_DLGLOBAL		0
11057#  endif
11058#endif
11059
11060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11061   find out it does not work in some platform. */
11062#ifndef LT_DLLAZY_OR_NOW
11063#  ifdef RTLD_LAZY
11064#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11065#  else
11066#    ifdef DL_LAZY
11067#      define LT_DLLAZY_OR_NOW		DL_LAZY
11068#    else
11069#      ifdef RTLD_NOW
11070#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11071#      else
11072#        ifdef DL_NOW
11073#          define LT_DLLAZY_OR_NOW	DL_NOW
11074#        else
11075#          define LT_DLLAZY_OR_NOW	0
11076#        endif
11077#      endif
11078#    endif
11079#  endif
11080#endif
11081
11082/* When -fvisbility=hidden is used, assume the code has been annotated
11083   correspondingly for the symbols needed.  */
11084#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11085int fnord () __attribute__((visibility("default")));
11086#endif
11087
11088int fnord () { return 42; }
11089int main ()
11090{
11091  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092  int status = $lt_dlunknown;
11093
11094  if (self)
11095    {
11096      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11097      else
11098        {
11099	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11100          else puts (dlerror ());
11101	}
11102      /* dlclose (self); */
11103    }
11104  else
11105    puts (dlerror ());
11106
11107  return status;
11108}
11109_LT_EOF
11110  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11111  (eval $ac_link) 2>&5
11112  ac_status=$?
11113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11115    (./conftest; exit; ) >&5 2>/dev/null
11116    lt_status=$?
11117    case x$lt_status in
11118      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11119      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11120      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11121    esac
11122  else :
11123    # compilation failed
11124    lt_cv_dlopen_self_static=no
11125  fi
11126fi
11127rm -fr conftest*
11128
11129
11130fi
11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11132$as_echo "$lt_cv_dlopen_self_static" >&6; }
11133    fi
11134
11135    CPPFLAGS="$save_CPPFLAGS"
11136    LDFLAGS="$save_LDFLAGS"
11137    LIBS="$save_LIBS"
11138    ;;
11139  esac
11140
11141  case $lt_cv_dlopen_self in
11142  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11143  *) enable_dlopen_self=unknown ;;
11144  esac
11145
11146  case $lt_cv_dlopen_self_static in
11147  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11148  *) enable_dlopen_self_static=unknown ;;
11149  esac
11150fi
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168striplib=
11169old_striplib=
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11171$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11172if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11173  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11174  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176$as_echo "yes" >&6; }
11177else
11178# FIXME - insert some real tests, host_os isn't really good enough
11179  case $host_os in
11180  darwin*)
11181    if test -n "$STRIP" ; then
11182      striplib="$STRIP -x"
11183      old_striplib="$STRIP -S"
11184      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185$as_echo "yes" >&6; }
11186    else
11187      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188$as_echo "no" >&6; }
11189    fi
11190    ;;
11191  *)
11192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193$as_echo "no" >&6; }
11194    ;;
11195  esac
11196fi
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209  # Report which library types will actually be built
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11211$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11213$as_echo "$can_build_shared" >&6; }
11214
11215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11216$as_echo_n "checking whether to build shared libraries... " >&6; }
11217  test "$can_build_shared" = "no" && enable_shared=no
11218
11219  # On AIX, shared libraries and static libraries use the same namespace, and
11220  # are all built from PIC.
11221  case $host_os in
11222  aix3*)
11223    test "$enable_shared" = yes && enable_static=no
11224    if test -n "$RANLIB"; then
11225      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11226      postinstall_cmds='$RANLIB $lib'
11227    fi
11228    ;;
11229
11230  aix[4-9]*)
11231    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11232      test "$enable_shared" = yes && enable_static=no
11233    fi
11234    ;;
11235  esac
11236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11237$as_echo "$enable_shared" >&6; }
11238
11239  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11240$as_echo_n "checking whether to build static libraries... " >&6; }
11241  # Make sure either enable_shared or enable_static is yes.
11242  test "$enable_shared" = yes || enable_static=yes
11243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11244$as_echo "$enable_static" >&6; }
11245
11246
11247
11248
11249fi
11250ac_ext=c
11251ac_cpp='$CPP $CPPFLAGS'
11252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11254ac_compiler_gnu=$ac_cv_c_compiler_gnu
11255
11256CC="$lt_save_CC"
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272        ac_config_commands="$ac_config_commands libtool"
11273
11274
11275
11276
11277# Only expand once:
11278
11279
11280
11281# Require X.Org macros 1.8 or later
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11294$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11295if ${ac_cv_prog_cc_c99+:} false; then :
11296  $as_echo_n "(cached) " >&6
11297else
11298  ac_cv_prog_cc_c99=no
11299ac_save_CC=$CC
11300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h.  */
11302#include <stdarg.h>
11303#include <stdbool.h>
11304#include <stdlib.h>
11305#include <wchar.h>
11306#include <stdio.h>
11307
11308// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11309#define debug(...) fprintf (stderr, __VA_ARGS__)
11310#define showlist(...) puts (#__VA_ARGS__)
11311#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11312static void
11313test_varargs_macros (void)
11314{
11315  int x = 1234;
11316  int y = 5678;
11317  debug ("Flag");
11318  debug ("X = %d\n", x);
11319  showlist (The first, second, and third items.);
11320  report (x>y, "x is %d but y is %d", x, y);
11321}
11322
11323// Check long long types.
11324#define BIG64 18446744073709551615ull
11325#define BIG32 4294967295ul
11326#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11327#if !BIG_OK
11328  your preprocessor is broken;
11329#endif
11330#if BIG_OK
11331#else
11332  your preprocessor is broken;
11333#endif
11334static long long int bignum = -9223372036854775807LL;
11335static unsigned long long int ubignum = BIG64;
11336
11337struct incomplete_array
11338{
11339  int datasize;
11340  double data[];
11341};
11342
11343struct named_init {
11344  int number;
11345  const wchar_t *name;
11346  double average;
11347};
11348
11349typedef const char *ccp;
11350
11351static inline int
11352test_restrict (ccp restrict text)
11353{
11354  // See if C++-style comments work.
11355  // Iterate through items via the restricted pointer.
11356  // Also check for declarations in for loops.
11357  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11358    continue;
11359  return 0;
11360}
11361
11362// Check varargs and va_copy.
11363static void
11364test_varargs (const char *format, ...)
11365{
11366  va_list args;
11367  va_start (args, format);
11368  va_list args_copy;
11369  va_copy (args_copy, args);
11370
11371  const char *str;
11372  int number;
11373  float fnumber;
11374
11375  while (*format)
11376    {
11377      switch (*format++)
11378	{
11379	case 's': // string
11380	  str = va_arg (args_copy, const char *);
11381	  break;
11382	case 'd': // int
11383	  number = va_arg (args_copy, int);
11384	  break;
11385	case 'f': // float
11386	  fnumber = va_arg (args_copy, double);
11387	  break;
11388	default:
11389	  break;
11390	}
11391    }
11392  va_end (args_copy);
11393  va_end (args);
11394}
11395
11396int
11397main ()
11398{
11399
11400  // Check bool.
11401  _Bool success = false;
11402
11403  // Check restrict.
11404  if (test_restrict ("String literal") == 0)
11405    success = true;
11406  char *restrict newvar = "Another string";
11407
11408  // Check varargs.
11409  test_varargs ("s, d' f .", "string", 65, 34.234);
11410  test_varargs_macros ();
11411
11412  // Check flexible array members.
11413  struct incomplete_array *ia =
11414    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11415  ia->datasize = 10;
11416  for (int i = 0; i < ia->datasize; ++i)
11417    ia->data[i] = i * 1.234;
11418
11419  // Check named initializers.
11420  struct named_init ni = {
11421    .number = 34,
11422    .name = L"Test wide string",
11423    .average = 543.34343,
11424  };
11425
11426  ni.number = 58;
11427
11428  int dynamic_array[ni.number];
11429  dynamic_array[ni.number - 1] = 543;
11430
11431  // work around unused variable warnings
11432  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11433	  || dynamic_array[ni.number - 1] != 543);
11434
11435  ;
11436  return 0;
11437}
11438_ACEOF
11439for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11440do
11441  CC="$ac_save_CC $ac_arg"
11442  if ac_fn_c_try_compile "$LINENO"; then :
11443  ac_cv_prog_cc_c99=$ac_arg
11444fi
11445rm -f core conftest.err conftest.$ac_objext
11446  test "x$ac_cv_prog_cc_c99" != "xno" && break
11447done
11448rm -f conftest.$ac_ext
11449CC=$ac_save_CC
11450
11451fi
11452# AC_CACHE_VAL
11453case "x$ac_cv_prog_cc_c99" in
11454  x)
11455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11456$as_echo "none needed" >&6; } ;;
11457  xno)
11458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11459$as_echo "unsupported" >&6; } ;;
11460  *)
11461    CC="$CC $ac_cv_prog_cc_c99"
11462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11463$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11464esac
11465if test "x$ac_cv_prog_cc_c99" != xno; then :
11466
11467fi
11468
11469
11470
11471
11472
11473
11474ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11475if test "x$ac_cv_have_decl___clang__" = xyes; then :
11476  CLANGCC="yes"
11477else
11478  CLANGCC="no"
11479fi
11480
11481ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11482if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11483  INTELCC="yes"
11484else
11485  INTELCC="no"
11486fi
11487
11488ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11489if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11490  SUNCC="yes"
11491else
11492  SUNCC="no"
11493fi
11494
11495
11496
11497
11498if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11499	if test -n "$ac_tool_prefix"; then
11500  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11501set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11503$as_echo_n "checking for $ac_word... " >&6; }
11504if ${ac_cv_path_PKG_CONFIG+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507  case $PKG_CONFIG in
11508  [\\/]* | ?:[\\/]*)
11509  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11510  ;;
11511  *)
11512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515  IFS=$as_save_IFS
11516  test -z "$as_dir" && as_dir=.
11517    for ac_exec_ext in '' $ac_executable_extensions; do
11518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11521    break 2
11522  fi
11523done
11524  done
11525IFS=$as_save_IFS
11526
11527  ;;
11528esac
11529fi
11530PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11531if test -n "$PKG_CONFIG"; then
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11533$as_echo "$PKG_CONFIG" >&6; }
11534else
11535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536$as_echo "no" >&6; }
11537fi
11538
11539
11540fi
11541if test -z "$ac_cv_path_PKG_CONFIG"; then
11542  ac_pt_PKG_CONFIG=$PKG_CONFIG
11543  # Extract the first word of "pkg-config", so it can be a program name with args.
11544set dummy pkg-config; ac_word=$2
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546$as_echo_n "checking for $ac_word... " >&6; }
11547if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11548  $as_echo_n "(cached) " >&6
11549else
11550  case $ac_pt_PKG_CONFIG in
11551  [\\/]* | ?:[\\/]*)
11552  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11553  ;;
11554  *)
11555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558  IFS=$as_save_IFS
11559  test -z "$as_dir" && as_dir=.
11560    for ac_exec_ext in '' $ac_executable_extensions; do
11561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564    break 2
11565  fi
11566done
11567  done
11568IFS=$as_save_IFS
11569
11570  ;;
11571esac
11572fi
11573ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11574if test -n "$ac_pt_PKG_CONFIG"; then
11575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11576$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11577else
11578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579$as_echo "no" >&6; }
11580fi
11581
11582  if test "x$ac_pt_PKG_CONFIG" = x; then
11583    PKG_CONFIG=""
11584  else
11585    case $cross_compiling:$ac_tool_warned in
11586yes:)
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11589ac_tool_warned=yes ;;
11590esac
11591    PKG_CONFIG=$ac_pt_PKG_CONFIG
11592  fi
11593else
11594  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11595fi
11596
11597fi
11598if test -n "$PKG_CONFIG"; then
11599	_pkg_min_version=0.9.0
11600	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11601$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11602	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11603		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11604$as_echo "yes" >&6; }
11605	else
11606		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
11608		PKG_CONFIG=""
11609	fi
11610
11611fi
11612
11613
11614
11615
11616
11617# Check whether --enable-selective-werror was given.
11618if test "${enable_selective_werror+set}" = set; then :
11619  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11620else
11621  SELECTIVE_WERROR=yes
11622fi
11623
11624
11625
11626
11627
11628# -v is too short to test reliably with XORG_TESTSET_CFLAG
11629if test "x$SUNCC" = "xyes"; then
11630    BASE_CFLAGS="-v"
11631else
11632    BASE_CFLAGS=""
11633fi
11634
11635# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649xorg_testset_save_CFLAGS="$CFLAGS"
11650
11651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659/* end confdefs.h.  */
11660int i;
11661_ACEOF
11662if ac_fn_c_try_compile "$LINENO"; then :
11663  xorg_cv_cc_flag_unknown_warning_option=yes
11664else
11665  xorg_cv_cc_flag_unknown_warning_option=no
11666fi
11667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11672	CFLAGS="$xorg_testset_save_CFLAGS"
11673fi
11674
11675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11678	fi
11679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11683  $as_echo_n "(cached) " >&6
11684else
11685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686/* end confdefs.h.  */
11687int i;
11688_ACEOF
11689if ac_fn_c_try_compile "$LINENO"; then :
11690  xorg_cv_cc_flag_unused_command_line_argument=yes
11691else
11692  xorg_cv_cc_flag_unused_command_line_argument=no
11693fi
11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695fi
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11699	CFLAGS="$xorg_testset_save_CFLAGS"
11700fi
11701
11702found="no"
11703
11704	if test $found = "no" ; then
11705		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11707		fi
11708
11709		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11711		fi
11712
11713		CFLAGS="$CFLAGS -Wall"
11714
11715		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11716$as_echo_n "checking if $CC supports -Wall... " >&6; }
11717		cacheid=xorg_cv_cc_flag__Wall
11718		if eval \${$cacheid+:} false; then :
11719  $as_echo_n "(cached) " >&6
11720else
11721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722/* end confdefs.h.  */
11723int i;
11724int
11725main ()
11726{
11727
11728  ;
11729  return 0;
11730}
11731_ACEOF
11732if ac_fn_c_try_link "$LINENO"; then :
11733  eval $cacheid=yes
11734else
11735  eval $cacheid=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext \
11738    conftest$ac_exeext conftest.$ac_ext
11739fi
11740
11741
11742		CFLAGS="$xorg_testset_save_CFLAGS"
11743
11744		eval supported=\$$cacheid
11745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11746$as_echo "$supported" >&6; }
11747		if test "$supported" = "yes" ; then
11748			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11749			found="yes"
11750		fi
11751	fi
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767xorg_testset_save_CFLAGS="$CFLAGS"
11768
11769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11774  $as_echo_n "(cached) " >&6
11775else
11776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777/* end confdefs.h.  */
11778int i;
11779_ACEOF
11780if ac_fn_c_try_compile "$LINENO"; then :
11781  xorg_cv_cc_flag_unknown_warning_option=yes
11782else
11783  xorg_cv_cc_flag_unknown_warning_option=no
11784fi
11785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786fi
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11790	CFLAGS="$xorg_testset_save_CFLAGS"
11791fi
11792
11793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11796	fi
11797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11801  $as_echo_n "(cached) " >&6
11802else
11803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804/* end confdefs.h.  */
11805int i;
11806_ACEOF
11807if ac_fn_c_try_compile "$LINENO"; then :
11808  xorg_cv_cc_flag_unused_command_line_argument=yes
11809else
11810  xorg_cv_cc_flag_unused_command_line_argument=no
11811fi
11812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813fi
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11817	CFLAGS="$xorg_testset_save_CFLAGS"
11818fi
11819
11820found="no"
11821
11822	if test $found = "no" ; then
11823		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11825		fi
11826
11827		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11829		fi
11830
11831		CFLAGS="$CFLAGS -Wpointer-arith"
11832
11833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11834$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11835		cacheid=xorg_cv_cc_flag__Wpointer_arith
11836		if eval \${$cacheid+:} false; then :
11837  $as_echo_n "(cached) " >&6
11838else
11839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840/* end confdefs.h.  */
11841int i;
11842int
11843main ()
11844{
11845
11846  ;
11847  return 0;
11848}
11849_ACEOF
11850if ac_fn_c_try_link "$LINENO"; then :
11851  eval $cacheid=yes
11852else
11853  eval $cacheid=no
11854fi
11855rm -f core conftest.err conftest.$ac_objext \
11856    conftest$ac_exeext conftest.$ac_ext
11857fi
11858
11859
11860		CFLAGS="$xorg_testset_save_CFLAGS"
11861
11862		eval supported=\$$cacheid
11863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11864$as_echo "$supported" >&6; }
11865		if test "$supported" = "yes" ; then
11866			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11867			found="yes"
11868		fi
11869	fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885xorg_testset_save_CFLAGS="$CFLAGS"
11886
11887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895/* end confdefs.h.  */
11896int i;
11897_ACEOF
11898if ac_fn_c_try_compile "$LINENO"; then :
11899  xorg_cv_cc_flag_unknown_warning_option=yes
11900else
11901  xorg_cv_cc_flag_unknown_warning_option=no
11902fi
11903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11908	CFLAGS="$xorg_testset_save_CFLAGS"
11909fi
11910
11911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11914	fi
11915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11919  $as_echo_n "(cached) " >&6
11920else
11921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922/* end confdefs.h.  */
11923int i;
11924_ACEOF
11925if ac_fn_c_try_compile "$LINENO"; then :
11926  xorg_cv_cc_flag_unused_command_line_argument=yes
11927else
11928  xorg_cv_cc_flag_unused_command_line_argument=no
11929fi
11930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931fi
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11935	CFLAGS="$xorg_testset_save_CFLAGS"
11936fi
11937
11938found="no"
11939
11940	if test $found = "no" ; then
11941		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11943		fi
11944
11945		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11947		fi
11948
11949		CFLAGS="$CFLAGS -Wmissing-declarations"
11950
11951		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11952$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11953		cacheid=xorg_cv_cc_flag__Wmissing_declarations
11954		if eval \${$cacheid+:} false; then :
11955  $as_echo_n "(cached) " >&6
11956else
11957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958/* end confdefs.h.  */
11959int i;
11960int
11961main ()
11962{
11963
11964  ;
11965  return 0;
11966}
11967_ACEOF
11968if ac_fn_c_try_link "$LINENO"; then :
11969  eval $cacheid=yes
11970else
11971  eval $cacheid=no
11972fi
11973rm -f core conftest.err conftest.$ac_objext \
11974    conftest$ac_exeext conftest.$ac_ext
11975fi
11976
11977
11978		CFLAGS="$xorg_testset_save_CFLAGS"
11979
11980		eval supported=\$$cacheid
11981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11982$as_echo "$supported" >&6; }
11983		if test "$supported" = "yes" ; then
11984			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11985			found="yes"
11986		fi
11987	fi
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003xorg_testset_save_CFLAGS="$CFLAGS"
12004
12005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12010  $as_echo_n "(cached) " >&6
12011else
12012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013/* end confdefs.h.  */
12014int i;
12015_ACEOF
12016if ac_fn_c_try_compile "$LINENO"; then :
12017  xorg_cv_cc_flag_unknown_warning_option=yes
12018else
12019  xorg_cv_cc_flag_unknown_warning_option=no
12020fi
12021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022fi
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12026	CFLAGS="$xorg_testset_save_CFLAGS"
12027fi
12028
12029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12032	fi
12033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12037  $as_echo_n "(cached) " >&6
12038else
12039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040/* end confdefs.h.  */
12041int i;
12042_ACEOF
12043if ac_fn_c_try_compile "$LINENO"; then :
12044  xorg_cv_cc_flag_unused_command_line_argument=yes
12045else
12046  xorg_cv_cc_flag_unused_command_line_argument=no
12047fi
12048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049fi
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12053	CFLAGS="$xorg_testset_save_CFLAGS"
12054fi
12055
12056found="no"
12057
12058	if test $found = "no" ; then
12059		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12061		fi
12062
12063		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12065		fi
12066
12067		CFLAGS="$CFLAGS -Wformat=2"
12068
12069		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12070$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12071		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12072		if eval \${$cacheid+:} false; then :
12073  $as_echo_n "(cached) " >&6
12074else
12075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076/* end confdefs.h.  */
12077int i;
12078int
12079main ()
12080{
12081
12082  ;
12083  return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_link "$LINENO"; then :
12087  eval $cacheid=yes
12088else
12089  eval $cacheid=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext \
12092    conftest$ac_exeext conftest.$ac_ext
12093fi
12094
12095
12096		CFLAGS="$xorg_testset_save_CFLAGS"
12097
12098		eval supported=\$$cacheid
12099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12100$as_echo "$supported" >&6; }
12101		if test "$supported" = "yes" ; then
12102			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12103			found="yes"
12104		fi
12105	fi
12106
12107	if test $found = "no" ; then
12108		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12110		fi
12111
12112		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12114		fi
12115
12116		CFLAGS="$CFLAGS -Wformat"
12117
12118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12119$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12120		cacheid=xorg_cv_cc_flag__Wformat
12121		if eval \${$cacheid+:} false; then :
12122  $as_echo_n "(cached) " >&6
12123else
12124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125/* end confdefs.h.  */
12126int i;
12127int
12128main ()
12129{
12130
12131  ;
12132  return 0;
12133}
12134_ACEOF
12135if ac_fn_c_try_link "$LINENO"; then :
12136  eval $cacheid=yes
12137else
12138  eval $cacheid=no
12139fi
12140rm -f core conftest.err conftest.$ac_objext \
12141    conftest$ac_exeext conftest.$ac_ext
12142fi
12143
12144
12145		CFLAGS="$xorg_testset_save_CFLAGS"
12146
12147		eval supported=\$$cacheid
12148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12149$as_echo "$supported" >&6; }
12150		if test "$supported" = "yes" ; then
12151			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12152			found="yes"
12153		fi
12154	fi
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172xorg_testset_save_CFLAGS="$CFLAGS"
12173
12174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h.  */
12183int i;
12184_ACEOF
12185if ac_fn_c_try_compile "$LINENO"; then :
12186  xorg_cv_cc_flag_unknown_warning_option=yes
12187else
12188  xorg_cv_cc_flag_unknown_warning_option=no
12189fi
12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12195	CFLAGS="$xorg_testset_save_CFLAGS"
12196fi
12197
12198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12201	fi
12202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12205if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12214else
12215  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12222	CFLAGS="$xorg_testset_save_CFLAGS"
12223fi
12224
12225found="no"
12226
12227	if test $found = "no" ; then
12228		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12230		fi
12231
12232		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12234		fi
12235
12236		CFLAGS="$CFLAGS -Wstrict-prototypes"
12237
12238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12239$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12240		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12241		if eval \${$cacheid+:} false; then :
12242  $as_echo_n "(cached) " >&6
12243else
12244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245/* end confdefs.h.  */
12246int i;
12247int
12248main ()
12249{
12250
12251  ;
12252  return 0;
12253}
12254_ACEOF
12255if ac_fn_c_try_link "$LINENO"; then :
12256  eval $cacheid=yes
12257else
12258  eval $cacheid=no
12259fi
12260rm -f core conftest.err conftest.$ac_objext \
12261    conftest$ac_exeext conftest.$ac_ext
12262fi
12263
12264
12265		CFLAGS="$xorg_testset_save_CFLAGS"
12266
12267		eval supported=\$$cacheid
12268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12269$as_echo "$supported" >&6; }
12270		if test "$supported" = "yes" ; then
12271			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12272			found="yes"
12273		fi
12274	fi
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290xorg_testset_save_CFLAGS="$CFLAGS"
12291
12292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12297  $as_echo_n "(cached) " >&6
12298else
12299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301int i;
12302_ACEOF
12303if ac_fn_c_try_compile "$LINENO"; then :
12304  xorg_cv_cc_flag_unknown_warning_option=yes
12305else
12306  xorg_cv_cc_flag_unknown_warning_option=no
12307fi
12308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309fi
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12313	CFLAGS="$xorg_testset_save_CFLAGS"
12314fi
12315
12316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12319	fi
12320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12323if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12332else
12333  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12340	CFLAGS="$xorg_testset_save_CFLAGS"
12341fi
12342
12343found="no"
12344
12345	if test $found = "no" ; then
12346		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12348		fi
12349
12350		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12352		fi
12353
12354		CFLAGS="$CFLAGS -Wmissing-prototypes"
12355
12356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12357$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12358		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12359		if eval \${$cacheid+:} false; then :
12360  $as_echo_n "(cached) " >&6
12361else
12362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h.  */
12364int i;
12365int
12366main ()
12367{
12368
12369  ;
12370  return 0;
12371}
12372_ACEOF
12373if ac_fn_c_try_link "$LINENO"; then :
12374  eval $cacheid=yes
12375else
12376  eval $cacheid=no
12377fi
12378rm -f core conftest.err conftest.$ac_objext \
12379    conftest$ac_exeext conftest.$ac_ext
12380fi
12381
12382
12383		CFLAGS="$xorg_testset_save_CFLAGS"
12384
12385		eval supported=\$$cacheid
12386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12387$as_echo "$supported" >&6; }
12388		if test "$supported" = "yes" ; then
12389			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12390			found="yes"
12391		fi
12392	fi
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408xorg_testset_save_CFLAGS="$CFLAGS"
12409
12410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12415  $as_echo_n "(cached) " >&6
12416else
12417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h.  */
12419int i;
12420_ACEOF
12421if ac_fn_c_try_compile "$LINENO"; then :
12422  xorg_cv_cc_flag_unknown_warning_option=yes
12423else
12424  xorg_cv_cc_flag_unknown_warning_option=no
12425fi
12426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12431	CFLAGS="$xorg_testset_save_CFLAGS"
12432fi
12433
12434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12437	fi
12438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12441if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
12450else
12451  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
12456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12458	CFLAGS="$xorg_testset_save_CFLAGS"
12459fi
12460
12461found="no"
12462
12463	if test $found = "no" ; then
12464		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12466		fi
12467
12468		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12470		fi
12471
12472		CFLAGS="$CFLAGS -Wnested-externs"
12473
12474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12475$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12476		cacheid=xorg_cv_cc_flag__Wnested_externs
12477		if eval \${$cacheid+:} false; then :
12478  $as_echo_n "(cached) " >&6
12479else
12480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481/* end confdefs.h.  */
12482int i;
12483int
12484main ()
12485{
12486
12487  ;
12488  return 0;
12489}
12490_ACEOF
12491if ac_fn_c_try_link "$LINENO"; then :
12492  eval $cacheid=yes
12493else
12494  eval $cacheid=no
12495fi
12496rm -f core conftest.err conftest.$ac_objext \
12497    conftest$ac_exeext conftest.$ac_ext
12498fi
12499
12500
12501		CFLAGS="$xorg_testset_save_CFLAGS"
12502
12503		eval supported=\$$cacheid
12504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12505$as_echo "$supported" >&6; }
12506		if test "$supported" = "yes" ; then
12507			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12508			found="yes"
12509		fi
12510	fi
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526xorg_testset_save_CFLAGS="$CFLAGS"
12527
12528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12533  $as_echo_n "(cached) " >&6
12534else
12535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536/* end confdefs.h.  */
12537int i;
12538_ACEOF
12539if ac_fn_c_try_compile "$LINENO"; then :
12540  xorg_cv_cc_flag_unknown_warning_option=yes
12541else
12542  xorg_cv_cc_flag_unknown_warning_option=no
12543fi
12544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545fi
12546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12549	CFLAGS="$xorg_testset_save_CFLAGS"
12550fi
12551
12552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12555	fi
12556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563/* end confdefs.h.  */
12564int i;
12565_ACEOF
12566if ac_fn_c_try_compile "$LINENO"; then :
12567  xorg_cv_cc_flag_unused_command_line_argument=yes
12568else
12569  xorg_cv_cc_flag_unused_command_line_argument=no
12570fi
12571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572fi
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12576	CFLAGS="$xorg_testset_save_CFLAGS"
12577fi
12578
12579found="no"
12580
12581	if test $found = "no" ; then
12582		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12584		fi
12585
12586		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12588		fi
12589
12590		CFLAGS="$CFLAGS -Wbad-function-cast"
12591
12592		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12593$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12594		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12595		if eval \${$cacheid+:} false; then :
12596  $as_echo_n "(cached) " >&6
12597else
12598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599/* end confdefs.h.  */
12600int i;
12601int
12602main ()
12603{
12604
12605  ;
12606  return 0;
12607}
12608_ACEOF
12609if ac_fn_c_try_link "$LINENO"; then :
12610  eval $cacheid=yes
12611else
12612  eval $cacheid=no
12613fi
12614rm -f core conftest.err conftest.$ac_objext \
12615    conftest$ac_exeext conftest.$ac_ext
12616fi
12617
12618
12619		CFLAGS="$xorg_testset_save_CFLAGS"
12620
12621		eval supported=\$$cacheid
12622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12623$as_echo "$supported" >&6; }
12624		if test "$supported" = "yes" ; then
12625			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12626			found="yes"
12627		fi
12628	fi
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644xorg_testset_save_CFLAGS="$CFLAGS"
12645
12646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12651  $as_echo_n "(cached) " >&6
12652else
12653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654/* end confdefs.h.  */
12655int i;
12656_ACEOF
12657if ac_fn_c_try_compile "$LINENO"; then :
12658  xorg_cv_cc_flag_unknown_warning_option=yes
12659else
12660  xorg_cv_cc_flag_unknown_warning_option=no
12661fi
12662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663fi
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12667	CFLAGS="$xorg_testset_save_CFLAGS"
12668fi
12669
12670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12673	fi
12674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12678  $as_echo_n "(cached) " >&6
12679else
12680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681/* end confdefs.h.  */
12682int i;
12683_ACEOF
12684if ac_fn_c_try_compile "$LINENO"; then :
12685  xorg_cv_cc_flag_unused_command_line_argument=yes
12686else
12687  xorg_cv_cc_flag_unused_command_line_argument=no
12688fi
12689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690fi
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12694	CFLAGS="$xorg_testset_save_CFLAGS"
12695fi
12696
12697found="no"
12698
12699	if test $found = "no" ; then
12700		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12702		fi
12703
12704		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12706		fi
12707
12708		CFLAGS="$CFLAGS -Wold-style-definition"
12709
12710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12711$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12712		cacheid=xorg_cv_cc_flag__Wold_style_definition
12713		if eval \${$cacheid+:} false; then :
12714  $as_echo_n "(cached) " >&6
12715else
12716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717/* end confdefs.h.  */
12718int i;
12719int
12720main ()
12721{
12722
12723  ;
12724  return 0;
12725}
12726_ACEOF
12727if ac_fn_c_try_link "$LINENO"; then :
12728  eval $cacheid=yes
12729else
12730  eval $cacheid=no
12731fi
12732rm -f core conftest.err conftest.$ac_objext \
12733    conftest$ac_exeext conftest.$ac_ext
12734fi
12735
12736
12737		CFLAGS="$xorg_testset_save_CFLAGS"
12738
12739		eval supported=\$$cacheid
12740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12741$as_echo "$supported" >&6; }
12742		if test "$supported" = "yes" ; then
12743			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12744			found="yes"
12745		fi
12746	fi
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762xorg_testset_save_CFLAGS="$CFLAGS"
12763
12764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12769  $as_echo_n "(cached) " >&6
12770else
12771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772/* end confdefs.h.  */
12773int i;
12774_ACEOF
12775if ac_fn_c_try_compile "$LINENO"; then :
12776  xorg_cv_cc_flag_unknown_warning_option=yes
12777else
12778  xorg_cv_cc_flag_unknown_warning_option=no
12779fi
12780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781fi
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12785	CFLAGS="$xorg_testset_save_CFLAGS"
12786fi
12787
12788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12791	fi
12792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12796  $as_echo_n "(cached) " >&6
12797else
12798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h.  */
12800int i;
12801_ACEOF
12802if ac_fn_c_try_compile "$LINENO"; then :
12803  xorg_cv_cc_flag_unused_command_line_argument=yes
12804else
12805  xorg_cv_cc_flag_unused_command_line_argument=no
12806fi
12807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808fi
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12812	CFLAGS="$xorg_testset_save_CFLAGS"
12813fi
12814
12815found="no"
12816
12817	if test $found = "no" ; then
12818		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12820		fi
12821
12822		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12824		fi
12825
12826		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12827
12828		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12829$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12830		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12831		if eval \${$cacheid+:} false; then :
12832  $as_echo_n "(cached) " >&6
12833else
12834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835/* end confdefs.h.  */
12836int i;
12837int
12838main ()
12839{
12840
12841  ;
12842  return 0;
12843}
12844_ACEOF
12845if ac_fn_c_try_link "$LINENO"; then :
12846  eval $cacheid=yes
12847else
12848  eval $cacheid=no
12849fi
12850rm -f core conftest.err conftest.$ac_objext \
12851    conftest$ac_exeext conftest.$ac_ext
12852fi
12853
12854
12855		CFLAGS="$xorg_testset_save_CFLAGS"
12856
12857		eval supported=\$$cacheid
12858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12859$as_echo "$supported" >&6; }
12860		if test "$supported" = "yes" ; then
12861			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12862			found="yes"
12863		fi
12864	fi
12865
12866
12867
12868
12869
12870# This chunk adds additional warnings that could catch undesired effects.
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884xorg_testset_save_CFLAGS="$CFLAGS"
12885
12886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12891  $as_echo_n "(cached) " >&6
12892else
12893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894/* end confdefs.h.  */
12895int i;
12896_ACEOF
12897if ac_fn_c_try_compile "$LINENO"; then :
12898  xorg_cv_cc_flag_unknown_warning_option=yes
12899else
12900  xorg_cv_cc_flag_unknown_warning_option=no
12901fi
12902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12903fi
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12907	CFLAGS="$xorg_testset_save_CFLAGS"
12908fi
12909
12910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12913	fi
12914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12918  $as_echo_n "(cached) " >&6
12919else
12920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921/* end confdefs.h.  */
12922int i;
12923_ACEOF
12924if ac_fn_c_try_compile "$LINENO"; then :
12925  xorg_cv_cc_flag_unused_command_line_argument=yes
12926else
12927  xorg_cv_cc_flag_unused_command_line_argument=no
12928fi
12929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930fi
12931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12934	CFLAGS="$xorg_testset_save_CFLAGS"
12935fi
12936
12937found="no"
12938
12939	if test $found = "no" ; then
12940		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12942		fi
12943
12944		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12946		fi
12947
12948		CFLAGS="$CFLAGS -Wunused"
12949
12950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12951$as_echo_n "checking if $CC supports -Wunused... " >&6; }
12952		cacheid=xorg_cv_cc_flag__Wunused
12953		if eval \${$cacheid+:} false; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957/* end confdefs.h.  */
12958int i;
12959int
12960main ()
12961{
12962
12963  ;
12964  return 0;
12965}
12966_ACEOF
12967if ac_fn_c_try_link "$LINENO"; then :
12968  eval $cacheid=yes
12969else
12970  eval $cacheid=no
12971fi
12972rm -f core conftest.err conftest.$ac_objext \
12973    conftest$ac_exeext conftest.$ac_ext
12974fi
12975
12976
12977		CFLAGS="$xorg_testset_save_CFLAGS"
12978
12979		eval supported=\$$cacheid
12980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12981$as_echo "$supported" >&6; }
12982		if test "$supported" = "yes" ; then
12983			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12984			found="yes"
12985		fi
12986	fi
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002xorg_testset_save_CFLAGS="$CFLAGS"
13003
13004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13009  $as_echo_n "(cached) " >&6
13010else
13011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012/* end confdefs.h.  */
13013int i;
13014_ACEOF
13015if ac_fn_c_try_compile "$LINENO"; then :
13016  xorg_cv_cc_flag_unknown_warning_option=yes
13017else
13018  xorg_cv_cc_flag_unknown_warning_option=no
13019fi
13020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021fi
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13025	CFLAGS="$xorg_testset_save_CFLAGS"
13026fi
13027
13028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13031	fi
13032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13036  $as_echo_n "(cached) " >&6
13037else
13038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h.  */
13040int i;
13041_ACEOF
13042if ac_fn_c_try_compile "$LINENO"; then :
13043  xorg_cv_cc_flag_unused_command_line_argument=yes
13044else
13045  xorg_cv_cc_flag_unused_command_line_argument=no
13046fi
13047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13048fi
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13052	CFLAGS="$xorg_testset_save_CFLAGS"
13053fi
13054
13055found="no"
13056
13057	if test $found = "no" ; then
13058		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13060		fi
13061
13062		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13064		fi
13065
13066		CFLAGS="$CFLAGS -Wuninitialized"
13067
13068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13069$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13070		cacheid=xorg_cv_cc_flag__Wuninitialized
13071		if eval \${$cacheid+:} false; then :
13072  $as_echo_n "(cached) " >&6
13073else
13074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075/* end confdefs.h.  */
13076int i;
13077int
13078main ()
13079{
13080
13081  ;
13082  return 0;
13083}
13084_ACEOF
13085if ac_fn_c_try_link "$LINENO"; then :
13086  eval $cacheid=yes
13087else
13088  eval $cacheid=no
13089fi
13090rm -f core conftest.err conftest.$ac_objext \
13091    conftest$ac_exeext conftest.$ac_ext
13092fi
13093
13094
13095		CFLAGS="$xorg_testset_save_CFLAGS"
13096
13097		eval supported=\$$cacheid
13098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13099$as_echo "$supported" >&6; }
13100		if test "$supported" = "yes" ; then
13101			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13102			found="yes"
13103		fi
13104	fi
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120xorg_testset_save_CFLAGS="$CFLAGS"
13121
13122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13127  $as_echo_n "(cached) " >&6
13128else
13129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130/* end confdefs.h.  */
13131int i;
13132_ACEOF
13133if ac_fn_c_try_compile "$LINENO"; then :
13134  xorg_cv_cc_flag_unknown_warning_option=yes
13135else
13136  xorg_cv_cc_flag_unknown_warning_option=no
13137fi
13138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139fi
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13143	CFLAGS="$xorg_testset_save_CFLAGS"
13144fi
13145
13146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13149	fi
13150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13154  $as_echo_n "(cached) " >&6
13155else
13156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157/* end confdefs.h.  */
13158int i;
13159_ACEOF
13160if ac_fn_c_try_compile "$LINENO"; then :
13161  xorg_cv_cc_flag_unused_command_line_argument=yes
13162else
13163  xorg_cv_cc_flag_unused_command_line_argument=no
13164fi
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166fi
13167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13170	CFLAGS="$xorg_testset_save_CFLAGS"
13171fi
13172
13173found="no"
13174
13175	if test $found = "no" ; then
13176		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13178		fi
13179
13180		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13182		fi
13183
13184		CFLAGS="$CFLAGS -Wshadow"
13185
13186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13187$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13188		cacheid=xorg_cv_cc_flag__Wshadow
13189		if eval \${$cacheid+:} false; then :
13190  $as_echo_n "(cached) " >&6
13191else
13192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193/* end confdefs.h.  */
13194int i;
13195int
13196main ()
13197{
13198
13199  ;
13200  return 0;
13201}
13202_ACEOF
13203if ac_fn_c_try_link "$LINENO"; then :
13204  eval $cacheid=yes
13205else
13206  eval $cacheid=no
13207fi
13208rm -f core conftest.err conftest.$ac_objext \
13209    conftest$ac_exeext conftest.$ac_ext
13210fi
13211
13212
13213		CFLAGS="$xorg_testset_save_CFLAGS"
13214
13215		eval supported=\$$cacheid
13216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13217$as_echo "$supported" >&6; }
13218		if test "$supported" = "yes" ; then
13219			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13220			found="yes"
13221		fi
13222	fi
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238xorg_testset_save_CFLAGS="$CFLAGS"
13239
13240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13245  $as_echo_n "(cached) " >&6
13246else
13247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h.  */
13249int i;
13250_ACEOF
13251if ac_fn_c_try_compile "$LINENO"; then :
13252  xorg_cv_cc_flag_unknown_warning_option=yes
13253else
13254  xorg_cv_cc_flag_unknown_warning_option=no
13255fi
13256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257fi
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13261	CFLAGS="$xorg_testset_save_CFLAGS"
13262fi
13263
13264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13267	fi
13268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13272  $as_echo_n "(cached) " >&6
13273else
13274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275/* end confdefs.h.  */
13276int i;
13277_ACEOF
13278if ac_fn_c_try_compile "$LINENO"; then :
13279  xorg_cv_cc_flag_unused_command_line_argument=yes
13280else
13281  xorg_cv_cc_flag_unused_command_line_argument=no
13282fi
13283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284fi
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13288	CFLAGS="$xorg_testset_save_CFLAGS"
13289fi
13290
13291found="no"
13292
13293	if test $found = "no" ; then
13294		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13296		fi
13297
13298		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13300		fi
13301
13302		CFLAGS="$CFLAGS -Wcast-qual"
13303
13304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13305$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13306		cacheid=xorg_cv_cc_flag__Wcast_qual
13307		if eval \${$cacheid+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311/* end confdefs.h.  */
13312int i;
13313int
13314main ()
13315{
13316
13317  ;
13318  return 0;
13319}
13320_ACEOF
13321if ac_fn_c_try_link "$LINENO"; then :
13322  eval $cacheid=yes
13323else
13324  eval $cacheid=no
13325fi
13326rm -f core conftest.err conftest.$ac_objext \
13327    conftest$ac_exeext conftest.$ac_ext
13328fi
13329
13330
13331		CFLAGS="$xorg_testset_save_CFLAGS"
13332
13333		eval supported=\$$cacheid
13334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13335$as_echo "$supported" >&6; }
13336		if test "$supported" = "yes" ; then
13337			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13338			found="yes"
13339		fi
13340	fi
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356xorg_testset_save_CFLAGS="$CFLAGS"
13357
13358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13363  $as_echo_n "(cached) " >&6
13364else
13365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366/* end confdefs.h.  */
13367int i;
13368_ACEOF
13369if ac_fn_c_try_compile "$LINENO"; then :
13370  xorg_cv_cc_flag_unknown_warning_option=yes
13371else
13372  xorg_cv_cc_flag_unknown_warning_option=no
13373fi
13374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375fi
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13379	CFLAGS="$xorg_testset_save_CFLAGS"
13380fi
13381
13382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385	fi
13386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13390  $as_echo_n "(cached) " >&6
13391else
13392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393/* end confdefs.h.  */
13394int i;
13395_ACEOF
13396if ac_fn_c_try_compile "$LINENO"; then :
13397  xorg_cv_cc_flag_unused_command_line_argument=yes
13398else
13399  xorg_cv_cc_flag_unused_command_line_argument=no
13400fi
13401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402fi
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13406	CFLAGS="$xorg_testset_save_CFLAGS"
13407fi
13408
13409found="no"
13410
13411	if test $found = "no" ; then
13412		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13414		fi
13415
13416		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13418		fi
13419
13420		CFLAGS="$CFLAGS -Wmissing-noreturn"
13421
13422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13423$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13424		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13425		if eval \${$cacheid+:} false; then :
13426  $as_echo_n "(cached) " >&6
13427else
13428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429/* end confdefs.h.  */
13430int i;
13431int
13432main ()
13433{
13434
13435  ;
13436  return 0;
13437}
13438_ACEOF
13439if ac_fn_c_try_link "$LINENO"; then :
13440  eval $cacheid=yes
13441else
13442  eval $cacheid=no
13443fi
13444rm -f core conftest.err conftest.$ac_objext \
13445    conftest$ac_exeext conftest.$ac_ext
13446fi
13447
13448
13449		CFLAGS="$xorg_testset_save_CFLAGS"
13450
13451		eval supported=\$$cacheid
13452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13453$as_echo "$supported" >&6; }
13454		if test "$supported" = "yes" ; then
13455			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13456			found="yes"
13457		fi
13458	fi
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474xorg_testset_save_CFLAGS="$CFLAGS"
13475
13476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13481  $as_echo_n "(cached) " >&6
13482else
13483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484/* end confdefs.h.  */
13485int i;
13486_ACEOF
13487if ac_fn_c_try_compile "$LINENO"; then :
13488  xorg_cv_cc_flag_unknown_warning_option=yes
13489else
13490  xorg_cv_cc_flag_unknown_warning_option=no
13491fi
13492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493fi
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13497	CFLAGS="$xorg_testset_save_CFLAGS"
13498fi
13499
13500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13503	fi
13504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13508  $as_echo_n "(cached) " >&6
13509else
13510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511/* end confdefs.h.  */
13512int i;
13513_ACEOF
13514if ac_fn_c_try_compile "$LINENO"; then :
13515  xorg_cv_cc_flag_unused_command_line_argument=yes
13516else
13517  xorg_cv_cc_flag_unused_command_line_argument=no
13518fi
13519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520fi
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13524	CFLAGS="$xorg_testset_save_CFLAGS"
13525fi
13526
13527found="no"
13528
13529	if test $found = "no" ; then
13530		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13532		fi
13533
13534		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13536		fi
13537
13538		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13539
13540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13541$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13542		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13543		if eval \${$cacheid+:} false; then :
13544  $as_echo_n "(cached) " >&6
13545else
13546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547/* end confdefs.h.  */
13548int i;
13549int
13550main ()
13551{
13552
13553  ;
13554  return 0;
13555}
13556_ACEOF
13557if ac_fn_c_try_link "$LINENO"; then :
13558  eval $cacheid=yes
13559else
13560  eval $cacheid=no
13561fi
13562rm -f core conftest.err conftest.$ac_objext \
13563    conftest$ac_exeext conftest.$ac_ext
13564fi
13565
13566
13567		CFLAGS="$xorg_testset_save_CFLAGS"
13568
13569		eval supported=\$$cacheid
13570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13571$as_echo "$supported" >&6; }
13572		if test "$supported" = "yes" ; then
13573			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13574			found="yes"
13575		fi
13576	fi
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592xorg_testset_save_CFLAGS="$CFLAGS"
13593
13594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13599  $as_echo_n "(cached) " >&6
13600else
13601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602/* end confdefs.h.  */
13603int i;
13604_ACEOF
13605if ac_fn_c_try_compile "$LINENO"; then :
13606  xorg_cv_cc_flag_unknown_warning_option=yes
13607else
13608  xorg_cv_cc_flag_unknown_warning_option=no
13609fi
13610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611fi
13612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13615	CFLAGS="$xorg_testset_save_CFLAGS"
13616fi
13617
13618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13621	fi
13622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13626  $as_echo_n "(cached) " >&6
13627else
13628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629/* end confdefs.h.  */
13630int i;
13631_ACEOF
13632if ac_fn_c_try_compile "$LINENO"; then :
13633  xorg_cv_cc_flag_unused_command_line_argument=yes
13634else
13635  xorg_cv_cc_flag_unused_command_line_argument=no
13636fi
13637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638fi
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13642	CFLAGS="$xorg_testset_save_CFLAGS"
13643fi
13644
13645found="no"
13646
13647	if test $found = "no" ; then
13648		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13650		fi
13651
13652		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13654		fi
13655
13656		CFLAGS="$CFLAGS -Wredundant-decls"
13657
13658		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13659$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13660		cacheid=xorg_cv_cc_flag__Wredundant_decls
13661		if eval \${$cacheid+:} false; then :
13662  $as_echo_n "(cached) " >&6
13663else
13664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665/* end confdefs.h.  */
13666int i;
13667int
13668main ()
13669{
13670
13671  ;
13672  return 0;
13673}
13674_ACEOF
13675if ac_fn_c_try_link "$LINENO"; then :
13676  eval $cacheid=yes
13677else
13678  eval $cacheid=no
13679fi
13680rm -f core conftest.err conftest.$ac_objext \
13681    conftest$ac_exeext conftest.$ac_ext
13682fi
13683
13684
13685		CFLAGS="$xorg_testset_save_CFLAGS"
13686
13687		eval supported=\$$cacheid
13688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13689$as_echo "$supported" >&6; }
13690		if test "$supported" = "yes" ; then
13691			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13692			found="yes"
13693		fi
13694	fi
13695
13696
13697
13698# These are currently disabled because they are noisy.  They will be enabled
13699# in the future once the codebase is sufficiently modernized to silence
13700# them.  For now, I don't want them to drown out the other warnings.
13701# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13702# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13703# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13704
13705# Turn some warnings into errors, so we don't accidently get successful builds
13706# when there are problems that should be fixed.
13707
13708if test "x$SELECTIVE_WERROR" = "xyes" ; then
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722xorg_testset_save_CFLAGS="$CFLAGS"
13723
13724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13729  $as_echo_n "(cached) " >&6
13730else
13731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h.  */
13733int i;
13734_ACEOF
13735if ac_fn_c_try_compile "$LINENO"; then :
13736  xorg_cv_cc_flag_unknown_warning_option=yes
13737else
13738  xorg_cv_cc_flag_unknown_warning_option=no
13739fi
13740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741fi
13742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13745	CFLAGS="$xorg_testset_save_CFLAGS"
13746fi
13747
13748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13751	fi
13752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13756  $as_echo_n "(cached) " >&6
13757else
13758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759/* end confdefs.h.  */
13760int i;
13761_ACEOF
13762if ac_fn_c_try_compile "$LINENO"; then :
13763  xorg_cv_cc_flag_unused_command_line_argument=yes
13764else
13765  xorg_cv_cc_flag_unused_command_line_argument=no
13766fi
13767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768fi
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13772	CFLAGS="$xorg_testset_save_CFLAGS"
13773fi
13774
13775found="no"
13776
13777	if test $found = "no" ; then
13778		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13780		fi
13781
13782		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13784		fi
13785
13786		CFLAGS="$CFLAGS -Werror=implicit"
13787
13788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13789$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13790		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13791		if eval \${$cacheid+:} false; then :
13792  $as_echo_n "(cached) " >&6
13793else
13794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795/* end confdefs.h.  */
13796int i;
13797int
13798main ()
13799{
13800
13801  ;
13802  return 0;
13803}
13804_ACEOF
13805if ac_fn_c_try_link "$LINENO"; then :
13806  eval $cacheid=yes
13807else
13808  eval $cacheid=no
13809fi
13810rm -f core conftest.err conftest.$ac_objext \
13811    conftest$ac_exeext conftest.$ac_ext
13812fi
13813
13814
13815		CFLAGS="$xorg_testset_save_CFLAGS"
13816
13817		eval supported=\$$cacheid
13818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13819$as_echo "$supported" >&6; }
13820		if test "$supported" = "yes" ; then
13821			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13822			found="yes"
13823		fi
13824	fi
13825
13826	if test $found = "no" ; then
13827		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829		fi
13830
13831		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13833		fi
13834
13835		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13836
13837		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13838$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13839		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13840		if eval \${$cacheid+:} false; then :
13841  $as_echo_n "(cached) " >&6
13842else
13843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844/* end confdefs.h.  */
13845int i;
13846int
13847main ()
13848{
13849
13850  ;
13851  return 0;
13852}
13853_ACEOF
13854if ac_fn_c_try_link "$LINENO"; then :
13855  eval $cacheid=yes
13856else
13857  eval $cacheid=no
13858fi
13859rm -f core conftest.err conftest.$ac_objext \
13860    conftest$ac_exeext conftest.$ac_ext
13861fi
13862
13863
13864		CFLAGS="$xorg_testset_save_CFLAGS"
13865
13866		eval supported=\$$cacheid
13867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13868$as_echo "$supported" >&6; }
13869		if test "$supported" = "yes" ; then
13870			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13871			found="yes"
13872		fi
13873	fi
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889xorg_testset_save_CFLAGS="$CFLAGS"
13890
13891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13896  $as_echo_n "(cached) " >&6
13897else
13898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899/* end confdefs.h.  */
13900int i;
13901_ACEOF
13902if ac_fn_c_try_compile "$LINENO"; then :
13903  xorg_cv_cc_flag_unknown_warning_option=yes
13904else
13905  xorg_cv_cc_flag_unknown_warning_option=no
13906fi
13907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908fi
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13912	CFLAGS="$xorg_testset_save_CFLAGS"
13913fi
13914
13915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13918	fi
13919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13923  $as_echo_n "(cached) " >&6
13924else
13925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13926/* end confdefs.h.  */
13927int i;
13928_ACEOF
13929if ac_fn_c_try_compile "$LINENO"; then :
13930  xorg_cv_cc_flag_unused_command_line_argument=yes
13931else
13932  xorg_cv_cc_flag_unused_command_line_argument=no
13933fi
13934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935fi
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13939	CFLAGS="$xorg_testset_save_CFLAGS"
13940fi
13941
13942found="no"
13943
13944	if test $found = "no" ; then
13945		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13947		fi
13948
13949		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13951		fi
13952
13953		CFLAGS="$CFLAGS -Werror=nonnull"
13954
13955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13956$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13957		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
13958		if eval \${$cacheid+:} false; then :
13959  $as_echo_n "(cached) " >&6
13960else
13961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962/* end confdefs.h.  */
13963int i;
13964int
13965main ()
13966{
13967
13968  ;
13969  return 0;
13970}
13971_ACEOF
13972if ac_fn_c_try_link "$LINENO"; then :
13973  eval $cacheid=yes
13974else
13975  eval $cacheid=no
13976fi
13977rm -f core conftest.err conftest.$ac_objext \
13978    conftest$ac_exeext conftest.$ac_ext
13979fi
13980
13981
13982		CFLAGS="$xorg_testset_save_CFLAGS"
13983
13984		eval supported=\$$cacheid
13985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13986$as_echo "$supported" >&6; }
13987		if test "$supported" = "yes" ; then
13988			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13989			found="yes"
13990		fi
13991	fi
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007xorg_testset_save_CFLAGS="$CFLAGS"
14008
14009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14014  $as_echo_n "(cached) " >&6
14015else
14016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017/* end confdefs.h.  */
14018int i;
14019_ACEOF
14020if ac_fn_c_try_compile "$LINENO"; then :
14021  xorg_cv_cc_flag_unknown_warning_option=yes
14022else
14023  xorg_cv_cc_flag_unknown_warning_option=no
14024fi
14025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026fi
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14030	CFLAGS="$xorg_testset_save_CFLAGS"
14031fi
14032
14033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14036	fi
14037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14041  $as_echo_n "(cached) " >&6
14042else
14043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044/* end confdefs.h.  */
14045int i;
14046_ACEOF
14047if ac_fn_c_try_compile "$LINENO"; then :
14048  xorg_cv_cc_flag_unused_command_line_argument=yes
14049else
14050  xorg_cv_cc_flag_unused_command_line_argument=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053fi
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14056	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14057	CFLAGS="$xorg_testset_save_CFLAGS"
14058fi
14059
14060found="no"
14061
14062	if test $found = "no" ; then
14063		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14065		fi
14066
14067		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14069		fi
14070
14071		CFLAGS="$CFLAGS -Werror=init-self"
14072
14073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14074$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14075		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14076		if eval \${$cacheid+:} false; then :
14077  $as_echo_n "(cached) " >&6
14078else
14079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h.  */
14081int i;
14082int
14083main ()
14084{
14085
14086  ;
14087  return 0;
14088}
14089_ACEOF
14090if ac_fn_c_try_link "$LINENO"; then :
14091  eval $cacheid=yes
14092else
14093  eval $cacheid=no
14094fi
14095rm -f core conftest.err conftest.$ac_objext \
14096    conftest$ac_exeext conftest.$ac_ext
14097fi
14098
14099
14100		CFLAGS="$xorg_testset_save_CFLAGS"
14101
14102		eval supported=\$$cacheid
14103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14104$as_echo "$supported" >&6; }
14105		if test "$supported" = "yes" ; then
14106			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14107			found="yes"
14108		fi
14109	fi
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125xorg_testset_save_CFLAGS="$CFLAGS"
14126
14127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14132  $as_echo_n "(cached) " >&6
14133else
14134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135/* end confdefs.h.  */
14136int i;
14137_ACEOF
14138if ac_fn_c_try_compile "$LINENO"; then :
14139  xorg_cv_cc_flag_unknown_warning_option=yes
14140else
14141  xorg_cv_cc_flag_unknown_warning_option=no
14142fi
14143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144fi
14145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14148	CFLAGS="$xorg_testset_save_CFLAGS"
14149fi
14150
14151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14154	fi
14155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14159  $as_echo_n "(cached) " >&6
14160else
14161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162/* end confdefs.h.  */
14163int i;
14164_ACEOF
14165if ac_fn_c_try_compile "$LINENO"; then :
14166  xorg_cv_cc_flag_unused_command_line_argument=yes
14167else
14168  xorg_cv_cc_flag_unused_command_line_argument=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14175	CFLAGS="$xorg_testset_save_CFLAGS"
14176fi
14177
14178found="no"
14179
14180	if test $found = "no" ; then
14181		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14183		fi
14184
14185		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14187		fi
14188
14189		CFLAGS="$CFLAGS -Werror=main"
14190
14191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14192$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14193		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14194		if eval \${$cacheid+:} false; then :
14195  $as_echo_n "(cached) " >&6
14196else
14197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198/* end confdefs.h.  */
14199int i;
14200int
14201main ()
14202{
14203
14204  ;
14205  return 0;
14206}
14207_ACEOF
14208if ac_fn_c_try_link "$LINENO"; then :
14209  eval $cacheid=yes
14210else
14211  eval $cacheid=no
14212fi
14213rm -f core conftest.err conftest.$ac_objext \
14214    conftest$ac_exeext conftest.$ac_ext
14215fi
14216
14217
14218		CFLAGS="$xorg_testset_save_CFLAGS"
14219
14220		eval supported=\$$cacheid
14221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14222$as_echo "$supported" >&6; }
14223		if test "$supported" = "yes" ; then
14224			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14225			found="yes"
14226		fi
14227	fi
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243xorg_testset_save_CFLAGS="$CFLAGS"
14244
14245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14250  $as_echo_n "(cached) " >&6
14251else
14252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253/* end confdefs.h.  */
14254int i;
14255_ACEOF
14256if ac_fn_c_try_compile "$LINENO"; then :
14257  xorg_cv_cc_flag_unknown_warning_option=yes
14258else
14259  xorg_cv_cc_flag_unknown_warning_option=no
14260fi
14261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14262fi
14263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14266	CFLAGS="$xorg_testset_save_CFLAGS"
14267fi
14268
14269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14272	fi
14273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14277  $as_echo_n "(cached) " >&6
14278else
14279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h.  */
14281int i;
14282_ACEOF
14283if ac_fn_c_try_compile "$LINENO"; then :
14284  xorg_cv_cc_flag_unused_command_line_argument=yes
14285else
14286  xorg_cv_cc_flag_unused_command_line_argument=no
14287fi
14288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14293	CFLAGS="$xorg_testset_save_CFLAGS"
14294fi
14295
14296found="no"
14297
14298	if test $found = "no" ; then
14299		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14301		fi
14302
14303		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14305		fi
14306
14307		CFLAGS="$CFLAGS -Werror=missing-braces"
14308
14309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14310$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14311		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14312		if eval \${$cacheid+:} false; then :
14313  $as_echo_n "(cached) " >&6
14314else
14315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316/* end confdefs.h.  */
14317int i;
14318int
14319main ()
14320{
14321
14322  ;
14323  return 0;
14324}
14325_ACEOF
14326if ac_fn_c_try_link "$LINENO"; then :
14327  eval $cacheid=yes
14328else
14329  eval $cacheid=no
14330fi
14331rm -f core conftest.err conftest.$ac_objext \
14332    conftest$ac_exeext conftest.$ac_ext
14333fi
14334
14335
14336		CFLAGS="$xorg_testset_save_CFLAGS"
14337
14338		eval supported=\$$cacheid
14339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14340$as_echo "$supported" >&6; }
14341		if test "$supported" = "yes" ; then
14342			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14343			found="yes"
14344		fi
14345	fi
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361xorg_testset_save_CFLAGS="$CFLAGS"
14362
14363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14368  $as_echo_n "(cached) " >&6
14369else
14370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371/* end confdefs.h.  */
14372int i;
14373_ACEOF
14374if ac_fn_c_try_compile "$LINENO"; then :
14375  xorg_cv_cc_flag_unknown_warning_option=yes
14376else
14377  xorg_cv_cc_flag_unknown_warning_option=no
14378fi
14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380fi
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14384	CFLAGS="$xorg_testset_save_CFLAGS"
14385fi
14386
14387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14390	fi
14391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14395  $as_echo_n "(cached) " >&6
14396else
14397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398/* end confdefs.h.  */
14399int i;
14400_ACEOF
14401if ac_fn_c_try_compile "$LINENO"; then :
14402  xorg_cv_cc_flag_unused_command_line_argument=yes
14403else
14404  xorg_cv_cc_flag_unused_command_line_argument=no
14405fi
14406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407fi
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14411	CFLAGS="$xorg_testset_save_CFLAGS"
14412fi
14413
14414found="no"
14415
14416	if test $found = "no" ; then
14417		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419		fi
14420
14421		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14423		fi
14424
14425		CFLAGS="$CFLAGS -Werror=sequence-point"
14426
14427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14428$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14429		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14430		if eval \${$cacheid+:} false; then :
14431  $as_echo_n "(cached) " >&6
14432else
14433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434/* end confdefs.h.  */
14435int i;
14436int
14437main ()
14438{
14439
14440  ;
14441  return 0;
14442}
14443_ACEOF
14444if ac_fn_c_try_link "$LINENO"; then :
14445  eval $cacheid=yes
14446else
14447  eval $cacheid=no
14448fi
14449rm -f core conftest.err conftest.$ac_objext \
14450    conftest$ac_exeext conftest.$ac_ext
14451fi
14452
14453
14454		CFLAGS="$xorg_testset_save_CFLAGS"
14455
14456		eval supported=\$$cacheid
14457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14458$as_echo "$supported" >&6; }
14459		if test "$supported" = "yes" ; then
14460			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14461			found="yes"
14462		fi
14463	fi
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479xorg_testset_save_CFLAGS="$CFLAGS"
14480
14481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14486  $as_echo_n "(cached) " >&6
14487else
14488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489/* end confdefs.h.  */
14490int i;
14491_ACEOF
14492if ac_fn_c_try_compile "$LINENO"; then :
14493  xorg_cv_cc_flag_unknown_warning_option=yes
14494else
14495  xorg_cv_cc_flag_unknown_warning_option=no
14496fi
14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498fi
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14502	CFLAGS="$xorg_testset_save_CFLAGS"
14503fi
14504
14505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14508	fi
14509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14513  $as_echo_n "(cached) " >&6
14514else
14515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516/* end confdefs.h.  */
14517int i;
14518_ACEOF
14519if ac_fn_c_try_compile "$LINENO"; then :
14520  xorg_cv_cc_flag_unused_command_line_argument=yes
14521else
14522  xorg_cv_cc_flag_unused_command_line_argument=no
14523fi
14524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525fi
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14529	CFLAGS="$xorg_testset_save_CFLAGS"
14530fi
14531
14532found="no"
14533
14534	if test $found = "no" ; then
14535		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14537		fi
14538
14539		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14541		fi
14542
14543		CFLAGS="$CFLAGS -Werror=return-type"
14544
14545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14546$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14547		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14548		if eval \${$cacheid+:} false; then :
14549  $as_echo_n "(cached) " >&6
14550else
14551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552/* end confdefs.h.  */
14553int i;
14554int
14555main ()
14556{
14557
14558  ;
14559  return 0;
14560}
14561_ACEOF
14562if ac_fn_c_try_link "$LINENO"; then :
14563  eval $cacheid=yes
14564else
14565  eval $cacheid=no
14566fi
14567rm -f core conftest.err conftest.$ac_objext \
14568    conftest$ac_exeext conftest.$ac_ext
14569fi
14570
14571
14572		CFLAGS="$xorg_testset_save_CFLAGS"
14573
14574		eval supported=\$$cacheid
14575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14576$as_echo "$supported" >&6; }
14577		if test "$supported" = "yes" ; then
14578			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14579			found="yes"
14580		fi
14581	fi
14582
14583	if test $found = "no" ; then
14584		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14586		fi
14587
14588		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14590		fi
14591
14592		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14593
14594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14595$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14596		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14597		if eval \${$cacheid+:} false; then :
14598  $as_echo_n "(cached) " >&6
14599else
14600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601/* end confdefs.h.  */
14602int i;
14603int
14604main ()
14605{
14606
14607  ;
14608  return 0;
14609}
14610_ACEOF
14611if ac_fn_c_try_link "$LINENO"; then :
14612  eval $cacheid=yes
14613else
14614  eval $cacheid=no
14615fi
14616rm -f core conftest.err conftest.$ac_objext \
14617    conftest$ac_exeext conftest.$ac_ext
14618fi
14619
14620
14621		CFLAGS="$xorg_testset_save_CFLAGS"
14622
14623		eval supported=\$$cacheid
14624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14625$as_echo "$supported" >&6; }
14626		if test "$supported" = "yes" ; then
14627			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14628			found="yes"
14629		fi
14630	fi
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646xorg_testset_save_CFLAGS="$CFLAGS"
14647
14648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656/* end confdefs.h.  */
14657int i;
14658_ACEOF
14659if ac_fn_c_try_compile "$LINENO"; then :
14660  xorg_cv_cc_flag_unknown_warning_option=yes
14661else
14662  xorg_cv_cc_flag_unknown_warning_option=no
14663fi
14664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665fi
14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14669	CFLAGS="$xorg_testset_save_CFLAGS"
14670fi
14671
14672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14675	fi
14676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14680  $as_echo_n "(cached) " >&6
14681else
14682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683/* end confdefs.h.  */
14684int i;
14685_ACEOF
14686if ac_fn_c_try_compile "$LINENO"; then :
14687  xorg_cv_cc_flag_unused_command_line_argument=yes
14688else
14689  xorg_cv_cc_flag_unused_command_line_argument=no
14690fi
14691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692fi
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14696	CFLAGS="$xorg_testset_save_CFLAGS"
14697fi
14698
14699found="no"
14700
14701	if test $found = "no" ; then
14702		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14704		fi
14705
14706		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14708		fi
14709
14710		CFLAGS="$CFLAGS -Werror=trigraphs"
14711
14712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14713$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14714		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14715		if eval \${$cacheid+:} false; then :
14716  $as_echo_n "(cached) " >&6
14717else
14718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719/* end confdefs.h.  */
14720int i;
14721int
14722main ()
14723{
14724
14725  ;
14726  return 0;
14727}
14728_ACEOF
14729if ac_fn_c_try_link "$LINENO"; then :
14730  eval $cacheid=yes
14731else
14732  eval $cacheid=no
14733fi
14734rm -f core conftest.err conftest.$ac_objext \
14735    conftest$ac_exeext conftest.$ac_ext
14736fi
14737
14738
14739		CFLAGS="$xorg_testset_save_CFLAGS"
14740
14741		eval supported=\$$cacheid
14742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14743$as_echo "$supported" >&6; }
14744		if test "$supported" = "yes" ; then
14745			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14746			found="yes"
14747		fi
14748	fi
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764xorg_testset_save_CFLAGS="$CFLAGS"
14765
14766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14771  $as_echo_n "(cached) " >&6
14772else
14773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774/* end confdefs.h.  */
14775int i;
14776_ACEOF
14777if ac_fn_c_try_compile "$LINENO"; then :
14778  xorg_cv_cc_flag_unknown_warning_option=yes
14779else
14780  xorg_cv_cc_flag_unknown_warning_option=no
14781fi
14782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783fi
14784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14787	CFLAGS="$xorg_testset_save_CFLAGS"
14788fi
14789
14790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14793	fi
14794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14798  $as_echo_n "(cached) " >&6
14799else
14800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801/* end confdefs.h.  */
14802int i;
14803_ACEOF
14804if ac_fn_c_try_compile "$LINENO"; then :
14805  xorg_cv_cc_flag_unused_command_line_argument=yes
14806else
14807  xorg_cv_cc_flag_unused_command_line_argument=no
14808fi
14809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810fi
14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14814	CFLAGS="$xorg_testset_save_CFLAGS"
14815fi
14816
14817found="no"
14818
14819	if test $found = "no" ; then
14820		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14822		fi
14823
14824		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14826		fi
14827
14828		CFLAGS="$CFLAGS -Werror=array-bounds"
14829
14830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14831$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14832		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14833		if eval \${$cacheid+:} false; then :
14834  $as_echo_n "(cached) " >&6
14835else
14836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837/* end confdefs.h.  */
14838int i;
14839int
14840main ()
14841{
14842
14843  ;
14844  return 0;
14845}
14846_ACEOF
14847if ac_fn_c_try_link "$LINENO"; then :
14848  eval $cacheid=yes
14849else
14850  eval $cacheid=no
14851fi
14852rm -f core conftest.err conftest.$ac_objext \
14853    conftest$ac_exeext conftest.$ac_ext
14854fi
14855
14856
14857		CFLAGS="$xorg_testset_save_CFLAGS"
14858
14859		eval supported=\$$cacheid
14860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14861$as_echo "$supported" >&6; }
14862		if test "$supported" = "yes" ; then
14863			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14864			found="yes"
14865		fi
14866	fi
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882xorg_testset_save_CFLAGS="$CFLAGS"
14883
14884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14889  $as_echo_n "(cached) " >&6
14890else
14891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892/* end confdefs.h.  */
14893int i;
14894_ACEOF
14895if ac_fn_c_try_compile "$LINENO"; then :
14896  xorg_cv_cc_flag_unknown_warning_option=yes
14897else
14898  xorg_cv_cc_flag_unknown_warning_option=no
14899fi
14900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901fi
14902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14905	CFLAGS="$xorg_testset_save_CFLAGS"
14906fi
14907
14908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14911	fi
14912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14916  $as_echo_n "(cached) " >&6
14917else
14918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919/* end confdefs.h.  */
14920int i;
14921_ACEOF
14922if ac_fn_c_try_compile "$LINENO"; then :
14923  xorg_cv_cc_flag_unused_command_line_argument=yes
14924else
14925  xorg_cv_cc_flag_unused_command_line_argument=no
14926fi
14927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928fi
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14932	CFLAGS="$xorg_testset_save_CFLAGS"
14933fi
14934
14935found="no"
14936
14937	if test $found = "no" ; then
14938		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14940		fi
14941
14942		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14944		fi
14945
14946		CFLAGS="$CFLAGS -Werror=write-strings"
14947
14948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14949$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14950		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
14951		if eval \${$cacheid+:} false; then :
14952  $as_echo_n "(cached) " >&6
14953else
14954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955/* end confdefs.h.  */
14956int i;
14957int
14958main ()
14959{
14960
14961  ;
14962  return 0;
14963}
14964_ACEOF
14965if ac_fn_c_try_link "$LINENO"; then :
14966  eval $cacheid=yes
14967else
14968  eval $cacheid=no
14969fi
14970rm -f core conftest.err conftest.$ac_objext \
14971    conftest$ac_exeext conftest.$ac_ext
14972fi
14973
14974
14975		CFLAGS="$xorg_testset_save_CFLAGS"
14976
14977		eval supported=\$$cacheid
14978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14979$as_echo "$supported" >&6; }
14980		if test "$supported" = "yes" ; then
14981			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14982			found="yes"
14983		fi
14984	fi
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000xorg_testset_save_CFLAGS="$CFLAGS"
15001
15002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15007  $as_echo_n "(cached) " >&6
15008else
15009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010/* end confdefs.h.  */
15011int i;
15012_ACEOF
15013if ac_fn_c_try_compile "$LINENO"; then :
15014  xorg_cv_cc_flag_unknown_warning_option=yes
15015else
15016  xorg_cv_cc_flag_unknown_warning_option=no
15017fi
15018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019fi
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15023	CFLAGS="$xorg_testset_save_CFLAGS"
15024fi
15025
15026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15029	fi
15030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15034  $as_echo_n "(cached) " >&6
15035else
15036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037/* end confdefs.h.  */
15038int i;
15039_ACEOF
15040if ac_fn_c_try_compile "$LINENO"; then :
15041  xorg_cv_cc_flag_unused_command_line_argument=yes
15042else
15043  xorg_cv_cc_flag_unused_command_line_argument=no
15044fi
15045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046fi
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15050	CFLAGS="$xorg_testset_save_CFLAGS"
15051fi
15052
15053found="no"
15054
15055	if test $found = "no" ; then
15056		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15058		fi
15059
15060		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15062		fi
15063
15064		CFLAGS="$CFLAGS -Werror=address"
15065
15066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15067$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15068		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15069		if eval \${$cacheid+:} false; then :
15070  $as_echo_n "(cached) " >&6
15071else
15072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074int i;
15075int
15076main ()
15077{
15078
15079  ;
15080  return 0;
15081}
15082_ACEOF
15083if ac_fn_c_try_link "$LINENO"; then :
15084  eval $cacheid=yes
15085else
15086  eval $cacheid=no
15087fi
15088rm -f core conftest.err conftest.$ac_objext \
15089    conftest$ac_exeext conftest.$ac_ext
15090fi
15091
15092
15093		CFLAGS="$xorg_testset_save_CFLAGS"
15094
15095		eval supported=\$$cacheid
15096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15097$as_echo "$supported" >&6; }
15098		if test "$supported" = "yes" ; then
15099			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15100			found="yes"
15101		fi
15102	fi
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118xorg_testset_save_CFLAGS="$CFLAGS"
15119
15120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15125  $as_echo_n "(cached) " >&6
15126else
15127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15128/* end confdefs.h.  */
15129int i;
15130_ACEOF
15131if ac_fn_c_try_compile "$LINENO"; then :
15132  xorg_cv_cc_flag_unknown_warning_option=yes
15133else
15134  xorg_cv_cc_flag_unknown_warning_option=no
15135fi
15136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137fi
15138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15141	CFLAGS="$xorg_testset_save_CFLAGS"
15142fi
15143
15144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15147	fi
15148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15152  $as_echo_n "(cached) " >&6
15153else
15154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155/* end confdefs.h.  */
15156int i;
15157_ACEOF
15158if ac_fn_c_try_compile "$LINENO"; then :
15159  xorg_cv_cc_flag_unused_command_line_argument=yes
15160else
15161  xorg_cv_cc_flag_unused_command_line_argument=no
15162fi
15163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164fi
15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15168	CFLAGS="$xorg_testset_save_CFLAGS"
15169fi
15170
15171found="no"
15172
15173	if test $found = "no" ; then
15174		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15176		fi
15177
15178		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15180		fi
15181
15182		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15183
15184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15185$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15186		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15187		if eval \${$cacheid+:} false; then :
15188  $as_echo_n "(cached) " >&6
15189else
15190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191/* end confdefs.h.  */
15192int i;
15193int
15194main ()
15195{
15196
15197  ;
15198  return 0;
15199}
15200_ACEOF
15201if ac_fn_c_try_link "$LINENO"; then :
15202  eval $cacheid=yes
15203else
15204  eval $cacheid=no
15205fi
15206rm -f core conftest.err conftest.$ac_objext \
15207    conftest$ac_exeext conftest.$ac_ext
15208fi
15209
15210
15211		CFLAGS="$xorg_testset_save_CFLAGS"
15212
15213		eval supported=\$$cacheid
15214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15215$as_echo "$supported" >&6; }
15216		if test "$supported" = "yes" ; then
15217			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15218			found="yes"
15219		fi
15220	fi
15221
15222	if test $found = "no" ; then
15223		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15225		fi
15226
15227		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15229		fi
15230
15231		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15232
15233		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15234$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15235		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15236		if eval \${$cacheid+:} false; then :
15237  $as_echo_n "(cached) " >&6
15238else
15239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240/* end confdefs.h.  */
15241int i;
15242int
15243main ()
15244{
15245
15246  ;
15247  return 0;
15248}
15249_ACEOF
15250if ac_fn_c_try_link "$LINENO"; then :
15251  eval $cacheid=yes
15252else
15253  eval $cacheid=no
15254fi
15255rm -f core conftest.err conftest.$ac_objext \
15256    conftest$ac_exeext conftest.$ac_ext
15257fi
15258
15259
15260		CFLAGS="$xorg_testset_save_CFLAGS"
15261
15262		eval supported=\$$cacheid
15263		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15264$as_echo "$supported" >&6; }
15265		if test "$supported" = "yes" ; then
15266			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15267			found="yes"
15268		fi
15269	fi
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285xorg_testset_save_CFLAGS="$CFLAGS"
15286
15287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15292  $as_echo_n "(cached) " >&6
15293else
15294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295/* end confdefs.h.  */
15296int i;
15297_ACEOF
15298if ac_fn_c_try_compile "$LINENO"; then :
15299  xorg_cv_cc_flag_unknown_warning_option=yes
15300else
15301  xorg_cv_cc_flag_unknown_warning_option=no
15302fi
15303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15304fi
15305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15307	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15308	CFLAGS="$xorg_testset_save_CFLAGS"
15309fi
15310
15311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15312	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15313		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15314	fi
15315	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15319  $as_echo_n "(cached) " >&6
15320else
15321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322/* end confdefs.h.  */
15323int i;
15324_ACEOF
15325if ac_fn_c_try_compile "$LINENO"; then :
15326  xorg_cv_cc_flag_unused_command_line_argument=yes
15327else
15328  xorg_cv_cc_flag_unused_command_line_argument=no
15329fi
15330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331fi
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15334	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15335	CFLAGS="$xorg_testset_save_CFLAGS"
15336fi
15337
15338found="no"
15339
15340	if test $found = "no" ; then
15341		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15342			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15343		fi
15344
15345		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15346			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15347		fi
15348
15349		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15350
15351		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15352$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15353		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15354		if eval \${$cacheid+:} false; then :
15355  $as_echo_n "(cached) " >&6
15356else
15357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358/* end confdefs.h.  */
15359int i;
15360int
15361main ()
15362{
15363
15364  ;
15365  return 0;
15366}
15367_ACEOF
15368if ac_fn_c_try_link "$LINENO"; then :
15369  eval $cacheid=yes
15370else
15371  eval $cacheid=no
15372fi
15373rm -f core conftest.err conftest.$ac_objext \
15374    conftest$ac_exeext conftest.$ac_ext
15375fi
15376
15377
15378		CFLAGS="$xorg_testset_save_CFLAGS"
15379
15380		eval supported=\$$cacheid
15381		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15382$as_echo "$supported" >&6; }
15383		if test "$supported" = "yes" ; then
15384			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15385			found="yes"
15386		fi
15387	fi
15388
15389 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15390else
15391{ $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
15392$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;}
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406xorg_testset_save_CFLAGS="$CFLAGS"
15407
15408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15413  $as_echo_n "(cached) " >&6
15414else
15415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416/* end confdefs.h.  */
15417int i;
15418_ACEOF
15419if ac_fn_c_try_compile "$LINENO"; then :
15420  xorg_cv_cc_flag_unknown_warning_option=yes
15421else
15422  xorg_cv_cc_flag_unknown_warning_option=no
15423fi
15424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15425fi
15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15429	CFLAGS="$xorg_testset_save_CFLAGS"
15430fi
15431
15432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15435	fi
15436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15440  $as_echo_n "(cached) " >&6
15441else
15442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15443/* end confdefs.h.  */
15444int i;
15445_ACEOF
15446if ac_fn_c_try_compile "$LINENO"; then :
15447  xorg_cv_cc_flag_unused_command_line_argument=yes
15448else
15449  xorg_cv_cc_flag_unused_command_line_argument=no
15450fi
15451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452fi
15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15456	CFLAGS="$xorg_testset_save_CFLAGS"
15457fi
15458
15459found="no"
15460
15461	if test $found = "no" ; then
15462		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15464		fi
15465
15466		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15468		fi
15469
15470		CFLAGS="$CFLAGS -Wimplicit"
15471
15472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15473$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15474		cacheid=xorg_cv_cc_flag__Wimplicit
15475		if eval \${$cacheid+:} false; then :
15476  $as_echo_n "(cached) " >&6
15477else
15478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479/* end confdefs.h.  */
15480int i;
15481int
15482main ()
15483{
15484
15485  ;
15486  return 0;
15487}
15488_ACEOF
15489if ac_fn_c_try_link "$LINENO"; then :
15490  eval $cacheid=yes
15491else
15492  eval $cacheid=no
15493fi
15494rm -f core conftest.err conftest.$ac_objext \
15495    conftest$ac_exeext conftest.$ac_ext
15496fi
15497
15498
15499		CFLAGS="$xorg_testset_save_CFLAGS"
15500
15501		eval supported=\$$cacheid
15502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15503$as_echo "$supported" >&6; }
15504		if test "$supported" = "yes" ; then
15505			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15506			found="yes"
15507		fi
15508	fi
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524xorg_testset_save_CFLAGS="$CFLAGS"
15525
15526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15531  $as_echo_n "(cached) " >&6
15532else
15533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534/* end confdefs.h.  */
15535int i;
15536_ACEOF
15537if ac_fn_c_try_compile "$LINENO"; then :
15538  xorg_cv_cc_flag_unknown_warning_option=yes
15539else
15540  xorg_cv_cc_flag_unknown_warning_option=no
15541fi
15542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543fi
15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15547	CFLAGS="$xorg_testset_save_CFLAGS"
15548fi
15549
15550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15553	fi
15554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15558  $as_echo_n "(cached) " >&6
15559else
15560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561/* end confdefs.h.  */
15562int i;
15563_ACEOF
15564if ac_fn_c_try_compile "$LINENO"; then :
15565  xorg_cv_cc_flag_unused_command_line_argument=yes
15566else
15567  xorg_cv_cc_flag_unused_command_line_argument=no
15568fi
15569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570fi
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15574	CFLAGS="$xorg_testset_save_CFLAGS"
15575fi
15576
15577found="no"
15578
15579	if test $found = "no" ; then
15580		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15582		fi
15583
15584		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15586		fi
15587
15588		CFLAGS="$CFLAGS -Wnonnull"
15589
15590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15591$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15592		cacheid=xorg_cv_cc_flag__Wnonnull
15593		if eval \${$cacheid+:} false; then :
15594  $as_echo_n "(cached) " >&6
15595else
15596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597/* end confdefs.h.  */
15598int i;
15599int
15600main ()
15601{
15602
15603  ;
15604  return 0;
15605}
15606_ACEOF
15607if ac_fn_c_try_link "$LINENO"; then :
15608  eval $cacheid=yes
15609else
15610  eval $cacheid=no
15611fi
15612rm -f core conftest.err conftest.$ac_objext \
15613    conftest$ac_exeext conftest.$ac_ext
15614fi
15615
15616
15617		CFLAGS="$xorg_testset_save_CFLAGS"
15618
15619		eval supported=\$$cacheid
15620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15621$as_echo "$supported" >&6; }
15622		if test "$supported" = "yes" ; then
15623			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15624			found="yes"
15625		fi
15626	fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642xorg_testset_save_CFLAGS="$CFLAGS"
15643
15644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15649  $as_echo_n "(cached) " >&6
15650else
15651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652/* end confdefs.h.  */
15653int i;
15654_ACEOF
15655if ac_fn_c_try_compile "$LINENO"; then :
15656  xorg_cv_cc_flag_unknown_warning_option=yes
15657else
15658  xorg_cv_cc_flag_unknown_warning_option=no
15659fi
15660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15661fi
15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15665	CFLAGS="$xorg_testset_save_CFLAGS"
15666fi
15667
15668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15671	fi
15672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15676  $as_echo_n "(cached) " >&6
15677else
15678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679/* end confdefs.h.  */
15680int i;
15681_ACEOF
15682if ac_fn_c_try_compile "$LINENO"; then :
15683  xorg_cv_cc_flag_unused_command_line_argument=yes
15684else
15685  xorg_cv_cc_flag_unused_command_line_argument=no
15686fi
15687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688fi
15689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15692	CFLAGS="$xorg_testset_save_CFLAGS"
15693fi
15694
15695found="no"
15696
15697	if test $found = "no" ; then
15698		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700		fi
15701
15702		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15704		fi
15705
15706		CFLAGS="$CFLAGS -Winit-self"
15707
15708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15709$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15710		cacheid=xorg_cv_cc_flag__Winit_self
15711		if eval \${$cacheid+:} false; then :
15712  $as_echo_n "(cached) " >&6
15713else
15714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715/* end confdefs.h.  */
15716int i;
15717int
15718main ()
15719{
15720
15721  ;
15722  return 0;
15723}
15724_ACEOF
15725if ac_fn_c_try_link "$LINENO"; then :
15726  eval $cacheid=yes
15727else
15728  eval $cacheid=no
15729fi
15730rm -f core conftest.err conftest.$ac_objext \
15731    conftest$ac_exeext conftest.$ac_ext
15732fi
15733
15734
15735		CFLAGS="$xorg_testset_save_CFLAGS"
15736
15737		eval supported=\$$cacheid
15738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15739$as_echo "$supported" >&6; }
15740		if test "$supported" = "yes" ; then
15741			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15742			found="yes"
15743		fi
15744	fi
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760xorg_testset_save_CFLAGS="$CFLAGS"
15761
15762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15767  $as_echo_n "(cached) " >&6
15768else
15769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770/* end confdefs.h.  */
15771int i;
15772_ACEOF
15773if ac_fn_c_try_compile "$LINENO"; then :
15774  xorg_cv_cc_flag_unknown_warning_option=yes
15775else
15776  xorg_cv_cc_flag_unknown_warning_option=no
15777fi
15778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779fi
15780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15783	CFLAGS="$xorg_testset_save_CFLAGS"
15784fi
15785
15786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15789	fi
15790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15794  $as_echo_n "(cached) " >&6
15795else
15796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797/* end confdefs.h.  */
15798int i;
15799_ACEOF
15800if ac_fn_c_try_compile "$LINENO"; then :
15801  xorg_cv_cc_flag_unused_command_line_argument=yes
15802else
15803  xorg_cv_cc_flag_unused_command_line_argument=no
15804fi
15805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806fi
15807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15810	CFLAGS="$xorg_testset_save_CFLAGS"
15811fi
15812
15813found="no"
15814
15815	if test $found = "no" ; then
15816		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15818		fi
15819
15820		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15822		fi
15823
15824		CFLAGS="$CFLAGS -Wmain"
15825
15826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15827$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15828		cacheid=xorg_cv_cc_flag__Wmain
15829		if eval \${$cacheid+:} false; then :
15830  $as_echo_n "(cached) " >&6
15831else
15832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833/* end confdefs.h.  */
15834int i;
15835int
15836main ()
15837{
15838
15839  ;
15840  return 0;
15841}
15842_ACEOF
15843if ac_fn_c_try_link "$LINENO"; then :
15844  eval $cacheid=yes
15845else
15846  eval $cacheid=no
15847fi
15848rm -f core conftest.err conftest.$ac_objext \
15849    conftest$ac_exeext conftest.$ac_ext
15850fi
15851
15852
15853		CFLAGS="$xorg_testset_save_CFLAGS"
15854
15855		eval supported=\$$cacheid
15856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15857$as_echo "$supported" >&6; }
15858		if test "$supported" = "yes" ; then
15859			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15860			found="yes"
15861		fi
15862	fi
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878xorg_testset_save_CFLAGS="$CFLAGS"
15879
15880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15885  $as_echo_n "(cached) " >&6
15886else
15887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888/* end confdefs.h.  */
15889int i;
15890_ACEOF
15891if ac_fn_c_try_compile "$LINENO"; then :
15892  xorg_cv_cc_flag_unknown_warning_option=yes
15893else
15894  xorg_cv_cc_flag_unknown_warning_option=no
15895fi
15896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897fi
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15901	CFLAGS="$xorg_testset_save_CFLAGS"
15902fi
15903
15904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15907	fi
15908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15912  $as_echo_n "(cached) " >&6
15913else
15914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915/* end confdefs.h.  */
15916int i;
15917_ACEOF
15918if ac_fn_c_try_compile "$LINENO"; then :
15919  xorg_cv_cc_flag_unused_command_line_argument=yes
15920else
15921  xorg_cv_cc_flag_unused_command_line_argument=no
15922fi
15923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924fi
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15928	CFLAGS="$xorg_testset_save_CFLAGS"
15929fi
15930
15931found="no"
15932
15933	if test $found = "no" ; then
15934		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15936		fi
15937
15938		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15940		fi
15941
15942		CFLAGS="$CFLAGS -Wmissing-braces"
15943
15944		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15945$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15946		cacheid=xorg_cv_cc_flag__Wmissing_braces
15947		if eval \${$cacheid+:} false; then :
15948  $as_echo_n "(cached) " >&6
15949else
15950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951/* end confdefs.h.  */
15952int i;
15953int
15954main ()
15955{
15956
15957  ;
15958  return 0;
15959}
15960_ACEOF
15961if ac_fn_c_try_link "$LINENO"; then :
15962  eval $cacheid=yes
15963else
15964  eval $cacheid=no
15965fi
15966rm -f core conftest.err conftest.$ac_objext \
15967    conftest$ac_exeext conftest.$ac_ext
15968fi
15969
15970
15971		CFLAGS="$xorg_testset_save_CFLAGS"
15972
15973		eval supported=\$$cacheid
15974		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15975$as_echo "$supported" >&6; }
15976		if test "$supported" = "yes" ; then
15977			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15978			found="yes"
15979		fi
15980	fi
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996xorg_testset_save_CFLAGS="$CFLAGS"
15997
15998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16003  $as_echo_n "(cached) " >&6
16004else
16005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006/* end confdefs.h.  */
16007int i;
16008_ACEOF
16009if ac_fn_c_try_compile "$LINENO"; then :
16010  xorg_cv_cc_flag_unknown_warning_option=yes
16011else
16012  xorg_cv_cc_flag_unknown_warning_option=no
16013fi
16014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015fi
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16019	CFLAGS="$xorg_testset_save_CFLAGS"
16020fi
16021
16022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16025	fi
16026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16030  $as_echo_n "(cached) " >&6
16031else
16032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033/* end confdefs.h.  */
16034int i;
16035_ACEOF
16036if ac_fn_c_try_compile "$LINENO"; then :
16037  xorg_cv_cc_flag_unused_command_line_argument=yes
16038else
16039  xorg_cv_cc_flag_unused_command_line_argument=no
16040fi
16041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042fi
16043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16046	CFLAGS="$xorg_testset_save_CFLAGS"
16047fi
16048
16049found="no"
16050
16051	if test $found = "no" ; then
16052		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16054		fi
16055
16056		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16058		fi
16059
16060		CFLAGS="$CFLAGS -Wsequence-point"
16061
16062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16063$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16064		cacheid=xorg_cv_cc_flag__Wsequence_point
16065		if eval \${$cacheid+:} false; then :
16066  $as_echo_n "(cached) " >&6
16067else
16068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069/* end confdefs.h.  */
16070int i;
16071int
16072main ()
16073{
16074
16075  ;
16076  return 0;
16077}
16078_ACEOF
16079if ac_fn_c_try_link "$LINENO"; then :
16080  eval $cacheid=yes
16081else
16082  eval $cacheid=no
16083fi
16084rm -f core conftest.err conftest.$ac_objext \
16085    conftest$ac_exeext conftest.$ac_ext
16086fi
16087
16088
16089		CFLAGS="$xorg_testset_save_CFLAGS"
16090
16091		eval supported=\$$cacheid
16092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16093$as_echo "$supported" >&6; }
16094		if test "$supported" = "yes" ; then
16095			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16096			found="yes"
16097		fi
16098	fi
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114xorg_testset_save_CFLAGS="$CFLAGS"
16115
16116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16121  $as_echo_n "(cached) " >&6
16122else
16123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124/* end confdefs.h.  */
16125int i;
16126_ACEOF
16127if ac_fn_c_try_compile "$LINENO"; then :
16128  xorg_cv_cc_flag_unknown_warning_option=yes
16129else
16130  xorg_cv_cc_flag_unknown_warning_option=no
16131fi
16132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133fi
16134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16136	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16137	CFLAGS="$xorg_testset_save_CFLAGS"
16138fi
16139
16140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16141	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16142		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16143	fi
16144	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16148  $as_echo_n "(cached) " >&6
16149else
16150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151/* end confdefs.h.  */
16152int i;
16153_ACEOF
16154if ac_fn_c_try_compile "$LINENO"; then :
16155  xorg_cv_cc_flag_unused_command_line_argument=yes
16156else
16157  xorg_cv_cc_flag_unused_command_line_argument=no
16158fi
16159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16160fi
16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16163	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16164	CFLAGS="$xorg_testset_save_CFLAGS"
16165fi
16166
16167found="no"
16168
16169	if test $found = "no" ; then
16170		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16172		fi
16173
16174		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16176		fi
16177
16178		CFLAGS="$CFLAGS -Wreturn-type"
16179
16180		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16181$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16182		cacheid=xorg_cv_cc_flag__Wreturn_type
16183		if eval \${$cacheid+:} false; then :
16184  $as_echo_n "(cached) " >&6
16185else
16186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h.  */
16188int i;
16189int
16190main ()
16191{
16192
16193  ;
16194  return 0;
16195}
16196_ACEOF
16197if ac_fn_c_try_link "$LINENO"; then :
16198  eval $cacheid=yes
16199else
16200  eval $cacheid=no
16201fi
16202rm -f core conftest.err conftest.$ac_objext \
16203    conftest$ac_exeext conftest.$ac_ext
16204fi
16205
16206
16207		CFLAGS="$xorg_testset_save_CFLAGS"
16208
16209		eval supported=\$$cacheid
16210		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16211$as_echo "$supported" >&6; }
16212		if test "$supported" = "yes" ; then
16213			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16214			found="yes"
16215		fi
16216	fi
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232xorg_testset_save_CFLAGS="$CFLAGS"
16233
16234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16239  $as_echo_n "(cached) " >&6
16240else
16241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242/* end confdefs.h.  */
16243int i;
16244_ACEOF
16245if ac_fn_c_try_compile "$LINENO"; then :
16246  xorg_cv_cc_flag_unknown_warning_option=yes
16247else
16248  xorg_cv_cc_flag_unknown_warning_option=no
16249fi
16250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251fi
16252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16255	CFLAGS="$xorg_testset_save_CFLAGS"
16256fi
16257
16258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16261	fi
16262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16266  $as_echo_n "(cached) " >&6
16267else
16268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269/* end confdefs.h.  */
16270int i;
16271_ACEOF
16272if ac_fn_c_try_compile "$LINENO"; then :
16273  xorg_cv_cc_flag_unused_command_line_argument=yes
16274else
16275  xorg_cv_cc_flag_unused_command_line_argument=no
16276fi
16277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278fi
16279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16282	CFLAGS="$xorg_testset_save_CFLAGS"
16283fi
16284
16285found="no"
16286
16287	if test $found = "no" ; then
16288		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290		fi
16291
16292		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16294		fi
16295
16296		CFLAGS="$CFLAGS -Wtrigraphs"
16297
16298		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16299$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16300		cacheid=xorg_cv_cc_flag__Wtrigraphs
16301		if eval \${$cacheid+:} false; then :
16302  $as_echo_n "(cached) " >&6
16303else
16304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305/* end confdefs.h.  */
16306int i;
16307int
16308main ()
16309{
16310
16311  ;
16312  return 0;
16313}
16314_ACEOF
16315if ac_fn_c_try_link "$LINENO"; then :
16316  eval $cacheid=yes
16317else
16318  eval $cacheid=no
16319fi
16320rm -f core conftest.err conftest.$ac_objext \
16321    conftest$ac_exeext conftest.$ac_ext
16322fi
16323
16324
16325		CFLAGS="$xorg_testset_save_CFLAGS"
16326
16327		eval supported=\$$cacheid
16328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16329$as_echo "$supported" >&6; }
16330		if test "$supported" = "yes" ; then
16331			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16332			found="yes"
16333		fi
16334	fi
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350xorg_testset_save_CFLAGS="$CFLAGS"
16351
16352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16353	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16357  $as_echo_n "(cached) " >&6
16358else
16359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360/* end confdefs.h.  */
16361int i;
16362_ACEOF
16363if ac_fn_c_try_compile "$LINENO"; then :
16364  xorg_cv_cc_flag_unknown_warning_option=yes
16365else
16366  xorg_cv_cc_flag_unknown_warning_option=no
16367fi
16368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369fi
16370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16373	CFLAGS="$xorg_testset_save_CFLAGS"
16374fi
16375
16376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16379	fi
16380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16384  $as_echo_n "(cached) " >&6
16385else
16386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387/* end confdefs.h.  */
16388int i;
16389_ACEOF
16390if ac_fn_c_try_compile "$LINENO"; then :
16391  xorg_cv_cc_flag_unused_command_line_argument=yes
16392else
16393  xorg_cv_cc_flag_unused_command_line_argument=no
16394fi
16395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16396fi
16397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16400	CFLAGS="$xorg_testset_save_CFLAGS"
16401fi
16402
16403found="no"
16404
16405	if test $found = "no" ; then
16406		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16408		fi
16409
16410		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16412		fi
16413
16414		CFLAGS="$CFLAGS -Warray-bounds"
16415
16416		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16417$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16418		cacheid=xorg_cv_cc_flag__Warray_bounds
16419		if eval \${$cacheid+:} false; then :
16420  $as_echo_n "(cached) " >&6
16421else
16422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423/* end confdefs.h.  */
16424int i;
16425int
16426main ()
16427{
16428
16429  ;
16430  return 0;
16431}
16432_ACEOF
16433if ac_fn_c_try_link "$LINENO"; then :
16434  eval $cacheid=yes
16435else
16436  eval $cacheid=no
16437fi
16438rm -f core conftest.err conftest.$ac_objext \
16439    conftest$ac_exeext conftest.$ac_ext
16440fi
16441
16442
16443		CFLAGS="$xorg_testset_save_CFLAGS"
16444
16445		eval supported=\$$cacheid
16446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16447$as_echo "$supported" >&6; }
16448		if test "$supported" = "yes" ; then
16449			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16450			found="yes"
16451		fi
16452	fi
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468xorg_testset_save_CFLAGS="$CFLAGS"
16469
16470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16471	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16475  $as_echo_n "(cached) " >&6
16476else
16477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h.  */
16479int i;
16480_ACEOF
16481if ac_fn_c_try_compile "$LINENO"; then :
16482  xorg_cv_cc_flag_unknown_warning_option=yes
16483else
16484  xorg_cv_cc_flag_unknown_warning_option=no
16485fi
16486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487fi
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16491	CFLAGS="$xorg_testset_save_CFLAGS"
16492fi
16493
16494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16497	fi
16498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16502  $as_echo_n "(cached) " >&6
16503else
16504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505/* end confdefs.h.  */
16506int i;
16507_ACEOF
16508if ac_fn_c_try_compile "$LINENO"; then :
16509  xorg_cv_cc_flag_unused_command_line_argument=yes
16510else
16511  xorg_cv_cc_flag_unused_command_line_argument=no
16512fi
16513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514fi
16515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16518	CFLAGS="$xorg_testset_save_CFLAGS"
16519fi
16520
16521found="no"
16522
16523	if test $found = "no" ; then
16524		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16526		fi
16527
16528		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16530		fi
16531
16532		CFLAGS="$CFLAGS -Wwrite-strings"
16533
16534		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16535$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16536		cacheid=xorg_cv_cc_flag__Wwrite_strings
16537		if eval \${$cacheid+:} false; then :
16538  $as_echo_n "(cached) " >&6
16539else
16540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541/* end confdefs.h.  */
16542int i;
16543int
16544main ()
16545{
16546
16547  ;
16548  return 0;
16549}
16550_ACEOF
16551if ac_fn_c_try_link "$LINENO"; then :
16552  eval $cacheid=yes
16553else
16554  eval $cacheid=no
16555fi
16556rm -f core conftest.err conftest.$ac_objext \
16557    conftest$ac_exeext conftest.$ac_ext
16558fi
16559
16560
16561		CFLAGS="$xorg_testset_save_CFLAGS"
16562
16563		eval supported=\$$cacheid
16564		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16565$as_echo "$supported" >&6; }
16566		if test "$supported" = "yes" ; then
16567			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16568			found="yes"
16569		fi
16570	fi
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586xorg_testset_save_CFLAGS="$CFLAGS"
16587
16588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16593  $as_echo_n "(cached) " >&6
16594else
16595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596/* end confdefs.h.  */
16597int i;
16598_ACEOF
16599if ac_fn_c_try_compile "$LINENO"; then :
16600  xorg_cv_cc_flag_unknown_warning_option=yes
16601else
16602  xorg_cv_cc_flag_unknown_warning_option=no
16603fi
16604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605fi
16606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16609	CFLAGS="$xorg_testset_save_CFLAGS"
16610fi
16611
16612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16615	fi
16616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16620  $as_echo_n "(cached) " >&6
16621else
16622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623/* end confdefs.h.  */
16624int i;
16625_ACEOF
16626if ac_fn_c_try_compile "$LINENO"; then :
16627  xorg_cv_cc_flag_unused_command_line_argument=yes
16628else
16629  xorg_cv_cc_flag_unused_command_line_argument=no
16630fi
16631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16632fi
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16635	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16636	CFLAGS="$xorg_testset_save_CFLAGS"
16637fi
16638
16639found="no"
16640
16641	if test $found = "no" ; then
16642		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16644		fi
16645
16646		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16648		fi
16649
16650		CFLAGS="$CFLAGS -Waddress"
16651
16652		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16653$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16654		cacheid=xorg_cv_cc_flag__Waddress
16655		if eval \${$cacheid+:} false; then :
16656  $as_echo_n "(cached) " >&6
16657else
16658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16659/* end confdefs.h.  */
16660int i;
16661int
16662main ()
16663{
16664
16665  ;
16666  return 0;
16667}
16668_ACEOF
16669if ac_fn_c_try_link "$LINENO"; then :
16670  eval $cacheid=yes
16671else
16672  eval $cacheid=no
16673fi
16674rm -f core conftest.err conftest.$ac_objext \
16675    conftest$ac_exeext conftest.$ac_ext
16676fi
16677
16678
16679		CFLAGS="$xorg_testset_save_CFLAGS"
16680
16681		eval supported=\$$cacheid
16682		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16683$as_echo "$supported" >&6; }
16684		if test "$supported" = "yes" ; then
16685			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16686			found="yes"
16687		fi
16688	fi
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704xorg_testset_save_CFLAGS="$CFLAGS"
16705
16706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16711  $as_echo_n "(cached) " >&6
16712else
16713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714/* end confdefs.h.  */
16715int i;
16716_ACEOF
16717if ac_fn_c_try_compile "$LINENO"; then :
16718  xorg_cv_cc_flag_unknown_warning_option=yes
16719else
16720  xorg_cv_cc_flag_unknown_warning_option=no
16721fi
16722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723fi
16724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16727	CFLAGS="$xorg_testset_save_CFLAGS"
16728fi
16729
16730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16733	fi
16734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16738  $as_echo_n "(cached) " >&6
16739else
16740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h.  */
16742int i;
16743_ACEOF
16744if ac_fn_c_try_compile "$LINENO"; then :
16745  xorg_cv_cc_flag_unused_command_line_argument=yes
16746else
16747  xorg_cv_cc_flag_unused_command_line_argument=no
16748fi
16749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16750fi
16751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16754	CFLAGS="$xorg_testset_save_CFLAGS"
16755fi
16756
16757found="no"
16758
16759	if test $found = "no" ; then
16760		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16762		fi
16763
16764		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16766		fi
16767
16768		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16769
16770		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16771$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16772		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16773		if eval \${$cacheid+:} false; then :
16774  $as_echo_n "(cached) " >&6
16775else
16776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777/* end confdefs.h.  */
16778int i;
16779int
16780main ()
16781{
16782
16783  ;
16784  return 0;
16785}
16786_ACEOF
16787if ac_fn_c_try_link "$LINENO"; then :
16788  eval $cacheid=yes
16789else
16790  eval $cacheid=no
16791fi
16792rm -f core conftest.err conftest.$ac_objext \
16793    conftest$ac_exeext conftest.$ac_ext
16794fi
16795
16796
16797		CFLAGS="$xorg_testset_save_CFLAGS"
16798
16799		eval supported=\$$cacheid
16800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16801$as_echo "$supported" >&6; }
16802		if test "$supported" = "yes" ; then
16803			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16804			found="yes"
16805		fi
16806	fi
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822xorg_testset_save_CFLAGS="$CFLAGS"
16823
16824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16829  $as_echo_n "(cached) " >&6
16830else
16831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832/* end confdefs.h.  */
16833int i;
16834_ACEOF
16835if ac_fn_c_try_compile "$LINENO"; then :
16836  xorg_cv_cc_flag_unknown_warning_option=yes
16837else
16838  xorg_cv_cc_flag_unknown_warning_option=no
16839fi
16840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841fi
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16845	CFLAGS="$xorg_testset_save_CFLAGS"
16846fi
16847
16848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851	fi
16852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16856  $as_echo_n "(cached) " >&6
16857else
16858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859/* end confdefs.h.  */
16860int i;
16861_ACEOF
16862if ac_fn_c_try_compile "$LINENO"; then :
16863  xorg_cv_cc_flag_unused_command_line_argument=yes
16864else
16865  xorg_cv_cc_flag_unused_command_line_argument=no
16866fi
16867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16868fi
16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16872	CFLAGS="$xorg_testset_save_CFLAGS"
16873fi
16874
16875found="no"
16876
16877	if test $found = "no" ; then
16878		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16880		fi
16881
16882		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16884		fi
16885
16886		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16887
16888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16889$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16890		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16891		if eval \${$cacheid+:} false; then :
16892  $as_echo_n "(cached) " >&6
16893else
16894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895/* end confdefs.h.  */
16896int i;
16897int
16898main ()
16899{
16900
16901  ;
16902  return 0;
16903}
16904_ACEOF
16905if ac_fn_c_try_link "$LINENO"; then :
16906  eval $cacheid=yes
16907else
16908  eval $cacheid=no
16909fi
16910rm -f core conftest.err conftest.$ac_objext \
16911    conftest$ac_exeext conftest.$ac_ext
16912fi
16913
16914
16915		CFLAGS="$xorg_testset_save_CFLAGS"
16916
16917		eval supported=\$$cacheid
16918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16919$as_echo "$supported" >&6; }
16920		if test "$supported" = "yes" ; then
16921			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16922			found="yes"
16923		fi
16924	fi
16925
16926
16927fi
16928
16929
16930
16931
16932
16933
16934
16935		CWARNFLAGS="$BASE_CFLAGS"
16936		if  test "x$GCC" = xyes ; then
16937		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16938		fi
16939
16940
16941
16942
16943
16944
16945
16946
16947# Check whether --enable-strict-compilation was given.
16948if test "${enable_strict_compilation+set}" = set; then :
16949  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16950else
16951  STRICT_COMPILE=no
16952fi
16953
16954
16955
16956
16957
16958
16959STRICT_CFLAGS=""
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973xorg_testset_save_CFLAGS="$CFLAGS"
16974
16975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16980  $as_echo_n "(cached) " >&6
16981else
16982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h.  */
16984int i;
16985_ACEOF
16986if ac_fn_c_try_compile "$LINENO"; then :
16987  xorg_cv_cc_flag_unknown_warning_option=yes
16988else
16989  xorg_cv_cc_flag_unknown_warning_option=no
16990fi
16991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16996	CFLAGS="$xorg_testset_save_CFLAGS"
16997fi
16998
16999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17002	fi
17003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17007  $as_echo_n "(cached) " >&6
17008else
17009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010/* end confdefs.h.  */
17011int i;
17012_ACEOF
17013if ac_fn_c_try_compile "$LINENO"; then :
17014  xorg_cv_cc_flag_unused_command_line_argument=yes
17015else
17016  xorg_cv_cc_flag_unused_command_line_argument=no
17017fi
17018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17019fi
17020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17023	CFLAGS="$xorg_testset_save_CFLAGS"
17024fi
17025
17026found="no"
17027
17028	if test $found = "no" ; then
17029		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17031		fi
17032
17033		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17035		fi
17036
17037		CFLAGS="$CFLAGS -pedantic"
17038
17039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17040$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17041		cacheid=xorg_cv_cc_flag__pedantic
17042		if eval \${$cacheid+:} false; then :
17043  $as_echo_n "(cached) " >&6
17044else
17045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046/* end confdefs.h.  */
17047int i;
17048int
17049main ()
17050{
17051
17052  ;
17053  return 0;
17054}
17055_ACEOF
17056if ac_fn_c_try_link "$LINENO"; then :
17057  eval $cacheid=yes
17058else
17059  eval $cacheid=no
17060fi
17061rm -f core conftest.err conftest.$ac_objext \
17062    conftest$ac_exeext conftest.$ac_ext
17063fi
17064
17065
17066		CFLAGS="$xorg_testset_save_CFLAGS"
17067
17068		eval supported=\$$cacheid
17069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17070$as_echo "$supported" >&6; }
17071		if test "$supported" = "yes" ; then
17072			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17073			found="yes"
17074		fi
17075	fi
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091xorg_testset_save_CFLAGS="$CFLAGS"
17092
17093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17098  $as_echo_n "(cached) " >&6
17099else
17100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102int i;
17103_ACEOF
17104if ac_fn_c_try_compile "$LINENO"; then :
17105  xorg_cv_cc_flag_unknown_warning_option=yes
17106else
17107  xorg_cv_cc_flag_unknown_warning_option=no
17108fi
17109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110fi
17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17114	CFLAGS="$xorg_testset_save_CFLAGS"
17115fi
17116
17117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17120	fi
17121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17125  $as_echo_n "(cached) " >&6
17126else
17127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128/* end confdefs.h.  */
17129int i;
17130_ACEOF
17131if ac_fn_c_try_compile "$LINENO"; then :
17132  xorg_cv_cc_flag_unused_command_line_argument=yes
17133else
17134  xorg_cv_cc_flag_unused_command_line_argument=no
17135fi
17136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137fi
17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17141	CFLAGS="$xorg_testset_save_CFLAGS"
17142fi
17143
17144found="no"
17145
17146	if test $found = "no" ; then
17147		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17149		fi
17150
17151		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17153		fi
17154
17155		CFLAGS="$CFLAGS -Werror"
17156
17157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17158$as_echo_n "checking if $CC supports -Werror... " >&6; }
17159		cacheid=xorg_cv_cc_flag__Werror
17160		if eval \${$cacheid+:} false; then :
17161  $as_echo_n "(cached) " >&6
17162else
17163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164/* end confdefs.h.  */
17165int i;
17166int
17167main ()
17168{
17169
17170  ;
17171  return 0;
17172}
17173_ACEOF
17174if ac_fn_c_try_link "$LINENO"; then :
17175  eval $cacheid=yes
17176else
17177  eval $cacheid=no
17178fi
17179rm -f core conftest.err conftest.$ac_objext \
17180    conftest$ac_exeext conftest.$ac_ext
17181fi
17182
17183
17184		CFLAGS="$xorg_testset_save_CFLAGS"
17185
17186		eval supported=\$$cacheid
17187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17188$as_echo "$supported" >&6; }
17189		if test "$supported" = "yes" ; then
17190			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17191			found="yes"
17192		fi
17193	fi
17194
17195	if test $found = "no" ; then
17196		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17198		fi
17199
17200		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17202		fi
17203
17204		CFLAGS="$CFLAGS -errwarn"
17205
17206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17207$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17208		cacheid=xorg_cv_cc_flag__errwarn
17209		if eval \${$cacheid+:} false; then :
17210  $as_echo_n "(cached) " >&6
17211else
17212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213/* end confdefs.h.  */
17214int i;
17215int
17216main ()
17217{
17218
17219  ;
17220  return 0;
17221}
17222_ACEOF
17223if ac_fn_c_try_link "$LINENO"; then :
17224  eval $cacheid=yes
17225else
17226  eval $cacheid=no
17227fi
17228rm -f core conftest.err conftest.$ac_objext \
17229    conftest$ac_exeext conftest.$ac_ext
17230fi
17231
17232
17233		CFLAGS="$xorg_testset_save_CFLAGS"
17234
17235		eval supported=\$$cacheid
17236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17237$as_echo "$supported" >&6; }
17238		if test "$supported" = "yes" ; then
17239			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17240			found="yes"
17241		fi
17242	fi
17243
17244
17245
17246# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17247# activate it with -Werror, so we add it here explicitly.
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261xorg_testset_save_CFLAGS="$CFLAGS"
17262
17263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17264	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17268  $as_echo_n "(cached) " >&6
17269else
17270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271/* end confdefs.h.  */
17272int i;
17273_ACEOF
17274if ac_fn_c_try_compile "$LINENO"; then :
17275  xorg_cv_cc_flag_unknown_warning_option=yes
17276else
17277  xorg_cv_cc_flag_unknown_warning_option=no
17278fi
17279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280fi
17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17283	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17284	CFLAGS="$xorg_testset_save_CFLAGS"
17285fi
17286
17287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17288	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17289		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17290	fi
17291	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17295  $as_echo_n "(cached) " >&6
17296else
17297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17298/* end confdefs.h.  */
17299int i;
17300_ACEOF
17301if ac_fn_c_try_compile "$LINENO"; then :
17302  xorg_cv_cc_flag_unused_command_line_argument=yes
17303else
17304  xorg_cv_cc_flag_unused_command_line_argument=no
17305fi
17306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307fi
17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17311	CFLAGS="$xorg_testset_save_CFLAGS"
17312fi
17313
17314found="no"
17315
17316	if test $found = "no" ; then
17317		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17319		fi
17320
17321		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17323		fi
17324
17325		CFLAGS="$CFLAGS -Werror=attributes"
17326
17327		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17328$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17329		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17330		if eval \${$cacheid+:} false; then :
17331  $as_echo_n "(cached) " >&6
17332else
17333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334/* end confdefs.h.  */
17335int i;
17336int
17337main ()
17338{
17339
17340  ;
17341  return 0;
17342}
17343_ACEOF
17344if ac_fn_c_try_link "$LINENO"; then :
17345  eval $cacheid=yes
17346else
17347  eval $cacheid=no
17348fi
17349rm -f core conftest.err conftest.$ac_objext \
17350    conftest$ac_exeext conftest.$ac_ext
17351fi
17352
17353
17354		CFLAGS="$xorg_testset_save_CFLAGS"
17355
17356		eval supported=\$$cacheid
17357		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17358$as_echo "$supported" >&6; }
17359		if test "$supported" = "yes" ; then
17360			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17361			found="yes"
17362		fi
17363	fi
17364
17365
17366
17367if test "x$STRICT_COMPILE" = "xyes"; then
17368    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17369    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17370fi
17371
17372
17373
17374
17375
17376
17377cat >>confdefs.h <<_ACEOF
17378#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17379_ACEOF
17380
17381	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17382	if test "x$PVM" = "x"; then
17383		PVM="0"
17384	fi
17385
17386cat >>confdefs.h <<_ACEOF
17387#define PACKAGE_VERSION_MINOR $PVM
17388_ACEOF
17389
17390	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17391	if test "x$PVP" = "x"; then
17392		PVP="0"
17393	fi
17394
17395cat >>confdefs.h <<_ACEOF
17396#define PACKAGE_VERSION_PATCHLEVEL $PVP
17397_ACEOF
17398
17399
17400
17401CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17402mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17403|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17404echo 'git directory not found: installing possibly empty changelog.' >&2)"
17405
17406
17407
17408
17409macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17410INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17411mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17412|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17413echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17414
17415
17416
17417
17418
17419
17420if test x$APP_MAN_SUFFIX = x    ; then
17421    APP_MAN_SUFFIX=1
17422fi
17423if test x$APP_MAN_DIR = x    ; then
17424    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17425fi
17426
17427if test x$LIB_MAN_SUFFIX = x    ; then
17428    LIB_MAN_SUFFIX=3
17429fi
17430if test x$LIB_MAN_DIR = x    ; then
17431    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17432fi
17433
17434if test x$FILE_MAN_SUFFIX = x    ; then
17435    case $host_os in
17436	solaris*)	FILE_MAN_SUFFIX=4  ;;
17437	*)		FILE_MAN_SUFFIX=5  ;;
17438    esac
17439fi
17440if test x$FILE_MAN_DIR = x    ; then
17441    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17442fi
17443
17444if test x$MISC_MAN_SUFFIX = x    ; then
17445    case $host_os in
17446	solaris*)	MISC_MAN_SUFFIX=5  ;;
17447	*)		MISC_MAN_SUFFIX=7  ;;
17448    esac
17449fi
17450if test x$MISC_MAN_DIR = x    ; then
17451    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17452fi
17453
17454if test x$DRIVER_MAN_SUFFIX = x    ; then
17455    case $host_os in
17456	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17457	*)		DRIVER_MAN_SUFFIX=4  ;;
17458    esac
17459fi
17460if test x$DRIVER_MAN_DIR = x    ; then
17461    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17462fi
17463
17464if test x$ADMIN_MAN_SUFFIX = x    ; then
17465    case $host_os in
17466	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17467	*)		ADMIN_MAN_SUFFIX=8  ;;
17468    esac
17469fi
17470if test x$ADMIN_MAN_DIR = x    ; then
17471    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17472fi
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488XORG_MAN_PAGE="X Version 11"
17489
17490MAN_SUBSTS="\
17491	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17492	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17493	-e 's|__xservername__|Xorg|g' \
17494	-e 's|__xconfigfile__|xorg.conf|g' \
17495	-e 's|__projectroot__|\$(prefix)|g' \
17496	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17497	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17498	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17499	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17500	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17501	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17502	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17503
17504
17505
17506# Check whether --enable-silent-rules was given.
17507if test "${enable_silent_rules+set}" = set; then :
17508  enableval=$enable_silent_rules;
17509fi
17510
17511case $enable_silent_rules in
17512yes) AM_DEFAULT_VERBOSITY=0;;
17513no)  AM_DEFAULT_VERBOSITY=1;;
17514*)   AM_DEFAULT_VERBOSITY=0;;
17515esac
17516AM_BACKSLASH='\'
17517
17518
17519
17520# Check damageext configuration, strip extra digits from package version to
17521# find the required protocol version
17522DAMAGEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17523
17524
17525# Obtain compiler/linker options for depedencies
17526
17527pkg_failed=no
17528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDAMAGE" >&5
17529$as_echo_n "checking for XDAMAGE... " >&6; }
17530
17531if test -n "$XDAMAGE_CFLAGS"; then
17532    pkg_cv_XDAMAGE_CFLAGS="$XDAMAGE_CFLAGS"
17533 elif test -n "$PKG_CONFIG"; then
17534    if test -n "$PKG_CONFIG" && \
17535    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5
17536  ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5
17537  ac_status=$?
17538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17539  test $ac_status = 0; }; then
17540  pkg_cv_XDAMAGE_CFLAGS=`$PKG_CONFIG --cflags "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null`
17541else
17542  pkg_failed=yes
17543fi
17544 else
17545    pkg_failed=untried
17546fi
17547if test -n "$XDAMAGE_LIBS"; then
17548    pkg_cv_XDAMAGE_LIBS="$XDAMAGE_LIBS"
17549 elif test -n "$PKG_CONFIG"; then
17550    if test -n "$PKG_CONFIG" && \
17551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5
17552  ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5
17553  ac_status=$?
17554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17555  test $ac_status = 0; }; then
17556  pkg_cv_XDAMAGE_LIBS=`$PKG_CONFIG --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null`
17557else
17558  pkg_failed=yes
17559fi
17560 else
17561    pkg_failed=untried
17562fi
17563
17564
17565
17566if test $pkg_failed = yes; then
17567
17568if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17569        _pkg_short_errors_supported=yes
17570else
17571        _pkg_short_errors_supported=no
17572fi
17573        if test $_pkg_short_errors_supported = yes; then
17574	        XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1`
17575        else
17576	        XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1`
17577        fi
17578	# Put the nasty error message in config.log where it belongs
17579	echo "$XDAMAGE_PKG_ERRORS" >&5
17580
17581	as_fn_error $? "Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11) were not met:
17582
17583$XDAMAGE_PKG_ERRORS
17584
17585Consider adjusting the PKG_CONFIG_PATH environment variable if you
17586installed software in a non-standard prefix.
17587
17588Alternatively, you may set the environment variables XDAMAGE_CFLAGS
17589and XDAMAGE_LIBS to avoid the need to call pkg-config.
17590See the pkg-config man page for more details.
17591" "$LINENO" 5
17592elif test $pkg_failed = untried; then
17593	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17595as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17596is in your PATH or set the PKG_CONFIG environment variable to the full
17597path to pkg-config.
17598
17599Alternatively, you may set the environment variables XDAMAGE_CFLAGS
17600and XDAMAGE_LIBS to avoid the need to call pkg-config.
17601See the pkg-config man page for more details.
17602
17603To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17604See \`config.log' for more details" "$LINENO" 5; }
17605else
17606	XDAMAGE_CFLAGS=$pkg_cv_XDAMAGE_CFLAGS
17607	XDAMAGE_LIBS=$pkg_cv_XDAMAGE_LIBS
17608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17609$as_echo "yes" >&6; }
17610	:
17611fi
17612
17613ac_config_files="$ac_config_files Makefile src/Makefile xdamage.pc"
17614
17615cat >confcache <<\_ACEOF
17616# This file is a shell script that caches the results of configure
17617# tests run on this system so they can be shared between configure
17618# scripts and configure runs, see configure's option --config-cache.
17619# It is not useful on other systems.  If it contains results you don't
17620# want to keep, you may remove or edit it.
17621#
17622# config.status only pays attention to the cache file if you give it
17623# the --recheck option to rerun configure.
17624#
17625# `ac_cv_env_foo' variables (set or unset) will be overridden when
17626# loading this file, other *unset* `ac_cv_foo' will be assigned the
17627# following values.
17628
17629_ACEOF
17630
17631# The following way of writing the cache mishandles newlines in values,
17632# but we know of no workaround that is simple, portable, and efficient.
17633# So, we kill variables containing newlines.
17634# Ultrix sh set writes to stderr and can't be redirected directly,
17635# and sets the high bit in the cache file unless we assign to the vars.
17636(
17637  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17638    eval ac_val=\$$ac_var
17639    case $ac_val in #(
17640    *${as_nl}*)
17641      case $ac_var in #(
17642      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17643$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17644      esac
17645      case $ac_var in #(
17646      _ | IFS | as_nl) ;; #(
17647      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17648      *) { eval $ac_var=; unset $ac_var;} ;;
17649      esac ;;
17650    esac
17651  done
17652
17653  (set) 2>&1 |
17654    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17655    *${as_nl}ac_space=\ *)
17656      # `set' does not quote correctly, so add quotes: double-quote
17657      # substitution turns \\\\ into \\, and sed turns \\ into \.
17658      sed -n \
17659	"s/'/'\\\\''/g;
17660	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17661      ;; #(
17662    *)
17663      # `set' quotes correctly as required by POSIX, so do not add quotes.
17664      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17665      ;;
17666    esac |
17667    sort
17668) |
17669  sed '
17670     /^ac_cv_env_/b end
17671     t clear
17672     :clear
17673     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17674     t end
17675     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17676     :end' >>confcache
17677if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17678  if test -w "$cache_file"; then
17679    if test "x$cache_file" != "x/dev/null"; then
17680      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17681$as_echo "$as_me: updating cache $cache_file" >&6;}
17682      if test ! -f "$cache_file" || test -h "$cache_file"; then
17683	cat confcache >"$cache_file"
17684      else
17685        case $cache_file in #(
17686        */* | ?:*)
17687	  mv -f confcache "$cache_file"$$ &&
17688	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17689        *)
17690	  mv -f confcache "$cache_file" ;;
17691	esac
17692      fi
17693    fi
17694  else
17695    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17696$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17697  fi
17698fi
17699rm -f confcache
17700
17701test "x$prefix" = xNONE && prefix=$ac_default_prefix
17702# Let make expand exec_prefix.
17703test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17704
17705DEFS=-DHAVE_CONFIG_H
17706
17707ac_libobjs=
17708ac_ltlibobjs=
17709U=
17710for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17711  # 1. Remove the extension, and $U if already installed.
17712  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17713  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17714  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17715  #    will be set to the directory where LIBOBJS objects are built.
17716  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17717  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17718done
17719LIBOBJS=$ac_libobjs
17720
17721LTLIBOBJS=$ac_ltlibobjs
17722
17723
17724 if test -n "$EXEEXT"; then
17725  am__EXEEXT_TRUE=
17726  am__EXEEXT_FALSE='#'
17727else
17728  am__EXEEXT_TRUE='#'
17729  am__EXEEXT_FALSE=
17730fi
17731
17732if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17733  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17734Usually this means the macro was only invoked conditionally." "$LINENO" 5
17735fi
17736if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17737  as_fn_error $? "conditional \"AMDEP\" was never defined.
17738Usually this means the macro was only invoked conditionally." "$LINENO" 5
17739fi
17740if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17741  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17742Usually this means the macro was only invoked conditionally." "$LINENO" 5
17743fi
17744
17745: "${CONFIG_STATUS=./config.status}"
17746ac_write_fail=0
17747ac_clean_files_save=$ac_clean_files
17748ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17749{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17750$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17751as_write_fail=0
17752cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17753#! $SHELL
17754# Generated by $as_me.
17755# Run this file to recreate the current configuration.
17756# Compiler output produced by configure, useful for debugging
17757# configure, is in config.log if it exists.
17758
17759debug=false
17760ac_cs_recheck=false
17761ac_cs_silent=false
17762
17763SHELL=\${CONFIG_SHELL-$SHELL}
17764export SHELL
17765_ASEOF
17766cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17767## -------------------- ##
17768## M4sh Initialization. ##
17769## -------------------- ##
17770
17771# Be more Bourne compatible
17772DUALCASE=1; export DUALCASE # for MKS sh
17773if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17774  emulate sh
17775  NULLCMD=:
17776  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17777  # is contrary to our usage.  Disable this feature.
17778  alias -g '${1+"$@"}'='"$@"'
17779  setopt NO_GLOB_SUBST
17780else
17781  case `(set -o) 2>/dev/null` in #(
17782  *posix*) :
17783    set -o posix ;; #(
17784  *) :
17785     ;;
17786esac
17787fi
17788
17789
17790as_nl='
17791'
17792export as_nl
17793# Printing a long string crashes Solaris 7 /usr/bin/printf.
17794as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17795as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17796as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17797# Prefer a ksh shell builtin over an external printf program on Solaris,
17798# but without wasting forks for bash or zsh.
17799if test -z "$BASH_VERSION$ZSH_VERSION" \
17800    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17801  as_echo='print -r --'
17802  as_echo_n='print -rn --'
17803elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17804  as_echo='printf %s\n'
17805  as_echo_n='printf %s'
17806else
17807  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17808    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17809    as_echo_n='/usr/ucb/echo -n'
17810  else
17811    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17812    as_echo_n_body='eval
17813      arg=$1;
17814      case $arg in #(
17815      *"$as_nl"*)
17816	expr "X$arg" : "X\\(.*\\)$as_nl";
17817	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17818      esac;
17819      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17820    '
17821    export as_echo_n_body
17822    as_echo_n='sh -c $as_echo_n_body as_echo'
17823  fi
17824  export as_echo_body
17825  as_echo='sh -c $as_echo_body as_echo'
17826fi
17827
17828# The user is always right.
17829if test "${PATH_SEPARATOR+set}" != set; then
17830  PATH_SEPARATOR=:
17831  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17832    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17833      PATH_SEPARATOR=';'
17834  }
17835fi
17836
17837
17838# IFS
17839# We need space, tab and new line, in precisely that order.  Quoting is
17840# there to prevent editors from complaining about space-tab.
17841# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17842# splitting by setting IFS to empty value.)
17843IFS=" ""	$as_nl"
17844
17845# Find who we are.  Look in the path if we contain no directory separator.
17846as_myself=
17847case $0 in #((
17848  *[\\/]* ) as_myself=$0 ;;
17849  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17850for as_dir in $PATH
17851do
17852  IFS=$as_save_IFS
17853  test -z "$as_dir" && as_dir=.
17854    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17855  done
17856IFS=$as_save_IFS
17857
17858     ;;
17859esac
17860# We did not find ourselves, most probably we were run as `sh COMMAND'
17861# in which case we are not to be found in the path.
17862if test "x$as_myself" = x; then
17863  as_myself=$0
17864fi
17865if test ! -f "$as_myself"; then
17866  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17867  exit 1
17868fi
17869
17870# Unset variables that we do not need and which cause bugs (e.g. in
17871# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17872# suppresses any "Segmentation fault" message there.  '((' could
17873# trigger a bug in pdksh 5.2.14.
17874for as_var in BASH_ENV ENV MAIL MAILPATH
17875do eval test x\${$as_var+set} = xset \
17876  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17877done
17878PS1='$ '
17879PS2='> '
17880PS4='+ '
17881
17882# NLS nuisances.
17883LC_ALL=C
17884export LC_ALL
17885LANGUAGE=C
17886export LANGUAGE
17887
17888# CDPATH.
17889(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17890
17891
17892# as_fn_error STATUS ERROR [LINENO LOG_FD]
17893# ----------------------------------------
17894# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17895# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17896# script with STATUS, using 1 if that was 0.
17897as_fn_error ()
17898{
17899  as_status=$1; test $as_status -eq 0 && as_status=1
17900  if test "$4"; then
17901    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17902    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17903  fi
17904  $as_echo "$as_me: error: $2" >&2
17905  as_fn_exit $as_status
17906} # as_fn_error
17907
17908
17909# as_fn_set_status STATUS
17910# -----------------------
17911# Set $? to STATUS, without forking.
17912as_fn_set_status ()
17913{
17914  return $1
17915} # as_fn_set_status
17916
17917# as_fn_exit STATUS
17918# -----------------
17919# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17920as_fn_exit ()
17921{
17922  set +e
17923  as_fn_set_status $1
17924  exit $1
17925} # as_fn_exit
17926
17927# as_fn_unset VAR
17928# ---------------
17929# Portably unset VAR.
17930as_fn_unset ()
17931{
17932  { eval $1=; unset $1;}
17933}
17934as_unset=as_fn_unset
17935# as_fn_append VAR VALUE
17936# ----------------------
17937# Append the text in VALUE to the end of the definition contained in VAR. Take
17938# advantage of any shell optimizations that allow amortized linear growth over
17939# repeated appends, instead of the typical quadratic growth present in naive
17940# implementations.
17941if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17942  eval 'as_fn_append ()
17943  {
17944    eval $1+=\$2
17945  }'
17946else
17947  as_fn_append ()
17948  {
17949    eval $1=\$$1\$2
17950  }
17951fi # as_fn_append
17952
17953# as_fn_arith ARG...
17954# ------------------
17955# Perform arithmetic evaluation on the ARGs, and store the result in the
17956# global $as_val. Take advantage of shells that can avoid forks. The arguments
17957# must be portable across $(()) and expr.
17958if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17959  eval 'as_fn_arith ()
17960  {
17961    as_val=$(( $* ))
17962  }'
17963else
17964  as_fn_arith ()
17965  {
17966    as_val=`expr "$@" || test $? -eq 1`
17967  }
17968fi # as_fn_arith
17969
17970
17971if expr a : '\(a\)' >/dev/null 2>&1 &&
17972   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17973  as_expr=expr
17974else
17975  as_expr=false
17976fi
17977
17978if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17979  as_basename=basename
17980else
17981  as_basename=false
17982fi
17983
17984if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17985  as_dirname=dirname
17986else
17987  as_dirname=false
17988fi
17989
17990as_me=`$as_basename -- "$0" ||
17991$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17992	 X"$0" : 'X\(//\)$' \| \
17993	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17994$as_echo X/"$0" |
17995    sed '/^.*\/\([^/][^/]*\)\/*$/{
17996	    s//\1/
17997	    q
17998	  }
17999	  /^X\/\(\/\/\)$/{
18000	    s//\1/
18001	    q
18002	  }
18003	  /^X\/\(\/\).*/{
18004	    s//\1/
18005	    q
18006	  }
18007	  s/.*/./; q'`
18008
18009# Avoid depending upon Character Ranges.
18010as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18011as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18012as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18013as_cr_digits='0123456789'
18014as_cr_alnum=$as_cr_Letters$as_cr_digits
18015
18016ECHO_C= ECHO_N= ECHO_T=
18017case `echo -n x` in #(((((
18018-n*)
18019  case `echo 'xy\c'` in
18020  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18021  xy)  ECHO_C='\c';;
18022  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18023       ECHO_T='	';;
18024  esac;;
18025*)
18026  ECHO_N='-n';;
18027esac
18028
18029rm -f conf$$ conf$$.exe conf$$.file
18030if test -d conf$$.dir; then
18031  rm -f conf$$.dir/conf$$.file
18032else
18033  rm -f conf$$.dir
18034  mkdir conf$$.dir 2>/dev/null
18035fi
18036if (echo >conf$$.file) 2>/dev/null; then
18037  if ln -s conf$$.file conf$$ 2>/dev/null; then
18038    as_ln_s='ln -s'
18039    # ... but there are two gotchas:
18040    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18041    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18042    # In both cases, we have to default to `cp -p'.
18043    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18044      as_ln_s='cp -p'
18045  elif ln conf$$.file conf$$ 2>/dev/null; then
18046    as_ln_s=ln
18047  else
18048    as_ln_s='cp -p'
18049  fi
18050else
18051  as_ln_s='cp -p'
18052fi
18053rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18054rmdir conf$$.dir 2>/dev/null
18055
18056
18057# as_fn_mkdir_p
18058# -------------
18059# Create "$as_dir" as a directory, including parents if necessary.
18060as_fn_mkdir_p ()
18061{
18062
18063  case $as_dir in #(
18064  -*) as_dir=./$as_dir;;
18065  esac
18066  test -d "$as_dir" || eval $as_mkdir_p || {
18067    as_dirs=
18068    while :; do
18069      case $as_dir in #(
18070      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18071      *) as_qdir=$as_dir;;
18072      esac
18073      as_dirs="'$as_qdir' $as_dirs"
18074      as_dir=`$as_dirname -- "$as_dir" ||
18075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18076	 X"$as_dir" : 'X\(//\)[^/]' \| \
18077	 X"$as_dir" : 'X\(//\)$' \| \
18078	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18079$as_echo X"$as_dir" |
18080    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18081	    s//\1/
18082	    q
18083	  }
18084	  /^X\(\/\/\)[^/].*/{
18085	    s//\1/
18086	    q
18087	  }
18088	  /^X\(\/\/\)$/{
18089	    s//\1/
18090	    q
18091	  }
18092	  /^X\(\/\).*/{
18093	    s//\1/
18094	    q
18095	  }
18096	  s/.*/./; q'`
18097      test -d "$as_dir" && break
18098    done
18099    test -z "$as_dirs" || eval "mkdir $as_dirs"
18100  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18101
18102
18103} # as_fn_mkdir_p
18104if mkdir -p . 2>/dev/null; then
18105  as_mkdir_p='mkdir -p "$as_dir"'
18106else
18107  test -d ./-p && rmdir ./-p
18108  as_mkdir_p=false
18109fi
18110
18111if test -x / >/dev/null 2>&1; then
18112  as_test_x='test -x'
18113else
18114  if ls -dL / >/dev/null 2>&1; then
18115    as_ls_L_option=L
18116  else
18117    as_ls_L_option=
18118  fi
18119  as_test_x='
18120    eval sh -c '\''
18121      if test -d "$1"; then
18122	test -d "$1/.";
18123      else
18124	case $1 in #(
18125	-*)set "./$1";;
18126	esac;
18127	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18128	???[sx]*):;;*)false;;esac;fi
18129    '\'' sh
18130  '
18131fi
18132as_executable_p=$as_test_x
18133
18134# Sed expression to map a string onto a valid CPP name.
18135as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18136
18137# Sed expression to map a string onto a valid variable name.
18138as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18139
18140
18141exec 6>&1
18142## ----------------------------------- ##
18143## Main body of $CONFIG_STATUS script. ##
18144## ----------------------------------- ##
18145_ASEOF
18146test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18147
18148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18149# Save the log message, to keep $0 and so on meaningful, and to
18150# report actual input values of CONFIG_FILES etc. instead of their
18151# values after options handling.
18152ac_log="
18153This file was extended by libXdamage $as_me 1.1.4, which was
18154generated by GNU Autoconf 2.68.  Invocation command line was
18155
18156  CONFIG_FILES    = $CONFIG_FILES
18157  CONFIG_HEADERS  = $CONFIG_HEADERS
18158  CONFIG_LINKS    = $CONFIG_LINKS
18159  CONFIG_COMMANDS = $CONFIG_COMMANDS
18160  $ $0 $@
18161
18162on `(hostname || uname -n) 2>/dev/null | sed 1q`
18163"
18164
18165_ACEOF
18166
18167case $ac_config_files in *"
18168"*) set x $ac_config_files; shift; ac_config_files=$*;;
18169esac
18170
18171case $ac_config_headers in *"
18172"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18173esac
18174
18175
18176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18177# Files that config.status was made for.
18178config_files="$ac_config_files"
18179config_headers="$ac_config_headers"
18180config_commands="$ac_config_commands"
18181
18182_ACEOF
18183
18184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18185ac_cs_usage="\
18186\`$as_me' instantiates files and other configuration actions
18187from templates according to the current configuration.  Unless the files
18188and actions are specified as TAGs, all are instantiated by default.
18189
18190Usage: $0 [OPTION]... [TAG]...
18191
18192  -h, --help       print this help, then exit
18193  -V, --version    print version number and configuration settings, then exit
18194      --config     print configuration, then exit
18195  -q, --quiet, --silent
18196                   do not print progress messages
18197  -d, --debug      don't remove temporary files
18198      --recheck    update $as_me by reconfiguring in the same conditions
18199      --file=FILE[:TEMPLATE]
18200                   instantiate the configuration file FILE
18201      --header=FILE[:TEMPLATE]
18202                   instantiate the configuration header FILE
18203
18204Configuration files:
18205$config_files
18206
18207Configuration headers:
18208$config_headers
18209
18210Configuration commands:
18211$config_commands
18212
18213Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18214
18215_ACEOF
18216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18217ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18218ac_cs_version="\\
18219libXdamage config.status 1.1.4
18220configured by $0, generated by GNU Autoconf 2.68,
18221  with options \\"\$ac_cs_config\\"
18222
18223Copyright (C) 2010 Free Software Foundation, Inc.
18224This config.status script is free software; the Free Software Foundation
18225gives unlimited permission to copy, distribute and modify it."
18226
18227ac_pwd='$ac_pwd'
18228srcdir='$srcdir'
18229INSTALL='$INSTALL'
18230MKDIR_P='$MKDIR_P'
18231AWK='$AWK'
18232test -n "\$AWK" || AWK=awk
18233_ACEOF
18234
18235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18236# The default lists apply if the user does not specify any file.
18237ac_need_defaults=:
18238while test $# != 0
18239do
18240  case $1 in
18241  --*=?*)
18242    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18243    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18244    ac_shift=:
18245    ;;
18246  --*=)
18247    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18248    ac_optarg=
18249    ac_shift=:
18250    ;;
18251  *)
18252    ac_option=$1
18253    ac_optarg=$2
18254    ac_shift=shift
18255    ;;
18256  esac
18257
18258  case $ac_option in
18259  # Handling of the options.
18260  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18261    ac_cs_recheck=: ;;
18262  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18263    $as_echo "$ac_cs_version"; exit ;;
18264  --config | --confi | --conf | --con | --co | --c )
18265    $as_echo "$ac_cs_config"; exit ;;
18266  --debug | --debu | --deb | --de | --d | -d )
18267    debug=: ;;
18268  --file | --fil | --fi | --f )
18269    $ac_shift
18270    case $ac_optarg in
18271    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18272    '') as_fn_error $? "missing file argument" ;;
18273    esac
18274    as_fn_append CONFIG_FILES " '$ac_optarg'"
18275    ac_need_defaults=false;;
18276  --header | --heade | --head | --hea )
18277    $ac_shift
18278    case $ac_optarg in
18279    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18280    esac
18281    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18282    ac_need_defaults=false;;
18283  --he | --h)
18284    # Conflict between --help and --header
18285    as_fn_error $? "ambiguous option: \`$1'
18286Try \`$0 --help' for more information.";;
18287  --help | --hel | -h )
18288    $as_echo "$ac_cs_usage"; exit ;;
18289  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18290  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18291    ac_cs_silent=: ;;
18292
18293  # This is an error.
18294  -*) as_fn_error $? "unrecognized option: \`$1'
18295Try \`$0 --help' for more information." ;;
18296
18297  *) as_fn_append ac_config_targets " $1"
18298     ac_need_defaults=false ;;
18299
18300  esac
18301  shift
18302done
18303
18304ac_configure_extra_args=
18305
18306if $ac_cs_silent; then
18307  exec 6>/dev/null
18308  ac_configure_extra_args="$ac_configure_extra_args --silent"
18309fi
18310
18311_ACEOF
18312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18313if \$ac_cs_recheck; then
18314  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18315  shift
18316  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18317  CONFIG_SHELL='$SHELL'
18318  export CONFIG_SHELL
18319  exec "\$@"
18320fi
18321
18322_ACEOF
18323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18324exec 5>>config.log
18325{
18326  echo
18327  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18328## Running $as_me. ##
18329_ASBOX
18330  $as_echo "$ac_log"
18331} >&5
18332
18333_ACEOF
18334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18335#
18336# INIT-COMMANDS
18337#
18338AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18339
18340
18341# The HP-UX ksh and POSIX shell print the target directory to stdout
18342# if CDPATH is set.
18343(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18344
18345sed_quote_subst='$sed_quote_subst'
18346double_quote_subst='$double_quote_subst'
18347delay_variable_subst='$delay_variable_subst'
18348macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18349macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18350enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18351enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18352pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18353enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18354SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18355ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18356PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18357host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18358host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18359host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18360build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18361build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18362build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18363SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18364Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18365GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18366EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18367FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18368LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18369NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18370LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18371max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18372ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18373exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18374lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18375lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18376lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18377lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18378lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18379reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18380reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18381OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18382deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18383file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18384file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18385want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18386DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18387sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18388AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18389AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18390archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18391STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18392RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18393old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18394old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18395old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18396lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18397CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18398CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18399compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18400GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18401lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18402lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18403lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18404lt_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"`'
18405nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18406lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18407objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18408MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18409lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18410lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18411lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18412lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18413lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18414need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18415MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18416DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18417NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18418LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18419OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18420OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18421libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18422shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18423extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18424archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18425enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18426export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18427whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18428compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18429old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18430old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18431archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18432archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18433module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18434module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18435with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18436allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18437no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18438hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18439hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18440hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18441hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18442hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18443hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18444hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18445inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18446link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18447always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18448export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18449exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18450include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18451prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18452postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18453file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18454variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18455need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18456need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18457version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18458runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18459shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18460shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18461libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18462library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18463soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18464install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18465postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18466postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18467finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18468finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18469hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18470sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18471sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18472hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18473enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18474enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18475enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18476old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18477striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18478
18479LTCC='$LTCC'
18480LTCFLAGS='$LTCFLAGS'
18481compiler='$compiler_DEFAULT'
18482
18483# A function that is used when there is no print builtin or printf.
18484func_fallback_echo ()
18485{
18486  eval 'cat <<_LTECHO_EOF
18487\$1
18488_LTECHO_EOF'
18489}
18490
18491# Quote evaled strings.
18492for var in SHELL \
18493ECHO \
18494PATH_SEPARATOR \
18495SED \
18496GREP \
18497EGREP \
18498FGREP \
18499LD \
18500NM \
18501LN_S \
18502lt_SP2NL \
18503lt_NL2SP \
18504reload_flag \
18505OBJDUMP \
18506deplibs_check_method \
18507file_magic_cmd \
18508file_magic_glob \
18509want_nocaseglob \
18510DLLTOOL \
18511sharedlib_from_linklib_cmd \
18512AR \
18513AR_FLAGS \
18514archiver_list_spec \
18515STRIP \
18516RANLIB \
18517CC \
18518CFLAGS \
18519compiler \
18520lt_cv_sys_global_symbol_pipe \
18521lt_cv_sys_global_symbol_to_cdecl \
18522lt_cv_sys_global_symbol_to_c_name_address \
18523lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18524nm_file_list_spec \
18525lt_prog_compiler_no_builtin_flag \
18526lt_prog_compiler_pic \
18527lt_prog_compiler_wl \
18528lt_prog_compiler_static \
18529lt_cv_prog_compiler_c_o \
18530need_locks \
18531MANIFEST_TOOL \
18532DSYMUTIL \
18533NMEDIT \
18534LIPO \
18535OTOOL \
18536OTOOL64 \
18537shrext_cmds \
18538export_dynamic_flag_spec \
18539whole_archive_flag_spec \
18540compiler_needs_object \
18541with_gnu_ld \
18542allow_undefined_flag \
18543no_undefined_flag \
18544hardcode_libdir_flag_spec \
18545hardcode_libdir_separator \
18546exclude_expsyms \
18547include_expsyms \
18548file_list_spec \
18549variables_saved_for_relink \
18550libname_spec \
18551library_names_spec \
18552soname_spec \
18553install_override_mode \
18554finish_eval \
18555old_striplib \
18556striplib; do
18557    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18558    *[\\\\\\\`\\"\\\$]*)
18559      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18560      ;;
18561    *)
18562      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18563      ;;
18564    esac
18565done
18566
18567# Double-quote double-evaled strings.
18568for var in reload_cmds \
18569old_postinstall_cmds \
18570old_postuninstall_cmds \
18571old_archive_cmds \
18572extract_expsyms_cmds \
18573old_archive_from_new_cmds \
18574old_archive_from_expsyms_cmds \
18575archive_cmds \
18576archive_expsym_cmds \
18577module_cmds \
18578module_expsym_cmds \
18579export_symbols_cmds \
18580prelink_cmds \
18581postlink_cmds \
18582postinstall_cmds \
18583postuninstall_cmds \
18584finish_cmds \
18585sys_lib_search_path_spec \
18586sys_lib_dlsearch_path_spec; do
18587    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18588    *[\\\\\\\`\\"\\\$]*)
18589      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18590      ;;
18591    *)
18592      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18593      ;;
18594    esac
18595done
18596
18597ac_aux_dir='$ac_aux_dir'
18598xsi_shell='$xsi_shell'
18599lt_shell_append='$lt_shell_append'
18600
18601# See if we are running on zsh, and set the options which allow our
18602# commands through without removal of \ escapes INIT.
18603if test -n "\${ZSH_VERSION+set}" ; then
18604   setopt NO_GLOB_SUBST
18605fi
18606
18607
18608    PACKAGE='$PACKAGE'
18609    VERSION='$VERSION'
18610    TIMESTAMP='$TIMESTAMP'
18611    RM='$RM'
18612    ofile='$ofile'
18613
18614
18615
18616
18617_ACEOF
18618
18619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18620
18621# Handling of arguments.
18622for ac_config_target in $ac_config_targets
18623do
18624  case $ac_config_target in
18625    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18626    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18627    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18628    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18629    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18630    "xdamage.pc") CONFIG_FILES="$CONFIG_FILES xdamage.pc" ;;
18631
18632  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18633  esac
18634done
18635
18636
18637# If the user did not use the arguments to specify the items to instantiate,
18638# then the envvar interface is used.  Set only those that are not.
18639# We use the long form for the default assignment because of an extremely
18640# bizarre bug on SunOS 4.1.3.
18641if $ac_need_defaults; then
18642  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18643  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18644  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18645fi
18646
18647# Have a temporary directory for convenience.  Make it in the build tree
18648# simply because there is no reason against having it here, and in addition,
18649# creating and moving files from /tmp can sometimes cause problems.
18650# Hook for its removal unless debugging.
18651# Note that there is a small window in which the directory will not be cleaned:
18652# after its creation but before its name has been assigned to `$tmp'.
18653$debug ||
18654{
18655  tmp= ac_tmp=
18656  trap 'exit_status=$?
18657  : "${ac_tmp:=$tmp}"
18658  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18659' 0
18660  trap 'as_fn_exit 1' 1 2 13 15
18661}
18662# Create a (secure) tmp directory for tmp files.
18663
18664{
18665  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18666  test -d "$tmp"
18667}  ||
18668{
18669  tmp=./conf$$-$RANDOM
18670  (umask 077 && mkdir "$tmp")
18671} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18672ac_tmp=$tmp
18673
18674# Set up the scripts for CONFIG_FILES section.
18675# No need to generate them if there are no CONFIG_FILES.
18676# This happens for instance with `./config.status config.h'.
18677if test -n "$CONFIG_FILES"; then
18678
18679
18680ac_cr=`echo X | tr X '\015'`
18681# On cygwin, bash can eat \r inside `` if the user requested igncr.
18682# But we know of no other shell where ac_cr would be empty at this
18683# point, so we can use a bashism as a fallback.
18684if test "x$ac_cr" = x; then
18685  eval ac_cr=\$\'\\r\'
18686fi
18687ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18688if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18689  ac_cs_awk_cr='\\r'
18690else
18691  ac_cs_awk_cr=$ac_cr
18692fi
18693
18694echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18695_ACEOF
18696
18697
18698{
18699  echo "cat >conf$$subs.awk <<_ACEOF" &&
18700  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18701  echo "_ACEOF"
18702} >conf$$subs.sh ||
18703  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18704ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18705ac_delim='%!_!# '
18706for ac_last_try in false false false false false :; do
18707  . ./conf$$subs.sh ||
18708    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18709
18710  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18711  if test $ac_delim_n = $ac_delim_num; then
18712    break
18713  elif $ac_last_try; then
18714    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18715  else
18716    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18717  fi
18718done
18719rm -f conf$$subs.sh
18720
18721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18722cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18723_ACEOF
18724sed -n '
18725h
18726s/^/S["/; s/!.*/"]=/
18727p
18728g
18729s/^[^!]*!//
18730:repl
18731t repl
18732s/'"$ac_delim"'$//
18733t delim
18734:nl
18735h
18736s/\(.\{148\}\)..*/\1/
18737t more1
18738s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18739p
18740n
18741b repl
18742:more1
18743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18744p
18745g
18746s/.\{148\}//
18747t nl
18748:delim
18749h
18750s/\(.\{148\}\)..*/\1/
18751t more2
18752s/["\\]/\\&/g; s/^/"/; s/$/"/
18753p
18754b
18755:more2
18756s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18757p
18758g
18759s/.\{148\}//
18760t delim
18761' <conf$$subs.awk | sed '
18762/^[^""]/{
18763  N
18764  s/\n//
18765}
18766' >>$CONFIG_STATUS || ac_write_fail=1
18767rm -f conf$$subs.awk
18768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18769_ACAWK
18770cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18771  for (key in S) S_is_set[key] = 1
18772  FS = ""
18773
18774}
18775{
18776  line = $ 0
18777  nfields = split(line, field, "@")
18778  substed = 0
18779  len = length(field[1])
18780  for (i = 2; i < nfields; i++) {
18781    key = field[i]
18782    keylen = length(key)
18783    if (S_is_set[key]) {
18784      value = S[key]
18785      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18786      len += length(value) + length(field[++i])
18787      substed = 1
18788    } else
18789      len += 1 + keylen
18790  }
18791
18792  print line
18793}
18794
18795_ACAWK
18796_ACEOF
18797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18798if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18799  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18800else
18801  cat
18802fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18803  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18804_ACEOF
18805
18806# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18807# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18808# trailing colons and then remove the whole line if VPATH becomes empty
18809# (actually we leave an empty line to preserve line numbers).
18810if test "x$srcdir" = x.; then
18811  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18812h
18813s///
18814s/^/:/
18815s/[	 ]*$/:/
18816s/:\$(srcdir):/:/g
18817s/:\${srcdir}:/:/g
18818s/:@srcdir@:/:/g
18819s/^:*//
18820s/:*$//
18821x
18822s/\(=[	 ]*\).*/\1/
18823G
18824s/\n//
18825s/^[^=]*=[	 ]*$//
18826}'
18827fi
18828
18829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18830fi # test -n "$CONFIG_FILES"
18831
18832# Set up the scripts for CONFIG_HEADERS section.
18833# No need to generate them if there are no CONFIG_HEADERS.
18834# This happens for instance with `./config.status Makefile'.
18835if test -n "$CONFIG_HEADERS"; then
18836cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18837BEGIN {
18838_ACEOF
18839
18840# Transform confdefs.h into an awk script `defines.awk', embedded as
18841# here-document in config.status, that substitutes the proper values into
18842# config.h.in to produce config.h.
18843
18844# Create a delimiter string that does not exist in confdefs.h, to ease
18845# handling of long lines.
18846ac_delim='%!_!# '
18847for ac_last_try in false false :; do
18848  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18849  if test -z "$ac_tt"; then
18850    break
18851  elif $ac_last_try; then
18852    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18853  else
18854    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18855  fi
18856done
18857
18858# For the awk script, D is an array of macro values keyed by name,
18859# likewise P contains macro parameters if any.  Preserve backslash
18860# newline sequences.
18861
18862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18863sed -n '
18864s/.\{148\}/&'"$ac_delim"'/g
18865t rset
18866:rset
18867s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18868t def
18869d
18870:def
18871s/\\$//
18872t bsnl
18873s/["\\]/\\&/g
18874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18875D["\1"]=" \3"/p
18876s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18877d
18878:bsnl
18879s/["\\]/\\&/g
18880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18881D["\1"]=" \3\\\\\\n"\\/p
18882t cont
18883s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18884t cont
18885d
18886:cont
18887n
18888s/.\{148\}/&'"$ac_delim"'/g
18889t clear
18890:clear
18891s/\\$//
18892t bsnlc
18893s/["\\]/\\&/g; s/^/"/; s/$/"/p
18894d
18895:bsnlc
18896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18897b cont
18898' <confdefs.h | sed '
18899s/'"$ac_delim"'/"\\\
18900"/g' >>$CONFIG_STATUS || ac_write_fail=1
18901
18902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903  for (key in D) D_is_set[key] = 1
18904  FS = ""
18905}
18906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18907  line = \$ 0
18908  split(line, arg, " ")
18909  if (arg[1] == "#") {
18910    defundef = arg[2]
18911    mac1 = arg[3]
18912  } else {
18913    defundef = substr(arg[1], 2)
18914    mac1 = arg[2]
18915  }
18916  split(mac1, mac2, "(") #)
18917  macro = mac2[1]
18918  prefix = substr(line, 1, index(line, defundef) - 1)
18919  if (D_is_set[macro]) {
18920    # Preserve the white space surrounding the "#".
18921    print prefix "define", macro P[macro] D[macro]
18922    next
18923  } else {
18924    # Replace #undef with comments.  This is necessary, for example,
18925    # in the case of _POSIX_SOURCE, which is predefined and required
18926    # on some systems where configure will not decide to define it.
18927    if (defundef == "undef") {
18928      print "/*", prefix defundef, macro, "*/"
18929      next
18930    }
18931  }
18932}
18933{ print }
18934_ACAWK
18935_ACEOF
18936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18938fi # test -n "$CONFIG_HEADERS"
18939
18940
18941eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18942shift
18943for ac_tag
18944do
18945  case $ac_tag in
18946  :[FHLC]) ac_mode=$ac_tag; continue;;
18947  esac
18948  case $ac_mode$ac_tag in
18949  :[FHL]*:*);;
18950  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18951  :[FH]-) ac_tag=-:-;;
18952  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18953  esac
18954  ac_save_IFS=$IFS
18955  IFS=:
18956  set x $ac_tag
18957  IFS=$ac_save_IFS
18958  shift
18959  ac_file=$1
18960  shift
18961
18962  case $ac_mode in
18963  :L) ac_source=$1;;
18964  :[FH])
18965    ac_file_inputs=
18966    for ac_f
18967    do
18968      case $ac_f in
18969      -) ac_f="$ac_tmp/stdin";;
18970      *) # Look for the file first in the build tree, then in the source tree
18971	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18972	 # because $ac_f cannot contain `:'.
18973	 test -f "$ac_f" ||
18974	   case $ac_f in
18975	   [\\/$]*) false;;
18976	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18977	   esac ||
18978	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18979      esac
18980      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18981      as_fn_append ac_file_inputs " '$ac_f'"
18982    done
18983
18984    # Let's still pretend it is `configure' which instantiates (i.e., don't
18985    # use $as_me), people would be surprised to read:
18986    #    /* config.h.  Generated by config.status.  */
18987    configure_input='Generated from '`
18988	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18989	`' by configure.'
18990    if test x"$ac_file" != x-; then
18991      configure_input="$ac_file.  $configure_input"
18992      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18993$as_echo "$as_me: creating $ac_file" >&6;}
18994    fi
18995    # Neutralize special characters interpreted by sed in replacement strings.
18996    case $configure_input in #(
18997    *\&* | *\|* | *\\* )
18998       ac_sed_conf_input=`$as_echo "$configure_input" |
18999       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19000    *) ac_sed_conf_input=$configure_input;;
19001    esac
19002
19003    case $ac_tag in
19004    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19005      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19006    esac
19007    ;;
19008  esac
19009
19010  ac_dir=`$as_dirname -- "$ac_file" ||
19011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19012	 X"$ac_file" : 'X\(//\)[^/]' \| \
19013	 X"$ac_file" : 'X\(//\)$' \| \
19014	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19015$as_echo X"$ac_file" |
19016    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19017	    s//\1/
19018	    q
19019	  }
19020	  /^X\(\/\/\)[^/].*/{
19021	    s//\1/
19022	    q
19023	  }
19024	  /^X\(\/\/\)$/{
19025	    s//\1/
19026	    q
19027	  }
19028	  /^X\(\/\).*/{
19029	    s//\1/
19030	    q
19031	  }
19032	  s/.*/./; q'`
19033  as_dir="$ac_dir"; as_fn_mkdir_p
19034  ac_builddir=.
19035
19036case "$ac_dir" in
19037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19038*)
19039  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19040  # A ".." for each directory in $ac_dir_suffix.
19041  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19042  case $ac_top_builddir_sub in
19043  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19044  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19045  esac ;;
19046esac
19047ac_abs_top_builddir=$ac_pwd
19048ac_abs_builddir=$ac_pwd$ac_dir_suffix
19049# for backward compatibility:
19050ac_top_builddir=$ac_top_build_prefix
19051
19052case $srcdir in
19053  .)  # We are building in place.
19054    ac_srcdir=.
19055    ac_top_srcdir=$ac_top_builddir_sub
19056    ac_abs_top_srcdir=$ac_pwd ;;
19057  [\\/]* | ?:[\\/]* )  # Absolute name.
19058    ac_srcdir=$srcdir$ac_dir_suffix;
19059    ac_top_srcdir=$srcdir
19060    ac_abs_top_srcdir=$srcdir ;;
19061  *) # Relative name.
19062    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19063    ac_top_srcdir=$ac_top_build_prefix$srcdir
19064    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19065esac
19066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19067
19068
19069  case $ac_mode in
19070  :F)
19071  #
19072  # CONFIG_FILE
19073  #
19074
19075  case $INSTALL in
19076  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19077  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19078  esac
19079  ac_MKDIR_P=$MKDIR_P
19080  case $MKDIR_P in
19081  [\\/$]* | ?:[\\/]* ) ;;
19082  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19083  esac
19084_ACEOF
19085
19086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19087# If the template does not know about datarootdir, expand it.
19088# FIXME: This hack should be removed a few years after 2.60.
19089ac_datarootdir_hack=; ac_datarootdir_seen=
19090ac_sed_dataroot='
19091/datarootdir/ {
19092  p
19093  q
19094}
19095/@datadir@/p
19096/@docdir@/p
19097/@infodir@/p
19098/@localedir@/p
19099/@mandir@/p'
19100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19101*datarootdir*) ac_datarootdir_seen=yes;;
19102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19103  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19105_ACEOF
19106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19107  ac_datarootdir_hack='
19108  s&@datadir@&$datadir&g
19109  s&@docdir@&$docdir&g
19110  s&@infodir@&$infodir&g
19111  s&@localedir@&$localedir&g
19112  s&@mandir@&$mandir&g
19113  s&\\\${datarootdir}&$datarootdir&g' ;;
19114esac
19115_ACEOF
19116
19117# Neutralize VPATH when `$srcdir' = `.'.
19118# Shell code in configure.ac might set extrasub.
19119# FIXME: do we really want to maintain this feature?
19120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19121ac_sed_extra="$ac_vpsub
19122$extrasub
19123_ACEOF
19124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19125:t
19126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19127s|@configure_input@|$ac_sed_conf_input|;t t
19128s&@top_builddir@&$ac_top_builddir_sub&;t t
19129s&@top_build_prefix@&$ac_top_build_prefix&;t t
19130s&@srcdir@&$ac_srcdir&;t t
19131s&@abs_srcdir@&$ac_abs_srcdir&;t t
19132s&@top_srcdir@&$ac_top_srcdir&;t t
19133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19134s&@builddir@&$ac_builddir&;t t
19135s&@abs_builddir@&$ac_abs_builddir&;t t
19136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19137s&@INSTALL@&$ac_INSTALL&;t t
19138s&@MKDIR_P@&$ac_MKDIR_P&;t t
19139$ac_datarootdir_hack
19140"
19141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19142  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19143
19144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19145  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19146  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19147      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19148  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19149which seems to be undefined.  Please make sure it is defined" >&5
19150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19151which seems to be undefined.  Please make sure it is defined" >&2;}
19152
19153  rm -f "$ac_tmp/stdin"
19154  case $ac_file in
19155  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19156  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19157  esac \
19158  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19159 ;;
19160  :H)
19161  #
19162  # CONFIG_HEADER
19163  #
19164  if test x"$ac_file" != x-; then
19165    {
19166      $as_echo "/* $configure_input  */" \
19167      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19168    } >"$ac_tmp/config.h" \
19169      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19170    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19171      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19172$as_echo "$as_me: $ac_file is unchanged" >&6;}
19173    else
19174      rm -f "$ac_file"
19175      mv "$ac_tmp/config.h" "$ac_file" \
19176	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19177    fi
19178  else
19179    $as_echo "/* $configure_input  */" \
19180      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19181      || as_fn_error $? "could not create -" "$LINENO" 5
19182  fi
19183# Compute "$ac_file"'s index in $config_headers.
19184_am_arg="$ac_file"
19185_am_stamp_count=1
19186for _am_header in $config_headers :; do
19187  case $_am_header in
19188    $_am_arg | $_am_arg:* )
19189      break ;;
19190    * )
19191      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19192  esac
19193done
19194echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19195$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19196	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19197	 X"$_am_arg" : 'X\(//\)$' \| \
19198	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19199$as_echo X"$_am_arg" |
19200    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19201	    s//\1/
19202	    q
19203	  }
19204	  /^X\(\/\/\)[^/].*/{
19205	    s//\1/
19206	    q
19207	  }
19208	  /^X\(\/\/\)$/{
19209	    s//\1/
19210	    q
19211	  }
19212	  /^X\(\/\).*/{
19213	    s//\1/
19214	    q
19215	  }
19216	  s/.*/./; q'`/stamp-h$_am_stamp_count
19217 ;;
19218
19219  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19220$as_echo "$as_me: executing $ac_file commands" >&6;}
19221 ;;
19222  esac
19223
19224
19225  case $ac_file$ac_mode in
19226    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19227  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19228  # are listed without --file.  Let's play safe and only enable the eval
19229  # if we detect the quoting.
19230  case $CONFIG_FILES in
19231  *\'*) eval set x "$CONFIG_FILES" ;;
19232  *)   set x $CONFIG_FILES ;;
19233  esac
19234  shift
19235  for mf
19236  do
19237    # Strip MF so we end up with the name of the file.
19238    mf=`echo "$mf" | sed -e 's/:.*$//'`
19239    # Check whether this is an Automake generated Makefile or not.
19240    # We used to match only the files named `Makefile.in', but
19241    # some people rename them; so instead we look at the file content.
19242    # Grep'ing the first line is not enough: some people post-process
19243    # each Makefile.in and add a new line on top of each file to say so.
19244    # Grep'ing the whole file is not good either: AIX grep has a line
19245    # limit of 2048, but all sed's we know have understand at least 4000.
19246    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19247      dirpart=`$as_dirname -- "$mf" ||
19248$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19249	 X"$mf" : 'X\(//\)[^/]' \| \
19250	 X"$mf" : 'X\(//\)$' \| \
19251	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19252$as_echo X"$mf" |
19253    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19254	    s//\1/
19255	    q
19256	  }
19257	  /^X\(\/\/\)[^/].*/{
19258	    s//\1/
19259	    q
19260	  }
19261	  /^X\(\/\/\)$/{
19262	    s//\1/
19263	    q
19264	  }
19265	  /^X\(\/\).*/{
19266	    s//\1/
19267	    q
19268	  }
19269	  s/.*/./; q'`
19270    else
19271      continue
19272    fi
19273    # Extract the definition of DEPDIR, am__include, and am__quote
19274    # from the Makefile without running `make'.
19275    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19276    test -z "$DEPDIR" && continue
19277    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19278    test -z "am__include" && continue
19279    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19280    # When using ansi2knr, U may be empty or an underscore; expand it
19281    U=`sed -n 's/^U = //p' < "$mf"`
19282    # Find all dependency output files, they are included files with
19283    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19284    # simplest approach to changing $(DEPDIR) to its actual value in the
19285    # expansion.
19286    for file in `sed -n "
19287      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19288	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19289      # Make sure the directory exists.
19290      test -f "$dirpart/$file" && continue
19291      fdir=`$as_dirname -- "$file" ||
19292$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19293	 X"$file" : 'X\(//\)[^/]' \| \
19294	 X"$file" : 'X\(//\)$' \| \
19295	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19296$as_echo X"$file" |
19297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19298	    s//\1/
19299	    q
19300	  }
19301	  /^X\(\/\/\)[^/].*/{
19302	    s//\1/
19303	    q
19304	  }
19305	  /^X\(\/\/\)$/{
19306	    s//\1/
19307	    q
19308	  }
19309	  /^X\(\/\).*/{
19310	    s//\1/
19311	    q
19312	  }
19313	  s/.*/./; q'`
19314      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19315      # echo "creating $dirpart/$file"
19316      echo '# dummy' > "$dirpart/$file"
19317    done
19318  done
19319}
19320 ;;
19321    "libtool":C)
19322
19323    # See if we are running on zsh, and set the options which allow our
19324    # commands through without removal of \ escapes.
19325    if test -n "${ZSH_VERSION+set}" ; then
19326      setopt NO_GLOB_SUBST
19327    fi
19328
19329    cfgfile="${ofile}T"
19330    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19331    $RM "$cfgfile"
19332
19333    cat <<_LT_EOF >> "$cfgfile"
19334#! $SHELL
19335
19336# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19337# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19338# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19339# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19340#
19341#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19342#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19343#                 Foundation, Inc.
19344#   Written by Gordon Matzigkeit, 1996
19345#
19346#   This file is part of GNU Libtool.
19347#
19348# GNU Libtool is free software; you can redistribute it and/or
19349# modify it under the terms of the GNU General Public License as
19350# published by the Free Software Foundation; either version 2 of
19351# the License, or (at your option) any later version.
19352#
19353# As a special exception to the GNU General Public License,
19354# if you distribute this file as part of a program or library that
19355# is built using GNU Libtool, you may include this file under the
19356# same distribution terms that you use for the rest of that program.
19357#
19358# GNU Libtool is distributed in the hope that it will be useful,
19359# but WITHOUT ANY WARRANTY; without even the implied warranty of
19360# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19361# GNU General Public License for more details.
19362#
19363# You should have received a copy of the GNU General Public License
19364# along with GNU Libtool; see the file COPYING.  If not, a copy
19365# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19366# obtained by writing to the Free Software Foundation, Inc.,
19367# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19368
19369
19370# The names of the tagged configurations supported by this script.
19371available_tags=""
19372
19373# ### BEGIN LIBTOOL CONFIG
19374
19375# Which release of libtool.m4 was used?
19376macro_version=$macro_version
19377macro_revision=$macro_revision
19378
19379# Whether or not to build shared libraries.
19380build_libtool_libs=$enable_shared
19381
19382# Whether or not to build static libraries.
19383build_old_libs=$enable_static
19384
19385# What type of objects to build.
19386pic_mode=$pic_mode
19387
19388# Whether or not to optimize for fast installation.
19389fast_install=$enable_fast_install
19390
19391# Shell to use when invoking shell scripts.
19392SHELL=$lt_SHELL
19393
19394# An echo program that protects backslashes.
19395ECHO=$lt_ECHO
19396
19397# The PATH separator for the build system.
19398PATH_SEPARATOR=$lt_PATH_SEPARATOR
19399
19400# The host system.
19401host_alias=$host_alias
19402host=$host
19403host_os=$host_os
19404
19405# The build system.
19406build_alias=$build_alias
19407build=$build
19408build_os=$build_os
19409
19410# A sed program that does not truncate output.
19411SED=$lt_SED
19412
19413# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19414Xsed="\$SED -e 1s/^X//"
19415
19416# A grep program that handles long lines.
19417GREP=$lt_GREP
19418
19419# An ERE matcher.
19420EGREP=$lt_EGREP
19421
19422# A literal string matcher.
19423FGREP=$lt_FGREP
19424
19425# A BSD- or MS-compatible name lister.
19426NM=$lt_NM
19427
19428# Whether we need soft or hard links.
19429LN_S=$lt_LN_S
19430
19431# What is the maximum length of a command?
19432max_cmd_len=$max_cmd_len
19433
19434# Object file suffix (normally "o").
19435objext=$ac_objext
19436
19437# Executable file suffix (normally "").
19438exeext=$exeext
19439
19440# whether the shell understands "unset".
19441lt_unset=$lt_unset
19442
19443# turn spaces into newlines.
19444SP2NL=$lt_lt_SP2NL
19445
19446# turn newlines into spaces.
19447NL2SP=$lt_lt_NL2SP
19448
19449# convert \$build file names to \$host format.
19450to_host_file_cmd=$lt_cv_to_host_file_cmd
19451
19452# convert \$build files to toolchain format.
19453to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19454
19455# An object symbol dumper.
19456OBJDUMP=$lt_OBJDUMP
19457
19458# Method to check whether dependent libraries are shared objects.
19459deplibs_check_method=$lt_deplibs_check_method
19460
19461# Command to use when deplibs_check_method = "file_magic".
19462file_magic_cmd=$lt_file_magic_cmd
19463
19464# How to find potential files when deplibs_check_method = "file_magic".
19465file_magic_glob=$lt_file_magic_glob
19466
19467# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19468want_nocaseglob=$lt_want_nocaseglob
19469
19470# DLL creation program.
19471DLLTOOL=$lt_DLLTOOL
19472
19473# Command to associate shared and link libraries.
19474sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19475
19476# The archiver.
19477AR=$lt_AR
19478
19479# Flags to create an archive.
19480AR_FLAGS=$lt_AR_FLAGS
19481
19482# How to feed a file listing to the archiver.
19483archiver_list_spec=$lt_archiver_list_spec
19484
19485# A symbol stripping program.
19486STRIP=$lt_STRIP
19487
19488# Commands used to install an old-style archive.
19489RANLIB=$lt_RANLIB
19490old_postinstall_cmds=$lt_old_postinstall_cmds
19491old_postuninstall_cmds=$lt_old_postuninstall_cmds
19492
19493# Whether to use a lock for old archive extraction.
19494lock_old_archive_extraction=$lock_old_archive_extraction
19495
19496# A C compiler.
19497LTCC=$lt_CC
19498
19499# LTCC compiler flags.
19500LTCFLAGS=$lt_CFLAGS
19501
19502# Take the output of nm and produce a listing of raw symbols and C names.
19503global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19504
19505# Transform the output of nm in a proper C declaration.
19506global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19507
19508# Transform the output of nm in a C name address pair.
19509global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19510
19511# Transform the output of nm in a C name address pair when lib prefix is needed.
19512global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19513
19514# Specify filename containing input files for \$NM.
19515nm_file_list_spec=$lt_nm_file_list_spec
19516
19517# The root where to search for dependent libraries,and in which our libraries should be installed.
19518lt_sysroot=$lt_sysroot
19519
19520# The name of the directory that contains temporary libtool files.
19521objdir=$objdir
19522
19523# Used to examine libraries when file_magic_cmd begins with "file".
19524MAGIC_CMD=$MAGIC_CMD
19525
19526# Must we lock files when doing compilation?
19527need_locks=$lt_need_locks
19528
19529# Manifest tool.
19530MANIFEST_TOOL=$lt_MANIFEST_TOOL
19531
19532# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19533DSYMUTIL=$lt_DSYMUTIL
19534
19535# Tool to change global to local symbols on Mac OS X.
19536NMEDIT=$lt_NMEDIT
19537
19538# Tool to manipulate fat objects and archives on Mac OS X.
19539LIPO=$lt_LIPO
19540
19541# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19542OTOOL=$lt_OTOOL
19543
19544# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19545OTOOL64=$lt_OTOOL64
19546
19547# Old archive suffix (normally "a").
19548libext=$libext
19549
19550# Shared library suffix (normally ".so").
19551shrext_cmds=$lt_shrext_cmds
19552
19553# The commands to extract the exported symbol list from a shared archive.
19554extract_expsyms_cmds=$lt_extract_expsyms_cmds
19555
19556# Variables whose values should be saved in libtool wrapper scripts and
19557# restored at link time.
19558variables_saved_for_relink=$lt_variables_saved_for_relink
19559
19560# Do we need the "lib" prefix for modules?
19561need_lib_prefix=$need_lib_prefix
19562
19563# Do we need a version for libraries?
19564need_version=$need_version
19565
19566# Library versioning type.
19567version_type=$version_type
19568
19569# Shared library runtime path variable.
19570runpath_var=$runpath_var
19571
19572# Shared library path variable.
19573shlibpath_var=$shlibpath_var
19574
19575# Is shlibpath searched before the hard-coded library search path?
19576shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19577
19578# Format of library name prefix.
19579libname_spec=$lt_libname_spec
19580
19581# List of archive names.  First name is the real one, the rest are links.
19582# The last name is the one that the linker finds with -lNAME
19583library_names_spec=$lt_library_names_spec
19584
19585# The coded name of the library, if different from the real name.
19586soname_spec=$lt_soname_spec
19587
19588# Permission mode override for installation of shared libraries.
19589install_override_mode=$lt_install_override_mode
19590
19591# Command to use after installation of a shared archive.
19592postinstall_cmds=$lt_postinstall_cmds
19593
19594# Command to use after uninstallation of a shared archive.
19595postuninstall_cmds=$lt_postuninstall_cmds
19596
19597# Commands used to finish a libtool library installation in a directory.
19598finish_cmds=$lt_finish_cmds
19599
19600# As "finish_cmds", except a single script fragment to be evaled but
19601# not shown.
19602finish_eval=$lt_finish_eval
19603
19604# Whether we should hardcode library paths into libraries.
19605hardcode_into_libs=$hardcode_into_libs
19606
19607# Compile-time system search path for libraries.
19608sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19609
19610# Run-time system search path for libraries.
19611sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19612
19613# Whether dlopen is supported.
19614dlopen_support=$enable_dlopen
19615
19616# Whether dlopen of programs is supported.
19617dlopen_self=$enable_dlopen_self
19618
19619# Whether dlopen of statically linked programs is supported.
19620dlopen_self_static=$enable_dlopen_self_static
19621
19622# Commands to strip libraries.
19623old_striplib=$lt_old_striplib
19624striplib=$lt_striplib
19625
19626
19627# The linker used to build libraries.
19628LD=$lt_LD
19629
19630# How to create reloadable object files.
19631reload_flag=$lt_reload_flag
19632reload_cmds=$lt_reload_cmds
19633
19634# Commands used to build an old-style archive.
19635old_archive_cmds=$lt_old_archive_cmds
19636
19637# A language specific compiler.
19638CC=$lt_compiler
19639
19640# Is the compiler the GNU compiler?
19641with_gcc=$GCC
19642
19643# Compiler flag to turn off builtin functions.
19644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19645
19646# Additional compiler flags for building library objects.
19647pic_flag=$lt_lt_prog_compiler_pic
19648
19649# How to pass a linker flag through the compiler.
19650wl=$lt_lt_prog_compiler_wl
19651
19652# Compiler flag to prevent dynamic linking.
19653link_static_flag=$lt_lt_prog_compiler_static
19654
19655# Does compiler simultaneously support -c and -o options?
19656compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19657
19658# Whether or not to add -lc for building shared libraries.
19659build_libtool_need_lc=$archive_cmds_need_lc
19660
19661# Whether or not to disallow shared libs when runtime libs are static.
19662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19663
19664# Compiler flag to allow reflexive dlopens.
19665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19666
19667# Compiler flag to generate shared objects directly from archives.
19668whole_archive_flag_spec=$lt_whole_archive_flag_spec
19669
19670# Whether the compiler copes with passing no objects directly.
19671compiler_needs_object=$lt_compiler_needs_object
19672
19673# Create an old-style archive from a shared archive.
19674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19675
19676# Create a temporary old-style archive to link instead of a shared archive.
19677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19678
19679# Commands used to build a shared archive.
19680archive_cmds=$lt_archive_cmds
19681archive_expsym_cmds=$lt_archive_expsym_cmds
19682
19683# Commands used to build a loadable module if different from building
19684# a shared archive.
19685module_cmds=$lt_module_cmds
19686module_expsym_cmds=$lt_module_expsym_cmds
19687
19688# Whether we are building with GNU ld or not.
19689with_gnu_ld=$lt_with_gnu_ld
19690
19691# Flag that allows shared libraries with undefined symbols to be built.
19692allow_undefined_flag=$lt_allow_undefined_flag
19693
19694# Flag that enforces no undefined symbols.
19695no_undefined_flag=$lt_no_undefined_flag
19696
19697# Flag to hardcode \$libdir into a binary during linking.
19698# This must work even if \$libdir does not exist
19699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19700
19701# Whether we need a single "-rpath" flag with a separated argument.
19702hardcode_libdir_separator=$lt_hardcode_libdir_separator
19703
19704# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19705# DIR into the resulting binary.
19706hardcode_direct=$hardcode_direct
19707
19708# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19709# DIR into the resulting binary and the resulting library dependency is
19710# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19711# library is relocated.
19712hardcode_direct_absolute=$hardcode_direct_absolute
19713
19714# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19715# into the resulting binary.
19716hardcode_minus_L=$hardcode_minus_L
19717
19718# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19719# into the resulting binary.
19720hardcode_shlibpath_var=$hardcode_shlibpath_var
19721
19722# Set to "yes" if building a shared library automatically hardcodes DIR
19723# into the library and all subsequent libraries and executables linked
19724# against it.
19725hardcode_automatic=$hardcode_automatic
19726
19727# Set to yes if linker adds runtime paths of dependent libraries
19728# to runtime path list.
19729inherit_rpath=$inherit_rpath
19730
19731# Whether libtool must link a program against all its dependency libraries.
19732link_all_deplibs=$link_all_deplibs
19733
19734# Set to "yes" if exported symbols are required.
19735always_export_symbols=$always_export_symbols
19736
19737# The commands to list exported symbols.
19738export_symbols_cmds=$lt_export_symbols_cmds
19739
19740# Symbols that should not be listed in the preloaded symbols.
19741exclude_expsyms=$lt_exclude_expsyms
19742
19743# Symbols that must always be exported.
19744include_expsyms=$lt_include_expsyms
19745
19746# Commands necessary for linking programs (against libraries) with templates.
19747prelink_cmds=$lt_prelink_cmds
19748
19749# Commands necessary for finishing linking programs.
19750postlink_cmds=$lt_postlink_cmds
19751
19752# Specify filename containing input files.
19753file_list_spec=$lt_file_list_spec
19754
19755# How to hardcode a shared library path into an executable.
19756hardcode_action=$hardcode_action
19757
19758# ### END LIBTOOL CONFIG
19759
19760_LT_EOF
19761
19762  case $host_os in
19763  aix3*)
19764    cat <<\_LT_EOF >> "$cfgfile"
19765# AIX sometimes has problems with the GCC collect2 program.  For some
19766# reason, if we set the COLLECT_NAMES environment variable, the problems
19767# vanish in a puff of smoke.
19768if test "X${COLLECT_NAMES+set}" != Xset; then
19769  COLLECT_NAMES=
19770  export COLLECT_NAMES
19771fi
19772_LT_EOF
19773    ;;
19774  esac
19775
19776
19777ltmain="$ac_aux_dir/ltmain.sh"
19778
19779
19780  # We use sed instead of cat because bash on DJGPP gets confused if
19781  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19782  # text mode, it properly converts lines to CR/LF.  This bash problem
19783  # is reportedly fixed, but why not run on old versions too?
19784  sed '$q' "$ltmain" >> "$cfgfile" \
19785     || (rm -f "$cfgfile"; exit 1)
19786
19787  if test x"$xsi_shell" = xyes; then
19788  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19789func_dirname ()\
19790{\
19791\    case ${1} in\
19792\      */*) func_dirname_result="${1%/*}${2}" ;;\
19793\      *  ) func_dirname_result="${3}" ;;\
19794\    esac\
19795} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19796  && mv -f "$cfgfile.tmp" "$cfgfile" \
19797    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19798test 0 -eq $? || _lt_function_replace_fail=:
19799
19800
19801  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19802func_basename ()\
19803{\
19804\    func_basename_result="${1##*/}"\
19805} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19806  && mv -f "$cfgfile.tmp" "$cfgfile" \
19807    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19808test 0 -eq $? || _lt_function_replace_fail=:
19809
19810
19811  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19812func_dirname_and_basename ()\
19813{\
19814\    case ${1} in\
19815\      */*) func_dirname_result="${1%/*}${2}" ;;\
19816\      *  ) func_dirname_result="${3}" ;;\
19817\    esac\
19818\    func_basename_result="${1##*/}"\
19819} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19820  && mv -f "$cfgfile.tmp" "$cfgfile" \
19821    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19822test 0 -eq $? || _lt_function_replace_fail=:
19823
19824
19825  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19826func_stripname ()\
19827{\
19828\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19829\    # positional parameters, so assign one to ordinary parameter first.\
19830\    func_stripname_result=${3}\
19831\    func_stripname_result=${func_stripname_result#"${1}"}\
19832\    func_stripname_result=${func_stripname_result%"${2}"}\
19833} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19834  && mv -f "$cfgfile.tmp" "$cfgfile" \
19835    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19836test 0 -eq $? || _lt_function_replace_fail=:
19837
19838
19839  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19840func_split_long_opt ()\
19841{\
19842\    func_split_long_opt_name=${1%%=*}\
19843\    func_split_long_opt_arg=${1#*=}\
19844} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19845  && mv -f "$cfgfile.tmp" "$cfgfile" \
19846    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19847test 0 -eq $? || _lt_function_replace_fail=:
19848
19849
19850  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19851func_split_short_opt ()\
19852{\
19853\    func_split_short_opt_arg=${1#??}\
19854\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19855} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19856  && mv -f "$cfgfile.tmp" "$cfgfile" \
19857    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19858test 0 -eq $? || _lt_function_replace_fail=:
19859
19860
19861  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19862func_lo2o ()\
19863{\
19864\    case ${1} in\
19865\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19866\      *)    func_lo2o_result=${1} ;;\
19867\    esac\
19868} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19869  && mv -f "$cfgfile.tmp" "$cfgfile" \
19870    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19871test 0 -eq $? || _lt_function_replace_fail=:
19872
19873
19874  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19875func_xform ()\
19876{\
19877    func_xform_result=${1%.*}.lo\
19878} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19879  && mv -f "$cfgfile.tmp" "$cfgfile" \
19880    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19881test 0 -eq $? || _lt_function_replace_fail=:
19882
19883
19884  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19885func_arith ()\
19886{\
19887    func_arith_result=$(( $* ))\
19888} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19889  && mv -f "$cfgfile.tmp" "$cfgfile" \
19890    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19891test 0 -eq $? || _lt_function_replace_fail=:
19892
19893
19894  sed -e '/^func_len ()$/,/^} # func_len /c\
19895func_len ()\
19896{\
19897    func_len_result=${#1}\
19898} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19899  && mv -f "$cfgfile.tmp" "$cfgfile" \
19900    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19901test 0 -eq $? || _lt_function_replace_fail=:
19902
19903fi
19904
19905if test x"$lt_shell_append" = xyes; then
19906  sed -e '/^func_append ()$/,/^} # func_append /c\
19907func_append ()\
19908{\
19909    eval "${1}+=\\${2}"\
19910} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19911  && mv -f "$cfgfile.tmp" "$cfgfile" \
19912    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19913test 0 -eq $? || _lt_function_replace_fail=:
19914
19915
19916  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19917func_append_quoted ()\
19918{\
19919\    func_quote_for_eval "${2}"\
19920\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19921} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19922  && mv -f "$cfgfile.tmp" "$cfgfile" \
19923    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19924test 0 -eq $? || _lt_function_replace_fail=:
19925
19926
19927  # Save a `func_append' function call where possible by direct use of '+='
19928  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19929    && mv -f "$cfgfile.tmp" "$cfgfile" \
19930      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19931  test 0 -eq $? || _lt_function_replace_fail=:
19932else
19933  # Save a `func_append' function call even when '+=' is not available
19934  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19935    && mv -f "$cfgfile.tmp" "$cfgfile" \
19936      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19937  test 0 -eq $? || _lt_function_replace_fail=:
19938fi
19939
19940if test x"$_lt_function_replace_fail" = x":"; then
19941  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19942$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19943fi
19944
19945
19946   mv -f "$cfgfile" "$ofile" ||
19947    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19948  chmod +x "$ofile"
19949
19950 ;;
19951
19952  esac
19953done # for ac_tag
19954
19955
19956as_fn_exit 0
19957_ACEOF
19958ac_clean_files=$ac_clean_files_save
19959
19960test $ac_write_fail = 0 ||
19961  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19962
19963
19964# configure is writing to config.log, and then calls config.status.
19965# config.status does its own redirection, appending to config.log.
19966# Unfortunately, on DOS this fails, as config.log is still kept open
19967# by configure, so config.status won't be able to write to it; its
19968# output is simply discarded.  So we exec the FD to /dev/null,
19969# effectively closing config.log, so it can be properly (re)opened and
19970# appended to by config.status.  When coming back to configure, we
19971# need to make the FD available again.
19972if test "$no_create" != yes; then
19973  ac_cs_success=:
19974  ac_config_status_args=
19975  test "$silent" = yes &&
19976    ac_config_status_args="$ac_config_status_args --quiet"
19977  exec 5>/dev/null
19978  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19979  exec 5>>config.log
19980  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19981  # would make configure fail if this is the last instruction.
19982  $ac_cs_success || as_fn_exit 1
19983fi
19984if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19985  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19986$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19987fi
19988
19989