configure revision 6fae4e5d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXrender 0.9.7.
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='libXrender'
573PACKAGE_TARNAME='libXrender'
574PACKAGE_VERSION='0.9.7'
575PACKAGE_STRING='libXrender 0.9.7'
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
620RENDER_LIBS
621RENDER_CFLAGS
622RENDER_VERSION
623XTMALLOC_ZERO_CFLAGS
624XMALLOC_ZERO_CFLAGS
625MALLOC_ZERO_CFLAGS
626AM_BACKSLASH
627AM_DEFAULT_VERBOSITY
628MAN_SUBSTS
629XORG_MAN_PAGE
630ADMIN_MAN_DIR
631DRIVER_MAN_DIR
632MISC_MAN_DIR
633FILE_MAN_DIR
634LIB_MAN_DIR
635APP_MAN_DIR
636ADMIN_MAN_SUFFIX
637DRIVER_MAN_SUFFIX
638MISC_MAN_SUFFIX
639FILE_MAN_SUFFIX
640LIB_MAN_SUFFIX
641APP_MAN_SUFFIX
642INSTALL_CMD
643PKG_CONFIG
644CHANGELOG_CMD
645STRICT_CFLAGS
646CWARNFLAGS
647BASE_CFLAGS
648CPP
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672AMDEPBACKSLASH
673AMDEP_FALSE
674AMDEP_TRUE
675am__quote
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693LIBTOOL
694MAINT
695MAINTAINER_MODE_FALSE
696MAINTAINER_MODE_TRUE
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_maintainer_mode
762enable_shared
763enable_static
764with_pic
765enable_fast_install
766enable_dependency_tracking
767with_gnu_ld
768with_sysroot
769enable_libtool_lock
770enable_selective_werror
771enable_strict_compilation
772enable_silent_rules
773enable_malloc0returnsnull
774'
775      ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
781LIBS
782CPPFLAGS
783CPP
784PKG_CONFIG
785RENDER_CFLAGS
786RENDER_LIBS'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078    ac_prev=sbindir ;;
1079  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080  | --sbi=* | --sb=*)
1081    sbindir=$ac_optarg ;;
1082
1083  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085  | --sharedst | --shareds | --shared | --share | --shar \
1086  | --sha | --sh)
1087    ac_prev=sharedstatedir ;;
1088  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091  | --sha=* | --sh=*)
1092    sharedstatedir=$ac_optarg ;;
1093
1094  -site | --site | --sit)
1095    ac_prev=site ;;
1096  -site=* | --site=* | --sit=*)
1097    site=$ac_optarg ;;
1098
1099  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100    ac_prev=srcdir ;;
1101  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102    srcdir=$ac_optarg ;;
1103
1104  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105  | --syscon | --sysco | --sysc | --sys | --sy)
1106    ac_prev=sysconfdir ;;
1107  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109    sysconfdir=$ac_optarg ;;
1110
1111  -target | --target | --targe | --targ | --tar | --ta | --t)
1112    ac_prev=target_alias ;;
1113  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114    target_alias=$ac_optarg ;;
1115
1116  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117    verbose=yes ;;
1118
1119  -version | --version | --versio | --versi | --vers | -V)
1120    ac_init_version=: ;;
1121
1122  -with-* | --with-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=\$ac_optarg ;;
1137
1138  -without-* | --without-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    case $ac_envvar in #(
1180      '' | [0-9]* | *[!_$as_cr_alnum]* )
1181      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182    esac
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  as_fn_error $? "missing argument to $ac_option"
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203  case $enable_option_checking in
1204    no) ;;
1205    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207  esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212		datadir sysconfdir sharedstatedir localstatedir includedir \
1213		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214		libdir localedir mandir
1215do
1216  eval ac_val=\$$ac_var
1217  # Remove trailing slashes.
1218  case $ac_val in
1219    */ )
1220      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221      eval $ac_var=\$ac_val;;
1222  esac
1223  # Be sure to have absolute directory names.
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1243    If a cross compiler is detected then cross compile mode will be used" >&2
1244  elif test "x$build_alias" != "x$host_alias"; then
1245    cross_compiling=yes
1246  fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258  as_fn_error $? "working directory cannot be determined"
1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260  as_fn_error $? "pwd does not report name of working directory"
1261
1262
1263# Find the source files, if location was not specified.
1264if test -z "$srcdir"; then
1265  ac_srcdir_defaulted=yes
1266  # Try the directory containing this script, then the parent directory.
1267  ac_confdir=`$as_dirname -- "$as_myself" ||
1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269	 X"$as_myself" : 'X\(//\)[^/]' \| \
1270	 X"$as_myself" : 'X\(//\)$' \| \
1271	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272$as_echo X"$as_myself" |
1273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\/\)[^/].*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\/\)$/{
1282	    s//\1/
1283	    q
1284	  }
1285	  /^X\(\/\).*/{
1286	    s//\1/
1287	    q
1288	  }
1289	  s/.*/./; q'`
1290  srcdir=$ac_confdir
1291  if test ! -r "$srcdir/$ac_unique_file"; then
1292    srcdir=..
1293  fi
1294else
1295  ac_srcdir_defaulted=no
1296fi
1297if test ! -r "$srcdir/$ac_unique_file"; then
1298  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300fi
1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302ac_abs_confdir=`(
1303	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304	pwd)`
1305# When building in place, set srcdir=.
1306if test "$ac_abs_confdir" = "$ac_pwd"; then
1307  srcdir=.
1308fi
1309# Remove unnecessary trailing slashes from srcdir.
1310# Double slashes in file names in object file debugging info
1311# mess up M-x gdb in Emacs.
1312case $srcdir in
1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314esac
1315for ac_var in $ac_precious_vars; do
1316  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_env_${ac_var}_value=\$${ac_var}
1318  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320done
1321
1322#
1323# Report the --help message.
1324#
1325if test "$ac_init_help" = "long"; then
1326  # Omit some internal or obsolete options to make the list less imposing.
1327  # This message is too long to be a string in the A/UX 3.1 sh.
1328  cat <<_ACEOF
1329\`configure' configures libXrender 0.9.7 to adapt to many kinds of systems.
1330
1331Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336Defaults for the options are specified in brackets.
1337
1338Configuration:
1339  -h, --help              display this help and exit
1340      --help=short        display options specific to this package
1341      --help=recursive    display the short help of all the included packages
1342  -V, --version           display version information and exit
1343  -q, --quiet, --silent   do not print \`checking ...' messages
1344      --cache-file=FILE   cache test results in FILE [disabled]
1345  -C, --config-cache      alias for \`--cache-file=config.cache'
1346  -n, --no-create         do not create output files
1347      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349Installation directories:
1350  --prefix=PREFIX         install architecture-independent files in PREFIX
1351                          [$ac_default_prefix]
1352  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                          [PREFIX]
1354
1355By default, \`make install' will install all the files in
1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358for instance \`--prefix=\$HOME'.
1359
1360For better control, use the options below.
1361
1362Fine tuning of the installation directories:
1363  --bindir=DIR            user executables [EPREFIX/bin]
1364  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1365  --libexecdir=DIR        program executables [EPREFIX/libexec]
1366  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1367  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1368  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1369  --libdir=DIR            object code libraries [EPREFIX/lib]
1370  --includedir=DIR        C header files [PREFIX/include]
1371  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1372  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1373  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1374  --infodir=DIR           info documentation [DATAROOTDIR/info]
1375  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1376  --mandir=DIR            man documentation [DATAROOTDIR/man]
1377  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrender]
1378  --htmldir=DIR           html documentation [DOCDIR]
1379  --dvidir=DIR            dvi documentation [DOCDIR]
1380  --pdfdir=DIR            pdf documentation [DOCDIR]
1381  --psdir=DIR             ps documentation [DOCDIR]
1382_ACEOF
1383
1384  cat <<\_ACEOF
1385
1386Program names:
1387  --program-prefix=PREFIX            prepend PREFIX to installed program names
1388  --program-suffix=SUFFIX            append SUFFIX to installed program names
1389  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1390
1391System types:
1392  --build=BUILD     configure for building on BUILD [guessed]
1393  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398  case $ac_init_help in
1399     short | recursive ) echo "Configuration of libXrender 0.9.7:";;
1400   esac
1401  cat <<\_ACEOF
1402
1403Optional Features:
1404  --disable-option-checking  ignore unrecognized --enable/--with options
1405  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1406  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1407  --enable-maintainer-mode  enable make rules and dependencies not useful
1408			  (and sometimes confusing) to the casual installer
1409  --enable-shared[=PKGS]  build shared libraries [default=yes]
1410  --enable-static[=PKGS]  build static libraries [default=yes]
1411  --enable-fast-install[=PKGS]
1412                          optimize for fast installation [default=yes]
1413  --disable-dependency-tracking  speeds up one-time build
1414  --enable-dependency-tracking   do not reject slow dependency extractors
1415  --disable-libtool-lock  avoid locking (might break parallel builds)
1416  --disable-selective-werror
1417                          Turn off selective compiler errors. (default:
1418                          enabled)
1419  --enable-strict-compilation
1420                          Enable all warnings from compiler and make them
1421                          errors (default: disabled)
1422  --enable-silent-rules          less verbose build output (undo: `make V=1')
1423  --disable-silent-rules         verbose build output (undo: `make V=0')
1424  --enable-malloc0returnsnull
1425                          malloc(0) returns NULL (default: auto)
1426
1427Optional Packages:
1428  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430  --with-pic              try to use only PIC/non-PIC objects [default=use
1431                          both]
1432  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433  --with-sysroot=DIR Search for dependent libraries within DIR
1434                        (or the compiler's sysroot if not specified).
1435
1436Some influential environment variables:
1437  CC          C compiler command
1438  CFLAGS      C compiler flags
1439  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1440              nonstandard directory <lib dir>
1441  LIBS        libraries to pass to the linker, e.g. -l<library>
1442  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443              you have headers in a nonstandard directory <include dir>
1444  CPP         C preprocessor
1445  PKG_CONFIG  path to pkg-config utility
1446  RENDER_CFLAGS
1447              C compiler flags for RENDER, overriding pkg-config
1448  RENDER_LIBS linker flags for RENDER, overriding pkg-config
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459  # If there are subdirs, report their specific --help.
1460  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461    test -d "$ac_dir" ||
1462      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463      continue
1464    ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470  # A ".." for each directory in $ac_dir_suffix.
1471  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472  case $ac_top_builddir_sub in
1473  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475  esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483  .)  # We are building in place.
1484    ac_srcdir=.
1485    ac_top_srcdir=$ac_top_builddir_sub
1486    ac_abs_top_srcdir=$ac_pwd ;;
1487  [\\/]* | ?:[\\/]* )  # Absolute name.
1488    ac_srcdir=$srcdir$ac_dir_suffix;
1489    ac_top_srcdir=$srcdir
1490    ac_abs_top_srcdir=$srcdir ;;
1491  *) # Relative name.
1492    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498    cd "$ac_dir" || { ac_status=$?; continue; }
1499    # Check for guested configure.
1500    if test -f "$ac_srcdir/configure.gnu"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503    elif test -f "$ac_srcdir/configure"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure" --help=recursive
1506    else
1507      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508    fi || ac_status=$?
1509    cd "$ac_pwd" || { ac_status=$?; break; }
1510  done
1511fi
1512
1513test -n "$ac_init_help" && exit $ac_status
1514if $ac_init_version; then
1515  cat <<\_ACEOF
1516libXrender configure 0.9.7
1517generated by GNU Autoconf 2.68
1518
1519Copyright (C) 2010 Free Software Foundation, Inc.
1520This configure script is free software; the Free Software Foundation
1521gives unlimited permission to copy, distribute and modify it.
1522_ACEOF
1523  exit
1524fi
1525
1526## ------------------------ ##
1527## Autoconf initialization. ##
1528## ------------------------ ##
1529
1530# ac_fn_c_try_compile LINENO
1531# --------------------------
1532# Try to compile conftest.$ac_ext, and return whether this succeeded.
1533ac_fn_c_try_compile ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  rm -f conftest.$ac_objext
1537  if { { ac_try="$ac_compile"
1538case "(($ac_try" in
1539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540  *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544  (eval "$ac_compile") 2>conftest.err
1545  ac_status=$?
1546  if test -s conftest.err; then
1547    grep -v '^ *+' conftest.err >conftest.er1
1548    cat conftest.er1 >&5
1549    mv -f conftest.er1 conftest.err
1550  fi
1551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552  test $ac_status = 0; } && {
1553	 test -z "$ac_c_werror_flag" ||
1554	 test ! -s conftest.err
1555       } && test -s conftest.$ac_objext; then :
1556  ac_retval=0
1557else
1558  $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561	ac_retval=1
1562fi
1563  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564  as_fn_set_status $ac_retval
1565
1566} # ac_fn_c_try_compile
1567
1568# ac_fn_c_try_link LINENO
1569# -----------------------
1570# Try to link conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_link ()
1572{
1573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574  rm -f conftest.$ac_objext conftest$ac_exeext
1575  if { { ac_try="$ac_link"
1576case "(($ac_try" in
1577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578  *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582  (eval "$ac_link") 2>conftest.err
1583  ac_status=$?
1584  if test -s conftest.err; then
1585    grep -v '^ *+' conftest.err >conftest.er1
1586    cat conftest.er1 >&5
1587    mv -f conftest.er1 conftest.err
1588  fi
1589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590  test $ac_status = 0; } && {
1591	 test -z "$ac_c_werror_flag" ||
1592	 test ! -s conftest.err
1593       } && test -s conftest$ac_exeext && {
1594	 test "$cross_compiling" = yes ||
1595	 $as_test_x conftest$ac_exeext
1596       }; then :
1597  ac_retval=0
1598else
1599  $as_echo "$as_me: failed program was:" >&5
1600sed 's/^/| /' conftest.$ac_ext >&5
1601
1602	ac_retval=1
1603fi
1604  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606  # interfere with the next link command; also delete a directory that is
1607  # left behind by Apple's compiler.  We do this before executing the actions.
1608  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610  as_fn_set_status $ac_retval
1611
1612} # ac_fn_c_try_link
1613
1614# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615# -------------------------------------------------------
1616# Tests whether HEADER exists and can be compiled using the include files in
1617# INCLUDES, setting the cache variable VAR accordingly.
1618ac_fn_c_check_header_compile ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; }
1623if eval \${$3+:} false; then :
1624  $as_echo_n "(cached) " >&6
1625else
1626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627/* end confdefs.h.  */
1628$4
1629#include <$2>
1630_ACEOF
1631if ac_fn_c_try_compile "$LINENO"; then :
1632  eval "$3=yes"
1633else
1634  eval "$3=no"
1635fi
1636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637fi
1638eval ac_res=\$$3
1639	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640$as_echo "$ac_res" >&6; }
1641  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642
1643} # ac_fn_c_check_header_compile
1644
1645# ac_fn_c_try_cpp LINENO
1646# ----------------------
1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_cpp ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  if { { ac_try="$ac_cpp conftest.$ac_ext"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659  ac_status=$?
1660  if test -s conftest.err; then
1661    grep -v '^ *+' conftest.err >conftest.er1
1662    cat conftest.er1 >&5
1663    mv -f conftest.er1 conftest.err
1664  fi
1665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666  test $ac_status = 0; } > conftest.i && {
1667	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668	 test ! -s conftest.err
1669       }; then :
1670  ac_retval=0
1671else
1672  $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675    ac_retval=1
1676fi
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678  as_fn_set_status $ac_retval
1679
1680} # ac_fn_c_try_cpp
1681
1682# ac_fn_c_try_run LINENO
1683# ----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685# that executables *can* be run.
1686ac_fn_c_try_run ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692  *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696  (eval "$ac_link") 2>&5
1697  ac_status=$?
1698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700  { { case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_try") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; }; }; then :
1710  ac_retval=0
1711else
1712  $as_echo "$as_me: program exited with status $ac_status" >&5
1713       $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716       ac_retval=$ac_status
1717fi
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_run
1723
1724# ac_fn_c_check_func LINENO FUNC VAR
1725# ----------------------------------
1726# Tests whether FUNC exists, setting the cache variable VAR accordingly
1727ac_fn_c_check_func ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if eval \${$3+:} false; then :
1733  $as_echo_n "(cached) " >&6
1734else
1735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1739#define $2 innocuous_$2
1740
1741/* System header to define __stub macros and hopefully few prototypes,
1742    which can conflict with char $2 (); below.
1743    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744    <limits.h> exists even on freestanding compilers.  */
1745
1746#ifdef __STDC__
1747# include <limits.h>
1748#else
1749# include <assert.h>
1750#endif
1751
1752#undef $2
1753
1754/* Override any GCC internal prototype to avoid an error.
1755   Use char because int might match the return type of a GCC
1756   builtin and then its argument prototype would still apply.  */
1757#ifdef __cplusplus
1758extern "C"
1759#endif
1760char $2 ();
1761/* The GNU C library defines this for functions which it implements
1762    to always fail with ENOSYS.  Some functions are actually named
1763    something starting with __ and the normal name is an alias.  */
1764#if defined __stub_$2 || defined __stub___$2
1765choke me
1766#endif
1767
1768int
1769main ()
1770{
1771return $2 ();
1772  ;
1773  return 0;
1774}
1775_ACEOF
1776if ac_fn_c_try_link "$LINENO"; then :
1777  eval "$3=yes"
1778else
1779  eval "$3=no"
1780fi
1781rm -f core conftest.err conftest.$ac_objext \
1782    conftest$ac_exeext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_func
1790
1791# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1792# ---------------------------------------------
1793# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1794# accordingly.
1795ac_fn_c_check_decl ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  as_decl_name=`echo $2|sed 's/ *(.*//'`
1799  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1801$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1802if eval \${$3+:} false; then :
1803  $as_echo_n "(cached) " >&6
1804else
1805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h.  */
1807$4
1808int
1809main ()
1810{
1811#ifndef $as_decl_name
1812#ifdef __cplusplus
1813  (void) $as_decl_use;
1814#else
1815  (void) $as_decl_name;
1816#endif
1817#endif
1818
1819  ;
1820  return 0;
1821}
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_decl
1836cat >config.log <<_ACEOF
1837This file contains any messages produced by compilers while
1838running configure, to aid debugging if configure makes a mistake.
1839
1840It was created by libXrender $as_me 0.9.7, which was
1841generated by GNU Autoconf 2.68.  Invocation command line was
1842
1843  $ $0 $@
1844
1845_ACEOF
1846exec 5>>config.log
1847{
1848cat <<_ASUNAME
1849## --------- ##
1850## Platform. ##
1851## --------- ##
1852
1853hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1861
1862/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1863/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1864/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1866/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1867/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1868/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1869
1870_ASUNAME
1871
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875  IFS=$as_save_IFS
1876  test -z "$as_dir" && as_dir=.
1877    $as_echo "PATH: $as_dir"
1878  done
1879IFS=$as_save_IFS
1880
1881} >&5
1882
1883cat >&5 <<_ACEOF
1884
1885
1886## ----------- ##
1887## Core tests. ##
1888## ----------- ##
1889
1890_ACEOF
1891
1892
1893# Keep a trace of the command line.
1894# Strip out --no-create and --no-recursion so they do not pile up.
1895# Strip out --silent because we don't want to record it for future runs.
1896# Also quote any args containing shell meta-characters.
1897# Make two passes to allow for proper duplicate-argument suppression.
1898ac_configure_args=
1899ac_configure_args0=
1900ac_configure_args1=
1901ac_must_keep_next=false
1902for ac_pass in 1 2
1903do
1904  for ac_arg
1905  do
1906    case $ac_arg in
1907    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909    | -silent | --silent | --silen | --sile | --sil)
1910      continue ;;
1911    *\'*)
1912      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913    esac
1914    case $ac_pass in
1915    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1916    2)
1917      as_fn_append ac_configure_args1 " '$ac_arg'"
1918      if test $ac_must_keep_next = true; then
1919	ac_must_keep_next=false # Got value, back to normal.
1920      else
1921	case $ac_arg in
1922	  *=* | --config-cache | -C | -disable-* | --disable-* \
1923	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925	  | -with-* | --with-* | -without-* | --without-* | --x)
1926	    case "$ac_configure_args0 " in
1927	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928	    esac
1929	    ;;
1930	  -* ) ac_must_keep_next=true ;;
1931	esac
1932      fi
1933      as_fn_append ac_configure_args " '$ac_arg'"
1934      ;;
1935    esac
1936  done
1937done
1938{ ac_configure_args0=; unset ac_configure_args0;}
1939{ ac_configure_args1=; unset ac_configure_args1;}
1940
1941# When interrupted or exit'd, cleanup temporary files, and complete
1942# config.log.  We remove comments because anyway the quotes in there
1943# would cause problems or look ugly.
1944# WARNING: Use '\'' to represent an apostrophe within the trap.
1945# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946trap 'exit_status=$?
1947  # Save into config.log some information that might help in debugging.
1948  {
1949    echo
1950
1951    $as_echo "## ---------------- ##
1952## Cache variables. ##
1953## ---------------- ##"
1954    echo
1955    # The following way of writing the cache mishandles newlines in values,
1956(
1957  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1958    eval ac_val=\$$ac_var
1959    case $ac_val in #(
1960    *${as_nl}*)
1961      case $ac_var in #(
1962      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1963$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1964      esac
1965      case $ac_var in #(
1966      _ | IFS | as_nl) ;; #(
1967      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1968      *) { eval $ac_var=; unset $ac_var;} ;;
1969      esac ;;
1970    esac
1971  done
1972  (set) 2>&1 |
1973    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1974    *${as_nl}ac_space=\ *)
1975      sed -n \
1976	"s/'\''/'\''\\\\'\'''\''/g;
1977	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1978      ;; #(
1979    *)
1980      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1981      ;;
1982    esac |
1983    sort
1984)
1985    echo
1986
1987    $as_echo "## ----------------- ##
1988## Output variables. ##
1989## ----------------- ##"
1990    echo
1991    for ac_var in $ac_subst_vars
1992    do
1993      eval ac_val=\$$ac_var
1994      case $ac_val in
1995      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996      esac
1997      $as_echo "$ac_var='\''$ac_val'\''"
1998    done | sort
1999    echo
2000
2001    if test -n "$ac_subst_files"; then
2002      $as_echo "## ------------------- ##
2003## File substitutions. ##
2004## ------------------- ##"
2005      echo
2006      for ac_var in $ac_subst_files
2007      do
2008	eval ac_val=\$$ac_var
2009	case $ac_val in
2010	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2011	esac
2012	$as_echo "$ac_var='\''$ac_val'\''"
2013      done | sort
2014      echo
2015    fi
2016
2017    if test -s confdefs.h; then
2018      $as_echo "## ----------- ##
2019## confdefs.h. ##
2020## ----------- ##"
2021      echo
2022      cat confdefs.h
2023      echo
2024    fi
2025    test "$ac_signal" != 0 &&
2026      $as_echo "$as_me: caught signal $ac_signal"
2027    $as_echo "$as_me: exit $exit_status"
2028  } >&5
2029  rm -f core *.core core.conftest.* &&
2030    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031    exit $exit_status
2032' 0
2033for ac_signal in 1 2 13 15; do
2034  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035done
2036ac_signal=0
2037
2038# confdefs.h avoids OS command line length limits that DEFS can exceed.
2039rm -f -r conftest* confdefs.h
2040
2041$as_echo "/* confdefs.h */" > confdefs.h
2042
2043# Predefined preprocessor variables.
2044
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_NAME "$PACKAGE_NAME"
2047_ACEOF
2048
2049cat >>confdefs.h <<_ACEOF
2050#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2051_ACEOF
2052
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_VERSION "$PACKAGE_VERSION"
2055_ACEOF
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_STRING "$PACKAGE_STRING"
2059_ACEOF
2060
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2063_ACEOF
2064
2065cat >>confdefs.h <<_ACEOF
2066#define PACKAGE_URL "$PACKAGE_URL"
2067_ACEOF
2068
2069
2070# Let the site file select an alternate cache file if it wants to.
2071# Prefer an explicitly selected file to automatically selected ones.
2072ac_site_file1=NONE
2073ac_site_file2=NONE
2074if test -n "$CONFIG_SITE"; then
2075  # We do not want a PATH search for config.site.
2076  case $CONFIG_SITE in #((
2077    -*)  ac_site_file1=./$CONFIG_SITE;;
2078    */*) ac_site_file1=$CONFIG_SITE;;
2079    *)   ac_site_file1=./$CONFIG_SITE;;
2080  esac
2081elif test "x$prefix" != xNONE; then
2082  ac_site_file1=$prefix/share/config.site
2083  ac_site_file2=$prefix/etc/config.site
2084else
2085  ac_site_file1=$ac_default_prefix/share/config.site
2086  ac_site_file2=$ac_default_prefix/etc/config.site
2087fi
2088for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2089do
2090  test "x$ac_site_file" = xNONE && continue
2091  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2092    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2093$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2094    sed 's/^/| /' "$ac_site_file" >&5
2095    . "$ac_site_file" \
2096      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2098as_fn_error $? "failed to load site script $ac_site_file
2099See \`config.log' for more details" "$LINENO" 5; }
2100  fi
2101done
2102
2103if test -r "$cache_file"; then
2104  # Some versions of bash will fail to source /dev/null (special files
2105  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2106  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2107    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2108$as_echo "$as_me: loading cache $cache_file" >&6;}
2109    case $cache_file in
2110      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2111      *)                      . "./$cache_file";;
2112    esac
2113  fi
2114else
2115  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2116$as_echo "$as_me: creating cache $cache_file" >&6;}
2117  >$cache_file
2118fi
2119
2120# Check that the precious variables saved in the cache have kept the same
2121# value.
2122ac_cache_corrupted=false
2123for ac_var in $ac_precious_vars; do
2124  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2125  eval ac_new_set=\$ac_env_${ac_var}_set
2126  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2127  eval ac_new_val=\$ac_env_${ac_var}_value
2128  case $ac_old_set,$ac_new_set in
2129    set,)
2130      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2131$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2132      ac_cache_corrupted=: ;;
2133    ,set)
2134      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2135$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2136      ac_cache_corrupted=: ;;
2137    ,);;
2138    *)
2139      if test "x$ac_old_val" != "x$ac_new_val"; then
2140	# differences in whitespace do not lead to failure.
2141	ac_old_val_w=`echo x $ac_old_val`
2142	ac_new_val_w=`echo x $ac_new_val`
2143	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2144	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2145$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2146	  ac_cache_corrupted=:
2147	else
2148	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2149$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2150	  eval $ac_var=\$ac_old_val
2151	fi
2152	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2153$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2154	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2155$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2156      fi;;
2157  esac
2158  # Pass precious variables to config.status.
2159  if test "$ac_new_set" = set; then
2160    case $ac_new_val in
2161    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2162    *) ac_arg=$ac_var=$ac_new_val ;;
2163    esac
2164    case " $ac_configure_args " in
2165      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2166      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2167    esac
2168  fi
2169done
2170if $ac_cache_corrupted; then
2171  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2174$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2175  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2176fi
2177## -------------------- ##
2178## Main body of script. ##
2179## -------------------- ##
2180
2181ac_ext=c
2182ac_cpp='$CPP $CPPFLAGS'
2183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186
2187
2188
2189ac_config_headers="$ac_config_headers config.h"
2190
2191
2192# Initialize Automake
2193am__api_version='1.11'
2194
2195ac_aux_dir=
2196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197  if 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/install.sh"; then
2202    ac_aux_dir=$ac_dir
2203    ac_install_sh="$ac_aux_dir/install.sh -c"
2204    break
2205  elif test -f "$ac_dir/shtool"; then
2206    ac_aux_dir=$ac_dir
2207    ac_install_sh="$ac_aux_dir/shtool install -c"
2208    break
2209  fi
2210done
2211if test -z "$ac_aux_dir"; then
2212  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2213fi
2214
2215# These three variables are undocumented and unsupported,
2216# and are intended to be withdrawn in a future Autoconf release.
2217# They can cause serious problems if a builder's source tree is in a directory
2218# whose full name contains unusual characters.
2219ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2220ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2221ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2222
2223
2224# Find a good install program.  We prefer a C program (faster),
2225# so one script is as good as another.  But avoid the broken or
2226# incompatible versions:
2227# SysV /etc/install, /usr/sbin/install
2228# SunOS /usr/etc/install
2229# IRIX /sbin/install
2230# AIX /bin/install
2231# AmigaOS /C/install, which installs bootblocks on floppy discs
2232# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2233# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2234# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2235# OS/2's system install, which has a completely different semantic
2236# ./install, which can be erroneously created by make from ./install.sh.
2237# Reject install programs that cannot install multiple files.
2238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2239$as_echo_n "checking for a BSD-compatible install... " >&6; }
2240if test -z "$INSTALL"; then
2241if ${ac_cv_path_install+:} false; then :
2242  $as_echo_n "(cached) " >&6
2243else
2244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247  IFS=$as_save_IFS
2248  test -z "$as_dir" && as_dir=.
2249    # Account for people who put trailing slashes in PATH elements.
2250case $as_dir/ in #((
2251  ./ | .// | /[cC]/* | \
2252  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2253  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2254  /usr/ucb/* ) ;;
2255  *)
2256    # OSF1 and SCO ODT 3.0 have their own names for install.
2257    # Don't use installbsd from OSF since it installs stuff as root
2258    # by default.
2259    for ac_prog in ginstall scoinst install; do
2260      for ac_exec_ext in '' $ac_executable_extensions; do
2261	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2262	  if test $ac_prog = install &&
2263	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264	    # AIX install.  It has an incompatible calling convention.
2265	    :
2266	  elif test $ac_prog = install &&
2267	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268	    # program-specific install script used by HP pwplus--don't use.
2269	    :
2270	  else
2271	    rm -rf conftest.one conftest.two conftest.dir
2272	    echo one > conftest.one
2273	    echo two > conftest.two
2274	    mkdir conftest.dir
2275	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2276	      test -s conftest.one && test -s conftest.two &&
2277	      test -s conftest.dir/conftest.one &&
2278	      test -s conftest.dir/conftest.two
2279	    then
2280	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2281	      break 3
2282	    fi
2283	  fi
2284	fi
2285      done
2286    done
2287    ;;
2288esac
2289
2290  done
2291IFS=$as_save_IFS
2292
2293rm -rf conftest.one conftest.two conftest.dir
2294
2295fi
2296  if test "${ac_cv_path_install+set}" = set; then
2297    INSTALL=$ac_cv_path_install
2298  else
2299    # As a last resort, use the slow shell script.  Don't cache a
2300    # value for INSTALL within a source directory, because that will
2301    # break other packages using the cache if that directory is
2302    # removed, or if the value is a relative name.
2303    INSTALL=$ac_install_sh
2304  fi
2305fi
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2307$as_echo "$INSTALL" >&6; }
2308
2309# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310# It thinks the first close brace ends the variable substitution.
2311test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2312
2313test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2314
2315test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2316
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2318$as_echo_n "checking whether build environment is sane... " >&6; }
2319# Just in case
2320sleep 1
2321echo timestamp > conftest.file
2322# Reject unsafe characters in $srcdir or the absolute working directory
2323# name.  Accept space and tab only in the latter.
2324am_lf='
2325'
2326case `pwd` in
2327  *[\\\"\#\$\&\'\`$am_lf]*)
2328    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2329esac
2330case $srcdir in
2331  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2332    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2333esac
2334
2335# Do `set' in a subshell so we don't clobber the current shell's
2336# arguments.  Must try -L first in case configure is actually a
2337# symlink; some systems play weird games with the mod time of symlinks
2338# (eg FreeBSD returns the mod time of the symlink's containing
2339# directory).
2340if (
2341   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2342   if test "$*" = "X"; then
2343      # -L didn't work.
2344      set X `ls -t "$srcdir/configure" conftest.file`
2345   fi
2346   rm -f conftest.file
2347   if test "$*" != "X $srcdir/configure conftest.file" \
2348      && test "$*" != "X conftest.file $srcdir/configure"; then
2349
2350      # If neither matched, then we have a broken ls.  This can happen
2351      # if, for instance, CONFIG_SHELL is bash and it inherits a
2352      # broken ls alias from the environment.  This has actually
2353      # happened.  Such a system could not be considered "sane".
2354      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2355alias in your environment" "$LINENO" 5
2356   fi
2357
2358   test "$2" = conftest.file
2359   )
2360then
2361   # Ok.
2362   :
2363else
2364   as_fn_error $? "newly created file is older than distributed files!
2365Check your system clock" "$LINENO" 5
2366fi
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2368$as_echo "yes" >&6; }
2369test "$program_prefix" != NONE &&
2370  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2371# Use a double $ so make ignores it.
2372test "$program_suffix" != NONE &&
2373  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2374# Double any \ or $.
2375# By default was `s,x,x', remove it if useless.
2376ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2377program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2378
2379# expand $ac_aux_dir to an absolute path
2380am_aux_dir=`cd $ac_aux_dir && pwd`
2381
2382if test x"${MISSING+set}" != xset; then
2383  case $am_aux_dir in
2384  *\ * | *\	*)
2385    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2386  *)
2387    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2388  esac
2389fi
2390# Use eval to expand $SHELL
2391if eval "$MISSING --run true"; then
2392  am_missing_run="$MISSING --run "
2393else
2394  am_missing_run=
2395  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2396$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2397fi
2398
2399if test x"${install_sh}" != xset; then
2400  case $am_aux_dir in
2401  *\ * | *\	*)
2402    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2403  *)
2404    install_sh="\${SHELL} $am_aux_dir/install-sh"
2405  esac
2406fi
2407
2408# Installed binaries are usually stripped using `strip' when the user
2409# run `make install-strip'.  However `strip' might not be the right
2410# tool to use in cross-compilation environments, therefore Automake
2411# will honor the `STRIP' environment variable to overrule this program.
2412if test "$cross_compiling" != no; then
2413  if test -n "$ac_tool_prefix"; then
2414  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2415set dummy ${ac_tool_prefix}strip; ac_word=$2
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
2418if ${ac_cv_prog_STRIP+:} false; then :
2419  $as_echo_n "(cached) " >&6
2420else
2421  if test -n "$STRIP"; then
2422  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427  IFS=$as_save_IFS
2428  test -z "$as_dir" && as_dir=.
2429    for ac_exec_ext in '' $ac_executable_extensions; do
2430  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433    break 2
2434  fi
2435done
2436  done
2437IFS=$as_save_IFS
2438
2439fi
2440fi
2441STRIP=$ac_cv_prog_STRIP
2442if test -n "$STRIP"; then
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2444$as_echo "$STRIP" >&6; }
2445else
2446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447$as_echo "no" >&6; }
2448fi
2449
2450
2451fi
2452if test -z "$ac_cv_prog_STRIP"; then
2453  ac_ct_STRIP=$STRIP
2454  # Extract the first word of "strip", so it can be a program name with args.
2455set dummy strip; ac_word=$2
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
2458if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2459  $as_echo_n "(cached) " >&6
2460else
2461  if test -n "$ac_ct_STRIP"; then
2462  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467  IFS=$as_save_IFS
2468  test -z "$as_dir" && as_dir=.
2469    for ac_exec_ext in '' $ac_executable_extensions; do
2470  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471    ac_cv_prog_ac_ct_STRIP="strip"
2472    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473    break 2
2474  fi
2475done
2476  done
2477IFS=$as_save_IFS
2478
2479fi
2480fi
2481ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2482if test -n "$ac_ct_STRIP"; then
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2484$as_echo "$ac_ct_STRIP" >&6; }
2485else
2486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487$as_echo "no" >&6; }
2488fi
2489
2490  if test "x$ac_ct_STRIP" = x; then
2491    STRIP=":"
2492  else
2493    case $cross_compiling:$ac_tool_warned in
2494yes:)
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497ac_tool_warned=yes ;;
2498esac
2499    STRIP=$ac_ct_STRIP
2500  fi
2501else
2502  STRIP="$ac_cv_prog_STRIP"
2503fi
2504
2505fi
2506INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2507
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2509$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2510if test -z "$MKDIR_P"; then
2511  if ${ac_cv_path_mkdir+:} false; then :
2512  $as_echo_n "(cached) " >&6
2513else
2514  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2516do
2517  IFS=$as_save_IFS
2518  test -z "$as_dir" && as_dir=.
2519    for ac_prog in mkdir gmkdir; do
2520	 for ac_exec_ext in '' $ac_executable_extensions; do
2521	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2522	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2523	     'mkdir (GNU coreutils) '* | \
2524	     'mkdir (coreutils) '* | \
2525	     'mkdir (fileutils) '4.1*)
2526	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2527	       break 3;;
2528	   esac
2529	 done
2530       done
2531  done
2532IFS=$as_save_IFS
2533
2534fi
2535
2536  test -d ./--version && rmdir ./--version
2537  if test "${ac_cv_path_mkdir+set}" = set; then
2538    MKDIR_P="$ac_cv_path_mkdir -p"
2539  else
2540    # As a last resort, use the slow shell script.  Don't cache a
2541    # value for MKDIR_P within a source directory, because that will
2542    # break other packages using the cache if that directory is
2543    # removed, or if the value is a relative name.
2544    MKDIR_P="$ac_install_sh -d"
2545  fi
2546fi
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2548$as_echo "$MKDIR_P" >&6; }
2549
2550mkdir_p="$MKDIR_P"
2551case $mkdir_p in
2552  [\\/$]* | ?:[\\/]*) ;;
2553  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2554esac
2555
2556for ac_prog in gawk mawk nawk awk
2557do
2558  # Extract the first word of "$ac_prog", so it can be a program name with args.
2559set dummy $ac_prog; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if ${ac_cv_prog_AWK+:} false; then :
2563  $as_echo_n "(cached) " >&6
2564else
2565  if test -n "$AWK"; then
2566  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571  IFS=$as_save_IFS
2572  test -z "$as_dir" && as_dir=.
2573    for ac_exec_ext in '' $ac_executable_extensions; do
2574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575    ac_cv_prog_AWK="$ac_prog"
2576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580  done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585AWK=$ac_cv_prog_AWK
2586if test -n "$AWK"; then
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588$as_echo "$AWK" >&6; }
2589else
2590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595  test -n "$AWK" && break
2596done
2597
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2599$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2600set x ${MAKE-make}
2601ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2602if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  cat >conftest.make <<\_ACEOF
2606SHELL = /bin/sh
2607all:
2608	@echo '@@@%%%=$(MAKE)=@@@%%%'
2609_ACEOF
2610# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2611case `${MAKE-make} -f conftest.make 2>/dev/null` in
2612  *@@@%%%=?*=@@@%%%*)
2613    eval ac_cv_prog_make_${ac_make}_set=yes;;
2614  *)
2615    eval ac_cv_prog_make_${ac_make}_set=no;;
2616esac
2617rm -f conftest.make
2618fi
2619if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621$as_echo "yes" >&6; }
2622  SET_MAKE=
2623else
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625$as_echo "no" >&6; }
2626  SET_MAKE="MAKE=${MAKE-make}"
2627fi
2628
2629rm -rf .tst 2>/dev/null
2630mkdir .tst 2>/dev/null
2631if test -d .tst; then
2632  am__leading_dot=.
2633else
2634  am__leading_dot=_
2635fi
2636rmdir .tst 2>/dev/null
2637
2638if test "`cd $srcdir && pwd`" != "`pwd`"; then
2639  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2640  # is not polluted with repeated "-I."
2641  am__isrc=' -I$(srcdir)'
2642  # test to see if srcdir already configured
2643  if test -f $srcdir/config.status; then
2644    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2645  fi
2646fi
2647
2648# test whether we have cygpath
2649if test -z "$CYGPATH_W"; then
2650  if (cygpath --version) >/dev/null 2>/dev/null; then
2651    CYGPATH_W='cygpath -w'
2652  else
2653    CYGPATH_W=echo
2654  fi
2655fi
2656
2657
2658# Define the identity of the package.
2659 PACKAGE='libXrender'
2660 VERSION='0.9.7'
2661
2662
2663cat >>confdefs.h <<_ACEOF
2664#define PACKAGE "$PACKAGE"
2665_ACEOF
2666
2667
2668cat >>confdefs.h <<_ACEOF
2669#define VERSION "$VERSION"
2670_ACEOF
2671
2672# Some tools Automake needs.
2673
2674ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2675
2676
2677AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2678
2679
2680AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2681
2682
2683AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2684
2685
2686MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2687
2688# We need awk for the "check" target.  The system "awk" is bad on
2689# some platforms.
2690# Always define AMTAR for backward compatibility.
2691
2692AMTAR=${AMTAR-"${am_missing_run}tar"}
2693
2694am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2695
2696
2697
2698
2699
2700
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2702$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2703    # Check whether --enable-maintainer-mode was given.
2704if test "${enable_maintainer_mode+set}" = set; then :
2705  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2706else
2707  USE_MAINTAINER_MODE=no
2708fi
2709
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2711$as_echo "$USE_MAINTAINER_MODE" >&6; }
2712   if test $USE_MAINTAINER_MODE = yes; then
2713  MAINTAINER_MODE_TRUE=
2714  MAINTAINER_MODE_FALSE='#'
2715else
2716  MAINTAINER_MODE_TRUE='#'
2717  MAINTAINER_MODE_FALSE=
2718fi
2719
2720  MAINT=$MAINTAINER_MODE_TRUE
2721
2722
2723
2724# Initialize libtool
2725case `pwd` in
2726  *\ * | *\	*)
2727    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2728$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2729esac
2730
2731
2732
2733macro_version='2.4'
2734macro_revision='1.3293'
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748ltmain="$ac_aux_dir/ltmain.sh"
2749
2750# Make sure we can run config.sub.
2751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2752  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2753
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755$as_echo_n "checking build system type... " >&6; }
2756if ${ac_cv_build+:} false; then :
2757  $as_echo_n "(cached) " >&6
2758else
2759  ac_build_alias=$build_alias
2760test "x$ac_build_alias" = x &&
2761  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2762test "x$ac_build_alias" = x &&
2763  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2764ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2766
2767fi
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769$as_echo "$ac_cv_build" >&6; }
2770case $ac_cv_build in
2771*-*-*) ;;
2772*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2773esac
2774build=$ac_cv_build
2775ac_save_IFS=$IFS; IFS='-'
2776set x $ac_cv_build
2777shift
2778build_cpu=$1
2779build_vendor=$2
2780shift; shift
2781# Remember, the first character of IFS is used to create $*,
2782# except with old shells:
2783build_os=$*
2784IFS=$ac_save_IFS
2785case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2786
2787
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789$as_echo_n "checking host system type... " >&6; }
2790if ${ac_cv_host+:} false; then :
2791  $as_echo_n "(cached) " >&6
2792else
2793  if test "x$host_alias" = x; then
2794  ac_cv_host=$ac_cv_build
2795else
2796  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2798fi
2799
2800fi
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802$as_echo "$ac_cv_host" >&6; }
2803case $ac_cv_host in
2804*-*-*) ;;
2805*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2806esac
2807host=$ac_cv_host
2808ac_save_IFS=$IFS; IFS='-'
2809set x $ac_cv_host
2810shift
2811host_cpu=$1
2812host_vendor=$2
2813shift; shift
2814# Remember, the first character of IFS is used to create $*,
2815# except with old shells:
2816host_os=$*
2817IFS=$ac_save_IFS
2818case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819
2820
2821# Backslashify metacharacters that are still active within
2822# double-quoted strings.
2823sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2824
2825# Same as above, but do not quote variable references.
2826double_quote_subst='s/\(["`\\]\)/\\\1/g'
2827
2828# Sed substitution to delay expansion of an escaped shell variable in a
2829# double_quote_subst'ed string.
2830delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2831
2832# Sed substitution to delay expansion of an escaped single quote.
2833delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2834
2835# Sed substitution to avoid accidental globbing in evaled expressions
2836no_glob_subst='s/\*/\\\*/g'
2837
2838ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2839ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2840ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2841
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2843$as_echo_n "checking how to print strings... " >&6; }
2844# Test print first, because it will be a builtin if present.
2845if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2846   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2847  ECHO='print -r --'
2848elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2849  ECHO='printf %s\n'
2850else
2851  # Use this function as a fallback that always works.
2852  func_fallback_echo ()
2853  {
2854    eval 'cat <<_LTECHO_EOF
2855$1
2856_LTECHO_EOF'
2857  }
2858  ECHO='func_fallback_echo'
2859fi
2860
2861# func_echo_all arg...
2862# Invoke $ECHO with all args, space-separated.
2863func_echo_all ()
2864{
2865    $ECHO ""
2866}
2867
2868case "$ECHO" in
2869  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2870$as_echo "printf" >&6; } ;;
2871  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2872$as_echo "print -r" >&6; } ;;
2873  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2874$as_echo "cat" >&6; } ;;
2875esac
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890DEPDIR="${am__leading_dot}deps"
2891
2892ac_config_commands="$ac_config_commands depfiles"
2893
2894
2895am_make=${MAKE-make}
2896cat > confinc << 'END'
2897am__doit:
2898	@echo this is the am__doit target
2899.PHONY: am__doit
2900END
2901# If we don't find an include directive, just comment out the code.
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2903$as_echo_n "checking for style of include used by $am_make... " >&6; }
2904am__include="#"
2905am__quote=
2906_am_result=none
2907# First try GNU make style include.
2908echo "include confinc" > confmf
2909# Ignore all kinds of additional output from `make'.
2910case `$am_make -s -f confmf 2> /dev/null` in #(
2911*the\ am__doit\ target*)
2912  am__include=include
2913  am__quote=
2914  _am_result=GNU
2915  ;;
2916esac
2917# Now try BSD make style include.
2918if test "$am__include" = "#"; then
2919   echo '.include "confinc"' > confmf
2920   case `$am_make -s -f confmf 2> /dev/null` in #(
2921   *the\ am__doit\ target*)
2922     am__include=.include
2923     am__quote="\""
2924     _am_result=BSD
2925     ;;
2926   esac
2927fi
2928
2929
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2931$as_echo "$_am_result" >&6; }
2932rm -f confinc confmf
2933
2934# Check whether --enable-dependency-tracking was given.
2935if test "${enable_dependency_tracking+set}" = set; then :
2936  enableval=$enable_dependency_tracking;
2937fi
2938
2939if test "x$enable_dependency_tracking" != xno; then
2940  am_depcomp="$ac_aux_dir/depcomp"
2941  AMDEPBACKSLASH='\'
2942fi
2943 if test "x$enable_dependency_tracking" != xno; then
2944  AMDEP_TRUE=
2945  AMDEP_FALSE='#'
2946else
2947  AMDEP_TRUE='#'
2948  AMDEP_FALSE=
2949fi
2950
2951
2952ac_ext=c
2953ac_cpp='$CPP $CPPFLAGS'
2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957if test -n "$ac_tool_prefix"; then
2958  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}gcc; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_CC+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if test -n "$CC"; then
2966  ac_cv_prog_CC="$CC" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985CC=$ac_cv_prog_CC
2986if test -n "$CC"; then
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988$as_echo "$CC" >&6; }
2989else
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994
2995fi
2996if test -z "$ac_cv_prog_CC"; then
2997  ac_ct_CC=$CC
2998  # Extract the first word of "gcc", so it can be a program name with args.
2999set dummy gcc; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  if test -n "$ac_ct_CC"; then
3006  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011  IFS=$as_save_IFS
3012  test -z "$as_dir" && as_dir=.
3013    for ac_exec_ext in '' $ac_executable_extensions; do
3014  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015    ac_cv_prog_ac_ct_CC="gcc"
3016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017    break 2
3018  fi
3019done
3020  done
3021IFS=$as_save_IFS
3022
3023fi
3024fi
3025ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026if test -n "$ac_ct_CC"; then
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028$as_echo "$ac_ct_CC" >&6; }
3029else
3030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
3032fi
3033
3034  if test "x$ac_ct_CC" = x; then
3035    CC=""
3036  else
3037    case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043    CC=$ac_ct_CC
3044  fi
3045else
3046  CC="$ac_cv_prog_CC"
3047fi
3048
3049if test -z "$CC"; then
3050          if test -n "$ac_tool_prefix"; then
3051    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052set dummy ${ac_tool_prefix}cc; ac_word=$2
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054$as_echo_n "checking for $ac_word... " >&6; }
3055if ${ac_cv_prog_CC+:} false; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  if test -n "$CC"; then
3059  ac_cv_prog_CC="$CC" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064  IFS=$as_save_IFS
3065  test -z "$as_dir" && as_dir=.
3066    for ac_exec_ext in '' $ac_executable_extensions; do
3067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068    ac_cv_prog_CC="${ac_tool_prefix}cc"
3069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070    break 2
3071  fi
3072done
3073  done
3074IFS=$as_save_IFS
3075
3076fi
3077fi
3078CC=$ac_cv_prog_CC
3079if test -n "$CC"; then
3080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081$as_echo "$CC" >&6; }
3082else
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
3085fi
3086
3087
3088  fi
3089fi
3090if test -z "$CC"; then
3091  # Extract the first word of "cc", so it can be a program name with args.
3092set dummy cc; ac_word=$2
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
3095if ${ac_cv_prog_CC+:} false; then :
3096  $as_echo_n "(cached) " >&6
3097else
3098  if test -n "$CC"; then
3099  ac_cv_prog_CC="$CC" # Let the user override the test.
3100else
3101  ac_prog_rejected=no
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105  IFS=$as_save_IFS
3106  test -z "$as_dir" && as_dir=.
3107    for ac_exec_ext in '' $ac_executable_extensions; do
3108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110       ac_prog_rejected=yes
3111       continue
3112     fi
3113    ac_cv_prog_CC="cc"
3114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118  done
3119IFS=$as_save_IFS
3120
3121if test $ac_prog_rejected = yes; then
3122  # We found a bogon in the path, so make sure we never use it.
3123  set dummy $ac_cv_prog_CC
3124  shift
3125  if test $# != 0; then
3126    # We chose a different compiler from the bogus one.
3127    # However, it has the same basename, so the bogon will be chosen
3128    # first if we set CC to just the basename; use the full file name.
3129    shift
3130    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3131  fi
3132fi
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145fi
3146if test -z "$CC"; then
3147  if test -n "$ac_tool_prefix"; then
3148  for ac_prog in cl.exe
3149  do
3150    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
3154if ${ac_cv_prog_CC+:} false; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  if test -n "$CC"; then
3158  ac_cv_prog_CC="$CC" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165    for ac_exec_ext in '' $ac_executable_extensions; do
3166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172  done
3173IFS=$as_save_IFS
3174
3175fi
3176fi
3177CC=$ac_cv_prog_CC
3178if test -n "$CC"; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180$as_echo "$CC" >&6; }
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186
3187    test -n "$CC" && break
3188  done
3189fi
3190if test -z "$CC"; then
3191  ac_ct_CC=$CC
3192  for ac_prog in cl.exe
3193do
3194  # Extract the first word of "$ac_prog", so it can be a program name with args.
3195set dummy $ac_prog; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if ${ac_cv_prog_ac_ct_CC+:} false; then :
3199  $as_echo_n "(cached) " >&6
3200else
3201  if test -n "$ac_ct_CC"; then
3202  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203else
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209    for ac_exec_ext in '' $ac_executable_extensions; do
3210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211    ac_cv_prog_ac_ct_CC="$ac_prog"
3212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216  done
3217IFS=$as_save_IFS
3218
3219fi
3220fi
3221ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222if test -n "$ac_ct_CC"; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224$as_echo "$ac_ct_CC" >&6; }
3225else
3226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
3228fi
3229
3230
3231  test -n "$ac_ct_CC" && break
3232done
3233
3234  if test "x$ac_ct_CC" = x; then
3235    CC=""
3236  else
3237    case $cross_compiling:$ac_tool_warned in
3238yes:)
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241ac_tool_warned=yes ;;
3242esac
3243    CC=$ac_ct_CC
3244  fi
3245fi
3246
3247fi
3248
3249
3250test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252as_fn_error $? "no acceptable C compiler found in \$PATH
3253See \`config.log' for more details" "$LINENO" 5; }
3254
3255# Provide some information about the compiler.
3256$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257set X $ac_compile
3258ac_compiler=$2
3259for ac_option in --version -v -V -qversion; do
3260  { { ac_try="$ac_compiler $ac_option >&5"
3261case "(($ac_try" in
3262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263  *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3268  ac_status=$?
3269  if test -s conftest.err; then
3270    sed '10a\
3271... rest of stderr output deleted ...
3272         10q' conftest.err >conftest.er1
3273    cat conftest.er1 >&5
3274  fi
3275  rm -f conftest.er1 conftest.err
3276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }
3278done
3279
3280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281/* end confdefs.h.  */
3282
3283int
3284main ()
3285{
3286
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291ac_clean_files_save=$ac_clean_files
3292ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3293# Try to create an executable without -o first, disregard a.out.
3294# It will help us diagnose broken compilers, and finding out an intuition
3295# of exeext.
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3297$as_echo_n "checking whether the C compiler works... " >&6; }
3298ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3299
3300# The possible output files:
3301ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302
3303ac_rmfiles=
3304for ac_file in $ac_files
3305do
3306  case $ac_file in
3307    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309  esac
3310done
3311rm -f $ac_rmfiles
3312
3313if { { ac_try="$ac_link_default"
3314case "(($ac_try" in
3315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316  *) ac_try_echo=$ac_try;;
3317esac
3318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319$as_echo "$ac_try_echo"; } >&5
3320  (eval "$ac_link_default") 2>&5
3321  ac_status=$?
3322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323  test $ac_status = 0; }; then :
3324  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3325# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3326# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3327# so that the user can short-circuit this test for compilers unknown to
3328# Autoconf.
3329for ac_file in $ac_files ''
3330do
3331  test -f "$ac_file" || continue
3332  case $ac_file in
3333    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334	;;
3335    [ab].out )
3336	# We found the default executable, but exeext='' is most
3337	# certainly right.
3338	break;;
3339    *.* )
3340	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3341	then :; else
3342	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343	fi
3344	# We set ac_cv_exeext here because the later test for it is not
3345	# safe: cross compilers may not add the suffix if given an `-o'
3346	# argument, so we may need to know it at that point already.
3347	# Even if this section looks crufty: it has the advantage of
3348	# actually working.
3349	break;;
3350    * )
3351	break;;
3352  esac
3353done
3354test "$ac_cv_exeext" = no && ac_cv_exeext=
3355
3356else
3357  ac_file=''
3358fi
3359if test -z "$ac_file"; then :
3360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362$as_echo "$as_me: failed program was:" >&5
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
3365{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367as_fn_error 77 "C compiler cannot create executables
3368See \`config.log' for more details" "$LINENO" 5; }
3369else
3370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371$as_echo "yes" >&6; }
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3374$as_echo_n "checking for C compiler default output file name... " >&6; }
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3376$as_echo "$ac_file" >&6; }
3377ac_exeext=$ac_cv_exeext
3378
3379rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3380ac_clean_files=$ac_clean_files_save
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3382$as_echo_n "checking for suffix of executables... " >&6; }
3383if { { ac_try="$ac_link"
3384case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_link") 2>&5
3391  ac_status=$?
3392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393  test $ac_status = 0; }; then :
3394  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3395# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3396# work properly (i.e., refer to `conftest.exe'), while it won't with
3397# `rm'.
3398for ac_file in conftest.exe conftest conftest.*; do
3399  test -f "$ac_file" || continue
3400  case $ac_file in
3401    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3402    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403	  break;;
3404    * ) break;;
3405  esac
3406done
3407else
3408  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3411See \`config.log' for more details" "$LINENO" 5; }
3412fi
3413rm -f conftest conftest$ac_cv_exeext
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3415$as_echo "$ac_cv_exeext" >&6; }
3416
3417rm -f conftest.$ac_ext
3418EXEEXT=$ac_cv_exeext
3419ac_exeext=$EXEEXT
3420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h.  */
3422#include <stdio.h>
3423int
3424main ()
3425{
3426FILE *f = fopen ("conftest.out", "w");
3427 return ferror (f) || fclose (f) != 0;
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433ac_clean_files="$ac_clean_files conftest.out"
3434# Check that the compiler produces executables we can run.  If not, either
3435# the compiler is broken, or we cross compile.
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437$as_echo_n "checking whether we are cross compiling... " >&6; }
3438if test "$cross_compiling" != yes; then
3439  { { ac_try="$ac_link"
3440case "(($ac_try" in
3441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442  *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
3446  (eval "$ac_link") 2>&5
3447  ac_status=$?
3448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449  test $ac_status = 0; }
3450  if { ac_try='./conftest$ac_cv_exeext'
3451  { { case "(($ac_try" in
3452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453  *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
3457  (eval "$ac_try") 2>&5
3458  ac_status=$?
3459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460  test $ac_status = 0; }; }; then
3461    cross_compiling=no
3462  else
3463    if test "$cross_compiling" = maybe; then
3464	cross_compiling=yes
3465    else
3466	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468as_fn_error $? "cannot run C compiled programs.
3469If you meant to cross compile, use \`--host'.
3470See \`config.log' for more details" "$LINENO" 5; }
3471    fi
3472  fi
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3475$as_echo "$cross_compiling" >&6; }
3476
3477rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3478ac_clean_files=$ac_clean_files_save
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3480$as_echo_n "checking for suffix of object files... " >&6; }
3481if ${ac_cv_objext+:} false; then :
3482  $as_echo_n "(cached) " >&6
3483else
3484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h.  */
3486
3487int
3488main ()
3489{
3490
3491  ;
3492  return 0;
3493}
3494_ACEOF
3495rm -f conftest.o conftest.obj
3496if { { ac_try="$ac_compile"
3497case "(($ac_try" in
3498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499  *) ac_try_echo=$ac_try;;
3500esac
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503  (eval "$ac_compile") 2>&5
3504  ac_status=$?
3505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506  test $ac_status = 0; }; then :
3507  for ac_file in conftest.o conftest.obj conftest.*; do
3508  test -f "$ac_file" || continue;
3509  case $ac_file in
3510    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3511    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3512       break;;
3513  esac
3514done
3515else
3516  $as_echo "$as_me: failed program was:" >&5
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
3519{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error $? "cannot compute suffix of object files: cannot compile
3522See \`config.log' for more details" "$LINENO" 5; }
3523fi
3524rm -f conftest.$ac_cv_objext conftest.$ac_ext
3525fi
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3527$as_echo "$ac_cv_objext" >&6; }
3528OBJEXT=$ac_cv_objext
3529ac_objext=$OBJEXT
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3531$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3532if ${ac_cv_c_compiler_gnu+:} false; then :
3533  $as_echo_n "(cached) " >&6
3534else
3535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541#ifndef __GNUC__
3542       choke me
3543#endif
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_compiler_gnu=yes
3551else
3552  ac_compiler_gnu=no
3553fi
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556
3557fi
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3560if test $ac_compiler_gnu = yes; then
3561  GCC=yes
3562else
3563  GCC=
3564fi
3565ac_test_CFLAGS=${CFLAGS+set}
3566ac_save_CFLAGS=$CFLAGS
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3568$as_echo_n "checking whether $CC accepts -g... " >&6; }
3569if ${ac_cv_prog_cc_g+:} false; then :
3570  $as_echo_n "(cached) " >&6
3571else
3572  ac_save_c_werror_flag=$ac_c_werror_flag
3573   ac_c_werror_flag=yes
3574   ac_cv_prog_cc_g=no
3575   CFLAGS="-g"
3576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579int
3580main ()
3581{
3582
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588  ac_cv_prog_cc_g=yes
3589else
3590  CFLAGS=""
3591      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h.  */
3593
3594int
3595main ()
3596{
3597
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602if ac_fn_c_try_compile "$LINENO"; then :
3603
3604else
3605  ac_c_werror_flag=$ac_save_c_werror_flag
3606	 CFLAGS="-g"
3607	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h.  */
3609
3610int
3611main ()
3612{
3613
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618if ac_fn_c_try_compile "$LINENO"; then :
3619  ac_cv_prog_cc_g=yes
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626   ac_c_werror_flag=$ac_save_c_werror_flag
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3629$as_echo "$ac_cv_prog_cc_g" >&6; }
3630if test "$ac_test_CFLAGS" = set; then
3631  CFLAGS=$ac_save_CFLAGS
3632elif test $ac_cv_prog_cc_g = yes; then
3633  if test "$GCC" = yes; then
3634    CFLAGS="-g -O2"
3635  else
3636    CFLAGS="-g"
3637  fi
3638else
3639  if test "$GCC" = yes; then
3640    CFLAGS="-O2"
3641  else
3642    CFLAGS=
3643  fi
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647if ${ac_cv_prog_cc_c89+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650  ac_cv_prog_cc_c89=no
3651ac_save_CC=$CC
3652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h.  */
3654#include <stdarg.h>
3655#include <stdio.h>
3656#include <sys/types.h>
3657#include <sys/stat.h>
3658/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3659struct buf { int x; };
3660FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661static char *e (p, i)
3662     char **p;
3663     int i;
3664{
3665  return p[i];
3666}
3667static char *f (char * (*g) (char **, int), char **p, ...)
3668{
3669  char *s;
3670  va_list v;
3671  va_start (v,p);
3672  s = g (p, va_arg (v,int));
3673  va_end (v);
3674  return s;
3675}
3676
3677/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3678   function prototypes and stuff, but not '\xHH' hex character constants.
3679   These don't provoke an error unfortunately, instead are silently treated
3680   as 'x'.  The following induces an error, until -std is added to get
3681   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3682   array size at least.  It's necessary to write '\x00'==0 to get something
3683   that's true only with -std.  */
3684int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3685
3686/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687   inside strings and character constants.  */
3688#define FOO(x) 'x'
3689int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3690
3691int test (int i, double x);
3692struct s1 {int (*f) (int a);};
3693struct s2 {int (*f) (double a);};
3694int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3695int argc;
3696char **argv;
3697int
3698main ()
3699{
3700return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3701  ;
3702  return 0;
3703}
3704_ACEOF
3705for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707do
3708  CC="$ac_save_CC $ac_arg"
3709  if ac_fn_c_try_compile "$LINENO"; then :
3710  ac_cv_prog_cc_c89=$ac_arg
3711fi
3712rm -f core conftest.err conftest.$ac_objext
3713  test "x$ac_cv_prog_cc_c89" != "xno" && break
3714done
3715rm -f conftest.$ac_ext
3716CC=$ac_save_CC
3717
3718fi
3719# AC_CACHE_VAL
3720case "x$ac_cv_prog_cc_c89" in
3721  x)
3722    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723$as_echo "none needed" >&6; } ;;
3724  xno)
3725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726$as_echo "unsupported" >&6; } ;;
3727  *)
3728    CC="$CC $ac_cv_prog_cc_c89"
3729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3731esac
3732if test "x$ac_cv_prog_cc_c89" != xno; then :
3733
3734fi
3735
3736ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741
3742depcc="$CC"   am_compiler_list=
3743
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3745$as_echo_n "checking dependency style of $depcc... " >&6; }
3746if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3747  $as_echo_n "(cached) " >&6
3748else
3749  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3750  # We make a subdir and do the tests there.  Otherwise we can end up
3751  # making bogus files that we don't know about and never remove.  For
3752  # instance it was reported that on HP-UX the gcc test will end up
3753  # making a dummy file named `D' -- because `-MD' means `put the output
3754  # in D'.
3755  mkdir conftest.dir
3756  # Copy depcomp to subdir because otherwise we won't find it if we're
3757  # using a relative directory.
3758  cp "$am_depcomp" conftest.dir
3759  cd conftest.dir
3760  # We will build objects and dependencies in a subdirectory because
3761  # it helps to detect inapplicable dependency modes.  For instance
3762  # both Tru64's cc and ICC support -MD to output dependencies as a
3763  # side effect of compilation, but ICC will put the dependencies in
3764  # the current directory while Tru64 will put them in the object
3765  # directory.
3766  mkdir sub
3767
3768  am_cv_CC_dependencies_compiler_type=none
3769  if test "$am_compiler_list" = ""; then
3770     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3771  fi
3772  am__universal=false
3773  case " $depcc " in #(
3774     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3775     esac
3776
3777  for depmode in $am_compiler_list; do
3778    # Setup a source with many dependencies, because some compilers
3779    # like to wrap large dependency lists on column 80 (with \), and
3780    # we should not choose a depcomp mode which is confused by this.
3781    #
3782    # We need to recreate these files for each test, as the compiler may
3783    # overwrite some of them when testing with obscure command lines.
3784    # This happens at least with the AIX C compiler.
3785    : > sub/conftest.c
3786    for i in 1 2 3 4 5 6; do
3787      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3788      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3789      # Solaris 8's {/usr,}/bin/sh.
3790      touch sub/conftst$i.h
3791    done
3792    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
3794    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3795    # mode.  It turns out that the SunPro C++ compiler does not properly
3796    # handle `-M -o', and we need to detect this.  Also, some Intel
3797    # versions had trouble with output in subdirs
3798    am__obj=sub/conftest.${OBJEXT-o}
3799    am__minus_obj="-o $am__obj"
3800    case $depmode in
3801    gcc)
3802      # This depmode causes a compiler race in universal mode.
3803      test "$am__universal" = false || continue
3804      ;;
3805    nosideeffect)
3806      # after this tag, mechanisms are not by side-effect, so they'll
3807      # only be used when explicitly requested
3808      if test "x$enable_dependency_tracking" = xyes; then
3809	continue
3810      else
3811	break
3812      fi
3813      ;;
3814    msvisualcpp | msvcmsys)
3815      # This compiler won't grok `-c -o', but also, the minuso test has
3816      # not run yet.  These depmodes are late enough in the game, and
3817      # so weak that their functioning should not be impacted.
3818      am__obj=conftest.${OBJEXT-o}
3819      am__minus_obj=
3820      ;;
3821    none) break ;;
3822    esac
3823    if depmode=$depmode \
3824       source=sub/conftest.c object=$am__obj \
3825       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3826       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3827         >/dev/null 2>conftest.err &&
3828       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3829       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3830       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3831       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3832      # icc doesn't choke on unknown options, it will just issue warnings
3833      # or remarks (even with -Werror).  So we grep stderr for any message
3834      # that says an option was ignored or not supported.
3835      # When given -MP, icc 7.0 and 7.1 complain thusly:
3836      #   icc: Command line warning: ignoring option '-M'; no argument required
3837      # The diagnosis changed in icc 8.0:
3838      #   icc: Command line remark: option '-MP' not supported
3839      if (grep 'ignoring option' conftest.err ||
3840          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3841        am_cv_CC_dependencies_compiler_type=$depmode
3842        break
3843      fi
3844    fi
3845  done
3846
3847  cd ..
3848  rm -rf conftest.dir
3849else
3850  am_cv_CC_dependencies_compiler_type=none
3851fi
3852
3853fi
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3855$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3856CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3857
3858 if
3859  test "x$enable_dependency_tracking" != xno \
3860  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3861  am__fastdepCC_TRUE=
3862  am__fastdepCC_FALSE='#'
3863else
3864  am__fastdepCC_TRUE='#'
3865  am__fastdepCC_FALSE=
3866fi
3867
3868
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3870$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3871if ${ac_cv_path_SED+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3875     for ac_i in 1 2 3 4 5 6 7; do
3876       ac_script="$ac_script$as_nl$ac_script"
3877     done
3878     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3879     { ac_script=; unset ac_script;}
3880     if test -z "$SED"; then
3881  ac_path_SED_found=false
3882  # Loop through the user's path and test for each of PROGNAME-LIST
3883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH
3885do
3886  IFS=$as_save_IFS
3887  test -z "$as_dir" && as_dir=.
3888    for ac_prog in sed gsed; do
3889    for ac_exec_ext in '' $ac_executable_extensions; do
3890      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3891      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3892# Check for GNU ac_path_SED and select it if it is found.
3893  # Check for GNU $ac_path_SED
3894case `"$ac_path_SED" --version 2>&1` in
3895*GNU*)
3896  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3897*)
3898  ac_count=0
3899  $as_echo_n 0123456789 >"conftest.in"
3900  while :
3901  do
3902    cat "conftest.in" "conftest.in" >"conftest.tmp"
3903    mv "conftest.tmp" "conftest.in"
3904    cp "conftest.in" "conftest.nl"
3905    $as_echo '' >> "conftest.nl"
3906    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3907    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3908    as_fn_arith $ac_count + 1 && ac_count=$as_val
3909    if test $ac_count -gt ${ac_path_SED_max-0}; then
3910      # Best one so far, save it but keep looking for a better one
3911      ac_cv_path_SED="$ac_path_SED"
3912      ac_path_SED_max=$ac_count
3913    fi
3914    # 10*(2^10) chars as input seems more than enough
3915    test $ac_count -gt 10 && break
3916  done
3917  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918esac
3919
3920      $ac_path_SED_found && break 3
3921    done
3922  done
3923  done
3924IFS=$as_save_IFS
3925  if test -z "$ac_cv_path_SED"; then
3926    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3927  fi
3928else
3929  ac_cv_path_SED=$SED
3930fi
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3934$as_echo "$ac_cv_path_SED" >&6; }
3935 SED="$ac_cv_path_SED"
3936  rm -f conftest.sed
3937
3938test -z "$SED" && SED=sed
3939Xsed="$SED -e 1s/^X//"
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3952$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953if ${ac_cv_path_GREP+:} false; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956  if test -z "$GREP"; then
3957  ac_path_GREP_found=false
3958  # Loop through the user's path and test for each of PROGNAME-LIST
3959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964    for ac_prog in grep ggrep; do
3965    for ac_exec_ext in '' $ac_executable_extensions; do
3966      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3967      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3968# Check for GNU ac_path_GREP and select it if it is found.
3969  # Check for GNU $ac_path_GREP
3970case `"$ac_path_GREP" --version 2>&1` in
3971*GNU*)
3972  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3973*)
3974  ac_count=0
3975  $as_echo_n 0123456789 >"conftest.in"
3976  while :
3977  do
3978    cat "conftest.in" "conftest.in" >"conftest.tmp"
3979    mv "conftest.tmp" "conftest.in"
3980    cp "conftest.in" "conftest.nl"
3981    $as_echo 'GREP' >> "conftest.nl"
3982    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984    as_fn_arith $ac_count + 1 && ac_count=$as_val
3985    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986      # Best one so far, save it but keep looking for a better one
3987      ac_cv_path_GREP="$ac_path_GREP"
3988      ac_path_GREP_max=$ac_count
3989    fi
3990    # 10*(2^10) chars as input seems more than enough
3991    test $ac_count -gt 10 && break
3992  done
3993  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994esac
3995
3996      $ac_path_GREP_found && break 3
3997    done
3998  done
3999  done
4000IFS=$as_save_IFS
4001  if test -z "$ac_cv_path_GREP"; then
4002    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4003  fi
4004else
4005  ac_cv_path_GREP=$GREP
4006fi
4007
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4010$as_echo "$ac_cv_path_GREP" >&6; }
4011 GREP="$ac_cv_path_GREP"
4012
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4015$as_echo_n "checking for egrep... " >&6; }
4016if ${ac_cv_path_EGREP+:} false; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4020   then ac_cv_path_EGREP="$GREP -E"
4021   else
4022     if test -z "$EGREP"; then
4023  ac_path_EGREP_found=false
4024  # Loop through the user's path and test for each of PROGNAME-LIST
4025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030    for ac_prog in egrep; do
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4033      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4034# Check for GNU ac_path_EGREP and select it if it is found.
4035  # Check for GNU $ac_path_EGREP
4036case `"$ac_path_EGREP" --version 2>&1` in
4037*GNU*)
4038  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039*)
4040  ac_count=0
4041  $as_echo_n 0123456789 >"conftest.in"
4042  while :
4043  do
4044    cat "conftest.in" "conftest.in" >"conftest.tmp"
4045    mv "conftest.tmp" "conftest.in"
4046    cp "conftest.in" "conftest.nl"
4047    $as_echo 'EGREP' >> "conftest.nl"
4048    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050    as_fn_arith $ac_count + 1 && ac_count=$as_val
4051    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052      # Best one so far, save it but keep looking for a better one
4053      ac_cv_path_EGREP="$ac_path_EGREP"
4054      ac_path_EGREP_max=$ac_count
4055    fi
4056    # 10*(2^10) chars as input seems more than enough
4057    test $ac_count -gt 10 && break
4058  done
4059  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060esac
4061
4062      $ac_path_EGREP_found && break 3
4063    done
4064  done
4065  done
4066IFS=$as_save_IFS
4067  if test -z "$ac_cv_path_EGREP"; then
4068    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4069  fi
4070else
4071  ac_cv_path_EGREP=$EGREP
4072fi
4073
4074   fi
4075fi
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4077$as_echo "$ac_cv_path_EGREP" >&6; }
4078 EGREP="$ac_cv_path_EGREP"
4079
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4082$as_echo_n "checking for fgrep... " >&6; }
4083if ${ac_cv_path_FGREP+:} false; then :
4084  $as_echo_n "(cached) " >&6
4085else
4086  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4087   then ac_cv_path_FGREP="$GREP -F"
4088   else
4089     if test -z "$FGREP"; then
4090  ac_path_FGREP_found=false
4091  # Loop through the user's path and test for each of PROGNAME-LIST
4092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094do
4095  IFS=$as_save_IFS
4096  test -z "$as_dir" && as_dir=.
4097    for ac_prog in fgrep; do
4098    for ac_exec_ext in '' $ac_executable_extensions; do
4099      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4100      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4101# Check for GNU ac_path_FGREP and select it if it is found.
4102  # Check for GNU $ac_path_FGREP
4103case `"$ac_path_FGREP" --version 2>&1` in
4104*GNU*)
4105  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4106*)
4107  ac_count=0
4108  $as_echo_n 0123456789 >"conftest.in"
4109  while :
4110  do
4111    cat "conftest.in" "conftest.in" >"conftest.tmp"
4112    mv "conftest.tmp" "conftest.in"
4113    cp "conftest.in" "conftest.nl"
4114    $as_echo 'FGREP' >> "conftest.nl"
4115    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117    as_fn_arith $ac_count + 1 && ac_count=$as_val
4118    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4119      # Best one so far, save it but keep looking for a better one
4120      ac_cv_path_FGREP="$ac_path_FGREP"
4121      ac_path_FGREP_max=$ac_count
4122    fi
4123    # 10*(2^10) chars as input seems more than enough
4124    test $ac_count -gt 10 && break
4125  done
4126  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127esac
4128
4129      $ac_path_FGREP_found && break 3
4130    done
4131  done
4132  done
4133IFS=$as_save_IFS
4134  if test -z "$ac_cv_path_FGREP"; then
4135    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4136  fi
4137else
4138  ac_cv_path_FGREP=$FGREP
4139fi
4140
4141   fi
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4144$as_echo "$ac_cv_path_FGREP" >&6; }
4145 FGREP="$ac_cv_path_FGREP"
4146
4147
4148test -z "$GREP" && GREP=grep
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168# Check whether --with-gnu-ld was given.
4169if test "${with_gnu_ld+set}" = set; then :
4170  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4171else
4172  with_gnu_ld=no
4173fi
4174
4175ac_prog=ld
4176if test "$GCC" = yes; then
4177  # Check if gcc -print-prog-name=ld gives a path.
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4179$as_echo_n "checking for ld used by $CC... " >&6; }
4180  case $host in
4181  *-*-mingw*)
4182    # gcc leaves a trailing carriage return which upsets mingw
4183    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4184  *)
4185    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4186  esac
4187  case $ac_prog in
4188    # Accept absolute paths.
4189    [\\/]* | ?:[\\/]*)
4190      re_direlt='/[^/][^/]*/\.\./'
4191      # Canonicalize the pathname of ld
4192      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4193      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4194	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4195      done
4196      test -z "$LD" && LD="$ac_prog"
4197      ;;
4198  "")
4199    # If it fails, then pretend we aren't using GCC.
4200    ac_prog=ld
4201    ;;
4202  *)
4203    # If it is relative, then search for the first ld in PATH.
4204    with_gnu_ld=unknown
4205    ;;
4206  esac
4207elif test "$with_gnu_ld" = yes; then
4208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4209$as_echo_n "checking for GNU ld... " >&6; }
4210else
4211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4212$as_echo_n "checking for non-GNU ld... " >&6; }
4213fi
4214if ${lt_cv_path_LD+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217  if test -z "$LD"; then
4218  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4219  for ac_dir in $PATH; do
4220    IFS="$lt_save_ifs"
4221    test -z "$ac_dir" && ac_dir=.
4222    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4223      lt_cv_path_LD="$ac_dir/$ac_prog"
4224      # Check to see if the program is GNU ld.  I'd rather use --version,
4225      # but apparently some variants of GNU ld only accept -v.
4226      # Break only if it was the GNU/non-GNU ld that we prefer.
4227      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4228      *GNU* | *'with BFD'*)
4229	test "$with_gnu_ld" != no && break
4230	;;
4231      *)
4232	test "$with_gnu_ld" != yes && break
4233	;;
4234      esac
4235    fi
4236  done
4237  IFS="$lt_save_ifs"
4238else
4239  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4240fi
4241fi
4242
4243LD="$lt_cv_path_LD"
4244if test -n "$LD"; then
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4246$as_echo "$LD" >&6; }
4247else
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249$as_echo "no" >&6; }
4250fi
4251test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4253$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4254if ${lt_cv_prog_gnu_ld+:} false; then :
4255  $as_echo_n "(cached) " >&6
4256else
4257  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4258case `$LD -v 2>&1 </dev/null` in
4259*GNU* | *'with BFD'*)
4260  lt_cv_prog_gnu_ld=yes
4261  ;;
4262*)
4263  lt_cv_prog_gnu_ld=no
4264  ;;
4265esac
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4268$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4269with_gnu_ld=$lt_cv_prog_gnu_ld
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4280$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4281if ${lt_cv_path_NM+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  if test -n "$NM"; then
4285  # Let the user override the test.
4286  lt_cv_path_NM="$NM"
4287else
4288  lt_nm_to_check="${ac_tool_prefix}nm"
4289  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4290    lt_nm_to_check="$lt_nm_to_check nm"
4291  fi
4292  for lt_tmp_nm in $lt_nm_to_check; do
4293    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4294    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4295      IFS="$lt_save_ifs"
4296      test -z "$ac_dir" && ac_dir=.
4297      tmp_nm="$ac_dir/$lt_tmp_nm"
4298      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4299	# Check to see if the nm accepts a BSD-compat flag.
4300	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4301	#   nm: unknown option "B" ignored
4302	# Tru64's nm complains that /dev/null is an invalid object file
4303	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4304	*/dev/null* | *'Invalid file or object type'*)
4305	  lt_cv_path_NM="$tmp_nm -B"
4306	  break
4307	  ;;
4308	*)
4309	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4310	  */dev/null*)
4311	    lt_cv_path_NM="$tmp_nm -p"
4312	    break
4313	    ;;
4314	  *)
4315	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4316	    continue # so that we can try to find one that supports BSD flags
4317	    ;;
4318	  esac
4319	  ;;
4320	esac
4321      fi
4322    done
4323    IFS="$lt_save_ifs"
4324  done
4325  : ${lt_cv_path_NM=no}
4326fi
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4329$as_echo "$lt_cv_path_NM" >&6; }
4330if test "$lt_cv_path_NM" != "no"; then
4331  NM="$lt_cv_path_NM"
4332else
4333  # Didn't find any BSD compatible name lister, look for dumpbin.
4334  if test -n "$DUMPBIN"; then :
4335    # Let the user override the test.
4336  else
4337    if test -n "$ac_tool_prefix"; then
4338  for ac_prog in dumpbin "link -dump"
4339  do
4340    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343$as_echo_n "checking for $ac_word... " >&6; }
4344if ${ac_cv_prog_DUMPBIN+:} false; then :
4345  $as_echo_n "(cached) " >&6
4346else
4347  if test -n "$DUMPBIN"; then
4348  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4349else
4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351for as_dir in $PATH
4352do
4353  IFS=$as_save_IFS
4354  test -z "$as_dir" && as_dir=.
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4357    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359    break 2
4360  fi
4361done
4362  done
4363IFS=$as_save_IFS
4364
4365fi
4366fi
4367DUMPBIN=$ac_cv_prog_DUMPBIN
4368if test -n "$DUMPBIN"; then
4369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4370$as_echo "$DUMPBIN" >&6; }
4371else
4372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373$as_echo "no" >&6; }
4374fi
4375
4376
4377    test -n "$DUMPBIN" && break
4378  done
4379fi
4380if test -z "$DUMPBIN"; then
4381  ac_ct_DUMPBIN=$DUMPBIN
4382  for ac_prog in dumpbin "link -dump"
4383do
4384  # Extract the first word of "$ac_prog", so it can be a program name with args.
4385set dummy $ac_prog; ac_word=$2
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387$as_echo_n "checking for $ac_word... " >&6; }
4388if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4389  $as_echo_n "(cached) " >&6
4390else
4391  if test -n "$ac_ct_DUMPBIN"; then
4392  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397  IFS=$as_save_IFS
4398  test -z "$as_dir" && as_dir=.
4399    for ac_exec_ext in '' $ac_executable_extensions; do
4400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403    break 2
4404  fi
4405done
4406  done
4407IFS=$as_save_IFS
4408
4409fi
4410fi
4411ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4412if test -n "$ac_ct_DUMPBIN"; then
4413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4414$as_echo "$ac_ct_DUMPBIN" >&6; }
4415else
4416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417$as_echo "no" >&6; }
4418fi
4419
4420
4421  test -n "$ac_ct_DUMPBIN" && break
4422done
4423
4424  if test "x$ac_ct_DUMPBIN" = x; then
4425    DUMPBIN=":"
4426  else
4427    case $cross_compiling:$ac_tool_warned in
4428yes:)
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4431ac_tool_warned=yes ;;
4432esac
4433    DUMPBIN=$ac_ct_DUMPBIN
4434  fi
4435fi
4436
4437    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4438    *COFF*)
4439      DUMPBIN="$DUMPBIN -symbols"
4440      ;;
4441    *)
4442      DUMPBIN=:
4443      ;;
4444    esac
4445  fi
4446
4447  if test "$DUMPBIN" != ":"; then
4448    NM="$DUMPBIN"
4449  fi
4450fi
4451test -z "$NM" && NM=nm
4452
4453
4454
4455
4456
4457
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4459$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4460if ${lt_cv_nm_interface+:} false; then :
4461  $as_echo_n "(cached) " >&6
4462else
4463  lt_cv_nm_interface="BSD nm"
4464  echo "int some_variable = 0;" > conftest.$ac_ext
4465  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4466  (eval "$ac_compile" 2>conftest.err)
4467  cat conftest.err >&5
4468  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4469  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4470  cat conftest.err >&5
4471  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4472  cat conftest.out >&5
4473  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4474    lt_cv_nm_interface="MS dumpbin"
4475  fi
4476  rm -f conftest*
4477fi
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4479$as_echo "$lt_cv_nm_interface" >&6; }
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4482$as_echo_n "checking whether ln -s works... " >&6; }
4483LN_S=$as_ln_s
4484if test "$LN_S" = "ln -s"; then
4485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486$as_echo "yes" >&6; }
4487else
4488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4489$as_echo "no, using $LN_S" >&6; }
4490fi
4491
4492# find the maximum length of command line arguments
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4494$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4495if ${lt_cv_sys_max_cmd_len+:} false; then :
4496  $as_echo_n "(cached) " >&6
4497else
4498    i=0
4499  teststring="ABCD"
4500
4501  case $build_os in
4502  msdosdjgpp*)
4503    # On DJGPP, this test can blow up pretty badly due to problems in libc
4504    # (any single argument exceeding 2000 bytes causes a buffer overrun
4505    # during glob expansion).  Even if it were fixed, the result of this
4506    # check would be larger than it should be.
4507    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4508    ;;
4509
4510  gnu*)
4511    # Under GNU Hurd, this test is not required because there is
4512    # no limit to the length of command line arguments.
4513    # Libtool will interpret -1 as no limit whatsoever
4514    lt_cv_sys_max_cmd_len=-1;
4515    ;;
4516
4517  cygwin* | mingw* | cegcc*)
4518    # On Win9x/ME, this test blows up -- it succeeds, but takes
4519    # about 5 minutes as the teststring grows exponentially.
4520    # Worse, since 9x/ME are not pre-emptively multitasking,
4521    # you end up with a "frozen" computer, even though with patience
4522    # the test eventually succeeds (with a max line length of 256k).
4523    # Instead, let's just punt: use the minimum linelength reported by
4524    # all of the supported platforms: 8192 (on NT/2K/XP).
4525    lt_cv_sys_max_cmd_len=8192;
4526    ;;
4527
4528  mint*)
4529    # On MiNT this can take a long time and run out of memory.
4530    lt_cv_sys_max_cmd_len=8192;
4531    ;;
4532
4533  amigaos*)
4534    # On AmigaOS with pdksh, this test takes hours, literally.
4535    # So we just punt and use a minimum line length of 8192.
4536    lt_cv_sys_max_cmd_len=8192;
4537    ;;
4538
4539  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4540    # This has been around since 386BSD, at least.  Likely further.
4541    if test -x /sbin/sysctl; then
4542      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4543    elif test -x /usr/sbin/sysctl; then
4544      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4545    else
4546      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4547    fi
4548    # And add a safety zone
4549    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4550    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4551    ;;
4552
4553  interix*)
4554    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4555    lt_cv_sys_max_cmd_len=196608
4556    ;;
4557
4558  osf*)
4559    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4560    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4561    # nice to cause kernel panics so lets avoid the loop below.
4562    # First set a reasonable default.
4563    lt_cv_sys_max_cmd_len=16384
4564    #
4565    if test -x /sbin/sysconfig; then
4566      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4567        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4568      esac
4569    fi
4570    ;;
4571  sco3.2v5*)
4572    lt_cv_sys_max_cmd_len=102400
4573    ;;
4574  sysv5* | sco5v6* | sysv4.2uw2*)
4575    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4576    if test -n "$kargmax"; then
4577      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4578    else
4579      lt_cv_sys_max_cmd_len=32768
4580    fi
4581    ;;
4582  *)
4583    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4584    if test -n "$lt_cv_sys_max_cmd_len"; then
4585      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4586      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4587    else
4588      # Make teststring a little bigger before we do anything with it.
4589      # a 1K string should be a reasonable start.
4590      for i in 1 2 3 4 5 6 7 8 ; do
4591        teststring=$teststring$teststring
4592      done
4593      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4594      # If test is not a shell built-in, we'll probably end up computing a
4595      # maximum length that is only half of the actual maximum length, but
4596      # we can't tell.
4597      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4598	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4599	      test $i != 17 # 1/2 MB should be enough
4600      do
4601        i=`expr $i + 1`
4602        teststring=$teststring$teststring
4603      done
4604      # Only check the string length outside the loop.
4605      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4606      teststring=
4607      # Add a significant safety factor because C++ compilers can tack on
4608      # massive amounts of additional arguments before passing them to the
4609      # linker.  It appears as though 1/2 is a usable value.
4610      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4611    fi
4612    ;;
4613  esac
4614
4615fi
4616
4617if test -n $lt_cv_sys_max_cmd_len ; then
4618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4619$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4620else
4621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4622$as_echo "none" >&6; }
4623fi
4624max_cmd_len=$lt_cv_sys_max_cmd_len
4625
4626
4627
4628
4629
4630
4631: ${CP="cp -f"}
4632: ${MV="mv -f"}
4633: ${RM="rm -f"}
4634
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4636$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4637# Try some XSI features
4638xsi_shell=no
4639( _lt_dummy="a/b/c"
4640  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4641      = c,a/b,b/c, \
4642    && eval 'test $(( 1 + 1 )) -eq 2 \
4643    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4644  && xsi_shell=yes
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4646$as_echo "$xsi_shell" >&6; }
4647
4648
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4650$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4651lt_shell_append=no
4652( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4653    >/dev/null 2>&1 \
4654  && lt_shell_append=yes
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4656$as_echo "$lt_shell_append" >&6; }
4657
4658
4659if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4660  lt_unset=unset
4661else
4662  lt_unset=false
4663fi
4664
4665
4666
4667
4668
4669# test EBCDIC or ASCII
4670case `echo X|tr X '\101'` in
4671 A) # ASCII based system
4672    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4673  lt_SP2NL='tr \040 \012'
4674  lt_NL2SP='tr \015\012 \040\040'
4675  ;;
4676 *) # EBCDIC based system
4677  lt_SP2NL='tr \100 \n'
4678  lt_NL2SP='tr \r\n \100\100'
4679  ;;
4680esac
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4691$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4692if ${lt_cv_to_host_file_cmd+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  case $host in
4696  *-*-mingw* )
4697    case $build in
4698      *-*-mingw* ) # actually msys
4699        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4700        ;;
4701      *-*-cygwin* )
4702        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4703        ;;
4704      * ) # otherwise, assume *nix
4705        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4706        ;;
4707    esac
4708    ;;
4709  *-*-cygwin* )
4710    case $build in
4711      *-*-mingw* ) # actually msys
4712        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4713        ;;
4714      *-*-cygwin* )
4715        lt_cv_to_host_file_cmd=func_convert_file_noop
4716        ;;
4717      * ) # otherwise, assume *nix
4718        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4719        ;;
4720    esac
4721    ;;
4722  * ) # unhandled hosts (and "normal" native builds)
4723    lt_cv_to_host_file_cmd=func_convert_file_noop
4724    ;;
4725esac
4726
4727fi
4728
4729to_host_file_cmd=$lt_cv_to_host_file_cmd
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4731$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4732
4733
4734
4735
4736
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4738$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4739if ${lt_cv_to_tool_file_cmd+:} false; then :
4740  $as_echo_n "(cached) " >&6
4741else
4742  #assume ordinary cross tools, or native build.
4743lt_cv_to_tool_file_cmd=func_convert_file_noop
4744case $host in
4745  *-*-mingw* )
4746    case $build in
4747      *-*-mingw* ) # actually msys
4748        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4749        ;;
4750    esac
4751    ;;
4752esac
4753
4754fi
4755
4756to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4758$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4759
4760
4761
4762
4763
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4765$as_echo_n "checking for $LD option to reload object files... " >&6; }
4766if ${lt_cv_ld_reload_flag+:} false; then :
4767  $as_echo_n "(cached) " >&6
4768else
4769  lt_cv_ld_reload_flag='-r'
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4772$as_echo "$lt_cv_ld_reload_flag" >&6; }
4773reload_flag=$lt_cv_ld_reload_flag
4774case $reload_flag in
4775"" | " "*) ;;
4776*) reload_flag=" $reload_flag" ;;
4777esac
4778reload_cmds='$LD$reload_flag -o $output$reload_objs'
4779case $host_os in
4780  cygwin* | mingw* | pw32* | cegcc*)
4781    if test "$GCC" != yes; then
4782      reload_cmds=false
4783    fi
4784    ;;
4785  darwin*)
4786    if test "$GCC" = yes; then
4787      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4788    else
4789      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4790    fi
4791    ;;
4792esac
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802if test -n "$ac_tool_prefix"; then
4803  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4804set dummy ${ac_tool_prefix}objdump; ac_word=$2
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806$as_echo_n "checking for $ac_word... " >&6; }
4807if ${ac_cv_prog_OBJDUMP+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  if test -n "$OBJDUMP"; then
4811  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4812else
4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816  IFS=$as_save_IFS
4817  test -z "$as_dir" && as_dir=.
4818    for ac_exec_ext in '' $ac_executable_extensions; do
4819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822    break 2
4823  fi
4824done
4825  done
4826IFS=$as_save_IFS
4827
4828fi
4829fi
4830OBJDUMP=$ac_cv_prog_OBJDUMP
4831if test -n "$OBJDUMP"; then
4832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4833$as_echo "$OBJDUMP" >&6; }
4834else
4835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836$as_echo "no" >&6; }
4837fi
4838
4839
4840fi
4841if test -z "$ac_cv_prog_OBJDUMP"; then
4842  ac_ct_OBJDUMP=$OBJDUMP
4843  # Extract the first word of "objdump", so it can be a program name with args.
4844set dummy objdump; ac_word=$2
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846$as_echo_n "checking for $ac_word... " >&6; }
4847if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4848  $as_echo_n "(cached) " >&6
4849else
4850  if test -n "$ac_ct_OBJDUMP"; then
4851  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4852else
4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856  IFS=$as_save_IFS
4857  test -z "$as_dir" && as_dir=.
4858    for ac_exec_ext in '' $ac_executable_extensions; do
4859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862    break 2
4863  fi
4864done
4865  done
4866IFS=$as_save_IFS
4867
4868fi
4869fi
4870ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4871if test -n "$ac_ct_OBJDUMP"; then
4872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4873$as_echo "$ac_ct_OBJDUMP" >&6; }
4874else
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876$as_echo "no" >&6; }
4877fi
4878
4879  if test "x$ac_ct_OBJDUMP" = x; then
4880    OBJDUMP="false"
4881  else
4882    case $cross_compiling:$ac_tool_warned in
4883yes:)
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886ac_tool_warned=yes ;;
4887esac
4888    OBJDUMP=$ac_ct_OBJDUMP
4889  fi
4890else
4891  OBJDUMP="$ac_cv_prog_OBJDUMP"
4892fi
4893
4894test -z "$OBJDUMP" && OBJDUMP=objdump
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4905$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4906if ${lt_cv_deplibs_check_method+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  lt_cv_file_magic_cmd='$MAGIC_CMD'
4910lt_cv_file_magic_test_file=
4911lt_cv_deplibs_check_method='unknown'
4912# Need to set the preceding variable on all platforms that support
4913# interlibrary dependencies.
4914# 'none' -- dependencies not supported.
4915# `unknown' -- same as none, but documents that we really don't know.
4916# 'pass_all' -- all dependencies passed with no checks.
4917# 'test_compile' -- check by making test program.
4918# 'file_magic [[regex]]' -- check by looking for files in library path
4919# which responds to the $file_magic_cmd with a given extended regex.
4920# If you have `file' or equivalent on your system and you're not sure
4921# whether `pass_all' will *always* work, you probably want this one.
4922
4923case $host_os in
4924aix[4-9]*)
4925  lt_cv_deplibs_check_method=pass_all
4926  ;;
4927
4928beos*)
4929  lt_cv_deplibs_check_method=pass_all
4930  ;;
4931
4932bsdi[45]*)
4933  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4934  lt_cv_file_magic_cmd='/usr/bin/file -L'
4935  lt_cv_file_magic_test_file=/shlib/libc.so
4936  ;;
4937
4938cygwin*)
4939  # func_win32_libid is a shell function defined in ltmain.sh
4940  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4941  lt_cv_file_magic_cmd='func_win32_libid'
4942  ;;
4943
4944mingw* | pw32*)
4945  # Base MSYS/MinGW do not provide the 'file' command needed by
4946  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4947  # unless we find 'file', for example because we are cross-compiling.
4948  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4949  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4950    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4951    lt_cv_file_magic_cmd='func_win32_libid'
4952  else
4953    # Keep this pattern in sync with the one in func_win32_libid.
4954    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4955    lt_cv_file_magic_cmd='$OBJDUMP -f'
4956  fi
4957  ;;
4958
4959cegcc*)
4960  # use the weaker test based on 'objdump'. See mingw*.
4961  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4962  lt_cv_file_magic_cmd='$OBJDUMP -f'
4963  ;;
4964
4965darwin* | rhapsody*)
4966  lt_cv_deplibs_check_method=pass_all
4967  ;;
4968
4969freebsd* | dragonfly*)
4970  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4971    case $host_cpu in
4972    i*86 )
4973      # Not sure whether the presence of OpenBSD here was a mistake.
4974      # Let's accept both of them until this is cleared up.
4975      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4976      lt_cv_file_magic_cmd=/usr/bin/file
4977      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4978      ;;
4979    esac
4980  else
4981    lt_cv_deplibs_check_method=pass_all
4982  fi
4983  ;;
4984
4985gnu*)
4986  lt_cv_deplibs_check_method=pass_all
4987  ;;
4988
4989haiku*)
4990  lt_cv_deplibs_check_method=pass_all
4991  ;;
4992
4993hpux10.20* | hpux11*)
4994  lt_cv_file_magic_cmd=/usr/bin/file
4995  case $host_cpu in
4996  ia64*)
4997    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4998    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4999    ;;
5000  hppa*64*)
5001    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]'
5002    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5003    ;;
5004  *)
5005    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5006    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5007    ;;
5008  esac
5009  ;;
5010
5011interix[3-9]*)
5012  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5013  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5014  ;;
5015
5016irix5* | irix6* | nonstopux*)
5017  case $LD in
5018  *-32|*"-32 ") libmagic=32-bit;;
5019  *-n32|*"-n32 ") libmagic=N32;;
5020  *-64|*"-64 ") libmagic=64-bit;;
5021  *) libmagic=never-match;;
5022  esac
5023  lt_cv_deplibs_check_method=pass_all
5024  ;;
5025
5026# This must be Linux ELF.
5027linux* | k*bsd*-gnu | kopensolaris*-gnu)
5028  lt_cv_deplibs_check_method=pass_all
5029  ;;
5030
5031netbsd*)
5032  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5033    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5034  else
5035    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5036  fi
5037  ;;
5038
5039newos6*)
5040  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5041  lt_cv_file_magic_cmd=/usr/bin/file
5042  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5043  ;;
5044
5045*nto* | *qnx*)
5046  lt_cv_deplibs_check_method=pass_all
5047  ;;
5048
5049openbsd*)
5050  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5051    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5052  else
5053    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5054  fi
5055  ;;
5056
5057osf3* | osf4* | osf5*)
5058  lt_cv_deplibs_check_method=pass_all
5059  ;;
5060
5061rdos*)
5062  lt_cv_deplibs_check_method=pass_all
5063  ;;
5064
5065solaris*)
5066  lt_cv_deplibs_check_method=pass_all
5067  ;;
5068
5069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5070  lt_cv_deplibs_check_method=pass_all
5071  ;;
5072
5073sysv4 | sysv4.3*)
5074  case $host_vendor in
5075  motorola)
5076    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]'
5077    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5078    ;;
5079  ncr)
5080    lt_cv_deplibs_check_method=pass_all
5081    ;;
5082  sequent)
5083    lt_cv_file_magic_cmd='/bin/file'
5084    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5085    ;;
5086  sni)
5087    lt_cv_file_magic_cmd='/bin/file'
5088    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5089    lt_cv_file_magic_test_file=/lib/libc.so
5090    ;;
5091  siemens)
5092    lt_cv_deplibs_check_method=pass_all
5093    ;;
5094  pc)
5095    lt_cv_deplibs_check_method=pass_all
5096    ;;
5097  esac
5098  ;;
5099
5100tpf*)
5101  lt_cv_deplibs_check_method=pass_all
5102  ;;
5103esac
5104
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5107$as_echo "$lt_cv_deplibs_check_method" >&6; }
5108
5109file_magic_glob=
5110want_nocaseglob=no
5111if test "$build" = "$host"; then
5112  case $host_os in
5113  mingw* | pw32*)
5114    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5115      want_nocaseglob=yes
5116    else
5117      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5118    fi
5119    ;;
5120  esac
5121fi
5122
5123file_magic_cmd=$lt_cv_file_magic_cmd
5124deplibs_check_method=$lt_cv_deplibs_check_method
5125test -z "$deplibs_check_method" && deplibs_check_method=unknown
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148if test -n "$ac_tool_prefix"; then
5149  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5150set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152$as_echo_n "checking for $ac_word... " >&6; }
5153if ${ac_cv_prog_DLLTOOL+:} false; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156  if test -n "$DLLTOOL"; then
5157  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5158else
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162  IFS=$as_save_IFS
5163  test -z "$as_dir" && as_dir=.
5164    for ac_exec_ext in '' $ac_executable_extensions; do
5165  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168    break 2
5169  fi
5170done
5171  done
5172IFS=$as_save_IFS
5173
5174fi
5175fi
5176DLLTOOL=$ac_cv_prog_DLLTOOL
5177if test -n "$DLLTOOL"; then
5178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5179$as_echo "$DLLTOOL" >&6; }
5180else
5181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182$as_echo "no" >&6; }
5183fi
5184
5185
5186fi
5187if test -z "$ac_cv_prog_DLLTOOL"; then
5188  ac_ct_DLLTOOL=$DLLTOOL
5189  # Extract the first word of "dlltool", so it can be a program name with args.
5190set dummy dlltool; ac_word=$2
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192$as_echo_n "checking for $ac_word... " >&6; }
5193if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  if test -n "$ac_ct_DLLTOOL"; then
5197  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202  IFS=$as_save_IFS
5203  test -z "$as_dir" && as_dir=.
5204    for ac_exec_ext in '' $ac_executable_extensions; do
5205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208    break 2
5209  fi
5210done
5211  done
5212IFS=$as_save_IFS
5213
5214fi
5215fi
5216ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5217if test -n "$ac_ct_DLLTOOL"; then
5218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5219$as_echo "$ac_ct_DLLTOOL" >&6; }
5220else
5221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222$as_echo "no" >&6; }
5223fi
5224
5225  if test "x$ac_ct_DLLTOOL" = x; then
5226    DLLTOOL="false"
5227  else
5228    case $cross_compiling:$ac_tool_warned in
5229yes:)
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232ac_tool_warned=yes ;;
5233esac
5234    DLLTOOL=$ac_ct_DLLTOOL
5235  fi
5236else
5237  DLLTOOL="$ac_cv_prog_DLLTOOL"
5238fi
5239
5240test -z "$DLLTOOL" && DLLTOOL=dlltool
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5252$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5253if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  lt_cv_sharedlib_from_linklib_cmd='unknown'
5257
5258case $host_os in
5259cygwin* | mingw* | pw32* | cegcc*)
5260  # two different shell functions defined in ltmain.sh
5261  # decide which to use based on capabilities of $DLLTOOL
5262  case `$DLLTOOL --help 2>&1` in
5263  *--identify-strict*)
5264    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5265    ;;
5266  *)
5267    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5268    ;;
5269  esac
5270  ;;
5271*)
5272  # fallback: assume linklib IS sharedlib
5273  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5274  ;;
5275esac
5276
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5279$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5280sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5281test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5282
5283
5284
5285
5286
5287
5288
5289
5290if test -n "$ac_tool_prefix"; then
5291  for ac_prog in ar
5292  do
5293    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5294set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296$as_echo_n "checking for $ac_word... " >&6; }
5297if ${ac_cv_prog_AR+:} false; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  if test -n "$AR"; then
5301  ac_cv_prog_AR="$AR" # Let the user override the test.
5302else
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306  IFS=$as_save_IFS
5307  test -z "$as_dir" && as_dir=.
5308    for ac_exec_ext in '' $ac_executable_extensions; do
5309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312    break 2
5313  fi
5314done
5315  done
5316IFS=$as_save_IFS
5317
5318fi
5319fi
5320AR=$ac_cv_prog_AR
5321if test -n "$AR"; then
5322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5323$as_echo "$AR" >&6; }
5324else
5325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326$as_echo "no" >&6; }
5327fi
5328
5329
5330    test -n "$AR" && break
5331  done
5332fi
5333if test -z "$AR"; then
5334  ac_ct_AR=$AR
5335  for ac_prog in ar
5336do
5337  # Extract the first word of "$ac_prog", so it can be a program name with args.
5338set dummy $ac_prog; ac_word=$2
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340$as_echo_n "checking for $ac_word... " >&6; }
5341if ${ac_cv_prog_ac_ct_AR+:} false; then :
5342  $as_echo_n "(cached) " >&6
5343else
5344  if test -n "$ac_ct_AR"; then
5345  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352    for ac_exec_ext in '' $ac_executable_extensions; do
5353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354    ac_cv_prog_ac_ct_AR="$ac_prog"
5355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356    break 2
5357  fi
5358done
5359  done
5360IFS=$as_save_IFS
5361
5362fi
5363fi
5364ac_ct_AR=$ac_cv_prog_ac_ct_AR
5365if test -n "$ac_ct_AR"; then
5366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5367$as_echo "$ac_ct_AR" >&6; }
5368else
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370$as_echo "no" >&6; }
5371fi
5372
5373
5374  test -n "$ac_ct_AR" && break
5375done
5376
5377  if test "x$ac_ct_AR" = x; then
5378    AR="false"
5379  else
5380    case $cross_compiling:$ac_tool_warned in
5381yes:)
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5384ac_tool_warned=yes ;;
5385esac
5386    AR=$ac_ct_AR
5387  fi
5388fi
5389
5390: ${AR=ar}
5391: ${AR_FLAGS=cru}
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5404$as_echo_n "checking for archiver @FILE support... " >&6; }
5405if ${lt_cv_ar_at_file+:} false; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408  lt_cv_ar_at_file=no
5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h.  */
5411
5412int
5413main ()
5414{
5415
5416  ;
5417  return 0;
5418}
5419_ACEOF
5420if ac_fn_c_try_compile "$LINENO"; then :
5421  echo conftest.$ac_objext > conftest.lst
5422      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5423      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5424  (eval $lt_ar_try) 2>&5
5425  ac_status=$?
5426  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5427  test $ac_status = 0; }
5428      if test "$ac_status" -eq 0; then
5429	# Ensure the archiver fails upon bogus file names.
5430	rm -f conftest.$ac_objext libconftest.a
5431	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5432  (eval $lt_ar_try) 2>&5
5433  ac_status=$?
5434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5435  test $ac_status = 0; }
5436	if test "$ac_status" -ne 0; then
5437          lt_cv_ar_at_file=@
5438        fi
5439      fi
5440      rm -f conftest.* libconftest.a
5441
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445fi
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5447$as_echo "$lt_cv_ar_at_file" >&6; }
5448
5449if test "x$lt_cv_ar_at_file" = xno; then
5450  archiver_list_spec=
5451else
5452  archiver_list_spec=$lt_cv_ar_at_file
5453fi
5454
5455
5456
5457
5458
5459
5460
5461if test -n "$ac_tool_prefix"; then
5462  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463set dummy ${ac_tool_prefix}strip; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if ${ac_cv_prog_STRIP+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  if test -n "$STRIP"; then
5470  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477    for ac_exec_ext in '' $ac_executable_extensions; do
5478  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484  done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489STRIP=$ac_cv_prog_STRIP
5490if test -n "$STRIP"; then
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5492$as_echo "$STRIP" >&6; }
5493else
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498
5499fi
5500if test -z "$ac_cv_prog_STRIP"; then
5501  ac_ct_STRIP=$STRIP
5502  # Extract the first word of "strip", so it can be a program name with args.
5503set dummy strip; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
5506if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  if test -n "$ac_ct_STRIP"; then
5510  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515  IFS=$as_save_IFS
5516  test -z "$as_dir" && as_dir=.
5517    for ac_exec_ext in '' $ac_executable_extensions; do
5518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519    ac_cv_prog_ac_ct_STRIP="strip"
5520    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521    break 2
5522  fi
5523done
5524  done
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530if test -n "$ac_ct_STRIP"; then
5531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5532$as_echo "$ac_ct_STRIP" >&6; }
5533else
5534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538  if test "x$ac_ct_STRIP" = x; then
5539    STRIP=":"
5540  else
5541    case $cross_compiling:$ac_tool_warned in
5542yes:)
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545ac_tool_warned=yes ;;
5546esac
5547    STRIP=$ac_ct_STRIP
5548  fi
5549else
5550  STRIP="$ac_cv_prog_STRIP"
5551fi
5552
5553test -z "$STRIP" && STRIP=:
5554
5555
5556
5557
5558
5559
5560if test -n "$ac_tool_prefix"; then
5561  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if ${ac_cv_prog_RANLIB+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  if test -n "$RANLIB"; then
5569  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576    for ac_exec_ext in '' $ac_executable_extensions; do
5577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580    break 2
5581  fi
5582done
5583  done
5584IFS=$as_save_IFS
5585
5586fi
5587fi
5588RANLIB=$ac_cv_prog_RANLIB
5589if test -n "$RANLIB"; then
5590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5591$as_echo "$RANLIB" >&6; }
5592else
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594$as_echo "no" >&6; }
5595fi
5596
5597
5598fi
5599if test -z "$ac_cv_prog_RANLIB"; then
5600  ac_ct_RANLIB=$RANLIB
5601  # Extract the first word of "ranlib", so it can be a program name with args.
5602set dummy ranlib; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5606  $as_echo_n "(cached) " >&6
5607else
5608  if test -n "$ac_ct_RANLIB"; then
5609  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614  IFS=$as_save_IFS
5615  test -z "$as_dir" && as_dir=.
5616    for ac_exec_ext in '' $ac_executable_extensions; do
5617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618    ac_cv_prog_ac_ct_RANLIB="ranlib"
5619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620    break 2
5621  fi
5622done
5623  done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629if test -n "$ac_ct_RANLIB"; then
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5631$as_echo "$ac_ct_RANLIB" >&6; }
5632else
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637  if test "x$ac_ct_RANLIB" = x; then
5638    RANLIB=":"
5639  else
5640    case $cross_compiling:$ac_tool_warned in
5641yes:)
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644ac_tool_warned=yes ;;
5645esac
5646    RANLIB=$ac_ct_RANLIB
5647  fi
5648else
5649  RANLIB="$ac_cv_prog_RANLIB"
5650fi
5651
5652test -z "$RANLIB" && RANLIB=:
5653
5654
5655
5656
5657
5658
5659# Determine commands to create old-style static archives.
5660old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661old_postinstall_cmds='chmod 644 $oldlib'
5662old_postuninstall_cmds=
5663
5664if test -n "$RANLIB"; then
5665  case $host_os in
5666  openbsd*)
5667    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5668    ;;
5669  *)
5670    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5671    ;;
5672  esac
5673  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5674fi
5675
5676case $host_os in
5677  darwin*)
5678    lock_old_archive_extraction=yes ;;
5679  *)
5680    lock_old_archive_extraction=no ;;
5681esac
5682
5683
5684
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# If no C compiler was specified, use CC.
5722LTCC=${LTCC-"$CC"}
5723
5724# If no C compiler flags were specified, use CFLAGS.
5725LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5726
5727# Allow CC to be a program name with arguments.
5728compiler=$CC
5729
5730
5731# Check for command to grab the raw symbol name followed by C symbol from nm.
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5733$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5734if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737
5738# These are sane defaults that work on at least a few old systems.
5739# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5740
5741# Character class describing NM global symbol codes.
5742symcode='[BCDEGRST]'
5743
5744# Regexp to match symbols that can be accessed directly from C.
5745sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5746
5747# Define system-specific variables.
5748case $host_os in
5749aix*)
5750  symcode='[BCDT]'
5751  ;;
5752cygwin* | mingw* | pw32* | cegcc*)
5753  symcode='[ABCDGISTW]'
5754  ;;
5755hpux*)
5756  if test "$host_cpu" = ia64; then
5757    symcode='[ABCDEGRST]'
5758  fi
5759  ;;
5760irix* | nonstopux*)
5761  symcode='[BCDEGRST]'
5762  ;;
5763osf*)
5764  symcode='[BCDEGQRST]'
5765  ;;
5766solaris*)
5767  symcode='[BDRT]'
5768  ;;
5769sco3.2v5*)
5770  symcode='[DT]'
5771  ;;
5772sysv4.2uw2*)
5773  symcode='[DT]'
5774  ;;
5775sysv5* | sco5v6* | unixware* | OpenUNIX*)
5776  symcode='[ABDT]'
5777  ;;
5778sysv4)
5779  symcode='[DFNSTU]'
5780  ;;
5781esac
5782
5783# If we're using GNU nm, then use its standard symbol codes.
5784case `$NM -V 2>&1` in
5785*GNU* | *'with BFD'*)
5786  symcode='[ABCDGIRSTW]' ;;
5787esac
5788
5789# Transform an extracted symbol line into a proper C declaration.
5790# Some systems (esp. on ia64) link data and code symbols differently,
5791# so use this general approach.
5792lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5793
5794# Transform an extracted symbol line into symbol name and symbol address
5795lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5796lt_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'"
5797
5798# Handle CRLF in mingw tool chain
5799opt_cr=
5800case $build_os in
5801mingw*)
5802  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5803  ;;
5804esac
5805
5806# Try without a prefix underscore, then with it.
5807for ac_symprfx in "" "_"; do
5808
5809  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5810  symxfrm="\\1 $ac_symprfx\\2 \\2"
5811
5812  # Write the raw and C identifiers.
5813  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5814    # Fake it for dumpbin and say T for any non-static function
5815    # and D for any global variable.
5816    # Also find C++ and __fastcall symbols from MSVC++,
5817    # which start with @ or ?.
5818    lt_cv_sys_global_symbol_pipe="$AWK '"\
5819"     {last_section=section; section=\$ 3};"\
5820"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5821"     \$ 0!~/External *\|/{next};"\
5822"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5823"     {if(hide[section]) next};"\
5824"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5825"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5826"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5827"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5828"     ' prfx=^$ac_symprfx"
5829  else
5830    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5831  fi
5832  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5833
5834  # Check to see that the pipe works correctly.
5835  pipe_works=no
5836
5837  rm -f conftest*
5838  cat > conftest.$ac_ext <<_LT_EOF
5839#ifdef __cplusplus
5840extern "C" {
5841#endif
5842char nm_test_var;
5843void nm_test_func(void);
5844void nm_test_func(void){}
5845#ifdef __cplusplus
5846}
5847#endif
5848int main(){nm_test_var='a';nm_test_func();return(0);}
5849_LT_EOF
5850
5851  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5852  (eval $ac_compile) 2>&5
5853  ac_status=$?
5854  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855  test $ac_status = 0; }; then
5856    # Now try to grab the symbols.
5857    nlist=conftest.nm
5858    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5859  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5860  ac_status=$?
5861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862  test $ac_status = 0; } && test -s "$nlist"; then
5863      # Try sorting and uniquifying the output.
5864      if sort "$nlist" | uniq > "$nlist"T; then
5865	mv -f "$nlist"T "$nlist"
5866      else
5867	rm -f "$nlist"T
5868      fi
5869
5870      # Make sure that we snagged all the symbols we need.
5871      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5872	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5873	  cat <<_LT_EOF > conftest.$ac_ext
5874/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5875#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5876/* DATA imports from DLLs on WIN32 con't be const, because runtime
5877   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5878# define LT_DLSYM_CONST
5879#elif defined(__osf__)
5880/* This system does not cope well with relocations in const data.  */
5881# define LT_DLSYM_CONST
5882#else
5883# define LT_DLSYM_CONST const
5884#endif
5885
5886#ifdef __cplusplus
5887extern "C" {
5888#endif
5889
5890_LT_EOF
5891	  # Now generate the symbol file.
5892	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5893
5894	  cat <<_LT_EOF >> conftest.$ac_ext
5895
5896/* The mapping between symbol names and symbols.  */
5897LT_DLSYM_CONST struct {
5898  const char *name;
5899  void       *address;
5900}
5901lt__PROGRAM__LTX_preloaded_symbols[] =
5902{
5903  { "@PROGRAM@", (void *) 0 },
5904_LT_EOF
5905	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5906	  cat <<\_LT_EOF >> conftest.$ac_ext
5907  {0, (void *) 0}
5908};
5909
5910/* This works around a problem in FreeBSD linker */
5911#ifdef FREEBSD_WORKAROUND
5912static const void *lt_preloaded_setup() {
5913  return lt__PROGRAM__LTX_preloaded_symbols;
5914}
5915#endif
5916
5917#ifdef __cplusplus
5918}
5919#endif
5920_LT_EOF
5921	  # Now try linking the two files.
5922	  mv conftest.$ac_objext conftstm.$ac_objext
5923	  lt_globsym_save_LIBS=$LIBS
5924	  lt_globsym_save_CFLAGS=$CFLAGS
5925	  LIBS="conftstm.$ac_objext"
5926	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5927	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5928  (eval $ac_link) 2>&5
5929  ac_status=$?
5930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5932	    pipe_works=yes
5933	  fi
5934	  LIBS=$lt_globsym_save_LIBS
5935	  CFLAGS=$lt_globsym_save_CFLAGS
5936	else
5937	  echo "cannot find nm_test_func in $nlist" >&5
5938	fi
5939      else
5940	echo "cannot find nm_test_var in $nlist" >&5
5941      fi
5942    else
5943      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5944    fi
5945  else
5946    echo "$progname: failed program was:" >&5
5947    cat conftest.$ac_ext >&5
5948  fi
5949  rm -rf conftest* conftst*
5950
5951  # Do not use the global_symbol_pipe unless it works.
5952  if test "$pipe_works" = yes; then
5953    break
5954  else
5955    lt_cv_sys_global_symbol_pipe=
5956  fi
5957done
5958
5959fi
5960
5961if test -z "$lt_cv_sys_global_symbol_pipe"; then
5962  lt_cv_sys_global_symbol_to_cdecl=
5963fi
5964if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5966$as_echo "failed" >&6; }
5967else
5968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5969$as_echo "ok" >&6; }
5970fi
5971
5972# Response file support.
5973if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5974  nm_file_list_spec='@'
5975elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5976  nm_file_list_spec='@'
5977fi
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6006$as_echo_n "checking for sysroot... " >&6; }
6007
6008# Check whether --with-sysroot was given.
6009if test "${with_sysroot+set}" = set; then :
6010  withval=$with_sysroot;
6011else
6012  with_sysroot=no
6013fi
6014
6015
6016lt_sysroot=
6017case ${with_sysroot} in #(
6018 yes)
6019   if test "$GCC" = yes; then
6020     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6021   fi
6022   ;; #(
6023 /*)
6024   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6025   ;; #(
6026 no|'')
6027   ;; #(
6028 *)
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6030$as_echo "${with_sysroot}" >&6; }
6031   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6032   ;;
6033esac
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6036$as_echo "${lt_sysroot:-no}" >&6; }
6037
6038
6039
6040
6041
6042# Check whether --enable-libtool-lock was given.
6043if test "${enable_libtool_lock+set}" = set; then :
6044  enableval=$enable_libtool_lock;
6045fi
6046
6047test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6048
6049# Some flags need to be propagated to the compiler or linker for good
6050# libtool support.
6051case $host in
6052ia64-*-hpux*)
6053  # Find out which ABI we are using.
6054  echo 'int i;' > conftest.$ac_ext
6055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6056  (eval $ac_compile) 2>&5
6057  ac_status=$?
6058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059  test $ac_status = 0; }; then
6060    case `/usr/bin/file conftest.$ac_objext` in
6061      *ELF-32*)
6062	HPUX_IA64_MODE="32"
6063	;;
6064      *ELF-64*)
6065	HPUX_IA64_MODE="64"
6066	;;
6067    esac
6068  fi
6069  rm -rf conftest*
6070  ;;
6071*-*-irix6*)
6072  # Find out which ABI we are using.
6073  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6074  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6075  (eval $ac_compile) 2>&5
6076  ac_status=$?
6077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078  test $ac_status = 0; }; then
6079    if test "$lt_cv_prog_gnu_ld" = yes; then
6080      case `/usr/bin/file conftest.$ac_objext` in
6081	*32-bit*)
6082	  LD="${LD-ld} -melf32bsmip"
6083	  ;;
6084	*N32*)
6085	  LD="${LD-ld} -melf32bmipn32"
6086	  ;;
6087	*64-bit*)
6088	  LD="${LD-ld} -melf64bmip"
6089	;;
6090      esac
6091    else
6092      case `/usr/bin/file conftest.$ac_objext` in
6093	*32-bit*)
6094	  LD="${LD-ld} -32"
6095	  ;;
6096	*N32*)
6097	  LD="${LD-ld} -n32"
6098	  ;;
6099	*64-bit*)
6100	  LD="${LD-ld} -64"
6101	  ;;
6102      esac
6103    fi
6104  fi
6105  rm -rf conftest*
6106  ;;
6107
6108x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6109s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6110  # Find out which ABI we are using.
6111  echo 'int i;' > conftest.$ac_ext
6112  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113  (eval $ac_compile) 2>&5
6114  ac_status=$?
6115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116  test $ac_status = 0; }; then
6117    case `/usr/bin/file conftest.o` in
6118      *32-bit*)
6119	case $host in
6120	  x86_64-*kfreebsd*-gnu)
6121	    LD="${LD-ld} -m elf_i386_fbsd"
6122	    ;;
6123	  x86_64-*linux*)
6124	    LD="${LD-ld} -m elf_i386"
6125	    ;;
6126	  ppc64-*linux*|powerpc64-*linux*)
6127	    LD="${LD-ld} -m elf32ppclinux"
6128	    ;;
6129	  s390x-*linux*)
6130	    LD="${LD-ld} -m elf_s390"
6131	    ;;
6132	  sparc64-*linux*)
6133	    LD="${LD-ld} -m elf32_sparc"
6134	    ;;
6135	esac
6136	;;
6137      *64-bit*)
6138	case $host in
6139	  x86_64-*kfreebsd*-gnu)
6140	    LD="${LD-ld} -m elf_x86_64_fbsd"
6141	    ;;
6142	  x86_64-*linux*)
6143	    LD="${LD-ld} -m elf_x86_64"
6144	    ;;
6145	  ppc*-*linux*|powerpc*-*linux*)
6146	    LD="${LD-ld} -m elf64ppc"
6147	    ;;
6148	  s390*-*linux*|s390*-*tpf*)
6149	    LD="${LD-ld} -m elf64_s390"
6150	    ;;
6151	  sparc*-*linux*)
6152	    LD="${LD-ld} -m elf64_sparc"
6153	    ;;
6154	esac
6155	;;
6156    esac
6157  fi
6158  rm -rf conftest*
6159  ;;
6160
6161*-*-sco3.2v5*)
6162  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6163  SAVE_CFLAGS="$CFLAGS"
6164  CFLAGS="$CFLAGS -belf"
6165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6166$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6167if ${lt_cv_cc_needs_belf+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170  ac_ext=c
6171ac_cpp='$CPP $CPPFLAGS'
6172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h.  */
6178
6179int
6180main ()
6181{
6182
6183  ;
6184  return 0;
6185}
6186_ACEOF
6187if ac_fn_c_try_link "$LINENO"; then :
6188  lt_cv_cc_needs_belf=yes
6189else
6190  lt_cv_cc_needs_belf=no
6191fi
6192rm -f core conftest.err conftest.$ac_objext \
6193    conftest$ac_exeext conftest.$ac_ext
6194     ac_ext=c
6195ac_cpp='$CPP $CPPFLAGS'
6196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199
6200fi
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6202$as_echo "$lt_cv_cc_needs_belf" >&6; }
6203  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6204    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6205    CFLAGS="$SAVE_CFLAGS"
6206  fi
6207  ;;
6208sparc*-*solaris*)
6209  # Find out which ABI we are using.
6210  echo 'int i;' > conftest.$ac_ext
6211  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6212  (eval $ac_compile) 2>&5
6213  ac_status=$?
6214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215  test $ac_status = 0; }; then
6216    case `/usr/bin/file conftest.o` in
6217    *64-bit*)
6218      case $lt_cv_prog_gnu_ld in
6219      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6220      *)
6221	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6222	  LD="${LD-ld} -64"
6223	fi
6224	;;
6225      esac
6226      ;;
6227    esac
6228  fi
6229  rm -rf conftest*
6230  ;;
6231esac
6232
6233need_locks="$enable_libtool_lock"
6234
6235if test -n "$ac_tool_prefix"; then
6236  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6237set dummy ${ac_tool_prefix}mt; ac_word=$2
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239$as_echo_n "checking for $ac_word... " >&6; }
6240if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6241  $as_echo_n "(cached) " >&6
6242else
6243  if test -n "$MANIFEST_TOOL"; then
6244  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6245else
6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249  IFS=$as_save_IFS
6250  test -z "$as_dir" && as_dir=.
6251    for ac_exec_ext in '' $ac_executable_extensions; do
6252  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255    break 2
6256  fi
6257done
6258  done
6259IFS=$as_save_IFS
6260
6261fi
6262fi
6263MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6264if test -n "$MANIFEST_TOOL"; then
6265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6266$as_echo "$MANIFEST_TOOL" >&6; }
6267else
6268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269$as_echo "no" >&6; }
6270fi
6271
6272
6273fi
6274if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6275  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6276  # Extract the first word of "mt", so it can be a program name with args.
6277set dummy mt; ac_word=$2
6278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6279$as_echo_n "checking for $ac_word... " >&6; }
6280if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  if test -n "$ac_ct_MANIFEST_TOOL"; then
6284  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6285else
6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289  IFS=$as_save_IFS
6290  test -z "$as_dir" && as_dir=.
6291    for ac_exec_ext in '' $ac_executable_extensions; do
6292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295    break 2
6296  fi
6297done
6298  done
6299IFS=$as_save_IFS
6300
6301fi
6302fi
6303ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6304if test -n "$ac_ct_MANIFEST_TOOL"; then
6305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6306$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6307else
6308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309$as_echo "no" >&6; }
6310fi
6311
6312  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6313    MANIFEST_TOOL=":"
6314  else
6315    case $cross_compiling:$ac_tool_warned in
6316yes:)
6317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6319ac_tool_warned=yes ;;
6320esac
6321    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6322  fi
6323else
6324  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6325fi
6326
6327test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6329$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6330if ${lt_cv_path_mainfest_tool+:} false; then :
6331  $as_echo_n "(cached) " >&6
6332else
6333  lt_cv_path_mainfest_tool=no
6334  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6335  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6336  cat conftest.err >&5
6337  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6338    lt_cv_path_mainfest_tool=yes
6339  fi
6340  rm -f conftest*
6341fi
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6343$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6344if test "x$lt_cv_path_mainfest_tool" != xyes; then
6345  MANIFEST_TOOL=:
6346fi
6347
6348
6349
6350
6351
6352
6353  case $host_os in
6354    rhapsody* | darwin*)
6355    if test -n "$ac_tool_prefix"; then
6356  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6357set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359$as_echo_n "checking for $ac_word... " >&6; }
6360if ${ac_cv_prog_DSYMUTIL+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  if test -n "$DSYMUTIL"; then
6364  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6365else
6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369  IFS=$as_save_IFS
6370  test -z "$as_dir" && as_dir=.
6371    for ac_exec_ext in '' $ac_executable_extensions; do
6372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375    break 2
6376  fi
6377done
6378  done
6379IFS=$as_save_IFS
6380
6381fi
6382fi
6383DSYMUTIL=$ac_cv_prog_DSYMUTIL
6384if test -n "$DSYMUTIL"; then
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6386$as_echo "$DSYMUTIL" >&6; }
6387else
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389$as_echo "no" >&6; }
6390fi
6391
6392
6393fi
6394if test -z "$ac_cv_prog_DSYMUTIL"; then
6395  ac_ct_DSYMUTIL=$DSYMUTIL
6396  # Extract the first word of "dsymutil", so it can be a program name with args.
6397set dummy dsymutil; ac_word=$2
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399$as_echo_n "checking for $ac_word... " >&6; }
6400if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403  if test -n "$ac_ct_DSYMUTIL"; then
6404  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409  IFS=$as_save_IFS
6410  test -z "$as_dir" && as_dir=.
6411    for ac_exec_ext in '' $ac_executable_extensions; do
6412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415    break 2
6416  fi
6417done
6418  done
6419IFS=$as_save_IFS
6420
6421fi
6422fi
6423ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6424if test -n "$ac_ct_DSYMUTIL"; then
6425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6426$as_echo "$ac_ct_DSYMUTIL" >&6; }
6427else
6428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429$as_echo "no" >&6; }
6430fi
6431
6432  if test "x$ac_ct_DSYMUTIL" = x; then
6433    DSYMUTIL=":"
6434  else
6435    case $cross_compiling:$ac_tool_warned in
6436yes:)
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439ac_tool_warned=yes ;;
6440esac
6441    DSYMUTIL=$ac_ct_DSYMUTIL
6442  fi
6443else
6444  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6445fi
6446
6447    if test -n "$ac_tool_prefix"; then
6448  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6449set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451$as_echo_n "checking for $ac_word... " >&6; }
6452if ${ac_cv_prog_NMEDIT+:} false; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  if test -n "$NMEDIT"; then
6456  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461  IFS=$as_save_IFS
6462  test -z "$as_dir" && as_dir=.
6463    for ac_exec_ext in '' $ac_executable_extensions; do
6464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467    break 2
6468  fi
6469done
6470  done
6471IFS=$as_save_IFS
6472
6473fi
6474fi
6475NMEDIT=$ac_cv_prog_NMEDIT
6476if test -n "$NMEDIT"; then
6477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6478$as_echo "$NMEDIT" >&6; }
6479else
6480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481$as_echo "no" >&6; }
6482fi
6483
6484
6485fi
6486if test -z "$ac_cv_prog_NMEDIT"; then
6487  ac_ct_NMEDIT=$NMEDIT
6488  # Extract the first word of "nmedit", so it can be a program name with args.
6489set dummy nmedit; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
6492if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  if test -n "$ac_ct_NMEDIT"; then
6496  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501  IFS=$as_save_IFS
6502  test -z "$as_dir" && as_dir=.
6503    for ac_exec_ext in '' $ac_executable_extensions; do
6504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507    break 2
6508  fi
6509done
6510  done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6516if test -n "$ac_ct_NMEDIT"; then
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6518$as_echo "$ac_ct_NMEDIT" >&6; }
6519else
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524  if test "x$ac_ct_NMEDIT" = x; then
6525    NMEDIT=":"
6526  else
6527    case $cross_compiling:$ac_tool_warned in
6528yes:)
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531ac_tool_warned=yes ;;
6532esac
6533    NMEDIT=$ac_ct_NMEDIT
6534  fi
6535else
6536  NMEDIT="$ac_cv_prog_NMEDIT"
6537fi
6538
6539    if test -n "$ac_tool_prefix"; then
6540  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6541set dummy ${ac_tool_prefix}lipo; ac_word=$2
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543$as_echo_n "checking for $ac_word... " >&6; }
6544if ${ac_cv_prog_LIPO+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  if test -n "$LIPO"; then
6548  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553  IFS=$as_save_IFS
6554  test -z "$as_dir" && as_dir=.
6555    for ac_exec_ext in '' $ac_executable_extensions; do
6556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559    break 2
6560  fi
6561done
6562  done
6563IFS=$as_save_IFS
6564
6565fi
6566fi
6567LIPO=$ac_cv_prog_LIPO
6568if test -n "$LIPO"; then
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6570$as_echo "$LIPO" >&6; }
6571else
6572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573$as_echo "no" >&6; }
6574fi
6575
6576
6577fi
6578if test -z "$ac_cv_prog_LIPO"; then
6579  ac_ct_LIPO=$LIPO
6580  # Extract the first word of "lipo", so it can be a program name with args.
6581set dummy lipo; ac_word=$2
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583$as_echo_n "checking for $ac_word... " >&6; }
6584if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  if test -n "$ac_ct_LIPO"; then
6588  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593  IFS=$as_save_IFS
6594  test -z "$as_dir" && as_dir=.
6595    for ac_exec_ext in '' $ac_executable_extensions; do
6596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597    ac_cv_prog_ac_ct_LIPO="lipo"
6598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599    break 2
6600  fi
6601done
6602  done
6603IFS=$as_save_IFS
6604
6605fi
6606fi
6607ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6608if test -n "$ac_ct_LIPO"; then
6609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6610$as_echo "$ac_ct_LIPO" >&6; }
6611else
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613$as_echo "no" >&6; }
6614fi
6615
6616  if test "x$ac_ct_LIPO" = x; then
6617    LIPO=":"
6618  else
6619    case $cross_compiling:$ac_tool_warned in
6620yes:)
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6623ac_tool_warned=yes ;;
6624esac
6625    LIPO=$ac_ct_LIPO
6626  fi
6627else
6628  LIPO="$ac_cv_prog_LIPO"
6629fi
6630
6631    if test -n "$ac_tool_prefix"; then
6632  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6633set dummy ${ac_tool_prefix}otool; ac_word=$2
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635$as_echo_n "checking for $ac_word... " >&6; }
6636if ${ac_cv_prog_OTOOL+:} false; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  if test -n "$OTOOL"; then
6640  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6641else
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645  IFS=$as_save_IFS
6646  test -z "$as_dir" && as_dir=.
6647    for ac_exec_ext in '' $ac_executable_extensions; do
6648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651    break 2
6652  fi
6653done
6654  done
6655IFS=$as_save_IFS
6656
6657fi
6658fi
6659OTOOL=$ac_cv_prog_OTOOL
6660if test -n "$OTOOL"; then
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6662$as_echo "$OTOOL" >&6; }
6663else
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667
6668
6669fi
6670if test -z "$ac_cv_prog_OTOOL"; then
6671  ac_ct_OTOOL=$OTOOL
6672  # Extract the first word of "otool", so it can be a program name with args.
6673set dummy otool; ac_word=$2
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675$as_echo_n "checking for $ac_word... " >&6; }
6676if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  if test -n "$ac_ct_OTOOL"; then
6680  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6681else
6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685  IFS=$as_save_IFS
6686  test -z "$as_dir" && as_dir=.
6687    for ac_exec_ext in '' $ac_executable_extensions; do
6688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6689    ac_cv_prog_ac_ct_OTOOL="otool"
6690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691    break 2
6692  fi
6693done
6694  done
6695IFS=$as_save_IFS
6696
6697fi
6698fi
6699ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6700if test -n "$ac_ct_OTOOL"; then
6701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6702$as_echo "$ac_ct_OTOOL" >&6; }
6703else
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705$as_echo "no" >&6; }
6706fi
6707
6708  if test "x$ac_ct_OTOOL" = x; then
6709    OTOOL=":"
6710  else
6711    case $cross_compiling:$ac_tool_warned in
6712yes:)
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6715ac_tool_warned=yes ;;
6716esac
6717    OTOOL=$ac_ct_OTOOL
6718  fi
6719else
6720  OTOOL="$ac_cv_prog_OTOOL"
6721fi
6722
6723    if test -n "$ac_tool_prefix"; then
6724  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6725set dummy ${ac_tool_prefix}otool64; ac_word=$2
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
6728if ${ac_cv_prog_OTOOL64+:} false; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731  if test -n "$OTOOL64"; then
6732  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737  IFS=$as_save_IFS
6738  test -z "$as_dir" && as_dir=.
6739    for ac_exec_ext in '' $ac_executable_extensions; do
6740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743    break 2
6744  fi
6745done
6746  done
6747IFS=$as_save_IFS
6748
6749fi
6750fi
6751OTOOL64=$ac_cv_prog_OTOOL64
6752if test -n "$OTOOL64"; then
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6754$as_echo "$OTOOL64" >&6; }
6755else
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
6759
6760
6761fi
6762if test -z "$ac_cv_prog_OTOOL64"; then
6763  ac_ct_OTOOL64=$OTOOL64
6764  # Extract the first word of "otool64", so it can be a program name with args.
6765set dummy otool64; ac_word=$2
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767$as_echo_n "checking for $ac_word... " >&6; }
6768if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  if test -n "$ac_ct_OTOOL64"; then
6772  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6773else
6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777  IFS=$as_save_IFS
6778  test -z "$as_dir" && as_dir=.
6779    for ac_exec_ext in '' $ac_executable_extensions; do
6780  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781    ac_cv_prog_ac_ct_OTOOL64="otool64"
6782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783    break 2
6784  fi
6785done
6786  done
6787IFS=$as_save_IFS
6788
6789fi
6790fi
6791ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6792if test -n "$ac_ct_OTOOL64"; then
6793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6794$as_echo "$ac_ct_OTOOL64" >&6; }
6795else
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797$as_echo "no" >&6; }
6798fi
6799
6800  if test "x$ac_ct_OTOOL64" = x; then
6801    OTOOL64=":"
6802  else
6803    case $cross_compiling:$ac_tool_warned in
6804yes:)
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809    OTOOL64=$ac_ct_OTOOL64
6810  fi
6811else
6812  OTOOL64="$ac_cv_prog_OTOOL64"
6813fi
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6842$as_echo_n "checking for -single_module linker flag... " >&6; }
6843if ${lt_cv_apple_cc_single_mod+:} false; then :
6844  $as_echo_n "(cached) " >&6
6845else
6846  lt_cv_apple_cc_single_mod=no
6847      if test -z "${LT_MULTI_MODULE}"; then
6848	# By default we will add the -single_module flag. You can override
6849	# by either setting the environment variable LT_MULTI_MODULE
6850	# non-empty at configure time, or by adding -multi_module to the
6851	# link flags.
6852	rm -rf libconftest.dylib*
6853	echo "int foo(void){return 1;}" > conftest.c
6854	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6855-dynamiclib -Wl,-single_module conftest.c" >&5
6856	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6857	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6858        _lt_result=$?
6859	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6860	  lt_cv_apple_cc_single_mod=yes
6861	else
6862	  cat conftest.err >&5
6863	fi
6864	rm -rf libconftest.dylib*
6865	rm -f conftest.*
6866      fi
6867fi
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6869$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6871$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6872if ${lt_cv_ld_exported_symbols_list+:} false; then :
6873  $as_echo_n "(cached) " >&6
6874else
6875  lt_cv_ld_exported_symbols_list=no
6876      save_LDFLAGS=$LDFLAGS
6877      echo "_main" > conftest.sym
6878      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6879      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880/* end confdefs.h.  */
6881
6882int
6883main ()
6884{
6885
6886  ;
6887  return 0;
6888}
6889_ACEOF
6890if ac_fn_c_try_link "$LINENO"; then :
6891  lt_cv_ld_exported_symbols_list=yes
6892else
6893  lt_cv_ld_exported_symbols_list=no
6894fi
6895rm -f core conftest.err conftest.$ac_objext \
6896    conftest$ac_exeext conftest.$ac_ext
6897	LDFLAGS="$save_LDFLAGS"
6898
6899fi
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6901$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6903$as_echo_n "checking for -force_load linker flag... " >&6; }
6904if ${lt_cv_ld_force_load+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  lt_cv_ld_force_load=no
6908      cat > conftest.c << _LT_EOF
6909int forced_loaded() { return 2;}
6910_LT_EOF
6911      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6912      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6913      echo "$AR cru libconftest.a conftest.o" >&5
6914      $AR cru libconftest.a conftest.o 2>&5
6915      echo "$RANLIB libconftest.a" >&5
6916      $RANLIB libconftest.a 2>&5
6917      cat > conftest.c << _LT_EOF
6918int main() { return 0;}
6919_LT_EOF
6920      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6921      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6922      _lt_result=$?
6923      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6924	lt_cv_ld_force_load=yes
6925      else
6926	cat conftest.err >&5
6927      fi
6928        rm -f conftest.err libconftest.a conftest conftest.c
6929        rm -rf conftest.dSYM
6930
6931fi
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6933$as_echo "$lt_cv_ld_force_load" >&6; }
6934    case $host_os in
6935    rhapsody* | darwin1.[012])
6936      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6937    darwin1.*)
6938      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6939    darwin*) # darwin 5.x on
6940      # if running on 10.5 or later, the deployment target defaults
6941      # to the OS version, if on x86, and 10.4, the deployment
6942      # target defaults to 10.4. Don't you love it?
6943      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6944	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6945	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6946	10.[012]*)
6947	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6948	10.*)
6949	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6950      esac
6951    ;;
6952  esac
6953    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6954      _lt_dar_single_mod='$single_module'
6955    fi
6956    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6957      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6958    else
6959      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6960    fi
6961    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6962      _lt_dsymutil='~$DSYMUTIL $lib || :'
6963    else
6964      _lt_dsymutil=
6965    fi
6966    ;;
6967  esac
6968
6969ac_ext=c
6970ac_cpp='$CPP $CPPFLAGS'
6971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6975$as_echo_n "checking how to run the C preprocessor... " >&6; }
6976# On Suns, sometimes $CPP names a directory.
6977if test -n "$CPP" && test -d "$CPP"; then
6978  CPP=
6979fi
6980if test -z "$CPP"; then
6981  if ${ac_cv_prog_CPP+:} false; then :
6982  $as_echo_n "(cached) " >&6
6983else
6984      # Double quotes because CPP needs to be expanded
6985    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6986    do
6987      ac_preproc_ok=false
6988for ac_c_preproc_warn_flag in '' yes
6989do
6990  # Use a header file that comes with gcc, so configuring glibc
6991  # with a fresh cross-compiler works.
6992  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993  # <limits.h> exists even on freestanding compilers.
6994  # On the NeXT, cc -E runs the code through the compiler's parser,
6995  # not just through cpp. "Syntax error" is here to catch this case.
6996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997/* end confdefs.h.  */
6998#ifdef __STDC__
6999# include <limits.h>
7000#else
7001# include <assert.h>
7002#endif
7003		     Syntax error
7004_ACEOF
7005if ac_fn_c_try_cpp "$LINENO"; then :
7006
7007else
7008  # Broken: fails on valid input.
7009continue
7010fi
7011rm -f conftest.err conftest.i conftest.$ac_ext
7012
7013  # OK, works on sane cases.  Now check whether nonexistent headers
7014  # can be detected and how.
7015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016/* end confdefs.h.  */
7017#include <ac_nonexistent.h>
7018_ACEOF
7019if ac_fn_c_try_cpp "$LINENO"; then :
7020  # Broken: success on invalid input.
7021continue
7022else
7023  # Passes both tests.
7024ac_preproc_ok=:
7025break
7026fi
7027rm -f conftest.err conftest.i conftest.$ac_ext
7028
7029done
7030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7031rm -f conftest.i conftest.err conftest.$ac_ext
7032if $ac_preproc_ok; then :
7033  break
7034fi
7035
7036    done
7037    ac_cv_prog_CPP=$CPP
7038
7039fi
7040  CPP=$ac_cv_prog_CPP
7041else
7042  ac_cv_prog_CPP=$CPP
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7045$as_echo "$CPP" >&6; }
7046ac_preproc_ok=false
7047for ac_c_preproc_warn_flag in '' yes
7048do
7049  # Use a header file that comes with gcc, so configuring glibc
7050  # with a fresh cross-compiler works.
7051  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052  # <limits.h> exists even on freestanding compilers.
7053  # On the NeXT, cc -E runs the code through the compiler's parser,
7054  # not just through cpp. "Syntax error" is here to catch this case.
7055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h.  */
7057#ifdef __STDC__
7058# include <limits.h>
7059#else
7060# include <assert.h>
7061#endif
7062		     Syntax error
7063_ACEOF
7064if ac_fn_c_try_cpp "$LINENO"; then :
7065
7066else
7067  # Broken: fails on valid input.
7068continue
7069fi
7070rm -f conftest.err conftest.i conftest.$ac_ext
7071
7072  # OK, works on sane cases.  Now check whether nonexistent headers
7073  # can be detected and how.
7074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075/* end confdefs.h.  */
7076#include <ac_nonexistent.h>
7077_ACEOF
7078if ac_fn_c_try_cpp "$LINENO"; then :
7079  # Broken: success on invalid input.
7080continue
7081else
7082  # Passes both tests.
7083ac_preproc_ok=:
7084break
7085fi
7086rm -f conftest.err conftest.i conftest.$ac_ext
7087
7088done
7089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7090rm -f conftest.i conftest.err conftest.$ac_ext
7091if $ac_preproc_ok; then :
7092
7093else
7094  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7096as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7097See \`config.log' for more details" "$LINENO" 5; }
7098fi
7099
7100ac_ext=c
7101ac_cpp='$CPP $CPPFLAGS'
7102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105
7106
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7108$as_echo_n "checking for ANSI C header files... " >&6; }
7109if ${ac_cv_header_stdc+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h.  */
7114#include <stdlib.h>
7115#include <stdarg.h>
7116#include <string.h>
7117#include <float.h>
7118
7119int
7120main ()
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_compile "$LINENO"; then :
7128  ac_cv_header_stdc=yes
7129else
7130  ac_cv_header_stdc=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133
7134if test $ac_cv_header_stdc = yes; then
7135  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h.  */
7138#include <string.h>
7139
7140_ACEOF
7141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142  $EGREP "memchr" >/dev/null 2>&1; then :
7143
7144else
7145  ac_cv_header_stdc=no
7146fi
7147rm -f conftest*
7148
7149fi
7150
7151if test $ac_cv_header_stdc = yes; then
7152  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h.  */
7155#include <stdlib.h>
7156
7157_ACEOF
7158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7159  $EGREP "free" >/dev/null 2>&1; then :
7160
7161else
7162  ac_cv_header_stdc=no
7163fi
7164rm -f conftest*
7165
7166fi
7167
7168if test $ac_cv_header_stdc = yes; then
7169  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7170  if test "$cross_compiling" = yes; then :
7171  :
7172else
7173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174/* end confdefs.h.  */
7175#include <ctype.h>
7176#include <stdlib.h>
7177#if ((' ' & 0x0FF) == 0x020)
7178# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7179# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7180#else
7181# define ISLOWER(c) \
7182		   (('a' <= (c) && (c) <= 'i') \
7183		     || ('j' <= (c) && (c) <= 'r') \
7184		     || ('s' <= (c) && (c) <= 'z'))
7185# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7186#endif
7187
7188#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7189int
7190main ()
7191{
7192  int i;
7193  for (i = 0; i < 256; i++)
7194    if (XOR (islower (i), ISLOWER (i))
7195	|| toupper (i) != TOUPPER (i))
7196      return 2;
7197  return 0;
7198}
7199_ACEOF
7200if ac_fn_c_try_run "$LINENO"; then :
7201
7202else
7203  ac_cv_header_stdc=no
7204fi
7205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7206  conftest.$ac_objext conftest.beam conftest.$ac_ext
7207fi
7208
7209fi
7210fi
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7212$as_echo "$ac_cv_header_stdc" >&6; }
7213if test $ac_cv_header_stdc = yes; then
7214
7215$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7216
7217fi
7218
7219# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7220for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7221		  inttypes.h stdint.h unistd.h
7222do :
7223  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7224ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7225"
7226if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7227  cat >>confdefs.h <<_ACEOF
7228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7229_ACEOF
7230
7231fi
7232
7233done
7234
7235
7236for ac_header in dlfcn.h
7237do :
7238  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7239"
7240if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7241  cat >>confdefs.h <<_ACEOF
7242#define HAVE_DLFCN_H 1
7243_ACEOF
7244
7245fi
7246
7247done
7248
7249
7250
7251
7252
7253# Set options
7254
7255
7256
7257        enable_dlopen=no
7258
7259
7260  enable_win32_dll=no
7261
7262
7263            # Check whether --enable-shared was given.
7264if test "${enable_shared+set}" = set; then :
7265  enableval=$enable_shared; p=${PACKAGE-default}
7266    case $enableval in
7267    yes) enable_shared=yes ;;
7268    no) enable_shared=no ;;
7269    *)
7270      enable_shared=no
7271      # Look at the argument we got.  We use all the common list separators.
7272      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7273      for pkg in $enableval; do
7274	IFS="$lt_save_ifs"
7275	if test "X$pkg" = "X$p"; then
7276	  enable_shared=yes
7277	fi
7278      done
7279      IFS="$lt_save_ifs"
7280      ;;
7281    esac
7282else
7283  enable_shared=yes
7284fi
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294  # Check whether --enable-static was given.
7295if test "${enable_static+set}" = set; then :
7296  enableval=$enable_static; p=${PACKAGE-default}
7297    case $enableval in
7298    yes) enable_static=yes ;;
7299    no) enable_static=no ;;
7300    *)
7301     enable_static=no
7302      # Look at the argument we got.  We use all the common list separators.
7303      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7304      for pkg in $enableval; do
7305	IFS="$lt_save_ifs"
7306	if test "X$pkg" = "X$p"; then
7307	  enable_static=yes
7308	fi
7309      done
7310      IFS="$lt_save_ifs"
7311      ;;
7312    esac
7313else
7314  enable_static=yes
7315fi
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326# Check whether --with-pic was given.
7327if test "${with_pic+set}" = set; then :
7328  withval=$with_pic; pic_mode="$withval"
7329else
7330  pic_mode=default
7331fi
7332
7333
7334test -z "$pic_mode" && pic_mode=default
7335
7336
7337
7338
7339
7340
7341
7342  # Check whether --enable-fast-install was given.
7343if test "${enable_fast_install+set}" = set; then :
7344  enableval=$enable_fast_install; p=${PACKAGE-default}
7345    case $enableval in
7346    yes) enable_fast_install=yes ;;
7347    no) enable_fast_install=no ;;
7348    *)
7349      enable_fast_install=no
7350      # Look at the argument we got.  We use all the common list separators.
7351      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7352      for pkg in $enableval; do
7353	IFS="$lt_save_ifs"
7354	if test "X$pkg" = "X$p"; then
7355	  enable_fast_install=yes
7356	fi
7357      done
7358      IFS="$lt_save_ifs"
7359      ;;
7360    esac
7361else
7362  enable_fast_install=yes
7363fi
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375# This can be used to rebuild libtool when needed
7376LIBTOOL_DEPS="$ltmain"
7377
7378# Always use our own libtool.
7379LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406test -z "$LN_S" && LN_S="ln -s"
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421if test -n "${ZSH_VERSION+set}" ; then
7422   setopt NO_GLOB_SUBST
7423fi
7424
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7426$as_echo_n "checking for objdir... " >&6; }
7427if ${lt_cv_objdir+:} false; then :
7428  $as_echo_n "(cached) " >&6
7429else
7430  rm -f .libs 2>/dev/null
7431mkdir .libs 2>/dev/null
7432if test -d .libs; then
7433  lt_cv_objdir=.libs
7434else
7435  # MS-DOS does not allow filenames that begin with a dot.
7436  lt_cv_objdir=_libs
7437fi
7438rmdir .libs 2>/dev/null
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7441$as_echo "$lt_cv_objdir" >&6; }
7442objdir=$lt_cv_objdir
7443
7444
7445
7446
7447
7448cat >>confdefs.h <<_ACEOF
7449#define LT_OBJDIR "$lt_cv_objdir/"
7450_ACEOF
7451
7452
7453
7454
7455case $host_os in
7456aix3*)
7457  # AIX sometimes has problems with the GCC collect2 program.  For some
7458  # reason, if we set the COLLECT_NAMES environment variable, the problems
7459  # vanish in a puff of smoke.
7460  if test "X${COLLECT_NAMES+set}" != Xset; then
7461    COLLECT_NAMES=
7462    export COLLECT_NAMES
7463  fi
7464  ;;
7465esac
7466
7467# Global variables:
7468ofile=libtool
7469can_build_shared=yes
7470
7471# All known linkers require a `.a' archive for static linking (except MSVC,
7472# which needs '.lib').
7473libext=a
7474
7475with_gnu_ld="$lt_cv_prog_gnu_ld"
7476
7477old_CC="$CC"
7478old_CFLAGS="$CFLAGS"
7479
7480# Set sane defaults for various variables
7481test -z "$CC" && CC=cc
7482test -z "$LTCC" && LTCC=$CC
7483test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7484test -z "$LD" && LD=ld
7485test -z "$ac_objext" && ac_objext=o
7486
7487for cc_temp in $compiler""; do
7488  case $cc_temp in
7489    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7490    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7491    \-*) ;;
7492    *) break;;
7493  esac
7494done
7495cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7496
7497
7498# Only perform the check for file, if the check method requires it
7499test -z "$MAGIC_CMD" && MAGIC_CMD=file
7500case $deplibs_check_method in
7501file_magic*)
7502  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7504$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7505if ${lt_cv_path_MAGIC_CMD+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  case $MAGIC_CMD in
7509[\\/*] |  ?:[\\/]*)
7510  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511  ;;
7512*)
7513  lt_save_MAGIC_CMD="$MAGIC_CMD"
7514  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516  for ac_dir in $ac_dummy; do
7517    IFS="$lt_save_ifs"
7518    test -z "$ac_dir" && ac_dir=.
7519    if test -f $ac_dir/${ac_tool_prefix}file; then
7520      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7521      if test -n "$file_magic_test_file"; then
7522	case $deplibs_check_method in
7523	"file_magic "*)
7524	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527	    $EGREP "$file_magic_regex" > /dev/null; then
7528	    :
7529	  else
7530	    cat <<_LT_EOF 1>&2
7531
7532*** Warning: the command libtool uses to detect shared libraries,
7533*** $file_magic_cmd, produces output that libtool cannot recognize.
7534*** The result is that libtool may fail to recognize shared libraries
7535*** as such.  This will affect the creation of libtool libraries that
7536*** depend on shared libraries, but programs linked with such libtool
7537*** libraries will work regardless of this problem.  Nevertheless, you
7538*** may want to report the problem to your system manager and/or to
7539*** bug-libtool@gnu.org
7540
7541_LT_EOF
7542	  fi ;;
7543	esac
7544      fi
7545      break
7546    fi
7547  done
7548  IFS="$lt_save_ifs"
7549  MAGIC_CMD="$lt_save_MAGIC_CMD"
7550  ;;
7551esac
7552fi
7553
7554MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555if test -n "$MAGIC_CMD"; then
7556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7557$as_echo "$MAGIC_CMD" >&6; }
7558else
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
7561fi
7562
7563
7564
7565
7566
7567if test -z "$lt_cv_path_MAGIC_CMD"; then
7568  if test -n "$ac_tool_prefix"; then
7569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7570$as_echo_n "checking for file... " >&6; }
7571if ${lt_cv_path_MAGIC_CMD+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  case $MAGIC_CMD in
7575[\\/*] |  ?:[\\/]*)
7576  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7577  ;;
7578*)
7579  lt_save_MAGIC_CMD="$MAGIC_CMD"
7580  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7581  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7582  for ac_dir in $ac_dummy; do
7583    IFS="$lt_save_ifs"
7584    test -z "$ac_dir" && ac_dir=.
7585    if test -f $ac_dir/file; then
7586      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7587      if test -n "$file_magic_test_file"; then
7588	case $deplibs_check_method in
7589	"file_magic "*)
7590	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7591	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7593	    $EGREP "$file_magic_regex" > /dev/null; then
7594	    :
7595	  else
7596	    cat <<_LT_EOF 1>&2
7597
7598*** Warning: the command libtool uses to detect shared libraries,
7599*** $file_magic_cmd, produces output that libtool cannot recognize.
7600*** The result is that libtool may fail to recognize shared libraries
7601*** as such.  This will affect the creation of libtool libraries that
7602*** depend on shared libraries, but programs linked with such libtool
7603*** libraries will work regardless of this problem.  Nevertheless, you
7604*** may want to report the problem to your system manager and/or to
7605*** bug-libtool@gnu.org
7606
7607_LT_EOF
7608	  fi ;;
7609	esac
7610      fi
7611      break
7612    fi
7613  done
7614  IFS="$lt_save_ifs"
7615  MAGIC_CMD="$lt_save_MAGIC_CMD"
7616  ;;
7617esac
7618fi
7619
7620MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7621if test -n "$MAGIC_CMD"; then
7622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7623$as_echo "$MAGIC_CMD" >&6; }
7624else
7625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626$as_echo "no" >&6; }
7627fi
7628
7629
7630  else
7631    MAGIC_CMD=:
7632  fi
7633fi
7634
7635  fi
7636  ;;
7637esac
7638
7639# Use C for the default configuration in the libtool script
7640
7641lt_save_CC="$CC"
7642ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649# Source file extension for C test sources.
7650ac_ext=c
7651
7652# Object file extension for compiled C test sources.
7653objext=o
7654objext=$objext
7655
7656# Code to be used in simple compile tests
7657lt_simple_compile_test_code="int some_variable = 0;"
7658
7659# Code to be used in simple link tests
7660lt_simple_link_test_code='int main(){return(0);}'
7661
7662
7663
7664
7665
7666
7667
7668# If no C compiler was specified, use CC.
7669LTCC=${LTCC-"$CC"}
7670
7671# If no C compiler flags were specified, use CFLAGS.
7672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7673
7674# Allow CC to be a program name with arguments.
7675compiler=$CC
7676
7677# Save the default compiler, since it gets overwritten when the other
7678# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7679compiler_DEFAULT=$CC
7680
7681# save warnings/boilerplate of simple test code
7682ac_outfile=conftest.$ac_objext
7683echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685_lt_compiler_boilerplate=`cat conftest.err`
7686$RM conftest*
7687
7688ac_outfile=conftest.$ac_objext
7689echo "$lt_simple_link_test_code" >conftest.$ac_ext
7690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7691_lt_linker_boilerplate=`cat conftest.err`
7692$RM -r conftest*
7693
7694
7695if test -n "$compiler"; then
7696
7697lt_prog_compiler_no_builtin_flag=
7698
7699if test "$GCC" = yes; then
7700  case $cc_basename in
7701  nvcc*)
7702    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7703  *)
7704    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7705  esac
7706
7707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7708$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7709if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  lt_cv_prog_compiler_rtti_exceptions=no
7713   ac_outfile=conftest.$ac_objext
7714   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715   lt_compiler_flag="-fno-rtti -fno-exceptions"
7716   # Insert the option either (1) after the last *FLAGS variable, or
7717   # (2) before a word containing "conftest.", or (3) at the end.
7718   # Note that $ac_compile itself does not contain backslashes and begins
7719   # with a dollar sign (not a hyphen), so the echo should work correctly.
7720   # The option is referenced via a variable to avoid confusing sed.
7721   lt_compile=`echo "$ac_compile" | $SED \
7722   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724   -e 's:$: $lt_compiler_flag:'`
7725   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7726   (eval "$lt_compile" 2>conftest.err)
7727   ac_status=$?
7728   cat conftest.err >&5
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   if (exit $ac_status) && test -s "$ac_outfile"; then
7731     # The compiler can only warn and ignore the option if not recognized
7732     # So say no if there are warnings other than the usual output.
7733     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7734     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7735     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7736       lt_cv_prog_compiler_rtti_exceptions=yes
7737     fi
7738   fi
7739   $RM conftest*
7740
7741fi
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7743$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7744
7745if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7746    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7747else
7748    :
7749fi
7750
7751fi
7752
7753
7754
7755
7756
7757
7758  lt_prog_compiler_wl=
7759lt_prog_compiler_pic=
7760lt_prog_compiler_static=
7761
7762
7763  if test "$GCC" = yes; then
7764    lt_prog_compiler_wl='-Wl,'
7765    lt_prog_compiler_static='-static'
7766
7767    case $host_os in
7768      aix*)
7769      # All AIX code is PIC.
7770      if test "$host_cpu" = ia64; then
7771	# AIX 5 now supports IA64 processor
7772	lt_prog_compiler_static='-Bstatic'
7773      fi
7774      ;;
7775
7776    amigaos*)
7777      case $host_cpu in
7778      powerpc)
7779            # see comment about AmigaOS4 .so support
7780            lt_prog_compiler_pic='-fPIC'
7781        ;;
7782      m68k)
7783            # FIXME: we need at least 68020 code to build shared libraries, but
7784            # adding the `-m68020' flag to GCC prevents building anything better,
7785            # like `-m68040'.
7786            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7787        ;;
7788      esac
7789      ;;
7790
7791    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7792      # PIC is the default for these OSes.
7793      ;;
7794
7795    mingw* | cygwin* | pw32* | os2* | cegcc*)
7796      # This hack is so that the source file can tell whether it is being
7797      # built for inclusion in a dll (and should export symbols for example).
7798      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7799      # (--disable-auto-import) libraries
7800      lt_prog_compiler_pic='-DDLL_EXPORT'
7801      ;;
7802
7803    darwin* | rhapsody*)
7804      # PIC is the default on this platform
7805      # Common symbols not allowed in MH_DYLIB files
7806      lt_prog_compiler_pic='-fno-common'
7807      ;;
7808
7809    haiku*)
7810      # PIC is the default for Haiku.
7811      # The "-static" flag exists, but is broken.
7812      lt_prog_compiler_static=
7813      ;;
7814
7815    hpux*)
7816      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7817      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7818      # sets the default TLS model and affects inlining.
7819      case $host_cpu in
7820      hppa*64*)
7821	# +Z the default
7822	;;
7823      *)
7824	lt_prog_compiler_pic='-fPIC'
7825	;;
7826      esac
7827      ;;
7828
7829    interix[3-9]*)
7830      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7831      # Instead, we relocate shared libraries at runtime.
7832      ;;
7833
7834    msdosdjgpp*)
7835      # Just because we use GCC doesn't mean we suddenly get shared libraries
7836      # on systems that don't support them.
7837      lt_prog_compiler_can_build_shared=no
7838      enable_shared=no
7839      ;;
7840
7841    *nto* | *qnx*)
7842      # QNX uses GNU C++, but need to define -shared option too, otherwise
7843      # it will coredump.
7844      lt_prog_compiler_pic='-fPIC -shared'
7845      ;;
7846
7847    sysv4*MP*)
7848      if test -d /usr/nec; then
7849	lt_prog_compiler_pic=-Kconform_pic
7850      fi
7851      ;;
7852
7853    *)
7854      lt_prog_compiler_pic='-fPIC'
7855      ;;
7856    esac
7857
7858    case $cc_basename in
7859    nvcc*) # Cuda Compiler Driver 2.2
7860      lt_prog_compiler_wl='-Xlinker '
7861      lt_prog_compiler_pic='-Xcompiler -fPIC'
7862      ;;
7863    esac
7864  else
7865    # PORTME Check for flag to pass linker flags through the system compiler.
7866    case $host_os in
7867    aix*)
7868      lt_prog_compiler_wl='-Wl,'
7869      if test "$host_cpu" = ia64; then
7870	# AIX 5 now supports IA64 processor
7871	lt_prog_compiler_static='-Bstatic'
7872      else
7873	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7874      fi
7875      ;;
7876
7877    mingw* | cygwin* | pw32* | os2* | cegcc*)
7878      # This hack is so that the source file can tell whether it is being
7879      # built for inclusion in a dll (and should export symbols for example).
7880      lt_prog_compiler_pic='-DDLL_EXPORT'
7881      ;;
7882
7883    hpux9* | hpux10* | hpux11*)
7884      lt_prog_compiler_wl='-Wl,'
7885      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7886      # not for PA HP-UX.
7887      case $host_cpu in
7888      hppa*64*|ia64*)
7889	# +Z the default
7890	;;
7891      *)
7892	lt_prog_compiler_pic='+Z'
7893	;;
7894      esac
7895      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7896      lt_prog_compiler_static='${wl}-a ${wl}archive'
7897      ;;
7898
7899    irix5* | irix6* | nonstopux*)
7900      lt_prog_compiler_wl='-Wl,'
7901      # PIC (with -KPIC) is the default.
7902      lt_prog_compiler_static='-non_shared'
7903      ;;
7904
7905    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7906      case $cc_basename in
7907      # old Intel for x86_64 which still supported -KPIC.
7908      ecc*)
7909	lt_prog_compiler_wl='-Wl,'
7910	lt_prog_compiler_pic='-KPIC'
7911	lt_prog_compiler_static='-static'
7912        ;;
7913      # icc used to be incompatible with GCC.
7914      # ICC 10 doesn't accept -KPIC any more.
7915      icc* | ifort*)
7916	lt_prog_compiler_wl='-Wl,'
7917	lt_prog_compiler_pic='-fPIC'
7918	lt_prog_compiler_static='-static'
7919        ;;
7920      # Lahey Fortran 8.1.
7921      lf95*)
7922	lt_prog_compiler_wl='-Wl,'
7923	lt_prog_compiler_pic='--shared'
7924	lt_prog_compiler_static='--static'
7925	;;
7926      nagfor*)
7927	# NAG Fortran compiler
7928	lt_prog_compiler_wl='-Wl,-Wl,,'
7929	lt_prog_compiler_pic='-PIC'
7930	lt_prog_compiler_static='-Bstatic'
7931	;;
7932      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7933        # Portland Group compilers (*not* the Pentium gcc compiler,
7934	# which looks to be a dead project)
7935	lt_prog_compiler_wl='-Wl,'
7936	lt_prog_compiler_pic='-fpic'
7937	lt_prog_compiler_static='-Bstatic'
7938        ;;
7939      ccc*)
7940        lt_prog_compiler_wl='-Wl,'
7941        # All Alpha code is PIC.
7942        lt_prog_compiler_static='-non_shared'
7943        ;;
7944      xl* | bgxl* | bgf* | mpixl*)
7945	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7946	lt_prog_compiler_wl='-Wl,'
7947	lt_prog_compiler_pic='-qpic'
7948	lt_prog_compiler_static='-qstaticlink'
7949	;;
7950      *)
7951	case `$CC -V 2>&1 | sed 5q` in
7952	*Sun\ F* | *Sun*Fortran*)
7953	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7954	  lt_prog_compiler_pic='-KPIC'
7955	  lt_prog_compiler_static='-Bstatic'
7956	  lt_prog_compiler_wl=''
7957	  ;;
7958	*Sun\ C*)
7959	  # Sun C 5.9
7960	  lt_prog_compiler_pic='-KPIC'
7961	  lt_prog_compiler_static='-Bstatic'
7962	  lt_prog_compiler_wl='-Wl,'
7963	  ;;
7964	esac
7965	;;
7966      esac
7967      ;;
7968
7969    newsos6)
7970      lt_prog_compiler_pic='-KPIC'
7971      lt_prog_compiler_static='-Bstatic'
7972      ;;
7973
7974    *nto* | *qnx*)
7975      # QNX uses GNU C++, but need to define -shared option too, otherwise
7976      # it will coredump.
7977      lt_prog_compiler_pic='-fPIC -shared'
7978      ;;
7979
7980    osf3* | osf4* | osf5*)
7981      lt_prog_compiler_wl='-Wl,'
7982      # All OSF/1 code is PIC.
7983      lt_prog_compiler_static='-non_shared'
7984      ;;
7985
7986    rdos*)
7987      lt_prog_compiler_static='-non_shared'
7988      ;;
7989
7990    solaris*)
7991      lt_prog_compiler_pic='-KPIC'
7992      lt_prog_compiler_static='-Bstatic'
7993      case $cc_basename in
7994      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7995	lt_prog_compiler_wl='-Qoption ld ';;
7996      *)
7997	lt_prog_compiler_wl='-Wl,';;
7998      esac
7999      ;;
8000
8001    sunos4*)
8002      lt_prog_compiler_wl='-Qoption ld '
8003      lt_prog_compiler_pic='-PIC'
8004      lt_prog_compiler_static='-Bstatic'
8005      ;;
8006
8007    sysv4 | sysv4.2uw2* | sysv4.3*)
8008      lt_prog_compiler_wl='-Wl,'
8009      lt_prog_compiler_pic='-KPIC'
8010      lt_prog_compiler_static='-Bstatic'
8011      ;;
8012
8013    sysv4*MP*)
8014      if test -d /usr/nec ;then
8015	lt_prog_compiler_pic='-Kconform_pic'
8016	lt_prog_compiler_static='-Bstatic'
8017      fi
8018      ;;
8019
8020    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8021      lt_prog_compiler_wl='-Wl,'
8022      lt_prog_compiler_pic='-KPIC'
8023      lt_prog_compiler_static='-Bstatic'
8024      ;;
8025
8026    unicos*)
8027      lt_prog_compiler_wl='-Wl,'
8028      lt_prog_compiler_can_build_shared=no
8029      ;;
8030
8031    uts4*)
8032      lt_prog_compiler_pic='-pic'
8033      lt_prog_compiler_static='-Bstatic'
8034      ;;
8035
8036    *)
8037      lt_prog_compiler_can_build_shared=no
8038      ;;
8039    esac
8040  fi
8041
8042case $host_os in
8043  # For platforms which do not support PIC, -DPIC is meaningless:
8044  *djgpp*)
8045    lt_prog_compiler_pic=
8046    ;;
8047  *)
8048    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8049    ;;
8050esac
8051
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8053$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8054if ${lt_cv_prog_compiler_pic+:} false; then :
8055  $as_echo_n "(cached) " >&6
8056else
8057  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8060$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8061lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8062
8063#
8064# Check to make sure the PIC flag actually works.
8065#
8066if test -n "$lt_prog_compiler_pic"; then
8067  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8068$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8069if ${lt_cv_prog_compiler_pic_works+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  lt_cv_prog_compiler_pic_works=no
8073   ac_outfile=conftest.$ac_objext
8074   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8075   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8076   # Insert the option either (1) after the last *FLAGS variable, or
8077   # (2) before a word containing "conftest.", or (3) at the end.
8078   # Note that $ac_compile itself does not contain backslashes and begins
8079   # with a dollar sign (not a hyphen), so the echo should work correctly.
8080   # The option is referenced via a variable to avoid confusing sed.
8081   lt_compile=`echo "$ac_compile" | $SED \
8082   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8083   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8084   -e 's:$: $lt_compiler_flag:'`
8085   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8086   (eval "$lt_compile" 2>conftest.err)
8087   ac_status=$?
8088   cat conftest.err >&5
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   if (exit $ac_status) && test -s "$ac_outfile"; then
8091     # The compiler can only warn and ignore the option if not recognized
8092     # So say no if there are warnings other than the usual output.
8093     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8094     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8095     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8096       lt_cv_prog_compiler_pic_works=yes
8097     fi
8098   fi
8099   $RM conftest*
8100
8101fi
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8103$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8104
8105if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8106    case $lt_prog_compiler_pic in
8107     "" | " "*) ;;
8108     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8109     esac
8110else
8111    lt_prog_compiler_pic=
8112     lt_prog_compiler_can_build_shared=no
8113fi
8114
8115fi
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127#
8128# Check to make sure the static flag actually works.
8129#
8130wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8132$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8133if ${lt_cv_prog_compiler_static_works+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  lt_cv_prog_compiler_static_works=no
8137   save_LDFLAGS="$LDFLAGS"
8138   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8139   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8140   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8141     # The linker can only warn and ignore the option if not recognized
8142     # So say no if there are warnings
8143     if test -s conftest.err; then
8144       # Append any errors to the config.log.
8145       cat conftest.err 1>&5
8146       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8147       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8148       if diff conftest.exp conftest.er2 >/dev/null; then
8149         lt_cv_prog_compiler_static_works=yes
8150       fi
8151     else
8152       lt_cv_prog_compiler_static_works=yes
8153     fi
8154   fi
8155   $RM -r conftest*
8156   LDFLAGS="$save_LDFLAGS"
8157
8158fi
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8160$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8161
8162if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8163    :
8164else
8165    lt_prog_compiler_static=
8166fi
8167
8168
8169
8170
8171
8172
8173
8174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8175$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8176if ${lt_cv_prog_compiler_c_o+:} false; then :
8177  $as_echo_n "(cached) " >&6
8178else
8179  lt_cv_prog_compiler_c_o=no
8180   $RM -r conftest 2>/dev/null
8181   mkdir conftest
8182   cd conftest
8183   mkdir out
8184   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8185
8186   lt_compiler_flag="-o out/conftest2.$ac_objext"
8187   # Insert the option either (1) after the last *FLAGS variable, or
8188   # (2) before a word containing "conftest.", or (3) at the end.
8189   # Note that $ac_compile itself does not contain backslashes and begins
8190   # with a dollar sign (not a hyphen), so the echo should work correctly.
8191   lt_compile=`echo "$ac_compile" | $SED \
8192   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8193   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8194   -e 's:$: $lt_compiler_flag:'`
8195   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8196   (eval "$lt_compile" 2>out/conftest.err)
8197   ac_status=$?
8198   cat out/conftest.err >&5
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8201   then
8202     # The compiler can only warn and ignore the option if not recognized
8203     # So say no if there are warnings
8204     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8205     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8206     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8207       lt_cv_prog_compiler_c_o=yes
8208     fi
8209   fi
8210   chmod u+w . 2>&5
8211   $RM conftest*
8212   # SGI C++ compiler will create directory out/ii_files/ for
8213   # template instantiation
8214   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8215   $RM out/* && rmdir out
8216   cd ..
8217   $RM -r conftest
8218   $RM conftest*
8219
8220fi
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8222$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8223
8224
8225
8226
8227
8228
8229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8230$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8231if ${lt_cv_prog_compiler_c_o+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  lt_cv_prog_compiler_c_o=no
8235   $RM -r conftest 2>/dev/null
8236   mkdir conftest
8237   cd conftest
8238   mkdir out
8239   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8240
8241   lt_compiler_flag="-o out/conftest2.$ac_objext"
8242   # Insert the option either (1) after the last *FLAGS variable, or
8243   # (2) before a word containing "conftest.", or (3) at the end.
8244   # Note that $ac_compile itself does not contain backslashes and begins
8245   # with a dollar sign (not a hyphen), so the echo should work correctly.
8246   lt_compile=`echo "$ac_compile" | $SED \
8247   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249   -e 's:$: $lt_compiler_flag:'`
8250   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8251   (eval "$lt_compile" 2>out/conftest.err)
8252   ac_status=$?
8253   cat out/conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8256   then
8257     # The compiler can only warn and ignore the option if not recognized
8258     # So say no if there are warnings
8259     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8260     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8261     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8262       lt_cv_prog_compiler_c_o=yes
8263     fi
8264   fi
8265   chmod u+w . 2>&5
8266   $RM conftest*
8267   # SGI C++ compiler will create directory out/ii_files/ for
8268   # template instantiation
8269   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8270   $RM out/* && rmdir out
8271   cd ..
8272   $RM -r conftest
8273   $RM conftest*
8274
8275fi
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8277$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8278
8279
8280
8281
8282hard_links="nottested"
8283if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8284  # do not overwrite the value of need_locks provided by the user
8285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8286$as_echo_n "checking if we can lock with hard links... " >&6; }
8287  hard_links=yes
8288  $RM conftest*
8289  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8290  touch conftest.a
8291  ln conftest.a conftest.b 2>&5 || hard_links=no
8292  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8294$as_echo "$hard_links" >&6; }
8295  if test "$hard_links" = no; then
8296    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8297$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8298    need_locks=warn
8299  fi
8300else
8301  need_locks=no
8302fi
8303
8304
8305
8306
8307
8308
8309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8310$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8311
8312  runpath_var=
8313  allow_undefined_flag=
8314  always_export_symbols=no
8315  archive_cmds=
8316  archive_expsym_cmds=
8317  compiler_needs_object=no
8318  enable_shared_with_static_runtimes=no
8319  export_dynamic_flag_spec=
8320  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8321  hardcode_automatic=no
8322  hardcode_direct=no
8323  hardcode_direct_absolute=no
8324  hardcode_libdir_flag_spec=
8325  hardcode_libdir_flag_spec_ld=
8326  hardcode_libdir_separator=
8327  hardcode_minus_L=no
8328  hardcode_shlibpath_var=unsupported
8329  inherit_rpath=no
8330  link_all_deplibs=unknown
8331  module_cmds=
8332  module_expsym_cmds=
8333  old_archive_from_new_cmds=
8334  old_archive_from_expsyms_cmds=
8335  thread_safe_flag_spec=
8336  whole_archive_flag_spec=
8337  # include_expsyms should be a list of space-separated symbols to be *always*
8338  # included in the symbol list
8339  include_expsyms=
8340  # exclude_expsyms can be an extended regexp of symbols to exclude
8341  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8342  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8343  # as well as any symbol that contains `d'.
8344  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8345  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8346  # platforms (ab)use it in PIC code, but their linkers get confused if
8347  # the symbol is explicitly referenced.  Since portable code cannot
8348  # rely on this symbol name, it's probably fine to never include it in
8349  # preloaded symbol tables.
8350  # Exclude shared library initialization/finalization symbols.
8351  extract_expsyms_cmds=
8352
8353  case $host_os in
8354  cygwin* | mingw* | pw32* | cegcc*)
8355    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8356    # When not using gcc, we currently assume that we are using
8357    # Microsoft Visual C++.
8358    if test "$GCC" != yes; then
8359      with_gnu_ld=no
8360    fi
8361    ;;
8362  interix*)
8363    # we just hope/assume this is gcc and not c89 (= MSVC++)
8364    with_gnu_ld=yes
8365    ;;
8366  openbsd*)
8367    with_gnu_ld=no
8368    ;;
8369  esac
8370
8371  ld_shlibs=yes
8372
8373  # On some targets, GNU ld is compatible enough with the native linker
8374  # that we're better off using the native interface for both.
8375  lt_use_gnu_ld_interface=no
8376  if test "$with_gnu_ld" = yes; then
8377    case $host_os in
8378      aix*)
8379	# The AIX port of GNU ld has always aspired to compatibility
8380	# with the native linker.  However, as the warning in the GNU ld
8381	# block says, versions before 2.19.5* couldn't really create working
8382	# shared libraries, regardless of the interface used.
8383	case `$LD -v 2>&1` in
8384	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8385	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8386	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8387	  *)
8388	    lt_use_gnu_ld_interface=yes
8389	    ;;
8390	esac
8391	;;
8392      *)
8393	lt_use_gnu_ld_interface=yes
8394	;;
8395    esac
8396  fi
8397
8398  if test "$lt_use_gnu_ld_interface" = yes; then
8399    # If archive_cmds runs LD, not CC, wlarc should be empty
8400    wlarc='${wl}'
8401
8402    # Set some defaults for GNU ld with shared library support. These
8403    # are reset later if shared libraries are not supported. Putting them
8404    # here allows them to be overridden if necessary.
8405    runpath_var=LD_RUN_PATH
8406    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407    export_dynamic_flag_spec='${wl}--export-dynamic'
8408    # ancient GNU ld didn't support --whole-archive et. al.
8409    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8411    else
8412      whole_archive_flag_spec=
8413    fi
8414    supports_anon_versioning=no
8415    case `$LD -v 2>&1` in
8416      *GNU\ gold*) supports_anon_versioning=yes ;;
8417      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8418      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8419      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8420      *\ 2.11.*) ;; # other 2.11 versions
8421      *) supports_anon_versioning=yes ;;
8422    esac
8423
8424    # See if GNU ld supports shared libraries.
8425    case $host_os in
8426    aix[3-9]*)
8427      # On AIX/PPC, the GNU linker is very broken
8428      if test "$host_cpu" != ia64; then
8429	ld_shlibs=no
8430	cat <<_LT_EOF 1>&2
8431
8432*** Warning: the GNU linker, at least up to release 2.19, is reported
8433*** to be unable to reliably create shared libraries on AIX.
8434*** Therefore, libtool is disabling shared libraries support.  If you
8435*** really care for shared libraries, you may want to install binutils
8436*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8437*** You will then need to restart the configuration process.
8438
8439_LT_EOF
8440      fi
8441      ;;
8442
8443    amigaos*)
8444      case $host_cpu in
8445      powerpc)
8446            # see comment about AmigaOS4 .so support
8447            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8448            archive_expsym_cmds=''
8449        ;;
8450      m68k)
8451            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)'
8452            hardcode_libdir_flag_spec='-L$libdir'
8453            hardcode_minus_L=yes
8454        ;;
8455      esac
8456      ;;
8457
8458    beos*)
8459      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8460	allow_undefined_flag=unsupported
8461	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8462	# support --undefined.  This deserves some investigation.  FIXME
8463	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464      else
8465	ld_shlibs=no
8466      fi
8467      ;;
8468
8469    cygwin* | mingw* | pw32* | cegcc*)
8470      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8471      # as there is no search path for DLLs.
8472      hardcode_libdir_flag_spec='-L$libdir'
8473      export_dynamic_flag_spec='${wl}--export-all-symbols'
8474      allow_undefined_flag=unsupported
8475      always_export_symbols=no
8476      enable_shared_with_static_runtimes=yes
8477      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'
8478      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8479
8480      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8481        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8482	# If the export-symbols file already is a .def file (1st line
8483	# is EXPORTS), use it as is; otherwise, prepend...
8484	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8485	  cp $export_symbols $output_objdir/$soname.def;
8486	else
8487	  echo EXPORTS > $output_objdir/$soname.def;
8488	  cat $export_symbols >> $output_objdir/$soname.def;
8489	fi~
8490	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8491      else
8492	ld_shlibs=no
8493      fi
8494      ;;
8495
8496    haiku*)
8497      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498      link_all_deplibs=yes
8499      ;;
8500
8501    interix[3-9]*)
8502      hardcode_direct=no
8503      hardcode_shlibpath_var=no
8504      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8505      export_dynamic_flag_spec='${wl}-E'
8506      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8507      # Instead, shared libraries are loaded at an image base (0x10000000 by
8508      # default) and relocated if they conflict, which is a slow very memory
8509      # consuming and fragmenting process.  To avoid this, we pick a random,
8510      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8511      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8512      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8513      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'
8514      ;;
8515
8516    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8517      tmp_diet=no
8518      if test "$host_os" = linux-dietlibc; then
8519	case $cc_basename in
8520	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8521	esac
8522      fi
8523      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8524	 && test "$tmp_diet" = no
8525      then
8526	tmp_addflag=' $pic_flag'
8527	tmp_sharedflag='-shared'
8528	case $cc_basename,$host_cpu in
8529        pgcc*)				# Portland Group C compiler
8530	  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'
8531	  tmp_addflag=' $pic_flag'
8532	  ;;
8533	pgf77* | pgf90* | pgf95* | pgfortran*)
8534					# Portland Group f77 and f90 compilers
8535	  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'
8536	  tmp_addflag=' $pic_flag -Mnomain' ;;
8537	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8538	  tmp_addflag=' -i_dynamic' ;;
8539	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8540	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8541	ifc* | ifort*)			# Intel Fortran compiler
8542	  tmp_addflag=' -nofor_main' ;;
8543	lf95*)				# Lahey Fortran 8.1
8544	  whole_archive_flag_spec=
8545	  tmp_sharedflag='--shared' ;;
8546	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8547	  tmp_sharedflag='-qmkshrobj'
8548	  tmp_addflag= ;;
8549	nvcc*)	# Cuda Compiler Driver 2.2
8550	  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'
8551	  compiler_needs_object=yes
8552	  ;;
8553	esac
8554	case `$CC -V 2>&1 | sed 5q` in
8555	*Sun\ C*)			# Sun C 5.9
8556	  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'
8557	  compiler_needs_object=yes
8558	  tmp_sharedflag='-G' ;;
8559	*Sun\ F*)			# Sun Fortran 8.3
8560	  tmp_sharedflag='-G' ;;
8561	esac
8562	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563
8564        if test "x$supports_anon_versioning" = xyes; then
8565          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567	    echo "local: *; };" >> $output_objdir/$libname.ver~
8568	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8569        fi
8570
8571	case $cc_basename in
8572	xlf* | bgf* | bgxlf* | mpixlf*)
8573	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8574	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8575	  hardcode_libdir_flag_spec=
8576	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8577	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8578	  if test "x$supports_anon_versioning" = xyes; then
8579	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8580	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8581	      echo "local: *; };" >> $output_objdir/$libname.ver~
8582	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8583	  fi
8584	  ;;
8585	esac
8586      else
8587        ld_shlibs=no
8588      fi
8589      ;;
8590
8591    netbsd*)
8592      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8593	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8594	wlarc=
8595      else
8596	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8598      fi
8599      ;;
8600
8601    solaris*)
8602      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8603	ld_shlibs=no
8604	cat <<_LT_EOF 1>&2
8605
8606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8607*** create shared libraries on Solaris systems.  Therefore, libtool
8608*** is disabling shared libraries support.  We urge you to upgrade GNU
8609*** binutils to release 2.9.1 or newer.  Another option is to modify
8610*** your PATH or compiler configuration so that the native linker is
8611*** used, and then restart.
8612
8613_LT_EOF
8614      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8615	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8617      else
8618	ld_shlibs=no
8619      fi
8620      ;;
8621
8622    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8623      case `$LD -v 2>&1` in
8624        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8625	ld_shlibs=no
8626	cat <<_LT_EOF 1>&2
8627
8628*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8629*** reliably create shared libraries on SCO systems.  Therefore, libtool
8630*** is disabling shared libraries support.  We urge you to upgrade GNU
8631*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8632*** your PATH or compiler configuration so that the native linker is
8633*** used, and then restart.
8634
8635_LT_EOF
8636	;;
8637	*)
8638	  # For security reasons, it is highly recommended that you always
8639	  # use absolute paths for naming shared libraries, and exclude the
8640	  # DT_RUNPATH tag from executables and libraries.  But doing so
8641	  # requires that you compile everything twice, which is a pain.
8642	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8643	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8646	  else
8647	    ld_shlibs=no
8648	  fi
8649	;;
8650      esac
8651      ;;
8652
8653    sunos4*)
8654      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655      wlarc=
8656      hardcode_direct=yes
8657      hardcode_shlibpath_var=no
8658      ;;
8659
8660    *)
8661      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8662	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664      else
8665	ld_shlibs=no
8666      fi
8667      ;;
8668    esac
8669
8670    if test "$ld_shlibs" = no; then
8671      runpath_var=
8672      hardcode_libdir_flag_spec=
8673      export_dynamic_flag_spec=
8674      whole_archive_flag_spec=
8675    fi
8676  else
8677    # PORTME fill in a description of your system's linker (not GNU ld)
8678    case $host_os in
8679    aix3*)
8680      allow_undefined_flag=unsupported
8681      always_export_symbols=yes
8682      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'
8683      # Note: this linker hardcodes the directories in LIBPATH if there
8684      # are no directories specified by -L.
8685      hardcode_minus_L=yes
8686      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8687	# Neither direct hardcoding nor static linking is supported with a
8688	# broken collect2.
8689	hardcode_direct=unsupported
8690      fi
8691      ;;
8692
8693    aix[4-9]*)
8694      if test "$host_cpu" = ia64; then
8695	# On IA64, the linker does run time linking by default, so we don't
8696	# have to do anything special.
8697	aix_use_runtimelinking=no
8698	exp_sym_flag='-Bexport'
8699	no_entry_flag=""
8700      else
8701	# If we're using GNU nm, then we don't want the "-C" option.
8702	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8703	# Also, AIX nm treats weak defined symbols like other global
8704	# defined symbols, whereas GNU nm marks them as "W".
8705	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8706	  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'
8707	else
8708	  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'
8709	fi
8710	aix_use_runtimelinking=no
8711
8712	# Test if we are trying to use run time linking or normal
8713	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8714	# need to do runtime linking.
8715	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8716	  for ld_flag in $LDFLAGS; do
8717	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8718	    aix_use_runtimelinking=yes
8719	    break
8720	  fi
8721	  done
8722	  ;;
8723	esac
8724
8725	exp_sym_flag='-bexport'
8726	no_entry_flag='-bnoentry'
8727      fi
8728
8729      # When large executables or shared objects are built, AIX ld can
8730      # have problems creating the table of contents.  If linking a library
8731      # or program results in "error TOC overflow" add -mminimal-toc to
8732      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8733      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8734
8735      archive_cmds=''
8736      hardcode_direct=yes
8737      hardcode_direct_absolute=yes
8738      hardcode_libdir_separator=':'
8739      link_all_deplibs=yes
8740      file_list_spec='${wl}-f,'
8741
8742      if test "$GCC" = yes; then
8743	case $host_os in aix4.[012]|aix4.[012].*)
8744	# We only want to do this on AIX 4.2 and lower, the check
8745	# below for broken collect2 doesn't work under 4.3+
8746	  collect2name=`${CC} -print-prog-name=collect2`
8747	  if test -f "$collect2name" &&
8748	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8749	  then
8750	  # We have reworked collect2
8751	  :
8752	  else
8753	  # We have old collect2
8754	  hardcode_direct=unsupported
8755	  # It fails to find uninstalled libraries when the uninstalled
8756	  # path is not listed in the libpath.  Setting hardcode_minus_L
8757	  # to unsupported forces relinking
8758	  hardcode_minus_L=yes
8759	  hardcode_libdir_flag_spec='-L$libdir'
8760	  hardcode_libdir_separator=
8761	  fi
8762	  ;;
8763	esac
8764	shared_flag='-shared'
8765	if test "$aix_use_runtimelinking" = yes; then
8766	  shared_flag="$shared_flag "'${wl}-G'
8767	fi
8768      else
8769	# not using gcc
8770	if test "$host_cpu" = ia64; then
8771	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8772	# chokes on -Wl,-G. The following line is correct:
8773	  shared_flag='-G'
8774	else
8775	  if test "$aix_use_runtimelinking" = yes; then
8776	    shared_flag='${wl}-G'
8777	  else
8778	    shared_flag='${wl}-bM:SRE'
8779	  fi
8780	fi
8781      fi
8782
8783      export_dynamic_flag_spec='${wl}-bexpall'
8784      # It seems that -bexpall does not export symbols beginning with
8785      # underscore (_), so it is better to generate a list of symbols to export.
8786      always_export_symbols=yes
8787      if test "$aix_use_runtimelinking" = yes; then
8788	# Warning - without using the other runtime loading flags (-brtl),
8789	# -berok will link without error, but may produce a broken library.
8790	allow_undefined_flag='-berok'
8791        # Determine the default libpath from the value encoded in an
8792        # empty executable.
8793        if test "${lt_cv_aix_libpath+set}" = set; then
8794  aix_libpath=$lt_cv_aix_libpath
8795else
8796  if ${lt_cv_aix_libpath_+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800/* end confdefs.h.  */
8801
8802int
8803main ()
8804{
8805
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_link "$LINENO"; then :
8811
8812  lt_aix_libpath_sed='
8813      /Import File Strings/,/^$/ {
8814	  /^0/ {
8815	      s/^0  *\([^ ]*\) *$/\1/
8816	      p
8817	  }
8818      }'
8819  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8820  # Check for a 64-bit object if we didn't find anything.
8821  if test -z "$lt_cv_aix_libpath_"; then
8822    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823  fi
8824fi
8825rm -f core conftest.err conftest.$ac_objext \
8826    conftest$ac_exeext conftest.$ac_ext
8827  if test -z "$lt_cv_aix_libpath_"; then
8828    lt_cv_aix_libpath_="/usr/lib:/lib"
8829  fi
8830
8831fi
8832
8833  aix_libpath=$lt_cv_aix_libpath_
8834fi
8835
8836        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837        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"
8838      else
8839	if test "$host_cpu" = ia64; then
8840	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841	  allow_undefined_flag="-z nodefs"
8842	  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"
8843	else
8844	 # Determine the default libpath from the value encoded in an
8845	 # empty executable.
8846	 if test "${lt_cv_aix_libpath+set}" = set; then
8847  aix_libpath=$lt_cv_aix_libpath
8848else
8849  if ${lt_cv_aix_libpath_+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854
8855int
8856main ()
8857{
8858
8859  ;
8860  return 0;
8861}
8862_ACEOF
8863if ac_fn_c_try_link "$LINENO"; then :
8864
8865  lt_aix_libpath_sed='
8866      /Import File Strings/,/^$/ {
8867	  /^0/ {
8868	      s/^0  *\([^ ]*\) *$/\1/
8869	      p
8870	  }
8871      }'
8872  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873  # Check for a 64-bit object if we didn't find anything.
8874  if test -z "$lt_cv_aix_libpath_"; then
8875    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876  fi
8877fi
8878rm -f core conftest.err conftest.$ac_objext \
8879    conftest$ac_exeext conftest.$ac_ext
8880  if test -z "$lt_cv_aix_libpath_"; then
8881    lt_cv_aix_libpath_="/usr/lib:/lib"
8882  fi
8883
8884fi
8885
8886  aix_libpath=$lt_cv_aix_libpath_
8887fi
8888
8889	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890	  # Warning - without using the other run time loading flags,
8891	  # -berok will link without error, but may produce a broken library.
8892	  no_undefined_flag=' ${wl}-bernotok'
8893	  allow_undefined_flag=' ${wl}-berok'
8894	  if test "$with_gnu_ld" = yes; then
8895	    # We only use this code for GNU lds that support --whole-archive.
8896	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8897	  else
8898	    # Exported symbols can be pulled into shared objects from archives
8899	    whole_archive_flag_spec='$convenience'
8900	  fi
8901	  archive_cmds_need_lc=yes
8902	  # This is similar to how AIX traditionally builds its shared libraries.
8903	  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'
8904	fi
8905      fi
8906      ;;
8907
8908    amigaos*)
8909      case $host_cpu in
8910      powerpc)
8911            # see comment about AmigaOS4 .so support
8912            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8913            archive_expsym_cmds=''
8914        ;;
8915      m68k)
8916            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)'
8917            hardcode_libdir_flag_spec='-L$libdir'
8918            hardcode_minus_L=yes
8919        ;;
8920      esac
8921      ;;
8922
8923    bsdi[45]*)
8924      export_dynamic_flag_spec=-rdynamic
8925      ;;
8926
8927    cygwin* | mingw* | pw32* | cegcc*)
8928      # When not using gcc, we currently assume that we are using
8929      # Microsoft Visual C++.
8930      # hardcode_libdir_flag_spec is actually meaningless, as there is
8931      # no search path for DLLs.
8932      case $cc_basename in
8933      cl*)
8934	# Native MSVC
8935	hardcode_libdir_flag_spec=' '
8936	allow_undefined_flag=unsupported
8937	always_export_symbols=yes
8938	file_list_spec='@'
8939	# Tell ltmain to make .lib files, not .a files.
8940	libext=lib
8941	# Tell ltmain to make .dll files, not .so files.
8942	shrext_cmds=".dll"
8943	# FIXME: Setting linknames here is a bad hack.
8944	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8945	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8946	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8947	  else
8948	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8949	  fi~
8950	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8951	  linknames='
8952	# The linker will not automatically build a static lib if we build a DLL.
8953	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8954	enable_shared_with_static_runtimes=yes
8955	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8956	# Don't use ranlib
8957	old_postinstall_cmds='chmod 644 $oldlib'
8958	postlink_cmds='lt_outputfile="@OUTPUT@"~
8959	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8960	  case $lt_outputfile in
8961	    *.exe|*.EXE) ;;
8962	    *)
8963	      lt_outputfile="$lt_outputfile.exe"
8964	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8965	      ;;
8966	  esac~
8967	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8968	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8969	    $RM "$lt_outputfile.manifest";
8970	  fi'
8971	;;
8972      *)
8973	# Assume MSVC wrapper
8974	hardcode_libdir_flag_spec=' '
8975	allow_undefined_flag=unsupported
8976	# Tell ltmain to make .lib files, not .a files.
8977	libext=lib
8978	# Tell ltmain to make .dll files, not .so files.
8979	shrext_cmds=".dll"
8980	# FIXME: Setting linknames here is a bad hack.
8981	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8982	# The linker will automatically build a .lib file if we build a DLL.
8983	old_archive_from_new_cmds='true'
8984	# FIXME: Should let the user specify the lib program.
8985	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8986	enable_shared_with_static_runtimes=yes
8987	;;
8988      esac
8989      ;;
8990
8991    darwin* | rhapsody*)
8992
8993
8994  archive_cmds_need_lc=no
8995  hardcode_direct=no
8996  hardcode_automatic=yes
8997  hardcode_shlibpath_var=unsupported
8998  if test "$lt_cv_ld_force_load" = "yes"; then
8999    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\"`'
9000  else
9001    whole_archive_flag_spec=''
9002  fi
9003  link_all_deplibs=yes
9004  allow_undefined_flag="$_lt_dar_allow_undefined"
9005  case $cc_basename in
9006     ifort*) _lt_dar_can_shared=yes ;;
9007     *) _lt_dar_can_shared=$GCC ;;
9008  esac
9009  if test "$_lt_dar_can_shared" = "yes"; then
9010    output_verbose_link_cmd=func_echo_all
9011    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9012    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9013    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}"
9014    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}"
9015
9016  else
9017  ld_shlibs=no
9018  fi
9019
9020      ;;
9021
9022    dgux*)
9023      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024      hardcode_libdir_flag_spec='-L$libdir'
9025      hardcode_shlibpath_var=no
9026      ;;
9027
9028    freebsd1*)
9029      ld_shlibs=no
9030      ;;
9031
9032    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9033    # support.  Future versions do this automatically, but an explicit c++rt0.o
9034    # does not break anything, and helps significantly (at the cost of a little
9035    # extra space).
9036    freebsd2.2*)
9037      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9038      hardcode_libdir_flag_spec='-R$libdir'
9039      hardcode_direct=yes
9040      hardcode_shlibpath_var=no
9041      ;;
9042
9043    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9044    freebsd2*)
9045      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9046      hardcode_direct=yes
9047      hardcode_minus_L=yes
9048      hardcode_shlibpath_var=no
9049      ;;
9050
9051    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9052    freebsd* | dragonfly*)
9053      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9054      hardcode_libdir_flag_spec='-R$libdir'
9055      hardcode_direct=yes
9056      hardcode_shlibpath_var=no
9057      ;;
9058
9059    hpux9*)
9060      if test "$GCC" = yes; then
9061	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'
9062      else
9063	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'
9064      fi
9065      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9066      hardcode_libdir_separator=:
9067      hardcode_direct=yes
9068
9069      # hardcode_minus_L: Not really in the search PATH,
9070      # but as the default location of the library.
9071      hardcode_minus_L=yes
9072      export_dynamic_flag_spec='${wl}-E'
9073      ;;
9074
9075    hpux10*)
9076      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9077	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9078      else
9079	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9080      fi
9081      if test "$with_gnu_ld" = no; then
9082	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083	hardcode_libdir_flag_spec_ld='+b $libdir'
9084	hardcode_libdir_separator=:
9085	hardcode_direct=yes
9086	hardcode_direct_absolute=yes
9087	export_dynamic_flag_spec='${wl}-E'
9088	# hardcode_minus_L: Not really in the search PATH,
9089	# but as the default location of the library.
9090	hardcode_minus_L=yes
9091      fi
9092      ;;
9093
9094    hpux11*)
9095      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9096	case $host_cpu in
9097	hppa*64*)
9098	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9099	  ;;
9100	ia64*)
9101	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9102	  ;;
9103	*)
9104	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9105	  ;;
9106	esac
9107      else
9108	case $host_cpu in
9109	hppa*64*)
9110	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111	  ;;
9112	ia64*)
9113	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9114	  ;;
9115	*)
9116
9117	  # Older versions of the 11.00 compiler do not understand -b yet
9118	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9119	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9120$as_echo_n "checking if $CC understands -b... " >&6; }
9121if ${lt_cv_prog_compiler__b+:} false; then :
9122  $as_echo_n "(cached) " >&6
9123else
9124  lt_cv_prog_compiler__b=no
9125   save_LDFLAGS="$LDFLAGS"
9126   LDFLAGS="$LDFLAGS -b"
9127   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9128   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9129     # The linker can only warn and ignore the option if not recognized
9130     # So say no if there are warnings
9131     if test -s conftest.err; then
9132       # Append any errors to the config.log.
9133       cat conftest.err 1>&5
9134       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9135       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136       if diff conftest.exp conftest.er2 >/dev/null; then
9137         lt_cv_prog_compiler__b=yes
9138       fi
9139     else
9140       lt_cv_prog_compiler__b=yes
9141     fi
9142   fi
9143   $RM -r conftest*
9144   LDFLAGS="$save_LDFLAGS"
9145
9146fi
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9148$as_echo "$lt_cv_prog_compiler__b" >&6; }
9149
9150if test x"$lt_cv_prog_compiler__b" = xyes; then
9151    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152else
9153    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9154fi
9155
9156	  ;;
9157	esac
9158      fi
9159      if test "$with_gnu_ld" = no; then
9160	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9161	hardcode_libdir_separator=:
9162
9163	case $host_cpu in
9164	hppa*64*|ia64*)
9165	  hardcode_direct=no
9166	  hardcode_shlibpath_var=no
9167	  ;;
9168	*)
9169	  hardcode_direct=yes
9170	  hardcode_direct_absolute=yes
9171	  export_dynamic_flag_spec='${wl}-E'
9172
9173	  # hardcode_minus_L: Not really in the search PATH,
9174	  # but as the default location of the library.
9175	  hardcode_minus_L=yes
9176	  ;;
9177	esac
9178      fi
9179      ;;
9180
9181    irix5* | irix6* | nonstopux*)
9182      if test "$GCC" = yes; then
9183	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'
9184	# Try to use the -exported_symbol ld option, if it does not
9185	# work, assume that -exports_file does not work either and
9186	# implicitly export all symbols.
9187	# This should be the same for all languages, so no per-tag cache variable.
9188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9189$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9190if ${lt_cv_irix_exported_symbol+:} false; then :
9191  $as_echo_n "(cached) " >&6
9192else
9193  save_LDFLAGS="$LDFLAGS"
9194	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9195	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196/* end confdefs.h.  */
9197int foo (void) { return 0; }
9198_ACEOF
9199if ac_fn_c_try_link "$LINENO"; then :
9200  lt_cv_irix_exported_symbol=yes
9201else
9202  lt_cv_irix_exported_symbol=no
9203fi
9204rm -f core conftest.err conftest.$ac_objext \
9205    conftest$ac_exeext conftest.$ac_ext
9206           LDFLAGS="$save_LDFLAGS"
9207fi
9208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9209$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9210	if test "$lt_cv_irix_exported_symbol" = yes; then
9211          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'
9212	fi
9213      else
9214	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'
9215	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'
9216      fi
9217      archive_cmds_need_lc='no'
9218      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9219      hardcode_libdir_separator=:
9220      inherit_rpath=yes
9221      link_all_deplibs=yes
9222      ;;
9223
9224    netbsd*)
9225      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9226	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9227      else
9228	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9229      fi
9230      hardcode_libdir_flag_spec='-R$libdir'
9231      hardcode_direct=yes
9232      hardcode_shlibpath_var=no
9233      ;;
9234
9235    newsos6)
9236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237      hardcode_direct=yes
9238      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9239      hardcode_libdir_separator=:
9240      hardcode_shlibpath_var=no
9241      ;;
9242
9243    *nto* | *qnx*)
9244      ;;
9245
9246    openbsd*)
9247      if test -f /usr/libexec/ld.so; then
9248	hardcode_direct=yes
9249	hardcode_shlibpath_var=no
9250	hardcode_direct_absolute=yes
9251	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9254	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9255	  export_dynamic_flag_spec='${wl}-E'
9256	else
9257	  case $host_os in
9258	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9259	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9260	     hardcode_libdir_flag_spec='-R$libdir'
9261	     ;;
9262	   *)
9263	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265	     ;;
9266	  esac
9267	fi
9268      else
9269	ld_shlibs=no
9270      fi
9271      ;;
9272
9273    os2*)
9274      hardcode_libdir_flag_spec='-L$libdir'
9275      hardcode_minus_L=yes
9276      allow_undefined_flag=unsupported
9277      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'
9278      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9279      ;;
9280
9281    osf3*)
9282      if test "$GCC" = yes; then
9283	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9284	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'
9285      else
9286	allow_undefined_flag=' -expect_unresolved \*'
9287	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'
9288      fi
9289      archive_cmds_need_lc='no'
9290      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291      hardcode_libdir_separator=:
9292      ;;
9293
9294    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9295      if test "$GCC" = yes; then
9296	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9297	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'
9298	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299      else
9300	allow_undefined_flag=' -expect_unresolved \*'
9301	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'
9302	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~
9303	$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'
9304
9305	# Both c and cxx compiler support -rpath directly
9306	hardcode_libdir_flag_spec='-rpath $libdir'
9307      fi
9308      archive_cmds_need_lc='no'
9309      hardcode_libdir_separator=:
9310      ;;
9311
9312    solaris*)
9313      no_undefined_flag=' -z defs'
9314      if test "$GCC" = yes; then
9315	wlarc='${wl}'
9316	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9318	  $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'
9319      else
9320	case `$CC -V 2>&1` in
9321	*"Compilers 5.0"*)
9322	  wlarc=''
9323	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9325	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9326	  ;;
9327	*)
9328	  wlarc='${wl}'
9329	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9330	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9331	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9332	  ;;
9333	esac
9334      fi
9335      hardcode_libdir_flag_spec='-R$libdir'
9336      hardcode_shlibpath_var=no
9337      case $host_os in
9338      solaris2.[0-5] | solaris2.[0-5].*) ;;
9339      *)
9340	# The compiler driver will combine and reorder linker options,
9341	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9342	# but is careful enough not to reorder.
9343	# Supported since Solaris 2.6 (maybe 2.5.1?)
9344	if test "$GCC" = yes; then
9345	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9346	else
9347	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9348	fi
9349	;;
9350      esac
9351      link_all_deplibs=yes
9352      ;;
9353
9354    sunos4*)
9355      if test "x$host_vendor" = xsequent; then
9356	# Use $CC to link under sequent, because it throws in some extra .o
9357	# files that make .init and .fini sections work.
9358	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9359      else
9360	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9361      fi
9362      hardcode_libdir_flag_spec='-L$libdir'
9363      hardcode_direct=yes
9364      hardcode_minus_L=yes
9365      hardcode_shlibpath_var=no
9366      ;;
9367
9368    sysv4)
9369      case $host_vendor in
9370	sni)
9371	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372	  hardcode_direct=yes # is this really true???
9373	;;
9374	siemens)
9375	  ## LD is ld it makes a PLAMLIB
9376	  ## CC just makes a GrossModule.
9377	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9378	  reload_cmds='$CC -r -o $output$reload_objs'
9379	  hardcode_direct=no
9380        ;;
9381	motorola)
9382	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9384	;;
9385      esac
9386      runpath_var='LD_RUN_PATH'
9387      hardcode_shlibpath_var=no
9388      ;;
9389
9390    sysv4.3*)
9391      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392      hardcode_shlibpath_var=no
9393      export_dynamic_flag_spec='-Bexport'
9394      ;;
9395
9396    sysv4*MP*)
9397      if test -d /usr/nec; then
9398	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399	hardcode_shlibpath_var=no
9400	runpath_var=LD_RUN_PATH
9401	hardcode_runpath_var=yes
9402	ld_shlibs=yes
9403      fi
9404      ;;
9405
9406    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9407      no_undefined_flag='${wl}-z,text'
9408      archive_cmds_need_lc=no
9409      hardcode_shlibpath_var=no
9410      runpath_var='LD_RUN_PATH'
9411
9412      if test "$GCC" = yes; then
9413	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415      else
9416	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9417	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418      fi
9419      ;;
9420
9421    sysv5* | sco3.2v5* | sco5v6*)
9422      # Note: We can NOT use -z defs as we might desire, because we do not
9423      # link with -lc, and that would cause any symbols used from libc to
9424      # always be unresolved, which means just about no library would
9425      # ever link correctly.  If we're not using GNU ld we use -z text
9426      # though, which does catch some bad symbols but isn't as heavy-handed
9427      # as -z defs.
9428      no_undefined_flag='${wl}-z,text'
9429      allow_undefined_flag='${wl}-z,nodefs'
9430      archive_cmds_need_lc=no
9431      hardcode_shlibpath_var=no
9432      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9433      hardcode_libdir_separator=':'
9434      link_all_deplibs=yes
9435      export_dynamic_flag_spec='${wl}-Bexport'
9436      runpath_var='LD_RUN_PATH'
9437
9438      if test "$GCC" = yes; then
9439	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441      else
9442	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9443	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9444      fi
9445      ;;
9446
9447    uts4*)
9448      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449      hardcode_libdir_flag_spec='-L$libdir'
9450      hardcode_shlibpath_var=no
9451      ;;
9452
9453    *)
9454      ld_shlibs=no
9455      ;;
9456    esac
9457
9458    if test x$host_vendor = xsni; then
9459      case $host in
9460      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9461	export_dynamic_flag_spec='${wl}-Blargedynsym'
9462	;;
9463      esac
9464    fi
9465  fi
9466
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9468$as_echo "$ld_shlibs" >&6; }
9469test "$ld_shlibs" = no && can_build_shared=no
9470
9471with_gnu_ld=$with_gnu_ld
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487#
9488# Do we need to explicitly link libc?
9489#
9490case "x$archive_cmds_need_lc" in
9491x|xyes)
9492  # Assume -lc should be added
9493  archive_cmds_need_lc=yes
9494
9495  if test "$enable_shared" = yes && test "$GCC" = yes; then
9496    case $archive_cmds in
9497    *'~'*)
9498      # FIXME: we may have to deal with multi-command sequences.
9499      ;;
9500    '$CC '*)
9501      # Test whether the compiler implicitly links with -lc since on some
9502      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9503      # to ld, don't add -lc before -lgcc.
9504      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9505$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9506if ${lt_cv_archive_cmds_need_lc+:} false; then :
9507  $as_echo_n "(cached) " >&6
9508else
9509  $RM conftest*
9510	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9511
9512	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9513  (eval $ac_compile) 2>&5
9514  ac_status=$?
9515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516  test $ac_status = 0; } 2>conftest.err; then
9517	  soname=conftest
9518	  lib=conftest
9519	  libobjs=conftest.$ac_objext
9520	  deplibs=
9521	  wl=$lt_prog_compiler_wl
9522	  pic_flag=$lt_prog_compiler_pic
9523	  compiler_flags=-v
9524	  linker_flags=-v
9525	  verstring=
9526	  output_objdir=.
9527	  libname=conftest
9528	  lt_save_allow_undefined_flag=$allow_undefined_flag
9529	  allow_undefined_flag=
9530	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9531  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9532  ac_status=$?
9533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9534  test $ac_status = 0; }
9535	  then
9536	    lt_cv_archive_cmds_need_lc=no
9537	  else
9538	    lt_cv_archive_cmds_need_lc=yes
9539	  fi
9540	  allow_undefined_flag=$lt_save_allow_undefined_flag
9541	else
9542	  cat conftest.err 1>&5
9543	fi
9544	$RM conftest*
9545
9546fi
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9548$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9549      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9550      ;;
9551    esac
9552  fi
9553  ;;
9554esac
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9713$as_echo_n "checking dynamic linker characteristics... " >&6; }
9714
9715if test "$GCC" = yes; then
9716  case $host_os in
9717    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9718    *) lt_awk_arg="/^libraries:/" ;;
9719  esac
9720  case $host_os in
9721    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9722    *) lt_sed_strip_eq="s,=/,/,g" ;;
9723  esac
9724  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9725  case $lt_search_path_spec in
9726  *\;*)
9727    # if the path contains ";" then we assume it to be the separator
9728    # otherwise default to the standard path separator (i.e. ":") - it is
9729    # assumed that no part of a normal pathname contains ";" but that should
9730    # okay in the real world where ";" in dirpaths is itself problematic.
9731    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9732    ;;
9733  *)
9734    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9735    ;;
9736  esac
9737  # Ok, now we have the path, separated by spaces, we can step through it
9738  # and add multilib dir if necessary.
9739  lt_tmp_lt_search_path_spec=
9740  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9741  for lt_sys_path in $lt_search_path_spec; do
9742    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9743      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9744    else
9745      test -d "$lt_sys_path" && \
9746	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9747    fi
9748  done
9749  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9750BEGIN {RS=" "; FS="/|\n";} {
9751  lt_foo="";
9752  lt_count=0;
9753  for (lt_i = NF; lt_i > 0; lt_i--) {
9754    if ($lt_i != "" && $lt_i != ".") {
9755      if ($lt_i == "..") {
9756        lt_count++;
9757      } else {
9758        if (lt_count == 0) {
9759          lt_foo="/" $lt_i lt_foo;
9760        } else {
9761          lt_count--;
9762        }
9763      }
9764    }
9765  }
9766  if (lt_foo != "") { lt_freq[lt_foo]++; }
9767  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9768}'`
9769  # AWK program above erroneously prepends '/' to C:/dos/paths
9770  # for these hosts.
9771  case $host_os in
9772    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9773      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9774  esac
9775  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9776else
9777  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9778fi
9779library_names_spec=
9780libname_spec='lib$name'
9781soname_spec=
9782shrext_cmds=".so"
9783postinstall_cmds=
9784postuninstall_cmds=
9785finish_cmds=
9786finish_eval=
9787shlibpath_var=
9788shlibpath_overrides_runpath=unknown
9789version_type=none
9790dynamic_linker="$host_os ld.so"
9791sys_lib_dlsearch_path_spec="/lib /usr/lib"
9792need_lib_prefix=unknown
9793hardcode_into_libs=no
9794
9795# when you set need_version to no, make sure it does not cause -set_version
9796# flags to be left without arguments
9797need_version=unknown
9798
9799case $host_os in
9800aix3*)
9801  version_type=linux
9802  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9803  shlibpath_var=LIBPATH
9804
9805  # AIX 3 has no versioning support, so we append a major version to the name.
9806  soname_spec='${libname}${release}${shared_ext}$major'
9807  ;;
9808
9809aix[4-9]*)
9810  version_type=linux
9811  need_lib_prefix=no
9812  need_version=no
9813  hardcode_into_libs=yes
9814  if test "$host_cpu" = ia64; then
9815    # AIX 5 supports IA64
9816    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9817    shlibpath_var=LD_LIBRARY_PATH
9818  else
9819    # With GCC up to 2.95.x, collect2 would create an import file
9820    # for dependence libraries.  The import file would start with
9821    # the line `#! .'.  This would cause the generated library to
9822    # depend on `.', always an invalid library.  This was fixed in
9823    # development snapshots of GCC prior to 3.0.
9824    case $host_os in
9825      aix4 | aix4.[01] | aix4.[01].*)
9826      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9827	   echo ' yes '
9828	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9829	:
9830      else
9831	can_build_shared=no
9832      fi
9833      ;;
9834    esac
9835    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9836    # soname into executable. Probably we can add versioning support to
9837    # collect2, so additional links can be useful in future.
9838    if test "$aix_use_runtimelinking" = yes; then
9839      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9840      # instead of lib<name>.a to let people know that these are not
9841      # typical AIX shared libraries.
9842      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843    else
9844      # We preserve .a as extension for shared libraries through AIX4.2
9845      # and later when we are not doing run time linking.
9846      library_names_spec='${libname}${release}.a $libname.a'
9847      soname_spec='${libname}${release}${shared_ext}$major'
9848    fi
9849    shlibpath_var=LIBPATH
9850  fi
9851  ;;
9852
9853amigaos*)
9854  case $host_cpu in
9855  powerpc)
9856    # Since July 2007 AmigaOS4 officially supports .so libraries.
9857    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859    ;;
9860  m68k)
9861    library_names_spec='$libname.ixlibrary $libname.a'
9862    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9863    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'
9864    ;;
9865  esac
9866  ;;
9867
9868beos*)
9869  library_names_spec='${libname}${shared_ext}'
9870  dynamic_linker="$host_os ld.so"
9871  shlibpath_var=LIBRARY_PATH
9872  ;;
9873
9874bsdi[45]*)
9875  version_type=linux
9876  need_version=no
9877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878  soname_spec='${libname}${release}${shared_ext}$major'
9879  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9880  shlibpath_var=LD_LIBRARY_PATH
9881  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9882  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9883  # the default ld.so.conf also contains /usr/contrib/lib and
9884  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9885  # libtool to hard-code these into programs
9886  ;;
9887
9888cygwin* | mingw* | pw32* | cegcc*)
9889  version_type=windows
9890  shrext_cmds=".dll"
9891  need_version=no
9892  need_lib_prefix=no
9893
9894  case $GCC,$cc_basename in
9895  yes,*)
9896    # gcc
9897    library_names_spec='$libname.dll.a'
9898    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9899    postinstall_cmds='base_file=`basename \${file}`~
9900      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9901      dldir=$destdir/`dirname \$dlpath`~
9902      test -d \$dldir || mkdir -p \$dldir~
9903      $install_prog $dir/$dlname \$dldir/$dlname~
9904      chmod a+x \$dldir/$dlname~
9905      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9906        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9907      fi'
9908    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9909      dlpath=$dir/\$dldll~
9910       $RM \$dlpath'
9911    shlibpath_overrides_runpath=yes
9912
9913    case $host_os in
9914    cygwin*)
9915      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9916      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9917
9918      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9919      ;;
9920    mingw* | cegcc*)
9921      # MinGW DLLs use traditional 'lib' prefix
9922      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923      ;;
9924    pw32*)
9925      # pw32 DLLs use 'pw' prefix rather than 'lib'
9926      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9927      ;;
9928    esac
9929    dynamic_linker='Win32 ld.exe'
9930    ;;
9931
9932  *,cl*)
9933    # Native MSVC
9934    libname_spec='$name'
9935    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9936    library_names_spec='${libname}.dll.lib'
9937
9938    case $build_os in
9939    mingw*)
9940      sys_lib_search_path_spec=
9941      lt_save_ifs=$IFS
9942      IFS=';'
9943      for lt_path in $LIB
9944      do
9945        IFS=$lt_save_ifs
9946        # Let DOS variable expansion print the short 8.3 style file name.
9947        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9948        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9949      done
9950      IFS=$lt_save_ifs
9951      # Convert to MSYS style.
9952      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9953      ;;
9954    cygwin*)
9955      # Convert to unix form, then to dos form, then back to unix form
9956      # but this time dos style (no spaces!) so that the unix form looks
9957      # like /cygdrive/c/PROGRA~1:/cygdr...
9958      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9959      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9960      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9961      ;;
9962    *)
9963      sys_lib_search_path_spec="$LIB"
9964      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9965        # It is most probably a Windows format PATH.
9966        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9967      else
9968        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9969      fi
9970      # FIXME: find the short name or the path components, as spaces are
9971      # common. (e.g. "Program Files" -> "PROGRA~1")
9972      ;;
9973    esac
9974
9975    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9976    postinstall_cmds='base_file=`basename \${file}`~
9977      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9978      dldir=$destdir/`dirname \$dlpath`~
9979      test -d \$dldir || mkdir -p \$dldir~
9980      $install_prog $dir/$dlname \$dldir/$dlname'
9981    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9982      dlpath=$dir/\$dldll~
9983       $RM \$dlpath'
9984    shlibpath_overrides_runpath=yes
9985    dynamic_linker='Win32 link.exe'
9986    ;;
9987
9988  *)
9989    # Assume MSVC wrapper
9990    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9991    dynamic_linker='Win32 ld.exe'
9992    ;;
9993  esac
9994  # FIXME: first we should search . and the directory the executable is in
9995  shlibpath_var=PATH
9996  ;;
9997
9998darwin* | rhapsody*)
9999  dynamic_linker="$host_os dyld"
10000  version_type=darwin
10001  need_lib_prefix=no
10002  need_version=no
10003  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10004  soname_spec='${libname}${release}${major}$shared_ext'
10005  shlibpath_overrides_runpath=yes
10006  shlibpath_var=DYLD_LIBRARY_PATH
10007  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10008
10009  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10010  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10011  ;;
10012
10013dgux*)
10014  version_type=linux
10015  need_lib_prefix=no
10016  need_version=no
10017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10018  soname_spec='${libname}${release}${shared_ext}$major'
10019  shlibpath_var=LD_LIBRARY_PATH
10020  ;;
10021
10022freebsd1*)
10023  dynamic_linker=no
10024  ;;
10025
10026freebsd* | dragonfly*)
10027  # DragonFly does not have aout.  When/if they implement a new
10028  # versioning mechanism, adjust this.
10029  if test -x /usr/bin/objformat; then
10030    objformat=`/usr/bin/objformat`
10031  else
10032    case $host_os in
10033    freebsd[123]*) objformat=aout ;;
10034    *) objformat=elf ;;
10035    esac
10036  fi
10037  version_type=freebsd-$objformat
10038  case $version_type in
10039    freebsd-elf*)
10040      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10041      need_version=no
10042      need_lib_prefix=no
10043      ;;
10044    freebsd-*)
10045      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10046      need_version=yes
10047      ;;
10048  esac
10049  shlibpath_var=LD_LIBRARY_PATH
10050  case $host_os in
10051  freebsd2*)
10052    shlibpath_overrides_runpath=yes
10053    ;;
10054  freebsd3.[01]* | freebsdelf3.[01]*)
10055    shlibpath_overrides_runpath=yes
10056    hardcode_into_libs=yes
10057    ;;
10058  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10059  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10060    shlibpath_overrides_runpath=no
10061    hardcode_into_libs=yes
10062    ;;
10063  *) # from 4.6 on, and DragonFly
10064    shlibpath_overrides_runpath=yes
10065    hardcode_into_libs=yes
10066    ;;
10067  esac
10068  ;;
10069
10070gnu*)
10071  version_type=linux
10072  need_lib_prefix=no
10073  need_version=no
10074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10075  soname_spec='${libname}${release}${shared_ext}$major'
10076  shlibpath_var=LD_LIBRARY_PATH
10077  hardcode_into_libs=yes
10078  ;;
10079
10080haiku*)
10081  version_type=linux
10082  need_lib_prefix=no
10083  need_version=no
10084  dynamic_linker="$host_os runtime_loader"
10085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10086  soname_spec='${libname}${release}${shared_ext}$major'
10087  shlibpath_var=LIBRARY_PATH
10088  shlibpath_overrides_runpath=yes
10089  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10090  hardcode_into_libs=yes
10091  ;;
10092
10093hpux9* | hpux10* | hpux11*)
10094  # Give a soname corresponding to the major version so that dld.sl refuses to
10095  # link against other versions.
10096  version_type=sunos
10097  need_lib_prefix=no
10098  need_version=no
10099  case $host_cpu in
10100  ia64*)
10101    shrext_cmds='.so'
10102    hardcode_into_libs=yes
10103    dynamic_linker="$host_os dld.so"
10104    shlibpath_var=LD_LIBRARY_PATH
10105    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10106    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107    soname_spec='${libname}${release}${shared_ext}$major'
10108    if test "X$HPUX_IA64_MODE" = X32; then
10109      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10110    else
10111      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10112    fi
10113    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10114    ;;
10115  hppa*64*)
10116    shrext_cmds='.sl'
10117    hardcode_into_libs=yes
10118    dynamic_linker="$host_os dld.sl"
10119    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10120    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10121    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122    soname_spec='${libname}${release}${shared_ext}$major'
10123    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10124    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10125    ;;
10126  *)
10127    shrext_cmds='.sl'
10128    dynamic_linker="$host_os dld.sl"
10129    shlibpath_var=SHLIB_PATH
10130    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10131    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132    soname_spec='${libname}${release}${shared_ext}$major'
10133    ;;
10134  esac
10135  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10136  postinstall_cmds='chmod 555 $lib'
10137  # or fails outright, so override atomically:
10138  install_override_mode=555
10139  ;;
10140
10141interix[3-9]*)
10142  version_type=linux
10143  need_lib_prefix=no
10144  need_version=no
10145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10146  soname_spec='${libname}${release}${shared_ext}$major'
10147  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10148  shlibpath_var=LD_LIBRARY_PATH
10149  shlibpath_overrides_runpath=no
10150  hardcode_into_libs=yes
10151  ;;
10152
10153irix5* | irix6* | nonstopux*)
10154  case $host_os in
10155    nonstopux*) version_type=nonstopux ;;
10156    *)
10157	if test "$lt_cv_prog_gnu_ld" = yes; then
10158		version_type=linux
10159	else
10160		version_type=irix
10161	fi ;;
10162  esac
10163  need_lib_prefix=no
10164  need_version=no
10165  soname_spec='${libname}${release}${shared_ext}$major'
10166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10167  case $host_os in
10168  irix5* | nonstopux*)
10169    libsuff= shlibsuff=
10170    ;;
10171  *)
10172    case $LD in # libtool.m4 will add one of these switches to LD
10173    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10174      libsuff= shlibsuff= libmagic=32-bit;;
10175    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10176      libsuff=32 shlibsuff=N32 libmagic=N32;;
10177    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10178      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10179    *) libsuff= shlibsuff= libmagic=never-match;;
10180    esac
10181    ;;
10182  esac
10183  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10184  shlibpath_overrides_runpath=no
10185  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10186  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10187  hardcode_into_libs=yes
10188  ;;
10189
10190# No shared lib support for Linux oldld, aout, or coff.
10191linux*oldld* | linux*aout* | linux*coff*)
10192  dynamic_linker=no
10193  ;;
10194
10195# This must be Linux ELF.
10196linux* | k*bsd*-gnu | kopensolaris*-gnu)
10197  version_type=linux
10198  need_lib_prefix=no
10199  need_version=no
10200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201  soname_spec='${libname}${release}${shared_ext}$major'
10202  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10203  shlibpath_var=LD_LIBRARY_PATH
10204  shlibpath_overrides_runpath=no
10205
10206  # Some binutils ld are patched to set DT_RUNPATH
10207  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  lt_cv_shlibpath_overrides_runpath=no
10211    save_LDFLAGS=$LDFLAGS
10212    save_libdir=$libdir
10213    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10214	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10215    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217
10218int
10219main ()
10220{
10221
10222  ;
10223  return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_link "$LINENO"; then :
10227  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10228  lt_cv_shlibpath_overrides_runpath=yes
10229fi
10230fi
10231rm -f core conftest.err conftest.$ac_objext \
10232    conftest$ac_exeext conftest.$ac_ext
10233    LDFLAGS=$save_LDFLAGS
10234    libdir=$save_libdir
10235
10236fi
10237
10238  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10239
10240  # This implies no fast_install, which is unacceptable.
10241  # Some rework will be needed to allow for fast_install
10242  # before this can be enabled.
10243  hardcode_into_libs=yes
10244
10245  # Append ld.so.conf contents to the search path
10246  if test -f /etc/ld.so.conf; then
10247    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' ' '`
10248    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10249  fi
10250
10251  # We used to test for /lib/ld.so.1 and disable shared libraries on
10252  # powerpc, because MkLinux only supported shared libraries with the
10253  # GNU dynamic linker.  Since this was broken with cross compilers,
10254  # most powerpc-linux boxes support dynamic linking these days and
10255  # people can always --disable-shared, the test was removed, and we
10256  # assume the GNU/Linux dynamic linker is in use.
10257  dynamic_linker='GNU/Linux ld.so'
10258  ;;
10259
10260netbsd*)
10261  version_type=sunos
10262  need_lib_prefix=no
10263  need_version=no
10264  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267    dynamic_linker='NetBSD (a.out) ld.so'
10268  else
10269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10270    soname_spec='${libname}${release}${shared_ext}$major'
10271    dynamic_linker='NetBSD ld.elf_so'
10272  fi
10273  shlibpath_var=LD_LIBRARY_PATH
10274  shlibpath_overrides_runpath=yes
10275  hardcode_into_libs=yes
10276  ;;
10277
10278newsos6)
10279  version_type=linux
10280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281  shlibpath_var=LD_LIBRARY_PATH
10282  shlibpath_overrides_runpath=yes
10283  ;;
10284
10285*nto* | *qnx*)
10286  version_type=qnx
10287  need_lib_prefix=no
10288  need_version=no
10289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290  soname_spec='${libname}${release}${shared_ext}$major'
10291  shlibpath_var=LD_LIBRARY_PATH
10292  shlibpath_overrides_runpath=no
10293  hardcode_into_libs=yes
10294  dynamic_linker='ldqnx.so'
10295  ;;
10296
10297openbsd*)
10298  version_type=sunos
10299  sys_lib_dlsearch_path_spec="/usr/lib"
10300  need_lib_prefix=no
10301  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10302  case $host_os in
10303    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10304    *)				need_version=no  ;;
10305  esac
10306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308  shlibpath_var=LD_LIBRARY_PATH
10309  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10310    case $host_os in
10311      openbsd2.[89] | openbsd2.[89].*)
10312	shlibpath_overrides_runpath=no
10313	;;
10314      *)
10315	shlibpath_overrides_runpath=yes
10316	;;
10317      esac
10318  else
10319    shlibpath_overrides_runpath=yes
10320  fi
10321  ;;
10322
10323os2*)
10324  libname_spec='$name'
10325  shrext_cmds=".dll"
10326  need_lib_prefix=no
10327  library_names_spec='$libname${shared_ext} $libname.a'
10328  dynamic_linker='OS/2 ld.exe'
10329  shlibpath_var=LIBPATH
10330  ;;
10331
10332osf3* | osf4* | osf5*)
10333  version_type=osf
10334  need_lib_prefix=no
10335  need_version=no
10336  soname_spec='${libname}${release}${shared_ext}$major'
10337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338  shlibpath_var=LD_LIBRARY_PATH
10339  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10340  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10341  ;;
10342
10343rdos*)
10344  dynamic_linker=no
10345  ;;
10346
10347solaris*)
10348  version_type=linux
10349  need_lib_prefix=no
10350  need_version=no
10351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352  soname_spec='${libname}${release}${shared_ext}$major'
10353  shlibpath_var=LD_LIBRARY_PATH
10354  shlibpath_overrides_runpath=yes
10355  hardcode_into_libs=yes
10356  # ldd complains unless libraries are executable
10357  postinstall_cmds='chmod +x $lib'
10358  ;;
10359
10360sunos4*)
10361  version_type=sunos
10362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10364  shlibpath_var=LD_LIBRARY_PATH
10365  shlibpath_overrides_runpath=yes
10366  if test "$with_gnu_ld" = yes; then
10367    need_lib_prefix=no
10368  fi
10369  need_version=yes
10370  ;;
10371
10372sysv4 | sysv4.3*)
10373  version_type=linux
10374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10375  soname_spec='${libname}${release}${shared_ext}$major'
10376  shlibpath_var=LD_LIBRARY_PATH
10377  case $host_vendor in
10378    sni)
10379      shlibpath_overrides_runpath=no
10380      need_lib_prefix=no
10381      runpath_var=LD_RUN_PATH
10382      ;;
10383    siemens)
10384      need_lib_prefix=no
10385      ;;
10386    motorola)
10387      need_lib_prefix=no
10388      need_version=no
10389      shlibpath_overrides_runpath=no
10390      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10391      ;;
10392  esac
10393  ;;
10394
10395sysv4*MP*)
10396  if test -d /usr/nec ;then
10397    version_type=linux
10398    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10399    soname_spec='$libname${shared_ext}.$major'
10400    shlibpath_var=LD_LIBRARY_PATH
10401  fi
10402  ;;
10403
10404sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10405  version_type=freebsd-elf
10406  need_lib_prefix=no
10407  need_version=no
10408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10409  soname_spec='${libname}${release}${shared_ext}$major'
10410  shlibpath_var=LD_LIBRARY_PATH
10411  shlibpath_overrides_runpath=yes
10412  hardcode_into_libs=yes
10413  if test "$with_gnu_ld" = yes; then
10414    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10415  else
10416    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10417    case $host_os in
10418      sco3.2v5*)
10419        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10420	;;
10421    esac
10422  fi
10423  sys_lib_dlsearch_path_spec='/usr/lib'
10424  ;;
10425
10426tpf*)
10427  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10428  version_type=linux
10429  need_lib_prefix=no
10430  need_version=no
10431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432  shlibpath_var=LD_LIBRARY_PATH
10433  shlibpath_overrides_runpath=no
10434  hardcode_into_libs=yes
10435  ;;
10436
10437uts4*)
10438  version_type=linux
10439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440  soname_spec='${libname}${release}${shared_ext}$major'
10441  shlibpath_var=LD_LIBRARY_PATH
10442  ;;
10443
10444*)
10445  dynamic_linker=no
10446  ;;
10447esac
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10449$as_echo "$dynamic_linker" >&6; }
10450test "$dynamic_linker" = no && can_build_shared=no
10451
10452variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10453if test "$GCC" = yes; then
10454  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10455fi
10456
10457if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10458  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10459fi
10460if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10461  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10462fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10556$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10557hardcode_action=
10558if test -n "$hardcode_libdir_flag_spec" ||
10559   test -n "$runpath_var" ||
10560   test "X$hardcode_automatic" = "Xyes" ; then
10561
10562  # We can hardcode non-existent directories.
10563  if test "$hardcode_direct" != no &&
10564     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10565     # have to relink, otherwise we might link with an installed library
10566     # when we should be linking with a yet-to-be-installed one
10567     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10568     test "$hardcode_minus_L" != no; then
10569    # Linking always hardcodes the temporary library directory.
10570    hardcode_action=relink
10571  else
10572    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10573    hardcode_action=immediate
10574  fi
10575else
10576  # We cannot hardcode anything, or else we can only hardcode existing
10577  # directories.
10578  hardcode_action=unsupported
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10581$as_echo "$hardcode_action" >&6; }
10582
10583if test "$hardcode_action" = relink ||
10584   test "$inherit_rpath" = yes; then
10585  # Fast installation is not supported
10586  enable_fast_install=no
10587elif test "$shlibpath_overrides_runpath" = yes ||
10588     test "$enable_shared" = no; then
10589  # Fast installation is not necessary
10590  enable_fast_install=needless
10591fi
10592
10593
10594
10595
10596
10597
10598  if test "x$enable_dlopen" != xyes; then
10599  enable_dlopen=unknown
10600  enable_dlopen_self=unknown
10601  enable_dlopen_self_static=unknown
10602else
10603  lt_cv_dlopen=no
10604  lt_cv_dlopen_libs=
10605
10606  case $host_os in
10607  beos*)
10608    lt_cv_dlopen="load_add_on"
10609    lt_cv_dlopen_libs=
10610    lt_cv_dlopen_self=yes
10611    ;;
10612
10613  mingw* | pw32* | cegcc*)
10614    lt_cv_dlopen="LoadLibrary"
10615    lt_cv_dlopen_libs=
10616    ;;
10617
10618  cygwin*)
10619    lt_cv_dlopen="dlopen"
10620    lt_cv_dlopen_libs=
10621    ;;
10622
10623  darwin*)
10624  # if libdl is installed we need to link against it
10625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10626$as_echo_n "checking for dlopen in -ldl... " >&6; }
10627if ${ac_cv_lib_dl_dlopen+:} false; then :
10628  $as_echo_n "(cached) " >&6
10629else
10630  ac_check_lib_save_LIBS=$LIBS
10631LIBS="-ldl  $LIBS"
10632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633/* end confdefs.h.  */
10634
10635/* Override any GCC internal prototype to avoid an error.
10636   Use char because int might match the return type of a GCC
10637   builtin and then its argument prototype would still apply.  */
10638#ifdef __cplusplus
10639extern "C"
10640#endif
10641char dlopen ();
10642int
10643main ()
10644{
10645return dlopen ();
10646  ;
10647  return 0;
10648}
10649_ACEOF
10650if ac_fn_c_try_link "$LINENO"; then :
10651  ac_cv_lib_dl_dlopen=yes
10652else
10653  ac_cv_lib_dl_dlopen=no
10654fi
10655rm -f core conftest.err conftest.$ac_objext \
10656    conftest$ac_exeext conftest.$ac_ext
10657LIBS=$ac_check_lib_save_LIBS
10658fi
10659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10660$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10661if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10662  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10663else
10664
10665    lt_cv_dlopen="dyld"
10666    lt_cv_dlopen_libs=
10667    lt_cv_dlopen_self=yes
10668
10669fi
10670
10671    ;;
10672
10673  *)
10674    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10675if test "x$ac_cv_func_shl_load" = xyes; then :
10676  lt_cv_dlopen="shl_load"
10677else
10678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10679$as_echo_n "checking for shl_load in -ldld... " >&6; }
10680if ${ac_cv_lib_dld_shl_load+:} false; then :
10681  $as_echo_n "(cached) " >&6
10682else
10683  ac_check_lib_save_LIBS=$LIBS
10684LIBS="-ldld  $LIBS"
10685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686/* end confdefs.h.  */
10687
10688/* Override any GCC internal prototype to avoid an error.
10689   Use char because int might match the return type of a GCC
10690   builtin and then its argument prototype would still apply.  */
10691#ifdef __cplusplus
10692extern "C"
10693#endif
10694char shl_load ();
10695int
10696main ()
10697{
10698return shl_load ();
10699  ;
10700  return 0;
10701}
10702_ACEOF
10703if ac_fn_c_try_link "$LINENO"; then :
10704  ac_cv_lib_dld_shl_load=yes
10705else
10706  ac_cv_lib_dld_shl_load=no
10707fi
10708rm -f core conftest.err conftest.$ac_objext \
10709    conftest$ac_exeext conftest.$ac_ext
10710LIBS=$ac_check_lib_save_LIBS
10711fi
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10713$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10714if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10715  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10716else
10717  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10718if test "x$ac_cv_func_dlopen" = xyes; then :
10719  lt_cv_dlopen="dlopen"
10720else
10721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722$as_echo_n "checking for dlopen in -ldl... " >&6; }
10723if ${ac_cv_lib_dl_dlopen+:} false; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726  ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldl  $LIBS"
10728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730
10731/* Override any GCC internal prototype to avoid an error.
10732   Use char because int might match the return type of a GCC
10733   builtin and then its argument prototype would still apply.  */
10734#ifdef __cplusplus
10735extern "C"
10736#endif
10737char dlopen ();
10738int
10739main ()
10740{
10741return dlopen ();
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"; then :
10747  ac_cv_lib_dl_dlopen=yes
10748else
10749  ac_cv_lib_dl_dlopen=no
10750fi
10751rm -f core conftest.err conftest.$ac_objext \
10752    conftest$ac_exeext conftest.$ac_ext
10753LIBS=$ac_check_lib_save_LIBS
10754fi
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10758  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10759else
10760  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10761$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10762if ${ac_cv_lib_svld_dlopen+:} false; then :
10763  $as_echo_n "(cached) " >&6
10764else
10765  ac_check_lib_save_LIBS=$LIBS
10766LIBS="-lsvld  $LIBS"
10767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768/* end confdefs.h.  */
10769
10770/* Override any GCC internal prototype to avoid an error.
10771   Use char because int might match the return type of a GCC
10772   builtin and then its argument prototype would still apply.  */
10773#ifdef __cplusplus
10774extern "C"
10775#endif
10776char dlopen ();
10777int
10778main ()
10779{
10780return dlopen ();
10781  ;
10782  return 0;
10783}
10784_ACEOF
10785if ac_fn_c_try_link "$LINENO"; then :
10786  ac_cv_lib_svld_dlopen=yes
10787else
10788  ac_cv_lib_svld_dlopen=no
10789fi
10790rm -f core conftest.err conftest.$ac_objext \
10791    conftest$ac_exeext conftest.$ac_ext
10792LIBS=$ac_check_lib_save_LIBS
10793fi
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10795$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10796if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10797  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10798else
10799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10800$as_echo_n "checking for dld_link in -ldld... " >&6; }
10801if ${ac_cv_lib_dld_dld_link+:} false; then :
10802  $as_echo_n "(cached) " >&6
10803else
10804  ac_check_lib_save_LIBS=$LIBS
10805LIBS="-ldld  $LIBS"
10806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807/* end confdefs.h.  */
10808
10809/* Override any GCC internal prototype to avoid an error.
10810   Use char because int might match the return type of a GCC
10811   builtin and then its argument prototype would still apply.  */
10812#ifdef __cplusplus
10813extern "C"
10814#endif
10815char dld_link ();
10816int
10817main ()
10818{
10819return dld_link ();
10820  ;
10821  return 0;
10822}
10823_ACEOF
10824if ac_fn_c_try_link "$LINENO"; then :
10825  ac_cv_lib_dld_dld_link=yes
10826else
10827  ac_cv_lib_dld_dld_link=no
10828fi
10829rm -f core conftest.err conftest.$ac_objext \
10830    conftest$ac_exeext conftest.$ac_ext
10831LIBS=$ac_check_lib_save_LIBS
10832fi
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10834$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10835if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10836  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10837fi
10838
10839
10840fi
10841
10842
10843fi
10844
10845
10846fi
10847
10848
10849fi
10850
10851
10852fi
10853
10854    ;;
10855  esac
10856
10857  if test "x$lt_cv_dlopen" != xno; then
10858    enable_dlopen=yes
10859  else
10860    enable_dlopen=no
10861  fi
10862
10863  case $lt_cv_dlopen in
10864  dlopen)
10865    save_CPPFLAGS="$CPPFLAGS"
10866    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10867
10868    save_LDFLAGS="$LDFLAGS"
10869    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10870
10871    save_LIBS="$LIBS"
10872    LIBS="$lt_cv_dlopen_libs $LIBS"
10873
10874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10875$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10876if ${lt_cv_dlopen_self+:} false; then :
10877  $as_echo_n "(cached) " >&6
10878else
10879  	  if test "$cross_compiling" = yes; then :
10880  lt_cv_dlopen_self=cross
10881else
10882  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883  lt_status=$lt_dlunknown
10884  cat > conftest.$ac_ext <<_LT_EOF
10885#line $LINENO "configure"
10886#include "confdefs.h"
10887
10888#if HAVE_DLFCN_H
10889#include <dlfcn.h>
10890#endif
10891
10892#include <stdio.h>
10893
10894#ifdef RTLD_GLOBAL
10895#  define LT_DLGLOBAL		RTLD_GLOBAL
10896#else
10897#  ifdef DL_GLOBAL
10898#    define LT_DLGLOBAL		DL_GLOBAL
10899#  else
10900#    define LT_DLGLOBAL		0
10901#  endif
10902#endif
10903
10904/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905   find out it does not work in some platform. */
10906#ifndef LT_DLLAZY_OR_NOW
10907#  ifdef RTLD_LAZY
10908#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10909#  else
10910#    ifdef DL_LAZY
10911#      define LT_DLLAZY_OR_NOW		DL_LAZY
10912#    else
10913#      ifdef RTLD_NOW
10914#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10915#      else
10916#        ifdef DL_NOW
10917#          define LT_DLLAZY_OR_NOW	DL_NOW
10918#        else
10919#          define LT_DLLAZY_OR_NOW	0
10920#        endif
10921#      endif
10922#    endif
10923#  endif
10924#endif
10925
10926/* When -fvisbility=hidden is used, assume the code has been annotated
10927   correspondingly for the symbols needed.  */
10928#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10929int fnord () __attribute__((visibility("default")));
10930#endif
10931
10932int fnord () { return 42; }
10933int main ()
10934{
10935  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10936  int status = $lt_dlunknown;
10937
10938  if (self)
10939    {
10940      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10941      else
10942        {
10943	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10944          else puts (dlerror ());
10945	}
10946      /* dlclose (self); */
10947    }
10948  else
10949    puts (dlerror ());
10950
10951  return status;
10952}
10953_LT_EOF
10954  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10955  (eval $ac_link) 2>&5
10956  ac_status=$?
10957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10959    (./conftest; exit; ) >&5 2>/dev/null
10960    lt_status=$?
10961    case x$lt_status in
10962      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10963      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10964      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10965    esac
10966  else :
10967    # compilation failed
10968    lt_cv_dlopen_self=no
10969  fi
10970fi
10971rm -fr conftest*
10972
10973
10974fi
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10976$as_echo "$lt_cv_dlopen_self" >&6; }
10977
10978    if test "x$lt_cv_dlopen_self" = xyes; then
10979      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10980      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10981$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10982if ${lt_cv_dlopen_self_static+:} false; then :
10983  $as_echo_n "(cached) " >&6
10984else
10985  	  if test "$cross_compiling" = yes; then :
10986  lt_cv_dlopen_self_static=cross
10987else
10988  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989  lt_status=$lt_dlunknown
10990  cat > conftest.$ac_ext <<_LT_EOF
10991#line $LINENO "configure"
10992#include "confdefs.h"
10993
10994#if HAVE_DLFCN_H
10995#include <dlfcn.h>
10996#endif
10997
10998#include <stdio.h>
10999
11000#ifdef RTLD_GLOBAL
11001#  define LT_DLGLOBAL		RTLD_GLOBAL
11002#else
11003#  ifdef DL_GLOBAL
11004#    define LT_DLGLOBAL		DL_GLOBAL
11005#  else
11006#    define LT_DLGLOBAL		0
11007#  endif
11008#endif
11009
11010/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011   find out it does not work in some platform. */
11012#ifndef LT_DLLAZY_OR_NOW
11013#  ifdef RTLD_LAZY
11014#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11015#  else
11016#    ifdef DL_LAZY
11017#      define LT_DLLAZY_OR_NOW		DL_LAZY
11018#    else
11019#      ifdef RTLD_NOW
11020#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11021#      else
11022#        ifdef DL_NOW
11023#          define LT_DLLAZY_OR_NOW	DL_NOW
11024#        else
11025#          define LT_DLLAZY_OR_NOW	0
11026#        endif
11027#      endif
11028#    endif
11029#  endif
11030#endif
11031
11032/* When -fvisbility=hidden is used, assume the code has been annotated
11033   correspondingly for the symbols needed.  */
11034#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11035int fnord () __attribute__((visibility("default")));
11036#endif
11037
11038int fnord () { return 42; }
11039int main ()
11040{
11041  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11042  int status = $lt_dlunknown;
11043
11044  if (self)
11045    {
11046      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11047      else
11048        {
11049	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11050          else puts (dlerror ());
11051	}
11052      /* dlclose (self); */
11053    }
11054  else
11055    puts (dlerror ());
11056
11057  return status;
11058}
11059_LT_EOF
11060  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11061  (eval $ac_link) 2>&5
11062  ac_status=$?
11063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11064  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11065    (./conftest; exit; ) >&5 2>/dev/null
11066    lt_status=$?
11067    case x$lt_status in
11068      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11069      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11070      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11071    esac
11072  else :
11073    # compilation failed
11074    lt_cv_dlopen_self_static=no
11075  fi
11076fi
11077rm -fr conftest*
11078
11079
11080fi
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11082$as_echo "$lt_cv_dlopen_self_static" >&6; }
11083    fi
11084
11085    CPPFLAGS="$save_CPPFLAGS"
11086    LDFLAGS="$save_LDFLAGS"
11087    LIBS="$save_LIBS"
11088    ;;
11089  esac
11090
11091  case $lt_cv_dlopen_self in
11092  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11093  *) enable_dlopen_self=unknown ;;
11094  esac
11095
11096  case $lt_cv_dlopen_self_static in
11097  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11098  *) enable_dlopen_self_static=unknown ;;
11099  esac
11100fi
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118striplib=
11119old_striplib=
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11121$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11122if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11123  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11124  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126$as_echo "yes" >&6; }
11127else
11128# FIXME - insert some real tests, host_os isn't really good enough
11129  case $host_os in
11130  darwin*)
11131    if test -n "$STRIP" ; then
11132      striplib="$STRIP -x"
11133      old_striplib="$STRIP -S"
11134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11135$as_echo "yes" >&6; }
11136    else
11137      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139    fi
11140    ;;
11141  *)
11142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143$as_echo "no" >&6; }
11144    ;;
11145  esac
11146fi
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159  # Report which library types will actually be built
11160  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11161$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11163$as_echo "$can_build_shared" >&6; }
11164
11165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11166$as_echo_n "checking whether to build shared libraries... " >&6; }
11167  test "$can_build_shared" = "no" && enable_shared=no
11168
11169  # On AIX, shared libraries and static libraries use the same namespace, and
11170  # are all built from PIC.
11171  case $host_os in
11172  aix3*)
11173    test "$enable_shared" = yes && enable_static=no
11174    if test -n "$RANLIB"; then
11175      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11176      postinstall_cmds='$RANLIB $lib'
11177    fi
11178    ;;
11179
11180  aix[4-9]*)
11181    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11182      test "$enable_shared" = yes && enable_static=no
11183    fi
11184    ;;
11185  esac
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11187$as_echo "$enable_shared" >&6; }
11188
11189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11190$as_echo_n "checking whether to build static libraries... " >&6; }
11191  # Make sure either enable_shared or enable_static is yes.
11192  test "$enable_shared" = yes || enable_static=yes
11193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11194$as_echo "$enable_static" >&6; }
11195
11196
11197
11198
11199fi
11200ac_ext=c
11201ac_cpp='$CPP $CPPFLAGS'
11202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204ac_compiler_gnu=$ac_cv_c_compiler_gnu
11205
11206CC="$lt_save_CC"
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220        ac_config_commands="$ac_config_commands libtool"
11221
11222
11223
11224
11225# Only expand once:
11226
11227
11228
11229# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11242$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11243if ${ac_cv_prog_cc_c99+:} false; then :
11244  $as_echo_n "(cached) " >&6
11245else
11246  ac_cv_prog_cc_c99=no
11247ac_save_CC=$CC
11248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249/* end confdefs.h.  */
11250#include <stdarg.h>
11251#include <stdbool.h>
11252#include <stdlib.h>
11253#include <wchar.h>
11254#include <stdio.h>
11255
11256// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11257#define debug(...) fprintf (stderr, __VA_ARGS__)
11258#define showlist(...) puts (#__VA_ARGS__)
11259#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11260static void
11261test_varargs_macros (void)
11262{
11263  int x = 1234;
11264  int y = 5678;
11265  debug ("Flag");
11266  debug ("X = %d\n", x);
11267  showlist (The first, second, and third items.);
11268  report (x>y, "x is %d but y is %d", x, y);
11269}
11270
11271// Check long long types.
11272#define BIG64 18446744073709551615ull
11273#define BIG32 4294967295ul
11274#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11275#if !BIG_OK
11276  your preprocessor is broken;
11277#endif
11278#if BIG_OK
11279#else
11280  your preprocessor is broken;
11281#endif
11282static long long int bignum = -9223372036854775807LL;
11283static unsigned long long int ubignum = BIG64;
11284
11285struct incomplete_array
11286{
11287  int datasize;
11288  double data[];
11289};
11290
11291struct named_init {
11292  int number;
11293  const wchar_t *name;
11294  double average;
11295};
11296
11297typedef const char *ccp;
11298
11299static inline int
11300test_restrict (ccp restrict text)
11301{
11302  // See if C++-style comments work.
11303  // Iterate through items via the restricted pointer.
11304  // Also check for declarations in for loops.
11305  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11306    continue;
11307  return 0;
11308}
11309
11310// Check varargs and va_copy.
11311static void
11312test_varargs (const char *format, ...)
11313{
11314  va_list args;
11315  va_start (args, format);
11316  va_list args_copy;
11317  va_copy (args_copy, args);
11318
11319  const char *str;
11320  int number;
11321  float fnumber;
11322
11323  while (*format)
11324    {
11325      switch (*format++)
11326	{
11327	case 's': // string
11328	  str = va_arg (args_copy, const char *);
11329	  break;
11330	case 'd': // int
11331	  number = va_arg (args_copy, int);
11332	  break;
11333	case 'f': // float
11334	  fnumber = va_arg (args_copy, double);
11335	  break;
11336	default:
11337	  break;
11338	}
11339    }
11340  va_end (args_copy);
11341  va_end (args);
11342}
11343
11344int
11345main ()
11346{
11347
11348  // Check bool.
11349  _Bool success = false;
11350
11351  // Check restrict.
11352  if (test_restrict ("String literal") == 0)
11353    success = true;
11354  char *restrict newvar = "Another string";
11355
11356  // Check varargs.
11357  test_varargs ("s, d' f .", "string", 65, 34.234);
11358  test_varargs_macros ();
11359
11360  // Check flexible array members.
11361  struct incomplete_array *ia =
11362    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11363  ia->datasize = 10;
11364  for (int i = 0; i < ia->datasize; ++i)
11365    ia->data[i] = i * 1.234;
11366
11367  // Check named initializers.
11368  struct named_init ni = {
11369    .number = 34,
11370    .name = L"Test wide string",
11371    .average = 543.34343,
11372  };
11373
11374  ni.number = 58;
11375
11376  int dynamic_array[ni.number];
11377  dynamic_array[ni.number - 1] = 543;
11378
11379  // work around unused variable warnings
11380  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11381	  || dynamic_array[ni.number - 1] != 543);
11382
11383  ;
11384  return 0;
11385}
11386_ACEOF
11387for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11388do
11389  CC="$ac_save_CC $ac_arg"
11390  if ac_fn_c_try_compile "$LINENO"; then :
11391  ac_cv_prog_cc_c99=$ac_arg
11392fi
11393rm -f core conftest.err conftest.$ac_objext
11394  test "x$ac_cv_prog_cc_c99" != "xno" && break
11395done
11396rm -f conftest.$ac_ext
11397CC=$ac_save_CC
11398
11399fi
11400# AC_CACHE_VAL
11401case "x$ac_cv_prog_cc_c99" in
11402  x)
11403    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11404$as_echo "none needed" >&6; } ;;
11405  xno)
11406    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11407$as_echo "unsupported" >&6; } ;;
11408  *)
11409    CC="$CC $ac_cv_prog_cc_c99"
11410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11411$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11412esac
11413if test "x$ac_cv_prog_cc_c99" != xno; then :
11414
11415fi
11416
11417
11418
11419
11420
11421
11422ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11423if test "x$ac_cv_have_decl___clang__" = xyes; then :
11424  CLANGCC="yes"
11425else
11426  CLANGCC="no"
11427fi
11428
11429ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11430if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11431  INTELCC="yes"
11432else
11433  INTELCC="no"
11434fi
11435
11436ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11437if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11438  SUNCC="yes"
11439else
11440  SUNCC="no"
11441fi
11442
11443
11444
11445
11446if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11447	if test -n "$ac_tool_prefix"; then
11448  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11449set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11451$as_echo_n "checking for $ac_word... " >&6; }
11452if ${ac_cv_path_PKG_CONFIG+:} false; then :
11453  $as_echo_n "(cached) " >&6
11454else
11455  case $PKG_CONFIG in
11456  [\\/]* | ?:[\\/]*)
11457  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11458  ;;
11459  *)
11460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461for as_dir in $PATH
11462do
11463  IFS=$as_save_IFS
11464  test -z "$as_dir" && as_dir=.
11465    for ac_exec_ext in '' $ac_executable_extensions; do
11466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11467    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11469    break 2
11470  fi
11471done
11472  done
11473IFS=$as_save_IFS
11474
11475  ;;
11476esac
11477fi
11478PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11479if test -n "$PKG_CONFIG"; then
11480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11481$as_echo "$PKG_CONFIG" >&6; }
11482else
11483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
11485fi
11486
11487
11488fi
11489if test -z "$ac_cv_path_PKG_CONFIG"; then
11490  ac_pt_PKG_CONFIG=$PKG_CONFIG
11491  # Extract the first word of "pkg-config", so it can be a program name with args.
11492set dummy pkg-config; ac_word=$2
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494$as_echo_n "checking for $ac_word... " >&6; }
11495if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11496  $as_echo_n "(cached) " >&6
11497else
11498  case $ac_pt_PKG_CONFIG in
11499  [\\/]* | ?:[\\/]*)
11500  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11501  ;;
11502  *)
11503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506  IFS=$as_save_IFS
11507  test -z "$as_dir" && as_dir=.
11508    for ac_exec_ext in '' $ac_executable_extensions; do
11509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11510    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11512    break 2
11513  fi
11514done
11515  done
11516IFS=$as_save_IFS
11517
11518  ;;
11519esac
11520fi
11521ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11522if test -n "$ac_pt_PKG_CONFIG"; then
11523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11524$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11525else
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
11528fi
11529
11530  if test "x$ac_pt_PKG_CONFIG" = x; then
11531    PKG_CONFIG=""
11532  else
11533    case $cross_compiling:$ac_tool_warned in
11534yes:)
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11537ac_tool_warned=yes ;;
11538esac
11539    PKG_CONFIG=$ac_pt_PKG_CONFIG
11540  fi
11541else
11542  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11543fi
11544
11545fi
11546if test -n "$PKG_CONFIG"; then
11547	_pkg_min_version=0.9.0
11548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11549$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11550	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11552$as_echo "yes" >&6; }
11553	else
11554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555$as_echo "no" >&6; }
11556		PKG_CONFIG=""
11557	fi
11558
11559fi
11560
11561
11562
11563
11564
11565# Check whether --enable-selective-werror was given.
11566if test "${enable_selective_werror+set}" = set; then :
11567  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11568else
11569  SELECTIVE_WERROR=yes
11570fi
11571
11572
11573
11574
11575
11576# -v is too short to test reliably with XORG_TESTSET_CFLAG
11577if test "x$SUNCC" = "xyes"; then
11578    BASE_CFLAGS="-v"
11579else
11580    BASE_CFLAGS=""
11581fi
11582
11583# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595xorg_testset_save_CFLAGS="$CFLAGS"
11596
11597if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11600$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11601if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11602  $as_echo_n "(cached) " >&6
11603else
11604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605/* end confdefs.h.  */
11606int i;
11607_ACEOF
11608if ac_fn_c_try_compile "$LINENO"; then :
11609  xorg_cv_compiler_flag_unknown_warning_option=yes
11610else
11611  xorg_cv_compiler_flag_unknown_warning_option=no
11612fi
11613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614fi
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11616$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11617	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11618	CFLAGS="$xorg_testset_save_CFLAGS"
11619fi
11620
11621if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11622	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11623		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11624	fi
11625	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11627$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11628if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632/* end confdefs.h.  */
11633int i;
11634_ACEOF
11635if ac_fn_c_try_compile "$LINENO"; then :
11636  xorg_cv_compiler_flag_unused_command_line_argument=yes
11637else
11638  xorg_cv_compiler_flag_unused_command_line_argument=no
11639fi
11640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641fi
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11643$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11644	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11645	CFLAGS="$xorg_testset_save_CFLAGS"
11646fi
11647
11648found="no"
11649
11650	if test $found = "no" ; then
11651		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11653		fi
11654
11655		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11657		fi
11658
11659		CFLAGS="$CFLAGS -Wall"
11660
11661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11662$as_echo_n "checking if $CC supports -Wall... " >&6; }
11663		cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
11664		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11665  $as_echo_n "(cached) " >&6
11666else
11667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h.  */
11669int i;
11670int
11671main ()
11672{
11673
11674  ;
11675  return 0;
11676}
11677_ACEOF
11678if ac_fn_c_try_link "$LINENO"; then :
11679  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11680else
11681  eval `$as_echo "$cacheid" | $as_tr_sh`=no
11682fi
11683rm -f core conftest.err conftest.$ac_objext \
11684    conftest$ac_exeext conftest.$ac_ext
11685fi
11686
11687
11688		CFLAGS="$xorg_testset_save_CFLAGS"
11689
11690		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11692$as_echo "$supported" >&6; }
11693		if test "$supported" = "yes" ; then
11694			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11695			found="yes"
11696		fi
11697	fi
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711xorg_testset_save_CFLAGS="$CFLAGS"
11712
11713if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11716$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11717if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11718  $as_echo_n "(cached) " >&6
11719else
11720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h.  */
11722int i;
11723_ACEOF
11724if ac_fn_c_try_compile "$LINENO"; then :
11725  xorg_cv_compiler_flag_unknown_warning_option=yes
11726else
11727  xorg_cv_compiler_flag_unknown_warning_option=no
11728fi
11729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11732$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11733	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11734	CFLAGS="$xorg_testset_save_CFLAGS"
11735fi
11736
11737if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11738	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11740	fi
11741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11743$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11744if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748/* end confdefs.h.  */
11749int i;
11750_ACEOF
11751if ac_fn_c_try_compile "$LINENO"; then :
11752  xorg_cv_compiler_flag_unused_command_line_argument=yes
11753else
11754  xorg_cv_compiler_flag_unused_command_line_argument=no
11755fi
11756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757fi
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11759$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11760	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11761	CFLAGS="$xorg_testset_save_CFLAGS"
11762fi
11763
11764found="no"
11765
11766	if test $found = "no" ; then
11767		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11769		fi
11770
11771		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11773		fi
11774
11775		CFLAGS="$CFLAGS -Wpointer-arith"
11776
11777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11778$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11779		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
11780		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11781  $as_echo_n "(cached) " >&6
11782else
11783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784/* end confdefs.h.  */
11785int i;
11786int
11787main ()
11788{
11789
11790  ;
11791  return 0;
11792}
11793_ACEOF
11794if ac_fn_c_try_link "$LINENO"; then :
11795  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11796else
11797  eval `$as_echo "$cacheid" | $as_tr_sh`=no
11798fi
11799rm -f core conftest.err conftest.$ac_objext \
11800    conftest$ac_exeext conftest.$ac_ext
11801fi
11802
11803
11804		CFLAGS="$xorg_testset_save_CFLAGS"
11805
11806		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11808$as_echo "$supported" >&6; }
11809		if test "$supported" = "yes" ; then
11810			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11811			found="yes"
11812		fi
11813	fi
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827xorg_testset_save_CFLAGS="$CFLAGS"
11828
11829if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11832$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11833if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11834  $as_echo_n "(cached) " >&6
11835else
11836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837/* end confdefs.h.  */
11838int i;
11839_ACEOF
11840if ac_fn_c_try_compile "$LINENO"; then :
11841  xorg_cv_compiler_flag_unknown_warning_option=yes
11842else
11843  xorg_cv_compiler_flag_unknown_warning_option=no
11844fi
11845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846fi
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11848$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11849	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11850	CFLAGS="$xorg_testset_save_CFLAGS"
11851fi
11852
11853if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11854	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11856	fi
11857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11859$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11860if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11861  $as_echo_n "(cached) " >&6
11862else
11863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864/* end confdefs.h.  */
11865int i;
11866_ACEOF
11867if ac_fn_c_try_compile "$LINENO"; then :
11868  xorg_cv_compiler_flag_unused_command_line_argument=yes
11869else
11870  xorg_cv_compiler_flag_unused_command_line_argument=no
11871fi
11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873fi
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11875$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11876	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11877	CFLAGS="$xorg_testset_save_CFLAGS"
11878fi
11879
11880found="no"
11881
11882	if test $found = "no" ; then
11883		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11885		fi
11886
11887		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11889		fi
11890
11891		CFLAGS="$CFLAGS -Wmissing-declarations"
11892
11893		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11894$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11895		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
11896		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
11897  $as_echo_n "(cached) " >&6
11898else
11899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900/* end confdefs.h.  */
11901int i;
11902int
11903main ()
11904{
11905
11906  ;
11907  return 0;
11908}
11909_ACEOF
11910if ac_fn_c_try_link "$LINENO"; then :
11911  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
11912else
11913  eval `$as_echo "$cacheid" | $as_tr_sh`=no
11914fi
11915rm -f core conftest.err conftest.$ac_objext \
11916    conftest$ac_exeext conftest.$ac_ext
11917fi
11918
11919
11920		CFLAGS="$xorg_testset_save_CFLAGS"
11921
11922		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
11923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11924$as_echo "$supported" >&6; }
11925		if test "$supported" = "yes" ; then
11926			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
11927			found="yes"
11928		fi
11929	fi
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943xorg_testset_save_CFLAGS="$CFLAGS"
11944
11945if test "x$xorg_testset_unknown_warning_option" = "x" ; then
11946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
11948$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
11949if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
11950  $as_echo_n "(cached) " >&6
11951else
11952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h.  */
11954int i;
11955_ACEOF
11956if ac_fn_c_try_compile "$LINENO"; then :
11957  xorg_cv_compiler_flag_unknown_warning_option=yes
11958else
11959  xorg_cv_compiler_flag_unknown_warning_option=no
11960fi
11961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962fi
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
11964$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
11965	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
11966	CFLAGS="$xorg_testset_save_CFLAGS"
11967fi
11968
11969if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
11970	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11971		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11972	fi
11973	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
11975$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
11976if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
11977  $as_echo_n "(cached) " >&6
11978else
11979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h.  */
11981int i;
11982_ACEOF
11983if ac_fn_c_try_compile "$LINENO"; then :
11984  xorg_cv_compiler_flag_unused_command_line_argument=yes
11985else
11986  xorg_cv_compiler_flag_unused_command_line_argument=no
11987fi
11988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989fi
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
11991$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
11992	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
11993	CFLAGS="$xorg_testset_save_CFLAGS"
11994fi
11995
11996found="no"
11997
11998	if test $found = "no" ; then
11999		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12001		fi
12002
12003		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12005		fi
12006
12007		CFLAGS="$CFLAGS -Wformat=2"
12008
12009		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12010$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12011		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
12012		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12013  $as_echo_n "(cached) " >&6
12014else
12015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016/* end confdefs.h.  */
12017int i;
12018int
12019main ()
12020{
12021
12022  ;
12023  return 0;
12024}
12025_ACEOF
12026if ac_fn_c_try_link "$LINENO"; then :
12027  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12028else
12029  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12030fi
12031rm -f core conftest.err conftest.$ac_objext \
12032    conftest$ac_exeext conftest.$ac_ext
12033fi
12034
12035
12036		CFLAGS="$xorg_testset_save_CFLAGS"
12037
12038		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12039		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12040$as_echo "$supported" >&6; }
12041		if test "$supported" = "yes" ; then
12042			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12043			found="yes"
12044		fi
12045	fi
12046
12047	if test $found = "no" ; then
12048		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12050		fi
12051
12052		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12054		fi
12055
12056		CFLAGS="$CFLAGS -Wformat"
12057
12058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12059$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12060		cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
12061		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12062  $as_echo_n "(cached) " >&6
12063else
12064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065/* end confdefs.h.  */
12066int i;
12067int
12068main ()
12069{
12070
12071  ;
12072  return 0;
12073}
12074_ACEOF
12075if ac_fn_c_try_link "$LINENO"; then :
12076  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12077else
12078  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12079fi
12080rm -f core conftest.err conftest.$ac_objext \
12081    conftest$ac_exeext conftest.$ac_ext
12082fi
12083
12084
12085		CFLAGS="$xorg_testset_save_CFLAGS"
12086
12087		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12089$as_echo "$supported" >&6; }
12090		if test "$supported" = "yes" ; then
12091			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12092			found="yes"
12093		fi
12094	fi
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110xorg_testset_save_CFLAGS="$CFLAGS"
12111
12112if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12115$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12116if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12117  $as_echo_n "(cached) " >&6
12118else
12119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120/* end confdefs.h.  */
12121int i;
12122_ACEOF
12123if ac_fn_c_try_compile "$LINENO"; then :
12124  xorg_cv_compiler_flag_unknown_warning_option=yes
12125else
12126  xorg_cv_compiler_flag_unknown_warning_option=no
12127fi
12128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129fi
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12131$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12132	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12133	CFLAGS="$xorg_testset_save_CFLAGS"
12134fi
12135
12136if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12137	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12139	fi
12140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12142$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12143if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12144  $as_echo_n "(cached) " >&6
12145else
12146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148int i;
12149_ACEOF
12150if ac_fn_c_try_compile "$LINENO"; then :
12151  xorg_cv_compiler_flag_unused_command_line_argument=yes
12152else
12153  xorg_cv_compiler_flag_unused_command_line_argument=no
12154fi
12155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156fi
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12158$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12159	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12160	CFLAGS="$xorg_testset_save_CFLAGS"
12161fi
12162
12163found="no"
12164
12165	if test $found = "no" ; then
12166		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12168		fi
12169
12170		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12172		fi
12173
12174		CFLAGS="$CFLAGS -Wstrict-prototypes"
12175
12176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12177$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12178		cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
12179		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12180  $as_echo_n "(cached) " >&6
12181else
12182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183/* end confdefs.h.  */
12184int i;
12185int
12186main ()
12187{
12188
12189  ;
12190  return 0;
12191}
12192_ACEOF
12193if ac_fn_c_try_link "$LINENO"; then :
12194  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12195else
12196  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12197fi
12198rm -f core conftest.err conftest.$ac_objext \
12199    conftest$ac_exeext conftest.$ac_ext
12200fi
12201
12202
12203		CFLAGS="$xorg_testset_save_CFLAGS"
12204
12205		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12206		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12207$as_echo "$supported" >&6; }
12208		if test "$supported" = "yes" ; then
12209			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12210			found="yes"
12211		fi
12212	fi
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226xorg_testset_save_CFLAGS="$CFLAGS"
12227
12228if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12231$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12232if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12233  $as_echo_n "(cached) " >&6
12234else
12235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236/* end confdefs.h.  */
12237int i;
12238_ACEOF
12239if ac_fn_c_try_compile "$LINENO"; then :
12240  xorg_cv_compiler_flag_unknown_warning_option=yes
12241else
12242  xorg_cv_compiler_flag_unknown_warning_option=no
12243fi
12244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245fi
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12247$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12248	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12249	CFLAGS="$xorg_testset_save_CFLAGS"
12250fi
12251
12252if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12253	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12255	fi
12256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12258$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12259if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12260  $as_echo_n "(cached) " >&6
12261else
12262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263/* end confdefs.h.  */
12264int i;
12265_ACEOF
12266if ac_fn_c_try_compile "$LINENO"; then :
12267  xorg_cv_compiler_flag_unused_command_line_argument=yes
12268else
12269  xorg_cv_compiler_flag_unused_command_line_argument=no
12270fi
12271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12274$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12275	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12276	CFLAGS="$xorg_testset_save_CFLAGS"
12277fi
12278
12279found="no"
12280
12281	if test $found = "no" ; then
12282		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12284		fi
12285
12286		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12288		fi
12289
12290		CFLAGS="$CFLAGS -Wmissing-prototypes"
12291
12292		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12293$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12294		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
12295		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12296  $as_echo_n "(cached) " >&6
12297else
12298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299/* end confdefs.h.  */
12300int i;
12301int
12302main ()
12303{
12304
12305  ;
12306  return 0;
12307}
12308_ACEOF
12309if ac_fn_c_try_link "$LINENO"; then :
12310  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12311else
12312  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12313fi
12314rm -f core conftest.err conftest.$ac_objext \
12315    conftest$ac_exeext conftest.$ac_ext
12316fi
12317
12318
12319		CFLAGS="$xorg_testset_save_CFLAGS"
12320
12321		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12323$as_echo "$supported" >&6; }
12324		if test "$supported" = "yes" ; then
12325			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12326			found="yes"
12327		fi
12328	fi
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342xorg_testset_save_CFLAGS="$CFLAGS"
12343
12344if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12347$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12348if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12349  $as_echo_n "(cached) " >&6
12350else
12351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352/* end confdefs.h.  */
12353int i;
12354_ACEOF
12355if ac_fn_c_try_compile "$LINENO"; then :
12356  xorg_cv_compiler_flag_unknown_warning_option=yes
12357else
12358  xorg_cv_compiler_flag_unknown_warning_option=no
12359fi
12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361fi
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12363$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12364	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12365	CFLAGS="$xorg_testset_save_CFLAGS"
12366fi
12367
12368if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12369	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12370		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12371	fi
12372	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12374$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12375if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12376  $as_echo_n "(cached) " >&6
12377else
12378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h.  */
12380int i;
12381_ACEOF
12382if ac_fn_c_try_compile "$LINENO"; then :
12383  xorg_cv_compiler_flag_unused_command_line_argument=yes
12384else
12385  xorg_cv_compiler_flag_unused_command_line_argument=no
12386fi
12387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388fi
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12390$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12391	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12392	CFLAGS="$xorg_testset_save_CFLAGS"
12393fi
12394
12395found="no"
12396
12397	if test $found = "no" ; then
12398		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12400		fi
12401
12402		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12404		fi
12405
12406		CFLAGS="$CFLAGS -Wnested-externs"
12407
12408		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12409$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12410		cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
12411		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12412  $as_echo_n "(cached) " >&6
12413else
12414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415/* end confdefs.h.  */
12416int i;
12417int
12418main ()
12419{
12420
12421  ;
12422  return 0;
12423}
12424_ACEOF
12425if ac_fn_c_try_link "$LINENO"; then :
12426  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12427else
12428  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12429fi
12430rm -f core conftest.err conftest.$ac_objext \
12431    conftest$ac_exeext conftest.$ac_ext
12432fi
12433
12434
12435		CFLAGS="$xorg_testset_save_CFLAGS"
12436
12437		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12438		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12439$as_echo "$supported" >&6; }
12440		if test "$supported" = "yes" ; then
12441			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12442			found="yes"
12443		fi
12444	fi
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458xorg_testset_save_CFLAGS="$CFLAGS"
12459
12460if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12463$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12464if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12465  $as_echo_n "(cached) " >&6
12466else
12467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468/* end confdefs.h.  */
12469int i;
12470_ACEOF
12471if ac_fn_c_try_compile "$LINENO"; then :
12472  xorg_cv_compiler_flag_unknown_warning_option=yes
12473else
12474  xorg_cv_compiler_flag_unknown_warning_option=no
12475fi
12476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12479$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12480	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12481	CFLAGS="$xorg_testset_save_CFLAGS"
12482fi
12483
12484if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12485	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12487	fi
12488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12490$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12491if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12492  $as_echo_n "(cached) " >&6
12493else
12494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h.  */
12496int i;
12497_ACEOF
12498if ac_fn_c_try_compile "$LINENO"; then :
12499  xorg_cv_compiler_flag_unused_command_line_argument=yes
12500else
12501  xorg_cv_compiler_flag_unused_command_line_argument=no
12502fi
12503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12504fi
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12506$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12507	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12508	CFLAGS="$xorg_testset_save_CFLAGS"
12509fi
12510
12511found="no"
12512
12513	if test $found = "no" ; then
12514		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12516		fi
12517
12518		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12520		fi
12521
12522		CFLAGS="$CFLAGS -Wbad-function-cast"
12523
12524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12525$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12526		cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
12527		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12528  $as_echo_n "(cached) " >&6
12529else
12530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531/* end confdefs.h.  */
12532int i;
12533int
12534main ()
12535{
12536
12537  ;
12538  return 0;
12539}
12540_ACEOF
12541if ac_fn_c_try_link "$LINENO"; then :
12542  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12543else
12544  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12545fi
12546rm -f core conftest.err conftest.$ac_objext \
12547    conftest$ac_exeext conftest.$ac_ext
12548fi
12549
12550
12551		CFLAGS="$xorg_testset_save_CFLAGS"
12552
12553		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12555$as_echo "$supported" >&6; }
12556		if test "$supported" = "yes" ; then
12557			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12558			found="yes"
12559		fi
12560	fi
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574xorg_testset_save_CFLAGS="$CFLAGS"
12575
12576if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12579$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12580if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12581  $as_echo_n "(cached) " >&6
12582else
12583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584/* end confdefs.h.  */
12585int i;
12586_ACEOF
12587if ac_fn_c_try_compile "$LINENO"; then :
12588  xorg_cv_compiler_flag_unknown_warning_option=yes
12589else
12590  xorg_cv_compiler_flag_unknown_warning_option=no
12591fi
12592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12593fi
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12595$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12596	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12597	CFLAGS="$xorg_testset_save_CFLAGS"
12598fi
12599
12600if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12601	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12602		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12603	fi
12604	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12605	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12606$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12607if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12608  $as_echo_n "(cached) " >&6
12609else
12610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611/* end confdefs.h.  */
12612int i;
12613_ACEOF
12614if ac_fn_c_try_compile "$LINENO"; then :
12615  xorg_cv_compiler_flag_unused_command_line_argument=yes
12616else
12617  xorg_cv_compiler_flag_unused_command_line_argument=no
12618fi
12619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12622$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12623	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12624	CFLAGS="$xorg_testset_save_CFLAGS"
12625fi
12626
12627found="no"
12628
12629	if test $found = "no" ; then
12630		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12632		fi
12633
12634		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12636		fi
12637
12638		CFLAGS="$CFLAGS -Wold-style-definition"
12639
12640		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12641$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12642		cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
12643		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12644  $as_echo_n "(cached) " >&6
12645else
12646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647/* end confdefs.h.  */
12648int i;
12649int
12650main ()
12651{
12652
12653  ;
12654  return 0;
12655}
12656_ACEOF
12657if ac_fn_c_try_link "$LINENO"; then :
12658  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12659else
12660  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12661fi
12662rm -f core conftest.err conftest.$ac_objext \
12663    conftest$ac_exeext conftest.$ac_ext
12664fi
12665
12666
12667		CFLAGS="$xorg_testset_save_CFLAGS"
12668
12669		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12670		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12671$as_echo "$supported" >&6; }
12672		if test "$supported" = "yes" ; then
12673			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12674			found="yes"
12675		fi
12676	fi
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690xorg_testset_save_CFLAGS="$CFLAGS"
12691
12692if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12693	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12695$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12696if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12697  $as_echo_n "(cached) " >&6
12698else
12699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700/* end confdefs.h.  */
12701int i;
12702_ACEOF
12703if ac_fn_c_try_compile "$LINENO"; then :
12704  xorg_cv_compiler_flag_unknown_warning_option=yes
12705else
12706  xorg_cv_compiler_flag_unknown_warning_option=no
12707fi
12708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12709fi
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12711$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12712	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12713	CFLAGS="$xorg_testset_save_CFLAGS"
12714fi
12715
12716if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12717	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12719	fi
12720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12722$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12723if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12724  $as_echo_n "(cached) " >&6
12725else
12726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727/* end confdefs.h.  */
12728int i;
12729_ACEOF
12730if ac_fn_c_try_compile "$LINENO"; then :
12731  xorg_cv_compiler_flag_unused_command_line_argument=yes
12732else
12733  xorg_cv_compiler_flag_unused_command_line_argument=no
12734fi
12735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736fi
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12738$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12739	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12740	CFLAGS="$xorg_testset_save_CFLAGS"
12741fi
12742
12743found="no"
12744
12745	if test $found = "no" ; then
12746		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12748		fi
12749
12750		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12752		fi
12753
12754		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12755
12756		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12757$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12758		cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
12759		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12760  $as_echo_n "(cached) " >&6
12761else
12762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763/* end confdefs.h.  */
12764int i;
12765int
12766main ()
12767{
12768
12769  ;
12770  return 0;
12771}
12772_ACEOF
12773if ac_fn_c_try_link "$LINENO"; then :
12774  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12775else
12776  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12777fi
12778rm -f core conftest.err conftest.$ac_objext \
12779    conftest$ac_exeext conftest.$ac_ext
12780fi
12781
12782
12783		CFLAGS="$xorg_testset_save_CFLAGS"
12784
12785		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12786		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12787$as_echo "$supported" >&6; }
12788		if test "$supported" = "yes" ; then
12789			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12790			found="yes"
12791		fi
12792	fi
12793
12794
12795
12796
12797
12798# This chunk adds additional warnings that could catch undesired effects.
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810xorg_testset_save_CFLAGS="$CFLAGS"
12811
12812if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12815$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12816if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12817  $as_echo_n "(cached) " >&6
12818else
12819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820/* end confdefs.h.  */
12821int i;
12822_ACEOF
12823if ac_fn_c_try_compile "$LINENO"; then :
12824  xorg_cv_compiler_flag_unknown_warning_option=yes
12825else
12826  xorg_cv_compiler_flag_unknown_warning_option=no
12827fi
12828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829fi
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12831$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12832	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12833	CFLAGS="$xorg_testset_save_CFLAGS"
12834fi
12835
12836if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12837	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12839	fi
12840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12841	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12842$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12843if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12844  $as_echo_n "(cached) " >&6
12845else
12846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847/* end confdefs.h.  */
12848int i;
12849_ACEOF
12850if ac_fn_c_try_compile "$LINENO"; then :
12851  xorg_cv_compiler_flag_unused_command_line_argument=yes
12852else
12853  xorg_cv_compiler_flag_unused_command_line_argument=no
12854fi
12855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856fi
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12858$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12859	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12860	CFLAGS="$xorg_testset_save_CFLAGS"
12861fi
12862
12863found="no"
12864
12865	if test $found = "no" ; then
12866		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12868		fi
12869
12870		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12872		fi
12873
12874		CFLAGS="$CFLAGS -Wunused"
12875
12876		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12877$as_echo_n "checking if $CC supports -Wunused... " >&6; }
12878		cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
12879		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12880  $as_echo_n "(cached) " >&6
12881else
12882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h.  */
12884int i;
12885int
12886main ()
12887{
12888
12889  ;
12890  return 0;
12891}
12892_ACEOF
12893if ac_fn_c_try_link "$LINENO"; then :
12894  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
12895else
12896  eval `$as_echo "$cacheid" | $as_tr_sh`=no
12897fi
12898rm -f core conftest.err conftest.$ac_objext \
12899    conftest$ac_exeext conftest.$ac_ext
12900fi
12901
12902
12903		CFLAGS="$xorg_testset_save_CFLAGS"
12904
12905		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
12906		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12907$as_echo "$supported" >&6; }
12908		if test "$supported" = "yes" ; then
12909			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
12910			found="yes"
12911		fi
12912	fi
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926xorg_testset_save_CFLAGS="$CFLAGS"
12927
12928if test "x$xorg_testset_unknown_warning_option" = "x" ; then
12929	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
12931$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
12932if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
12933  $as_echo_n "(cached) " >&6
12934else
12935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936/* end confdefs.h.  */
12937int i;
12938_ACEOF
12939if ac_fn_c_try_compile "$LINENO"; then :
12940  xorg_cv_compiler_flag_unknown_warning_option=yes
12941else
12942  xorg_cv_compiler_flag_unknown_warning_option=no
12943fi
12944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12945fi
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
12947$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
12948	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
12949	CFLAGS="$xorg_testset_save_CFLAGS"
12950fi
12951
12952if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
12953	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12954		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12955	fi
12956	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
12958$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
12959if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
12960  $as_echo_n "(cached) " >&6
12961else
12962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963/* end confdefs.h.  */
12964int i;
12965_ACEOF
12966if ac_fn_c_try_compile "$LINENO"; then :
12967  xorg_cv_compiler_flag_unused_command_line_argument=yes
12968else
12969  xorg_cv_compiler_flag_unused_command_line_argument=no
12970fi
12971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12972fi
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
12974$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
12975	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
12976	CFLAGS="$xorg_testset_save_CFLAGS"
12977fi
12978
12979found="no"
12980
12981	if test $found = "no" ; then
12982		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12984		fi
12985
12986		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12988		fi
12989
12990		CFLAGS="$CFLAGS -Wuninitialized"
12991
12992		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
12993$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
12994		cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
12995		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
12996  $as_echo_n "(cached) " >&6
12997else
12998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999/* end confdefs.h.  */
13000int i;
13001int
13002main ()
13003{
13004
13005  ;
13006  return 0;
13007}
13008_ACEOF
13009if ac_fn_c_try_link "$LINENO"; then :
13010  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13011else
13012  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13013fi
13014rm -f core conftest.err conftest.$ac_objext \
13015    conftest$ac_exeext conftest.$ac_ext
13016fi
13017
13018
13019		CFLAGS="$xorg_testset_save_CFLAGS"
13020
13021		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13022		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13023$as_echo "$supported" >&6; }
13024		if test "$supported" = "yes" ; then
13025			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13026			found="yes"
13027		fi
13028	fi
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042xorg_testset_save_CFLAGS="$CFLAGS"
13043
13044if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13047$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13048if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13049  $as_echo_n "(cached) " >&6
13050else
13051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052/* end confdefs.h.  */
13053int i;
13054_ACEOF
13055if ac_fn_c_try_compile "$LINENO"; then :
13056  xorg_cv_compiler_flag_unknown_warning_option=yes
13057else
13058  xorg_cv_compiler_flag_unknown_warning_option=no
13059fi
13060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13061fi
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13063$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13064	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13065	CFLAGS="$xorg_testset_save_CFLAGS"
13066fi
13067
13068if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13069	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13070		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13071	fi
13072	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13074$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13075if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13076  $as_echo_n "(cached) " >&6
13077else
13078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079/* end confdefs.h.  */
13080int i;
13081_ACEOF
13082if ac_fn_c_try_compile "$LINENO"; then :
13083  xorg_cv_compiler_flag_unused_command_line_argument=yes
13084else
13085  xorg_cv_compiler_flag_unused_command_line_argument=no
13086fi
13087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13090$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13091	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13092	CFLAGS="$xorg_testset_save_CFLAGS"
13093fi
13094
13095found="no"
13096
13097	if test $found = "no" ; then
13098		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13099			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13100		fi
13101
13102		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13103			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13104		fi
13105
13106		CFLAGS="$CFLAGS -Wshadow"
13107
13108		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13109$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13110		cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
13111		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13112  $as_echo_n "(cached) " >&6
13113else
13114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115/* end confdefs.h.  */
13116int i;
13117int
13118main ()
13119{
13120
13121  ;
13122  return 0;
13123}
13124_ACEOF
13125if ac_fn_c_try_link "$LINENO"; then :
13126  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13127else
13128  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13129fi
13130rm -f core conftest.err conftest.$ac_objext \
13131    conftest$ac_exeext conftest.$ac_ext
13132fi
13133
13134
13135		CFLAGS="$xorg_testset_save_CFLAGS"
13136
13137		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13138		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13139$as_echo "$supported" >&6; }
13140		if test "$supported" = "yes" ; then
13141			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13142			found="yes"
13143		fi
13144	fi
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158xorg_testset_save_CFLAGS="$CFLAGS"
13159
13160if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13163$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13164if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13165  $as_echo_n "(cached) " >&6
13166else
13167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168/* end confdefs.h.  */
13169int i;
13170_ACEOF
13171if ac_fn_c_try_compile "$LINENO"; then :
13172  xorg_cv_compiler_flag_unknown_warning_option=yes
13173else
13174  xorg_cv_compiler_flag_unknown_warning_option=no
13175fi
13176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177fi
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13179$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13180	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13181	CFLAGS="$xorg_testset_save_CFLAGS"
13182fi
13183
13184if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13185	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13187	fi
13188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13190$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13191if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195/* end confdefs.h.  */
13196int i;
13197_ACEOF
13198if ac_fn_c_try_compile "$LINENO"; then :
13199  xorg_cv_compiler_flag_unused_command_line_argument=yes
13200else
13201  xorg_cv_compiler_flag_unused_command_line_argument=no
13202fi
13203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13206$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13207	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13208	CFLAGS="$xorg_testset_save_CFLAGS"
13209fi
13210
13211found="no"
13212
13213	if test $found = "no" ; then
13214		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13216		fi
13217
13218		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13220		fi
13221
13222		CFLAGS="$CFLAGS -Wcast-qual"
13223
13224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13225$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13226		cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
13227		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13228  $as_echo_n "(cached) " >&6
13229else
13230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h.  */
13232int i;
13233int
13234main ()
13235{
13236
13237  ;
13238  return 0;
13239}
13240_ACEOF
13241if ac_fn_c_try_link "$LINENO"; then :
13242  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13243else
13244  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13245fi
13246rm -f core conftest.err conftest.$ac_objext \
13247    conftest$ac_exeext conftest.$ac_ext
13248fi
13249
13250
13251		CFLAGS="$xorg_testset_save_CFLAGS"
13252
13253		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13255$as_echo "$supported" >&6; }
13256		if test "$supported" = "yes" ; then
13257			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13258			found="yes"
13259		fi
13260	fi
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274xorg_testset_save_CFLAGS="$CFLAGS"
13275
13276if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13278	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13279$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13280if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13281  $as_echo_n "(cached) " >&6
13282else
13283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284/* end confdefs.h.  */
13285int i;
13286_ACEOF
13287if ac_fn_c_try_compile "$LINENO"; then :
13288  xorg_cv_compiler_flag_unknown_warning_option=yes
13289else
13290  xorg_cv_compiler_flag_unknown_warning_option=no
13291fi
13292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293fi
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13295$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13296	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13297	CFLAGS="$xorg_testset_save_CFLAGS"
13298fi
13299
13300if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13301	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13302		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13303	fi
13304	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13306$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13307if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13308  $as_echo_n "(cached) " >&6
13309else
13310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311/* end confdefs.h.  */
13312int i;
13313_ACEOF
13314if ac_fn_c_try_compile "$LINENO"; then :
13315  xorg_cv_compiler_flag_unused_command_line_argument=yes
13316else
13317  xorg_cv_compiler_flag_unused_command_line_argument=no
13318fi
13319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320fi
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13322$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13323	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13324	CFLAGS="$xorg_testset_save_CFLAGS"
13325fi
13326
13327found="no"
13328
13329	if test $found = "no" ; then
13330		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13332		fi
13333
13334		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13336		fi
13337
13338		CFLAGS="$CFLAGS -Wmissing-noreturn"
13339
13340		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13341$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13342		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
13343		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13344  $as_echo_n "(cached) " >&6
13345else
13346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347/* end confdefs.h.  */
13348int i;
13349int
13350main ()
13351{
13352
13353  ;
13354  return 0;
13355}
13356_ACEOF
13357if ac_fn_c_try_link "$LINENO"; then :
13358  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13359else
13360  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13361fi
13362rm -f core conftest.err conftest.$ac_objext \
13363    conftest$ac_exeext conftest.$ac_ext
13364fi
13365
13366
13367		CFLAGS="$xorg_testset_save_CFLAGS"
13368
13369		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13370		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13371$as_echo "$supported" >&6; }
13372		if test "$supported" = "yes" ; then
13373			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13374			found="yes"
13375		fi
13376	fi
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390xorg_testset_save_CFLAGS="$CFLAGS"
13391
13392if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13395$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13396if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13397  $as_echo_n "(cached) " >&6
13398else
13399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400/* end confdefs.h.  */
13401int i;
13402_ACEOF
13403if ac_fn_c_try_compile "$LINENO"; then :
13404  xorg_cv_compiler_flag_unknown_warning_option=yes
13405else
13406  xorg_cv_compiler_flag_unknown_warning_option=no
13407fi
13408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409fi
13410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13411$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13412	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13413	CFLAGS="$xorg_testset_save_CFLAGS"
13414fi
13415
13416if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13417	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13419	fi
13420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13422$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13423if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13424  $as_echo_n "(cached) " >&6
13425else
13426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427/* end confdefs.h.  */
13428int i;
13429_ACEOF
13430if ac_fn_c_try_compile "$LINENO"; then :
13431  xorg_cv_compiler_flag_unused_command_line_argument=yes
13432else
13433  xorg_cv_compiler_flag_unused_command_line_argument=no
13434fi
13435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13436fi
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13438$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13439	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13440	CFLAGS="$xorg_testset_save_CFLAGS"
13441fi
13442
13443found="no"
13444
13445	if test $found = "no" ; then
13446		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13448		fi
13449
13450		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13452		fi
13453
13454		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13455
13456		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13457$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13458		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
13459		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13460  $as_echo_n "(cached) " >&6
13461else
13462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464int i;
13465int
13466main ()
13467{
13468
13469  ;
13470  return 0;
13471}
13472_ACEOF
13473if ac_fn_c_try_link "$LINENO"; then :
13474  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13475else
13476  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13477fi
13478rm -f core conftest.err conftest.$ac_objext \
13479    conftest$ac_exeext conftest.$ac_ext
13480fi
13481
13482
13483		CFLAGS="$xorg_testset_save_CFLAGS"
13484
13485		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13486		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13487$as_echo "$supported" >&6; }
13488		if test "$supported" = "yes" ; then
13489			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13490			found="yes"
13491		fi
13492	fi
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506xorg_testset_save_CFLAGS="$CFLAGS"
13507
13508if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13511$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13512if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13513  $as_echo_n "(cached) " >&6
13514else
13515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516/* end confdefs.h.  */
13517int i;
13518_ACEOF
13519if ac_fn_c_try_compile "$LINENO"; then :
13520  xorg_cv_compiler_flag_unknown_warning_option=yes
13521else
13522  xorg_cv_compiler_flag_unknown_warning_option=no
13523fi
13524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525fi
13526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13527$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13528	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13529	CFLAGS="$xorg_testset_save_CFLAGS"
13530fi
13531
13532if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13533	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13534		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535	fi
13536	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13538$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13539if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13540  $as_echo_n "(cached) " >&6
13541else
13542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543/* end confdefs.h.  */
13544int i;
13545_ACEOF
13546if ac_fn_c_try_compile "$LINENO"; then :
13547  xorg_cv_compiler_flag_unused_command_line_argument=yes
13548else
13549  xorg_cv_compiler_flag_unused_command_line_argument=no
13550fi
13551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552fi
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13554$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13555	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13556	CFLAGS="$xorg_testset_save_CFLAGS"
13557fi
13558
13559found="no"
13560
13561	if test $found = "no" ; then
13562		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13563			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13564		fi
13565
13566		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13567			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13568		fi
13569
13570		CFLAGS="$CFLAGS -Wredundant-decls"
13571
13572		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13573$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13574		cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
13575		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13576  $as_echo_n "(cached) " >&6
13577else
13578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579/* end confdefs.h.  */
13580int i;
13581int
13582main ()
13583{
13584
13585  ;
13586  return 0;
13587}
13588_ACEOF
13589if ac_fn_c_try_link "$LINENO"; then :
13590  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13591else
13592  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13593fi
13594rm -f core conftest.err conftest.$ac_objext \
13595    conftest$ac_exeext conftest.$ac_ext
13596fi
13597
13598
13599		CFLAGS="$xorg_testset_save_CFLAGS"
13600
13601		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13602		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13603$as_echo "$supported" >&6; }
13604		if test "$supported" = "yes" ; then
13605			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13606			found="yes"
13607		fi
13608	fi
13609
13610
13611
13612# These are currently disabled because they are noisy.  They will be enabled
13613# in the future once the codebase is sufficiently modernized to silence
13614# them.  For now, I don't want them to drown out the other warnings.
13615# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13616# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13617# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13618
13619# Turn some warnings into errors, so we don't accidently get successful builds
13620# when there are problems that should be fixed.
13621
13622if test "x$SELECTIVE_WERROR" = "xyes" ; then
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634xorg_testset_save_CFLAGS="$CFLAGS"
13635
13636if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13639$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13640if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13641  $as_echo_n "(cached) " >&6
13642else
13643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644/* end confdefs.h.  */
13645int i;
13646_ACEOF
13647if ac_fn_c_try_compile "$LINENO"; then :
13648  xorg_cv_compiler_flag_unknown_warning_option=yes
13649else
13650  xorg_cv_compiler_flag_unknown_warning_option=no
13651fi
13652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653fi
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13655$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13656	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13657	CFLAGS="$xorg_testset_save_CFLAGS"
13658fi
13659
13660if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13661	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13663	fi
13664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13666$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13667if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13668  $as_echo_n "(cached) " >&6
13669else
13670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671/* end confdefs.h.  */
13672int i;
13673_ACEOF
13674if ac_fn_c_try_compile "$LINENO"; then :
13675  xorg_cv_compiler_flag_unused_command_line_argument=yes
13676else
13677  xorg_cv_compiler_flag_unused_command_line_argument=no
13678fi
13679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680fi
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13682$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13683	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13684	CFLAGS="$xorg_testset_save_CFLAGS"
13685fi
13686
13687found="no"
13688
13689	if test $found = "no" ; then
13690		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13692		fi
13693
13694		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13696		fi
13697
13698		CFLAGS="$CFLAGS -Werror=implicit"
13699
13700		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13701$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13702		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
13703		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13704  $as_echo_n "(cached) " >&6
13705else
13706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707/* end confdefs.h.  */
13708int i;
13709int
13710main ()
13711{
13712
13713  ;
13714  return 0;
13715}
13716_ACEOF
13717if ac_fn_c_try_link "$LINENO"; then :
13718  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13719else
13720  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13721fi
13722rm -f core conftest.err conftest.$ac_objext \
13723    conftest$ac_exeext conftest.$ac_ext
13724fi
13725
13726
13727		CFLAGS="$xorg_testset_save_CFLAGS"
13728
13729		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13730		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13731$as_echo "$supported" >&6; }
13732		if test "$supported" = "yes" ; then
13733			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13734			found="yes"
13735		fi
13736	fi
13737
13738	if test $found = "no" ; then
13739		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13741		fi
13742
13743		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13745		fi
13746
13747		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13748
13749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13750$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13751		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
13752		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13753  $as_echo_n "(cached) " >&6
13754else
13755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756/* end confdefs.h.  */
13757int i;
13758int
13759main ()
13760{
13761
13762  ;
13763  return 0;
13764}
13765_ACEOF
13766if ac_fn_c_try_link "$LINENO"; then :
13767  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13768else
13769  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13770fi
13771rm -f core conftest.err conftest.$ac_objext \
13772    conftest$ac_exeext conftest.$ac_ext
13773fi
13774
13775
13776		CFLAGS="$xorg_testset_save_CFLAGS"
13777
13778		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13780$as_echo "$supported" >&6; }
13781		if test "$supported" = "yes" ; then
13782			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13783			found="yes"
13784		fi
13785	fi
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799xorg_testset_save_CFLAGS="$CFLAGS"
13800
13801if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13804$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13805if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13806  $as_echo_n "(cached) " >&6
13807else
13808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809/* end confdefs.h.  */
13810int i;
13811_ACEOF
13812if ac_fn_c_try_compile "$LINENO"; then :
13813  xorg_cv_compiler_flag_unknown_warning_option=yes
13814else
13815  xorg_cv_compiler_flag_unknown_warning_option=no
13816fi
13817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818fi
13819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13820$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13821	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13822	CFLAGS="$xorg_testset_save_CFLAGS"
13823fi
13824
13825if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13826	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13828	fi
13829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13831$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13832if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13833  $as_echo_n "(cached) " >&6
13834else
13835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836/* end confdefs.h.  */
13837int i;
13838_ACEOF
13839if ac_fn_c_try_compile "$LINENO"; then :
13840  xorg_cv_compiler_flag_unused_command_line_argument=yes
13841else
13842  xorg_cv_compiler_flag_unused_command_line_argument=no
13843fi
13844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845fi
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13847$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13848	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13849	CFLAGS="$xorg_testset_save_CFLAGS"
13850fi
13851
13852found="no"
13853
13854	if test $found = "no" ; then
13855		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13857		fi
13858
13859		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13861		fi
13862
13863		CFLAGS="$CFLAGS -Werror=nonnull"
13864
13865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13866$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13867		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
13868		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13869  $as_echo_n "(cached) " >&6
13870else
13871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872/* end confdefs.h.  */
13873int i;
13874int
13875main ()
13876{
13877
13878  ;
13879  return 0;
13880}
13881_ACEOF
13882if ac_fn_c_try_link "$LINENO"; then :
13883  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
13884else
13885  eval `$as_echo "$cacheid" | $as_tr_sh`=no
13886fi
13887rm -f core conftest.err conftest.$ac_objext \
13888    conftest$ac_exeext conftest.$ac_ext
13889fi
13890
13891
13892		CFLAGS="$xorg_testset_save_CFLAGS"
13893
13894		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
13895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13896$as_echo "$supported" >&6; }
13897		if test "$supported" = "yes" ; then
13898			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
13899			found="yes"
13900		fi
13901	fi
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915xorg_testset_save_CFLAGS="$CFLAGS"
13916
13917if test "x$xorg_testset_unknown_warning_option" = "x" ; then
13918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
13920$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
13921if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h.  */
13926int i;
13927_ACEOF
13928if ac_fn_c_try_compile "$LINENO"; then :
13929  xorg_cv_compiler_flag_unknown_warning_option=yes
13930else
13931  xorg_cv_compiler_flag_unknown_warning_option=no
13932fi
13933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934fi
13935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
13936$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
13937	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
13938	CFLAGS="$xorg_testset_save_CFLAGS"
13939fi
13940
13941if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
13942	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13943		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13944	fi
13945	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
13947$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
13948if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
13949  $as_echo_n "(cached) " >&6
13950else
13951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h.  */
13953int i;
13954_ACEOF
13955if ac_fn_c_try_compile "$LINENO"; then :
13956  xorg_cv_compiler_flag_unused_command_line_argument=yes
13957else
13958  xorg_cv_compiler_flag_unused_command_line_argument=no
13959fi
13960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961fi
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
13963$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
13964	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
13965	CFLAGS="$xorg_testset_save_CFLAGS"
13966fi
13967
13968found="no"
13969
13970	if test $found = "no" ; then
13971		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13973		fi
13974
13975		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13977		fi
13978
13979		CFLAGS="$CFLAGS -Werror=init-self"
13980
13981		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
13982$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
13983		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
13984		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
13985  $as_echo_n "(cached) " >&6
13986else
13987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int i;
13990int
13991main ()
13992{
13993
13994  ;
13995  return 0;
13996}
13997_ACEOF
13998if ac_fn_c_try_link "$LINENO"; then :
13999  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14000else
14001  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14002fi
14003rm -f core conftest.err conftest.$ac_objext \
14004    conftest$ac_exeext conftest.$ac_ext
14005fi
14006
14007
14008		CFLAGS="$xorg_testset_save_CFLAGS"
14009
14010		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14011		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14012$as_echo "$supported" >&6; }
14013		if test "$supported" = "yes" ; then
14014			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14015			found="yes"
14016		fi
14017	fi
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031xorg_testset_save_CFLAGS="$CFLAGS"
14032
14033if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14036$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14037if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14038  $as_echo_n "(cached) " >&6
14039else
14040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h.  */
14042int i;
14043_ACEOF
14044if ac_fn_c_try_compile "$LINENO"; then :
14045  xorg_cv_compiler_flag_unknown_warning_option=yes
14046else
14047  xorg_cv_compiler_flag_unknown_warning_option=no
14048fi
14049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050fi
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14052$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14053	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14054	CFLAGS="$xorg_testset_save_CFLAGS"
14055fi
14056
14057if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14058	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14060	fi
14061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14063$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14064if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14065  $as_echo_n "(cached) " >&6
14066else
14067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068/* end confdefs.h.  */
14069int i;
14070_ACEOF
14071if ac_fn_c_try_compile "$LINENO"; then :
14072  xorg_cv_compiler_flag_unused_command_line_argument=yes
14073else
14074  xorg_cv_compiler_flag_unused_command_line_argument=no
14075fi
14076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077fi
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14079$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14080	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14081	CFLAGS="$xorg_testset_save_CFLAGS"
14082fi
14083
14084found="no"
14085
14086	if test $found = "no" ; then
14087		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089		fi
14090
14091		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093		fi
14094
14095		CFLAGS="$CFLAGS -Werror=main"
14096
14097		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14098$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14099		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
14100		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14101  $as_echo_n "(cached) " >&6
14102else
14103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104/* end confdefs.h.  */
14105int i;
14106int
14107main ()
14108{
14109
14110  ;
14111  return 0;
14112}
14113_ACEOF
14114if ac_fn_c_try_link "$LINENO"; then :
14115  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14116else
14117  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14118fi
14119rm -f core conftest.err conftest.$ac_objext \
14120    conftest$ac_exeext conftest.$ac_ext
14121fi
14122
14123
14124		CFLAGS="$xorg_testset_save_CFLAGS"
14125
14126		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14127		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14128$as_echo "$supported" >&6; }
14129		if test "$supported" = "yes" ; then
14130			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14131			found="yes"
14132		fi
14133	fi
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147xorg_testset_save_CFLAGS="$CFLAGS"
14148
14149if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14152$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14153if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14154  $as_echo_n "(cached) " >&6
14155else
14156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157/* end confdefs.h.  */
14158int i;
14159_ACEOF
14160if ac_fn_c_try_compile "$LINENO"; then :
14161  xorg_cv_compiler_flag_unknown_warning_option=yes
14162else
14163  xorg_cv_compiler_flag_unknown_warning_option=no
14164fi
14165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14168$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14169	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14170	CFLAGS="$xorg_testset_save_CFLAGS"
14171fi
14172
14173if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14174	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14176	fi
14177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14179$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14180if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14181  $as_echo_n "(cached) " >&6
14182else
14183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184/* end confdefs.h.  */
14185int i;
14186_ACEOF
14187if ac_fn_c_try_compile "$LINENO"; then :
14188  xorg_cv_compiler_flag_unused_command_line_argument=yes
14189else
14190  xorg_cv_compiler_flag_unused_command_line_argument=no
14191fi
14192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193fi
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14195$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14196	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14197	CFLAGS="$xorg_testset_save_CFLAGS"
14198fi
14199
14200found="no"
14201
14202	if test $found = "no" ; then
14203		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14205		fi
14206
14207		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14209		fi
14210
14211		CFLAGS="$CFLAGS -Werror=missing-braces"
14212
14213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14214$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14215		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
14216		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14217  $as_echo_n "(cached) " >&6
14218else
14219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220/* end confdefs.h.  */
14221int i;
14222int
14223main ()
14224{
14225
14226  ;
14227  return 0;
14228}
14229_ACEOF
14230if ac_fn_c_try_link "$LINENO"; then :
14231  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14232else
14233  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14234fi
14235rm -f core conftest.err conftest.$ac_objext \
14236    conftest$ac_exeext conftest.$ac_ext
14237fi
14238
14239
14240		CFLAGS="$xorg_testset_save_CFLAGS"
14241
14242		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14243		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14244$as_echo "$supported" >&6; }
14245		if test "$supported" = "yes" ; then
14246			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14247			found="yes"
14248		fi
14249	fi
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263xorg_testset_save_CFLAGS="$CFLAGS"
14264
14265if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14268$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14269if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14270  $as_echo_n "(cached) " >&6
14271else
14272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273/* end confdefs.h.  */
14274int i;
14275_ACEOF
14276if ac_fn_c_try_compile "$LINENO"; then :
14277  xorg_cv_compiler_flag_unknown_warning_option=yes
14278else
14279  xorg_cv_compiler_flag_unknown_warning_option=no
14280fi
14281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14282fi
14283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14284$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14285	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14286	CFLAGS="$xorg_testset_save_CFLAGS"
14287fi
14288
14289if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14290	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14292	fi
14293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14295$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14296if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14297  $as_echo_n "(cached) " >&6
14298else
14299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300/* end confdefs.h.  */
14301int i;
14302_ACEOF
14303if ac_fn_c_try_compile "$LINENO"; then :
14304  xorg_cv_compiler_flag_unused_command_line_argument=yes
14305else
14306  xorg_cv_compiler_flag_unused_command_line_argument=no
14307fi
14308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14309fi
14310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14311$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14312	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14313	CFLAGS="$xorg_testset_save_CFLAGS"
14314fi
14315
14316found="no"
14317
14318	if test $found = "no" ; then
14319		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14321		fi
14322
14323		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14325		fi
14326
14327		CFLAGS="$CFLAGS -Werror=sequence-point"
14328
14329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14330$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14331		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
14332		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14333  $as_echo_n "(cached) " >&6
14334else
14335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336/* end confdefs.h.  */
14337int i;
14338int
14339main ()
14340{
14341
14342  ;
14343  return 0;
14344}
14345_ACEOF
14346if ac_fn_c_try_link "$LINENO"; then :
14347  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14348else
14349  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14350fi
14351rm -f core conftest.err conftest.$ac_objext \
14352    conftest$ac_exeext conftest.$ac_ext
14353fi
14354
14355
14356		CFLAGS="$xorg_testset_save_CFLAGS"
14357
14358		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14360$as_echo "$supported" >&6; }
14361		if test "$supported" = "yes" ; then
14362			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14363			found="yes"
14364		fi
14365	fi
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379xorg_testset_save_CFLAGS="$CFLAGS"
14380
14381if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14382	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14384$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14385if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14386  $as_echo_n "(cached) " >&6
14387else
14388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389/* end confdefs.h.  */
14390int i;
14391_ACEOF
14392if ac_fn_c_try_compile "$LINENO"; then :
14393  xorg_cv_compiler_flag_unknown_warning_option=yes
14394else
14395  xorg_cv_compiler_flag_unknown_warning_option=no
14396fi
14397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398fi
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14400$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14401	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14402	CFLAGS="$xorg_testset_save_CFLAGS"
14403fi
14404
14405if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14406	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14408	fi
14409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14411$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14412if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14413  $as_echo_n "(cached) " >&6
14414else
14415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416/* end confdefs.h.  */
14417int i;
14418_ACEOF
14419if ac_fn_c_try_compile "$LINENO"; then :
14420  xorg_cv_compiler_flag_unused_command_line_argument=yes
14421else
14422  xorg_cv_compiler_flag_unused_command_line_argument=no
14423fi
14424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425fi
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14427$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14428	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14429	CFLAGS="$xorg_testset_save_CFLAGS"
14430fi
14431
14432found="no"
14433
14434	if test $found = "no" ; then
14435		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437		fi
14438
14439		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14441		fi
14442
14443		CFLAGS="$CFLAGS -Werror=return-type"
14444
14445		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14446$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14447		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
14448		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14449  $as_echo_n "(cached) " >&6
14450else
14451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452/* end confdefs.h.  */
14453int i;
14454int
14455main ()
14456{
14457
14458  ;
14459  return 0;
14460}
14461_ACEOF
14462if ac_fn_c_try_link "$LINENO"; then :
14463  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14464else
14465  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14466fi
14467rm -f core conftest.err conftest.$ac_objext \
14468    conftest$ac_exeext conftest.$ac_ext
14469fi
14470
14471
14472		CFLAGS="$xorg_testset_save_CFLAGS"
14473
14474		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14475		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14476$as_echo "$supported" >&6; }
14477		if test "$supported" = "yes" ; then
14478			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14479			found="yes"
14480		fi
14481	fi
14482
14483	if test $found = "no" ; then
14484		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14486		fi
14487
14488		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14490		fi
14491
14492		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14493
14494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14495$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14496		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
14497		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14498  $as_echo_n "(cached) " >&6
14499else
14500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501/* end confdefs.h.  */
14502int i;
14503int
14504main ()
14505{
14506
14507  ;
14508  return 0;
14509}
14510_ACEOF
14511if ac_fn_c_try_link "$LINENO"; then :
14512  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14513else
14514  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14515fi
14516rm -f core conftest.err conftest.$ac_objext \
14517    conftest$ac_exeext conftest.$ac_ext
14518fi
14519
14520
14521		CFLAGS="$xorg_testset_save_CFLAGS"
14522
14523		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14525$as_echo "$supported" >&6; }
14526		if test "$supported" = "yes" ; then
14527			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14528			found="yes"
14529		fi
14530	fi
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544xorg_testset_save_CFLAGS="$CFLAGS"
14545
14546if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14549$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14550if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14551  $as_echo_n "(cached) " >&6
14552else
14553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554/* end confdefs.h.  */
14555int i;
14556_ACEOF
14557if ac_fn_c_try_compile "$LINENO"; then :
14558  xorg_cv_compiler_flag_unknown_warning_option=yes
14559else
14560  xorg_cv_compiler_flag_unknown_warning_option=no
14561fi
14562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563fi
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14565$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14566	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14567	CFLAGS="$xorg_testset_save_CFLAGS"
14568fi
14569
14570if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14571	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573	fi
14574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14576$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14577if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14578  $as_echo_n "(cached) " >&6
14579else
14580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581/* end confdefs.h.  */
14582int i;
14583_ACEOF
14584if ac_fn_c_try_compile "$LINENO"; then :
14585  xorg_cv_compiler_flag_unused_command_line_argument=yes
14586else
14587  xorg_cv_compiler_flag_unused_command_line_argument=no
14588fi
14589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590fi
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14592$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14593	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14594	CFLAGS="$xorg_testset_save_CFLAGS"
14595fi
14596
14597found="no"
14598
14599	if test $found = "no" ; then
14600		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14602		fi
14603
14604		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14606		fi
14607
14608		CFLAGS="$CFLAGS -Werror=trigraphs"
14609
14610		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14611$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14612		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
14613		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14614  $as_echo_n "(cached) " >&6
14615else
14616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617/* end confdefs.h.  */
14618int i;
14619int
14620main ()
14621{
14622
14623  ;
14624  return 0;
14625}
14626_ACEOF
14627if ac_fn_c_try_link "$LINENO"; then :
14628  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14629else
14630  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14631fi
14632rm -f core conftest.err conftest.$ac_objext \
14633    conftest$ac_exeext conftest.$ac_ext
14634fi
14635
14636
14637		CFLAGS="$xorg_testset_save_CFLAGS"
14638
14639		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14640		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14641$as_echo "$supported" >&6; }
14642		if test "$supported" = "yes" ; then
14643			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14644			found="yes"
14645		fi
14646	fi
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660xorg_testset_save_CFLAGS="$CFLAGS"
14661
14662if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14665$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14666if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14667  $as_echo_n "(cached) " >&6
14668else
14669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670/* end confdefs.h.  */
14671int i;
14672_ACEOF
14673if ac_fn_c_try_compile "$LINENO"; then :
14674  xorg_cv_compiler_flag_unknown_warning_option=yes
14675else
14676  xorg_cv_compiler_flag_unknown_warning_option=no
14677fi
14678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679fi
14680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14681$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14682	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14683	CFLAGS="$xorg_testset_save_CFLAGS"
14684fi
14685
14686if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14687	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14688		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14689	fi
14690	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14691	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14692$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14693if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14694  $as_echo_n "(cached) " >&6
14695else
14696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697/* end confdefs.h.  */
14698int i;
14699_ACEOF
14700if ac_fn_c_try_compile "$LINENO"; then :
14701  xorg_cv_compiler_flag_unused_command_line_argument=yes
14702else
14703  xorg_cv_compiler_flag_unused_command_line_argument=no
14704fi
14705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706fi
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14708$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14709	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14710	CFLAGS="$xorg_testset_save_CFLAGS"
14711fi
14712
14713found="no"
14714
14715	if test $found = "no" ; then
14716		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718		fi
14719
14720		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14722		fi
14723
14724		CFLAGS="$CFLAGS -Werror=array-bounds"
14725
14726		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14727$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14728		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
14729		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14730  $as_echo_n "(cached) " >&6
14731else
14732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733/* end confdefs.h.  */
14734int i;
14735int
14736main ()
14737{
14738
14739  ;
14740  return 0;
14741}
14742_ACEOF
14743if ac_fn_c_try_link "$LINENO"; then :
14744  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14745else
14746  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14747fi
14748rm -f core conftest.err conftest.$ac_objext \
14749    conftest$ac_exeext conftest.$ac_ext
14750fi
14751
14752
14753		CFLAGS="$xorg_testset_save_CFLAGS"
14754
14755		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14756		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14757$as_echo "$supported" >&6; }
14758		if test "$supported" = "yes" ; then
14759			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14760			found="yes"
14761		fi
14762	fi
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776xorg_testset_save_CFLAGS="$CFLAGS"
14777
14778if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14779	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14781$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14782if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14783  $as_echo_n "(cached) " >&6
14784else
14785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786/* end confdefs.h.  */
14787int i;
14788_ACEOF
14789if ac_fn_c_try_compile "$LINENO"; then :
14790  xorg_cv_compiler_flag_unknown_warning_option=yes
14791else
14792  xorg_cv_compiler_flag_unknown_warning_option=no
14793fi
14794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795fi
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14797$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14798	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14799	CFLAGS="$xorg_testset_save_CFLAGS"
14800fi
14801
14802if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14803	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14805	fi
14806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14808$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14809if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14810  $as_echo_n "(cached) " >&6
14811else
14812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813/* end confdefs.h.  */
14814int i;
14815_ACEOF
14816if ac_fn_c_try_compile "$LINENO"; then :
14817  xorg_cv_compiler_flag_unused_command_line_argument=yes
14818else
14819  xorg_cv_compiler_flag_unused_command_line_argument=no
14820fi
14821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14824$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14825	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14826	CFLAGS="$xorg_testset_save_CFLAGS"
14827fi
14828
14829found="no"
14830
14831	if test $found = "no" ; then
14832		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14834		fi
14835
14836		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14838		fi
14839
14840		CFLAGS="$CFLAGS -Werror=write-strings"
14841
14842		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14843$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14844		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
14845		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14846  $as_echo_n "(cached) " >&6
14847else
14848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849/* end confdefs.h.  */
14850int i;
14851int
14852main ()
14853{
14854
14855  ;
14856  return 0;
14857}
14858_ACEOF
14859if ac_fn_c_try_link "$LINENO"; then :
14860  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14861else
14862  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14863fi
14864rm -f core conftest.err conftest.$ac_objext \
14865    conftest$ac_exeext conftest.$ac_ext
14866fi
14867
14868
14869		CFLAGS="$xorg_testset_save_CFLAGS"
14870
14871		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14872		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14873$as_echo "$supported" >&6; }
14874		if test "$supported" = "yes" ; then
14875			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
14876			found="yes"
14877		fi
14878	fi
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892xorg_testset_save_CFLAGS="$CFLAGS"
14893
14894if test "x$xorg_testset_unknown_warning_option" = "x" ; then
14895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
14897$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
14898if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
14899  $as_echo_n "(cached) " >&6
14900else
14901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902/* end confdefs.h.  */
14903int i;
14904_ACEOF
14905if ac_fn_c_try_compile "$LINENO"; then :
14906  xorg_cv_compiler_flag_unknown_warning_option=yes
14907else
14908  xorg_cv_compiler_flag_unknown_warning_option=no
14909fi
14910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911fi
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
14913$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
14914	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
14915	CFLAGS="$xorg_testset_save_CFLAGS"
14916fi
14917
14918if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
14919	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14921	fi
14922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
14924$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
14925if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
14926  $as_echo_n "(cached) " >&6
14927else
14928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929/* end confdefs.h.  */
14930int i;
14931_ACEOF
14932if ac_fn_c_try_compile "$LINENO"; then :
14933  xorg_cv_compiler_flag_unused_command_line_argument=yes
14934else
14935  xorg_cv_compiler_flag_unused_command_line_argument=no
14936fi
14937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938fi
14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
14940$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
14941	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
14942	CFLAGS="$xorg_testset_save_CFLAGS"
14943fi
14944
14945found="no"
14946
14947	if test $found = "no" ; then
14948		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14950		fi
14951
14952		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14954		fi
14955
14956		CFLAGS="$CFLAGS -Werror=address"
14957
14958		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
14959$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
14960		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
14961		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
14962  $as_echo_n "(cached) " >&6
14963else
14964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965/* end confdefs.h.  */
14966int i;
14967int
14968main ()
14969{
14970
14971  ;
14972  return 0;
14973}
14974_ACEOF
14975if ac_fn_c_try_link "$LINENO"; then :
14976  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
14977else
14978  eval `$as_echo "$cacheid" | $as_tr_sh`=no
14979fi
14980rm -f core conftest.err conftest.$ac_objext \
14981    conftest$ac_exeext conftest.$ac_ext
14982fi
14983
14984
14985		CFLAGS="$xorg_testset_save_CFLAGS"
14986
14987		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
14988		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14989$as_echo "$supported" >&6; }
14990		if test "$supported" = "yes" ; then
14991			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
14992			found="yes"
14993		fi
14994	fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008xorg_testset_save_CFLAGS="$CFLAGS"
15009
15010if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15013$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15014if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15015  $as_echo_n "(cached) " >&6
15016else
15017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018/* end confdefs.h.  */
15019int i;
15020_ACEOF
15021if ac_fn_c_try_compile "$LINENO"; then :
15022  xorg_cv_compiler_flag_unknown_warning_option=yes
15023else
15024  xorg_cv_compiler_flag_unknown_warning_option=no
15025fi
15026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027fi
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15029$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15030	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15031	CFLAGS="$xorg_testset_save_CFLAGS"
15032fi
15033
15034if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15035	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15037	fi
15038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15040$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15041if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15042  $as_echo_n "(cached) " >&6
15043else
15044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15045/* end confdefs.h.  */
15046int i;
15047_ACEOF
15048if ac_fn_c_try_compile "$LINENO"; then :
15049  xorg_cv_compiler_flag_unused_command_line_argument=yes
15050else
15051  xorg_cv_compiler_flag_unused_command_line_argument=no
15052fi
15053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054fi
15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15056$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15057	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15058	CFLAGS="$xorg_testset_save_CFLAGS"
15059fi
15060
15061found="no"
15062
15063	if test $found = "no" ; then
15064		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15066		fi
15067
15068		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15070		fi
15071
15072		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15073
15074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15075$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15076		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
15077		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15078  $as_echo_n "(cached) " >&6
15079else
15080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h.  */
15082int i;
15083int
15084main ()
15085{
15086
15087  ;
15088  return 0;
15089}
15090_ACEOF
15091if ac_fn_c_try_link "$LINENO"; then :
15092  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15093else
15094  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15095fi
15096rm -f core conftest.err conftest.$ac_objext \
15097    conftest$ac_exeext conftest.$ac_ext
15098fi
15099
15100
15101		CFLAGS="$xorg_testset_save_CFLAGS"
15102
15103		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15105$as_echo "$supported" >&6; }
15106		if test "$supported" = "yes" ; then
15107			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15108			found="yes"
15109		fi
15110	fi
15111
15112	if test $found = "no" ; then
15113		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115		fi
15116
15117		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15119		fi
15120
15121		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15122
15123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15124$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15125		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
15126		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15127  $as_echo_n "(cached) " >&6
15128else
15129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130/* end confdefs.h.  */
15131int i;
15132int
15133main ()
15134{
15135
15136  ;
15137  return 0;
15138}
15139_ACEOF
15140if ac_fn_c_try_link "$LINENO"; then :
15141  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15142else
15143  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15144fi
15145rm -f core conftest.err conftest.$ac_objext \
15146    conftest$ac_exeext conftest.$ac_ext
15147fi
15148
15149
15150		CFLAGS="$xorg_testset_save_CFLAGS"
15151
15152		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15154$as_echo "$supported" >&6; }
15155		if test "$supported" = "yes" ; then
15156			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15157			found="yes"
15158		fi
15159	fi
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173xorg_testset_save_CFLAGS="$CFLAGS"
15174
15175if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15178$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15179if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15180  $as_echo_n "(cached) " >&6
15181else
15182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183/* end confdefs.h.  */
15184int i;
15185_ACEOF
15186if ac_fn_c_try_compile "$LINENO"; then :
15187  xorg_cv_compiler_flag_unknown_warning_option=yes
15188else
15189  xorg_cv_compiler_flag_unknown_warning_option=no
15190fi
15191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192fi
15193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15194$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15195	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15196	CFLAGS="$xorg_testset_save_CFLAGS"
15197fi
15198
15199if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15200	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15202	fi
15203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15205$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15206if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15207  $as_echo_n "(cached) " >&6
15208else
15209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210/* end confdefs.h.  */
15211int i;
15212_ACEOF
15213if ac_fn_c_try_compile "$LINENO"; then :
15214  xorg_cv_compiler_flag_unused_command_line_argument=yes
15215else
15216  xorg_cv_compiler_flag_unused_command_line_argument=no
15217fi
15218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219fi
15220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15221$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15222	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15223	CFLAGS="$xorg_testset_save_CFLAGS"
15224fi
15225
15226found="no"
15227
15228	if test $found = "no" ; then
15229		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231		fi
15232
15233		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15235		fi
15236
15237		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15238
15239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15240$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15241		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
15242		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15243  $as_echo_n "(cached) " >&6
15244else
15245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246/* end confdefs.h.  */
15247int i;
15248int
15249main ()
15250{
15251
15252  ;
15253  return 0;
15254}
15255_ACEOF
15256if ac_fn_c_try_link "$LINENO"; then :
15257  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15258else
15259  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15260fi
15261rm -f core conftest.err conftest.$ac_objext \
15262    conftest$ac_exeext conftest.$ac_ext
15263fi
15264
15265
15266		CFLAGS="$xorg_testset_save_CFLAGS"
15267
15268		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15270$as_echo "$supported" >&6; }
15271		if test "$supported" = "yes" ; then
15272			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15273			found="yes"
15274		fi
15275	fi
15276
15277 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15278else
15279{ $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
15280$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;}
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292xorg_testset_save_CFLAGS="$CFLAGS"
15293
15294if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15297$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15298if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15299  $as_echo_n "(cached) " >&6
15300else
15301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h.  */
15303int i;
15304_ACEOF
15305if ac_fn_c_try_compile "$LINENO"; then :
15306  xorg_cv_compiler_flag_unknown_warning_option=yes
15307else
15308  xorg_cv_compiler_flag_unknown_warning_option=no
15309fi
15310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15311fi
15312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15313$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15314	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15315	CFLAGS="$xorg_testset_save_CFLAGS"
15316fi
15317
15318if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15319	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15321	fi
15322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15324$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15325if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15326  $as_echo_n "(cached) " >&6
15327else
15328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329/* end confdefs.h.  */
15330int i;
15331_ACEOF
15332if ac_fn_c_try_compile "$LINENO"; then :
15333  xorg_cv_compiler_flag_unused_command_line_argument=yes
15334else
15335  xorg_cv_compiler_flag_unused_command_line_argument=no
15336fi
15337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338fi
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15340$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15341	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15342	CFLAGS="$xorg_testset_save_CFLAGS"
15343fi
15344
15345found="no"
15346
15347	if test $found = "no" ; then
15348		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15350		fi
15351
15352		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15354		fi
15355
15356		CFLAGS="$CFLAGS -Wimplicit"
15357
15358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15359$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15360		cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
15361		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15362  $as_echo_n "(cached) " >&6
15363else
15364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365/* end confdefs.h.  */
15366int i;
15367int
15368main ()
15369{
15370
15371  ;
15372  return 0;
15373}
15374_ACEOF
15375if ac_fn_c_try_link "$LINENO"; then :
15376  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15377else
15378  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15379fi
15380rm -f core conftest.err conftest.$ac_objext \
15381    conftest$ac_exeext conftest.$ac_ext
15382fi
15383
15384
15385		CFLAGS="$xorg_testset_save_CFLAGS"
15386
15387		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15389$as_echo "$supported" >&6; }
15390		if test "$supported" = "yes" ; then
15391			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15392			found="yes"
15393		fi
15394	fi
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408xorg_testset_save_CFLAGS="$CFLAGS"
15409
15410if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15413$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15414if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15415  $as_echo_n "(cached) " >&6
15416else
15417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418/* end confdefs.h.  */
15419int i;
15420_ACEOF
15421if ac_fn_c_try_compile "$LINENO"; then :
15422  xorg_cv_compiler_flag_unknown_warning_option=yes
15423else
15424  xorg_cv_compiler_flag_unknown_warning_option=no
15425fi
15426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427fi
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15429$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15430	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15431	CFLAGS="$xorg_testset_save_CFLAGS"
15432fi
15433
15434if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15435	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15437	fi
15438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15440$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15441if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15442  $as_echo_n "(cached) " >&6
15443else
15444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445/* end confdefs.h.  */
15446int i;
15447_ACEOF
15448if ac_fn_c_try_compile "$LINENO"; then :
15449  xorg_cv_compiler_flag_unused_command_line_argument=yes
15450else
15451  xorg_cv_compiler_flag_unused_command_line_argument=no
15452fi
15453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454fi
15455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15456$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15457	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15458	CFLAGS="$xorg_testset_save_CFLAGS"
15459fi
15460
15461found="no"
15462
15463	if test $found = "no" ; then
15464		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15466		fi
15467
15468		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15470		fi
15471
15472		CFLAGS="$CFLAGS -Wnonnull"
15473
15474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15475$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15476		cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
15477		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15478  $as_echo_n "(cached) " >&6
15479else
15480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481/* end confdefs.h.  */
15482int i;
15483int
15484main ()
15485{
15486
15487  ;
15488  return 0;
15489}
15490_ACEOF
15491if ac_fn_c_try_link "$LINENO"; then :
15492  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15493else
15494  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15495fi
15496rm -f core conftest.err conftest.$ac_objext \
15497    conftest$ac_exeext conftest.$ac_ext
15498fi
15499
15500
15501		CFLAGS="$xorg_testset_save_CFLAGS"
15502
15503		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15505$as_echo "$supported" >&6; }
15506		if test "$supported" = "yes" ; then
15507			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15508			found="yes"
15509		fi
15510	fi
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524xorg_testset_save_CFLAGS="$CFLAGS"
15525
15526if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15529$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15530if ${xorg_cv_compiler_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_compiler_flag_unknown_warning_option=yes
15539else
15540  xorg_cv_compiler_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_compiler_flag_unknown_warning_option" >&5
15545$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15546	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15547	CFLAGS="$xorg_testset_save_CFLAGS"
15548fi
15549
15550if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15551	if test "x$xorg_testset_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 compiler supports -Werror=unused-command-line-argument" >&5
15556$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15557if ${xorg_cv_compiler_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_compiler_flag_unused_command_line_argument=yes
15566else
15567  xorg_cv_compiler_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_compiler_flag_unused_command_line_argument" >&5
15572$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15573	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_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 -Winit-self"
15589
15590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15591$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15592		cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
15593		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 `$as_echo "$cacheid" | $as_tr_sh`=yes
15609else
15610  eval `$as_echo "$cacheid" | $as_tr_sh`=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=$`$as_echo "$cacheid" | $as_tr_sh`
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 -Winit-self"
15624			found="yes"
15625		fi
15626	fi
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640xorg_testset_save_CFLAGS="$CFLAGS"
15641
15642if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15645$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15646if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15647  $as_echo_n "(cached) " >&6
15648else
15649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h.  */
15651int i;
15652_ACEOF
15653if ac_fn_c_try_compile "$LINENO"; then :
15654  xorg_cv_compiler_flag_unknown_warning_option=yes
15655else
15656  xorg_cv_compiler_flag_unknown_warning_option=no
15657fi
15658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659fi
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15661$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15662	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15663	CFLAGS="$xorg_testset_save_CFLAGS"
15664fi
15665
15666if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15667	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15669	fi
15670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15672$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15673if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15674  $as_echo_n "(cached) " >&6
15675else
15676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677/* end confdefs.h.  */
15678int i;
15679_ACEOF
15680if ac_fn_c_try_compile "$LINENO"; then :
15681  xorg_cv_compiler_flag_unused_command_line_argument=yes
15682else
15683  xorg_cv_compiler_flag_unused_command_line_argument=no
15684fi
15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686fi
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15688$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15689	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15690	CFLAGS="$xorg_testset_save_CFLAGS"
15691fi
15692
15693found="no"
15694
15695	if test $found = "no" ; then
15696		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15698		fi
15699
15700		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15702		fi
15703
15704		CFLAGS="$CFLAGS -Wmain"
15705
15706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15707$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15708		cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
15709		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15710  $as_echo_n "(cached) " >&6
15711else
15712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15713/* end confdefs.h.  */
15714int i;
15715int
15716main ()
15717{
15718
15719  ;
15720  return 0;
15721}
15722_ACEOF
15723if ac_fn_c_try_link "$LINENO"; then :
15724  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15725else
15726  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15727fi
15728rm -f core conftest.err conftest.$ac_objext \
15729    conftest$ac_exeext conftest.$ac_ext
15730fi
15731
15732
15733		CFLAGS="$xorg_testset_save_CFLAGS"
15734
15735		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15737$as_echo "$supported" >&6; }
15738		if test "$supported" = "yes" ; then
15739			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15740			found="yes"
15741		fi
15742	fi
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756xorg_testset_save_CFLAGS="$CFLAGS"
15757
15758if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15759	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15761$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15762if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15763  $as_echo_n "(cached) " >&6
15764else
15765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766/* end confdefs.h.  */
15767int i;
15768_ACEOF
15769if ac_fn_c_try_compile "$LINENO"; then :
15770  xorg_cv_compiler_flag_unknown_warning_option=yes
15771else
15772  xorg_cv_compiler_flag_unknown_warning_option=no
15773fi
15774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775fi
15776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15777$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15778	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15779	CFLAGS="$xorg_testset_save_CFLAGS"
15780fi
15781
15782if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15783	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15784		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15785	fi
15786	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15788$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15789if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15790  $as_echo_n "(cached) " >&6
15791else
15792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h.  */
15794int i;
15795_ACEOF
15796if ac_fn_c_try_compile "$LINENO"; then :
15797  xorg_cv_compiler_flag_unused_command_line_argument=yes
15798else
15799  xorg_cv_compiler_flag_unused_command_line_argument=no
15800fi
15801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802fi
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15804$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15805	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15806	CFLAGS="$xorg_testset_save_CFLAGS"
15807fi
15808
15809found="no"
15810
15811	if test $found = "no" ; then
15812		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814		fi
15815
15816		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818		fi
15819
15820		CFLAGS="$CFLAGS -Wmissing-braces"
15821
15822		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15823$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15824		cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
15825		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15826  $as_echo_n "(cached) " >&6
15827else
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830int i;
15831int
15832main ()
15833{
15834
15835  ;
15836  return 0;
15837}
15838_ACEOF
15839if ac_fn_c_try_link "$LINENO"; then :
15840  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15841else
15842  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15843fi
15844rm -f core conftest.err conftest.$ac_objext \
15845    conftest$ac_exeext conftest.$ac_ext
15846fi
15847
15848
15849		CFLAGS="$xorg_testset_save_CFLAGS"
15850
15851		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15852		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15853$as_echo "$supported" >&6; }
15854		if test "$supported" = "yes" ; then
15855			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
15856			found="yes"
15857		fi
15858	fi
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872xorg_testset_save_CFLAGS="$CFLAGS"
15873
15874if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15877$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15878if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15879  $as_echo_n "(cached) " >&6
15880else
15881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882/* end confdefs.h.  */
15883int i;
15884_ACEOF
15885if ac_fn_c_try_compile "$LINENO"; then :
15886  xorg_cv_compiler_flag_unknown_warning_option=yes
15887else
15888  xorg_cv_compiler_flag_unknown_warning_option=no
15889fi
15890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891fi
15892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
15893$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
15894	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
15895	CFLAGS="$xorg_testset_save_CFLAGS"
15896fi
15897
15898if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
15899	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901	fi
15902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
15904$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
15905if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
15906  $as_echo_n "(cached) " >&6
15907else
15908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909/* end confdefs.h.  */
15910int i;
15911_ACEOF
15912if ac_fn_c_try_compile "$LINENO"; then :
15913  xorg_cv_compiler_flag_unused_command_line_argument=yes
15914else
15915  xorg_cv_compiler_flag_unused_command_line_argument=no
15916fi
15917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918fi
15919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
15920$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
15921	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
15922	CFLAGS="$xorg_testset_save_CFLAGS"
15923fi
15924
15925found="no"
15926
15927	if test $found = "no" ; then
15928		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15930		fi
15931
15932		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15934		fi
15935
15936		CFLAGS="$CFLAGS -Wsequence-point"
15937
15938		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
15939$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
15940		cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
15941		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
15942  $as_echo_n "(cached) " >&6
15943else
15944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h.  */
15946int i;
15947int
15948main ()
15949{
15950
15951  ;
15952  return 0;
15953}
15954_ACEOF
15955if ac_fn_c_try_link "$LINENO"; then :
15956  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
15957else
15958  eval `$as_echo "$cacheid" | $as_tr_sh`=no
15959fi
15960rm -f core conftest.err conftest.$ac_objext \
15961    conftest$ac_exeext conftest.$ac_ext
15962fi
15963
15964
15965		CFLAGS="$xorg_testset_save_CFLAGS"
15966
15967		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
15968		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15969$as_echo "$supported" >&6; }
15970		if test "$supported" = "yes" ; then
15971			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
15972			found="yes"
15973		fi
15974	fi
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988xorg_testset_save_CFLAGS="$CFLAGS"
15989
15990if test "x$xorg_testset_unknown_warning_option" = "x" ; then
15991	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
15993$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
15994if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
15995  $as_echo_n "(cached) " >&6
15996else
15997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998/* end confdefs.h.  */
15999int i;
16000_ACEOF
16001if ac_fn_c_try_compile "$LINENO"; then :
16002  xorg_cv_compiler_flag_unknown_warning_option=yes
16003else
16004  xorg_cv_compiler_flag_unknown_warning_option=no
16005fi
16006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16007fi
16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16009$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16010	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16011	CFLAGS="$xorg_testset_save_CFLAGS"
16012fi
16013
16014if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16015	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16017	fi
16018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16020$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16021if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16022  $as_echo_n "(cached) " >&6
16023else
16024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16025/* end confdefs.h.  */
16026int i;
16027_ACEOF
16028if ac_fn_c_try_compile "$LINENO"; then :
16029  xorg_cv_compiler_flag_unused_command_line_argument=yes
16030else
16031  xorg_cv_compiler_flag_unused_command_line_argument=no
16032fi
16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034fi
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16036$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16037	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16038	CFLAGS="$xorg_testset_save_CFLAGS"
16039fi
16040
16041found="no"
16042
16043	if test $found = "no" ; then
16044		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16045			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16046		fi
16047
16048		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16049			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16050		fi
16051
16052		CFLAGS="$CFLAGS -Wreturn-type"
16053
16054		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16055$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16056		cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
16057		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16058  $as_echo_n "(cached) " >&6
16059else
16060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061/* end confdefs.h.  */
16062int i;
16063int
16064main ()
16065{
16066
16067  ;
16068  return 0;
16069}
16070_ACEOF
16071if ac_fn_c_try_link "$LINENO"; then :
16072  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16073else
16074  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16075fi
16076rm -f core conftest.err conftest.$ac_objext \
16077    conftest$ac_exeext conftest.$ac_ext
16078fi
16079
16080
16081		CFLAGS="$xorg_testset_save_CFLAGS"
16082
16083		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16084		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16085$as_echo "$supported" >&6; }
16086		if test "$supported" = "yes" ; then
16087			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16088			found="yes"
16089		fi
16090	fi
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104xorg_testset_save_CFLAGS="$CFLAGS"
16105
16106if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16109$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16110if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16111  $as_echo_n "(cached) " >&6
16112else
16113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114/* end confdefs.h.  */
16115int i;
16116_ACEOF
16117if ac_fn_c_try_compile "$LINENO"; then :
16118  xorg_cv_compiler_flag_unknown_warning_option=yes
16119else
16120  xorg_cv_compiler_flag_unknown_warning_option=no
16121fi
16122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123fi
16124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16125$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16126	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16127	CFLAGS="$xorg_testset_save_CFLAGS"
16128fi
16129
16130if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16131	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16133	fi
16134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16136$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16137if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16138  $as_echo_n "(cached) " >&6
16139else
16140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141/* end confdefs.h.  */
16142int i;
16143_ACEOF
16144if ac_fn_c_try_compile "$LINENO"; then :
16145  xorg_cv_compiler_flag_unused_command_line_argument=yes
16146else
16147  xorg_cv_compiler_flag_unused_command_line_argument=no
16148fi
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150fi
16151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16152$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16153	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16154	CFLAGS="$xorg_testset_save_CFLAGS"
16155fi
16156
16157found="no"
16158
16159	if test $found = "no" ; then
16160		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16162		fi
16163
16164		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16166		fi
16167
16168		CFLAGS="$CFLAGS -Wtrigraphs"
16169
16170		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16171$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16172		cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
16173		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16174  $as_echo_n "(cached) " >&6
16175else
16176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16177/* end confdefs.h.  */
16178int i;
16179int
16180main ()
16181{
16182
16183  ;
16184  return 0;
16185}
16186_ACEOF
16187if ac_fn_c_try_link "$LINENO"; then :
16188  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16189else
16190  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16191fi
16192rm -f core conftest.err conftest.$ac_objext \
16193    conftest$ac_exeext conftest.$ac_ext
16194fi
16195
16196
16197		CFLAGS="$xorg_testset_save_CFLAGS"
16198
16199		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16200		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16201$as_echo "$supported" >&6; }
16202		if test "$supported" = "yes" ; then
16203			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16204			found="yes"
16205		fi
16206	fi
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220xorg_testset_save_CFLAGS="$CFLAGS"
16221
16222if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16223	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16225$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16226if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16227  $as_echo_n "(cached) " >&6
16228else
16229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231int i;
16232_ACEOF
16233if ac_fn_c_try_compile "$LINENO"; then :
16234  xorg_cv_compiler_flag_unknown_warning_option=yes
16235else
16236  xorg_cv_compiler_flag_unknown_warning_option=no
16237fi
16238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239fi
16240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16241$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16242	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16243	CFLAGS="$xorg_testset_save_CFLAGS"
16244fi
16245
16246if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16247	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16249	fi
16250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16251	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16252$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16253if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16254  $as_echo_n "(cached) " >&6
16255else
16256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257/* end confdefs.h.  */
16258int i;
16259_ACEOF
16260if ac_fn_c_try_compile "$LINENO"; then :
16261  xorg_cv_compiler_flag_unused_command_line_argument=yes
16262else
16263  xorg_cv_compiler_flag_unused_command_line_argument=no
16264fi
16265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16266fi
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16268$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16269	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16270	CFLAGS="$xorg_testset_save_CFLAGS"
16271fi
16272
16273found="no"
16274
16275	if test $found = "no" ; then
16276		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16277			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278		fi
16279
16280		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16281			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16282		fi
16283
16284		CFLAGS="$CFLAGS -Warray-bounds"
16285
16286		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16287$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16288		cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
16289		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16290  $as_echo_n "(cached) " >&6
16291else
16292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293/* end confdefs.h.  */
16294int i;
16295int
16296main ()
16297{
16298
16299  ;
16300  return 0;
16301}
16302_ACEOF
16303if ac_fn_c_try_link "$LINENO"; then :
16304  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16305else
16306  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16307fi
16308rm -f core conftest.err conftest.$ac_objext \
16309    conftest$ac_exeext conftest.$ac_ext
16310fi
16311
16312
16313		CFLAGS="$xorg_testset_save_CFLAGS"
16314
16315		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16316		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16317$as_echo "$supported" >&6; }
16318		if test "$supported" = "yes" ; then
16319			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16320			found="yes"
16321		fi
16322	fi
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336xorg_testset_save_CFLAGS="$CFLAGS"
16337
16338if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16339	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16341$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16342if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16343  $as_echo_n "(cached) " >&6
16344else
16345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346/* end confdefs.h.  */
16347int i;
16348_ACEOF
16349if ac_fn_c_try_compile "$LINENO"; then :
16350  xorg_cv_compiler_flag_unknown_warning_option=yes
16351else
16352  xorg_cv_compiler_flag_unknown_warning_option=no
16353fi
16354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16355fi
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16357$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16358	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16359	CFLAGS="$xorg_testset_save_CFLAGS"
16360fi
16361
16362if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16363	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16365	fi
16366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16368$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16369if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16370  $as_echo_n "(cached) " >&6
16371else
16372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373/* end confdefs.h.  */
16374int i;
16375_ACEOF
16376if ac_fn_c_try_compile "$LINENO"; then :
16377  xorg_cv_compiler_flag_unused_command_line_argument=yes
16378else
16379  xorg_cv_compiler_flag_unused_command_line_argument=no
16380fi
16381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382fi
16383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16384$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16385	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16386	CFLAGS="$xorg_testset_save_CFLAGS"
16387fi
16388
16389found="no"
16390
16391	if test $found = "no" ; then
16392		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16393			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16394		fi
16395
16396		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16397			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16398		fi
16399
16400		CFLAGS="$CFLAGS -Wwrite-strings"
16401
16402		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16403$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16404		cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
16405		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16406  $as_echo_n "(cached) " >&6
16407else
16408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409/* end confdefs.h.  */
16410int i;
16411int
16412main ()
16413{
16414
16415  ;
16416  return 0;
16417}
16418_ACEOF
16419if ac_fn_c_try_link "$LINENO"; then :
16420  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16421else
16422  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16423fi
16424rm -f core conftest.err conftest.$ac_objext \
16425    conftest$ac_exeext conftest.$ac_ext
16426fi
16427
16428
16429		CFLAGS="$xorg_testset_save_CFLAGS"
16430
16431		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16432		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16433$as_echo "$supported" >&6; }
16434		if test "$supported" = "yes" ; then
16435			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16436			found="yes"
16437		fi
16438	fi
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452xorg_testset_save_CFLAGS="$CFLAGS"
16453
16454if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16457$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16458if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16459  $as_echo_n "(cached) " >&6
16460else
16461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462/* end confdefs.h.  */
16463int i;
16464_ACEOF
16465if ac_fn_c_try_compile "$LINENO"; then :
16466  xorg_cv_compiler_flag_unknown_warning_option=yes
16467else
16468  xorg_cv_compiler_flag_unknown_warning_option=no
16469fi
16470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471fi
16472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16473$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16474	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16475	CFLAGS="$xorg_testset_save_CFLAGS"
16476fi
16477
16478if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16479	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16481	fi
16482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16484$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16485if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16486  $as_echo_n "(cached) " >&6
16487else
16488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489/* end confdefs.h.  */
16490int i;
16491_ACEOF
16492if ac_fn_c_try_compile "$LINENO"; then :
16493  xorg_cv_compiler_flag_unused_command_line_argument=yes
16494else
16495  xorg_cv_compiler_flag_unused_command_line_argument=no
16496fi
16497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16498fi
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16500$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16501	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16502	CFLAGS="$xorg_testset_save_CFLAGS"
16503fi
16504
16505found="no"
16506
16507	if test $found = "no" ; then
16508		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16510		fi
16511
16512		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16514		fi
16515
16516		CFLAGS="$CFLAGS -Waddress"
16517
16518		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16519$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16520		cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
16521		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16522  $as_echo_n "(cached) " >&6
16523else
16524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525/* end confdefs.h.  */
16526int i;
16527int
16528main ()
16529{
16530
16531  ;
16532  return 0;
16533}
16534_ACEOF
16535if ac_fn_c_try_link "$LINENO"; then :
16536  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16537else
16538  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16539fi
16540rm -f core conftest.err conftest.$ac_objext \
16541    conftest$ac_exeext conftest.$ac_ext
16542fi
16543
16544
16545		CFLAGS="$xorg_testset_save_CFLAGS"
16546
16547		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16549$as_echo "$supported" >&6; }
16550		if test "$supported" = "yes" ; then
16551			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16552			found="yes"
16553		fi
16554	fi
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568xorg_testset_save_CFLAGS="$CFLAGS"
16569
16570if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16573$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16574if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16575  $as_echo_n "(cached) " >&6
16576else
16577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h.  */
16579int i;
16580_ACEOF
16581if ac_fn_c_try_compile "$LINENO"; then :
16582  xorg_cv_compiler_flag_unknown_warning_option=yes
16583else
16584  xorg_cv_compiler_flag_unknown_warning_option=no
16585fi
16586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587fi
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16589$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16590	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16591	CFLAGS="$xorg_testset_save_CFLAGS"
16592fi
16593
16594if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16595	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597	fi
16598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16600$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16601if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16602  $as_echo_n "(cached) " >&6
16603else
16604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605/* end confdefs.h.  */
16606int i;
16607_ACEOF
16608if ac_fn_c_try_compile "$LINENO"; then :
16609  xorg_cv_compiler_flag_unused_command_line_argument=yes
16610else
16611  xorg_cv_compiler_flag_unused_command_line_argument=no
16612fi
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614fi
16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16616$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16617	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16618	CFLAGS="$xorg_testset_save_CFLAGS"
16619fi
16620
16621found="no"
16622
16623	if test $found = "no" ; then
16624		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16626		fi
16627
16628		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16630		fi
16631
16632		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16633
16634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16635$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16636		cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
16637		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16638  $as_echo_n "(cached) " >&6
16639else
16640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641/* end confdefs.h.  */
16642int i;
16643int
16644main ()
16645{
16646
16647  ;
16648  return 0;
16649}
16650_ACEOF
16651if ac_fn_c_try_link "$LINENO"; then :
16652  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16653else
16654  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16655fi
16656rm -f core conftest.err conftest.$ac_objext \
16657    conftest$ac_exeext conftest.$ac_ext
16658fi
16659
16660
16661		CFLAGS="$xorg_testset_save_CFLAGS"
16662
16663		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16665$as_echo "$supported" >&6; }
16666		if test "$supported" = "yes" ; then
16667			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16668			found="yes"
16669		fi
16670	fi
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684xorg_testset_save_CFLAGS="$CFLAGS"
16685
16686if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16689$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16690if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16691  $as_echo_n "(cached) " >&6
16692else
16693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h.  */
16695int i;
16696_ACEOF
16697if ac_fn_c_try_compile "$LINENO"; then :
16698  xorg_cv_compiler_flag_unknown_warning_option=yes
16699else
16700  xorg_cv_compiler_flag_unknown_warning_option=no
16701fi
16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703fi
16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16705$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16706	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16707	CFLAGS="$xorg_testset_save_CFLAGS"
16708fi
16709
16710if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16711	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16712		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16713	fi
16714	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16716$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16717if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16718  $as_echo_n "(cached) " >&6
16719else
16720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h.  */
16722int i;
16723_ACEOF
16724if ac_fn_c_try_compile "$LINENO"; then :
16725  xorg_cv_compiler_flag_unused_command_line_argument=yes
16726else
16727  xorg_cv_compiler_flag_unused_command_line_argument=no
16728fi
16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730fi
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16732$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16733	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16734	CFLAGS="$xorg_testset_save_CFLAGS"
16735fi
16736
16737found="no"
16738
16739	if test $found = "no" ; then
16740		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16742		fi
16743
16744		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16746		fi
16747
16748		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16749
16750		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16751$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16752		cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
16753		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16754  $as_echo_n "(cached) " >&6
16755else
16756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h.  */
16758int i;
16759int
16760main ()
16761{
16762
16763  ;
16764  return 0;
16765}
16766_ACEOF
16767if ac_fn_c_try_link "$LINENO"; then :
16768  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16769else
16770  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16771fi
16772rm -f core conftest.err conftest.$ac_objext \
16773    conftest$ac_exeext conftest.$ac_ext
16774fi
16775
16776
16777		CFLAGS="$xorg_testset_save_CFLAGS"
16778
16779		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16780		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16781$as_echo "$supported" >&6; }
16782		if test "$supported" = "yes" ; then
16783			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16784			found="yes"
16785		fi
16786	fi
16787
16788
16789fi
16790
16791
16792
16793
16794
16795
16796
16797		CWARNFLAGS="$BASE_CFLAGS"
16798		if  test "x$GCC" = xyes ; then
16799		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16800		fi
16801
16802
16803
16804
16805
16806
16807
16808
16809# Check whether --enable-strict-compilation was given.
16810if test "${enable_strict_compilation+set}" = set; then :
16811  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16812else
16813  STRICT_COMPILE=no
16814fi
16815
16816
16817
16818
16819
16820
16821STRICT_CFLAGS=""
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833xorg_testset_save_CFLAGS="$CFLAGS"
16834
16835if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16838$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16839if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16840  $as_echo_n "(cached) " >&6
16841else
16842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843/* end confdefs.h.  */
16844int i;
16845_ACEOF
16846if ac_fn_c_try_compile "$LINENO"; then :
16847  xorg_cv_compiler_flag_unknown_warning_option=yes
16848else
16849  xorg_cv_compiler_flag_unknown_warning_option=no
16850fi
16851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852fi
16853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16854$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16855	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16856	CFLAGS="$xorg_testset_save_CFLAGS"
16857fi
16858
16859if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16860	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16862	fi
16863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16865$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16866if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16867  $as_echo_n "(cached) " >&6
16868else
16869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870/* end confdefs.h.  */
16871int i;
16872_ACEOF
16873if ac_fn_c_try_compile "$LINENO"; then :
16874  xorg_cv_compiler_flag_unused_command_line_argument=yes
16875else
16876  xorg_cv_compiler_flag_unused_command_line_argument=no
16877fi
16878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879fi
16880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16881$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16882	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16883	CFLAGS="$xorg_testset_save_CFLAGS"
16884fi
16885
16886found="no"
16887
16888	if test $found = "no" ; then
16889		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16891		fi
16892
16893		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16895		fi
16896
16897		CFLAGS="$CFLAGS -pedantic"
16898
16899		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
16900$as_echo_n "checking if $CC supports -pedantic... " >&6; }
16901		cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
16902		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
16903  $as_echo_n "(cached) " >&6
16904else
16905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906/* end confdefs.h.  */
16907int i;
16908int
16909main ()
16910{
16911
16912  ;
16913  return 0;
16914}
16915_ACEOF
16916if ac_fn_c_try_link "$LINENO"; then :
16917  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
16918else
16919  eval `$as_echo "$cacheid" | $as_tr_sh`=no
16920fi
16921rm -f core conftest.err conftest.$ac_objext \
16922    conftest$ac_exeext conftest.$ac_ext
16923fi
16924
16925
16926		CFLAGS="$xorg_testset_save_CFLAGS"
16927
16928		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
16929		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16930$as_echo "$supported" >&6; }
16931		if test "$supported" = "yes" ; then
16932			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
16933			found="yes"
16934		fi
16935	fi
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949xorg_testset_save_CFLAGS="$CFLAGS"
16950
16951if test "x$xorg_testset_unknown_warning_option" = "x" ; then
16952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
16954$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
16955if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
16956  $as_echo_n "(cached) " >&6
16957else
16958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960int i;
16961_ACEOF
16962if ac_fn_c_try_compile "$LINENO"; then :
16963  xorg_cv_compiler_flag_unknown_warning_option=yes
16964else
16965  xorg_cv_compiler_flag_unknown_warning_option=no
16966fi
16967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968fi
16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
16970$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
16971	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
16972	CFLAGS="$xorg_testset_save_CFLAGS"
16973fi
16974
16975if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
16976	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16978	fi
16979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
16981$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
16982if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
16983  $as_echo_n "(cached) " >&6
16984else
16985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986/* end confdefs.h.  */
16987int i;
16988_ACEOF
16989if ac_fn_c_try_compile "$LINENO"; then :
16990  xorg_cv_compiler_flag_unused_command_line_argument=yes
16991else
16992  xorg_cv_compiler_flag_unused_command_line_argument=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995fi
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
16997$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
16998	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
16999	CFLAGS="$xorg_testset_save_CFLAGS"
17000fi
17001
17002found="no"
17003
17004	if test $found = "no" ; then
17005		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17007		fi
17008
17009		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17011		fi
17012
17013		CFLAGS="$CFLAGS -Werror"
17014
17015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17016$as_echo_n "checking if $CC supports -Werror... " >&6; }
17017		cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
17018		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17019  $as_echo_n "(cached) " >&6
17020else
17021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022/* end confdefs.h.  */
17023int i;
17024int
17025main ()
17026{
17027
17028  ;
17029  return 0;
17030}
17031_ACEOF
17032if ac_fn_c_try_link "$LINENO"; then :
17033  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17034else
17035  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17036fi
17037rm -f core conftest.err conftest.$ac_objext \
17038    conftest$ac_exeext conftest.$ac_ext
17039fi
17040
17041
17042		CFLAGS="$xorg_testset_save_CFLAGS"
17043
17044		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17046$as_echo "$supported" >&6; }
17047		if test "$supported" = "yes" ; then
17048			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17049			found="yes"
17050		fi
17051	fi
17052
17053	if test $found = "no" ; then
17054		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17056		fi
17057
17058		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17060		fi
17061
17062		CFLAGS="$CFLAGS -errwarn"
17063
17064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17065$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17066		cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
17067		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17068  $as_echo_n "(cached) " >&6
17069else
17070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072int i;
17073int
17074main ()
17075{
17076
17077  ;
17078  return 0;
17079}
17080_ACEOF
17081if ac_fn_c_try_link "$LINENO"; then :
17082  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17083else
17084  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17085fi
17086rm -f core conftest.err conftest.$ac_objext \
17087    conftest$ac_exeext conftest.$ac_ext
17088fi
17089
17090
17091		CFLAGS="$xorg_testset_save_CFLAGS"
17092
17093		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17095$as_echo "$supported" >&6; }
17096		if test "$supported" = "yes" ; then
17097			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17098			found="yes"
17099		fi
17100	fi
17101
17102
17103
17104# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17105# activate it with -Werror, so we add it here explicitly.
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117xorg_testset_save_CFLAGS="$CFLAGS"
17118
17119if test "x$xorg_testset_unknown_warning_option" = "x" ; then
17120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
17122$as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
17123if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
17124  $as_echo_n "(cached) " >&6
17125else
17126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127/* end confdefs.h.  */
17128int i;
17129_ACEOF
17130if ac_fn_c_try_compile "$LINENO"; then :
17131  xorg_cv_compiler_flag_unknown_warning_option=yes
17132else
17133  xorg_cv_compiler_flag_unknown_warning_option=no
17134fi
17135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17136fi
17137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
17138$as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
17139	xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
17140	CFLAGS="$xorg_testset_save_CFLAGS"
17141fi
17142
17143if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
17144	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17146	fi
17147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
17149$as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
17150if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
17151  $as_echo_n "(cached) " >&6
17152else
17153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154/* end confdefs.h.  */
17155int i;
17156_ACEOF
17157if ac_fn_c_try_compile "$LINENO"; then :
17158  xorg_cv_compiler_flag_unused_command_line_argument=yes
17159else
17160  xorg_cv_compiler_flag_unused_command_line_argument=no
17161fi
17162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163fi
17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
17165$as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
17166	xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
17167	CFLAGS="$xorg_testset_save_CFLAGS"
17168fi
17169
17170found="no"
17171
17172	if test $found = "no" ; then
17173		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17175		fi
17176
17177		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17179		fi
17180
17181		CFLAGS="$CFLAGS -Werror=attributes"
17182
17183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17184$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17185		cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
17186		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
17187  $as_echo_n "(cached) " >&6
17188else
17189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190/* end confdefs.h.  */
17191int i;
17192int
17193main ()
17194{
17195
17196  ;
17197  return 0;
17198}
17199_ACEOF
17200if ac_fn_c_try_link "$LINENO"; then :
17201  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
17202else
17203  eval `$as_echo "$cacheid" | $as_tr_sh`=no
17204fi
17205rm -f core conftest.err conftest.$ac_objext \
17206    conftest$ac_exeext conftest.$ac_ext
17207fi
17208
17209
17210		CFLAGS="$xorg_testset_save_CFLAGS"
17211
17212		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
17213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17214$as_echo "$supported" >&6; }
17215		if test "$supported" = "yes" ; then
17216			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17217			found="yes"
17218		fi
17219	fi
17220
17221
17222
17223if test "x$STRICT_COMPILE" = "xyes"; then
17224    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17225    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17226fi
17227
17228
17229
17230
17231
17232
17233cat >>confdefs.h <<_ACEOF
17234#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17235_ACEOF
17236
17237	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17238	if test "x$PVM" = "x"; then
17239		PVM="0"
17240	fi
17241
17242cat >>confdefs.h <<_ACEOF
17243#define PACKAGE_VERSION_MINOR $PVM
17244_ACEOF
17245
17246	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17247	if test "x$PVP" = "x"; then
17248		PVP="0"
17249	fi
17250
17251cat >>confdefs.h <<_ACEOF
17252#define PACKAGE_VERSION_PATCHLEVEL $PVP
17253_ACEOF
17254
17255
17256
17257CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17258mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17259|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17260echo 'git directory not found: installing possibly empty changelog.' >&2)"
17261
17262
17263
17264
17265macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17266INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17267mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17268|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17269echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17270
17271
17272
17273
17274
17275
17276if test x$APP_MAN_SUFFIX = x    ; then
17277    APP_MAN_SUFFIX=1
17278fi
17279if test x$APP_MAN_DIR = x    ; then
17280    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17281fi
17282
17283if test x$LIB_MAN_SUFFIX = x    ; then
17284    LIB_MAN_SUFFIX=3
17285fi
17286if test x$LIB_MAN_DIR = x    ; then
17287    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17288fi
17289
17290if test x$FILE_MAN_SUFFIX = x    ; then
17291    case $host_os in
17292	solaris*)	FILE_MAN_SUFFIX=4  ;;
17293	*)		FILE_MAN_SUFFIX=5  ;;
17294    esac
17295fi
17296if test x$FILE_MAN_DIR = x    ; then
17297    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17298fi
17299
17300if test x$MISC_MAN_SUFFIX = x    ; then
17301    case $host_os in
17302	solaris*)	MISC_MAN_SUFFIX=5  ;;
17303	*)		MISC_MAN_SUFFIX=7  ;;
17304    esac
17305fi
17306if test x$MISC_MAN_DIR = x    ; then
17307    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17308fi
17309
17310if test x$DRIVER_MAN_SUFFIX = x    ; then
17311    case $host_os in
17312	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17313	*)		DRIVER_MAN_SUFFIX=4  ;;
17314    esac
17315fi
17316if test x$DRIVER_MAN_DIR = x    ; then
17317    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17318fi
17319
17320if test x$ADMIN_MAN_SUFFIX = x    ; then
17321    case $host_os in
17322	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17323	*)		ADMIN_MAN_SUFFIX=8  ;;
17324    esac
17325fi
17326if test x$ADMIN_MAN_DIR = x    ; then
17327    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17328fi
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344XORG_MAN_PAGE="X Version 11"
17345
17346MAN_SUBSTS="\
17347	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17348	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17349	-e 's|__xservername__|Xorg|g' \
17350	-e 's|__xconfigfile__|xorg.conf|g' \
17351	-e 's|__projectroot__|\$(prefix)|g' \
17352	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17353	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17354	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17355	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17356	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17357	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17358	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17359
17360
17361
17362# Check whether --enable-silent-rules was given.
17363if test "${enable_silent_rules+set}" = set; then :
17364  enableval=$enable_silent_rules;
17365fi
17366
17367case $enable_silent_rules in
17368yes) AM_DEFAULT_VERBOSITY=0;;
17369no)  AM_DEFAULT_VERBOSITY=1;;
17370*)   AM_DEFAULT_VERBOSITY=0;;
17371esac
17372AM_BACKSLASH='\'
17373
17374
17375
17376# Check whether --enable-malloc0returnsnull was given.
17377if test "${enable_malloc0returnsnull+set}" = set; then :
17378  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17379else
17380  MALLOC_ZERO_RETURNS_NULL=auto
17381fi
17382
17383
17384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17385$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17386if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17387	if test "$cross_compiling" = yes; then :
17388  MALLOC_ZERO_RETURNS_NULL=yes
17389else
17390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h.  */
17392
17393#include <stdlib.h>
17394
17395int
17396main ()
17397{
17398
17399    char *m0, *r0, *c0, *p;
17400    m0 = malloc(0);
17401    p = malloc(10);
17402    r0 = realloc(p,0);
17403    c0 = calloc(0,10);
17404    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17405
17406  ;
17407  return 0;
17408}
17409_ACEOF
17410if ac_fn_c_try_run "$LINENO"; then :
17411  MALLOC_ZERO_RETURNS_NULL=yes
17412else
17413  MALLOC_ZERO_RETURNS_NULL=no
17414fi
17415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17416  conftest.$ac_objext conftest.beam conftest.$ac_ext
17417fi
17418
17419fi
17420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17421$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17422
17423if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17424	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17425	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17426	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17427else
17428	MALLOC_ZERO_CFLAGS=""
17429	XMALLOC_ZERO_CFLAGS=""
17430	XTMALLOC_ZERO_CFLAGS=""
17431fi
17432
17433
17434
17435
17436
17437
17438# Check render configuration, strip extra digits from package version to
17439# find the required protocol version
17440if test "$VERSION" = "" ; then
17441       VERSION=$PACKAGE_VERSION;
17442fi
17443RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17444
17445
17446# Obtain compiler/linker options for depedencies
17447
17448pkg_failed=no
17449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
17450$as_echo_n "checking for RENDER... " >&6; }
17451
17452if test -n "$RENDER_CFLAGS"; then
17453    pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
17454 elif test -n "$PKG_CONFIG"; then
17455    if test -n "$PKG_CONFIG" && \
17456    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
17457  ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
17458  ac_status=$?
17459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17460  test $ac_status = 0; }; then
17461  pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
17462else
17463  pkg_failed=yes
17464fi
17465 else
17466    pkg_failed=untried
17467fi
17468if test -n "$RENDER_LIBS"; then
17469    pkg_cv_RENDER_LIBS="$RENDER_LIBS"
17470 elif test -n "$PKG_CONFIG"; then
17471    if test -n "$PKG_CONFIG" && \
17472    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 renderproto >= \$RENDER_VERSION\""; } >&5
17473  ($PKG_CONFIG --exists --print-errors "x11 renderproto >= $RENDER_VERSION") 2>&5
17474  ac_status=$?
17475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17476  test $ac_status = 0; }; then
17477  pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 renderproto >= $RENDER_VERSION" 2>/dev/null`
17478else
17479  pkg_failed=yes
17480fi
17481 else
17482    pkg_failed=untried
17483fi
17484
17485
17486
17487if test $pkg_failed = yes; then
17488
17489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17490        _pkg_short_errors_supported=yes
17491else
17492        _pkg_short_errors_supported=no
17493fi
17494        if test $_pkg_short_errors_supported = yes; then
17495	        RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
17496        else
17497	        RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 renderproto >= $RENDER_VERSION" 2>&1`
17498        fi
17499	# Put the nasty error message in config.log where it belongs
17500	echo "$RENDER_PKG_ERRORS" >&5
17501
17502	as_fn_error $? "Package requirements (x11 renderproto >= $RENDER_VERSION) were not met:
17503
17504$RENDER_PKG_ERRORS
17505
17506Consider adjusting the PKG_CONFIG_PATH environment variable if you
17507installed software in a non-standard prefix.
17508
17509Alternatively, you may set the environment variables RENDER_CFLAGS
17510and RENDER_LIBS to avoid the need to call pkg-config.
17511See the pkg-config man page for more details.
17512" "$LINENO" 5
17513elif test $pkg_failed = untried; then
17514	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17516as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17517is in your PATH or set the PKG_CONFIG environment variable to the full
17518path to pkg-config.
17519
17520Alternatively, you may set the environment variables RENDER_CFLAGS
17521and RENDER_LIBS to avoid the need to call pkg-config.
17522See the pkg-config man page for more details.
17523
17524To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17525See \`config.log' for more details" "$LINENO" 5; }
17526else
17527	RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
17528	RENDER_LIBS=$pkg_cv_RENDER_LIBS
17529        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17530$as_echo "yes" >&6; }
17531	:
17532fi
17533
17534ac_config_files="$ac_config_files Makefile src/Makefile xrender.pc"
17535
17536cat >confcache <<\_ACEOF
17537# This file is a shell script that caches the results of configure
17538# tests run on this system so they can be shared between configure
17539# scripts and configure runs, see configure's option --config-cache.
17540# It is not useful on other systems.  If it contains results you don't
17541# want to keep, you may remove or edit it.
17542#
17543# config.status only pays attention to the cache file if you give it
17544# the --recheck option to rerun configure.
17545#
17546# `ac_cv_env_foo' variables (set or unset) will be overridden when
17547# loading this file, other *unset* `ac_cv_foo' will be assigned the
17548# following values.
17549
17550_ACEOF
17551
17552# The following way of writing the cache mishandles newlines in values,
17553# but we know of no workaround that is simple, portable, and efficient.
17554# So, we kill variables containing newlines.
17555# Ultrix sh set writes to stderr and can't be redirected directly,
17556# and sets the high bit in the cache file unless we assign to the vars.
17557(
17558  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17559    eval ac_val=\$$ac_var
17560    case $ac_val in #(
17561    *${as_nl}*)
17562      case $ac_var in #(
17563      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17564$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17565      esac
17566      case $ac_var in #(
17567      _ | IFS | as_nl) ;; #(
17568      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17569      *) { eval $ac_var=; unset $ac_var;} ;;
17570      esac ;;
17571    esac
17572  done
17573
17574  (set) 2>&1 |
17575    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17576    *${as_nl}ac_space=\ *)
17577      # `set' does not quote correctly, so add quotes: double-quote
17578      # substitution turns \\\\ into \\, and sed turns \\ into \.
17579      sed -n \
17580	"s/'/'\\\\''/g;
17581	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17582      ;; #(
17583    *)
17584      # `set' quotes correctly as required by POSIX, so do not add quotes.
17585      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17586      ;;
17587    esac |
17588    sort
17589) |
17590  sed '
17591     /^ac_cv_env_/b end
17592     t clear
17593     :clear
17594     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17595     t end
17596     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17597     :end' >>confcache
17598if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17599  if test -w "$cache_file"; then
17600    if test "x$cache_file" != "x/dev/null"; then
17601      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17602$as_echo "$as_me: updating cache $cache_file" >&6;}
17603      if test ! -f "$cache_file" || test -h "$cache_file"; then
17604	cat confcache >"$cache_file"
17605      else
17606        case $cache_file in #(
17607        */* | ?:*)
17608	  mv -f confcache "$cache_file"$$ &&
17609	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17610        *)
17611	  mv -f confcache "$cache_file" ;;
17612	esac
17613      fi
17614    fi
17615  else
17616    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17617$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17618  fi
17619fi
17620rm -f confcache
17621
17622test "x$prefix" = xNONE && prefix=$ac_default_prefix
17623# Let make expand exec_prefix.
17624test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17625
17626DEFS=-DHAVE_CONFIG_H
17627
17628ac_libobjs=
17629ac_ltlibobjs=
17630U=
17631for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17632  # 1. Remove the extension, and $U if already installed.
17633  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17634  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17635  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17636  #    will be set to the directory where LIBOBJS objects are built.
17637  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17638  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17639done
17640LIBOBJS=$ac_libobjs
17641
17642LTLIBOBJS=$ac_ltlibobjs
17643
17644
17645 if test -n "$EXEEXT"; then
17646  am__EXEEXT_TRUE=
17647  am__EXEEXT_FALSE='#'
17648else
17649  am__EXEEXT_TRUE='#'
17650  am__EXEEXT_FALSE=
17651fi
17652
17653if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17654  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17655Usually this means the macro was only invoked conditionally." "$LINENO" 5
17656fi
17657if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17658  as_fn_error $? "conditional \"AMDEP\" was never defined.
17659Usually this means the macro was only invoked conditionally." "$LINENO" 5
17660fi
17661if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17662  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17663Usually this means the macro was only invoked conditionally." "$LINENO" 5
17664fi
17665
17666: "${CONFIG_STATUS=./config.status}"
17667ac_write_fail=0
17668ac_clean_files_save=$ac_clean_files
17669ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17670{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17671$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17672as_write_fail=0
17673cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17674#! $SHELL
17675# Generated by $as_me.
17676# Run this file to recreate the current configuration.
17677# Compiler output produced by configure, useful for debugging
17678# configure, is in config.log if it exists.
17679
17680debug=false
17681ac_cs_recheck=false
17682ac_cs_silent=false
17683
17684SHELL=\${CONFIG_SHELL-$SHELL}
17685export SHELL
17686_ASEOF
17687cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17688## -------------------- ##
17689## M4sh Initialization. ##
17690## -------------------- ##
17691
17692# Be more Bourne compatible
17693DUALCASE=1; export DUALCASE # for MKS sh
17694if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17695  emulate sh
17696  NULLCMD=:
17697  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17698  # is contrary to our usage.  Disable this feature.
17699  alias -g '${1+"$@"}'='"$@"'
17700  setopt NO_GLOB_SUBST
17701else
17702  case `(set -o) 2>/dev/null` in #(
17703  *posix*) :
17704    set -o posix ;; #(
17705  *) :
17706     ;;
17707esac
17708fi
17709
17710
17711as_nl='
17712'
17713export as_nl
17714# Printing a long string crashes Solaris 7 /usr/bin/printf.
17715as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17716as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17717as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17718# Prefer a ksh shell builtin over an external printf program on Solaris,
17719# but without wasting forks for bash or zsh.
17720if test -z "$BASH_VERSION$ZSH_VERSION" \
17721    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17722  as_echo='print -r --'
17723  as_echo_n='print -rn --'
17724elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17725  as_echo='printf %s\n'
17726  as_echo_n='printf %s'
17727else
17728  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17729    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17730    as_echo_n='/usr/ucb/echo -n'
17731  else
17732    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17733    as_echo_n_body='eval
17734      arg=$1;
17735      case $arg in #(
17736      *"$as_nl"*)
17737	expr "X$arg" : "X\\(.*\\)$as_nl";
17738	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17739      esac;
17740      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17741    '
17742    export as_echo_n_body
17743    as_echo_n='sh -c $as_echo_n_body as_echo'
17744  fi
17745  export as_echo_body
17746  as_echo='sh -c $as_echo_body as_echo'
17747fi
17748
17749# The user is always right.
17750if test "${PATH_SEPARATOR+set}" != set; then
17751  PATH_SEPARATOR=:
17752  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17753    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17754      PATH_SEPARATOR=';'
17755  }
17756fi
17757
17758
17759# IFS
17760# We need space, tab and new line, in precisely that order.  Quoting is
17761# there to prevent editors from complaining about space-tab.
17762# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17763# splitting by setting IFS to empty value.)
17764IFS=" ""	$as_nl"
17765
17766# Find who we are.  Look in the path if we contain no directory separator.
17767as_myself=
17768case $0 in #((
17769  *[\\/]* ) as_myself=$0 ;;
17770  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17771for as_dir in $PATH
17772do
17773  IFS=$as_save_IFS
17774  test -z "$as_dir" && as_dir=.
17775    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17776  done
17777IFS=$as_save_IFS
17778
17779     ;;
17780esac
17781# We did not find ourselves, most probably we were run as `sh COMMAND'
17782# in which case we are not to be found in the path.
17783if test "x$as_myself" = x; then
17784  as_myself=$0
17785fi
17786if test ! -f "$as_myself"; then
17787  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17788  exit 1
17789fi
17790
17791# Unset variables that we do not need and which cause bugs (e.g. in
17792# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17793# suppresses any "Segmentation fault" message there.  '((' could
17794# trigger a bug in pdksh 5.2.14.
17795for as_var in BASH_ENV ENV MAIL MAILPATH
17796do eval test x\${$as_var+set} = xset \
17797  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17798done
17799PS1='$ '
17800PS2='> '
17801PS4='+ '
17802
17803# NLS nuisances.
17804LC_ALL=C
17805export LC_ALL
17806LANGUAGE=C
17807export LANGUAGE
17808
17809# CDPATH.
17810(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17811
17812
17813# as_fn_error STATUS ERROR [LINENO LOG_FD]
17814# ----------------------------------------
17815# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17816# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17817# script with STATUS, using 1 if that was 0.
17818as_fn_error ()
17819{
17820  as_status=$1; test $as_status -eq 0 && as_status=1
17821  if test "$4"; then
17822    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17823    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17824  fi
17825  $as_echo "$as_me: error: $2" >&2
17826  as_fn_exit $as_status
17827} # as_fn_error
17828
17829
17830# as_fn_set_status STATUS
17831# -----------------------
17832# Set $? to STATUS, without forking.
17833as_fn_set_status ()
17834{
17835  return $1
17836} # as_fn_set_status
17837
17838# as_fn_exit STATUS
17839# -----------------
17840# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17841as_fn_exit ()
17842{
17843  set +e
17844  as_fn_set_status $1
17845  exit $1
17846} # as_fn_exit
17847
17848# as_fn_unset VAR
17849# ---------------
17850# Portably unset VAR.
17851as_fn_unset ()
17852{
17853  { eval $1=; unset $1;}
17854}
17855as_unset=as_fn_unset
17856# as_fn_append VAR VALUE
17857# ----------------------
17858# Append the text in VALUE to the end of the definition contained in VAR. Take
17859# advantage of any shell optimizations that allow amortized linear growth over
17860# repeated appends, instead of the typical quadratic growth present in naive
17861# implementations.
17862if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17863  eval 'as_fn_append ()
17864  {
17865    eval $1+=\$2
17866  }'
17867else
17868  as_fn_append ()
17869  {
17870    eval $1=\$$1\$2
17871  }
17872fi # as_fn_append
17873
17874# as_fn_arith ARG...
17875# ------------------
17876# Perform arithmetic evaluation on the ARGs, and store the result in the
17877# global $as_val. Take advantage of shells that can avoid forks. The arguments
17878# must be portable across $(()) and expr.
17879if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17880  eval 'as_fn_arith ()
17881  {
17882    as_val=$(( $* ))
17883  }'
17884else
17885  as_fn_arith ()
17886  {
17887    as_val=`expr "$@" || test $? -eq 1`
17888  }
17889fi # as_fn_arith
17890
17891
17892if expr a : '\(a\)' >/dev/null 2>&1 &&
17893   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17894  as_expr=expr
17895else
17896  as_expr=false
17897fi
17898
17899if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17900  as_basename=basename
17901else
17902  as_basename=false
17903fi
17904
17905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17906  as_dirname=dirname
17907else
17908  as_dirname=false
17909fi
17910
17911as_me=`$as_basename -- "$0" ||
17912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17913	 X"$0" : 'X\(//\)$' \| \
17914	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17915$as_echo X/"$0" |
17916    sed '/^.*\/\([^/][^/]*\)\/*$/{
17917	    s//\1/
17918	    q
17919	  }
17920	  /^X\/\(\/\/\)$/{
17921	    s//\1/
17922	    q
17923	  }
17924	  /^X\/\(\/\).*/{
17925	    s//\1/
17926	    q
17927	  }
17928	  s/.*/./; q'`
17929
17930# Avoid depending upon Character Ranges.
17931as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17932as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17933as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17934as_cr_digits='0123456789'
17935as_cr_alnum=$as_cr_Letters$as_cr_digits
17936
17937ECHO_C= ECHO_N= ECHO_T=
17938case `echo -n x` in #(((((
17939-n*)
17940  case `echo 'xy\c'` in
17941  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17942  xy)  ECHO_C='\c';;
17943  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17944       ECHO_T='	';;
17945  esac;;
17946*)
17947  ECHO_N='-n';;
17948esac
17949
17950rm -f conf$$ conf$$.exe conf$$.file
17951if test -d conf$$.dir; then
17952  rm -f conf$$.dir/conf$$.file
17953else
17954  rm -f conf$$.dir
17955  mkdir conf$$.dir 2>/dev/null
17956fi
17957if (echo >conf$$.file) 2>/dev/null; then
17958  if ln -s conf$$.file conf$$ 2>/dev/null; then
17959    as_ln_s='ln -s'
17960    # ... but there are two gotchas:
17961    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17962    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17963    # In both cases, we have to default to `cp -p'.
17964    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17965      as_ln_s='cp -p'
17966  elif ln conf$$.file conf$$ 2>/dev/null; then
17967    as_ln_s=ln
17968  else
17969    as_ln_s='cp -p'
17970  fi
17971else
17972  as_ln_s='cp -p'
17973fi
17974rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17975rmdir conf$$.dir 2>/dev/null
17976
17977
17978# as_fn_mkdir_p
17979# -------------
17980# Create "$as_dir" as a directory, including parents if necessary.
17981as_fn_mkdir_p ()
17982{
17983
17984  case $as_dir in #(
17985  -*) as_dir=./$as_dir;;
17986  esac
17987  test -d "$as_dir" || eval $as_mkdir_p || {
17988    as_dirs=
17989    while :; do
17990      case $as_dir in #(
17991      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17992      *) as_qdir=$as_dir;;
17993      esac
17994      as_dirs="'$as_qdir' $as_dirs"
17995      as_dir=`$as_dirname -- "$as_dir" ||
17996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17997	 X"$as_dir" : 'X\(//\)[^/]' \| \
17998	 X"$as_dir" : 'X\(//\)$' \| \
17999	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18000$as_echo X"$as_dir" |
18001    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18002	    s//\1/
18003	    q
18004	  }
18005	  /^X\(\/\/\)[^/].*/{
18006	    s//\1/
18007	    q
18008	  }
18009	  /^X\(\/\/\)$/{
18010	    s//\1/
18011	    q
18012	  }
18013	  /^X\(\/\).*/{
18014	    s//\1/
18015	    q
18016	  }
18017	  s/.*/./; q'`
18018      test -d "$as_dir" && break
18019    done
18020    test -z "$as_dirs" || eval "mkdir $as_dirs"
18021  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18022
18023
18024} # as_fn_mkdir_p
18025if mkdir -p . 2>/dev/null; then
18026  as_mkdir_p='mkdir -p "$as_dir"'
18027else
18028  test -d ./-p && rmdir ./-p
18029  as_mkdir_p=false
18030fi
18031
18032if test -x / >/dev/null 2>&1; then
18033  as_test_x='test -x'
18034else
18035  if ls -dL / >/dev/null 2>&1; then
18036    as_ls_L_option=L
18037  else
18038    as_ls_L_option=
18039  fi
18040  as_test_x='
18041    eval sh -c '\''
18042      if test -d "$1"; then
18043	test -d "$1/.";
18044      else
18045	case $1 in #(
18046	-*)set "./$1";;
18047	esac;
18048	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18049	???[sx]*):;;*)false;;esac;fi
18050    '\'' sh
18051  '
18052fi
18053as_executable_p=$as_test_x
18054
18055# Sed expression to map a string onto a valid CPP name.
18056as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18057
18058# Sed expression to map a string onto a valid variable name.
18059as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18060
18061
18062exec 6>&1
18063## ----------------------------------- ##
18064## Main body of $CONFIG_STATUS script. ##
18065## ----------------------------------- ##
18066_ASEOF
18067test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18068
18069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18070# Save the log message, to keep $0 and so on meaningful, and to
18071# report actual input values of CONFIG_FILES etc. instead of their
18072# values after options handling.
18073ac_log="
18074This file was extended by libXrender $as_me 0.9.7, which was
18075generated by GNU Autoconf 2.68.  Invocation command line was
18076
18077  CONFIG_FILES    = $CONFIG_FILES
18078  CONFIG_HEADERS  = $CONFIG_HEADERS
18079  CONFIG_LINKS    = $CONFIG_LINKS
18080  CONFIG_COMMANDS = $CONFIG_COMMANDS
18081  $ $0 $@
18082
18083on `(hostname || uname -n) 2>/dev/null | sed 1q`
18084"
18085
18086_ACEOF
18087
18088case $ac_config_files in *"
18089"*) set x $ac_config_files; shift; ac_config_files=$*;;
18090esac
18091
18092case $ac_config_headers in *"
18093"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18094esac
18095
18096
18097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18098# Files that config.status was made for.
18099config_files="$ac_config_files"
18100config_headers="$ac_config_headers"
18101config_commands="$ac_config_commands"
18102
18103_ACEOF
18104
18105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18106ac_cs_usage="\
18107\`$as_me' instantiates files and other configuration actions
18108from templates according to the current configuration.  Unless the files
18109and actions are specified as TAGs, all are instantiated by default.
18110
18111Usage: $0 [OPTION]... [TAG]...
18112
18113  -h, --help       print this help, then exit
18114  -V, --version    print version number and configuration settings, then exit
18115      --config     print configuration, then exit
18116  -q, --quiet, --silent
18117                   do not print progress messages
18118  -d, --debug      don't remove temporary files
18119      --recheck    update $as_me by reconfiguring in the same conditions
18120      --file=FILE[:TEMPLATE]
18121                   instantiate the configuration file FILE
18122      --header=FILE[:TEMPLATE]
18123                   instantiate the configuration header FILE
18124
18125Configuration files:
18126$config_files
18127
18128Configuration headers:
18129$config_headers
18130
18131Configuration commands:
18132$config_commands
18133
18134Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18135
18136_ACEOF
18137cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18138ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18139ac_cs_version="\\
18140libXrender config.status 0.9.7
18141configured by $0, generated by GNU Autoconf 2.68,
18142  with options \\"\$ac_cs_config\\"
18143
18144Copyright (C) 2010 Free Software Foundation, Inc.
18145This config.status script is free software; the Free Software Foundation
18146gives unlimited permission to copy, distribute and modify it."
18147
18148ac_pwd='$ac_pwd'
18149srcdir='$srcdir'
18150INSTALL='$INSTALL'
18151MKDIR_P='$MKDIR_P'
18152AWK='$AWK'
18153test -n "\$AWK" || AWK=awk
18154_ACEOF
18155
18156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18157# The default lists apply if the user does not specify any file.
18158ac_need_defaults=:
18159while test $# != 0
18160do
18161  case $1 in
18162  --*=?*)
18163    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18164    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18165    ac_shift=:
18166    ;;
18167  --*=)
18168    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18169    ac_optarg=
18170    ac_shift=:
18171    ;;
18172  *)
18173    ac_option=$1
18174    ac_optarg=$2
18175    ac_shift=shift
18176    ;;
18177  esac
18178
18179  case $ac_option in
18180  # Handling of the options.
18181  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18182    ac_cs_recheck=: ;;
18183  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18184    $as_echo "$ac_cs_version"; exit ;;
18185  --config | --confi | --conf | --con | --co | --c )
18186    $as_echo "$ac_cs_config"; exit ;;
18187  --debug | --debu | --deb | --de | --d | -d )
18188    debug=: ;;
18189  --file | --fil | --fi | --f )
18190    $ac_shift
18191    case $ac_optarg in
18192    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18193    '') as_fn_error $? "missing file argument" ;;
18194    esac
18195    as_fn_append CONFIG_FILES " '$ac_optarg'"
18196    ac_need_defaults=false;;
18197  --header | --heade | --head | --hea )
18198    $ac_shift
18199    case $ac_optarg in
18200    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18201    esac
18202    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18203    ac_need_defaults=false;;
18204  --he | --h)
18205    # Conflict between --help and --header
18206    as_fn_error $? "ambiguous option: \`$1'
18207Try \`$0 --help' for more information.";;
18208  --help | --hel | -h )
18209    $as_echo "$ac_cs_usage"; exit ;;
18210  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18211  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18212    ac_cs_silent=: ;;
18213
18214  # This is an error.
18215  -*) as_fn_error $? "unrecognized option: \`$1'
18216Try \`$0 --help' for more information." ;;
18217
18218  *) as_fn_append ac_config_targets " $1"
18219     ac_need_defaults=false ;;
18220
18221  esac
18222  shift
18223done
18224
18225ac_configure_extra_args=
18226
18227if $ac_cs_silent; then
18228  exec 6>/dev/null
18229  ac_configure_extra_args="$ac_configure_extra_args --silent"
18230fi
18231
18232_ACEOF
18233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18234if \$ac_cs_recheck; then
18235  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18236  shift
18237  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18238  CONFIG_SHELL='$SHELL'
18239  export CONFIG_SHELL
18240  exec "\$@"
18241fi
18242
18243_ACEOF
18244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18245exec 5>>config.log
18246{
18247  echo
18248  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18249## Running $as_me. ##
18250_ASBOX
18251  $as_echo "$ac_log"
18252} >&5
18253
18254_ACEOF
18255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18256#
18257# INIT-COMMANDS
18258#
18259AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18260
18261
18262# The HP-UX ksh and POSIX shell print the target directory to stdout
18263# if CDPATH is set.
18264(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18265
18266sed_quote_subst='$sed_quote_subst'
18267double_quote_subst='$double_quote_subst'
18268delay_variable_subst='$delay_variable_subst'
18269macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18270macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18271enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18272enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18273pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18274enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18275SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18276ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18277host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18278host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18279host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18280build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18281build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18282build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18283SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18284Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18285GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18286EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18287FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18288LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18289NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18290LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18291max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18292ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18293exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18294lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18295lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18296lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18297lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18298lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18299reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18300reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18301OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18302deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18303file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18304file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18305want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18306DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18307sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18308AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18309AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18310archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18311STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18312RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18313old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18314old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18315old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18316lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18317CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18318CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18319compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18320GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18321lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18322lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18323lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18324lt_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"`'
18325nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18326lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18327objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18328MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18329lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18330lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18331lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18332lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18333lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18334need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18335MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18336DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18337NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18338LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18339OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18340OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18341libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18342shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18343extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18344archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18345enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18346export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18347whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18348compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18349old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18350old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18351archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18352archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18353module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18354module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18355with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18356allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18357no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18358hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18359hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18360hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18361hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18362hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18363hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18364hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18365hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18366inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18367link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18368always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18369export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18370exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18371include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18372prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18373postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18374file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18375variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18376need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18377need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18378version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18379runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18380shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18381shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18382libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18383library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18384soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18385install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18386postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18387postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18388finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18389finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18390hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18391sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18392sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18393hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18394enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18395enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18396enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18397old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18398striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18399
18400LTCC='$LTCC'
18401LTCFLAGS='$LTCFLAGS'
18402compiler='$compiler_DEFAULT'
18403
18404# A function that is used when there is no print builtin or printf.
18405func_fallback_echo ()
18406{
18407  eval 'cat <<_LTECHO_EOF
18408\$1
18409_LTECHO_EOF'
18410}
18411
18412# Quote evaled strings.
18413for var in SHELL \
18414ECHO \
18415SED \
18416GREP \
18417EGREP \
18418FGREP \
18419LD \
18420NM \
18421LN_S \
18422lt_SP2NL \
18423lt_NL2SP \
18424reload_flag \
18425OBJDUMP \
18426deplibs_check_method \
18427file_magic_cmd \
18428file_magic_glob \
18429want_nocaseglob \
18430DLLTOOL \
18431sharedlib_from_linklib_cmd \
18432AR \
18433AR_FLAGS \
18434archiver_list_spec \
18435STRIP \
18436RANLIB \
18437CC \
18438CFLAGS \
18439compiler \
18440lt_cv_sys_global_symbol_pipe \
18441lt_cv_sys_global_symbol_to_cdecl \
18442lt_cv_sys_global_symbol_to_c_name_address \
18443lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18444nm_file_list_spec \
18445lt_prog_compiler_no_builtin_flag \
18446lt_prog_compiler_pic \
18447lt_prog_compiler_wl \
18448lt_prog_compiler_static \
18449lt_cv_prog_compiler_c_o \
18450need_locks \
18451MANIFEST_TOOL \
18452DSYMUTIL \
18453NMEDIT \
18454LIPO \
18455OTOOL \
18456OTOOL64 \
18457shrext_cmds \
18458export_dynamic_flag_spec \
18459whole_archive_flag_spec \
18460compiler_needs_object \
18461with_gnu_ld \
18462allow_undefined_flag \
18463no_undefined_flag \
18464hardcode_libdir_flag_spec \
18465hardcode_libdir_flag_spec_ld \
18466hardcode_libdir_separator \
18467exclude_expsyms \
18468include_expsyms \
18469file_list_spec \
18470variables_saved_for_relink \
18471libname_spec \
18472library_names_spec \
18473soname_spec \
18474install_override_mode \
18475finish_eval \
18476old_striplib \
18477striplib; do
18478    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18479    *[\\\\\\\`\\"\\\$]*)
18480      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18481      ;;
18482    *)
18483      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18484      ;;
18485    esac
18486done
18487
18488# Double-quote double-evaled strings.
18489for var in reload_cmds \
18490old_postinstall_cmds \
18491old_postuninstall_cmds \
18492old_archive_cmds \
18493extract_expsyms_cmds \
18494old_archive_from_new_cmds \
18495old_archive_from_expsyms_cmds \
18496archive_cmds \
18497archive_expsym_cmds \
18498module_cmds \
18499module_expsym_cmds \
18500export_symbols_cmds \
18501prelink_cmds \
18502postlink_cmds \
18503postinstall_cmds \
18504postuninstall_cmds \
18505finish_cmds \
18506sys_lib_search_path_spec \
18507sys_lib_dlsearch_path_spec; do
18508    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18509    *[\\\\\\\`\\"\\\$]*)
18510      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18511      ;;
18512    *)
18513      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18514      ;;
18515    esac
18516done
18517
18518ac_aux_dir='$ac_aux_dir'
18519xsi_shell='$xsi_shell'
18520lt_shell_append='$lt_shell_append'
18521
18522# See if we are running on zsh, and set the options which allow our
18523# commands through without removal of \ escapes INIT.
18524if test -n "\${ZSH_VERSION+set}" ; then
18525   setopt NO_GLOB_SUBST
18526fi
18527
18528
18529    PACKAGE='$PACKAGE'
18530    VERSION='$VERSION'
18531    TIMESTAMP='$TIMESTAMP'
18532    RM='$RM'
18533    ofile='$ofile'
18534
18535
18536
18537
18538_ACEOF
18539
18540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18541
18542# Handling of arguments.
18543for ac_config_target in $ac_config_targets
18544do
18545  case $ac_config_target in
18546    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18547    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18548    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18549    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18550    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18551    "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
18552
18553  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18554  esac
18555done
18556
18557
18558# If the user did not use the arguments to specify the items to instantiate,
18559# then the envvar interface is used.  Set only those that are not.
18560# We use the long form for the default assignment because of an extremely
18561# bizarre bug on SunOS 4.1.3.
18562if $ac_need_defaults; then
18563  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18564  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18565  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18566fi
18567
18568# Have a temporary directory for convenience.  Make it in the build tree
18569# simply because there is no reason against having it here, and in addition,
18570# creating and moving files from /tmp can sometimes cause problems.
18571# Hook for its removal unless debugging.
18572# Note that there is a small window in which the directory will not be cleaned:
18573# after its creation but before its name has been assigned to `$tmp'.
18574$debug ||
18575{
18576  tmp= ac_tmp=
18577  trap 'exit_status=$?
18578  : "${ac_tmp:=$tmp}"
18579  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18580' 0
18581  trap 'as_fn_exit 1' 1 2 13 15
18582}
18583# Create a (secure) tmp directory for tmp files.
18584
18585{
18586  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18587  test -d "$tmp"
18588}  ||
18589{
18590  tmp=./conf$$-$RANDOM
18591  (umask 077 && mkdir "$tmp")
18592} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18593ac_tmp=$tmp
18594
18595# Set up the scripts for CONFIG_FILES section.
18596# No need to generate them if there are no CONFIG_FILES.
18597# This happens for instance with `./config.status config.h'.
18598if test -n "$CONFIG_FILES"; then
18599
18600
18601ac_cr=`echo X | tr X '\015'`
18602# On cygwin, bash can eat \r inside `` if the user requested igncr.
18603# But we know of no other shell where ac_cr would be empty at this
18604# point, so we can use a bashism as a fallback.
18605if test "x$ac_cr" = x; then
18606  eval ac_cr=\$\'\\r\'
18607fi
18608ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18609if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18610  ac_cs_awk_cr='\\r'
18611else
18612  ac_cs_awk_cr=$ac_cr
18613fi
18614
18615echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18616_ACEOF
18617
18618
18619{
18620  echo "cat >conf$$subs.awk <<_ACEOF" &&
18621  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18622  echo "_ACEOF"
18623} >conf$$subs.sh ||
18624  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18625ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18626ac_delim='%!_!# '
18627for ac_last_try in false false false false false :; do
18628  . ./conf$$subs.sh ||
18629    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18630
18631  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18632  if test $ac_delim_n = $ac_delim_num; then
18633    break
18634  elif $ac_last_try; then
18635    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18636  else
18637    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18638  fi
18639done
18640rm -f conf$$subs.sh
18641
18642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18643cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18644_ACEOF
18645sed -n '
18646h
18647s/^/S["/; s/!.*/"]=/
18648p
18649g
18650s/^[^!]*!//
18651:repl
18652t repl
18653s/'"$ac_delim"'$//
18654t delim
18655:nl
18656h
18657s/\(.\{148\}\)..*/\1/
18658t more1
18659s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18660p
18661n
18662b repl
18663:more1
18664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18665p
18666g
18667s/.\{148\}//
18668t nl
18669:delim
18670h
18671s/\(.\{148\}\)..*/\1/
18672t more2
18673s/["\\]/\\&/g; s/^/"/; s/$/"/
18674p
18675b
18676:more2
18677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18678p
18679g
18680s/.\{148\}//
18681t delim
18682' <conf$$subs.awk | sed '
18683/^[^""]/{
18684  N
18685  s/\n//
18686}
18687' >>$CONFIG_STATUS || ac_write_fail=1
18688rm -f conf$$subs.awk
18689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18690_ACAWK
18691cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18692  for (key in S) S_is_set[key] = 1
18693  FS = ""
18694
18695}
18696{
18697  line = $ 0
18698  nfields = split(line, field, "@")
18699  substed = 0
18700  len = length(field[1])
18701  for (i = 2; i < nfields; i++) {
18702    key = field[i]
18703    keylen = length(key)
18704    if (S_is_set[key]) {
18705      value = S[key]
18706      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18707      len += length(value) + length(field[++i])
18708      substed = 1
18709    } else
18710      len += 1 + keylen
18711  }
18712
18713  print line
18714}
18715
18716_ACAWK
18717_ACEOF
18718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18719if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18720  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18721else
18722  cat
18723fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18724  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18725_ACEOF
18726
18727# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18728# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18729# trailing colons and then remove the whole line if VPATH becomes empty
18730# (actually we leave an empty line to preserve line numbers).
18731if test "x$srcdir" = x.; then
18732  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18733h
18734s///
18735s/^/:/
18736s/[	 ]*$/:/
18737s/:\$(srcdir):/:/g
18738s/:\${srcdir}:/:/g
18739s/:@srcdir@:/:/g
18740s/^:*//
18741s/:*$//
18742x
18743s/\(=[	 ]*\).*/\1/
18744G
18745s/\n//
18746s/^[^=]*=[	 ]*$//
18747}'
18748fi
18749
18750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18751fi # test -n "$CONFIG_FILES"
18752
18753# Set up the scripts for CONFIG_HEADERS section.
18754# No need to generate them if there are no CONFIG_HEADERS.
18755# This happens for instance with `./config.status Makefile'.
18756if test -n "$CONFIG_HEADERS"; then
18757cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18758BEGIN {
18759_ACEOF
18760
18761# Transform confdefs.h into an awk script `defines.awk', embedded as
18762# here-document in config.status, that substitutes the proper values into
18763# config.h.in to produce config.h.
18764
18765# Create a delimiter string that does not exist in confdefs.h, to ease
18766# handling of long lines.
18767ac_delim='%!_!# '
18768for ac_last_try in false false :; do
18769  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18770  if test -z "$ac_tt"; then
18771    break
18772  elif $ac_last_try; then
18773    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18774  else
18775    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18776  fi
18777done
18778
18779# For the awk script, D is an array of macro values keyed by name,
18780# likewise P contains macro parameters if any.  Preserve backslash
18781# newline sequences.
18782
18783ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18784sed -n '
18785s/.\{148\}/&'"$ac_delim"'/g
18786t rset
18787:rset
18788s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18789t def
18790d
18791:def
18792s/\\$//
18793t bsnl
18794s/["\\]/\\&/g
18795s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18796D["\1"]=" \3"/p
18797s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18798d
18799:bsnl
18800s/["\\]/\\&/g
18801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18802D["\1"]=" \3\\\\\\n"\\/p
18803t cont
18804s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18805t cont
18806d
18807:cont
18808n
18809s/.\{148\}/&'"$ac_delim"'/g
18810t clear
18811:clear
18812s/\\$//
18813t bsnlc
18814s/["\\]/\\&/g; s/^/"/; s/$/"/p
18815d
18816:bsnlc
18817s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18818b cont
18819' <confdefs.h | sed '
18820s/'"$ac_delim"'/"\\\
18821"/g' >>$CONFIG_STATUS || ac_write_fail=1
18822
18823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18824  for (key in D) D_is_set[key] = 1
18825  FS = ""
18826}
18827/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18828  line = \$ 0
18829  split(line, arg, " ")
18830  if (arg[1] == "#") {
18831    defundef = arg[2]
18832    mac1 = arg[3]
18833  } else {
18834    defundef = substr(arg[1], 2)
18835    mac1 = arg[2]
18836  }
18837  split(mac1, mac2, "(") #)
18838  macro = mac2[1]
18839  prefix = substr(line, 1, index(line, defundef) - 1)
18840  if (D_is_set[macro]) {
18841    # Preserve the white space surrounding the "#".
18842    print prefix "define", macro P[macro] D[macro]
18843    next
18844  } else {
18845    # Replace #undef with comments.  This is necessary, for example,
18846    # in the case of _POSIX_SOURCE, which is predefined and required
18847    # on some systems where configure will not decide to define it.
18848    if (defundef == "undef") {
18849      print "/*", prefix defundef, macro, "*/"
18850      next
18851    }
18852  }
18853}
18854{ print }
18855_ACAWK
18856_ACEOF
18857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18858  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18859fi # test -n "$CONFIG_HEADERS"
18860
18861
18862eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18863shift
18864for ac_tag
18865do
18866  case $ac_tag in
18867  :[FHLC]) ac_mode=$ac_tag; continue;;
18868  esac
18869  case $ac_mode$ac_tag in
18870  :[FHL]*:*);;
18871  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18872  :[FH]-) ac_tag=-:-;;
18873  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18874  esac
18875  ac_save_IFS=$IFS
18876  IFS=:
18877  set x $ac_tag
18878  IFS=$ac_save_IFS
18879  shift
18880  ac_file=$1
18881  shift
18882
18883  case $ac_mode in
18884  :L) ac_source=$1;;
18885  :[FH])
18886    ac_file_inputs=
18887    for ac_f
18888    do
18889      case $ac_f in
18890      -) ac_f="$ac_tmp/stdin";;
18891      *) # Look for the file first in the build tree, then in the source tree
18892	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18893	 # because $ac_f cannot contain `:'.
18894	 test -f "$ac_f" ||
18895	   case $ac_f in
18896	   [\\/$]*) false;;
18897	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18898	   esac ||
18899	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18900      esac
18901      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18902      as_fn_append ac_file_inputs " '$ac_f'"
18903    done
18904
18905    # Let's still pretend it is `configure' which instantiates (i.e., don't
18906    # use $as_me), people would be surprised to read:
18907    #    /* config.h.  Generated by config.status.  */
18908    configure_input='Generated from '`
18909	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18910	`' by configure.'
18911    if test x"$ac_file" != x-; then
18912      configure_input="$ac_file.  $configure_input"
18913      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18914$as_echo "$as_me: creating $ac_file" >&6;}
18915    fi
18916    # Neutralize special characters interpreted by sed in replacement strings.
18917    case $configure_input in #(
18918    *\&* | *\|* | *\\* )
18919       ac_sed_conf_input=`$as_echo "$configure_input" |
18920       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18921    *) ac_sed_conf_input=$configure_input;;
18922    esac
18923
18924    case $ac_tag in
18925    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18926      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18927    esac
18928    ;;
18929  esac
18930
18931  ac_dir=`$as_dirname -- "$ac_file" ||
18932$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18933	 X"$ac_file" : 'X\(//\)[^/]' \| \
18934	 X"$ac_file" : 'X\(//\)$' \| \
18935	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18936$as_echo X"$ac_file" |
18937    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18938	    s//\1/
18939	    q
18940	  }
18941	  /^X\(\/\/\)[^/].*/{
18942	    s//\1/
18943	    q
18944	  }
18945	  /^X\(\/\/\)$/{
18946	    s//\1/
18947	    q
18948	  }
18949	  /^X\(\/\).*/{
18950	    s//\1/
18951	    q
18952	  }
18953	  s/.*/./; q'`
18954  as_dir="$ac_dir"; as_fn_mkdir_p
18955  ac_builddir=.
18956
18957case "$ac_dir" in
18958.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18959*)
18960  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18961  # A ".." for each directory in $ac_dir_suffix.
18962  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18963  case $ac_top_builddir_sub in
18964  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18965  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18966  esac ;;
18967esac
18968ac_abs_top_builddir=$ac_pwd
18969ac_abs_builddir=$ac_pwd$ac_dir_suffix
18970# for backward compatibility:
18971ac_top_builddir=$ac_top_build_prefix
18972
18973case $srcdir in
18974  .)  # We are building in place.
18975    ac_srcdir=.
18976    ac_top_srcdir=$ac_top_builddir_sub
18977    ac_abs_top_srcdir=$ac_pwd ;;
18978  [\\/]* | ?:[\\/]* )  # Absolute name.
18979    ac_srcdir=$srcdir$ac_dir_suffix;
18980    ac_top_srcdir=$srcdir
18981    ac_abs_top_srcdir=$srcdir ;;
18982  *) # Relative name.
18983    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18984    ac_top_srcdir=$ac_top_build_prefix$srcdir
18985    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18986esac
18987ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18988
18989
18990  case $ac_mode in
18991  :F)
18992  #
18993  # CONFIG_FILE
18994  #
18995
18996  case $INSTALL in
18997  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18998  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18999  esac
19000  ac_MKDIR_P=$MKDIR_P
19001  case $MKDIR_P in
19002  [\\/$]* | ?:[\\/]* ) ;;
19003  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19004  esac
19005_ACEOF
19006
19007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19008# If the template does not know about datarootdir, expand it.
19009# FIXME: This hack should be removed a few years after 2.60.
19010ac_datarootdir_hack=; ac_datarootdir_seen=
19011ac_sed_dataroot='
19012/datarootdir/ {
19013  p
19014  q
19015}
19016/@datadir@/p
19017/@docdir@/p
19018/@infodir@/p
19019/@localedir@/p
19020/@mandir@/p'
19021case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19022*datarootdir*) ac_datarootdir_seen=yes;;
19023*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19024  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19025$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19026_ACEOF
19027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19028  ac_datarootdir_hack='
19029  s&@datadir@&$datadir&g
19030  s&@docdir@&$docdir&g
19031  s&@infodir@&$infodir&g
19032  s&@localedir@&$localedir&g
19033  s&@mandir@&$mandir&g
19034  s&\\\${datarootdir}&$datarootdir&g' ;;
19035esac
19036_ACEOF
19037
19038# Neutralize VPATH when `$srcdir' = `.'.
19039# Shell code in configure.ac might set extrasub.
19040# FIXME: do we really want to maintain this feature?
19041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19042ac_sed_extra="$ac_vpsub
19043$extrasub
19044_ACEOF
19045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19046:t
19047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19048s|@configure_input@|$ac_sed_conf_input|;t t
19049s&@top_builddir@&$ac_top_builddir_sub&;t t
19050s&@top_build_prefix@&$ac_top_build_prefix&;t t
19051s&@srcdir@&$ac_srcdir&;t t
19052s&@abs_srcdir@&$ac_abs_srcdir&;t t
19053s&@top_srcdir@&$ac_top_srcdir&;t t
19054s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19055s&@builddir@&$ac_builddir&;t t
19056s&@abs_builddir@&$ac_abs_builddir&;t t
19057s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19058s&@INSTALL@&$ac_INSTALL&;t t
19059s&@MKDIR_P@&$ac_MKDIR_P&;t t
19060$ac_datarootdir_hack
19061"
19062eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19063  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19064
19065test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19066  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19067  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19068      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19069  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19070which seems to be undefined.  Please make sure it is defined" >&5
19071$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19072which seems to be undefined.  Please make sure it is defined" >&2;}
19073
19074  rm -f "$ac_tmp/stdin"
19075  case $ac_file in
19076  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19077  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19078  esac \
19079  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19080 ;;
19081  :H)
19082  #
19083  # CONFIG_HEADER
19084  #
19085  if test x"$ac_file" != x-; then
19086    {
19087      $as_echo "/* $configure_input  */" \
19088      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19089    } >"$ac_tmp/config.h" \
19090      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19091    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19092      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19093$as_echo "$as_me: $ac_file is unchanged" >&6;}
19094    else
19095      rm -f "$ac_file"
19096      mv "$ac_tmp/config.h" "$ac_file" \
19097	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19098    fi
19099  else
19100    $as_echo "/* $configure_input  */" \
19101      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19102      || as_fn_error $? "could not create -" "$LINENO" 5
19103  fi
19104# Compute "$ac_file"'s index in $config_headers.
19105_am_arg="$ac_file"
19106_am_stamp_count=1
19107for _am_header in $config_headers :; do
19108  case $_am_header in
19109    $_am_arg | $_am_arg:* )
19110      break ;;
19111    * )
19112      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19113  esac
19114done
19115echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19116$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19117	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19118	 X"$_am_arg" : 'X\(//\)$' \| \
19119	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19120$as_echo X"$_am_arg" |
19121    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19122	    s//\1/
19123	    q
19124	  }
19125	  /^X\(\/\/\)[^/].*/{
19126	    s//\1/
19127	    q
19128	  }
19129	  /^X\(\/\/\)$/{
19130	    s//\1/
19131	    q
19132	  }
19133	  /^X\(\/\).*/{
19134	    s//\1/
19135	    q
19136	  }
19137	  s/.*/./; q'`/stamp-h$_am_stamp_count
19138 ;;
19139
19140  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19141$as_echo "$as_me: executing $ac_file commands" >&6;}
19142 ;;
19143  esac
19144
19145
19146  case $ac_file$ac_mode in
19147    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19148  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19149  # are listed without --file.  Let's play safe and only enable the eval
19150  # if we detect the quoting.
19151  case $CONFIG_FILES in
19152  *\'*) eval set x "$CONFIG_FILES" ;;
19153  *)   set x $CONFIG_FILES ;;
19154  esac
19155  shift
19156  for mf
19157  do
19158    # Strip MF so we end up with the name of the file.
19159    mf=`echo "$mf" | sed -e 's/:.*$//'`
19160    # Check whether this is an Automake generated Makefile or not.
19161    # We used to match only the files named `Makefile.in', but
19162    # some people rename them; so instead we look at the file content.
19163    # Grep'ing the first line is not enough: some people post-process
19164    # each Makefile.in and add a new line on top of each file to say so.
19165    # Grep'ing the whole file is not good either: AIX grep has a line
19166    # limit of 2048, but all sed's we know have understand at least 4000.
19167    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19168      dirpart=`$as_dirname -- "$mf" ||
19169$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19170	 X"$mf" : 'X\(//\)[^/]' \| \
19171	 X"$mf" : 'X\(//\)$' \| \
19172	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19173$as_echo X"$mf" |
19174    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19175	    s//\1/
19176	    q
19177	  }
19178	  /^X\(\/\/\)[^/].*/{
19179	    s//\1/
19180	    q
19181	  }
19182	  /^X\(\/\/\)$/{
19183	    s//\1/
19184	    q
19185	  }
19186	  /^X\(\/\).*/{
19187	    s//\1/
19188	    q
19189	  }
19190	  s/.*/./; q'`
19191    else
19192      continue
19193    fi
19194    # Extract the definition of DEPDIR, am__include, and am__quote
19195    # from the Makefile without running `make'.
19196    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19197    test -z "$DEPDIR" && continue
19198    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19199    test -z "am__include" && continue
19200    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19201    # When using ansi2knr, U may be empty or an underscore; expand it
19202    U=`sed -n 's/^U = //p' < "$mf"`
19203    # Find all dependency output files, they are included files with
19204    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19205    # simplest approach to changing $(DEPDIR) to its actual value in the
19206    # expansion.
19207    for file in `sed -n "
19208      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19209	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19210      # Make sure the directory exists.
19211      test -f "$dirpart/$file" && continue
19212      fdir=`$as_dirname -- "$file" ||
19213$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19214	 X"$file" : 'X\(//\)[^/]' \| \
19215	 X"$file" : 'X\(//\)$' \| \
19216	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19217$as_echo X"$file" |
19218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19219	    s//\1/
19220	    q
19221	  }
19222	  /^X\(\/\/\)[^/].*/{
19223	    s//\1/
19224	    q
19225	  }
19226	  /^X\(\/\/\)$/{
19227	    s//\1/
19228	    q
19229	  }
19230	  /^X\(\/\).*/{
19231	    s//\1/
19232	    q
19233	  }
19234	  s/.*/./; q'`
19235      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19236      # echo "creating $dirpart/$file"
19237      echo '# dummy' > "$dirpart/$file"
19238    done
19239  done
19240}
19241 ;;
19242    "libtool":C)
19243
19244    # See if we are running on zsh, and set the options which allow our
19245    # commands through without removal of \ escapes.
19246    if test -n "${ZSH_VERSION+set}" ; then
19247      setopt NO_GLOB_SUBST
19248    fi
19249
19250    cfgfile="${ofile}T"
19251    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19252    $RM "$cfgfile"
19253
19254    cat <<_LT_EOF >> "$cfgfile"
19255#! $SHELL
19256
19257# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19258# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19259# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19260# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19261#
19262#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19263#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19264#                 Inc.
19265#   Written by Gordon Matzigkeit, 1996
19266#
19267#   This file is part of GNU Libtool.
19268#
19269# GNU Libtool is free software; you can redistribute it and/or
19270# modify it under the terms of the GNU General Public License as
19271# published by the Free Software Foundation; either version 2 of
19272# the License, or (at your option) any later version.
19273#
19274# As a special exception to the GNU General Public License,
19275# if you distribute this file as part of a program or library that
19276# is built using GNU Libtool, you may include this file under the
19277# same distribution terms that you use for the rest of that program.
19278#
19279# GNU Libtool is distributed in the hope that it will be useful,
19280# but WITHOUT ANY WARRANTY; without even the implied warranty of
19281# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19282# GNU General Public License for more details.
19283#
19284# You should have received a copy of the GNU General Public License
19285# along with GNU Libtool; see the file COPYING.  If not, a copy
19286# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19287# obtained by writing to the Free Software Foundation, Inc.,
19288# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19289
19290
19291# The names of the tagged configurations supported by this script.
19292available_tags=""
19293
19294# ### BEGIN LIBTOOL CONFIG
19295
19296# Which release of libtool.m4 was used?
19297macro_version=$macro_version
19298macro_revision=$macro_revision
19299
19300# Whether or not to build shared libraries.
19301build_libtool_libs=$enable_shared
19302
19303# Whether or not to build static libraries.
19304build_old_libs=$enable_static
19305
19306# What type of objects to build.
19307pic_mode=$pic_mode
19308
19309# Whether or not to optimize for fast installation.
19310fast_install=$enable_fast_install
19311
19312# Shell to use when invoking shell scripts.
19313SHELL=$lt_SHELL
19314
19315# An echo program that protects backslashes.
19316ECHO=$lt_ECHO
19317
19318# The host system.
19319host_alias=$host_alias
19320host=$host
19321host_os=$host_os
19322
19323# The build system.
19324build_alias=$build_alias
19325build=$build
19326build_os=$build_os
19327
19328# A sed program that does not truncate output.
19329SED=$lt_SED
19330
19331# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19332Xsed="\$SED -e 1s/^X//"
19333
19334# A grep program that handles long lines.
19335GREP=$lt_GREP
19336
19337# An ERE matcher.
19338EGREP=$lt_EGREP
19339
19340# A literal string matcher.
19341FGREP=$lt_FGREP
19342
19343# A BSD- or MS-compatible name lister.
19344NM=$lt_NM
19345
19346# Whether we need soft or hard links.
19347LN_S=$lt_LN_S
19348
19349# What is the maximum length of a command?
19350max_cmd_len=$max_cmd_len
19351
19352# Object file suffix (normally "o").
19353objext=$ac_objext
19354
19355# Executable file suffix (normally "").
19356exeext=$exeext
19357
19358# whether the shell understands "unset".
19359lt_unset=$lt_unset
19360
19361# turn spaces into newlines.
19362SP2NL=$lt_lt_SP2NL
19363
19364# turn newlines into spaces.
19365NL2SP=$lt_lt_NL2SP
19366
19367# convert \$build file names to \$host format.
19368to_host_file_cmd=$lt_cv_to_host_file_cmd
19369
19370# convert \$build files to toolchain format.
19371to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19372
19373# An object symbol dumper.
19374OBJDUMP=$lt_OBJDUMP
19375
19376# Method to check whether dependent libraries are shared objects.
19377deplibs_check_method=$lt_deplibs_check_method
19378
19379# Command to use when deplibs_check_method = "file_magic".
19380file_magic_cmd=$lt_file_magic_cmd
19381
19382# How to find potential files when deplibs_check_method = "file_magic".
19383file_magic_glob=$lt_file_magic_glob
19384
19385# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19386want_nocaseglob=$lt_want_nocaseglob
19387
19388# DLL creation program.
19389DLLTOOL=$lt_DLLTOOL
19390
19391# Command to associate shared and link libraries.
19392sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19393
19394# The archiver.
19395AR=$lt_AR
19396
19397# Flags to create an archive.
19398AR_FLAGS=$lt_AR_FLAGS
19399
19400# How to feed a file listing to the archiver.
19401archiver_list_spec=$lt_archiver_list_spec
19402
19403# A symbol stripping program.
19404STRIP=$lt_STRIP
19405
19406# Commands used to install an old-style archive.
19407RANLIB=$lt_RANLIB
19408old_postinstall_cmds=$lt_old_postinstall_cmds
19409old_postuninstall_cmds=$lt_old_postuninstall_cmds
19410
19411# Whether to use a lock for old archive extraction.
19412lock_old_archive_extraction=$lock_old_archive_extraction
19413
19414# A C compiler.
19415LTCC=$lt_CC
19416
19417# LTCC compiler flags.
19418LTCFLAGS=$lt_CFLAGS
19419
19420# Take the output of nm and produce a listing of raw symbols and C names.
19421global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19422
19423# Transform the output of nm in a proper C declaration.
19424global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19425
19426# Transform the output of nm in a C name address pair.
19427global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19428
19429# Transform the output of nm in a C name address pair when lib prefix is needed.
19430global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19431
19432# Specify filename containing input files for \$NM.
19433nm_file_list_spec=$lt_nm_file_list_spec
19434
19435# The root where to search for dependent libraries,and in which our libraries should be installed.
19436lt_sysroot=$lt_sysroot
19437
19438# The name of the directory that contains temporary libtool files.
19439objdir=$objdir
19440
19441# Used to examine libraries when file_magic_cmd begins with "file".
19442MAGIC_CMD=$MAGIC_CMD
19443
19444# Must we lock files when doing compilation?
19445need_locks=$lt_need_locks
19446
19447# Manifest tool.
19448MANIFEST_TOOL=$lt_MANIFEST_TOOL
19449
19450# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19451DSYMUTIL=$lt_DSYMUTIL
19452
19453# Tool to change global to local symbols on Mac OS X.
19454NMEDIT=$lt_NMEDIT
19455
19456# Tool to manipulate fat objects and archives on Mac OS X.
19457LIPO=$lt_LIPO
19458
19459# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19460OTOOL=$lt_OTOOL
19461
19462# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19463OTOOL64=$lt_OTOOL64
19464
19465# Old archive suffix (normally "a").
19466libext=$libext
19467
19468# Shared library suffix (normally ".so").
19469shrext_cmds=$lt_shrext_cmds
19470
19471# The commands to extract the exported symbol list from a shared archive.
19472extract_expsyms_cmds=$lt_extract_expsyms_cmds
19473
19474# Variables whose values should be saved in libtool wrapper scripts and
19475# restored at link time.
19476variables_saved_for_relink=$lt_variables_saved_for_relink
19477
19478# Do we need the "lib" prefix for modules?
19479need_lib_prefix=$need_lib_prefix
19480
19481# Do we need a version for libraries?
19482need_version=$need_version
19483
19484# Library versioning type.
19485version_type=$version_type
19486
19487# Shared library runtime path variable.
19488runpath_var=$runpath_var
19489
19490# Shared library path variable.
19491shlibpath_var=$shlibpath_var
19492
19493# Is shlibpath searched before the hard-coded library search path?
19494shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19495
19496# Format of library name prefix.
19497libname_spec=$lt_libname_spec
19498
19499# List of archive names.  First name is the real one, the rest are links.
19500# The last name is the one that the linker finds with -lNAME
19501library_names_spec=$lt_library_names_spec
19502
19503# The coded name of the library, if different from the real name.
19504soname_spec=$lt_soname_spec
19505
19506# Permission mode override for installation of shared libraries.
19507install_override_mode=$lt_install_override_mode
19508
19509# Command to use after installation of a shared archive.
19510postinstall_cmds=$lt_postinstall_cmds
19511
19512# Command to use after uninstallation of a shared archive.
19513postuninstall_cmds=$lt_postuninstall_cmds
19514
19515# Commands used to finish a libtool library installation in a directory.
19516finish_cmds=$lt_finish_cmds
19517
19518# As "finish_cmds", except a single script fragment to be evaled but
19519# not shown.
19520finish_eval=$lt_finish_eval
19521
19522# Whether we should hardcode library paths into libraries.
19523hardcode_into_libs=$hardcode_into_libs
19524
19525# Compile-time system search path for libraries.
19526sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19527
19528# Run-time system search path for libraries.
19529sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19530
19531# Whether dlopen is supported.
19532dlopen_support=$enable_dlopen
19533
19534# Whether dlopen of programs is supported.
19535dlopen_self=$enable_dlopen_self
19536
19537# Whether dlopen of statically linked programs is supported.
19538dlopen_self_static=$enable_dlopen_self_static
19539
19540# Commands to strip libraries.
19541old_striplib=$lt_old_striplib
19542striplib=$lt_striplib
19543
19544
19545# The linker used to build libraries.
19546LD=$lt_LD
19547
19548# How to create reloadable object files.
19549reload_flag=$lt_reload_flag
19550reload_cmds=$lt_reload_cmds
19551
19552# Commands used to build an old-style archive.
19553old_archive_cmds=$lt_old_archive_cmds
19554
19555# A language specific compiler.
19556CC=$lt_compiler
19557
19558# Is the compiler the GNU compiler?
19559with_gcc=$GCC
19560
19561# Compiler flag to turn off builtin functions.
19562no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19563
19564# Additional compiler flags for building library objects.
19565pic_flag=$lt_lt_prog_compiler_pic
19566
19567# How to pass a linker flag through the compiler.
19568wl=$lt_lt_prog_compiler_wl
19569
19570# Compiler flag to prevent dynamic linking.
19571link_static_flag=$lt_lt_prog_compiler_static
19572
19573# Does compiler simultaneously support -c and -o options?
19574compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19575
19576# Whether or not to add -lc for building shared libraries.
19577build_libtool_need_lc=$archive_cmds_need_lc
19578
19579# Whether or not to disallow shared libs when runtime libs are static.
19580allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19581
19582# Compiler flag to allow reflexive dlopens.
19583export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19584
19585# Compiler flag to generate shared objects directly from archives.
19586whole_archive_flag_spec=$lt_whole_archive_flag_spec
19587
19588# Whether the compiler copes with passing no objects directly.
19589compiler_needs_object=$lt_compiler_needs_object
19590
19591# Create an old-style archive from a shared archive.
19592old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19593
19594# Create a temporary old-style archive to link instead of a shared archive.
19595old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19596
19597# Commands used to build a shared archive.
19598archive_cmds=$lt_archive_cmds
19599archive_expsym_cmds=$lt_archive_expsym_cmds
19600
19601# Commands used to build a loadable module if different from building
19602# a shared archive.
19603module_cmds=$lt_module_cmds
19604module_expsym_cmds=$lt_module_expsym_cmds
19605
19606# Whether we are building with GNU ld or not.
19607with_gnu_ld=$lt_with_gnu_ld
19608
19609# Flag that allows shared libraries with undefined symbols to be built.
19610allow_undefined_flag=$lt_allow_undefined_flag
19611
19612# Flag that enforces no undefined symbols.
19613no_undefined_flag=$lt_no_undefined_flag
19614
19615# Flag to hardcode \$libdir into a binary during linking.
19616# This must work even if \$libdir does not exist
19617hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19618
19619# If ld is used when linking, flag to hardcode \$libdir into a binary
19620# during linking.  This must work even if \$libdir does not exist.
19621hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19622
19623# Whether we need a single "-rpath" flag with a separated argument.
19624hardcode_libdir_separator=$lt_hardcode_libdir_separator
19625
19626# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19627# DIR into the resulting binary.
19628hardcode_direct=$hardcode_direct
19629
19630# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19631# DIR into the resulting binary and the resulting library dependency is
19632# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19633# library is relocated.
19634hardcode_direct_absolute=$hardcode_direct_absolute
19635
19636# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19637# into the resulting binary.
19638hardcode_minus_L=$hardcode_minus_L
19639
19640# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19641# into the resulting binary.
19642hardcode_shlibpath_var=$hardcode_shlibpath_var
19643
19644# Set to "yes" if building a shared library automatically hardcodes DIR
19645# into the library and all subsequent libraries and executables linked
19646# against it.
19647hardcode_automatic=$hardcode_automatic
19648
19649# Set to yes if linker adds runtime paths of dependent libraries
19650# to runtime path list.
19651inherit_rpath=$inherit_rpath
19652
19653# Whether libtool must link a program against all its dependency libraries.
19654link_all_deplibs=$link_all_deplibs
19655
19656# Set to "yes" if exported symbols are required.
19657always_export_symbols=$always_export_symbols
19658
19659# The commands to list exported symbols.
19660export_symbols_cmds=$lt_export_symbols_cmds
19661
19662# Symbols that should not be listed in the preloaded symbols.
19663exclude_expsyms=$lt_exclude_expsyms
19664
19665# Symbols that must always be exported.
19666include_expsyms=$lt_include_expsyms
19667
19668# Commands necessary for linking programs (against libraries) with templates.
19669prelink_cmds=$lt_prelink_cmds
19670
19671# Commands necessary for finishing linking programs.
19672postlink_cmds=$lt_postlink_cmds
19673
19674# Specify filename containing input files.
19675file_list_spec=$lt_file_list_spec
19676
19677# How to hardcode a shared library path into an executable.
19678hardcode_action=$hardcode_action
19679
19680# ### END LIBTOOL CONFIG
19681
19682_LT_EOF
19683
19684  case $host_os in
19685  aix3*)
19686    cat <<\_LT_EOF >> "$cfgfile"
19687# AIX sometimes has problems with the GCC collect2 program.  For some
19688# reason, if we set the COLLECT_NAMES environment variable, the problems
19689# vanish in a puff of smoke.
19690if test "X${COLLECT_NAMES+set}" != Xset; then
19691  COLLECT_NAMES=
19692  export COLLECT_NAMES
19693fi
19694_LT_EOF
19695    ;;
19696  esac
19697
19698
19699ltmain="$ac_aux_dir/ltmain.sh"
19700
19701
19702  # We use sed instead of cat because bash on DJGPP gets confused if
19703  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19704  # text mode, it properly converts lines to CR/LF.  This bash problem
19705  # is reportedly fixed, but why not run on old versions too?
19706  sed '$q' "$ltmain" >> "$cfgfile" \
19707     || (rm -f "$cfgfile"; exit 1)
19708
19709  if test x"$xsi_shell" = xyes; then
19710  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19711func_dirname ()\
19712{\
19713\    case ${1} in\
19714\      */*) func_dirname_result="${1%/*}${2}" ;;\
19715\      *  ) func_dirname_result="${3}" ;;\
19716\    esac\
19717} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19718  && mv -f "$cfgfile.tmp" "$cfgfile" \
19719    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19720test 0 -eq $? || _lt_function_replace_fail=:
19721
19722
19723  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19724func_basename ()\
19725{\
19726\    func_basename_result="${1##*/}"\
19727} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19728  && mv -f "$cfgfile.tmp" "$cfgfile" \
19729    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19730test 0 -eq $? || _lt_function_replace_fail=:
19731
19732
19733  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19734func_dirname_and_basename ()\
19735{\
19736\    case ${1} in\
19737\      */*) func_dirname_result="${1%/*}${2}" ;;\
19738\      *  ) func_dirname_result="${3}" ;;\
19739\    esac\
19740\    func_basename_result="${1##*/}"\
19741} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19742  && mv -f "$cfgfile.tmp" "$cfgfile" \
19743    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19744test 0 -eq $? || _lt_function_replace_fail=:
19745
19746
19747  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19748func_stripname ()\
19749{\
19750\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19751\    # positional parameters, so assign one to ordinary parameter first.\
19752\    func_stripname_result=${3}\
19753\    func_stripname_result=${func_stripname_result#"${1}"}\
19754\    func_stripname_result=${func_stripname_result%"${2}"}\
19755} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19756  && mv -f "$cfgfile.tmp" "$cfgfile" \
19757    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19758test 0 -eq $? || _lt_function_replace_fail=:
19759
19760
19761  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19762func_split_long_opt ()\
19763{\
19764\    func_split_long_opt_name=${1%%=*}\
19765\    func_split_long_opt_arg=${1#*=}\
19766} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19767  && mv -f "$cfgfile.tmp" "$cfgfile" \
19768    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19769test 0 -eq $? || _lt_function_replace_fail=:
19770
19771
19772  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19773func_split_short_opt ()\
19774{\
19775\    func_split_short_opt_arg=${1#??}\
19776\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19777} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19778  && mv -f "$cfgfile.tmp" "$cfgfile" \
19779    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19780test 0 -eq $? || _lt_function_replace_fail=:
19781
19782
19783  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19784func_lo2o ()\
19785{\
19786\    case ${1} in\
19787\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19788\      *)    func_lo2o_result=${1} ;;\
19789\    esac\
19790} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19791  && mv -f "$cfgfile.tmp" "$cfgfile" \
19792    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19793test 0 -eq $? || _lt_function_replace_fail=:
19794
19795
19796  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19797func_xform ()\
19798{\
19799    func_xform_result=${1%.*}.lo\
19800} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19801  && mv -f "$cfgfile.tmp" "$cfgfile" \
19802    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19803test 0 -eq $? || _lt_function_replace_fail=:
19804
19805
19806  sed -e '/^func_arith ()$/,/^} # func_arith /c\
19807func_arith ()\
19808{\
19809    func_arith_result=$(( $* ))\
19810} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19811  && mv -f "$cfgfile.tmp" "$cfgfile" \
19812    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19813test 0 -eq $? || _lt_function_replace_fail=:
19814
19815
19816  sed -e '/^func_len ()$/,/^} # func_len /c\
19817func_len ()\
19818{\
19819    func_len_result=${#1}\
19820} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19821  && mv -f "$cfgfile.tmp" "$cfgfile" \
19822    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19823test 0 -eq $? || _lt_function_replace_fail=:
19824
19825fi
19826
19827if test x"$lt_shell_append" = xyes; then
19828  sed -e '/^func_append ()$/,/^} # func_append /c\
19829func_append ()\
19830{\
19831    eval "${1}+=\\${2}"\
19832} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19833  && mv -f "$cfgfile.tmp" "$cfgfile" \
19834    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19835test 0 -eq $? || _lt_function_replace_fail=:
19836
19837
19838  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19839func_append_quoted ()\
19840{\
19841\    func_quote_for_eval "${2}"\
19842\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19843} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19844  && mv -f "$cfgfile.tmp" "$cfgfile" \
19845    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19846test 0 -eq $? || _lt_function_replace_fail=:
19847
19848
19849  # Save a `func_append' function call where possible by direct use of '+='
19850  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19851    && mv -f "$cfgfile.tmp" "$cfgfile" \
19852      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19853  test 0 -eq $? || _lt_function_replace_fail=:
19854else
19855  # Save a `func_append' function call even when '+=' is not available
19856  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19857    && mv -f "$cfgfile.tmp" "$cfgfile" \
19858      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19859  test 0 -eq $? || _lt_function_replace_fail=:
19860fi
19861
19862if test x"$_lt_function_replace_fail" = x":"; then
19863  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19864$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19865fi
19866
19867
19868   mv -f "$cfgfile" "$ofile" ||
19869    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19870  chmod +x "$ofile"
19871
19872 ;;
19873
19874  esac
19875done # for ac_tag
19876
19877
19878as_fn_exit 0
19879_ACEOF
19880ac_clean_files=$ac_clean_files_save
19881
19882test $ac_write_fail = 0 ||
19883  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19884
19885
19886# configure is writing to config.log, and then calls config.status.
19887# config.status does its own redirection, appending to config.log.
19888# Unfortunately, on DOS this fails, as config.log is still kept open
19889# by configure, so config.status won't be able to write to it; its
19890# output is simply discarded.  So we exec the FD to /dev/null,
19891# effectively closing config.log, so it can be properly (re)opened and
19892# appended to by config.status.  When coming back to configure, we
19893# need to make the FD available again.
19894if test "$no_create" != yes; then
19895  ac_cs_success=:
19896  ac_config_status_args=
19897  test "$silent" = yes &&
19898    ac_config_status_args="$ac_config_status_args --quiet"
19899  exec 5>/dev/null
19900  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19901  exec 5>>config.log
19902  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19903  # would make configure fail if this is the last instruction.
19904  $ac_cs_success || as_fn_exit 1
19905fi
19906if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19907  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19908$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19909fi
19910
19911