configure revision 2836776b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libXrandr 1.4.0.
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='libXrandr'
573PACKAGE_TARNAME='libXrandr'
574PACKAGE_VERSION='1.4.0'
575PACKAGE_STRING='libXrandr 1.4.0'
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
620RANDR_LIBS
621RANDR_CFLAGS
622RANDR_VERSION
623XTMALLOC_ZERO_CFLAGS
624XMALLOC_ZERO_CFLAGS
625MALLOC_ZERO_CFLAGS
626AM_BACKSLASH
627AM_DEFAULT_VERBOSITY
628AM_DEFAULT_V
629AM_V
630MAN_SUBSTS
631XORG_MAN_PAGE
632ADMIN_MAN_DIR
633DRIVER_MAN_DIR
634MISC_MAN_DIR
635FILE_MAN_DIR
636LIB_MAN_DIR
637APP_MAN_DIR
638ADMIN_MAN_SUFFIX
639DRIVER_MAN_SUFFIX
640MISC_MAN_SUFFIX
641FILE_MAN_SUFFIX
642LIB_MAN_SUFFIX
643APP_MAN_SUFFIX
644INSTALL_CMD
645PKG_CONFIG_LIBDIR
646PKG_CONFIG_PATH
647PKG_CONFIG
648CHANGELOG_CMD
649STRICT_CFLAGS
650CWARNFLAGS
651BASE_CFLAGS
652CPP
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
658MANIFEST_TOOL
659RANLIB
660ac_ct_AR
661AR
662DLLTOOL
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670EGREP
671GREP
672SED
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690host_os
691host_vendor
692host_cpu
693host
694build_os
695build_vendor
696build_cpu
697build
698LIBTOOL
699MAINT
700MAINTAINER_MODE_FALSE
701MAINTAINER_MODE_TRUE
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_maintainer_mode
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771enable_dependency_tracking
772with_gnu_ld
773with_sysroot
774enable_libtool_lock
775enable_selective_werror
776enable_strict_compilation
777enable_silent_rules
778enable_malloc0returnsnull
779'
780      ac_precious_vars='build_alias
781host_alias
782target_alias
783CC
784CFLAGS
785LDFLAGS
786LIBS
787CPPFLAGS
788CPP
789PKG_CONFIG
790PKG_CONFIG_PATH
791PKG_CONFIG_LIBDIR
792RANDR_CFLAGS
793RANDR_LIBS'
794
795
796# Initialize some variables set by options.
797ac_init_help=
798ac_init_version=false
799ac_unrecognized_opts=
800ac_unrecognized_sep=
801# The variables have the same names as the options, with
802# dashes changed to underlines.
803cache_file=/dev/null
804exec_prefix=NONE
805no_create=
806no_recursion=
807prefix=NONE
808program_prefix=NONE
809program_suffix=NONE
810program_transform_name=s,x,x,
811silent=
812site=
813srcdir=
814verbose=
815x_includes=NONE
816x_libraries=NONE
817
818# Installation directory options.
819# These are left unexpanded so users can "make install exec_prefix=/foo"
820# and all the variables that are supposed to be based on exec_prefix
821# by default will actually change.
822# Use braces instead of parens because sh, perl, etc. also accept them.
823# (The list follows the same order as the GNU Coding Standards.)
824bindir='${exec_prefix}/bin'
825sbindir='${exec_prefix}/sbin'
826libexecdir='${exec_prefix}/libexec'
827datarootdir='${prefix}/share'
828datadir='${datarootdir}'
829sysconfdir='${prefix}/etc'
830sharedstatedir='${prefix}/com'
831localstatedir='${prefix}/var'
832includedir='${prefix}/include'
833oldincludedir='/usr/include'
834docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835infodir='${datarootdir}/info'
836htmldir='${docdir}'
837dvidir='${docdir}'
838pdfdir='${docdir}'
839psdir='${docdir}'
840libdir='${exec_prefix}/lib'
841localedir='${datarootdir}/locale'
842mandir='${datarootdir}/man'
843
844ac_prev=
845ac_dashdash=
846for ac_option
847do
848  # If the previous option needs an argument, assign it.
849  if test -n "$ac_prev"; then
850    eval $ac_prev=\$ac_option
851    ac_prev=
852    continue
853  fi
854
855  case $ac_option in
856  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857  *=)   ac_optarg= ;;
858  *)    ac_optarg=yes ;;
859  esac
860
861  # Accept the important Cygnus configure options, so we can diagnose typos.
862
863  case $ac_dashdash$ac_option in
864  --)
865    ac_dashdash=yes ;;
866
867  -bindir | --bindir | --bindi | --bind | --bin | --bi)
868    ac_prev=bindir ;;
869  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870    bindir=$ac_optarg ;;
871
872  -build | --build | --buil | --bui | --bu)
873    ac_prev=build_alias ;;
874  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875    build_alias=$ac_optarg ;;
876
877  -cache-file | --cache-file | --cache-fil | --cache-fi \
878  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879    ac_prev=cache_file ;;
880  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882    cache_file=$ac_optarg ;;
883
884  --config-cache | -C)
885    cache_file=config.cache ;;
886
887  -datadir | --datadir | --datadi | --datad)
888    ac_prev=datadir ;;
889  -datadir=* | --datadir=* | --datadi=* | --datad=*)
890    datadir=$ac_optarg ;;
891
892  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893  | --dataroo | --dataro | --datar)
894    ac_prev=datarootdir ;;
895  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897    datarootdir=$ac_optarg ;;
898
899  -disable-* | --disable-*)
900    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901    # Reject names that are not valid shell variable names.
902    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903      as_fn_error $? "invalid feature name: $ac_useropt"
904    ac_useropt_orig=$ac_useropt
905    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906    case $ac_user_opts in
907      *"
908"enable_$ac_useropt"
909"*) ;;
910      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911	 ac_unrecognized_sep=', ';;
912    esac
913    eval enable_$ac_useropt=no ;;
914
915  -docdir | --docdir | --docdi | --doc | --do)
916    ac_prev=docdir ;;
917  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918    docdir=$ac_optarg ;;
919
920  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921    ac_prev=dvidir ;;
922  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923    dvidir=$ac_optarg ;;
924
925  -enable-* | --enable-*)
926    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927    # Reject names that are not valid shell variable names.
928    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929      as_fn_error $? "invalid feature name: $ac_useropt"
930    ac_useropt_orig=$ac_useropt
931    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932    case $ac_user_opts in
933      *"
934"enable_$ac_useropt"
935"*) ;;
936      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937	 ac_unrecognized_sep=', ';;
938    esac
939    eval enable_$ac_useropt=\$ac_optarg ;;
940
941  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943  | --exec | --exe | --ex)
944    ac_prev=exec_prefix ;;
945  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947  | --exec=* | --exe=* | --ex=*)
948    exec_prefix=$ac_optarg ;;
949
950  -gas | --gas | --ga | --g)
951    # Obsolete; use --with-gas.
952    with_gas=yes ;;
953
954  -help | --help | --hel | --he | -h)
955    ac_init_help=long ;;
956  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957    ac_init_help=recursive ;;
958  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959    ac_init_help=short ;;
960
961  -host | --host | --hos | --ho)
962    ac_prev=host_alias ;;
963  -host=* | --host=* | --hos=* | --ho=*)
964    host_alias=$ac_optarg ;;
965
966  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967    ac_prev=htmldir ;;
968  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969  | --ht=*)
970    htmldir=$ac_optarg ;;
971
972  -includedir | --includedir | --includedi | --included | --include \
973  | --includ | --inclu | --incl | --inc)
974    ac_prev=includedir ;;
975  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976  | --includ=* | --inclu=* | --incl=* | --inc=*)
977    includedir=$ac_optarg ;;
978
979  -infodir | --infodir | --infodi | --infod | --info | --inf)
980    ac_prev=infodir ;;
981  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982    infodir=$ac_optarg ;;
983
984  -libdir | --libdir | --libdi | --libd)
985    ac_prev=libdir ;;
986  -libdir=* | --libdir=* | --libdi=* | --libd=*)
987    libdir=$ac_optarg ;;
988
989  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990  | --libexe | --libex | --libe)
991    ac_prev=libexecdir ;;
992  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993  | --libexe=* | --libex=* | --libe=*)
994    libexecdir=$ac_optarg ;;
995
996  -localedir | --localedir | --localedi | --localed | --locale)
997    ac_prev=localedir ;;
998  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999    localedir=$ac_optarg ;;
1000
1001  -localstatedir | --localstatedir | --localstatedi | --localstated \
1002  | --localstate | --localstat | --localsta | --localst | --locals)
1003    ac_prev=localstatedir ;;
1004  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006    localstatedir=$ac_optarg ;;
1007
1008  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009    ac_prev=mandir ;;
1010  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011    mandir=$ac_optarg ;;
1012
1013  -nfp | --nfp | --nf)
1014    # Obsolete; use --without-fp.
1015    with_fp=no ;;
1016
1017  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018  | --no-cr | --no-c | -n)
1019    no_create=yes ;;
1020
1021  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023    no_recursion=yes ;;
1024
1025  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027  | --oldin | --oldi | --old | --ol | --o)
1028    ac_prev=oldincludedir ;;
1029  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032    oldincludedir=$ac_optarg ;;
1033
1034  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035    ac_prev=prefix ;;
1036  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037    prefix=$ac_optarg ;;
1038
1039  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040  | --program-pre | --program-pr | --program-p)
1041    ac_prev=program_prefix ;;
1042  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044    program_prefix=$ac_optarg ;;
1045
1046  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047  | --program-suf | --program-su | --program-s)
1048    ac_prev=program_suffix ;;
1049  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051    program_suffix=$ac_optarg ;;
1052
1053  -program-transform-name | --program-transform-name \
1054  | --program-transform-nam | --program-transform-na \
1055  | --program-transform-n | --program-transform- \
1056  | --program-transform | --program-transfor \
1057  | --program-transfo | --program-transf \
1058  | --program-trans | --program-tran \
1059  | --progr-tra | --program-tr | --program-t)
1060    ac_prev=program_transform_name ;;
1061  -program-transform-name=* | --program-transform-name=* \
1062  | --program-transform-nam=* | --program-transform-na=* \
1063  | --program-transform-n=* | --program-transform-=* \
1064  | --program-transform=* | --program-transfor=* \
1065  | --program-transfo=* | --program-transf=* \
1066  | --program-trans=* | --program-tran=* \
1067  | --progr-tra=* | --program-tr=* | --program-t=*)
1068    program_transform_name=$ac_optarg ;;
1069
1070  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071    ac_prev=pdfdir ;;
1072  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073    pdfdir=$ac_optarg ;;
1074
1075  -psdir | --psdir | --psdi | --psd | --ps)
1076    ac_prev=psdir ;;
1077  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078    psdir=$ac_optarg ;;
1079
1080  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081  | -silent | --silent | --silen | --sile | --sil)
1082    silent=yes ;;
1083
1084  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085    ac_prev=sbindir ;;
1086  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087  | --sbi=* | --sb=*)
1088    sbindir=$ac_optarg ;;
1089
1090  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092  | --sharedst | --shareds | --shared | --share | --shar \
1093  | --sha | --sh)
1094    ac_prev=sharedstatedir ;;
1095  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098  | --sha=* | --sh=*)
1099    sharedstatedir=$ac_optarg ;;
1100
1101  -site | --site | --sit)
1102    ac_prev=site ;;
1103  -site=* | --site=* | --sit=*)
1104    site=$ac_optarg ;;
1105
1106  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107    ac_prev=srcdir ;;
1108  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109    srcdir=$ac_optarg ;;
1110
1111  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112  | --syscon | --sysco | --sysc | --sys | --sy)
1113    ac_prev=sysconfdir ;;
1114  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116    sysconfdir=$ac_optarg ;;
1117
1118  -target | --target | --targe | --targ | --tar | --ta | --t)
1119    ac_prev=target_alias ;;
1120  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121    target_alias=$ac_optarg ;;
1122
1123  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124    verbose=yes ;;
1125
1126  -version | --version | --versio | --versi | --vers | -V)
1127    ac_init_version=: ;;
1128
1129  -with-* | --with-*)
1130    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131    # Reject names that are not valid shell variable names.
1132    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133      as_fn_error $? "invalid package name: $ac_useropt"
1134    ac_useropt_orig=$ac_useropt
1135    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136    case $ac_user_opts in
1137      *"
1138"with_$ac_useropt"
1139"*) ;;
1140      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141	 ac_unrecognized_sep=', ';;
1142    esac
1143    eval with_$ac_useropt=\$ac_optarg ;;
1144
1145  -without-* | --without-*)
1146    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149      as_fn_error $? "invalid package name: $ac_useropt"
1150    ac_useropt_orig=$ac_useropt
1151    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152    case $ac_user_opts in
1153      *"
1154"with_$ac_useropt"
1155"*) ;;
1156      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157	 ac_unrecognized_sep=', ';;
1158    esac
1159    eval with_$ac_useropt=no ;;
1160
1161  --x)
1162    # Obsolete; use --with-x.
1163    with_x=yes ;;
1164
1165  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166  | --x-incl | --x-inc | --x-in | --x-i)
1167    ac_prev=x_includes ;;
1168  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170    x_includes=$ac_optarg ;;
1171
1172  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174    ac_prev=x_libraries ;;
1175  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177    x_libraries=$ac_optarg ;;
1178
1179  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180Try \`$0 --help' for more information"
1181    ;;
1182
1183  *=*)
1184    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185    # Reject names that are not valid shell variable names.
1186    case $ac_envvar in #(
1187      '' | [0-9]* | *[!_$as_cr_alnum]* )
1188      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189    esac
1190    eval $ac_envvar=\$ac_optarg
1191    export $ac_envvar ;;
1192
1193  *)
1194    # FIXME: should be removed in autoconf 3.0.
1195    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199    ;;
1200
1201  esac
1202done
1203
1204if test -n "$ac_prev"; then
1205  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206  as_fn_error $? "missing argument to $ac_option"
1207fi
1208
1209if test -n "$ac_unrecognized_opts"; then
1210  case $enable_option_checking in
1211    no) ;;
1212    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214  esac
1215fi
1216
1217# Check all directory arguments for consistency.
1218for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219		datadir sysconfdir sharedstatedir localstatedir includedir \
1220		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221		libdir localedir mandir
1222do
1223  eval ac_val=\$$ac_var
1224  # Remove trailing slashes.
1225  case $ac_val in
1226    */ )
1227      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228      eval $ac_var=\$ac_val;;
1229  esac
1230  # Be sure to have absolute directory names.
1231  case $ac_val in
1232    [\\/$]* | ?:[\\/]* )  continue;;
1233    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234  esac
1235  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236done
1237
1238# There might be people who depend on the old broken behavior: `$host'
1239# used to hold the argument of --host etc.
1240# FIXME: To remove some day.
1241build=$build_alias
1242host=$host_alias
1243target=$target_alias
1244
1245# FIXME: To remove some day.
1246if test "x$host_alias" != x; then
1247  if test "x$build_alias" = x; then
1248    cross_compiling=maybe
1249    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1250    If a cross compiler is detected then cross compile mode will be used" >&2
1251  elif test "x$build_alias" != "x$host_alias"; then
1252    cross_compiling=yes
1253  fi
1254fi
1255
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
1260
1261
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265  as_fn_error $? "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267  as_fn_error $? "pwd does not report name of working directory"
1268
1269
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272  ac_srcdir_defaulted=yes
1273  # Try the directory containing this script, then the parent directory.
1274  ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276	 X"$as_myself" : 'X\(//\)[^/]' \| \
1277	 X"$as_myself" : 'X\(//\)$' \| \
1278	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)[^/].*/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)$/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\).*/{
1293	    s//\1/
1294	    q
1295	  }
1296	  s/.*/./; q'`
1297  srcdir=$ac_confdir
1298  if test ! -r "$srcdir/$ac_unique_file"; then
1299    srcdir=..
1300  fi
1301else
1302  ac_srcdir_defaulted=no
1303fi
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311	pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314  srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_env_${ac_var}_value=\$${ac_var}
1325  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
1328
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333  # Omit some internal or obsolete options to make the list less imposing.
1334  # This message is too long to be a string in the A/UX 3.1 sh.
1335  cat <<_ACEOF
1336\`configure' configures libXrandr 1.4.0 to adapt to many kinds of systems.
1337
1338Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343Defaults for the options are specified in brackets.
1344
1345Configuration:
1346  -h, --help              display this help and exit
1347      --help=short        display options specific to this package
1348      --help=recursive    display the short help of all the included packages
1349  -V, --version           display version information and exit
1350  -q, --quiet, --silent   do not print \`checking ...' messages
1351      --cache-file=FILE   cache test results in FILE [disabled]
1352  -C, --config-cache      alias for \`--cache-file=config.cache'
1353  -n, --no-create         do not create output files
1354      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356Installation directories:
1357  --prefix=PREFIX         install architecture-independent files in PREFIX
1358                          [$ac_default_prefix]
1359  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                          [PREFIX]
1361
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
1366
1367For better control, use the options below.
1368
1369Fine tuning of the installation directories:
1370  --bindir=DIR            user executables [EPREFIX/bin]
1371  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372  --libexecdir=DIR        program executables [EPREFIX/libexec]
1373  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376  --libdir=DIR            object code libraries [EPREFIX/lib]
1377  --includedir=DIR        C header files [PREFIX/include]
1378  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381  --infodir=DIR           info documentation [DATAROOTDIR/info]
1382  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383  --mandir=DIR            man documentation [DATAROOTDIR/man]
1384  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrandr]
1385  --htmldir=DIR           html documentation [DOCDIR]
1386  --dvidir=DIR            dvi documentation [DOCDIR]
1387  --pdfdir=DIR            pdf documentation [DOCDIR]
1388  --psdir=DIR             ps documentation [DOCDIR]
1389_ACEOF
1390
1391  cat <<\_ACEOF
1392
1393Program names:
1394  --program-prefix=PREFIX            prepend PREFIX to installed program names
1395  --program-suffix=SUFFIX            append SUFFIX to installed program names
1396  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398System types:
1399  --build=BUILD     configure for building on BUILD [guessed]
1400  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401_ACEOF
1402fi
1403
1404if test -n "$ac_init_help"; then
1405  case $ac_init_help in
1406     short | recursive ) echo "Configuration of libXrandr 1.4.0:";;
1407   esac
1408  cat <<\_ACEOF
1409
1410Optional Features:
1411  --disable-option-checking  ignore unrecognized --enable/--with options
1412  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1413  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1414  --enable-maintainer-mode  enable make rules and dependencies not useful
1415			  (and sometimes confusing) to the casual installer
1416  --enable-shared[=PKGS]  build shared libraries [default=yes]
1417  --enable-static[=PKGS]  build static libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-dependency-tracking  speeds up one-time build
1421  --enable-dependency-tracking   do not reject slow dependency extractors
1422  --disable-libtool-lock  avoid locking (might break parallel builds)
1423  --disable-selective-werror
1424                          Turn off selective compiler errors. (default:
1425                          enabled)
1426  --enable-strict-compilation
1427                          Enable all warnings from compiler and make them
1428                          errors (default: disabled)
1429  --enable-silent-rules          less verbose build output (undo: `make V=1')
1430  --disable-silent-rules         verbose build output (undo: `make V=0')
1431  --enable-malloc0returnsnull
1432                          malloc(0) returns NULL (default: auto)
1433
1434Optional Packages:
1435  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1436  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1437  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1438                          both]
1439  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1440  --with-sysroot=DIR Search for dependent libraries within DIR
1441                        (or the compiler's sysroot if not specified).
1442
1443Some influential environment variables:
1444  CC          C compiler command
1445  CFLAGS      C compiler flags
1446  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447              nonstandard directory <lib dir>
1448  LIBS        libraries to pass to the linker, e.g. -l<library>
1449  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450              you have headers in a nonstandard directory <include dir>
1451  CPP         C preprocessor
1452  PKG_CONFIG  path to pkg-config utility
1453  PKG_CONFIG_PATH
1454              directories to add to pkg-config's search path
1455  PKG_CONFIG_LIBDIR
1456              path overriding pkg-config's built-in search path
1457  RANDR_CFLAGS
1458              C compiler flags for RANDR, overriding pkg-config
1459  RANDR_LIBS  linker flags for RANDR, overriding pkg-config
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
1464Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1465_ACEOF
1466ac_status=$?
1467fi
1468
1469if test "$ac_init_help" = "recursive"; then
1470  # If there are subdirs, report their specific --help.
1471  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472    test -d "$ac_dir" ||
1473      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474      continue
1475    ac_builddir=.
1476
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481  # A ".." for each directory in $ac_dir_suffix.
1482  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483  case $ac_top_builddir_sub in
1484  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486  esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
1492
1493case $srcdir in
1494  .)  # We are building in place.
1495    ac_srcdir=.
1496    ac_top_srcdir=$ac_top_builddir_sub
1497    ac_abs_top_srcdir=$ac_pwd ;;
1498  [\\/]* | ?:[\\/]* )  # Absolute name.
1499    ac_srcdir=$srcdir$ac_dir_suffix;
1500    ac_top_srcdir=$srcdir
1501    ac_abs_top_srcdir=$srcdir ;;
1502  *) # Relative name.
1503    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504    ac_top_srcdir=$ac_top_build_prefix$srcdir
1505    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506esac
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509    cd "$ac_dir" || { ac_status=$?; continue; }
1510    # Check for guested configure.
1511    if test -f "$ac_srcdir/configure.gnu"; then
1512      echo &&
1513      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514    elif test -f "$ac_srcdir/configure"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure" --help=recursive
1517    else
1518      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519    fi || ac_status=$?
1520    cd "$ac_pwd" || { ac_status=$?; break; }
1521  done
1522fi
1523
1524test -n "$ac_init_help" && exit $ac_status
1525if $ac_init_version; then
1526  cat <<\_ACEOF
1527libXrandr configure 1.4.0
1528generated by GNU Autoconf 2.68
1529
1530Copyright (C) 2010 Free Software Foundation, Inc.
1531This configure script is free software; the Free Software Foundation
1532gives unlimited permission to copy, distribute and modify it.
1533_ACEOF
1534  exit
1535fi
1536
1537## ------------------------ ##
1538## Autoconf initialization. ##
1539## ------------------------ ##
1540
1541# ac_fn_c_try_compile LINENO
1542# --------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_compile ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  rm -f conftest.$ac_objext
1548  if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_compile") 2>conftest.err
1556  ac_status=$?
1557  if test -s conftest.err; then
1558    grep -v '^ *+' conftest.err >conftest.er1
1559    cat conftest.er1 >&5
1560    mv -f conftest.er1 conftest.err
1561  fi
1562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563  test $ac_status = 0; } && {
1564	 test -z "$ac_c_werror_flag" ||
1565	 test ! -s conftest.err
1566       } && test -s conftest.$ac_objext; then :
1567  ac_retval=0
1568else
1569  $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572	ac_retval=1
1573fi
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_compile
1578
1579# ac_fn_c_try_link LINENO
1580# -----------------------
1581# Try to link conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_link ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  rm -f conftest.$ac_objext conftest$ac_exeext
1586  if { { ac_try="$ac_link"
1587case "(($ac_try" in
1588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589  *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593  (eval "$ac_link") 2>conftest.err
1594  ac_status=$?
1595  if test -s conftest.err; then
1596    grep -v '^ *+' conftest.err >conftest.er1
1597    cat conftest.er1 >&5
1598    mv -f conftest.er1 conftest.err
1599  fi
1600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601  test $ac_status = 0; } && {
1602	 test -z "$ac_c_werror_flag" ||
1603	 test ! -s conftest.err
1604       } && test -s conftest$ac_exeext && {
1605	 test "$cross_compiling" = yes ||
1606	 $as_test_x conftest$ac_exeext
1607       }; then :
1608  ac_retval=0
1609else
1610  $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
1612
1613	ac_retval=1
1614fi
1615  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1616  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1617  # interfere with the next link command; also delete a directory that is
1618  # left behind by Apple's compiler.  We do this before executing the actions.
1619  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1620  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621  as_fn_set_status $ac_retval
1622
1623} # ac_fn_c_try_link
1624
1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626# -------------------------------------------------------
1627# Tests whether HEADER exists and can be compiled using the include files in
1628# INCLUDES, setting the cache variable VAR accordingly.
1629ac_fn_c_check_header_compile ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633$as_echo_n "checking for $2... " >&6; }
1634if eval \${$3+:} false; then :
1635  $as_echo_n "(cached) " >&6
1636else
1637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h.  */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643  eval "$3=yes"
1644else
1645  eval "$3=no"
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648fi
1649eval ac_res=\$$3
1650	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651$as_echo "$ac_res" >&6; }
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654} # ac_fn_c_check_header_compile
1655
1656# ac_fn_c_try_cpp LINENO
1657# ----------------------
1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659ac_fn_c_try_cpp ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  if { { ac_try="$ac_cpp conftest.$ac_ext"
1663case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670  ac_status=$?
1671  if test -s conftest.err; then
1672    grep -v '^ *+' conftest.err >conftest.er1
1673    cat conftest.er1 >&5
1674    mv -f conftest.er1 conftest.err
1675  fi
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; } > conftest.i && {
1678	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679	 test ! -s conftest.err
1680       }; then :
1681  ac_retval=0
1682else
1683  $as_echo "$as_me: failed program was:" >&5
1684sed 's/^/| /' conftest.$ac_ext >&5
1685
1686    ac_retval=1
1687fi
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_cpp
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_link") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711  { { case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_try") 2>&5
1718  ac_status=$?
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; }; }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: program exited with status $ac_status" >&5
1724       $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727       ac_retval=$ac_status
1728fi
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_run
1734
1735# ac_fn_c_check_func LINENO FUNC VAR
1736# ----------------------------------
1737# Tests whether FUNC exists, setting the cache variable VAR accordingly
1738ac_fn_c_check_func ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742$as_echo_n "checking for $2... " >&6; }
1743if eval \${$3+:} false; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1750#define $2 innocuous_$2
1751
1752/* System header to define __stub macros and hopefully few prototypes,
1753    which can conflict with char $2 (); below.
1754    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755    <limits.h> exists even on freestanding compilers.  */
1756
1757#ifdef __STDC__
1758# include <limits.h>
1759#else
1760# include <assert.h>
1761#endif
1762
1763#undef $2
1764
1765/* Override any GCC internal prototype to avoid an error.
1766   Use char because int might match the return type of a GCC
1767   builtin and then its argument prototype would still apply.  */
1768#ifdef __cplusplus
1769extern "C"
1770#endif
1771char $2 ();
1772/* The GNU C library defines this for functions which it implements
1773    to always fail with ENOSYS.  Some functions are actually named
1774    something starting with __ and the normal name is an alias.  */
1775#if defined __stub_$2 || defined __stub___$2
1776choke me
1777#endif
1778
1779int
1780main ()
1781{
1782return $2 ();
1783  ;
1784  return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_link "$LINENO"; then :
1788  eval "$3=yes"
1789else
1790  eval "$3=no"
1791fi
1792rm -f core conftest.err conftest.$ac_objext \
1793    conftest$ac_exeext conftest.$ac_ext
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800} # ac_fn_c_check_func
1801
1802# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1803# ---------------------------------------------
1804# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1805# accordingly.
1806ac_fn_c_check_decl ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  as_decl_name=`echo $2|sed 's/ *(.*//'`
1810  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1812$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1813if eval \${$3+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h.  */
1818$4
1819int
1820main ()
1821{
1822#ifndef $as_decl_name
1823#ifdef __cplusplus
1824  (void) $as_decl_use;
1825#else
1826  (void) $as_decl_name;
1827#endif
1828#endif
1829
1830  ;
1831  return 0;
1832}
1833_ACEOF
1834if ac_fn_c_try_compile "$LINENO"; then :
1835  eval "$3=yes"
1836else
1837  eval "$3=no"
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840fi
1841eval ac_res=\$$3
1842	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843$as_echo "$ac_res" >&6; }
1844  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846} # ac_fn_c_check_decl
1847cat >config.log <<_ACEOF
1848This file contains any messages produced by compilers while
1849running configure, to aid debugging if configure makes a mistake.
1850
1851It was created by libXrandr $as_me 1.4.0, which was
1852generated by GNU Autoconf 2.68.  Invocation command line was
1853
1854  $ $0 $@
1855
1856_ACEOF
1857exec 5>>config.log
1858{
1859cat <<_ASUNAME
1860## --------- ##
1861## Platform. ##
1862## --------- ##
1863
1864hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1865uname -m = `(uname -m) 2>/dev/null || echo unknown`
1866uname -r = `(uname -r) 2>/dev/null || echo unknown`
1867uname -s = `(uname -s) 2>/dev/null || echo unknown`
1868uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869
1870/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1871/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1872
1873/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1874/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1875/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1876/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1877/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1878/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1879/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1880
1881_ASUNAME
1882
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886  IFS=$as_save_IFS
1887  test -z "$as_dir" && as_dir=.
1888    $as_echo "PATH: $as_dir"
1889  done
1890IFS=$as_save_IFS
1891
1892} >&5
1893
1894cat >&5 <<_ACEOF
1895
1896
1897## ----------- ##
1898## Core tests. ##
1899## ----------- ##
1900
1901_ACEOF
1902
1903
1904# Keep a trace of the command line.
1905# Strip out --no-create and --no-recursion so they do not pile up.
1906# Strip out --silent because we don't want to record it for future runs.
1907# Also quote any args containing shell meta-characters.
1908# Make two passes to allow for proper duplicate-argument suppression.
1909ac_configure_args=
1910ac_configure_args0=
1911ac_configure_args1=
1912ac_must_keep_next=false
1913for ac_pass in 1 2
1914do
1915  for ac_arg
1916  do
1917    case $ac_arg in
1918    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1919    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1920    | -silent | --silent | --silen | --sile | --sil)
1921      continue ;;
1922    *\'*)
1923      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1924    esac
1925    case $ac_pass in
1926    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1927    2)
1928      as_fn_append ac_configure_args1 " '$ac_arg'"
1929      if test $ac_must_keep_next = true; then
1930	ac_must_keep_next=false # Got value, back to normal.
1931      else
1932	case $ac_arg in
1933	  *=* | --config-cache | -C | -disable-* | --disable-* \
1934	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1935	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1936	  | -with-* | --with-* | -without-* | --without-* | --x)
1937	    case "$ac_configure_args0 " in
1938	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1939	    esac
1940	    ;;
1941	  -* ) ac_must_keep_next=true ;;
1942	esac
1943      fi
1944      as_fn_append ac_configure_args " '$ac_arg'"
1945      ;;
1946    esac
1947  done
1948done
1949{ ac_configure_args0=; unset ac_configure_args0;}
1950{ ac_configure_args1=; unset ac_configure_args1;}
1951
1952# When interrupted or exit'd, cleanup temporary files, and complete
1953# config.log.  We remove comments because anyway the quotes in there
1954# would cause problems or look ugly.
1955# WARNING: Use '\'' to represent an apostrophe within the trap.
1956# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1957trap 'exit_status=$?
1958  # Save into config.log some information that might help in debugging.
1959  {
1960    echo
1961
1962    $as_echo "## ---------------- ##
1963## Cache variables. ##
1964## ---------------- ##"
1965    echo
1966    # The following way of writing the cache mishandles newlines in values,
1967(
1968  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1969    eval ac_val=\$$ac_var
1970    case $ac_val in #(
1971    *${as_nl}*)
1972      case $ac_var in #(
1973      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1974$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1975      esac
1976      case $ac_var in #(
1977      _ | IFS | as_nl) ;; #(
1978      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1979      *) { eval $ac_var=; unset $ac_var;} ;;
1980      esac ;;
1981    esac
1982  done
1983  (set) 2>&1 |
1984    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985    *${as_nl}ac_space=\ *)
1986      sed -n \
1987	"s/'\''/'\''\\\\'\'''\''/g;
1988	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1989      ;; #(
1990    *)
1991      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1992      ;;
1993    esac |
1994    sort
1995)
1996    echo
1997
1998    $as_echo "## ----------------- ##
1999## Output variables. ##
2000## ----------------- ##"
2001    echo
2002    for ac_var in $ac_subst_vars
2003    do
2004      eval ac_val=\$$ac_var
2005      case $ac_val in
2006      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2007      esac
2008      $as_echo "$ac_var='\''$ac_val'\''"
2009    done | sort
2010    echo
2011
2012    if test -n "$ac_subst_files"; then
2013      $as_echo "## ------------------- ##
2014## File substitutions. ##
2015## ------------------- ##"
2016      echo
2017      for ac_var in $ac_subst_files
2018      do
2019	eval ac_val=\$$ac_var
2020	case $ac_val in
2021	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022	esac
2023	$as_echo "$ac_var='\''$ac_val'\''"
2024      done | sort
2025      echo
2026    fi
2027
2028    if test -s confdefs.h; then
2029      $as_echo "## ----------- ##
2030## confdefs.h. ##
2031## ----------- ##"
2032      echo
2033      cat confdefs.h
2034      echo
2035    fi
2036    test "$ac_signal" != 0 &&
2037      $as_echo "$as_me: caught signal $ac_signal"
2038    $as_echo "$as_me: exit $exit_status"
2039  } >&5
2040  rm -f core *.core core.conftest.* &&
2041    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2042    exit $exit_status
2043' 0
2044for ac_signal in 1 2 13 15; do
2045  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046done
2047ac_signal=0
2048
2049# confdefs.h avoids OS command line length limits that DEFS can exceed.
2050rm -f -r conftest* confdefs.h
2051
2052$as_echo "/* confdefs.h */" > confdefs.h
2053
2054# Predefined preprocessor variables.
2055
2056cat >>confdefs.h <<_ACEOF
2057#define PACKAGE_NAME "$PACKAGE_NAME"
2058_ACEOF
2059
2060cat >>confdefs.h <<_ACEOF
2061#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2062_ACEOF
2063
2064cat >>confdefs.h <<_ACEOF
2065#define PACKAGE_VERSION "$PACKAGE_VERSION"
2066_ACEOF
2067
2068cat >>confdefs.h <<_ACEOF
2069#define PACKAGE_STRING "$PACKAGE_STRING"
2070_ACEOF
2071
2072cat >>confdefs.h <<_ACEOF
2073#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2074_ACEOF
2075
2076cat >>confdefs.h <<_ACEOF
2077#define PACKAGE_URL "$PACKAGE_URL"
2078_ACEOF
2079
2080
2081# Let the site file select an alternate cache file if it wants to.
2082# Prefer an explicitly selected file to automatically selected ones.
2083ac_site_file1=NONE
2084ac_site_file2=NONE
2085if test -n "$CONFIG_SITE"; then
2086  # We do not want a PATH search for config.site.
2087  case $CONFIG_SITE in #((
2088    -*)  ac_site_file1=./$CONFIG_SITE;;
2089    */*) ac_site_file1=$CONFIG_SITE;;
2090    *)   ac_site_file1=./$CONFIG_SITE;;
2091  esac
2092elif test "x$prefix" != xNONE; then
2093  ac_site_file1=$prefix/share/config.site
2094  ac_site_file2=$prefix/etc/config.site
2095else
2096  ac_site_file1=$ac_default_prefix/share/config.site
2097  ac_site_file2=$ac_default_prefix/etc/config.site
2098fi
2099for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2100do
2101  test "x$ac_site_file" = xNONE && continue
2102  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2103    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2104$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2105    sed 's/^/| /' "$ac_site_file" >&5
2106    . "$ac_site_file" \
2107      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2109as_fn_error $? "failed to load site script $ac_site_file
2110See \`config.log' for more details" "$LINENO" 5; }
2111  fi
2112done
2113
2114if test -r "$cache_file"; then
2115  # Some versions of bash will fail to source /dev/null (special files
2116  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2117  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2119$as_echo "$as_me: loading cache $cache_file" >&6;}
2120    case $cache_file in
2121      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2122      *)                      . "./$cache_file";;
2123    esac
2124  fi
2125else
2126  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2127$as_echo "$as_me: creating cache $cache_file" >&6;}
2128  >$cache_file
2129fi
2130
2131# Check that the precious variables saved in the cache have kept the same
2132# value.
2133ac_cache_corrupted=false
2134for ac_var in $ac_precious_vars; do
2135  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2136  eval ac_new_set=\$ac_env_${ac_var}_set
2137  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2138  eval ac_new_val=\$ac_env_${ac_var}_value
2139  case $ac_old_set,$ac_new_set in
2140    set,)
2141      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2142$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2143      ac_cache_corrupted=: ;;
2144    ,set)
2145      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2146$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2147      ac_cache_corrupted=: ;;
2148    ,);;
2149    *)
2150      if test "x$ac_old_val" != "x$ac_new_val"; then
2151	# differences in whitespace do not lead to failure.
2152	ac_old_val_w=`echo x $ac_old_val`
2153	ac_new_val_w=`echo x $ac_new_val`
2154	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2155	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2156$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2157	  ac_cache_corrupted=:
2158	else
2159	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2160$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2161	  eval $ac_var=\$ac_old_val
2162	fi
2163	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2164$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2165	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2166$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2167      fi;;
2168  esac
2169  # Pass precious variables to config.status.
2170  if test "$ac_new_set" = set; then
2171    case $ac_new_val in
2172    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2173    *) ac_arg=$ac_var=$ac_new_val ;;
2174    esac
2175    case " $ac_configure_args " in
2176      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2177      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2178    esac
2179  fi
2180done
2181if $ac_cache_corrupted; then
2182  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2184  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2185$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2186  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2187fi
2188## -------------------- ##
2189## Main body of script. ##
2190## -------------------- ##
2191
2192ac_ext=c
2193ac_cpp='$CPP $CPPFLAGS'
2194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197
2198
2199
2200ac_config_headers="$ac_config_headers config.h"
2201
2202
2203# Initialize Automake
2204am__api_version='1.11'
2205
2206ac_aux_dir=
2207for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208  if test -f "$ac_dir/install-sh"; then
2209    ac_aux_dir=$ac_dir
2210    ac_install_sh="$ac_aux_dir/install-sh -c"
2211    break
2212  elif test -f "$ac_dir/install.sh"; then
2213    ac_aux_dir=$ac_dir
2214    ac_install_sh="$ac_aux_dir/install.sh -c"
2215    break
2216  elif test -f "$ac_dir/shtool"; then
2217    ac_aux_dir=$ac_dir
2218    ac_install_sh="$ac_aux_dir/shtool install -c"
2219    break
2220  fi
2221done
2222if test -z "$ac_aux_dir"; then
2223  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2224fi
2225
2226# These three variables are undocumented and unsupported,
2227# and are intended to be withdrawn in a future Autoconf release.
2228# They can cause serious problems if a builder's source tree is in a directory
2229# whose full name contains unusual characters.
2230ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2231ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2232ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2233
2234
2235# Find a good install program.  We prefer a C program (faster),
2236# so one script is as good as another.  But avoid the broken or
2237# incompatible versions:
2238# SysV /etc/install, /usr/sbin/install
2239# SunOS /usr/etc/install
2240# IRIX /sbin/install
2241# AIX /bin/install
2242# AmigaOS /C/install, which installs bootblocks on floppy discs
2243# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2244# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2245# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2246# OS/2's system install, which has a completely different semantic
2247# ./install, which can be erroneously created by make from ./install.sh.
2248# Reject install programs that cannot install multiple files.
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2250$as_echo_n "checking for a BSD-compatible install... " >&6; }
2251if test -z "$INSTALL"; then
2252if ${ac_cv_path_install+:} false; then :
2253  $as_echo_n "(cached) " >&6
2254else
2255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258  IFS=$as_save_IFS
2259  test -z "$as_dir" && as_dir=.
2260    # Account for people who put trailing slashes in PATH elements.
2261case $as_dir/ in #((
2262  ./ | .// | /[cC]/* | \
2263  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2264  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2265  /usr/ucb/* ) ;;
2266  *)
2267    # OSF1 and SCO ODT 3.0 have their own names for install.
2268    # Don't use installbsd from OSF since it installs stuff as root
2269    # by default.
2270    for ac_prog in ginstall scoinst install; do
2271      for ac_exec_ext in '' $ac_executable_extensions; do
2272	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2273	  if test $ac_prog = install &&
2274	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2275	    # AIX install.  It has an incompatible calling convention.
2276	    :
2277	  elif test $ac_prog = install &&
2278	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2279	    # program-specific install script used by HP pwplus--don't use.
2280	    :
2281	  else
2282	    rm -rf conftest.one conftest.two conftest.dir
2283	    echo one > conftest.one
2284	    echo two > conftest.two
2285	    mkdir conftest.dir
2286	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2287	      test -s conftest.one && test -s conftest.two &&
2288	      test -s conftest.dir/conftest.one &&
2289	      test -s conftest.dir/conftest.two
2290	    then
2291	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2292	      break 3
2293	    fi
2294	  fi
2295	fi
2296      done
2297    done
2298    ;;
2299esac
2300
2301  done
2302IFS=$as_save_IFS
2303
2304rm -rf conftest.one conftest.two conftest.dir
2305
2306fi
2307  if test "${ac_cv_path_install+set}" = set; then
2308    INSTALL=$ac_cv_path_install
2309  else
2310    # As a last resort, use the slow shell script.  Don't cache a
2311    # value for INSTALL within a source directory, because that will
2312    # break other packages using the cache if that directory is
2313    # removed, or if the value is a relative name.
2314    INSTALL=$ac_install_sh
2315  fi
2316fi
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2318$as_echo "$INSTALL" >&6; }
2319
2320# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2321# It thinks the first close brace ends the variable substitution.
2322test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2323
2324test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2325
2326test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2327
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2329$as_echo_n "checking whether build environment is sane... " >&6; }
2330# Just in case
2331sleep 1
2332echo timestamp > conftest.file
2333# Reject unsafe characters in $srcdir or the absolute working directory
2334# name.  Accept space and tab only in the latter.
2335am_lf='
2336'
2337case `pwd` in
2338  *[\\\"\#\$\&\'\`$am_lf]*)
2339    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2340esac
2341case $srcdir in
2342  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2343    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2344esac
2345
2346# Do `set' in a subshell so we don't clobber the current shell's
2347# arguments.  Must try -L first in case configure is actually a
2348# symlink; some systems play weird games with the mod time of symlinks
2349# (eg FreeBSD returns the mod time of the symlink's containing
2350# directory).
2351if (
2352   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2353   if test "$*" = "X"; then
2354      # -L didn't work.
2355      set X `ls -t "$srcdir/configure" conftest.file`
2356   fi
2357   rm -f conftest.file
2358   if test "$*" != "X $srcdir/configure conftest.file" \
2359      && test "$*" != "X conftest.file $srcdir/configure"; then
2360
2361      # If neither matched, then we have a broken ls.  This can happen
2362      # if, for instance, CONFIG_SHELL is bash and it inherits a
2363      # broken ls alias from the environment.  This has actually
2364      # happened.  Such a system could not be considered "sane".
2365      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2366alias in your environment" "$LINENO" 5
2367   fi
2368
2369   test "$2" = conftest.file
2370   )
2371then
2372   # Ok.
2373   :
2374else
2375   as_fn_error $? "newly created file is older than distributed files!
2376Check your system clock" "$LINENO" 5
2377fi
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2379$as_echo "yes" >&6; }
2380test "$program_prefix" != NONE &&
2381  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2382# Use a double $ so make ignores it.
2383test "$program_suffix" != NONE &&
2384  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2385# Double any \ or $.
2386# By default was `s,x,x', remove it if useless.
2387ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2388program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2389
2390# expand $ac_aux_dir to an absolute path
2391am_aux_dir=`cd $ac_aux_dir && pwd`
2392
2393if test x"${MISSING+set}" != xset; then
2394  case $am_aux_dir in
2395  *\ * | *\	*)
2396    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2397  *)
2398    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2399  esac
2400fi
2401# Use eval to expand $SHELL
2402if eval "$MISSING --run true"; then
2403  am_missing_run="$MISSING --run "
2404else
2405  am_missing_run=
2406  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2407$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408fi
2409
2410if test x"${install_sh}" != xset; then
2411  case $am_aux_dir in
2412  *\ * | *\	*)
2413    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2414  *)
2415    install_sh="\${SHELL} $am_aux_dir/install-sh"
2416  esac
2417fi
2418
2419# Installed binaries are usually stripped using `strip' when the user
2420# run `make install-strip'.  However `strip' might not be the right
2421# tool to use in cross-compilation environments, therefore Automake
2422# will honor the `STRIP' environment variable to overrule this program.
2423if test "$cross_compiling" != no; then
2424  if test -n "$ac_tool_prefix"; then
2425  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2426set dummy ${ac_tool_prefix}strip; ac_word=$2
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428$as_echo_n "checking for $ac_word... " >&6; }
2429if ${ac_cv_prog_STRIP+:} false; then :
2430  $as_echo_n "(cached) " >&6
2431else
2432  if test -n "$STRIP"; then
2433  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440    for ac_exec_ext in '' $ac_executable_extensions; do
2441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2444    break 2
2445  fi
2446done
2447  done
2448IFS=$as_save_IFS
2449
2450fi
2451fi
2452STRIP=$ac_cv_prog_STRIP
2453if test -n "$STRIP"; then
2454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2455$as_echo "$STRIP" >&6; }
2456else
2457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458$as_echo "no" >&6; }
2459fi
2460
2461
2462fi
2463if test -z "$ac_cv_prog_STRIP"; then
2464  ac_ct_STRIP=$STRIP
2465  # Extract the first word of "strip", so it can be a program name with args.
2466set dummy strip; ac_word=$2
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468$as_echo_n "checking for $ac_word... " >&6; }
2469if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2470  $as_echo_n "(cached) " >&6
2471else
2472  if test -n "$ac_ct_STRIP"; then
2473  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478  IFS=$as_save_IFS
2479  test -z "$as_dir" && as_dir=.
2480    for ac_exec_ext in '' $ac_executable_extensions; do
2481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482    ac_cv_prog_ac_ct_STRIP="strip"
2483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484    break 2
2485  fi
2486done
2487  done
2488IFS=$as_save_IFS
2489
2490fi
2491fi
2492ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2493if test -n "$ac_ct_STRIP"; then
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2495$as_echo "$ac_ct_STRIP" >&6; }
2496else
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498$as_echo "no" >&6; }
2499fi
2500
2501  if test "x$ac_ct_STRIP" = x; then
2502    STRIP=":"
2503  else
2504    case $cross_compiling:$ac_tool_warned in
2505yes:)
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508ac_tool_warned=yes ;;
2509esac
2510    STRIP=$ac_ct_STRIP
2511  fi
2512else
2513  STRIP="$ac_cv_prog_STRIP"
2514fi
2515
2516fi
2517INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2520$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2521if test -z "$MKDIR_P"; then
2522  if ${ac_cv_path_mkdir+:} false; then :
2523  $as_echo_n "(cached) " >&6
2524else
2525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2527do
2528  IFS=$as_save_IFS
2529  test -z "$as_dir" && as_dir=.
2530    for ac_prog in mkdir gmkdir; do
2531	 for ac_exec_ext in '' $ac_executable_extensions; do
2532	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2533	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2534	     'mkdir (GNU coreutils) '* | \
2535	     'mkdir (coreutils) '* | \
2536	     'mkdir (fileutils) '4.1*)
2537	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2538	       break 3;;
2539	   esac
2540	 done
2541       done
2542  done
2543IFS=$as_save_IFS
2544
2545fi
2546
2547  test -d ./--version && rmdir ./--version
2548  if test "${ac_cv_path_mkdir+set}" = set; then
2549    MKDIR_P="$ac_cv_path_mkdir -p"
2550  else
2551    # As a last resort, use the slow shell script.  Don't cache a
2552    # value for MKDIR_P within a source directory, because that will
2553    # break other packages using the cache if that directory is
2554    # removed, or if the value is a relative name.
2555    MKDIR_P="$ac_install_sh -d"
2556  fi
2557fi
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2559$as_echo "$MKDIR_P" >&6; }
2560
2561mkdir_p="$MKDIR_P"
2562case $mkdir_p in
2563  [\\/$]* | ?:[\\/]*) ;;
2564  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2565esac
2566
2567for ac_prog in gawk mawk nawk awk
2568do
2569  # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if ${ac_cv_prog_AWK+:} false; then :
2574  $as_echo_n "(cached) " >&6
2575else
2576  if test -n "$AWK"; then
2577  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582  IFS=$as_save_IFS
2583  test -z "$as_dir" && as_dir=.
2584    for ac_exec_ext in '' $ac_executable_extensions; do
2585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586    ac_cv_prog_AWK="$ac_prog"
2587    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588    break 2
2589  fi
2590done
2591  done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596AWK=$ac_cv_prog_AWK
2597if test -n "$AWK"; then
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599$as_echo "$AWK" >&6; }
2600else
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606  test -n "$AWK" && break
2607done
2608
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2610$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2611set x ${MAKE-make}
2612ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2613if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  cat >conftest.make <<\_ACEOF
2617SHELL = /bin/sh
2618all:
2619	@echo '@@@%%%=$(MAKE)=@@@%%%'
2620_ACEOF
2621# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2622case `${MAKE-make} -f conftest.make 2>/dev/null` in
2623  *@@@%%%=?*=@@@%%%*)
2624    eval ac_cv_prog_make_${ac_make}_set=yes;;
2625  *)
2626    eval ac_cv_prog_make_${ac_make}_set=no;;
2627esac
2628rm -f conftest.make
2629fi
2630if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632$as_echo "yes" >&6; }
2633  SET_MAKE=
2634else
2635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636$as_echo "no" >&6; }
2637  SET_MAKE="MAKE=${MAKE-make}"
2638fi
2639
2640rm -rf .tst 2>/dev/null
2641mkdir .tst 2>/dev/null
2642if test -d .tst; then
2643  am__leading_dot=.
2644else
2645  am__leading_dot=_
2646fi
2647rmdir .tst 2>/dev/null
2648
2649if test "`cd $srcdir && pwd`" != "`pwd`"; then
2650  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2651  # is not polluted with repeated "-I."
2652  am__isrc=' -I$(srcdir)'
2653  # test to see if srcdir already configured
2654  if test -f $srcdir/config.status; then
2655    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2656  fi
2657fi
2658
2659# test whether we have cygpath
2660if test -z "$CYGPATH_W"; then
2661  if (cygpath --version) >/dev/null 2>/dev/null; then
2662    CYGPATH_W='cygpath -w'
2663  else
2664    CYGPATH_W=echo
2665  fi
2666fi
2667
2668
2669# Define the identity of the package.
2670 PACKAGE='libXrandr'
2671 VERSION='1.4.0'
2672
2673
2674cat >>confdefs.h <<_ACEOF
2675#define PACKAGE "$PACKAGE"
2676_ACEOF
2677
2678
2679cat >>confdefs.h <<_ACEOF
2680#define VERSION "$VERSION"
2681_ACEOF
2682
2683# Some tools Automake needs.
2684
2685ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2686
2687
2688AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2689
2690
2691AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2692
2693
2694AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2695
2696
2697MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2698
2699# We need awk for the "check" target.  The system "awk" is bad on
2700# some platforms.
2701# Always define AMTAR for backward compatibility.  Yes, it's still used
2702# in the wild :-(  We should find a proper way to deprecate it ...
2703AMTAR='$${TAR-tar}'
2704
2705am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2706
2707
2708
2709
2710
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2713$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2714    # Check whether --enable-maintainer-mode was given.
2715if test "${enable_maintainer_mode+set}" = set; then :
2716  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2717else
2718  USE_MAINTAINER_MODE=no
2719fi
2720
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2722$as_echo "$USE_MAINTAINER_MODE" >&6; }
2723   if test $USE_MAINTAINER_MODE = yes; then
2724  MAINTAINER_MODE_TRUE=
2725  MAINTAINER_MODE_FALSE='#'
2726else
2727  MAINTAINER_MODE_TRUE='#'
2728  MAINTAINER_MODE_FALSE=
2729fi
2730
2731  MAINT=$MAINTAINER_MODE_TRUE
2732
2733
2734
2735# Initialize libtool
2736case `pwd` in
2737  *\ * | *\	*)
2738    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2739$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2740esac
2741
2742
2743
2744macro_version='2.4.2'
2745macro_revision='1.3337'
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759ltmain="$ac_aux_dir/ltmain.sh"
2760
2761# Make sure we can run config.sub.
2762$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2763  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2766$as_echo_n "checking build system type... " >&6; }
2767if ${ac_cv_build+:} false; then :
2768  $as_echo_n "(cached) " >&6
2769else
2770  ac_build_alias=$build_alias
2771test "x$ac_build_alias" = x &&
2772  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2773test "x$ac_build_alias" = x &&
2774  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2775ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2776  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2780$as_echo "$ac_cv_build" >&6; }
2781case $ac_cv_build in
2782*-*-*) ;;
2783*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784esac
2785build=$ac_cv_build
2786ac_save_IFS=$IFS; IFS='-'
2787set x $ac_cv_build
2788shift
2789build_cpu=$1
2790build_vendor=$2
2791shift; shift
2792# Remember, the first character of IFS is used to create $*,
2793# except with old shells:
2794build_os=$*
2795IFS=$ac_save_IFS
2796case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797
2798
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2800$as_echo_n "checking host system type... " >&6; }
2801if ${ac_cv_host+:} false; then :
2802  $as_echo_n "(cached) " >&6
2803else
2804  if test "x$host_alias" = x; then
2805  ac_cv_host=$ac_cv_build
2806else
2807  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2808    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2809fi
2810
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2813$as_echo "$ac_cv_host" >&6; }
2814case $ac_cv_host in
2815*-*-*) ;;
2816*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817esac
2818host=$ac_cv_host
2819ac_save_IFS=$IFS; IFS='-'
2820set x $ac_cv_host
2821shift
2822host_cpu=$1
2823host_vendor=$2
2824shift; shift
2825# Remember, the first character of IFS is used to create $*,
2826# except with old shells:
2827host_os=$*
2828IFS=$ac_save_IFS
2829case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2830
2831
2832# Backslashify metacharacters that are still active within
2833# double-quoted strings.
2834sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2835
2836# Same as above, but do not quote variable references.
2837double_quote_subst='s/\(["`\\]\)/\\\1/g'
2838
2839# Sed substitution to delay expansion of an escaped shell variable in a
2840# double_quote_subst'ed string.
2841delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2842
2843# Sed substitution to delay expansion of an escaped single quote.
2844delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2845
2846# Sed substitution to avoid accidental globbing in evaled expressions
2847no_glob_subst='s/\*/\\\*/g'
2848
2849ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2850ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2851ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2852
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2854$as_echo_n "checking how to print strings... " >&6; }
2855# Test print first, because it will be a builtin if present.
2856if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2857   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2858  ECHO='print -r --'
2859elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2860  ECHO='printf %s\n'
2861else
2862  # Use this function as a fallback that always works.
2863  func_fallback_echo ()
2864  {
2865    eval 'cat <<_LTECHO_EOF
2866$1
2867_LTECHO_EOF'
2868  }
2869  ECHO='func_fallback_echo'
2870fi
2871
2872# func_echo_all arg...
2873# Invoke $ECHO with all args, space-separated.
2874func_echo_all ()
2875{
2876    $ECHO ""
2877}
2878
2879case "$ECHO" in
2880  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2881$as_echo "printf" >&6; } ;;
2882  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2883$as_echo "print -r" >&6; } ;;
2884  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2885$as_echo "cat" >&6; } ;;
2886esac
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901DEPDIR="${am__leading_dot}deps"
2902
2903ac_config_commands="$ac_config_commands depfiles"
2904
2905
2906am_make=${MAKE-make}
2907cat > confinc << 'END'
2908am__doit:
2909	@echo this is the am__doit target
2910.PHONY: am__doit
2911END
2912# If we don't find an include directive, just comment out the code.
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2914$as_echo_n "checking for style of include used by $am_make... " >&6; }
2915am__include="#"
2916am__quote=
2917_am_result=none
2918# First try GNU make style include.
2919echo "include confinc" > confmf
2920# Ignore all kinds of additional output from `make'.
2921case `$am_make -s -f confmf 2> /dev/null` in #(
2922*the\ am__doit\ target*)
2923  am__include=include
2924  am__quote=
2925  _am_result=GNU
2926  ;;
2927esac
2928# Now try BSD make style include.
2929if test "$am__include" = "#"; then
2930   echo '.include "confinc"' > confmf
2931   case `$am_make -s -f confmf 2> /dev/null` in #(
2932   *the\ am__doit\ target*)
2933     am__include=.include
2934     am__quote="\""
2935     _am_result=BSD
2936     ;;
2937   esac
2938fi
2939
2940
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2942$as_echo "$_am_result" >&6; }
2943rm -f confinc confmf
2944
2945# Check whether --enable-dependency-tracking was given.
2946if test "${enable_dependency_tracking+set}" = set; then :
2947  enableval=$enable_dependency_tracking;
2948fi
2949
2950if test "x$enable_dependency_tracking" != xno; then
2951  am_depcomp="$ac_aux_dir/depcomp"
2952  AMDEPBACKSLASH='\'
2953  am__nodep='_no'
2954fi
2955 if test "x$enable_dependency_tracking" != xno; then
2956  AMDEP_TRUE=
2957  AMDEP_FALSE='#'
2958else
2959  AMDEP_TRUE='#'
2960  AMDEP_FALSE=
2961fi
2962
2963
2964ac_ext=c
2965ac_cpp='$CPP $CPPFLAGS'
2966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969if test -n "$ac_tool_prefix"; then
2970  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2971set dummy ${ac_tool_prefix}gcc; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if ${ac_cv_prog_CC+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$CC"; then
2978  ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985    for ac_exec_ext in '' $ac_executable_extensions; do
2986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992  done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007fi
3008if test -z "$ac_cv_prog_CC"; then
3009  ac_ct_CC=$CC
3010  # Extract the first word of "gcc", so it can be a program name with args.
3011set dummy gcc; ac_word=$2
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if ${ac_cv_prog_ac_ct_CC+:} false; then :
3015  $as_echo_n "(cached) " >&6
3016else
3017  if test -n "$ac_ct_CC"; then
3018  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023  IFS=$as_save_IFS
3024  test -z "$as_dir" && as_dir=.
3025    for ac_exec_ext in '' $ac_executable_extensions; do
3026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027    ac_cv_prog_ac_ct_CC="gcc"
3028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029    break 2
3030  fi
3031done
3032  done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038if test -n "$ac_ct_CC"; then
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040$as_echo "$ac_ct_CC" >&6; }
3041else
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046  if test "x$ac_ct_CC" = x; then
3047    CC=""
3048  else
3049    case $cross_compiling:$ac_tool_warned in
3050yes:)
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3053ac_tool_warned=yes ;;
3054esac
3055    CC=$ac_ct_CC
3056  fi
3057else
3058  CC="$ac_cv_prog_CC"
3059fi
3060
3061if test -z "$CC"; then
3062          if test -n "$ac_tool_prefix"; then
3063    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}cc; ac_word=$2
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
3067if ${ac_cv_prog_CC+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  if test -n "$CC"; then
3071  ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078    for ac_exec_ext in '' $ac_executable_extensions; do
3079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080    ac_cv_prog_CC="${ac_tool_prefix}cc"
3081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082    break 2
3083  fi
3084done
3085  done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090CC=$ac_cv_prog_CC
3091if test -n "$CC"; then
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093$as_echo "$CC" >&6; }
3094else
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099
3100  fi
3101fi
3102if test -z "$CC"; then
3103  # Extract the first word of "cc", so it can be a program name with args.
3104set dummy cc; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_prog_CC+:} false; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$CC"; then
3111  ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113  ac_prog_rejected=no
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122       ac_prog_rejected=yes
3123       continue
3124     fi
3125    ac_cv_prog_CC="cc"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133if test $ac_prog_rejected = yes; then
3134  # We found a bogon in the path, so make sure we never use it.
3135  set dummy $ac_cv_prog_CC
3136  shift
3137  if test $# != 0; then
3138    # We chose a different compiler from the bogus one.
3139    # However, it has the same basename, so the bogon will be chosen
3140    # first if we set CC to just the basename; use the full file name.
3141    shift
3142    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143  fi
3144fi
3145fi
3146fi
3147CC=$ac_cv_prog_CC
3148if test -n "$CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150$as_echo "$CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156
3157fi
3158if test -z "$CC"; then
3159  if test -n "$ac_tool_prefix"; then
3160  for ac_prog in cl.exe
3161  do
3162    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if ${ac_cv_prog_CC+:} false; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  if test -n "$CC"; then
3170  ac_cv_prog_CC="$CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184  done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189CC=$ac_cv_prog_CC
3190if test -n "$CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192$as_echo "$CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199    test -n "$CC" && break
3200  done
3201fi
3202if test -z "$CC"; then
3203  ac_ct_CC=$CC
3204  for ac_prog in cl.exe
3205do
3206  # Extract the first word of "$ac_prog", so it can be a program name with args.
3207set dummy $ac_prog; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if ${ac_cv_prog_ac_ct_CC+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  if test -n "$ac_ct_CC"; then
3214  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221    for ac_exec_ext in '' $ac_executable_extensions; do
3222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223    ac_cv_prog_ac_ct_CC="$ac_prog"
3224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228  done
3229IFS=$as_save_IFS
3230
3231fi
3232fi
3233ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234if test -n "$ac_ct_CC"; then
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236$as_echo "$ac_ct_CC" >&6; }
3237else
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242
3243  test -n "$ac_ct_CC" && break
3244done
3245
3246  if test "x$ac_ct_CC" = x; then
3247    CC=""
3248  else
3249    case $cross_compiling:$ac_tool_warned in
3250yes:)
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253ac_tool_warned=yes ;;
3254esac
3255    CC=$ac_ct_CC
3256  fi
3257fi
3258
3259fi
3260
3261
3262test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error $? "no acceptable C compiler found in \$PATH
3265See \`config.log' for more details" "$LINENO" 5; }
3266
3267# Provide some information about the compiler.
3268$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3269set X $ac_compile
3270ac_compiler=$2
3271for ac_option in --version -v -V -qversion; do
3272  { { ac_try="$ac_compiler $ac_option >&5"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278$as_echo "$ac_try_echo"; } >&5
3279  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3280  ac_status=$?
3281  if test -s conftest.err; then
3282    sed '10a\
3283... rest of stderr output deleted ...
3284         10q' conftest.err >conftest.er1
3285    cat conftest.er1 >&5
3286  fi
3287  rm -f conftest.er1 conftest.err
3288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289  test $ac_status = 0; }
3290done
3291
3292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h.  */
3294
3295int
3296main ()
3297{
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303ac_clean_files_save=$ac_clean_files
3304ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3305# Try to create an executable without -o first, disregard a.out.
3306# It will help us diagnose broken compilers, and finding out an intuition
3307# of exeext.
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3309$as_echo_n "checking whether the C compiler works... " >&6; }
3310ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311
3312# The possible output files:
3313ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314
3315ac_rmfiles=
3316for ac_file in $ac_files
3317do
3318  case $ac_file in
3319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3321  esac
3322done
3323rm -f $ac_rmfiles
3324
3325if { { ac_try="$ac_link_default"
3326case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332  (eval "$ac_link_default") 2>&5
3333  ac_status=$?
3334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335  test $ac_status = 0; }; then :
3336  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3337# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3338# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3339# so that the user can short-circuit this test for compilers unknown to
3340# Autoconf.
3341for ac_file in $ac_files ''
3342do
3343  test -f "$ac_file" || continue
3344  case $ac_file in
3345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3346	;;
3347    [ab].out )
3348	# We found the default executable, but exeext='' is most
3349	# certainly right.
3350	break;;
3351    *.* )
3352	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3353	then :; else
3354	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355	fi
3356	# We set ac_cv_exeext here because the later test for it is not
3357	# safe: cross compilers may not add the suffix if given an `-o'
3358	# argument, so we may need to know it at that point already.
3359	# Even if this section looks crufty: it has the advantage of
3360	# actually working.
3361	break;;
3362    * )
3363	break;;
3364  esac
3365done
3366test "$ac_cv_exeext" = no && ac_cv_exeext=
3367
3368else
3369  ac_file=''
3370fi
3371if test -z "$ac_file"; then :
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374$as_echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error 77 "C compiler cannot create executables
3380See \`config.log' for more details" "$LINENO" 5; }
3381else
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383$as_echo "yes" >&6; }
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3386$as_echo_n "checking for C compiler default output file name... " >&6; }
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3388$as_echo "$ac_file" >&6; }
3389ac_exeext=$ac_cv_exeext
3390
3391rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3392ac_clean_files=$ac_clean_files_save
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3394$as_echo_n "checking for suffix of executables... " >&6; }
3395if { { ac_try="$ac_link"
3396case "(($ac_try" in
3397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398  *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401$as_echo "$ac_try_echo"; } >&5
3402  (eval "$ac_link") 2>&5
3403  ac_status=$?
3404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405  test $ac_status = 0; }; then :
3406  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3407# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3408# work properly (i.e., refer to `conftest.exe'), while it won't with
3409# `rm'.
3410for ac_file in conftest.exe conftest conftest.*; do
3411  test -f "$ac_file" || continue
3412  case $ac_file in
3413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3415	  break;;
3416    * ) break;;
3417  esac
3418done
3419else
3420  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3423See \`config.log' for more details" "$LINENO" 5; }
3424fi
3425rm -f conftest conftest$ac_cv_exeext
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3427$as_echo "$ac_cv_exeext" >&6; }
3428
3429rm -f conftest.$ac_ext
3430EXEEXT=$ac_cv_exeext
3431ac_exeext=$EXEEXT
3432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434#include <stdio.h>
3435int
3436main ()
3437{
3438FILE *f = fopen ("conftest.out", "w");
3439 return ferror (f) || fclose (f) != 0;
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445ac_clean_files="$ac_clean_files conftest.out"
3446# Check that the compiler produces executables we can run.  If not, either
3447# the compiler is broken, or we cross compile.
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3449$as_echo_n "checking whether we are cross compiling... " >&6; }
3450if test "$cross_compiling" != yes; then
3451  { { ac_try="$ac_link"
3452case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457$as_echo "$ac_try_echo"; } >&5
3458  (eval "$ac_link") 2>&5
3459  ac_status=$?
3460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461  test $ac_status = 0; }
3462  if { ac_try='./conftest$ac_cv_exeext'
3463  { { case "(($ac_try" in
3464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465  *) ac_try_echo=$ac_try;;
3466esac
3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468$as_echo "$ac_try_echo"; } >&5
3469  (eval "$ac_try") 2>&5
3470  ac_status=$?
3471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472  test $ac_status = 0; }; }; then
3473    cross_compiling=no
3474  else
3475    if test "$cross_compiling" = maybe; then
3476	cross_compiling=yes
3477    else
3478	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error $? "cannot run C compiled programs.
3481If you meant to cross compile, use \`--host'.
3482See \`config.log' for more details" "$LINENO" 5; }
3483    fi
3484  fi
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3487$as_echo "$cross_compiling" >&6; }
3488
3489rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3490ac_clean_files=$ac_clean_files_save
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3492$as_echo_n "checking for suffix of object files... " >&6; }
3493if ${ac_cv_objext+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497/* end confdefs.h.  */
3498
3499int
3500main ()
3501{
3502
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507rm -f conftest.o conftest.obj
3508if { { ac_try="$ac_compile"
3509case "(($ac_try" in
3510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511  *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515  (eval "$ac_compile") 2>&5
3516  ac_status=$?
3517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518  test $ac_status = 0; }; then :
3519  for ac_file in conftest.o conftest.obj conftest.*; do
3520  test -f "$ac_file" || continue;
3521  case $ac_file in
3522    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3523    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3524       break;;
3525  esac
3526done
3527else
3528  $as_echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error $? "cannot compute suffix of object files: cannot compile
3534See \`config.log' for more details" "$LINENO" 5; }
3535fi
3536rm -f conftest.$ac_cv_objext conftest.$ac_ext
3537fi
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3539$as_echo "$ac_cv_objext" >&6; }
3540OBJEXT=$ac_cv_objext
3541ac_objext=$OBJEXT
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3543$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3544if ${ac_cv_c_compiler_gnu+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553#ifndef __GNUC__
3554       choke me
3555#endif
3556
3557  ;
3558  return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562  ac_compiler_gnu=yes
3563else
3564  ac_compiler_gnu=no
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567ac_cv_c_compiler_gnu=$ac_compiler_gnu
3568
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3571$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3572if test $ac_compiler_gnu = yes; then
3573  GCC=yes
3574else
3575  GCC=
3576fi
3577ac_test_CFLAGS=${CFLAGS+set}
3578ac_save_CFLAGS=$CFLAGS
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3580$as_echo_n "checking whether $CC accepts -g... " >&6; }
3581if ${ac_cv_prog_cc_g+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  ac_save_c_werror_flag=$ac_c_werror_flag
3585   ac_c_werror_flag=yes
3586   ac_cv_prog_cc_g=no
3587   CFLAGS="-g"
3588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600  ac_cv_prog_cc_g=yes
3601else
3602  CFLAGS=""
3603      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605
3606int
3607main ()
3608{
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615
3616else
3617  ac_c_werror_flag=$ac_save_c_werror_flag
3618	 CFLAGS="-g"
3619	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621
3622int
3623main ()
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_compile "$LINENO"; then :
3631  ac_cv_prog_cc_g=yes
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638   ac_c_werror_flag=$ac_save_c_werror_flag
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3641$as_echo "$ac_cv_prog_cc_g" >&6; }
3642if test "$ac_test_CFLAGS" = set; then
3643  CFLAGS=$ac_save_CFLAGS
3644elif test $ac_cv_prog_cc_g = yes; then
3645  if test "$GCC" = yes; then
3646    CFLAGS="-g -O2"
3647  else
3648    CFLAGS="-g"
3649  fi
3650else
3651  if test "$GCC" = yes; then
3652    CFLAGS="-O2"
3653  else
3654    CFLAGS=
3655  fi
3656fi
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3658$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659if ${ac_cv_prog_cc_c89+:} false; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  ac_cv_prog_cc_c89=no
3663ac_save_CC=$CC
3664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666#include <stdarg.h>
3667#include <stdio.h>
3668#include <sys/types.h>
3669#include <sys/stat.h>
3670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3671struct buf { int x; };
3672FILE * (*rcsopen) (struct buf *, struct stat *, int);
3673static char *e (p, i)
3674     char **p;
3675     int i;
3676{
3677  return p[i];
3678}
3679static char *f (char * (*g) (char **, int), char **p, ...)
3680{
3681  char *s;
3682  va_list v;
3683  va_start (v,p);
3684  s = g (p, va_arg (v,int));
3685  va_end (v);
3686  return s;
3687}
3688
3689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3690   function prototypes and stuff, but not '\xHH' hex character constants.
3691   These don't provoke an error unfortunately, instead are silently treated
3692   as 'x'.  The following induces an error, until -std is added to get
3693   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3694   array size at least.  It's necessary to write '\x00'==0 to get something
3695   that's true only with -std.  */
3696int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3697
3698/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3699   inside strings and character constants.  */
3700#define FOO(x) 'x'
3701int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3702
3703int test (int i, double x);
3704struct s1 {int (*f) (int a);};
3705struct s2 {int (*f) (double a);};
3706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707int argc;
3708char **argv;
3709int
3710main ()
3711{
3712return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3718	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3719do
3720  CC="$ac_save_CC $ac_arg"
3721  if ac_fn_c_try_compile "$LINENO"; then :
3722  ac_cv_prog_cc_c89=$ac_arg
3723fi
3724rm -f core conftest.err conftest.$ac_objext
3725  test "x$ac_cv_prog_cc_c89" != "xno" && break
3726done
3727rm -f conftest.$ac_ext
3728CC=$ac_save_CC
3729
3730fi
3731# AC_CACHE_VAL
3732case "x$ac_cv_prog_cc_c89" in
3733  x)
3734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735$as_echo "none needed" >&6; } ;;
3736  xno)
3737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738$as_echo "unsupported" >&6; } ;;
3739  *)
3740    CC="$CC $ac_cv_prog_cc_c89"
3741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3742$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3743esac
3744if test "x$ac_cv_prog_cc_c89" != xno; then :
3745
3746fi
3747
3748ac_ext=c
3749ac_cpp='$CPP $CPPFLAGS'
3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754depcc="$CC"   am_compiler_list=
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3757$as_echo_n "checking dependency style of $depcc... " >&6; }
3758if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3762  # We make a subdir and do the tests there.  Otherwise we can end up
3763  # making bogus files that we don't know about and never remove.  For
3764  # instance it was reported that on HP-UX the gcc test will end up
3765  # making a dummy file named `D' -- because `-MD' means `put the output
3766  # in D'.
3767  rm -rf conftest.dir
3768  mkdir conftest.dir
3769  # Copy depcomp to subdir because otherwise we won't find it if we're
3770  # using a relative directory.
3771  cp "$am_depcomp" conftest.dir
3772  cd conftest.dir
3773  # We will build objects and dependencies in a subdirectory because
3774  # it helps to detect inapplicable dependency modes.  For instance
3775  # both Tru64's cc and ICC support -MD to output dependencies as a
3776  # side effect of compilation, but ICC will put the dependencies in
3777  # the current directory while Tru64 will put them in the object
3778  # directory.
3779  mkdir sub
3780
3781  am_cv_CC_dependencies_compiler_type=none
3782  if test "$am_compiler_list" = ""; then
3783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784  fi
3785  am__universal=false
3786  case " $depcc " in #(
3787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788     esac
3789
3790  for depmode in $am_compiler_list; do
3791    # Setup a source with many dependencies, because some compilers
3792    # like to wrap large dependency lists on column 80 (with \), and
3793    # we should not choose a depcomp mode which is confused by this.
3794    #
3795    # We need to recreate these files for each test, as the compiler may
3796    # overwrite some of them when testing with obscure command lines.
3797    # This happens at least with the AIX C compiler.
3798    : > sub/conftest.c
3799    for i in 1 2 3 4 5 6; do
3800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802      # Solaris 8's {/usr,}/bin/sh.
3803      touch sub/conftst$i.h
3804    done
3805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808    # mode.  It turns out that the SunPro C++ compiler does not properly
3809    # handle `-M -o', and we need to detect this.  Also, some Intel
3810    # versions had trouble with output in subdirs
3811    am__obj=sub/conftest.${OBJEXT-o}
3812    am__minus_obj="-o $am__obj"
3813    case $depmode in
3814    gcc)
3815      # This depmode causes a compiler race in universal mode.
3816      test "$am__universal" = false || continue
3817      ;;
3818    nosideeffect)
3819      # after this tag, mechanisms are not by side-effect, so they'll
3820      # only be used when explicitly requested
3821      if test "x$enable_dependency_tracking" = xyes; then
3822	continue
3823      else
3824	break
3825      fi
3826      ;;
3827    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3828      # This compiler won't grok `-c -o', but also, the minuso test has
3829      # not run yet.  These depmodes are late enough in the game, and
3830      # so weak that their functioning should not be impacted.
3831      am__obj=conftest.${OBJEXT-o}
3832      am__minus_obj=
3833      ;;
3834    none) break ;;
3835    esac
3836    if depmode=$depmode \
3837       source=sub/conftest.c object=$am__obj \
3838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840         >/dev/null 2>conftest.err &&
3841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845      # icc doesn't choke on unknown options, it will just issue warnings
3846      # or remarks (even with -Werror).  So we grep stderr for any message
3847      # that says an option was ignored or not supported.
3848      # When given -MP, icc 7.0 and 7.1 complain thusly:
3849      #   icc: Command line warning: ignoring option '-M'; no argument required
3850      # The diagnosis changed in icc 8.0:
3851      #   icc: Command line remark: option '-MP' not supported
3852      if (grep 'ignoring option' conftest.err ||
3853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854        am_cv_CC_dependencies_compiler_type=$depmode
3855        break
3856      fi
3857    fi
3858  done
3859
3860  cd ..
3861  rm -rf conftest.dir
3862else
3863  am_cv_CC_dependencies_compiler_type=none
3864fi
3865
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871 if
3872  test "x$enable_dependency_tracking" != xno \
3873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874  am__fastdepCC_TRUE=
3875  am__fastdepCC_FALSE='#'
3876else
3877  am__fastdepCC_TRUE='#'
3878  am__fastdepCC_FALSE=
3879fi
3880
3881
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3883$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3884if ${ac_cv_path_SED+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3888     for ac_i in 1 2 3 4 5 6 7; do
3889       ac_script="$ac_script$as_nl$ac_script"
3890     done
3891     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3892     { ac_script=; unset ac_script;}
3893     if test -z "$SED"; then
3894  ac_path_SED_found=false
3895  # Loop through the user's path and test for each of PROGNAME-LIST
3896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899  IFS=$as_save_IFS
3900  test -z "$as_dir" && as_dir=.
3901    for ac_prog in sed gsed; do
3902    for ac_exec_ext in '' $ac_executable_extensions; do
3903      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3904      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3905# Check for GNU ac_path_SED and select it if it is found.
3906  # Check for GNU $ac_path_SED
3907case `"$ac_path_SED" --version 2>&1` in
3908*GNU*)
3909  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3910*)
3911  ac_count=0
3912  $as_echo_n 0123456789 >"conftest.in"
3913  while :
3914  do
3915    cat "conftest.in" "conftest.in" >"conftest.tmp"
3916    mv "conftest.tmp" "conftest.in"
3917    cp "conftest.in" "conftest.nl"
3918    $as_echo '' >> "conftest.nl"
3919    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921    as_fn_arith $ac_count + 1 && ac_count=$as_val
3922    if test $ac_count -gt ${ac_path_SED_max-0}; then
3923      # Best one so far, save it but keep looking for a better one
3924      ac_cv_path_SED="$ac_path_SED"
3925      ac_path_SED_max=$ac_count
3926    fi
3927    # 10*(2^10) chars as input seems more than enough
3928    test $ac_count -gt 10 && break
3929  done
3930  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3931esac
3932
3933      $ac_path_SED_found && break 3
3934    done
3935  done
3936  done
3937IFS=$as_save_IFS
3938  if test -z "$ac_cv_path_SED"; then
3939    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3940  fi
3941else
3942  ac_cv_path_SED=$SED
3943fi
3944
3945fi
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3947$as_echo "$ac_cv_path_SED" >&6; }
3948 SED="$ac_cv_path_SED"
3949  rm -f conftest.sed
3950
3951test -z "$SED" && SED=sed
3952Xsed="$SED -e 1s/^X//"
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3965$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3966if ${ac_cv_path_GREP+:} false; then :
3967  $as_echo_n "(cached) " >&6
3968else
3969  if test -z "$GREP"; then
3970  ac_path_GREP_found=false
3971  # Loop through the user's path and test for each of PROGNAME-LIST
3972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974do
3975  IFS=$as_save_IFS
3976  test -z "$as_dir" && as_dir=.
3977    for ac_prog in grep ggrep; do
3978    for ac_exec_ext in '' $ac_executable_extensions; do
3979      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3981# Check for GNU ac_path_GREP and select it if it is found.
3982  # Check for GNU $ac_path_GREP
3983case `"$ac_path_GREP" --version 2>&1` in
3984*GNU*)
3985  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986*)
3987  ac_count=0
3988  $as_echo_n 0123456789 >"conftest.in"
3989  while :
3990  do
3991    cat "conftest.in" "conftest.in" >"conftest.tmp"
3992    mv "conftest.tmp" "conftest.in"
3993    cp "conftest.in" "conftest.nl"
3994    $as_echo 'GREP' >> "conftest.nl"
3995    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997    as_fn_arith $ac_count + 1 && ac_count=$as_val
3998    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999      # Best one so far, save it but keep looking for a better one
4000      ac_cv_path_GREP="$ac_path_GREP"
4001      ac_path_GREP_max=$ac_count
4002    fi
4003    # 10*(2^10) chars as input seems more than enough
4004    test $ac_count -gt 10 && break
4005  done
4006  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007esac
4008
4009      $ac_path_GREP_found && break 3
4010    done
4011  done
4012  done
4013IFS=$as_save_IFS
4014  if test -z "$ac_cv_path_GREP"; then
4015    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4016  fi
4017else
4018  ac_cv_path_GREP=$GREP
4019fi
4020
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4023$as_echo "$ac_cv_path_GREP" >&6; }
4024 GREP="$ac_cv_path_GREP"
4025
4026
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4028$as_echo_n "checking for egrep... " >&6; }
4029if ${ac_cv_path_EGREP+:} false; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4033   then ac_cv_path_EGREP="$GREP -E"
4034   else
4035     if test -z "$EGREP"; then
4036  ac_path_EGREP_found=false
4037  # Loop through the user's path and test for each of PROGNAME-LIST
4038  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4040do
4041  IFS=$as_save_IFS
4042  test -z "$as_dir" && as_dir=.
4043    for ac_prog in egrep; do
4044    for ac_exec_ext in '' $ac_executable_extensions; do
4045      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4046      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4047# Check for GNU ac_path_EGREP and select it if it is found.
4048  # Check for GNU $ac_path_EGREP
4049case `"$ac_path_EGREP" --version 2>&1` in
4050*GNU*)
4051  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4052*)
4053  ac_count=0
4054  $as_echo_n 0123456789 >"conftest.in"
4055  while :
4056  do
4057    cat "conftest.in" "conftest.in" >"conftest.tmp"
4058    mv "conftest.tmp" "conftest.in"
4059    cp "conftest.in" "conftest.nl"
4060    $as_echo 'EGREP' >> "conftest.nl"
4061    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4062    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4063    as_fn_arith $ac_count + 1 && ac_count=$as_val
4064    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4065      # Best one so far, save it but keep looking for a better one
4066      ac_cv_path_EGREP="$ac_path_EGREP"
4067      ac_path_EGREP_max=$ac_count
4068    fi
4069    # 10*(2^10) chars as input seems more than enough
4070    test $ac_count -gt 10 && break
4071  done
4072  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4073esac
4074
4075      $ac_path_EGREP_found && break 3
4076    done
4077  done
4078  done
4079IFS=$as_save_IFS
4080  if test -z "$ac_cv_path_EGREP"; then
4081    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4082  fi
4083else
4084  ac_cv_path_EGREP=$EGREP
4085fi
4086
4087   fi
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4090$as_echo "$ac_cv_path_EGREP" >&6; }
4091 EGREP="$ac_cv_path_EGREP"
4092
4093
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4095$as_echo_n "checking for fgrep... " >&6; }
4096if ${ac_cv_path_FGREP+:} false; then :
4097  $as_echo_n "(cached) " >&6
4098else
4099  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4100   then ac_cv_path_FGREP="$GREP -F"
4101   else
4102     if test -z "$FGREP"; then
4103  ac_path_FGREP_found=false
4104  # Loop through the user's path and test for each of PROGNAME-LIST
4105  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107do
4108  IFS=$as_save_IFS
4109  test -z "$as_dir" && as_dir=.
4110    for ac_prog in fgrep; do
4111    for ac_exec_ext in '' $ac_executable_extensions; do
4112      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4113      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4114# Check for GNU ac_path_FGREP and select it if it is found.
4115  # Check for GNU $ac_path_FGREP
4116case `"$ac_path_FGREP" --version 2>&1` in
4117*GNU*)
4118  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4119*)
4120  ac_count=0
4121  $as_echo_n 0123456789 >"conftest.in"
4122  while :
4123  do
4124    cat "conftest.in" "conftest.in" >"conftest.tmp"
4125    mv "conftest.tmp" "conftest.in"
4126    cp "conftest.in" "conftest.nl"
4127    $as_echo 'FGREP' >> "conftest.nl"
4128    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4129    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4130    as_fn_arith $ac_count + 1 && ac_count=$as_val
4131    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4132      # Best one so far, save it but keep looking for a better one
4133      ac_cv_path_FGREP="$ac_path_FGREP"
4134      ac_path_FGREP_max=$ac_count
4135    fi
4136    # 10*(2^10) chars as input seems more than enough
4137    test $ac_count -gt 10 && break
4138  done
4139  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140esac
4141
4142      $ac_path_FGREP_found && break 3
4143    done
4144  done
4145  done
4146IFS=$as_save_IFS
4147  if test -z "$ac_cv_path_FGREP"; then
4148    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4149  fi
4150else
4151  ac_cv_path_FGREP=$FGREP
4152fi
4153
4154   fi
4155fi
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4157$as_echo "$ac_cv_path_FGREP" >&6; }
4158 FGREP="$ac_cv_path_FGREP"
4159
4160
4161test -z "$GREP" && GREP=grep
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181# Check whether --with-gnu-ld was given.
4182if test "${with_gnu_ld+set}" = set; then :
4183  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4184else
4185  with_gnu_ld=no
4186fi
4187
4188ac_prog=ld
4189if test "$GCC" = yes; then
4190  # Check if gcc -print-prog-name=ld gives a path.
4191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4192$as_echo_n "checking for ld used by $CC... " >&6; }
4193  case $host in
4194  *-*-mingw*)
4195    # gcc leaves a trailing carriage return which upsets mingw
4196    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4197  *)
4198    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4199  esac
4200  case $ac_prog in
4201    # Accept absolute paths.
4202    [\\/]* | ?:[\\/]*)
4203      re_direlt='/[^/][^/]*/\.\./'
4204      # Canonicalize the pathname of ld
4205      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4206      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4207	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4208      done
4209      test -z "$LD" && LD="$ac_prog"
4210      ;;
4211  "")
4212    # If it fails, then pretend we aren't using GCC.
4213    ac_prog=ld
4214    ;;
4215  *)
4216    # If it is relative, then search for the first ld in PATH.
4217    with_gnu_ld=unknown
4218    ;;
4219  esac
4220elif test "$with_gnu_ld" = yes; then
4221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4222$as_echo_n "checking for GNU ld... " >&6; }
4223else
4224  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4225$as_echo_n "checking for non-GNU ld... " >&6; }
4226fi
4227if ${lt_cv_path_LD+:} false; then :
4228  $as_echo_n "(cached) " >&6
4229else
4230  if test -z "$LD"; then
4231  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4232  for ac_dir in $PATH; do
4233    IFS="$lt_save_ifs"
4234    test -z "$ac_dir" && ac_dir=.
4235    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4236      lt_cv_path_LD="$ac_dir/$ac_prog"
4237      # Check to see if the program is GNU ld.  I'd rather use --version,
4238      # but apparently some variants of GNU ld only accept -v.
4239      # Break only if it was the GNU/non-GNU ld that we prefer.
4240      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4241      *GNU* | *'with BFD'*)
4242	test "$with_gnu_ld" != no && break
4243	;;
4244      *)
4245	test "$with_gnu_ld" != yes && break
4246	;;
4247      esac
4248    fi
4249  done
4250  IFS="$lt_save_ifs"
4251else
4252  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4253fi
4254fi
4255
4256LD="$lt_cv_path_LD"
4257if test -n "$LD"; then
4258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4259$as_echo "$LD" >&6; }
4260else
4261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262$as_echo "no" >&6; }
4263fi
4264test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4266$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4267if ${lt_cv_prog_gnu_ld+:} false; then :
4268  $as_echo_n "(cached) " >&6
4269else
4270  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4271case `$LD -v 2>&1 </dev/null` in
4272*GNU* | *'with BFD'*)
4273  lt_cv_prog_gnu_ld=yes
4274  ;;
4275*)
4276  lt_cv_prog_gnu_ld=no
4277  ;;
4278esac
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4281$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4282with_gnu_ld=$lt_cv_prog_gnu_ld
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4293$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4294if ${lt_cv_path_NM+:} false; then :
4295  $as_echo_n "(cached) " >&6
4296else
4297  if test -n "$NM"; then
4298  # Let the user override the test.
4299  lt_cv_path_NM="$NM"
4300else
4301  lt_nm_to_check="${ac_tool_prefix}nm"
4302  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4303    lt_nm_to_check="$lt_nm_to_check nm"
4304  fi
4305  for lt_tmp_nm in $lt_nm_to_check; do
4306    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4307    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4308      IFS="$lt_save_ifs"
4309      test -z "$ac_dir" && ac_dir=.
4310      tmp_nm="$ac_dir/$lt_tmp_nm"
4311      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4312	# Check to see if the nm accepts a BSD-compat flag.
4313	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4314	#   nm: unknown option "B" ignored
4315	# Tru64's nm complains that /dev/null is an invalid object file
4316	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4317	*/dev/null* | *'Invalid file or object type'*)
4318	  lt_cv_path_NM="$tmp_nm -B"
4319	  break
4320	  ;;
4321	*)
4322	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4323	  */dev/null*)
4324	    lt_cv_path_NM="$tmp_nm -p"
4325	    break
4326	    ;;
4327	  *)
4328	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4329	    continue # so that we can try to find one that supports BSD flags
4330	    ;;
4331	  esac
4332	  ;;
4333	esac
4334      fi
4335    done
4336    IFS="$lt_save_ifs"
4337  done
4338  : ${lt_cv_path_NM=no}
4339fi
4340fi
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4342$as_echo "$lt_cv_path_NM" >&6; }
4343if test "$lt_cv_path_NM" != "no"; then
4344  NM="$lt_cv_path_NM"
4345else
4346  # Didn't find any BSD compatible name lister, look for dumpbin.
4347  if test -n "$DUMPBIN"; then :
4348    # Let the user override the test.
4349  else
4350    if test -n "$ac_tool_prefix"; then
4351  for ac_prog in dumpbin "link -dump"
4352  do
4353    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4354set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356$as_echo_n "checking for $ac_word... " >&6; }
4357if ${ac_cv_prog_DUMPBIN+:} false; then :
4358  $as_echo_n "(cached) " >&6
4359else
4360  if test -n "$DUMPBIN"; then
4361  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368    for ac_exec_ext in '' $ac_executable_extensions; do
4369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372    break 2
4373  fi
4374done
4375  done
4376IFS=$as_save_IFS
4377
4378fi
4379fi
4380DUMPBIN=$ac_cv_prog_DUMPBIN
4381if test -n "$DUMPBIN"; then
4382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4383$as_echo "$DUMPBIN" >&6; }
4384else
4385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
4387fi
4388
4389
4390    test -n "$DUMPBIN" && break
4391  done
4392fi
4393if test -z "$DUMPBIN"; then
4394  ac_ct_DUMPBIN=$DUMPBIN
4395  for ac_prog in dumpbin "link -dump"
4396do
4397  # Extract the first word of "$ac_prog", so it can be a program name with args.
4398set dummy $ac_prog; ac_word=$2
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400$as_echo_n "checking for $ac_word... " >&6; }
4401if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  if test -n "$ac_ct_DUMPBIN"; then
4405  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_exec_ext in '' $ac_executable_extensions; do
4413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416    break 2
4417  fi
4418done
4419  done
4420IFS=$as_save_IFS
4421
4422fi
4423fi
4424ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4425if test -n "$ac_ct_DUMPBIN"; then
4426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4427$as_echo "$ac_ct_DUMPBIN" >&6; }
4428else
4429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430$as_echo "no" >&6; }
4431fi
4432
4433
4434  test -n "$ac_ct_DUMPBIN" && break
4435done
4436
4437  if test "x$ac_ct_DUMPBIN" = x; then
4438    DUMPBIN=":"
4439  else
4440    case $cross_compiling:$ac_tool_warned in
4441yes:)
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444ac_tool_warned=yes ;;
4445esac
4446    DUMPBIN=$ac_ct_DUMPBIN
4447  fi
4448fi
4449
4450    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4451    *COFF*)
4452      DUMPBIN="$DUMPBIN -symbols"
4453      ;;
4454    *)
4455      DUMPBIN=:
4456      ;;
4457    esac
4458  fi
4459
4460  if test "$DUMPBIN" != ":"; then
4461    NM="$DUMPBIN"
4462  fi
4463fi
4464test -z "$NM" && NM=nm
4465
4466
4467
4468
4469
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4472$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4473if ${lt_cv_nm_interface+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  lt_cv_nm_interface="BSD nm"
4477  echo "int some_variable = 0;" > conftest.$ac_ext
4478  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4479  (eval "$ac_compile" 2>conftest.err)
4480  cat conftest.err >&5
4481  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4482  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4483  cat conftest.err >&5
4484  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4485  cat conftest.out >&5
4486  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4487    lt_cv_nm_interface="MS dumpbin"
4488  fi
4489  rm -f conftest*
4490fi
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4492$as_echo "$lt_cv_nm_interface" >&6; }
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4495$as_echo_n "checking whether ln -s works... " >&6; }
4496LN_S=$as_ln_s
4497if test "$LN_S" = "ln -s"; then
4498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4499$as_echo "yes" >&6; }
4500else
4501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4502$as_echo "no, using $LN_S" >&6; }
4503fi
4504
4505# find the maximum length of command line arguments
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4507$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4508if ${lt_cv_sys_max_cmd_len+:} false; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511    i=0
4512  teststring="ABCD"
4513
4514  case $build_os in
4515  msdosdjgpp*)
4516    # On DJGPP, this test can blow up pretty badly due to problems in libc
4517    # (any single argument exceeding 2000 bytes causes a buffer overrun
4518    # during glob expansion).  Even if it were fixed, the result of this
4519    # check would be larger than it should be.
4520    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4521    ;;
4522
4523  gnu*)
4524    # Under GNU Hurd, this test is not required because there is
4525    # no limit to the length of command line arguments.
4526    # Libtool will interpret -1 as no limit whatsoever
4527    lt_cv_sys_max_cmd_len=-1;
4528    ;;
4529
4530  cygwin* | mingw* | cegcc*)
4531    # On Win9x/ME, this test blows up -- it succeeds, but takes
4532    # about 5 minutes as the teststring grows exponentially.
4533    # Worse, since 9x/ME are not pre-emptively multitasking,
4534    # you end up with a "frozen" computer, even though with patience
4535    # the test eventually succeeds (with a max line length of 256k).
4536    # Instead, let's just punt: use the minimum linelength reported by
4537    # all of the supported platforms: 8192 (on NT/2K/XP).
4538    lt_cv_sys_max_cmd_len=8192;
4539    ;;
4540
4541  mint*)
4542    # On MiNT this can take a long time and run out of memory.
4543    lt_cv_sys_max_cmd_len=8192;
4544    ;;
4545
4546  amigaos*)
4547    # On AmigaOS with pdksh, this test takes hours, literally.
4548    # So we just punt and use a minimum line length of 8192.
4549    lt_cv_sys_max_cmd_len=8192;
4550    ;;
4551
4552  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4553    # This has been around since 386BSD, at least.  Likely further.
4554    if test -x /sbin/sysctl; then
4555      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4556    elif test -x /usr/sbin/sysctl; then
4557      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4558    else
4559      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4560    fi
4561    # And add a safety zone
4562    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4563    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4564    ;;
4565
4566  interix*)
4567    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4568    lt_cv_sys_max_cmd_len=196608
4569    ;;
4570
4571  os2*)
4572    # The test takes a long time on OS/2.
4573    lt_cv_sys_max_cmd_len=8192
4574    ;;
4575
4576  osf*)
4577    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4578    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4579    # nice to cause kernel panics so lets avoid the loop below.
4580    # First set a reasonable default.
4581    lt_cv_sys_max_cmd_len=16384
4582    #
4583    if test -x /sbin/sysconfig; then
4584      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4585        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4586      esac
4587    fi
4588    ;;
4589  sco3.2v5*)
4590    lt_cv_sys_max_cmd_len=102400
4591    ;;
4592  sysv5* | sco5v6* | sysv4.2uw2*)
4593    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4594    if test -n "$kargmax"; then
4595      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4596    else
4597      lt_cv_sys_max_cmd_len=32768
4598    fi
4599    ;;
4600  *)
4601    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4602    if test -n "$lt_cv_sys_max_cmd_len"; then
4603      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4604      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4605    else
4606      # Make teststring a little bigger before we do anything with it.
4607      # a 1K string should be a reasonable start.
4608      for i in 1 2 3 4 5 6 7 8 ; do
4609        teststring=$teststring$teststring
4610      done
4611      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4612      # If test is not a shell built-in, we'll probably end up computing a
4613      # maximum length that is only half of the actual maximum length, but
4614      # we can't tell.
4615      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4616	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4617	      test $i != 17 # 1/2 MB should be enough
4618      do
4619        i=`expr $i + 1`
4620        teststring=$teststring$teststring
4621      done
4622      # Only check the string length outside the loop.
4623      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4624      teststring=
4625      # Add a significant safety factor because C++ compilers can tack on
4626      # massive amounts of additional arguments before passing them to the
4627      # linker.  It appears as though 1/2 is a usable value.
4628      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4629    fi
4630    ;;
4631  esac
4632
4633fi
4634
4635if test -n $lt_cv_sys_max_cmd_len ; then
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4637$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4638else
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4640$as_echo "none" >&6; }
4641fi
4642max_cmd_len=$lt_cv_sys_max_cmd_len
4643
4644
4645
4646
4647
4648
4649: ${CP="cp -f"}
4650: ${MV="mv -f"}
4651: ${RM="rm -f"}
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4654$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4655# Try some XSI features
4656xsi_shell=no
4657( _lt_dummy="a/b/c"
4658  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4659      = c,a/b,b/c, \
4660    && eval 'test $(( 1 + 1 )) -eq 2 \
4661    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4662  && xsi_shell=yes
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4664$as_echo "$xsi_shell" >&6; }
4665
4666
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4668$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4669lt_shell_append=no
4670( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4671    >/dev/null 2>&1 \
4672  && lt_shell_append=yes
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4674$as_echo "$lt_shell_append" >&6; }
4675
4676
4677if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4678  lt_unset=unset
4679else
4680  lt_unset=false
4681fi
4682
4683
4684
4685
4686
4687# test EBCDIC or ASCII
4688case `echo X|tr X '\101'` in
4689 A) # ASCII based system
4690    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4691  lt_SP2NL='tr \040 \012'
4692  lt_NL2SP='tr \015\012 \040\040'
4693  ;;
4694 *) # EBCDIC based system
4695  lt_SP2NL='tr \100 \n'
4696  lt_NL2SP='tr \r\n \100\100'
4697  ;;
4698esac
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4709$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4710if ${lt_cv_to_host_file_cmd+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  case $host in
4714  *-*-mingw* )
4715    case $build in
4716      *-*-mingw* ) # actually msys
4717        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4718        ;;
4719      *-*-cygwin* )
4720        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4721        ;;
4722      * ) # otherwise, assume *nix
4723        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4724        ;;
4725    esac
4726    ;;
4727  *-*-cygwin* )
4728    case $build in
4729      *-*-mingw* ) # actually msys
4730        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4731        ;;
4732      *-*-cygwin* )
4733        lt_cv_to_host_file_cmd=func_convert_file_noop
4734        ;;
4735      * ) # otherwise, assume *nix
4736        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4737        ;;
4738    esac
4739    ;;
4740  * ) # unhandled hosts (and "normal" native builds)
4741    lt_cv_to_host_file_cmd=func_convert_file_noop
4742    ;;
4743esac
4744
4745fi
4746
4747to_host_file_cmd=$lt_cv_to_host_file_cmd
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4749$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4750
4751
4752
4753
4754
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4756$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4757if ${lt_cv_to_tool_file_cmd+:} false; then :
4758  $as_echo_n "(cached) " >&6
4759else
4760  #assume ordinary cross tools, or native build.
4761lt_cv_to_tool_file_cmd=func_convert_file_noop
4762case $host in
4763  *-*-mingw* )
4764    case $build in
4765      *-*-mingw* ) # actually msys
4766        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4767        ;;
4768    esac
4769    ;;
4770esac
4771
4772fi
4773
4774to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4776$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4777
4778
4779
4780
4781
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4783$as_echo_n "checking for $LD option to reload object files... " >&6; }
4784if ${lt_cv_ld_reload_flag+:} false; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787  lt_cv_ld_reload_flag='-r'
4788fi
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4790$as_echo "$lt_cv_ld_reload_flag" >&6; }
4791reload_flag=$lt_cv_ld_reload_flag
4792case $reload_flag in
4793"" | " "*) ;;
4794*) reload_flag=" $reload_flag" ;;
4795esac
4796reload_cmds='$LD$reload_flag -o $output$reload_objs'
4797case $host_os in
4798  cygwin* | mingw* | pw32* | cegcc*)
4799    if test "$GCC" != yes; then
4800      reload_cmds=false
4801    fi
4802    ;;
4803  darwin*)
4804    if test "$GCC" = yes; then
4805      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4806    else
4807      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4808    fi
4809    ;;
4810esac
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820if test -n "$ac_tool_prefix"; then
4821  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4822set dummy ${ac_tool_prefix}objdump; ac_word=$2
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824$as_echo_n "checking for $ac_word... " >&6; }
4825if ${ac_cv_prog_OBJDUMP+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  if test -n "$OBJDUMP"; then
4829  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843  done
4844IFS=$as_save_IFS
4845
4846fi
4847fi
4848OBJDUMP=$ac_cv_prog_OBJDUMP
4849if test -n "$OBJDUMP"; then
4850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4851$as_echo "$OBJDUMP" >&6; }
4852else
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855fi
4856
4857
4858fi
4859if test -z "$ac_cv_prog_OBJDUMP"; then
4860  ac_ct_OBJDUMP=$OBJDUMP
4861  # Extract the first word of "objdump", so it can be a program name with args.
4862set dummy objdump; ac_word=$2
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864$as_echo_n "checking for $ac_word... " >&6; }
4865if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  if test -n "$ac_ct_OBJDUMP"; then
4869  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874  IFS=$as_save_IFS
4875  test -z "$as_dir" && as_dir=.
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880    break 2
4881  fi
4882done
4883  done
4884IFS=$as_save_IFS
4885
4886fi
4887fi
4888ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4889if test -n "$ac_ct_OBJDUMP"; then
4890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4891$as_echo "$ac_ct_OBJDUMP" >&6; }
4892else
4893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894$as_echo "no" >&6; }
4895fi
4896
4897  if test "x$ac_ct_OBJDUMP" = x; then
4898    OBJDUMP="false"
4899  else
4900    case $cross_compiling:$ac_tool_warned in
4901yes:)
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4904ac_tool_warned=yes ;;
4905esac
4906    OBJDUMP=$ac_ct_OBJDUMP
4907  fi
4908else
4909  OBJDUMP="$ac_cv_prog_OBJDUMP"
4910fi
4911
4912test -z "$OBJDUMP" && OBJDUMP=objdump
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4923$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4924if ${lt_cv_deplibs_check_method+:} false; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927  lt_cv_file_magic_cmd='$MAGIC_CMD'
4928lt_cv_file_magic_test_file=
4929lt_cv_deplibs_check_method='unknown'
4930# Need to set the preceding variable on all platforms that support
4931# interlibrary dependencies.
4932# 'none' -- dependencies not supported.
4933# `unknown' -- same as none, but documents that we really don't know.
4934# 'pass_all' -- all dependencies passed with no checks.
4935# 'test_compile' -- check by making test program.
4936# 'file_magic [[regex]]' -- check by looking for files in library path
4937# which responds to the $file_magic_cmd with a given extended regex.
4938# If you have `file' or equivalent on your system and you're not sure
4939# whether `pass_all' will *always* work, you probably want this one.
4940
4941case $host_os in
4942aix[4-9]*)
4943  lt_cv_deplibs_check_method=pass_all
4944  ;;
4945
4946beos*)
4947  lt_cv_deplibs_check_method=pass_all
4948  ;;
4949
4950bsdi[45]*)
4951  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4952  lt_cv_file_magic_cmd='/usr/bin/file -L'
4953  lt_cv_file_magic_test_file=/shlib/libc.so
4954  ;;
4955
4956cygwin*)
4957  # func_win32_libid is a shell function defined in ltmain.sh
4958  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959  lt_cv_file_magic_cmd='func_win32_libid'
4960  ;;
4961
4962mingw* | pw32*)
4963  # Base MSYS/MinGW do not provide the 'file' command needed by
4964  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4965  # unless we find 'file', for example because we are cross-compiling.
4966  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4967  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4968    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4969    lt_cv_file_magic_cmd='func_win32_libid'
4970  else
4971    # Keep this pattern in sync with the one in func_win32_libid.
4972    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4973    lt_cv_file_magic_cmd='$OBJDUMP -f'
4974  fi
4975  ;;
4976
4977cegcc*)
4978  # use the weaker test based on 'objdump'. See mingw*.
4979  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4980  lt_cv_file_magic_cmd='$OBJDUMP -f'
4981  ;;
4982
4983darwin* | rhapsody*)
4984  lt_cv_deplibs_check_method=pass_all
4985  ;;
4986
4987freebsd* | dragonfly*)
4988  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4989    case $host_cpu in
4990    i*86 )
4991      # Not sure whether the presence of OpenBSD here was a mistake.
4992      # Let's accept both of them until this is cleared up.
4993      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4994      lt_cv_file_magic_cmd=/usr/bin/file
4995      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4996      ;;
4997    esac
4998  else
4999    lt_cv_deplibs_check_method=pass_all
5000  fi
5001  ;;
5002
5003gnu*)
5004  lt_cv_deplibs_check_method=pass_all
5005  ;;
5006
5007haiku*)
5008  lt_cv_deplibs_check_method=pass_all
5009  ;;
5010
5011hpux10.20* | hpux11*)
5012  lt_cv_file_magic_cmd=/usr/bin/file
5013  case $host_cpu in
5014  ia64*)
5015    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5016    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5017    ;;
5018  hppa*64*)
5019    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]'
5020    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5021    ;;
5022  *)
5023    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5024    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5025    ;;
5026  esac
5027  ;;
5028
5029interix[3-9]*)
5030  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5031  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5032  ;;
5033
5034irix5* | irix6* | nonstopux*)
5035  case $LD in
5036  *-32|*"-32 ") libmagic=32-bit;;
5037  *-n32|*"-n32 ") libmagic=N32;;
5038  *-64|*"-64 ") libmagic=64-bit;;
5039  *) libmagic=never-match;;
5040  esac
5041  lt_cv_deplibs_check_method=pass_all
5042  ;;
5043
5044# This must be glibc/ELF.
5045linux* | k*bsd*-gnu | kopensolaris*-gnu)
5046  lt_cv_deplibs_check_method=pass_all
5047  ;;
5048
5049netbsd*)
5050  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5051    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5052  else
5053    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5054  fi
5055  ;;
5056
5057newos6*)
5058  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5059  lt_cv_file_magic_cmd=/usr/bin/file
5060  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5061  ;;
5062
5063*nto* | *qnx*)
5064  lt_cv_deplibs_check_method=pass_all
5065  ;;
5066
5067openbsd*)
5068  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5069    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5070  else
5071    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5072  fi
5073  ;;
5074
5075osf3* | osf4* | osf5*)
5076  lt_cv_deplibs_check_method=pass_all
5077  ;;
5078
5079rdos*)
5080  lt_cv_deplibs_check_method=pass_all
5081  ;;
5082
5083solaris*)
5084  lt_cv_deplibs_check_method=pass_all
5085  ;;
5086
5087sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5088  lt_cv_deplibs_check_method=pass_all
5089  ;;
5090
5091sysv4 | sysv4.3*)
5092  case $host_vendor in
5093  motorola)
5094    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]'
5095    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5096    ;;
5097  ncr)
5098    lt_cv_deplibs_check_method=pass_all
5099    ;;
5100  sequent)
5101    lt_cv_file_magic_cmd='/bin/file'
5102    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5103    ;;
5104  sni)
5105    lt_cv_file_magic_cmd='/bin/file'
5106    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5107    lt_cv_file_magic_test_file=/lib/libc.so
5108    ;;
5109  siemens)
5110    lt_cv_deplibs_check_method=pass_all
5111    ;;
5112  pc)
5113    lt_cv_deplibs_check_method=pass_all
5114    ;;
5115  esac
5116  ;;
5117
5118tpf*)
5119  lt_cv_deplibs_check_method=pass_all
5120  ;;
5121esac
5122
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5125$as_echo "$lt_cv_deplibs_check_method" >&6; }
5126
5127file_magic_glob=
5128want_nocaseglob=no
5129if test "$build" = "$host"; then
5130  case $host_os in
5131  mingw* | pw32*)
5132    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5133      want_nocaseglob=yes
5134    else
5135      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5136    fi
5137    ;;
5138  esac
5139fi
5140
5141file_magic_cmd=$lt_cv_file_magic_cmd
5142deplibs_check_method=$lt_cv_deplibs_check_method
5143test -z "$deplibs_check_method" && deplibs_check_method=unknown
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166if test -n "$ac_tool_prefix"; then
5167  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5168set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if ${ac_cv_prog_DLLTOOL+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  if test -n "$DLLTOOL"; then
5175  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  test -z "$as_dir" && as_dir=.
5182    for ac_exec_ext in '' $ac_executable_extensions; do
5183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186    break 2
5187  fi
5188done
5189  done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194DLLTOOL=$ac_cv_prog_DLLTOOL
5195if test -n "$DLLTOOL"; then
5196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5197$as_echo "$DLLTOOL" >&6; }
5198else
5199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201fi
5202
5203
5204fi
5205if test -z "$ac_cv_prog_DLLTOOL"; then
5206  ac_ct_DLLTOOL=$DLLTOOL
5207  # Extract the first word of "dlltool", so it can be a program name with args.
5208set dummy dlltool; ac_word=$2
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210$as_echo_n "checking for $ac_word... " >&6; }
5211if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  if test -n "$ac_ct_DLLTOOL"; then
5215  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220  IFS=$as_save_IFS
5221  test -z "$as_dir" && as_dir=.
5222    for ac_exec_ext in '' $ac_executable_extensions; do
5223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226    break 2
5227  fi
5228done
5229  done
5230IFS=$as_save_IFS
5231
5232fi
5233fi
5234ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5235if test -n "$ac_ct_DLLTOOL"; then
5236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5237$as_echo "$ac_ct_DLLTOOL" >&6; }
5238else
5239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240$as_echo "no" >&6; }
5241fi
5242
5243  if test "x$ac_ct_DLLTOOL" = x; then
5244    DLLTOOL="false"
5245  else
5246    case $cross_compiling:$ac_tool_warned in
5247yes:)
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5250ac_tool_warned=yes ;;
5251esac
5252    DLLTOOL=$ac_ct_DLLTOOL
5253  fi
5254else
5255  DLLTOOL="$ac_cv_prog_DLLTOOL"
5256fi
5257
5258test -z "$DLLTOOL" && DLLTOOL=dlltool
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5270$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5271if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5272  $as_echo_n "(cached) " >&6
5273else
5274  lt_cv_sharedlib_from_linklib_cmd='unknown'
5275
5276case $host_os in
5277cygwin* | mingw* | pw32* | cegcc*)
5278  # two different shell functions defined in ltmain.sh
5279  # decide which to use based on capabilities of $DLLTOOL
5280  case `$DLLTOOL --help 2>&1` in
5281  *--identify-strict*)
5282    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5283    ;;
5284  *)
5285    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5286    ;;
5287  esac
5288  ;;
5289*)
5290  # fallback: assume linklib IS sharedlib
5291  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5292  ;;
5293esac
5294
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5297$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5298sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5299test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5300
5301
5302
5303
5304
5305
5306
5307
5308if test -n "$ac_tool_prefix"; then
5309  for ac_prog in ar
5310  do
5311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314$as_echo_n "checking for $ac_word... " >&6; }
5315if ${ac_cv_prog_AR+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  if test -n "$AR"; then
5319  ac_cv_prog_AR="$AR" # Let the user override the test.
5320else
5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322for as_dir in $PATH
5323do
5324  IFS=$as_save_IFS
5325  test -z "$as_dir" && as_dir=.
5326    for ac_exec_ext in '' $ac_executable_extensions; do
5327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330    break 2
5331  fi
5332done
5333  done
5334IFS=$as_save_IFS
5335
5336fi
5337fi
5338AR=$ac_cv_prog_AR
5339if test -n "$AR"; then
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5341$as_echo "$AR" >&6; }
5342else
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344$as_echo "no" >&6; }
5345fi
5346
5347
5348    test -n "$AR" && break
5349  done
5350fi
5351if test -z "$AR"; then
5352  ac_ct_AR=$AR
5353  for ac_prog in ar
5354do
5355  # Extract the first word of "$ac_prog", so it can be a program name with args.
5356set dummy $ac_prog; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if ${ac_cv_prog_ac_ct_AR+:} false; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$ac_ct_AR"; then
5363  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372    ac_cv_prog_ac_ct_AR="$ac_prog"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382ac_ct_AR=$ac_cv_prog_ac_ct_AR
5383if test -n "$ac_ct_AR"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5385$as_echo "$ac_ct_AR" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392  test -n "$ac_ct_AR" && break
5393done
5394
5395  if test "x$ac_ct_AR" = x; then
5396    AR="false"
5397  else
5398    case $cross_compiling:$ac_tool_warned in
5399yes:)
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402ac_tool_warned=yes ;;
5403esac
5404    AR=$ac_ct_AR
5405  fi
5406fi
5407
5408: ${AR=ar}
5409: ${AR_FLAGS=cru}
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5422$as_echo_n "checking for archiver @FILE support... " >&6; }
5423if ${lt_cv_ar_at_file+:} false; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426  lt_cv_ar_at_file=no
5427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429
5430int
5431main ()
5432{
5433
5434  ;
5435  return 0;
5436}
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"; then :
5439  echo conftest.$ac_objext > conftest.lst
5440      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5441      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5442  (eval $lt_ar_try) 2>&5
5443  ac_status=$?
5444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445  test $ac_status = 0; }
5446      if test "$ac_status" -eq 0; then
5447	# Ensure the archiver fails upon bogus file names.
5448	rm -f conftest.$ac_objext libconftest.a
5449	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5450  (eval $lt_ar_try) 2>&5
5451  ac_status=$?
5452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5453  test $ac_status = 0; }
5454	if test "$ac_status" -ne 0; then
5455          lt_cv_ar_at_file=@
5456        fi
5457      fi
5458      rm -f conftest.* libconftest.a
5459
5460fi
5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462
5463fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5465$as_echo "$lt_cv_ar_at_file" >&6; }
5466
5467if test "x$lt_cv_ar_at_file" = xno; then
5468  archiver_list_spec=
5469else
5470  archiver_list_spec=$lt_cv_ar_at_file
5471fi
5472
5473
5474
5475
5476
5477
5478
5479if test -n "$ac_tool_prefix"; then
5480  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5481set dummy ${ac_tool_prefix}strip; ac_word=$2
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483$as_echo_n "checking for $ac_word... " >&6; }
5484if ${ac_cv_prog_STRIP+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  if test -n "$STRIP"; then
5488  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5489else
5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493  IFS=$as_save_IFS
5494  test -z "$as_dir" && as_dir=.
5495    for ac_exec_ext in '' $ac_executable_extensions; do
5496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499    break 2
5500  fi
5501done
5502  done
5503IFS=$as_save_IFS
5504
5505fi
5506fi
5507STRIP=$ac_cv_prog_STRIP
5508if test -n "$STRIP"; then
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5510$as_echo "$STRIP" >&6; }
5511else
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513$as_echo "no" >&6; }
5514fi
5515
5516
5517fi
5518if test -z "$ac_cv_prog_STRIP"; then
5519  ac_ct_STRIP=$STRIP
5520  # Extract the first word of "strip", so it can be a program name with args.
5521set dummy strip; ac_word=$2
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523$as_echo_n "checking for $ac_word... " >&6; }
5524if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  if test -n "$ac_ct_STRIP"; then
5528  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5529else
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_exec_ext in '' $ac_executable_extensions; do
5536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537    ac_cv_prog_ac_ct_STRIP="strip"
5538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539    break 2
5540  fi
5541done
5542  done
5543IFS=$as_save_IFS
5544
5545fi
5546fi
5547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5548if test -n "$ac_ct_STRIP"; then
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5550$as_echo "$ac_ct_STRIP" >&6; }
5551else
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553$as_echo "no" >&6; }
5554fi
5555
5556  if test "x$ac_ct_STRIP" = x; then
5557    STRIP=":"
5558  else
5559    case $cross_compiling:$ac_tool_warned in
5560yes:)
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5563ac_tool_warned=yes ;;
5564esac
5565    STRIP=$ac_ct_STRIP
5566  fi
5567else
5568  STRIP="$ac_cv_prog_STRIP"
5569fi
5570
5571test -z "$STRIP" && STRIP=:
5572
5573
5574
5575
5576
5577
5578if test -n "$ac_tool_prefix"; then
5579  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5580set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582$as_echo_n "checking for $ac_word... " >&6; }
5583if ${ac_cv_prog_RANLIB+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  if test -n "$RANLIB"; then
5587  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592  IFS=$as_save_IFS
5593  test -z "$as_dir" && as_dir=.
5594    for ac_exec_ext in '' $ac_executable_extensions; do
5595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598    break 2
5599  fi
5600done
5601  done
5602IFS=$as_save_IFS
5603
5604fi
5605fi
5606RANLIB=$ac_cv_prog_RANLIB
5607if test -n "$RANLIB"; then
5608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5609$as_echo "$RANLIB" >&6; }
5610else
5611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612$as_echo "no" >&6; }
5613fi
5614
5615
5616fi
5617if test -z "$ac_cv_prog_RANLIB"; then
5618  ac_ct_RANLIB=$RANLIB
5619  # Extract the first word of "ranlib", so it can be a program name with args.
5620set dummy ranlib; ac_word=$2
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622$as_echo_n "checking for $ac_word... " >&6; }
5623if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  if test -n "$ac_ct_RANLIB"; then
5627  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632  IFS=$as_save_IFS
5633  test -z "$as_dir" && as_dir=.
5634    for ac_exec_ext in '' $ac_executable_extensions; do
5635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636    ac_cv_prog_ac_ct_RANLIB="ranlib"
5637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638    break 2
5639  fi
5640done
5641  done
5642IFS=$as_save_IFS
5643
5644fi
5645fi
5646ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5647if test -n "$ac_ct_RANLIB"; then
5648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5649$as_echo "$ac_ct_RANLIB" >&6; }
5650else
5651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652$as_echo "no" >&6; }
5653fi
5654
5655  if test "x$ac_ct_RANLIB" = x; then
5656    RANLIB=":"
5657  else
5658    case $cross_compiling:$ac_tool_warned in
5659yes:)
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662ac_tool_warned=yes ;;
5663esac
5664    RANLIB=$ac_ct_RANLIB
5665  fi
5666else
5667  RANLIB="$ac_cv_prog_RANLIB"
5668fi
5669
5670test -z "$RANLIB" && RANLIB=:
5671
5672
5673
5674
5675
5676
5677# Determine commands to create old-style static archives.
5678old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5679old_postinstall_cmds='chmod 644 $oldlib'
5680old_postuninstall_cmds=
5681
5682if test -n "$RANLIB"; then
5683  case $host_os in
5684  openbsd*)
5685    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5686    ;;
5687  *)
5688    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5689    ;;
5690  esac
5691  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5692fi
5693
5694case $host_os in
5695  darwin*)
5696    lock_old_archive_extraction=yes ;;
5697  *)
5698    lock_old_archive_extraction=no ;;
5699esac
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739# If no C compiler was specified, use CC.
5740LTCC=${LTCC-"$CC"}
5741
5742# If no C compiler flags were specified, use CFLAGS.
5743LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5744
5745# Allow CC to be a program name with arguments.
5746compiler=$CC
5747
5748
5749# Check for command to grab the raw symbol name followed by C symbol from nm.
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5751$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5752if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755
5756# These are sane defaults that work on at least a few old systems.
5757# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5758
5759# Character class describing NM global symbol codes.
5760symcode='[BCDEGRST]'
5761
5762# Regexp to match symbols that can be accessed directly from C.
5763sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5764
5765# Define system-specific variables.
5766case $host_os in
5767aix*)
5768  symcode='[BCDT]'
5769  ;;
5770cygwin* | mingw* | pw32* | cegcc*)
5771  symcode='[ABCDGISTW]'
5772  ;;
5773hpux*)
5774  if test "$host_cpu" = ia64; then
5775    symcode='[ABCDEGRST]'
5776  fi
5777  ;;
5778irix* | nonstopux*)
5779  symcode='[BCDEGRST]'
5780  ;;
5781osf*)
5782  symcode='[BCDEGQRST]'
5783  ;;
5784solaris*)
5785  symcode='[BDRT]'
5786  ;;
5787sco3.2v5*)
5788  symcode='[DT]'
5789  ;;
5790sysv4.2uw2*)
5791  symcode='[DT]'
5792  ;;
5793sysv5* | sco5v6* | unixware* | OpenUNIX*)
5794  symcode='[ABDT]'
5795  ;;
5796sysv4)
5797  symcode='[DFNSTU]'
5798  ;;
5799esac
5800
5801# If we're using GNU nm, then use its standard symbol codes.
5802case `$NM -V 2>&1` in
5803*GNU* | *'with BFD'*)
5804  symcode='[ABCDGIRSTW]' ;;
5805esac
5806
5807# Transform an extracted symbol line into a proper C declaration.
5808# Some systems (esp. on ia64) link data and code symbols differently,
5809# so use this general approach.
5810lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5811
5812# Transform an extracted symbol line into symbol name and symbol address
5813lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5814lt_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'"
5815
5816# Handle CRLF in mingw tool chain
5817opt_cr=
5818case $build_os in
5819mingw*)
5820  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5821  ;;
5822esac
5823
5824# Try without a prefix underscore, then with it.
5825for ac_symprfx in "" "_"; do
5826
5827  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5828  symxfrm="\\1 $ac_symprfx\\2 \\2"
5829
5830  # Write the raw and C identifiers.
5831  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5832    # Fake it for dumpbin and say T for any non-static function
5833    # and D for any global variable.
5834    # Also find C++ and __fastcall symbols from MSVC++,
5835    # which start with @ or ?.
5836    lt_cv_sys_global_symbol_pipe="$AWK '"\
5837"     {last_section=section; section=\$ 3};"\
5838"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5839"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5840"     \$ 0!~/External *\|/{next};"\
5841"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5842"     {if(hide[section]) next};"\
5843"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5844"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5845"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5846"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5847"     ' prfx=^$ac_symprfx"
5848  else
5849    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5850  fi
5851  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5852
5853  # Check to see that the pipe works correctly.
5854  pipe_works=no
5855
5856  rm -f conftest*
5857  cat > conftest.$ac_ext <<_LT_EOF
5858#ifdef __cplusplus
5859extern "C" {
5860#endif
5861char nm_test_var;
5862void nm_test_func(void);
5863void nm_test_func(void){}
5864#ifdef __cplusplus
5865}
5866#endif
5867int main(){nm_test_var='a';nm_test_func();return(0);}
5868_LT_EOF
5869
5870  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871  (eval $ac_compile) 2>&5
5872  ac_status=$?
5873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874  test $ac_status = 0; }; then
5875    # Now try to grab the symbols.
5876    nlist=conftest.nm
5877    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5878  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5879  ac_status=$?
5880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881  test $ac_status = 0; } && test -s "$nlist"; then
5882      # Try sorting and uniquifying the output.
5883      if sort "$nlist" | uniq > "$nlist"T; then
5884	mv -f "$nlist"T "$nlist"
5885      else
5886	rm -f "$nlist"T
5887      fi
5888
5889      # Make sure that we snagged all the symbols we need.
5890      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5891	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5892	  cat <<_LT_EOF > conftest.$ac_ext
5893/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5894#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5895/* DATA imports from DLLs on WIN32 con't be const, because runtime
5896   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5897# define LT_DLSYM_CONST
5898#elif defined(__osf__)
5899/* This system does not cope well with relocations in const data.  */
5900# define LT_DLSYM_CONST
5901#else
5902# define LT_DLSYM_CONST const
5903#endif
5904
5905#ifdef __cplusplus
5906extern "C" {
5907#endif
5908
5909_LT_EOF
5910	  # Now generate the symbol file.
5911	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5912
5913	  cat <<_LT_EOF >> conftest.$ac_ext
5914
5915/* The mapping between symbol names and symbols.  */
5916LT_DLSYM_CONST struct {
5917  const char *name;
5918  void       *address;
5919}
5920lt__PROGRAM__LTX_preloaded_symbols[] =
5921{
5922  { "@PROGRAM@", (void *) 0 },
5923_LT_EOF
5924	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5925	  cat <<\_LT_EOF >> conftest.$ac_ext
5926  {0, (void *) 0}
5927};
5928
5929/* This works around a problem in FreeBSD linker */
5930#ifdef FREEBSD_WORKAROUND
5931static const void *lt_preloaded_setup() {
5932  return lt__PROGRAM__LTX_preloaded_symbols;
5933}
5934#endif
5935
5936#ifdef __cplusplus
5937}
5938#endif
5939_LT_EOF
5940	  # Now try linking the two files.
5941	  mv conftest.$ac_objext conftstm.$ac_objext
5942	  lt_globsym_save_LIBS=$LIBS
5943	  lt_globsym_save_CFLAGS=$CFLAGS
5944	  LIBS="conftstm.$ac_objext"
5945	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5946	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5947  (eval $ac_link) 2>&5
5948  ac_status=$?
5949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5951	    pipe_works=yes
5952	  fi
5953	  LIBS=$lt_globsym_save_LIBS
5954	  CFLAGS=$lt_globsym_save_CFLAGS
5955	else
5956	  echo "cannot find nm_test_func in $nlist" >&5
5957	fi
5958      else
5959	echo "cannot find nm_test_var in $nlist" >&5
5960      fi
5961    else
5962      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5963    fi
5964  else
5965    echo "$progname: failed program was:" >&5
5966    cat conftest.$ac_ext >&5
5967  fi
5968  rm -rf conftest* conftst*
5969
5970  # Do not use the global_symbol_pipe unless it works.
5971  if test "$pipe_works" = yes; then
5972    break
5973  else
5974    lt_cv_sys_global_symbol_pipe=
5975  fi
5976done
5977
5978fi
5979
5980if test -z "$lt_cv_sys_global_symbol_pipe"; then
5981  lt_cv_sys_global_symbol_to_cdecl=
5982fi
5983if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5985$as_echo "failed" >&6; }
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5988$as_echo "ok" >&6; }
5989fi
5990
5991# Response file support.
5992if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5993  nm_file_list_spec='@'
5994elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5995  nm_file_list_spec='@'
5996fi
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6025$as_echo_n "checking for sysroot... " >&6; }
6026
6027# Check whether --with-sysroot was given.
6028if test "${with_sysroot+set}" = set; then :
6029  withval=$with_sysroot;
6030else
6031  with_sysroot=no
6032fi
6033
6034
6035lt_sysroot=
6036case ${with_sysroot} in #(
6037 yes)
6038   if test "$GCC" = yes; then
6039     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6040   fi
6041   ;; #(
6042 /*)
6043   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6044   ;; #(
6045 no|'')
6046   ;; #(
6047 *)
6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6049$as_echo "${with_sysroot}" >&6; }
6050   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6051   ;;
6052esac
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6055$as_echo "${lt_sysroot:-no}" >&6; }
6056
6057
6058
6059
6060
6061# Check whether --enable-libtool-lock was given.
6062if test "${enable_libtool_lock+set}" = set; then :
6063  enableval=$enable_libtool_lock;
6064fi
6065
6066test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6067
6068# Some flags need to be propagated to the compiler or linker for good
6069# libtool support.
6070case $host in
6071ia64-*-hpux*)
6072  # Find out which ABI we are using.
6073  echo 'int i;' > 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    case `/usr/bin/file conftest.$ac_objext` in
6080      *ELF-32*)
6081	HPUX_IA64_MODE="32"
6082	;;
6083      *ELF-64*)
6084	HPUX_IA64_MODE="64"
6085	;;
6086    esac
6087  fi
6088  rm -rf conftest*
6089  ;;
6090*-*-irix6*)
6091  # Find out which ABI we are using.
6092  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6093  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6094  (eval $ac_compile) 2>&5
6095  ac_status=$?
6096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097  test $ac_status = 0; }; then
6098    if test "$lt_cv_prog_gnu_ld" = yes; then
6099      case `/usr/bin/file conftest.$ac_objext` in
6100	*32-bit*)
6101	  LD="${LD-ld} -melf32bsmip"
6102	  ;;
6103	*N32*)
6104	  LD="${LD-ld} -melf32bmipn32"
6105	  ;;
6106	*64-bit*)
6107	  LD="${LD-ld} -melf64bmip"
6108	;;
6109      esac
6110    else
6111      case `/usr/bin/file conftest.$ac_objext` in
6112	*32-bit*)
6113	  LD="${LD-ld} -32"
6114	  ;;
6115	*N32*)
6116	  LD="${LD-ld} -n32"
6117	  ;;
6118	*64-bit*)
6119	  LD="${LD-ld} -64"
6120	  ;;
6121      esac
6122    fi
6123  fi
6124  rm -rf conftest*
6125  ;;
6126
6127x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6128s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6129  # Find out which ABI we are using.
6130  echo 'int i;' > conftest.$ac_ext
6131  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6132  (eval $ac_compile) 2>&5
6133  ac_status=$?
6134  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135  test $ac_status = 0; }; then
6136    case `/usr/bin/file conftest.o` in
6137      *32-bit*)
6138	case $host in
6139	  x86_64-*kfreebsd*-gnu)
6140	    LD="${LD-ld} -m elf_i386_fbsd"
6141	    ;;
6142	  x86_64-*linux*)
6143	    LD="${LD-ld} -m elf_i386"
6144	    ;;
6145	  ppc64-*linux*|powerpc64-*linux*)
6146	    LD="${LD-ld} -m elf32ppclinux"
6147	    ;;
6148	  s390x-*linux*)
6149	    LD="${LD-ld} -m elf_s390"
6150	    ;;
6151	  sparc64-*linux*)
6152	    LD="${LD-ld} -m elf32_sparc"
6153	    ;;
6154	esac
6155	;;
6156      *64-bit*)
6157	case $host in
6158	  x86_64-*kfreebsd*-gnu)
6159	    LD="${LD-ld} -m elf_x86_64_fbsd"
6160	    ;;
6161	  x86_64-*linux*)
6162	    LD="${LD-ld} -m elf_x86_64"
6163	    ;;
6164	  ppc*-*linux*|powerpc*-*linux*)
6165	    LD="${LD-ld} -m elf64ppc"
6166	    ;;
6167	  s390*-*linux*|s390*-*tpf*)
6168	    LD="${LD-ld} -m elf64_s390"
6169	    ;;
6170	  sparc*-*linux*)
6171	    LD="${LD-ld} -m elf64_sparc"
6172	    ;;
6173	esac
6174	;;
6175    esac
6176  fi
6177  rm -rf conftest*
6178  ;;
6179
6180*-*-sco3.2v5*)
6181  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6182  SAVE_CFLAGS="$CFLAGS"
6183  CFLAGS="$CFLAGS -belf"
6184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6185$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6186if ${lt_cv_cc_needs_belf+:} false; then :
6187  $as_echo_n "(cached) " >&6
6188else
6189  ac_ext=c
6190ac_cpp='$CPP $CPPFLAGS'
6191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194
6195     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h.  */
6197
6198int
6199main ()
6200{
6201
6202  ;
6203  return 0;
6204}
6205_ACEOF
6206if ac_fn_c_try_link "$LINENO"; then :
6207  lt_cv_cc_needs_belf=yes
6208else
6209  lt_cv_cc_needs_belf=no
6210fi
6211rm -f core conftest.err conftest.$ac_objext \
6212    conftest$ac_exeext conftest.$ac_ext
6213     ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219fi
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6221$as_echo "$lt_cv_cc_needs_belf" >&6; }
6222  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6223    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6224    CFLAGS="$SAVE_CFLAGS"
6225  fi
6226  ;;
6227*-*solaris*)
6228  # Find out which ABI we are using.
6229  echo 'int i;' > conftest.$ac_ext
6230  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6231  (eval $ac_compile) 2>&5
6232  ac_status=$?
6233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6234  test $ac_status = 0; }; then
6235    case `/usr/bin/file conftest.o` in
6236    *64-bit*)
6237      case $lt_cv_prog_gnu_ld in
6238      yes*)
6239        case $host in
6240        i?86-*-solaris*)
6241          LD="${LD-ld} -m elf_x86_64"
6242          ;;
6243        sparc*-*-solaris*)
6244          LD="${LD-ld} -m elf64_sparc"
6245          ;;
6246        esac
6247        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6248        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6249          LD="${LD-ld}_sol2"
6250        fi
6251        ;;
6252      *)
6253	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6254	  LD="${LD-ld} -64"
6255	fi
6256	;;
6257      esac
6258      ;;
6259    esac
6260  fi
6261  rm -rf conftest*
6262  ;;
6263esac
6264
6265need_locks="$enable_libtool_lock"
6266
6267if test -n "$ac_tool_prefix"; then
6268  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6269set dummy ${ac_tool_prefix}mt; ac_word=$2
6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271$as_echo_n "checking for $ac_word... " >&6; }
6272if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6273  $as_echo_n "(cached) " >&6
6274else
6275  if test -n "$MANIFEST_TOOL"; then
6276  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  test -z "$as_dir" && as_dir=.
6283    for ac_exec_ext in '' $ac_executable_extensions; do
6284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287    break 2
6288  fi
6289done
6290  done
6291IFS=$as_save_IFS
6292
6293fi
6294fi
6295MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6296if test -n "$MANIFEST_TOOL"; then
6297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6298$as_echo "$MANIFEST_TOOL" >&6; }
6299else
6300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301$as_echo "no" >&6; }
6302fi
6303
6304
6305fi
6306if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6307  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6308  # Extract the first word of "mt", so it can be a program name with args.
6309set dummy mt; ac_word=$2
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311$as_echo_n "checking for $ac_word... " >&6; }
6312if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6313  $as_echo_n "(cached) " >&6
6314else
6315  if test -n "$ac_ct_MANIFEST_TOOL"; then
6316  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6317else
6318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319for as_dir in $PATH
6320do
6321  IFS=$as_save_IFS
6322  test -z "$as_dir" && as_dir=.
6323    for ac_exec_ext in '' $ac_executable_extensions; do
6324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327    break 2
6328  fi
6329done
6330  done
6331IFS=$as_save_IFS
6332
6333fi
6334fi
6335ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6336if test -n "$ac_ct_MANIFEST_TOOL"; then
6337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6338$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6339else
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341$as_echo "no" >&6; }
6342fi
6343
6344  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6345    MANIFEST_TOOL=":"
6346  else
6347    case $cross_compiling:$ac_tool_warned in
6348yes:)
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351ac_tool_warned=yes ;;
6352esac
6353    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6354  fi
6355else
6356  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6357fi
6358
6359test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6361$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6362if ${lt_cv_path_mainfest_tool+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  lt_cv_path_mainfest_tool=no
6366  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6367  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6368  cat conftest.err >&5
6369  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6370    lt_cv_path_mainfest_tool=yes
6371  fi
6372  rm -f conftest*
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6375$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6376if test "x$lt_cv_path_mainfest_tool" != xyes; then
6377  MANIFEST_TOOL=:
6378fi
6379
6380
6381
6382
6383
6384
6385  case $host_os in
6386    rhapsody* | darwin*)
6387    if test -n "$ac_tool_prefix"; then
6388  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6389set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391$as_echo_n "checking for $ac_word... " >&6; }
6392if ${ac_cv_prog_DSYMUTIL+:} false; then :
6393  $as_echo_n "(cached) " >&6
6394else
6395  if test -n "$DSYMUTIL"; then
6396  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6397else
6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401  IFS=$as_save_IFS
6402  test -z "$as_dir" && as_dir=.
6403    for ac_exec_ext in '' $ac_executable_extensions; do
6404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407    break 2
6408  fi
6409done
6410  done
6411IFS=$as_save_IFS
6412
6413fi
6414fi
6415DSYMUTIL=$ac_cv_prog_DSYMUTIL
6416if test -n "$DSYMUTIL"; then
6417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6418$as_echo "$DSYMUTIL" >&6; }
6419else
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421$as_echo "no" >&6; }
6422fi
6423
6424
6425fi
6426if test -z "$ac_cv_prog_DSYMUTIL"; then
6427  ac_ct_DSYMUTIL=$DSYMUTIL
6428  # Extract the first word of "dsymutil", so it can be a program name with args.
6429set dummy dsymutil; ac_word=$2
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431$as_echo_n "checking for $ac_word... " >&6; }
6432if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6433  $as_echo_n "(cached) " >&6
6434else
6435  if test -n "$ac_ct_DSYMUTIL"; then
6436  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441  IFS=$as_save_IFS
6442  test -z "$as_dir" && as_dir=.
6443    for ac_exec_ext in '' $ac_executable_extensions; do
6444  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447    break 2
6448  fi
6449done
6450  done
6451IFS=$as_save_IFS
6452
6453fi
6454fi
6455ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6456if test -n "$ac_ct_DSYMUTIL"; then
6457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6458$as_echo "$ac_ct_DSYMUTIL" >&6; }
6459else
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461$as_echo "no" >&6; }
6462fi
6463
6464  if test "x$ac_ct_DSYMUTIL" = x; then
6465    DSYMUTIL=":"
6466  else
6467    case $cross_compiling:$ac_tool_warned in
6468yes:)
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471ac_tool_warned=yes ;;
6472esac
6473    DSYMUTIL=$ac_ct_DSYMUTIL
6474  fi
6475else
6476  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6477fi
6478
6479    if test -n "$ac_tool_prefix"; then
6480  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6481set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if ${ac_cv_prog_NMEDIT+:} false; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$NMEDIT"; then
6488  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507NMEDIT=$ac_cv_prog_NMEDIT
6508if test -n "$NMEDIT"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6510$as_echo "$NMEDIT" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516
6517fi
6518if test -z "$ac_cv_prog_NMEDIT"; then
6519  ac_ct_NMEDIT=$NMEDIT
6520  # Extract the first word of "nmedit", so it can be a program name with args.
6521set dummy nmedit; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523$as_echo_n "checking for $ac_word... " >&6; }
6524if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  if test -n "$ac_ct_NMEDIT"; then
6528  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533  IFS=$as_save_IFS
6534  test -z "$as_dir" && as_dir=.
6535    for ac_exec_ext in '' $ac_executable_extensions; do
6536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539    break 2
6540  fi
6541done
6542  done
6543IFS=$as_save_IFS
6544
6545fi
6546fi
6547ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6548if test -n "$ac_ct_NMEDIT"; then
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6550$as_echo "$ac_ct_NMEDIT" >&6; }
6551else
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }
6554fi
6555
6556  if test "x$ac_ct_NMEDIT" = x; then
6557    NMEDIT=":"
6558  else
6559    case $cross_compiling:$ac_tool_warned in
6560yes:)
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563ac_tool_warned=yes ;;
6564esac
6565    NMEDIT=$ac_ct_NMEDIT
6566  fi
6567else
6568  NMEDIT="$ac_cv_prog_NMEDIT"
6569fi
6570
6571    if test -n "$ac_tool_prefix"; then
6572  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6573set dummy ${ac_tool_prefix}lipo; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_LIPO+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  if test -n "$LIPO"; then
6580  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587    for ac_exec_ext in '' $ac_executable_extensions; do
6588  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6590    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594  done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599LIPO=$ac_cv_prog_LIPO
6600if test -n "$LIPO"; then
6601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6602$as_echo "$LIPO" >&6; }
6603else
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609fi
6610if test -z "$ac_cv_prog_LIPO"; then
6611  ac_ct_LIPO=$LIPO
6612  # Extract the first word of "lipo", so it can be a program name with args.
6613set dummy lipo; ac_word=$2
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
6616if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  if test -n "$ac_ct_LIPO"; then
6620  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625  IFS=$as_save_IFS
6626  test -z "$as_dir" && as_dir=.
6627    for ac_exec_ext in '' $ac_executable_extensions; do
6628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629    ac_cv_prog_ac_ct_LIPO="lipo"
6630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631    break 2
6632  fi
6633done
6634  done
6635IFS=$as_save_IFS
6636
6637fi
6638fi
6639ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6640if test -n "$ac_ct_LIPO"; then
6641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6642$as_echo "$ac_ct_LIPO" >&6; }
6643else
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
6646fi
6647
6648  if test "x$ac_ct_LIPO" = x; then
6649    LIPO=":"
6650  else
6651    case $cross_compiling:$ac_tool_warned in
6652yes:)
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655ac_tool_warned=yes ;;
6656esac
6657    LIPO=$ac_ct_LIPO
6658  fi
6659else
6660  LIPO="$ac_cv_prog_LIPO"
6661fi
6662
6663    if test -n "$ac_tool_prefix"; then
6664  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6665set dummy ${ac_tool_prefix}otool; ac_word=$2
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if ${ac_cv_prog_OTOOL+:} false; then :
6669  $as_echo_n "(cached) " >&6
6670else
6671  if test -n "$OTOOL"; then
6672  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679    for ac_exec_ext in '' $ac_executable_extensions; do
6680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686  done
6687IFS=$as_save_IFS
6688
6689fi
6690fi
6691OTOOL=$ac_cv_prog_OTOOL
6692if test -n "$OTOOL"; then
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6694$as_echo "$OTOOL" >&6; }
6695else
6696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
6698fi
6699
6700
6701fi
6702if test -z "$ac_cv_prog_OTOOL"; then
6703  ac_ct_OTOOL=$OTOOL
6704  # Extract the first word of "otool", so it can be a program name with args.
6705set dummy otool; ac_word=$2
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707$as_echo_n "checking for $ac_word... " >&6; }
6708if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6709  $as_echo_n "(cached) " >&6
6710else
6711  if test -n "$ac_ct_OTOOL"; then
6712  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6713else
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  test -z "$as_dir" && as_dir=.
6719    for ac_exec_ext in '' $ac_executable_extensions; do
6720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721    ac_cv_prog_ac_ct_OTOOL="otool"
6722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723    break 2
6724  fi
6725done
6726  done
6727IFS=$as_save_IFS
6728
6729fi
6730fi
6731ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6732if test -n "$ac_ct_OTOOL"; then
6733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6734$as_echo "$ac_ct_OTOOL" >&6; }
6735else
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737$as_echo "no" >&6; }
6738fi
6739
6740  if test "x$ac_ct_OTOOL" = x; then
6741    OTOOL=":"
6742  else
6743    case $cross_compiling:$ac_tool_warned in
6744yes:)
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747ac_tool_warned=yes ;;
6748esac
6749    OTOOL=$ac_ct_OTOOL
6750  fi
6751else
6752  OTOOL="$ac_cv_prog_OTOOL"
6753fi
6754
6755    if test -n "$ac_tool_prefix"; then
6756  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}otool64; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_OTOOL64+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$OTOOL64"; then
6764  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783OTOOL64=$ac_cv_prog_OTOOL64
6784if test -n "$OTOOL64"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6786$as_echo "$OTOOL64" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792
6793fi
6794if test -z "$ac_cv_prog_OTOOL64"; then
6795  ac_ct_OTOOL64=$OTOOL64
6796  # Extract the first word of "otool64", so it can be a program name with args.
6797set dummy otool64; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  if test -n "$ac_ct_OTOOL64"; then
6804  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809  IFS=$as_save_IFS
6810  test -z "$as_dir" && as_dir=.
6811    for ac_exec_ext in '' $ac_executable_extensions; do
6812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813    ac_cv_prog_ac_ct_OTOOL64="otool64"
6814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815    break 2
6816  fi
6817done
6818  done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6824if test -n "$ac_ct_OTOOL64"; then
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6826$as_echo "$ac_ct_OTOOL64" >&6; }
6827else
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832  if test "x$ac_ct_OTOOL64" = x; then
6833    OTOOL64=":"
6834  else
6835    case $cross_compiling:$ac_tool_warned in
6836yes:)
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841    OTOOL64=$ac_ct_OTOOL64
6842  fi
6843else
6844  OTOOL64="$ac_cv_prog_OTOOL64"
6845fi
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6874$as_echo_n "checking for -single_module linker flag... " >&6; }
6875if ${lt_cv_apple_cc_single_mod+:} false; then :
6876  $as_echo_n "(cached) " >&6
6877else
6878  lt_cv_apple_cc_single_mod=no
6879      if test -z "${LT_MULTI_MODULE}"; then
6880	# By default we will add the -single_module flag. You can override
6881	# by either setting the environment variable LT_MULTI_MODULE
6882	# non-empty at configure time, or by adding -multi_module to the
6883	# link flags.
6884	rm -rf libconftest.dylib*
6885	echo "int foo(void){return 1;}" > conftest.c
6886	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6887-dynamiclib -Wl,-single_module conftest.c" >&5
6888	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6889	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6890        _lt_result=$?
6891	# If there is a non-empty error log, and "single_module"
6892	# appears in it, assume the flag caused a linker warning
6893        if test -s conftest.err && $GREP single_module conftest.err; then
6894	  cat conftest.err >&5
6895	# Otherwise, if the output was created with a 0 exit code from
6896	# the compiler, it worked.
6897	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6898	  lt_cv_apple_cc_single_mod=yes
6899	else
6900	  cat conftest.err >&5
6901	fi
6902	rm -rf libconftest.dylib*
6903	rm -f conftest.*
6904      fi
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6907$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6908
6909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6910$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6911if ${lt_cv_ld_exported_symbols_list+:} false; then :
6912  $as_echo_n "(cached) " >&6
6913else
6914  lt_cv_ld_exported_symbols_list=no
6915      save_LDFLAGS=$LDFLAGS
6916      echo "_main" > conftest.sym
6917      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6918      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920
6921int
6922main ()
6923{
6924
6925  ;
6926  return 0;
6927}
6928_ACEOF
6929if ac_fn_c_try_link "$LINENO"; then :
6930  lt_cv_ld_exported_symbols_list=yes
6931else
6932  lt_cv_ld_exported_symbols_list=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext \
6935    conftest$ac_exeext conftest.$ac_ext
6936	LDFLAGS="$save_LDFLAGS"
6937
6938fi
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6940$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6941
6942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6943$as_echo_n "checking for -force_load linker flag... " >&6; }
6944if ${lt_cv_ld_force_load+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  lt_cv_ld_force_load=no
6948      cat > conftest.c << _LT_EOF
6949int forced_loaded() { return 2;}
6950_LT_EOF
6951      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6952      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6953      echo "$AR cru libconftest.a conftest.o" >&5
6954      $AR cru libconftest.a conftest.o 2>&5
6955      echo "$RANLIB libconftest.a" >&5
6956      $RANLIB libconftest.a 2>&5
6957      cat > conftest.c << _LT_EOF
6958int main() { return 0;}
6959_LT_EOF
6960      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6961      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6962      _lt_result=$?
6963      if test -s conftest.err && $GREP force_load conftest.err; then
6964	cat conftest.err >&5
6965      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6966	lt_cv_ld_force_load=yes
6967      else
6968	cat conftest.err >&5
6969      fi
6970        rm -f conftest.err libconftest.a conftest conftest.c
6971        rm -rf conftest.dSYM
6972
6973fi
6974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6975$as_echo "$lt_cv_ld_force_load" >&6; }
6976    case $host_os in
6977    rhapsody* | darwin1.[012])
6978      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6979    darwin1.*)
6980      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6981    darwin*) # darwin 5.x on
6982      # if running on 10.5 or later, the deployment target defaults
6983      # to the OS version, if on x86, and 10.4, the deployment
6984      # target defaults to 10.4. Don't you love it?
6985      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6986	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6987	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6988	10.[012]*)
6989	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6990	10.*)
6991	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6992      esac
6993    ;;
6994  esac
6995    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6996      _lt_dar_single_mod='$single_module'
6997    fi
6998    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6999      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7000    else
7001      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7002    fi
7003    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7004      _lt_dsymutil='~$DSYMUTIL $lib || :'
7005    else
7006      _lt_dsymutil=
7007    fi
7008    ;;
7009  esac
7010
7011ac_ext=c
7012ac_cpp='$CPP $CPPFLAGS'
7013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7017$as_echo_n "checking how to run the C preprocessor... " >&6; }
7018# On Suns, sometimes $CPP names a directory.
7019if test -n "$CPP" && test -d "$CPP"; then
7020  CPP=
7021fi
7022if test -z "$CPP"; then
7023  if ${ac_cv_prog_CPP+:} false; then :
7024  $as_echo_n "(cached) " >&6
7025else
7026      # Double quotes because CPP needs to be expanded
7027    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7028    do
7029      ac_preproc_ok=false
7030for ac_c_preproc_warn_flag in '' yes
7031do
7032  # Use a header file that comes with gcc, so configuring glibc
7033  # with a fresh cross-compiler works.
7034  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035  # <limits.h> exists even on freestanding compilers.
7036  # On the NeXT, cc -E runs the code through the compiler's parser,
7037  # not just through cpp. "Syntax error" is here to catch this case.
7038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040#ifdef __STDC__
7041# include <limits.h>
7042#else
7043# include <assert.h>
7044#endif
7045		     Syntax error
7046_ACEOF
7047if ac_fn_c_try_cpp "$LINENO"; then :
7048
7049else
7050  # Broken: fails on valid input.
7051continue
7052fi
7053rm -f conftest.err conftest.i conftest.$ac_ext
7054
7055  # OK, works on sane cases.  Now check whether nonexistent headers
7056  # can be detected and how.
7057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059#include <ac_nonexistent.h>
7060_ACEOF
7061if ac_fn_c_try_cpp "$LINENO"; then :
7062  # Broken: success on invalid input.
7063continue
7064else
7065  # Passes both tests.
7066ac_preproc_ok=:
7067break
7068fi
7069rm -f conftest.err conftest.i conftest.$ac_ext
7070
7071done
7072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7073rm -f conftest.i conftest.err conftest.$ac_ext
7074if $ac_preproc_ok; then :
7075  break
7076fi
7077
7078    done
7079    ac_cv_prog_CPP=$CPP
7080
7081fi
7082  CPP=$ac_cv_prog_CPP
7083else
7084  ac_cv_prog_CPP=$CPP
7085fi
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7087$as_echo "$CPP" >&6; }
7088ac_preproc_ok=false
7089for ac_c_preproc_warn_flag in '' yes
7090do
7091  # Use a header file that comes with gcc, so configuring glibc
7092  # with a fresh cross-compiler works.
7093  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7094  # <limits.h> exists even on freestanding compilers.
7095  # On the NeXT, cc -E runs the code through the compiler's parser,
7096  # not just through cpp. "Syntax error" is here to catch this case.
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099#ifdef __STDC__
7100# include <limits.h>
7101#else
7102# include <assert.h>
7103#endif
7104		     Syntax error
7105_ACEOF
7106if ac_fn_c_try_cpp "$LINENO"; then :
7107
7108else
7109  # Broken: fails on valid input.
7110continue
7111fi
7112rm -f conftest.err conftest.i conftest.$ac_ext
7113
7114  # OK, works on sane cases.  Now check whether nonexistent headers
7115  # can be detected and how.
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118#include <ac_nonexistent.h>
7119_ACEOF
7120if ac_fn_c_try_cpp "$LINENO"; then :
7121  # Broken: success on invalid input.
7122continue
7123else
7124  # Passes both tests.
7125ac_preproc_ok=:
7126break
7127fi
7128rm -f conftest.err conftest.i conftest.$ac_ext
7129
7130done
7131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7132rm -f conftest.i conftest.err conftest.$ac_ext
7133if $ac_preproc_ok; then :
7134
7135else
7136  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7138as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7139See \`config.log' for more details" "$LINENO" 5; }
7140fi
7141
7142ac_ext=c
7143ac_cpp='$CPP $CPPFLAGS'
7144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147
7148
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7150$as_echo_n "checking for ANSI C header files... " >&6; }
7151if ${ac_cv_header_stdc+:} false; then :
7152  $as_echo_n "(cached) " >&6
7153else
7154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h.  */
7156#include <stdlib.h>
7157#include <stdarg.h>
7158#include <string.h>
7159#include <float.h>
7160
7161int
7162main ()
7163{
7164
7165  ;
7166  return 0;
7167}
7168_ACEOF
7169if ac_fn_c_try_compile "$LINENO"; then :
7170  ac_cv_header_stdc=yes
7171else
7172  ac_cv_header_stdc=no
7173fi
7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175
7176if test $ac_cv_header_stdc = yes; then
7177  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180#include <string.h>
7181
7182_ACEOF
7183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184  $EGREP "memchr" >/dev/null 2>&1; then :
7185
7186else
7187  ac_cv_header_stdc=no
7188fi
7189rm -f conftest*
7190
7191fi
7192
7193if test $ac_cv_header_stdc = yes; then
7194  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197#include <stdlib.h>
7198
7199_ACEOF
7200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201  $EGREP "free" >/dev/null 2>&1; then :
7202
7203else
7204  ac_cv_header_stdc=no
7205fi
7206rm -f conftest*
7207
7208fi
7209
7210if test $ac_cv_header_stdc = yes; then
7211  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7212  if test "$cross_compiling" = yes; then :
7213  :
7214else
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217#include <ctype.h>
7218#include <stdlib.h>
7219#if ((' ' & 0x0FF) == 0x020)
7220# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7221# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7222#else
7223# define ISLOWER(c) \
7224		   (('a' <= (c) && (c) <= 'i') \
7225		     || ('j' <= (c) && (c) <= 'r') \
7226		     || ('s' <= (c) && (c) <= 'z'))
7227# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7228#endif
7229
7230#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7231int
7232main ()
7233{
7234  int i;
7235  for (i = 0; i < 256; i++)
7236    if (XOR (islower (i), ISLOWER (i))
7237	|| toupper (i) != TOUPPER (i))
7238      return 2;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_run "$LINENO"; then :
7243
7244else
7245  ac_cv_header_stdc=no
7246fi
7247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7248  conftest.$ac_objext conftest.beam conftest.$ac_ext
7249fi
7250
7251fi
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7254$as_echo "$ac_cv_header_stdc" >&6; }
7255if test $ac_cv_header_stdc = yes; then
7256
7257$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7258
7259fi
7260
7261# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7263		  inttypes.h stdint.h unistd.h
7264do :
7265  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7266ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7267"
7268if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7269  cat >>confdefs.h <<_ACEOF
7270#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271_ACEOF
7272
7273fi
7274
7275done
7276
7277
7278for ac_header in dlfcn.h
7279do :
7280  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7281"
7282if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7283  cat >>confdefs.h <<_ACEOF
7284#define HAVE_DLFCN_H 1
7285_ACEOF
7286
7287fi
7288
7289done
7290
7291
7292
7293
7294
7295# Set options
7296
7297
7298
7299        enable_dlopen=no
7300
7301
7302  enable_win32_dll=no
7303
7304
7305            # Check whether --enable-shared was given.
7306if test "${enable_shared+set}" = set; then :
7307  enableval=$enable_shared; p=${PACKAGE-default}
7308    case $enableval in
7309    yes) enable_shared=yes ;;
7310    no) enable_shared=no ;;
7311    *)
7312      enable_shared=no
7313      # Look at the argument we got.  We use all the common list separators.
7314      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7315      for pkg in $enableval; do
7316	IFS="$lt_save_ifs"
7317	if test "X$pkg" = "X$p"; then
7318	  enable_shared=yes
7319	fi
7320      done
7321      IFS="$lt_save_ifs"
7322      ;;
7323    esac
7324else
7325  enable_shared=yes
7326fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336  # Check whether --enable-static was given.
7337if test "${enable_static+set}" = set; then :
7338  enableval=$enable_static; p=${PACKAGE-default}
7339    case $enableval in
7340    yes) enable_static=yes ;;
7341    no) enable_static=no ;;
7342    *)
7343     enable_static=no
7344      # Look at the argument we got.  We use all the common list separators.
7345      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346      for pkg in $enableval; do
7347	IFS="$lt_save_ifs"
7348	if test "X$pkg" = "X$p"; then
7349	  enable_static=yes
7350	fi
7351      done
7352      IFS="$lt_save_ifs"
7353      ;;
7354    esac
7355else
7356  enable_static=yes
7357fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368# Check whether --with-pic was given.
7369if test "${with_pic+set}" = set; then :
7370  withval=$with_pic; lt_p=${PACKAGE-default}
7371    case $withval in
7372    yes|no) pic_mode=$withval ;;
7373    *)
7374      pic_mode=default
7375      # Look at the argument we got.  We use all the common list separators.
7376      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377      for lt_pkg in $withval; do
7378	IFS="$lt_save_ifs"
7379	if test "X$lt_pkg" = "X$lt_p"; then
7380	  pic_mode=yes
7381	fi
7382      done
7383      IFS="$lt_save_ifs"
7384      ;;
7385    esac
7386else
7387  pic_mode=default
7388fi
7389
7390
7391test -z "$pic_mode" && pic_mode=default
7392
7393
7394
7395
7396
7397
7398
7399  # Check whether --enable-fast-install was given.
7400if test "${enable_fast_install+set}" = set; then :
7401  enableval=$enable_fast_install; p=${PACKAGE-default}
7402    case $enableval in
7403    yes) enable_fast_install=yes ;;
7404    no) enable_fast_install=no ;;
7405    *)
7406      enable_fast_install=no
7407      # Look at the argument we got.  We use all the common list separators.
7408      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409      for pkg in $enableval; do
7410	IFS="$lt_save_ifs"
7411	if test "X$pkg" = "X$p"; then
7412	  enable_fast_install=yes
7413	fi
7414      done
7415      IFS="$lt_save_ifs"
7416      ;;
7417    esac
7418else
7419  enable_fast_install=yes
7420fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432# This can be used to rebuild libtool when needed
7433LIBTOOL_DEPS="$ltmain"
7434
7435# Always use our own libtool.
7436LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467test -z "$LN_S" && LN_S="ln -s"
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482if test -n "${ZSH_VERSION+set}" ; then
7483   setopt NO_GLOB_SUBST
7484fi
7485
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7487$as_echo_n "checking for objdir... " >&6; }
7488if ${lt_cv_objdir+:} false; then :
7489  $as_echo_n "(cached) " >&6
7490else
7491  rm -f .libs 2>/dev/null
7492mkdir .libs 2>/dev/null
7493if test -d .libs; then
7494  lt_cv_objdir=.libs
7495else
7496  # MS-DOS does not allow filenames that begin with a dot.
7497  lt_cv_objdir=_libs
7498fi
7499rmdir .libs 2>/dev/null
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7502$as_echo "$lt_cv_objdir" >&6; }
7503objdir=$lt_cv_objdir
7504
7505
7506
7507
7508
7509cat >>confdefs.h <<_ACEOF
7510#define LT_OBJDIR "$lt_cv_objdir/"
7511_ACEOF
7512
7513
7514
7515
7516case $host_os in
7517aix3*)
7518  # AIX sometimes has problems with the GCC collect2 program.  For some
7519  # reason, if we set the COLLECT_NAMES environment variable, the problems
7520  # vanish in a puff of smoke.
7521  if test "X${COLLECT_NAMES+set}" != Xset; then
7522    COLLECT_NAMES=
7523    export COLLECT_NAMES
7524  fi
7525  ;;
7526esac
7527
7528# Global variables:
7529ofile=libtool
7530can_build_shared=yes
7531
7532# All known linkers require a `.a' archive for static linking (except MSVC,
7533# which needs '.lib').
7534libext=a
7535
7536with_gnu_ld="$lt_cv_prog_gnu_ld"
7537
7538old_CC="$CC"
7539old_CFLAGS="$CFLAGS"
7540
7541# Set sane defaults for various variables
7542test -z "$CC" && CC=cc
7543test -z "$LTCC" && LTCC=$CC
7544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7545test -z "$LD" && LD=ld
7546test -z "$ac_objext" && ac_objext=o
7547
7548for cc_temp in $compiler""; do
7549  case $cc_temp in
7550    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7551    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7552    \-*) ;;
7553    *) break;;
7554  esac
7555done
7556cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7557
7558
7559# Only perform the check for file, if the check method requires it
7560test -z "$MAGIC_CMD" && MAGIC_CMD=file
7561case $deplibs_check_method in
7562file_magic*)
7563  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7565$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7566if ${lt_cv_path_MAGIC_CMD+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  case $MAGIC_CMD in
7570[\\/*] |  ?:[\\/]*)
7571  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7572  ;;
7573*)
7574  lt_save_MAGIC_CMD="$MAGIC_CMD"
7575  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7576  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7577  for ac_dir in $ac_dummy; do
7578    IFS="$lt_save_ifs"
7579    test -z "$ac_dir" && ac_dir=.
7580    if test -f $ac_dir/${ac_tool_prefix}file; then
7581      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7582      if test -n "$file_magic_test_file"; then
7583	case $deplibs_check_method in
7584	"file_magic "*)
7585	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7586	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7588	    $EGREP "$file_magic_regex" > /dev/null; then
7589	    :
7590	  else
7591	    cat <<_LT_EOF 1>&2
7592
7593*** Warning: the command libtool uses to detect shared libraries,
7594*** $file_magic_cmd, produces output that libtool cannot recognize.
7595*** The result is that libtool may fail to recognize shared libraries
7596*** as such.  This will affect the creation of libtool libraries that
7597*** depend on shared libraries, but programs linked with such libtool
7598*** libraries will work regardless of this problem.  Nevertheless, you
7599*** may want to report the problem to your system manager and/or to
7600*** bug-libtool@gnu.org
7601
7602_LT_EOF
7603	  fi ;;
7604	esac
7605      fi
7606      break
7607    fi
7608  done
7609  IFS="$lt_save_ifs"
7610  MAGIC_CMD="$lt_save_MAGIC_CMD"
7611  ;;
7612esac
7613fi
7614
7615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616if test -n "$MAGIC_CMD"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7618$as_echo "$MAGIC_CMD" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625
7626
7627
7628if test -z "$lt_cv_path_MAGIC_CMD"; then
7629  if test -n "$ac_tool_prefix"; then
7630    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7631$as_echo_n "checking for file... " >&6; }
7632if ${lt_cv_path_MAGIC_CMD+:} false; then :
7633  $as_echo_n "(cached) " >&6
7634else
7635  case $MAGIC_CMD in
7636[\\/*] |  ?:[\\/]*)
7637  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7638  ;;
7639*)
7640  lt_save_MAGIC_CMD="$MAGIC_CMD"
7641  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7642  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7643  for ac_dir in $ac_dummy; do
7644    IFS="$lt_save_ifs"
7645    test -z "$ac_dir" && ac_dir=.
7646    if test -f $ac_dir/file; then
7647      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7648      if test -n "$file_magic_test_file"; then
7649	case $deplibs_check_method in
7650	"file_magic "*)
7651	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7652	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7653	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7654	    $EGREP "$file_magic_regex" > /dev/null; then
7655	    :
7656	  else
7657	    cat <<_LT_EOF 1>&2
7658
7659*** Warning: the command libtool uses to detect shared libraries,
7660*** $file_magic_cmd, produces output that libtool cannot recognize.
7661*** The result is that libtool may fail to recognize shared libraries
7662*** as such.  This will affect the creation of libtool libraries that
7663*** depend on shared libraries, but programs linked with such libtool
7664*** libraries will work regardless of this problem.  Nevertheless, you
7665*** may want to report the problem to your system manager and/or to
7666*** bug-libtool@gnu.org
7667
7668_LT_EOF
7669	  fi ;;
7670	esac
7671      fi
7672      break
7673    fi
7674  done
7675  IFS="$lt_save_ifs"
7676  MAGIC_CMD="$lt_save_MAGIC_CMD"
7677  ;;
7678esac
7679fi
7680
7681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7682if test -n "$MAGIC_CMD"; then
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7684$as_echo "$MAGIC_CMD" >&6; }
7685else
7686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
7688fi
7689
7690
7691  else
7692    MAGIC_CMD=:
7693  fi
7694fi
7695
7696  fi
7697  ;;
7698esac
7699
7700# Use C for the default configuration in the libtool script
7701
7702lt_save_CC="$CC"
7703ac_ext=c
7704ac_cpp='$CPP $CPPFLAGS'
7705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709
7710# Source file extension for C test sources.
7711ac_ext=c
7712
7713# Object file extension for compiled C test sources.
7714objext=o
7715objext=$objext
7716
7717# Code to be used in simple compile tests
7718lt_simple_compile_test_code="int some_variable = 0;"
7719
7720# Code to be used in simple link tests
7721lt_simple_link_test_code='int main(){return(0);}'
7722
7723
7724
7725
7726
7727
7728
7729# If no C compiler was specified, use CC.
7730LTCC=${LTCC-"$CC"}
7731
7732# If no C compiler flags were specified, use CFLAGS.
7733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7734
7735# Allow CC to be a program name with arguments.
7736compiler=$CC
7737
7738# Save the default compiler, since it gets overwritten when the other
7739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7740compiler_DEFAULT=$CC
7741
7742# save warnings/boilerplate of simple test code
7743ac_outfile=conftest.$ac_objext
7744echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7746_lt_compiler_boilerplate=`cat conftest.err`
7747$RM conftest*
7748
7749ac_outfile=conftest.$ac_objext
7750echo "$lt_simple_link_test_code" >conftest.$ac_ext
7751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7752_lt_linker_boilerplate=`cat conftest.err`
7753$RM -r conftest*
7754
7755
7756if test -n "$compiler"; then
7757
7758lt_prog_compiler_no_builtin_flag=
7759
7760if test "$GCC" = yes; then
7761  case $cc_basename in
7762  nvcc*)
7763    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7764  *)
7765    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7766  esac
7767
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7769$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7770if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  lt_cv_prog_compiler_rtti_exceptions=no
7774   ac_outfile=conftest.$ac_objext
7775   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7776   lt_compiler_flag="-fno-rtti -fno-exceptions"
7777   # Insert the option either (1) after the last *FLAGS variable, or
7778   # (2) before a word containing "conftest.", or (3) at the end.
7779   # Note that $ac_compile itself does not contain backslashes and begins
7780   # with a dollar sign (not a hyphen), so the echo should work correctly.
7781   # The option is referenced via a variable to avoid confusing sed.
7782   lt_compile=`echo "$ac_compile" | $SED \
7783   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7784   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785   -e 's:$: $lt_compiler_flag:'`
7786   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7787   (eval "$lt_compile" 2>conftest.err)
7788   ac_status=$?
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   if (exit $ac_status) && test -s "$ac_outfile"; then
7792     # The compiler can only warn and ignore the option if not recognized
7793     # So say no if there are warnings other than the usual output.
7794     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7795     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7796     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7797       lt_cv_prog_compiler_rtti_exceptions=yes
7798     fi
7799   fi
7800   $RM conftest*
7801
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7804$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7805
7806if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7807    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7808else
7809    :
7810fi
7811
7812fi
7813
7814
7815
7816
7817
7818
7819  lt_prog_compiler_wl=
7820lt_prog_compiler_pic=
7821lt_prog_compiler_static=
7822
7823
7824  if test "$GCC" = yes; then
7825    lt_prog_compiler_wl='-Wl,'
7826    lt_prog_compiler_static='-static'
7827
7828    case $host_os in
7829      aix*)
7830      # All AIX code is PIC.
7831      if test "$host_cpu" = ia64; then
7832	# AIX 5 now supports IA64 processor
7833	lt_prog_compiler_static='-Bstatic'
7834      fi
7835      ;;
7836
7837    amigaos*)
7838      case $host_cpu in
7839      powerpc)
7840            # see comment about AmigaOS4 .so support
7841            lt_prog_compiler_pic='-fPIC'
7842        ;;
7843      m68k)
7844            # FIXME: we need at least 68020 code to build shared libraries, but
7845            # adding the `-m68020' flag to GCC prevents building anything better,
7846            # like `-m68040'.
7847            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7848        ;;
7849      esac
7850      ;;
7851
7852    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7853      # PIC is the default for these OSes.
7854      ;;
7855
7856    mingw* | cygwin* | pw32* | os2* | cegcc*)
7857      # This hack is so that the source file can tell whether it is being
7858      # built for inclusion in a dll (and should export symbols for example).
7859      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7860      # (--disable-auto-import) libraries
7861      lt_prog_compiler_pic='-DDLL_EXPORT'
7862      ;;
7863
7864    darwin* | rhapsody*)
7865      # PIC is the default on this platform
7866      # Common symbols not allowed in MH_DYLIB files
7867      lt_prog_compiler_pic='-fno-common'
7868      ;;
7869
7870    haiku*)
7871      # PIC is the default for Haiku.
7872      # The "-static" flag exists, but is broken.
7873      lt_prog_compiler_static=
7874      ;;
7875
7876    hpux*)
7877      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7878      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7879      # sets the default TLS model and affects inlining.
7880      case $host_cpu in
7881      hppa*64*)
7882	# +Z the default
7883	;;
7884      *)
7885	lt_prog_compiler_pic='-fPIC'
7886	;;
7887      esac
7888      ;;
7889
7890    interix[3-9]*)
7891      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7892      # Instead, we relocate shared libraries at runtime.
7893      ;;
7894
7895    msdosdjgpp*)
7896      # Just because we use GCC doesn't mean we suddenly get shared libraries
7897      # on systems that don't support them.
7898      lt_prog_compiler_can_build_shared=no
7899      enable_shared=no
7900      ;;
7901
7902    *nto* | *qnx*)
7903      # QNX uses GNU C++, but need to define -shared option too, otherwise
7904      # it will coredump.
7905      lt_prog_compiler_pic='-fPIC -shared'
7906      ;;
7907
7908    sysv4*MP*)
7909      if test -d /usr/nec; then
7910	lt_prog_compiler_pic=-Kconform_pic
7911      fi
7912      ;;
7913
7914    *)
7915      lt_prog_compiler_pic='-fPIC'
7916      ;;
7917    esac
7918
7919    case $cc_basename in
7920    nvcc*) # Cuda Compiler Driver 2.2
7921      lt_prog_compiler_wl='-Xlinker '
7922      if test -n "$lt_prog_compiler_pic"; then
7923        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7924      fi
7925      ;;
7926    esac
7927  else
7928    # PORTME Check for flag to pass linker flags through the system compiler.
7929    case $host_os in
7930    aix*)
7931      lt_prog_compiler_wl='-Wl,'
7932      if test "$host_cpu" = ia64; then
7933	# AIX 5 now supports IA64 processor
7934	lt_prog_compiler_static='-Bstatic'
7935      else
7936	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7937      fi
7938      ;;
7939
7940    mingw* | cygwin* | pw32* | os2* | cegcc*)
7941      # This hack is so that the source file can tell whether it is being
7942      # built for inclusion in a dll (and should export symbols for example).
7943      lt_prog_compiler_pic='-DDLL_EXPORT'
7944      ;;
7945
7946    hpux9* | hpux10* | hpux11*)
7947      lt_prog_compiler_wl='-Wl,'
7948      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7949      # not for PA HP-UX.
7950      case $host_cpu in
7951      hppa*64*|ia64*)
7952	# +Z the default
7953	;;
7954      *)
7955	lt_prog_compiler_pic='+Z'
7956	;;
7957      esac
7958      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7959      lt_prog_compiler_static='${wl}-a ${wl}archive'
7960      ;;
7961
7962    irix5* | irix6* | nonstopux*)
7963      lt_prog_compiler_wl='-Wl,'
7964      # PIC (with -KPIC) is the default.
7965      lt_prog_compiler_static='-non_shared'
7966      ;;
7967
7968    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7969      case $cc_basename in
7970      # old Intel for x86_64 which still supported -KPIC.
7971      ecc*)
7972	lt_prog_compiler_wl='-Wl,'
7973	lt_prog_compiler_pic='-KPIC'
7974	lt_prog_compiler_static='-static'
7975        ;;
7976      # icc used to be incompatible with GCC.
7977      # ICC 10 doesn't accept -KPIC any more.
7978      icc* | ifort*)
7979	lt_prog_compiler_wl='-Wl,'
7980	lt_prog_compiler_pic='-fPIC'
7981	lt_prog_compiler_static='-static'
7982        ;;
7983      # Lahey Fortran 8.1.
7984      lf95*)
7985	lt_prog_compiler_wl='-Wl,'
7986	lt_prog_compiler_pic='--shared'
7987	lt_prog_compiler_static='--static'
7988	;;
7989      nagfor*)
7990	# NAG Fortran compiler
7991	lt_prog_compiler_wl='-Wl,-Wl,,'
7992	lt_prog_compiler_pic='-PIC'
7993	lt_prog_compiler_static='-Bstatic'
7994	;;
7995      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7996        # Portland Group compilers (*not* the Pentium gcc compiler,
7997	# which looks to be a dead project)
7998	lt_prog_compiler_wl='-Wl,'
7999	lt_prog_compiler_pic='-fpic'
8000	lt_prog_compiler_static='-Bstatic'
8001        ;;
8002      ccc*)
8003        lt_prog_compiler_wl='-Wl,'
8004        # All Alpha code is PIC.
8005        lt_prog_compiler_static='-non_shared'
8006        ;;
8007      xl* | bgxl* | bgf* | mpixl*)
8008	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8009	lt_prog_compiler_wl='-Wl,'
8010	lt_prog_compiler_pic='-qpic'
8011	lt_prog_compiler_static='-qstaticlink'
8012	;;
8013      *)
8014	case `$CC -V 2>&1 | sed 5q` in
8015	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8016	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8017	  lt_prog_compiler_pic='-KPIC'
8018	  lt_prog_compiler_static='-Bstatic'
8019	  lt_prog_compiler_wl=''
8020	  ;;
8021	*Sun\ F* | *Sun*Fortran*)
8022	  lt_prog_compiler_pic='-KPIC'
8023	  lt_prog_compiler_static='-Bstatic'
8024	  lt_prog_compiler_wl='-Qoption ld '
8025	  ;;
8026	*Sun\ C*)
8027	  # Sun C 5.9
8028	  lt_prog_compiler_pic='-KPIC'
8029	  lt_prog_compiler_static='-Bstatic'
8030	  lt_prog_compiler_wl='-Wl,'
8031	  ;;
8032        *Intel*\ [CF]*Compiler*)
8033	  lt_prog_compiler_wl='-Wl,'
8034	  lt_prog_compiler_pic='-fPIC'
8035	  lt_prog_compiler_static='-static'
8036	  ;;
8037	*Portland\ Group*)
8038	  lt_prog_compiler_wl='-Wl,'
8039	  lt_prog_compiler_pic='-fpic'
8040	  lt_prog_compiler_static='-Bstatic'
8041	  ;;
8042	esac
8043	;;
8044      esac
8045      ;;
8046
8047    newsos6)
8048      lt_prog_compiler_pic='-KPIC'
8049      lt_prog_compiler_static='-Bstatic'
8050      ;;
8051
8052    *nto* | *qnx*)
8053      # QNX uses GNU C++, but need to define -shared option too, otherwise
8054      # it will coredump.
8055      lt_prog_compiler_pic='-fPIC -shared'
8056      ;;
8057
8058    osf3* | osf4* | osf5*)
8059      lt_prog_compiler_wl='-Wl,'
8060      # All OSF/1 code is PIC.
8061      lt_prog_compiler_static='-non_shared'
8062      ;;
8063
8064    rdos*)
8065      lt_prog_compiler_static='-non_shared'
8066      ;;
8067
8068    solaris*)
8069      lt_prog_compiler_pic='-KPIC'
8070      lt_prog_compiler_static='-Bstatic'
8071      case $cc_basename in
8072      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8073	lt_prog_compiler_wl='-Qoption ld ';;
8074      *)
8075	lt_prog_compiler_wl='-Wl,';;
8076      esac
8077      ;;
8078
8079    sunos4*)
8080      lt_prog_compiler_wl='-Qoption ld '
8081      lt_prog_compiler_pic='-PIC'
8082      lt_prog_compiler_static='-Bstatic'
8083      ;;
8084
8085    sysv4 | sysv4.2uw2* | sysv4.3*)
8086      lt_prog_compiler_wl='-Wl,'
8087      lt_prog_compiler_pic='-KPIC'
8088      lt_prog_compiler_static='-Bstatic'
8089      ;;
8090
8091    sysv4*MP*)
8092      if test -d /usr/nec ;then
8093	lt_prog_compiler_pic='-Kconform_pic'
8094	lt_prog_compiler_static='-Bstatic'
8095      fi
8096      ;;
8097
8098    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8099      lt_prog_compiler_wl='-Wl,'
8100      lt_prog_compiler_pic='-KPIC'
8101      lt_prog_compiler_static='-Bstatic'
8102      ;;
8103
8104    unicos*)
8105      lt_prog_compiler_wl='-Wl,'
8106      lt_prog_compiler_can_build_shared=no
8107      ;;
8108
8109    uts4*)
8110      lt_prog_compiler_pic='-pic'
8111      lt_prog_compiler_static='-Bstatic'
8112      ;;
8113
8114    *)
8115      lt_prog_compiler_can_build_shared=no
8116      ;;
8117    esac
8118  fi
8119
8120case $host_os in
8121  # For platforms which do not support PIC, -DPIC is meaningless:
8122  *djgpp*)
8123    lt_prog_compiler_pic=
8124    ;;
8125  *)
8126    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8127    ;;
8128esac
8129
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8131$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8132if ${lt_cv_prog_compiler_pic+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8136fi
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8138$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8139lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8140
8141#
8142# Check to make sure the PIC flag actually works.
8143#
8144if test -n "$lt_prog_compiler_pic"; then
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8147if ${lt_cv_prog_compiler_pic_works+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  lt_cv_prog_compiler_pic_works=no
8151   ac_outfile=conftest.$ac_objext
8152   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8153   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8154   # Insert the option either (1) after the last *FLAGS variable, or
8155   # (2) before a word containing "conftest.", or (3) at the end.
8156   # Note that $ac_compile itself does not contain backslashes and begins
8157   # with a dollar sign (not a hyphen), so the echo should work correctly.
8158   # The option is referenced via a variable to avoid confusing sed.
8159   lt_compile=`echo "$ac_compile" | $SED \
8160   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8161   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8162   -e 's:$: $lt_compiler_flag:'`
8163   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8164   (eval "$lt_compile" 2>conftest.err)
8165   ac_status=$?
8166   cat conftest.err >&5
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   if (exit $ac_status) && test -s "$ac_outfile"; then
8169     # The compiler can only warn and ignore the option if not recognized
8170     # So say no if there are warnings other than the usual output.
8171     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8172     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8173     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8174       lt_cv_prog_compiler_pic_works=yes
8175     fi
8176   fi
8177   $RM conftest*
8178
8179fi
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8181$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8182
8183if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8184    case $lt_prog_compiler_pic in
8185     "" | " "*) ;;
8186     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8187     esac
8188else
8189    lt_prog_compiler_pic=
8190     lt_prog_compiler_can_build_shared=no
8191fi
8192
8193fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205#
8206# Check to make sure the static flag actually works.
8207#
8208wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8210$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8211if ${lt_cv_prog_compiler_static_works+:} false; then :
8212  $as_echo_n "(cached) " >&6
8213else
8214  lt_cv_prog_compiler_static_works=no
8215   save_LDFLAGS="$LDFLAGS"
8216   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8217   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8218   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8219     # The linker can only warn and ignore the option if not recognized
8220     # So say no if there are warnings
8221     if test -s conftest.err; then
8222       # Append any errors to the config.log.
8223       cat conftest.err 1>&5
8224       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8225       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226       if diff conftest.exp conftest.er2 >/dev/null; then
8227         lt_cv_prog_compiler_static_works=yes
8228       fi
8229     else
8230       lt_cv_prog_compiler_static_works=yes
8231     fi
8232   fi
8233   $RM -r conftest*
8234   LDFLAGS="$save_LDFLAGS"
8235
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8238$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8239
8240if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8241    :
8242else
8243    lt_prog_compiler_static=
8244fi
8245
8246
8247
8248
8249
8250
8251
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8253$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8254if ${lt_cv_prog_compiler_c_o+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  lt_cv_prog_compiler_c_o=no
8258   $RM -r conftest 2>/dev/null
8259   mkdir conftest
8260   cd conftest
8261   mkdir out
8262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8263
8264   lt_compiler_flag="-o out/conftest2.$ac_objext"
8265   # Insert the option either (1) after the last *FLAGS variable, or
8266   # (2) before a word containing "conftest.", or (3) at the end.
8267   # Note that $ac_compile itself does not contain backslashes and begins
8268   # with a dollar sign (not a hyphen), so the echo should work correctly.
8269   lt_compile=`echo "$ac_compile" | $SED \
8270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8272   -e 's:$: $lt_compiler_flag:'`
8273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8274   (eval "$lt_compile" 2>out/conftest.err)
8275   ac_status=$?
8276   cat out/conftest.err >&5
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8279   then
8280     # The compiler can only warn and ignore the option if not recognized
8281     # So say no if there are warnings
8282     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8285       lt_cv_prog_compiler_c_o=yes
8286     fi
8287   fi
8288   chmod u+w . 2>&5
8289   $RM conftest*
8290   # SGI C++ compiler will create directory out/ii_files/ for
8291   # template instantiation
8292   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8293   $RM out/* && rmdir out
8294   cd ..
8295   $RM -r conftest
8296   $RM conftest*
8297
8298fi
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8300$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8301
8302
8303
8304
8305
8306
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8308$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8309if ${lt_cv_prog_compiler_c_o+:} false; then :
8310  $as_echo_n "(cached) " >&6
8311else
8312  lt_cv_prog_compiler_c_o=no
8313   $RM -r conftest 2>/dev/null
8314   mkdir conftest
8315   cd conftest
8316   mkdir out
8317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318
8319   lt_compiler_flag="-o out/conftest2.$ac_objext"
8320   # Insert the option either (1) after the last *FLAGS variable, or
8321   # (2) before a word containing "conftest.", or (3) at the end.
8322   # Note that $ac_compile itself does not contain backslashes and begins
8323   # with a dollar sign (not a hyphen), so the echo should work correctly.
8324   lt_compile=`echo "$ac_compile" | $SED \
8325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327   -e 's:$: $lt_compiler_flag:'`
8328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329   (eval "$lt_compile" 2>out/conftest.err)
8330   ac_status=$?
8331   cat out/conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8334   then
8335     # The compiler can only warn and ignore the option if not recognized
8336     # So say no if there are warnings
8337     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8338     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8339     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8340       lt_cv_prog_compiler_c_o=yes
8341     fi
8342   fi
8343   chmod u+w . 2>&5
8344   $RM conftest*
8345   # SGI C++ compiler will create directory out/ii_files/ for
8346   # template instantiation
8347   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8348   $RM out/* && rmdir out
8349   cd ..
8350   $RM -r conftest
8351   $RM conftest*
8352
8353fi
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8355$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8356
8357
8358
8359
8360hard_links="nottested"
8361if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8362  # do not overwrite the value of need_locks provided by the user
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8364$as_echo_n "checking if we can lock with hard links... " >&6; }
8365  hard_links=yes
8366  $RM conftest*
8367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8368  touch conftest.a
8369  ln conftest.a conftest.b 2>&5 || hard_links=no
8370  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8372$as_echo "$hard_links" >&6; }
8373  if test "$hard_links" = no; then
8374    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8375$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8376    need_locks=warn
8377  fi
8378else
8379  need_locks=no
8380fi
8381
8382
8383
8384
8385
8386
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8388$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8389
8390  runpath_var=
8391  allow_undefined_flag=
8392  always_export_symbols=no
8393  archive_cmds=
8394  archive_expsym_cmds=
8395  compiler_needs_object=no
8396  enable_shared_with_static_runtimes=no
8397  export_dynamic_flag_spec=
8398  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8399  hardcode_automatic=no
8400  hardcode_direct=no
8401  hardcode_direct_absolute=no
8402  hardcode_libdir_flag_spec=
8403  hardcode_libdir_separator=
8404  hardcode_minus_L=no
8405  hardcode_shlibpath_var=unsupported
8406  inherit_rpath=no
8407  link_all_deplibs=unknown
8408  module_cmds=
8409  module_expsym_cmds=
8410  old_archive_from_new_cmds=
8411  old_archive_from_expsyms_cmds=
8412  thread_safe_flag_spec=
8413  whole_archive_flag_spec=
8414  # include_expsyms should be a list of space-separated symbols to be *always*
8415  # included in the symbol list
8416  include_expsyms=
8417  # exclude_expsyms can be an extended regexp of symbols to exclude
8418  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8419  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8420  # as well as any symbol that contains `d'.
8421  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8422  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8423  # platforms (ab)use it in PIC code, but their linkers get confused if
8424  # the symbol is explicitly referenced.  Since portable code cannot
8425  # rely on this symbol name, it's probably fine to never include it in
8426  # preloaded symbol tables.
8427  # Exclude shared library initialization/finalization symbols.
8428  extract_expsyms_cmds=
8429
8430  case $host_os in
8431  cygwin* | mingw* | pw32* | cegcc*)
8432    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8433    # When not using gcc, we currently assume that we are using
8434    # Microsoft Visual C++.
8435    if test "$GCC" != yes; then
8436      with_gnu_ld=no
8437    fi
8438    ;;
8439  interix*)
8440    # we just hope/assume this is gcc and not c89 (= MSVC++)
8441    with_gnu_ld=yes
8442    ;;
8443  openbsd*)
8444    with_gnu_ld=no
8445    ;;
8446  esac
8447
8448  ld_shlibs=yes
8449
8450  # On some targets, GNU ld is compatible enough with the native linker
8451  # that we're better off using the native interface for both.
8452  lt_use_gnu_ld_interface=no
8453  if test "$with_gnu_ld" = yes; then
8454    case $host_os in
8455      aix*)
8456	# The AIX port of GNU ld has always aspired to compatibility
8457	# with the native linker.  However, as the warning in the GNU ld
8458	# block says, versions before 2.19.5* couldn't really create working
8459	# shared libraries, regardless of the interface used.
8460	case `$LD -v 2>&1` in
8461	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8462	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8463	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8464	  *)
8465	    lt_use_gnu_ld_interface=yes
8466	    ;;
8467	esac
8468	;;
8469      *)
8470	lt_use_gnu_ld_interface=yes
8471	;;
8472    esac
8473  fi
8474
8475  if test "$lt_use_gnu_ld_interface" = yes; then
8476    # If archive_cmds runs LD, not CC, wlarc should be empty
8477    wlarc='${wl}'
8478
8479    # Set some defaults for GNU ld with shared library support. These
8480    # are reset later if shared libraries are not supported. Putting them
8481    # here allows them to be overridden if necessary.
8482    runpath_var=LD_RUN_PATH
8483    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8484    export_dynamic_flag_spec='${wl}--export-dynamic'
8485    # ancient GNU ld didn't support --whole-archive et. al.
8486    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8487      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8488    else
8489      whole_archive_flag_spec=
8490    fi
8491    supports_anon_versioning=no
8492    case `$LD -v 2>&1` in
8493      *GNU\ gold*) supports_anon_versioning=yes ;;
8494      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8495      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8496      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8497      *\ 2.11.*) ;; # other 2.11 versions
8498      *) supports_anon_versioning=yes ;;
8499    esac
8500
8501    # See if GNU ld supports shared libraries.
8502    case $host_os in
8503    aix[3-9]*)
8504      # On AIX/PPC, the GNU linker is very broken
8505      if test "$host_cpu" != ia64; then
8506	ld_shlibs=no
8507	cat <<_LT_EOF 1>&2
8508
8509*** Warning: the GNU linker, at least up to release 2.19, is reported
8510*** to be unable to reliably create shared libraries on AIX.
8511*** Therefore, libtool is disabling shared libraries support.  If you
8512*** really care for shared libraries, you may want to install binutils
8513*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8514*** You will then need to restart the configuration process.
8515
8516_LT_EOF
8517      fi
8518      ;;
8519
8520    amigaos*)
8521      case $host_cpu in
8522      powerpc)
8523            # see comment about AmigaOS4 .so support
8524            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8525            archive_expsym_cmds=''
8526        ;;
8527      m68k)
8528            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)'
8529            hardcode_libdir_flag_spec='-L$libdir'
8530            hardcode_minus_L=yes
8531        ;;
8532      esac
8533      ;;
8534
8535    beos*)
8536      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537	allow_undefined_flag=unsupported
8538	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8539	# support --undefined.  This deserves some investigation.  FIXME
8540	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8541      else
8542	ld_shlibs=no
8543      fi
8544      ;;
8545
8546    cygwin* | mingw* | pw32* | cegcc*)
8547      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8548      # as there is no search path for DLLs.
8549      hardcode_libdir_flag_spec='-L$libdir'
8550      export_dynamic_flag_spec='${wl}--export-all-symbols'
8551      allow_undefined_flag=unsupported
8552      always_export_symbols=no
8553      enable_shared_with_static_runtimes=yes
8554      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'
8555      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8556
8557      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8558        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559	# If the export-symbols file already is a .def file (1st line
8560	# is EXPORTS), use it as is; otherwise, prepend...
8561	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8562	  cp $export_symbols $output_objdir/$soname.def;
8563	else
8564	  echo EXPORTS > $output_objdir/$soname.def;
8565	  cat $export_symbols >> $output_objdir/$soname.def;
8566	fi~
8567	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8568      else
8569	ld_shlibs=no
8570      fi
8571      ;;
8572
8573    haiku*)
8574      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8575      link_all_deplibs=yes
8576      ;;
8577
8578    interix[3-9]*)
8579      hardcode_direct=no
8580      hardcode_shlibpath_var=no
8581      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8582      export_dynamic_flag_spec='${wl}-E'
8583      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8584      # Instead, shared libraries are loaded at an image base (0x10000000 by
8585      # default) and relocated if they conflict, which is a slow very memory
8586      # consuming and fragmenting process.  To avoid this, we pick a random,
8587      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8588      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8589      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8590      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'
8591      ;;
8592
8593    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8594      tmp_diet=no
8595      if test "$host_os" = linux-dietlibc; then
8596	case $cc_basename in
8597	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8598	esac
8599      fi
8600      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8601	 && test "$tmp_diet" = no
8602      then
8603	tmp_addflag=' $pic_flag'
8604	tmp_sharedflag='-shared'
8605	case $cc_basename,$host_cpu in
8606        pgcc*)				# Portland Group C compiler
8607	  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'
8608	  tmp_addflag=' $pic_flag'
8609	  ;;
8610	pgf77* | pgf90* | pgf95* | pgfortran*)
8611					# Portland Group f77 and f90 compilers
8612	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8613	  tmp_addflag=' $pic_flag -Mnomain' ;;
8614	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8615	  tmp_addflag=' -i_dynamic' ;;
8616	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8617	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8618	ifc* | ifort*)			# Intel Fortran compiler
8619	  tmp_addflag=' -nofor_main' ;;
8620	lf95*)				# Lahey Fortran 8.1
8621	  whole_archive_flag_spec=
8622	  tmp_sharedflag='--shared' ;;
8623	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8624	  tmp_sharedflag='-qmkshrobj'
8625	  tmp_addflag= ;;
8626	nvcc*)	# Cuda Compiler Driver 2.2
8627	  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'
8628	  compiler_needs_object=yes
8629	  ;;
8630	esac
8631	case `$CC -V 2>&1 | sed 5q` in
8632	*Sun\ C*)			# Sun C 5.9
8633	  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'
8634	  compiler_needs_object=yes
8635	  tmp_sharedflag='-G' ;;
8636	*Sun\ F*)			# Sun Fortran 8.3
8637	  tmp_sharedflag='-G' ;;
8638	esac
8639	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640
8641        if test "x$supports_anon_versioning" = xyes; then
8642          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8643	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8644	    echo "local: *; };" >> $output_objdir/$libname.ver~
8645	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8646        fi
8647
8648	case $cc_basename in
8649	xlf* | bgf* | bgxlf* | mpixlf*)
8650	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8651	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8652	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8654	  if test "x$supports_anon_versioning" = xyes; then
8655	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8656	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8657	      echo "local: *; };" >> $output_objdir/$libname.ver~
8658	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8659	  fi
8660	  ;;
8661	esac
8662      else
8663        ld_shlibs=no
8664      fi
8665      ;;
8666
8667    netbsd*)
8668      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8669	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8670	wlarc=
8671      else
8672	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8673	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8674      fi
8675      ;;
8676
8677    solaris*)
8678      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8679	ld_shlibs=no
8680	cat <<_LT_EOF 1>&2
8681
8682*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8683*** create shared libraries on Solaris systems.  Therefore, libtool
8684*** is disabling shared libraries support.  We urge you to upgrade GNU
8685*** binutils to release 2.9.1 or newer.  Another option is to modify
8686*** your PATH or compiler configuration so that the native linker is
8687*** used, and then restart.
8688
8689_LT_EOF
8690      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8691	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8693      else
8694	ld_shlibs=no
8695      fi
8696      ;;
8697
8698    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8699      case `$LD -v 2>&1` in
8700        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8701	ld_shlibs=no
8702	cat <<_LT_EOF 1>&2
8703
8704*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8705*** reliably create shared libraries on SCO systems.  Therefore, libtool
8706*** is disabling shared libraries support.  We urge you to upgrade GNU
8707*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8708*** your PATH or compiler configuration so that the native linker is
8709*** used, and then restart.
8710
8711_LT_EOF
8712	;;
8713	*)
8714	  # For security reasons, it is highly recommended that you always
8715	  # use absolute paths for naming shared libraries, and exclude the
8716	  # DT_RUNPATH tag from executables and libraries.  But doing so
8717	  # requires that you compile everything twice, which is a pain.
8718	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8719	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8722	  else
8723	    ld_shlibs=no
8724	  fi
8725	;;
8726      esac
8727      ;;
8728
8729    sunos4*)
8730      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731      wlarc=
8732      hardcode_direct=yes
8733      hardcode_shlibpath_var=no
8734      ;;
8735
8736    *)
8737      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8738	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740      else
8741	ld_shlibs=no
8742      fi
8743      ;;
8744    esac
8745
8746    if test "$ld_shlibs" = no; then
8747      runpath_var=
8748      hardcode_libdir_flag_spec=
8749      export_dynamic_flag_spec=
8750      whole_archive_flag_spec=
8751    fi
8752  else
8753    # PORTME fill in a description of your system's linker (not GNU ld)
8754    case $host_os in
8755    aix3*)
8756      allow_undefined_flag=unsupported
8757      always_export_symbols=yes
8758      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'
8759      # Note: this linker hardcodes the directories in LIBPATH if there
8760      # are no directories specified by -L.
8761      hardcode_minus_L=yes
8762      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8763	# Neither direct hardcoding nor static linking is supported with a
8764	# broken collect2.
8765	hardcode_direct=unsupported
8766      fi
8767      ;;
8768
8769    aix[4-9]*)
8770      if test "$host_cpu" = ia64; then
8771	# On IA64, the linker does run time linking by default, so we don't
8772	# have to do anything special.
8773	aix_use_runtimelinking=no
8774	exp_sym_flag='-Bexport'
8775	no_entry_flag=""
8776      else
8777	# If we're using GNU nm, then we don't want the "-C" option.
8778	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8779	# Also, AIX nm treats weak defined symbols like other global
8780	# defined symbols, whereas GNU nm marks them as "W".
8781	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8782	  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'
8783	else
8784	  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'
8785	fi
8786	aix_use_runtimelinking=no
8787
8788	# Test if we are trying to use run time linking or normal
8789	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8790	# need to do runtime linking.
8791	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8792	  for ld_flag in $LDFLAGS; do
8793	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8794	    aix_use_runtimelinking=yes
8795	    break
8796	  fi
8797	  done
8798	  ;;
8799	esac
8800
8801	exp_sym_flag='-bexport'
8802	no_entry_flag='-bnoentry'
8803      fi
8804
8805      # When large executables or shared objects are built, AIX ld can
8806      # have problems creating the table of contents.  If linking a library
8807      # or program results in "error TOC overflow" add -mminimal-toc to
8808      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8809      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8810
8811      archive_cmds=''
8812      hardcode_direct=yes
8813      hardcode_direct_absolute=yes
8814      hardcode_libdir_separator=':'
8815      link_all_deplibs=yes
8816      file_list_spec='${wl}-f,'
8817
8818      if test "$GCC" = yes; then
8819	case $host_os in aix4.[012]|aix4.[012].*)
8820	# We only want to do this on AIX 4.2 and lower, the check
8821	# below for broken collect2 doesn't work under 4.3+
8822	  collect2name=`${CC} -print-prog-name=collect2`
8823	  if test -f "$collect2name" &&
8824	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8825	  then
8826	  # We have reworked collect2
8827	  :
8828	  else
8829	  # We have old collect2
8830	  hardcode_direct=unsupported
8831	  # It fails to find uninstalled libraries when the uninstalled
8832	  # path is not listed in the libpath.  Setting hardcode_minus_L
8833	  # to unsupported forces relinking
8834	  hardcode_minus_L=yes
8835	  hardcode_libdir_flag_spec='-L$libdir'
8836	  hardcode_libdir_separator=
8837	  fi
8838	  ;;
8839	esac
8840	shared_flag='-shared'
8841	if test "$aix_use_runtimelinking" = yes; then
8842	  shared_flag="$shared_flag "'${wl}-G'
8843	fi
8844      else
8845	# not using gcc
8846	if test "$host_cpu" = ia64; then
8847	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8848	# chokes on -Wl,-G. The following line is correct:
8849	  shared_flag='-G'
8850	else
8851	  if test "$aix_use_runtimelinking" = yes; then
8852	    shared_flag='${wl}-G'
8853	  else
8854	    shared_flag='${wl}-bM:SRE'
8855	  fi
8856	fi
8857      fi
8858
8859      export_dynamic_flag_spec='${wl}-bexpall'
8860      # It seems that -bexpall does not export symbols beginning with
8861      # underscore (_), so it is better to generate a list of symbols to export.
8862      always_export_symbols=yes
8863      if test "$aix_use_runtimelinking" = yes; then
8864	# Warning - without using the other runtime loading flags (-brtl),
8865	# -berok will link without error, but may produce a broken library.
8866	allow_undefined_flag='-berok'
8867        # Determine the default libpath from the value encoded in an
8868        # empty executable.
8869        if test "${lt_cv_aix_libpath+set}" = set; then
8870  aix_libpath=$lt_cv_aix_libpath
8871else
8872  if ${lt_cv_aix_libpath_+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877
8878int
8879main ()
8880{
8881
8882  ;
8883  return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_link "$LINENO"; then :
8887
8888  lt_aix_libpath_sed='
8889      /Import File Strings/,/^$/ {
8890	  /^0/ {
8891	      s/^0  *\([^ ]*\) *$/\1/
8892	      p
8893	  }
8894      }'
8895  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896  # Check for a 64-bit object if we didn't find anything.
8897  if test -z "$lt_cv_aix_libpath_"; then
8898    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899  fi
8900fi
8901rm -f core conftest.err conftest.$ac_objext \
8902    conftest$ac_exeext conftest.$ac_ext
8903  if test -z "$lt_cv_aix_libpath_"; then
8904    lt_cv_aix_libpath_="/usr/lib:/lib"
8905  fi
8906
8907fi
8908
8909  aix_libpath=$lt_cv_aix_libpath_
8910fi
8911
8912        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913        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"
8914      else
8915	if test "$host_cpu" = ia64; then
8916	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8917	  allow_undefined_flag="-z nodefs"
8918	  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"
8919	else
8920	 # Determine the default libpath from the value encoded in an
8921	 # empty executable.
8922	 if test "${lt_cv_aix_libpath+set}" = set; then
8923  aix_libpath=$lt_cv_aix_libpath
8924else
8925  if ${lt_cv_aix_libpath_+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h.  */
8930
8931int
8932main ()
8933{
8934
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_link "$LINENO"; then :
8940
8941  lt_aix_libpath_sed='
8942      /Import File Strings/,/^$/ {
8943	  /^0/ {
8944	      s/^0  *\([^ ]*\) *$/\1/
8945	      p
8946	  }
8947      }'
8948  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8949  # Check for a 64-bit object if we didn't find anything.
8950  if test -z "$lt_cv_aix_libpath_"; then
8951    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8952  fi
8953fi
8954rm -f core conftest.err conftest.$ac_objext \
8955    conftest$ac_exeext conftest.$ac_ext
8956  if test -z "$lt_cv_aix_libpath_"; then
8957    lt_cv_aix_libpath_="/usr/lib:/lib"
8958  fi
8959
8960fi
8961
8962  aix_libpath=$lt_cv_aix_libpath_
8963fi
8964
8965	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8966	  # Warning - without using the other run time loading flags,
8967	  # -berok will link without error, but may produce a broken library.
8968	  no_undefined_flag=' ${wl}-bernotok'
8969	  allow_undefined_flag=' ${wl}-berok'
8970	  if test "$with_gnu_ld" = yes; then
8971	    # We only use this code for GNU lds that support --whole-archive.
8972	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8973	  else
8974	    # Exported symbols can be pulled into shared objects from archives
8975	    whole_archive_flag_spec='$convenience'
8976	  fi
8977	  archive_cmds_need_lc=yes
8978	  # This is similar to how AIX traditionally builds its shared libraries.
8979	  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'
8980	fi
8981      fi
8982      ;;
8983
8984    amigaos*)
8985      case $host_cpu in
8986      powerpc)
8987            # see comment about AmigaOS4 .so support
8988            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989            archive_expsym_cmds=''
8990        ;;
8991      m68k)
8992            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)'
8993            hardcode_libdir_flag_spec='-L$libdir'
8994            hardcode_minus_L=yes
8995        ;;
8996      esac
8997      ;;
8998
8999    bsdi[45]*)
9000      export_dynamic_flag_spec=-rdynamic
9001      ;;
9002
9003    cygwin* | mingw* | pw32* | cegcc*)
9004      # When not using gcc, we currently assume that we are using
9005      # Microsoft Visual C++.
9006      # hardcode_libdir_flag_spec is actually meaningless, as there is
9007      # no search path for DLLs.
9008      case $cc_basename in
9009      cl*)
9010	# Native MSVC
9011	hardcode_libdir_flag_spec=' '
9012	allow_undefined_flag=unsupported
9013	always_export_symbols=yes
9014	file_list_spec='@'
9015	# Tell ltmain to make .lib files, not .a files.
9016	libext=lib
9017	# Tell ltmain to make .dll files, not .so files.
9018	shrext_cmds=".dll"
9019	# FIXME: Setting linknames here is a bad hack.
9020	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9021	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9022	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9023	  else
9024	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9025	  fi~
9026	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9027	  linknames='
9028	# The linker will not automatically build a static lib if we build a DLL.
9029	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9030	enable_shared_with_static_runtimes=yes
9031	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9032	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9033	# Don't use ranlib
9034	old_postinstall_cmds='chmod 644 $oldlib'
9035	postlink_cmds='lt_outputfile="@OUTPUT@"~
9036	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9037	  case $lt_outputfile in
9038	    *.exe|*.EXE) ;;
9039	    *)
9040	      lt_outputfile="$lt_outputfile.exe"
9041	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9042	      ;;
9043	  esac~
9044	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9045	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9046	    $RM "$lt_outputfile.manifest";
9047	  fi'
9048	;;
9049      *)
9050	# Assume MSVC wrapper
9051	hardcode_libdir_flag_spec=' '
9052	allow_undefined_flag=unsupported
9053	# Tell ltmain to make .lib files, not .a files.
9054	libext=lib
9055	# Tell ltmain to make .dll files, not .so files.
9056	shrext_cmds=".dll"
9057	# FIXME: Setting linknames here is a bad hack.
9058	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9059	# The linker will automatically build a .lib file if we build a DLL.
9060	old_archive_from_new_cmds='true'
9061	# FIXME: Should let the user specify the lib program.
9062	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9063	enable_shared_with_static_runtimes=yes
9064	;;
9065      esac
9066      ;;
9067
9068    darwin* | rhapsody*)
9069
9070
9071  archive_cmds_need_lc=no
9072  hardcode_direct=no
9073  hardcode_automatic=yes
9074  hardcode_shlibpath_var=unsupported
9075  if test "$lt_cv_ld_force_load" = "yes"; then
9076    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\"`'
9077
9078  else
9079    whole_archive_flag_spec=''
9080  fi
9081  link_all_deplibs=yes
9082  allow_undefined_flag="$_lt_dar_allow_undefined"
9083  case $cc_basename in
9084     ifort*) _lt_dar_can_shared=yes ;;
9085     *) _lt_dar_can_shared=$GCC ;;
9086  esac
9087  if test "$_lt_dar_can_shared" = "yes"; then
9088    output_verbose_link_cmd=func_echo_all
9089    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9090    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9091    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}"
9092    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}"
9093
9094  else
9095  ld_shlibs=no
9096  fi
9097
9098      ;;
9099
9100    dgux*)
9101      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102      hardcode_libdir_flag_spec='-L$libdir'
9103      hardcode_shlibpath_var=no
9104      ;;
9105
9106    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9107    # support.  Future versions do this automatically, but an explicit c++rt0.o
9108    # does not break anything, and helps significantly (at the cost of a little
9109    # extra space).
9110    freebsd2.2*)
9111      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9112      hardcode_libdir_flag_spec='-R$libdir'
9113      hardcode_direct=yes
9114      hardcode_shlibpath_var=no
9115      ;;
9116
9117    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9118    freebsd2.*)
9119      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9120      hardcode_direct=yes
9121      hardcode_minus_L=yes
9122      hardcode_shlibpath_var=no
9123      ;;
9124
9125    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9126    freebsd* | dragonfly*)
9127      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9128      hardcode_libdir_flag_spec='-R$libdir'
9129      hardcode_direct=yes
9130      hardcode_shlibpath_var=no
9131      ;;
9132
9133    hpux9*)
9134      if test "$GCC" = yes; then
9135	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'
9136      else
9137	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'
9138      fi
9139      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140      hardcode_libdir_separator=:
9141      hardcode_direct=yes
9142
9143      # hardcode_minus_L: Not really in the search PATH,
9144      # but as the default location of the library.
9145      hardcode_minus_L=yes
9146      export_dynamic_flag_spec='${wl}-E'
9147      ;;
9148
9149    hpux10*)
9150      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9151	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152      else
9153	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9154      fi
9155      if test "$with_gnu_ld" = no; then
9156	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9157	hardcode_libdir_separator=:
9158	hardcode_direct=yes
9159	hardcode_direct_absolute=yes
9160	export_dynamic_flag_spec='${wl}-E'
9161	# hardcode_minus_L: Not really in the search PATH,
9162	# but as the default location of the library.
9163	hardcode_minus_L=yes
9164      fi
9165      ;;
9166
9167    hpux11*)
9168      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9169	case $host_cpu in
9170	hppa*64*)
9171	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172	  ;;
9173	ia64*)
9174	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9175	  ;;
9176	*)
9177	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9178	  ;;
9179	esac
9180      else
9181	case $host_cpu in
9182	hppa*64*)
9183	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9184	  ;;
9185	ia64*)
9186	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9187	  ;;
9188	*)
9189
9190	  # Older versions of the 11.00 compiler do not understand -b yet
9191	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9192	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9193$as_echo_n "checking if $CC understands -b... " >&6; }
9194if ${lt_cv_prog_compiler__b+:} false; then :
9195  $as_echo_n "(cached) " >&6
9196else
9197  lt_cv_prog_compiler__b=no
9198   save_LDFLAGS="$LDFLAGS"
9199   LDFLAGS="$LDFLAGS -b"
9200   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9201   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9202     # The linker can only warn and ignore the option if not recognized
9203     # So say no if there are warnings
9204     if test -s conftest.err; then
9205       # Append any errors to the config.log.
9206       cat conftest.err 1>&5
9207       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9208       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209       if diff conftest.exp conftest.er2 >/dev/null; then
9210         lt_cv_prog_compiler__b=yes
9211       fi
9212     else
9213       lt_cv_prog_compiler__b=yes
9214     fi
9215   fi
9216   $RM -r conftest*
9217   LDFLAGS="$save_LDFLAGS"
9218
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9221$as_echo "$lt_cv_prog_compiler__b" >&6; }
9222
9223if test x"$lt_cv_prog_compiler__b" = xyes; then
9224    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9225else
9226    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9227fi
9228
9229	  ;;
9230	esac
9231      fi
9232      if test "$with_gnu_ld" = no; then
9233	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9234	hardcode_libdir_separator=:
9235
9236	case $host_cpu in
9237	hppa*64*|ia64*)
9238	  hardcode_direct=no
9239	  hardcode_shlibpath_var=no
9240	  ;;
9241	*)
9242	  hardcode_direct=yes
9243	  hardcode_direct_absolute=yes
9244	  export_dynamic_flag_spec='${wl}-E'
9245
9246	  # hardcode_minus_L: Not really in the search PATH,
9247	  # but as the default location of the library.
9248	  hardcode_minus_L=yes
9249	  ;;
9250	esac
9251      fi
9252      ;;
9253
9254    irix5* | irix6* | nonstopux*)
9255      if test "$GCC" = yes; then
9256	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'
9257	# Try to use the -exported_symbol ld option, if it does not
9258	# work, assume that -exports_file does not work either and
9259	# implicitly export all symbols.
9260	# This should be the same for all languages, so no per-tag cache variable.
9261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9262$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9263if ${lt_cv_irix_exported_symbol+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  save_LDFLAGS="$LDFLAGS"
9267	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9268	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269/* end confdefs.h.  */
9270int foo (void) { return 0; }
9271_ACEOF
9272if ac_fn_c_try_link "$LINENO"; then :
9273  lt_cv_irix_exported_symbol=yes
9274else
9275  lt_cv_irix_exported_symbol=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext \
9278    conftest$ac_exeext conftest.$ac_ext
9279           LDFLAGS="$save_LDFLAGS"
9280fi
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9282$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9283	if test "$lt_cv_irix_exported_symbol" = yes; then
9284          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'
9285	fi
9286      else
9287	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'
9288	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'
9289      fi
9290      archive_cmds_need_lc='no'
9291      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292      hardcode_libdir_separator=:
9293      inherit_rpath=yes
9294      link_all_deplibs=yes
9295      ;;
9296
9297    netbsd*)
9298      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9299	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9300      else
9301	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9302      fi
9303      hardcode_libdir_flag_spec='-R$libdir'
9304      hardcode_direct=yes
9305      hardcode_shlibpath_var=no
9306      ;;
9307
9308    newsos6)
9309      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310      hardcode_direct=yes
9311      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312      hardcode_libdir_separator=:
9313      hardcode_shlibpath_var=no
9314      ;;
9315
9316    *nto* | *qnx*)
9317      ;;
9318
9319    openbsd*)
9320      if test -f /usr/libexec/ld.so; then
9321	hardcode_direct=yes
9322	hardcode_shlibpath_var=no
9323	hardcode_direct_absolute=yes
9324	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9325	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9326	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9327	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328	  export_dynamic_flag_spec='${wl}-E'
9329	else
9330	  case $host_os in
9331	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9332	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9333	     hardcode_libdir_flag_spec='-R$libdir'
9334	     ;;
9335	   *)
9336	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9337	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9338	     ;;
9339	  esac
9340	fi
9341      else
9342	ld_shlibs=no
9343      fi
9344      ;;
9345
9346    os2*)
9347      hardcode_libdir_flag_spec='-L$libdir'
9348      hardcode_minus_L=yes
9349      allow_undefined_flag=unsupported
9350      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'
9351      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9352      ;;
9353
9354    osf3*)
9355      if test "$GCC" = yes; then
9356	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9357	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'
9358      else
9359	allow_undefined_flag=' -expect_unresolved \*'
9360	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'
9361      fi
9362      archive_cmds_need_lc='no'
9363      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9364      hardcode_libdir_separator=:
9365      ;;
9366
9367    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9368      if test "$GCC" = yes; then
9369	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9370	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'
9371	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372      else
9373	allow_undefined_flag=' -expect_unresolved \*'
9374	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'
9375	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~
9376	$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'
9377
9378	# Both c and cxx compiler support -rpath directly
9379	hardcode_libdir_flag_spec='-rpath $libdir'
9380      fi
9381      archive_cmds_need_lc='no'
9382      hardcode_libdir_separator=:
9383      ;;
9384
9385    solaris*)
9386      no_undefined_flag=' -z defs'
9387      if test "$GCC" = yes; then
9388	wlarc='${wl}'
9389	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9391	  $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'
9392      else
9393	case `$CC -V 2>&1` in
9394	*"Compilers 5.0"*)
9395	  wlarc=''
9396	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9398	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9399	  ;;
9400	*)
9401	  wlarc='${wl}'
9402	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9403	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9404	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9405	  ;;
9406	esac
9407      fi
9408      hardcode_libdir_flag_spec='-R$libdir'
9409      hardcode_shlibpath_var=no
9410      case $host_os in
9411      solaris2.[0-5] | solaris2.[0-5].*) ;;
9412      *)
9413	# The compiler driver will combine and reorder linker options,
9414	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9415	# but is careful enough not to reorder.
9416	# Supported since Solaris 2.6 (maybe 2.5.1?)
9417	if test "$GCC" = yes; then
9418	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9419	else
9420	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9421	fi
9422	;;
9423      esac
9424      link_all_deplibs=yes
9425      ;;
9426
9427    sunos4*)
9428      if test "x$host_vendor" = xsequent; then
9429	# Use $CC to link under sequent, because it throws in some extra .o
9430	# files that make .init and .fini sections work.
9431	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9432      else
9433	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9434      fi
9435      hardcode_libdir_flag_spec='-L$libdir'
9436      hardcode_direct=yes
9437      hardcode_minus_L=yes
9438      hardcode_shlibpath_var=no
9439      ;;
9440
9441    sysv4)
9442      case $host_vendor in
9443	sni)
9444	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445	  hardcode_direct=yes # is this really true???
9446	;;
9447	siemens)
9448	  ## LD is ld it makes a PLAMLIB
9449	  ## CC just makes a GrossModule.
9450	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9451	  reload_cmds='$CC -r -o $output$reload_objs'
9452	  hardcode_direct=no
9453        ;;
9454	motorola)
9455	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9457	;;
9458      esac
9459      runpath_var='LD_RUN_PATH'
9460      hardcode_shlibpath_var=no
9461      ;;
9462
9463    sysv4.3*)
9464      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465      hardcode_shlibpath_var=no
9466      export_dynamic_flag_spec='-Bexport'
9467      ;;
9468
9469    sysv4*MP*)
9470      if test -d /usr/nec; then
9471	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472	hardcode_shlibpath_var=no
9473	runpath_var=LD_RUN_PATH
9474	hardcode_runpath_var=yes
9475	ld_shlibs=yes
9476      fi
9477      ;;
9478
9479    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9480      no_undefined_flag='${wl}-z,text'
9481      archive_cmds_need_lc=no
9482      hardcode_shlibpath_var=no
9483      runpath_var='LD_RUN_PATH'
9484
9485      if test "$GCC" = yes; then
9486	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488      else
9489	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491      fi
9492      ;;
9493
9494    sysv5* | sco3.2v5* | sco5v6*)
9495      # Note: We can NOT use -z defs as we might desire, because we do not
9496      # link with -lc, and that would cause any symbols used from libc to
9497      # always be unresolved, which means just about no library would
9498      # ever link correctly.  If we're not using GNU ld we use -z text
9499      # though, which does catch some bad symbols but isn't as heavy-handed
9500      # as -z defs.
9501      no_undefined_flag='${wl}-z,text'
9502      allow_undefined_flag='${wl}-z,nodefs'
9503      archive_cmds_need_lc=no
9504      hardcode_shlibpath_var=no
9505      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9506      hardcode_libdir_separator=':'
9507      link_all_deplibs=yes
9508      export_dynamic_flag_spec='${wl}-Bexport'
9509      runpath_var='LD_RUN_PATH'
9510
9511      if test "$GCC" = yes; then
9512	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514      else
9515	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517      fi
9518      ;;
9519
9520    uts4*)
9521      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522      hardcode_libdir_flag_spec='-L$libdir'
9523      hardcode_shlibpath_var=no
9524      ;;
9525
9526    *)
9527      ld_shlibs=no
9528      ;;
9529    esac
9530
9531    if test x$host_vendor = xsni; then
9532      case $host in
9533      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9534	export_dynamic_flag_spec='${wl}-Blargedynsym'
9535	;;
9536      esac
9537    fi
9538  fi
9539
9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9541$as_echo "$ld_shlibs" >&6; }
9542test "$ld_shlibs" = no && can_build_shared=no
9543
9544with_gnu_ld=$with_gnu_ld
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560#
9561# Do we need to explicitly link libc?
9562#
9563case "x$archive_cmds_need_lc" in
9564x|xyes)
9565  # Assume -lc should be added
9566  archive_cmds_need_lc=yes
9567
9568  if test "$enable_shared" = yes && test "$GCC" = yes; then
9569    case $archive_cmds in
9570    *'~'*)
9571      # FIXME: we may have to deal with multi-command sequences.
9572      ;;
9573    '$CC '*)
9574      # Test whether the compiler implicitly links with -lc since on some
9575      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9576      # to ld, don't add -lc before -lgcc.
9577      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9578$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9579if ${lt_cv_archive_cmds_need_lc+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  $RM conftest*
9583	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584
9585	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9586  (eval $ac_compile) 2>&5
9587  ac_status=$?
9588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589  test $ac_status = 0; } 2>conftest.err; then
9590	  soname=conftest
9591	  lib=conftest
9592	  libobjs=conftest.$ac_objext
9593	  deplibs=
9594	  wl=$lt_prog_compiler_wl
9595	  pic_flag=$lt_prog_compiler_pic
9596	  compiler_flags=-v
9597	  linker_flags=-v
9598	  verstring=
9599	  output_objdir=.
9600	  libname=conftest
9601	  lt_save_allow_undefined_flag=$allow_undefined_flag
9602	  allow_undefined_flag=
9603	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9604  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9605  ac_status=$?
9606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9607  test $ac_status = 0; }
9608	  then
9609	    lt_cv_archive_cmds_need_lc=no
9610	  else
9611	    lt_cv_archive_cmds_need_lc=yes
9612	  fi
9613	  allow_undefined_flag=$lt_save_allow_undefined_flag
9614	else
9615	  cat conftest.err 1>&5
9616	fi
9617	$RM conftest*
9618
9619fi
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9621$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9622      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9623      ;;
9624    esac
9625  fi
9626  ;;
9627esac
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9781$as_echo_n "checking dynamic linker characteristics... " >&6; }
9782
9783if test "$GCC" = yes; then
9784  case $host_os in
9785    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9786    *) lt_awk_arg="/^libraries:/" ;;
9787  esac
9788  case $host_os in
9789    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9790    *) lt_sed_strip_eq="s,=/,/,g" ;;
9791  esac
9792  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9793  case $lt_search_path_spec in
9794  *\;*)
9795    # if the path contains ";" then we assume it to be the separator
9796    # otherwise default to the standard path separator (i.e. ":") - it is
9797    # assumed that no part of a normal pathname contains ";" but that should
9798    # okay in the real world where ";" in dirpaths is itself problematic.
9799    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9800    ;;
9801  *)
9802    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9803    ;;
9804  esac
9805  # Ok, now we have the path, separated by spaces, we can step through it
9806  # and add multilib dir if necessary.
9807  lt_tmp_lt_search_path_spec=
9808  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9809  for lt_sys_path in $lt_search_path_spec; do
9810    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9811      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9812    else
9813      test -d "$lt_sys_path" && \
9814	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9815    fi
9816  done
9817  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9818BEGIN {RS=" "; FS="/|\n";} {
9819  lt_foo="";
9820  lt_count=0;
9821  for (lt_i = NF; lt_i > 0; lt_i--) {
9822    if ($lt_i != "" && $lt_i != ".") {
9823      if ($lt_i == "..") {
9824        lt_count++;
9825      } else {
9826        if (lt_count == 0) {
9827          lt_foo="/" $lt_i lt_foo;
9828        } else {
9829          lt_count--;
9830        }
9831      }
9832    }
9833  }
9834  if (lt_foo != "") { lt_freq[lt_foo]++; }
9835  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9836}'`
9837  # AWK program above erroneously prepends '/' to C:/dos/paths
9838  # for these hosts.
9839  case $host_os in
9840    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9841      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9842  esac
9843  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9844else
9845  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9846fi
9847library_names_spec=
9848libname_spec='lib$name'
9849soname_spec=
9850shrext_cmds=".so"
9851postinstall_cmds=
9852postuninstall_cmds=
9853finish_cmds=
9854finish_eval=
9855shlibpath_var=
9856shlibpath_overrides_runpath=unknown
9857version_type=none
9858dynamic_linker="$host_os ld.so"
9859sys_lib_dlsearch_path_spec="/lib /usr/lib"
9860need_lib_prefix=unknown
9861hardcode_into_libs=no
9862
9863# when you set need_version to no, make sure it does not cause -set_version
9864# flags to be left without arguments
9865need_version=unknown
9866
9867case $host_os in
9868aix3*)
9869  version_type=linux # correct to gnu/linux during the next big refactor
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9871  shlibpath_var=LIBPATH
9872
9873  # AIX 3 has no versioning support, so we append a major version to the name.
9874  soname_spec='${libname}${release}${shared_ext}$major'
9875  ;;
9876
9877aix[4-9]*)
9878  version_type=linux # correct to gnu/linux during the next big refactor
9879  need_lib_prefix=no
9880  need_version=no
9881  hardcode_into_libs=yes
9882  if test "$host_cpu" = ia64; then
9883    # AIX 5 supports IA64
9884    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9885    shlibpath_var=LD_LIBRARY_PATH
9886  else
9887    # With GCC up to 2.95.x, collect2 would create an import file
9888    # for dependence libraries.  The import file would start with
9889    # the line `#! .'.  This would cause the generated library to
9890    # depend on `.', always an invalid library.  This was fixed in
9891    # development snapshots of GCC prior to 3.0.
9892    case $host_os in
9893      aix4 | aix4.[01] | aix4.[01].*)
9894      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9895	   echo ' yes '
9896	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9897	:
9898      else
9899	can_build_shared=no
9900      fi
9901      ;;
9902    esac
9903    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9904    # soname into executable. Probably we can add versioning support to
9905    # collect2, so additional links can be useful in future.
9906    if test "$aix_use_runtimelinking" = yes; then
9907      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9908      # instead of lib<name>.a to let people know that these are not
9909      # typical AIX shared libraries.
9910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911    else
9912      # We preserve .a as extension for shared libraries through AIX4.2
9913      # and later when we are not doing run time linking.
9914      library_names_spec='${libname}${release}.a $libname.a'
9915      soname_spec='${libname}${release}${shared_ext}$major'
9916    fi
9917    shlibpath_var=LIBPATH
9918  fi
9919  ;;
9920
9921amigaos*)
9922  case $host_cpu in
9923  powerpc)
9924    # Since July 2007 AmigaOS4 officially supports .so libraries.
9925    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927    ;;
9928  m68k)
9929    library_names_spec='$libname.ixlibrary $libname.a'
9930    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9931    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'
9932    ;;
9933  esac
9934  ;;
9935
9936beos*)
9937  library_names_spec='${libname}${shared_ext}'
9938  dynamic_linker="$host_os ld.so"
9939  shlibpath_var=LIBRARY_PATH
9940  ;;
9941
9942bsdi[45]*)
9943  version_type=linux # correct to gnu/linux during the next big refactor
9944  need_version=no
9945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946  soname_spec='${libname}${release}${shared_ext}$major'
9947  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9948  shlibpath_var=LD_LIBRARY_PATH
9949  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9950  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9951  # the default ld.so.conf also contains /usr/contrib/lib and
9952  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9953  # libtool to hard-code these into programs
9954  ;;
9955
9956cygwin* | mingw* | pw32* | cegcc*)
9957  version_type=windows
9958  shrext_cmds=".dll"
9959  need_version=no
9960  need_lib_prefix=no
9961
9962  case $GCC,$cc_basename in
9963  yes,*)
9964    # gcc
9965    library_names_spec='$libname.dll.a'
9966    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9967    postinstall_cmds='base_file=`basename \${file}`~
9968      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9969      dldir=$destdir/`dirname \$dlpath`~
9970      test -d \$dldir || mkdir -p \$dldir~
9971      $install_prog $dir/$dlname \$dldir/$dlname~
9972      chmod a+x \$dldir/$dlname~
9973      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9974        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9975      fi'
9976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9977      dlpath=$dir/\$dldll~
9978       $RM \$dlpath'
9979    shlibpath_overrides_runpath=yes
9980
9981    case $host_os in
9982    cygwin*)
9983      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9984      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9985
9986      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9987      ;;
9988    mingw* | cegcc*)
9989      # MinGW DLLs use traditional 'lib' prefix
9990      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9991      ;;
9992    pw32*)
9993      # pw32 DLLs use 'pw' prefix rather than 'lib'
9994      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9995      ;;
9996    esac
9997    dynamic_linker='Win32 ld.exe'
9998    ;;
9999
10000  *,cl*)
10001    # Native MSVC
10002    libname_spec='$name'
10003    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004    library_names_spec='${libname}.dll.lib'
10005
10006    case $build_os in
10007    mingw*)
10008      sys_lib_search_path_spec=
10009      lt_save_ifs=$IFS
10010      IFS=';'
10011      for lt_path in $LIB
10012      do
10013        IFS=$lt_save_ifs
10014        # Let DOS variable expansion print the short 8.3 style file name.
10015        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10016        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10017      done
10018      IFS=$lt_save_ifs
10019      # Convert to MSYS style.
10020      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10021      ;;
10022    cygwin*)
10023      # Convert to unix form, then to dos form, then back to unix form
10024      # but this time dos style (no spaces!) so that the unix form looks
10025      # like /cygdrive/c/PROGRA~1:/cygdr...
10026      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10027      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10028      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10029      ;;
10030    *)
10031      sys_lib_search_path_spec="$LIB"
10032      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10033        # It is most probably a Windows format PATH.
10034        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10035      else
10036        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10037      fi
10038      # FIXME: find the short name or the path components, as spaces are
10039      # common. (e.g. "Program Files" -> "PROGRA~1")
10040      ;;
10041    esac
10042
10043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10044    postinstall_cmds='base_file=`basename \${file}`~
10045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10046      dldir=$destdir/`dirname \$dlpath`~
10047      test -d \$dldir || mkdir -p \$dldir~
10048      $install_prog $dir/$dlname \$dldir/$dlname'
10049    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10050      dlpath=$dir/\$dldll~
10051       $RM \$dlpath'
10052    shlibpath_overrides_runpath=yes
10053    dynamic_linker='Win32 link.exe'
10054    ;;
10055
10056  *)
10057    # Assume MSVC wrapper
10058    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10059    dynamic_linker='Win32 ld.exe'
10060    ;;
10061  esac
10062  # FIXME: first we should search . and the directory the executable is in
10063  shlibpath_var=PATH
10064  ;;
10065
10066darwin* | rhapsody*)
10067  dynamic_linker="$host_os dyld"
10068  version_type=darwin
10069  need_lib_prefix=no
10070  need_version=no
10071  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10072  soname_spec='${libname}${release}${major}$shared_ext'
10073  shlibpath_overrides_runpath=yes
10074  shlibpath_var=DYLD_LIBRARY_PATH
10075  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10076
10077  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10078  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10079  ;;
10080
10081dgux*)
10082  version_type=linux # correct to gnu/linux during the next big refactor
10083  need_lib_prefix=no
10084  need_version=no
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=LD_LIBRARY_PATH
10088  ;;
10089
10090freebsd* | dragonfly*)
10091  # DragonFly does not have aout.  When/if they implement a new
10092  # versioning mechanism, adjust this.
10093  if test -x /usr/bin/objformat; then
10094    objformat=`/usr/bin/objformat`
10095  else
10096    case $host_os in
10097    freebsd[23].*) objformat=aout ;;
10098    *) objformat=elf ;;
10099    esac
10100  fi
10101  version_type=freebsd-$objformat
10102  case $version_type in
10103    freebsd-elf*)
10104      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10105      need_version=no
10106      need_lib_prefix=no
10107      ;;
10108    freebsd-*)
10109      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10110      need_version=yes
10111      ;;
10112  esac
10113  shlibpath_var=LD_LIBRARY_PATH
10114  case $host_os in
10115  freebsd2.*)
10116    shlibpath_overrides_runpath=yes
10117    ;;
10118  freebsd3.[01]* | freebsdelf3.[01]*)
10119    shlibpath_overrides_runpath=yes
10120    hardcode_into_libs=yes
10121    ;;
10122  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10123  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10124    shlibpath_overrides_runpath=no
10125    hardcode_into_libs=yes
10126    ;;
10127  *) # from 4.6 on, and DragonFly
10128    shlibpath_overrides_runpath=yes
10129    hardcode_into_libs=yes
10130    ;;
10131  esac
10132  ;;
10133
10134gnu*)
10135  version_type=linux # correct to gnu/linux during the next big refactor
10136  need_lib_prefix=no
10137  need_version=no
10138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10139  soname_spec='${libname}${release}${shared_ext}$major'
10140  shlibpath_var=LD_LIBRARY_PATH
10141  shlibpath_overrides_runpath=no
10142  hardcode_into_libs=yes
10143  ;;
10144
10145haiku*)
10146  version_type=linux # correct to gnu/linux during the next big refactor
10147  need_lib_prefix=no
10148  need_version=no
10149  dynamic_linker="$host_os runtime_loader"
10150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10151  soname_spec='${libname}${release}${shared_ext}$major'
10152  shlibpath_var=LIBRARY_PATH
10153  shlibpath_overrides_runpath=yes
10154  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10155  hardcode_into_libs=yes
10156  ;;
10157
10158hpux9* | hpux10* | hpux11*)
10159  # Give a soname corresponding to the major version so that dld.sl refuses to
10160  # link against other versions.
10161  version_type=sunos
10162  need_lib_prefix=no
10163  need_version=no
10164  case $host_cpu in
10165  ia64*)
10166    shrext_cmds='.so'
10167    hardcode_into_libs=yes
10168    dynamic_linker="$host_os dld.so"
10169    shlibpath_var=LD_LIBRARY_PATH
10170    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172    soname_spec='${libname}${release}${shared_ext}$major'
10173    if test "X$HPUX_IA64_MODE" = X32; then
10174      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10175    else
10176      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10177    fi
10178    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10179    ;;
10180  hppa*64*)
10181    shrext_cmds='.sl'
10182    hardcode_into_libs=yes
10183    dynamic_linker="$host_os dld.sl"
10184    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10185    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10186    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187    soname_spec='${libname}${release}${shared_ext}$major'
10188    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10189    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10190    ;;
10191  *)
10192    shrext_cmds='.sl'
10193    dynamic_linker="$host_os dld.sl"
10194    shlibpath_var=SHLIB_PATH
10195    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10196    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197    soname_spec='${libname}${release}${shared_ext}$major'
10198    ;;
10199  esac
10200  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10201  postinstall_cmds='chmod 555 $lib'
10202  # or fails outright, so override atomically:
10203  install_override_mode=555
10204  ;;
10205
10206interix[3-9]*)
10207  version_type=linux # correct to gnu/linux during the next big refactor
10208  need_lib_prefix=no
10209  need_version=no
10210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211  soname_spec='${libname}${release}${shared_ext}$major'
10212  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10213  shlibpath_var=LD_LIBRARY_PATH
10214  shlibpath_overrides_runpath=no
10215  hardcode_into_libs=yes
10216  ;;
10217
10218irix5* | irix6* | nonstopux*)
10219  case $host_os in
10220    nonstopux*) version_type=nonstopux ;;
10221    *)
10222	if test "$lt_cv_prog_gnu_ld" = yes; then
10223		version_type=linux # correct to gnu/linux during the next big refactor
10224	else
10225		version_type=irix
10226	fi ;;
10227  esac
10228  need_lib_prefix=no
10229  need_version=no
10230  soname_spec='${libname}${release}${shared_ext}$major'
10231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10232  case $host_os in
10233  irix5* | nonstopux*)
10234    libsuff= shlibsuff=
10235    ;;
10236  *)
10237    case $LD in # libtool.m4 will add one of these switches to LD
10238    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10239      libsuff= shlibsuff= libmagic=32-bit;;
10240    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10241      libsuff=32 shlibsuff=N32 libmagic=N32;;
10242    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10243      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10244    *) libsuff= shlibsuff= libmagic=never-match;;
10245    esac
10246    ;;
10247  esac
10248  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10249  shlibpath_overrides_runpath=no
10250  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10251  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10252  hardcode_into_libs=yes
10253  ;;
10254
10255# No shared lib support for Linux oldld, aout, or coff.
10256linux*oldld* | linux*aout* | linux*coff*)
10257  dynamic_linker=no
10258  ;;
10259
10260# This must be glibc/ELF.
10261linux* | k*bsd*-gnu | kopensolaris*-gnu)
10262  version_type=linux # correct to gnu/linux during the next big refactor
10263  need_lib_prefix=no
10264  need_version=no
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266  soname_spec='${libname}${release}${shared_ext}$major'
10267  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10268  shlibpath_var=LD_LIBRARY_PATH
10269  shlibpath_overrides_runpath=no
10270
10271  # Some binutils ld are patched to set DT_RUNPATH
10272  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10273  $as_echo_n "(cached) " >&6
10274else
10275  lt_cv_shlibpath_overrides_runpath=no
10276    save_LDFLAGS=$LDFLAGS
10277    save_libdir=$libdir
10278    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10279	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10280    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282
10283int
10284main ()
10285{
10286
10287  ;
10288  return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_link "$LINENO"; then :
10292  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10293  lt_cv_shlibpath_overrides_runpath=yes
10294fi
10295fi
10296rm -f core conftest.err conftest.$ac_objext \
10297    conftest$ac_exeext conftest.$ac_ext
10298    LDFLAGS=$save_LDFLAGS
10299    libdir=$save_libdir
10300
10301fi
10302
10303  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10304
10305  # This implies no fast_install, which is unacceptable.
10306  # Some rework will be needed to allow for fast_install
10307  # before this can be enabled.
10308  hardcode_into_libs=yes
10309
10310  # Add ABI-specific directories to the system library path.
10311  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10312
10313  # Append ld.so.conf contents to the search path
10314  if test -f /etc/ld.so.conf; then
10315    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' ' '`
10316    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10317
10318  fi
10319
10320  # We used to test for /lib/ld.so.1 and disable shared libraries on
10321  # powerpc, because MkLinux only supported shared libraries with the
10322  # GNU dynamic linker.  Since this was broken with cross compilers,
10323  # most powerpc-linux boxes support dynamic linking these days and
10324  # people can always --disable-shared, the test was removed, and we
10325  # assume the GNU/Linux dynamic linker is in use.
10326  dynamic_linker='GNU/Linux ld.so'
10327  ;;
10328
10329netbsd*)
10330  version_type=sunos
10331  need_lib_prefix=no
10332  need_version=no
10333  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10334    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10335    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10336    dynamic_linker='NetBSD (a.out) ld.so'
10337  else
10338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10339    soname_spec='${libname}${release}${shared_ext}$major'
10340    dynamic_linker='NetBSD ld.elf_so'
10341  fi
10342  shlibpath_var=LD_LIBRARY_PATH
10343  shlibpath_overrides_runpath=yes
10344  hardcode_into_libs=yes
10345  ;;
10346
10347newsos6)
10348  version_type=linux # correct to gnu/linux during the next big refactor
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  shlibpath_overrides_runpath=yes
10352  ;;
10353
10354*nto* | *qnx*)
10355  version_type=qnx
10356  need_lib_prefix=no
10357  need_version=no
10358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359  soname_spec='${libname}${release}${shared_ext}$major'
10360  shlibpath_var=LD_LIBRARY_PATH
10361  shlibpath_overrides_runpath=no
10362  hardcode_into_libs=yes
10363  dynamic_linker='ldqnx.so'
10364  ;;
10365
10366openbsd*)
10367  version_type=sunos
10368  sys_lib_dlsearch_path_spec="/usr/lib"
10369  need_lib_prefix=no
10370  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10371  case $host_os in
10372    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10373    *)				need_version=no  ;;
10374  esac
10375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10377  shlibpath_var=LD_LIBRARY_PATH
10378  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10379    case $host_os in
10380      openbsd2.[89] | openbsd2.[89].*)
10381	shlibpath_overrides_runpath=no
10382	;;
10383      *)
10384	shlibpath_overrides_runpath=yes
10385	;;
10386      esac
10387  else
10388    shlibpath_overrides_runpath=yes
10389  fi
10390  ;;
10391
10392os2*)
10393  libname_spec='$name'
10394  shrext_cmds=".dll"
10395  need_lib_prefix=no
10396  library_names_spec='$libname${shared_ext} $libname.a'
10397  dynamic_linker='OS/2 ld.exe'
10398  shlibpath_var=LIBPATH
10399  ;;
10400
10401osf3* | osf4* | osf5*)
10402  version_type=osf
10403  need_lib_prefix=no
10404  need_version=no
10405  soname_spec='${libname}${release}${shared_ext}$major'
10406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407  shlibpath_var=LD_LIBRARY_PATH
10408  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10409  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10410  ;;
10411
10412rdos*)
10413  dynamic_linker=no
10414  ;;
10415
10416solaris*)
10417  version_type=linux # correct to gnu/linux during the next big refactor
10418  need_lib_prefix=no
10419  need_version=no
10420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421  soname_spec='${libname}${release}${shared_ext}$major'
10422  shlibpath_var=LD_LIBRARY_PATH
10423  shlibpath_overrides_runpath=yes
10424  hardcode_into_libs=yes
10425  # ldd complains unless libraries are executable
10426  postinstall_cmds='chmod +x $lib'
10427  ;;
10428
10429sunos4*)
10430  version_type=sunos
10431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10432  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  shlibpath_overrides_runpath=yes
10435  if test "$with_gnu_ld" = yes; then
10436    need_lib_prefix=no
10437  fi
10438  need_version=yes
10439  ;;
10440
10441sysv4 | sysv4.3*)
10442  version_type=linux # correct to gnu/linux during the next big refactor
10443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444  soname_spec='${libname}${release}${shared_ext}$major'
10445  shlibpath_var=LD_LIBRARY_PATH
10446  case $host_vendor in
10447    sni)
10448      shlibpath_overrides_runpath=no
10449      need_lib_prefix=no
10450      runpath_var=LD_RUN_PATH
10451      ;;
10452    siemens)
10453      need_lib_prefix=no
10454      ;;
10455    motorola)
10456      need_lib_prefix=no
10457      need_version=no
10458      shlibpath_overrides_runpath=no
10459      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10460      ;;
10461  esac
10462  ;;
10463
10464sysv4*MP*)
10465  if test -d /usr/nec ;then
10466    version_type=linux # correct to gnu/linux during the next big refactor
10467    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10468    soname_spec='$libname${shared_ext}.$major'
10469    shlibpath_var=LD_LIBRARY_PATH
10470  fi
10471  ;;
10472
10473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10474  version_type=freebsd-elf
10475  need_lib_prefix=no
10476  need_version=no
10477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10478  soname_spec='${libname}${release}${shared_ext}$major'
10479  shlibpath_var=LD_LIBRARY_PATH
10480  shlibpath_overrides_runpath=yes
10481  hardcode_into_libs=yes
10482  if test "$with_gnu_ld" = yes; then
10483    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10484  else
10485    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10486    case $host_os in
10487      sco3.2v5*)
10488        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10489	;;
10490    esac
10491  fi
10492  sys_lib_dlsearch_path_spec='/usr/lib'
10493  ;;
10494
10495tpf*)
10496  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10497  version_type=linux # correct to gnu/linux during the next big refactor
10498  need_lib_prefix=no
10499  need_version=no
10500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  shlibpath_overrides_runpath=no
10503  hardcode_into_libs=yes
10504  ;;
10505
10506uts4*)
10507  version_type=linux # correct to gnu/linux during the next big refactor
10508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509  soname_spec='${libname}${release}${shared_ext}$major'
10510  shlibpath_var=LD_LIBRARY_PATH
10511  ;;
10512
10513*)
10514  dynamic_linker=no
10515  ;;
10516esac
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10518$as_echo "$dynamic_linker" >&6; }
10519test "$dynamic_linker" = no && can_build_shared=no
10520
10521variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10522if test "$GCC" = yes; then
10523  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10524fi
10525
10526if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10527  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10528fi
10529if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10530  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10531fi
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10625$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10626hardcode_action=
10627if test -n "$hardcode_libdir_flag_spec" ||
10628   test -n "$runpath_var" ||
10629   test "X$hardcode_automatic" = "Xyes" ; then
10630
10631  # We can hardcode non-existent directories.
10632  if test "$hardcode_direct" != no &&
10633     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10634     # have to relink, otherwise we might link with an installed library
10635     # when we should be linking with a yet-to-be-installed one
10636     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10637     test "$hardcode_minus_L" != no; then
10638    # Linking always hardcodes the temporary library directory.
10639    hardcode_action=relink
10640  else
10641    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10642    hardcode_action=immediate
10643  fi
10644else
10645  # We cannot hardcode anything, or else we can only hardcode existing
10646  # directories.
10647  hardcode_action=unsupported
10648fi
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10650$as_echo "$hardcode_action" >&6; }
10651
10652if test "$hardcode_action" = relink ||
10653   test "$inherit_rpath" = yes; then
10654  # Fast installation is not supported
10655  enable_fast_install=no
10656elif test "$shlibpath_overrides_runpath" = yes ||
10657     test "$enable_shared" = no; then
10658  # Fast installation is not necessary
10659  enable_fast_install=needless
10660fi
10661
10662
10663
10664
10665
10666
10667  if test "x$enable_dlopen" != xyes; then
10668  enable_dlopen=unknown
10669  enable_dlopen_self=unknown
10670  enable_dlopen_self_static=unknown
10671else
10672  lt_cv_dlopen=no
10673  lt_cv_dlopen_libs=
10674
10675  case $host_os in
10676  beos*)
10677    lt_cv_dlopen="load_add_on"
10678    lt_cv_dlopen_libs=
10679    lt_cv_dlopen_self=yes
10680    ;;
10681
10682  mingw* | pw32* | cegcc*)
10683    lt_cv_dlopen="LoadLibrary"
10684    lt_cv_dlopen_libs=
10685    ;;
10686
10687  cygwin*)
10688    lt_cv_dlopen="dlopen"
10689    lt_cv_dlopen_libs=
10690    ;;
10691
10692  darwin*)
10693  # if libdl is installed we need to link against it
10694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10695$as_echo_n "checking for dlopen in -ldl... " >&6; }
10696if ${ac_cv_lib_dl_dlopen+:} false; then :
10697  $as_echo_n "(cached) " >&6
10698else
10699  ac_check_lib_save_LIBS=$LIBS
10700LIBS="-ldl  $LIBS"
10701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h.  */
10703
10704/* Override any GCC internal prototype to avoid an error.
10705   Use char because int might match the return type of a GCC
10706   builtin and then its argument prototype would still apply.  */
10707#ifdef __cplusplus
10708extern "C"
10709#endif
10710char dlopen ();
10711int
10712main ()
10713{
10714return dlopen ();
10715  ;
10716  return 0;
10717}
10718_ACEOF
10719if ac_fn_c_try_link "$LINENO"; then :
10720  ac_cv_lib_dl_dlopen=yes
10721else
10722  ac_cv_lib_dl_dlopen=no
10723fi
10724rm -f core conftest.err conftest.$ac_objext \
10725    conftest$ac_exeext conftest.$ac_ext
10726LIBS=$ac_check_lib_save_LIBS
10727fi
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10729$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10730if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10731  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10732else
10733
10734    lt_cv_dlopen="dyld"
10735    lt_cv_dlopen_libs=
10736    lt_cv_dlopen_self=yes
10737
10738fi
10739
10740    ;;
10741
10742  *)
10743    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10744if test "x$ac_cv_func_shl_load" = xyes; then :
10745  lt_cv_dlopen="shl_load"
10746else
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10748$as_echo_n "checking for shl_load in -ldld... " >&6; }
10749if ${ac_cv_lib_dld_shl_load+:} false; then :
10750  $as_echo_n "(cached) " >&6
10751else
10752  ac_check_lib_save_LIBS=$LIBS
10753LIBS="-ldld  $LIBS"
10754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755/* end confdefs.h.  */
10756
10757/* Override any GCC internal prototype to avoid an error.
10758   Use char because int might match the return type of a GCC
10759   builtin and then its argument prototype would still apply.  */
10760#ifdef __cplusplus
10761extern "C"
10762#endif
10763char shl_load ();
10764int
10765main ()
10766{
10767return shl_load ();
10768  ;
10769  return 0;
10770}
10771_ACEOF
10772if ac_fn_c_try_link "$LINENO"; then :
10773  ac_cv_lib_dld_shl_load=yes
10774else
10775  ac_cv_lib_dld_shl_load=no
10776fi
10777rm -f core conftest.err conftest.$ac_objext \
10778    conftest$ac_exeext conftest.$ac_ext
10779LIBS=$ac_check_lib_save_LIBS
10780fi
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10782$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10783if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10784  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10785else
10786  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10787if test "x$ac_cv_func_dlopen" = xyes; then :
10788  lt_cv_dlopen="dlopen"
10789else
10790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10791$as_echo_n "checking for dlopen in -ldl... " >&6; }
10792if ${ac_cv_lib_dl_dlopen+:} false; then :
10793  $as_echo_n "(cached) " >&6
10794else
10795  ac_check_lib_save_LIBS=$LIBS
10796LIBS="-ldl  $LIBS"
10797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798/* end confdefs.h.  */
10799
10800/* Override any GCC internal prototype to avoid an error.
10801   Use char because int might match the return type of a GCC
10802   builtin and then its argument prototype would still apply.  */
10803#ifdef __cplusplus
10804extern "C"
10805#endif
10806char dlopen ();
10807int
10808main ()
10809{
10810return dlopen ();
10811  ;
10812  return 0;
10813}
10814_ACEOF
10815if ac_fn_c_try_link "$LINENO"; then :
10816  ac_cv_lib_dl_dlopen=yes
10817else
10818  ac_cv_lib_dl_dlopen=no
10819fi
10820rm -f core conftest.err conftest.$ac_objext \
10821    conftest$ac_exeext conftest.$ac_ext
10822LIBS=$ac_check_lib_save_LIBS
10823fi
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10825$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10826if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10827  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10828else
10829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10830$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10831if ${ac_cv_lib_svld_dlopen+:} false; then :
10832  $as_echo_n "(cached) " >&6
10833else
10834  ac_check_lib_save_LIBS=$LIBS
10835LIBS="-lsvld  $LIBS"
10836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838
10839/* Override any GCC internal prototype to avoid an error.
10840   Use char because int might match the return type of a GCC
10841   builtin and then its argument prototype would still apply.  */
10842#ifdef __cplusplus
10843extern "C"
10844#endif
10845char dlopen ();
10846int
10847main ()
10848{
10849return dlopen ();
10850  ;
10851  return 0;
10852}
10853_ACEOF
10854if ac_fn_c_try_link "$LINENO"; then :
10855  ac_cv_lib_svld_dlopen=yes
10856else
10857  ac_cv_lib_svld_dlopen=no
10858fi
10859rm -f core conftest.err conftest.$ac_objext \
10860    conftest$ac_exeext conftest.$ac_ext
10861LIBS=$ac_check_lib_save_LIBS
10862fi
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10864$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10865if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10866  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10867else
10868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10869$as_echo_n "checking for dld_link in -ldld... " >&6; }
10870if ${ac_cv_lib_dld_dld_link+:} false; then :
10871  $as_echo_n "(cached) " >&6
10872else
10873  ac_check_lib_save_LIBS=$LIBS
10874LIBS="-ldld  $LIBS"
10875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876/* end confdefs.h.  */
10877
10878/* Override any GCC internal prototype to avoid an error.
10879   Use char because int might match the return type of a GCC
10880   builtin and then its argument prototype would still apply.  */
10881#ifdef __cplusplus
10882extern "C"
10883#endif
10884char dld_link ();
10885int
10886main ()
10887{
10888return dld_link ();
10889  ;
10890  return 0;
10891}
10892_ACEOF
10893if ac_fn_c_try_link "$LINENO"; then :
10894  ac_cv_lib_dld_dld_link=yes
10895else
10896  ac_cv_lib_dld_dld_link=no
10897fi
10898rm -f core conftest.err conftest.$ac_objext \
10899    conftest$ac_exeext conftest.$ac_ext
10900LIBS=$ac_check_lib_save_LIBS
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10903$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10904if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10905  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10906fi
10907
10908
10909fi
10910
10911
10912fi
10913
10914
10915fi
10916
10917
10918fi
10919
10920
10921fi
10922
10923    ;;
10924  esac
10925
10926  if test "x$lt_cv_dlopen" != xno; then
10927    enable_dlopen=yes
10928  else
10929    enable_dlopen=no
10930  fi
10931
10932  case $lt_cv_dlopen in
10933  dlopen)
10934    save_CPPFLAGS="$CPPFLAGS"
10935    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10936
10937    save_LDFLAGS="$LDFLAGS"
10938    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10939
10940    save_LIBS="$LIBS"
10941    LIBS="$lt_cv_dlopen_libs $LIBS"
10942
10943    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10944$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10945if ${lt_cv_dlopen_self+:} false; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  	  if test "$cross_compiling" = yes; then :
10949  lt_cv_dlopen_self=cross
10950else
10951  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10952  lt_status=$lt_dlunknown
10953  cat > conftest.$ac_ext <<_LT_EOF
10954#line $LINENO "configure"
10955#include "confdefs.h"
10956
10957#if HAVE_DLFCN_H
10958#include <dlfcn.h>
10959#endif
10960
10961#include <stdio.h>
10962
10963#ifdef RTLD_GLOBAL
10964#  define LT_DLGLOBAL		RTLD_GLOBAL
10965#else
10966#  ifdef DL_GLOBAL
10967#    define LT_DLGLOBAL		DL_GLOBAL
10968#  else
10969#    define LT_DLGLOBAL		0
10970#  endif
10971#endif
10972
10973/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10974   find out it does not work in some platform. */
10975#ifndef LT_DLLAZY_OR_NOW
10976#  ifdef RTLD_LAZY
10977#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10978#  else
10979#    ifdef DL_LAZY
10980#      define LT_DLLAZY_OR_NOW		DL_LAZY
10981#    else
10982#      ifdef RTLD_NOW
10983#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10984#      else
10985#        ifdef DL_NOW
10986#          define LT_DLLAZY_OR_NOW	DL_NOW
10987#        else
10988#          define LT_DLLAZY_OR_NOW	0
10989#        endif
10990#      endif
10991#    endif
10992#  endif
10993#endif
10994
10995/* When -fvisbility=hidden is used, assume the code has been annotated
10996   correspondingly for the symbols needed.  */
10997#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10998int fnord () __attribute__((visibility("default")));
10999#endif
11000
11001int fnord () { return 42; }
11002int main ()
11003{
11004  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11005  int status = $lt_dlunknown;
11006
11007  if (self)
11008    {
11009      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11010      else
11011        {
11012	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11013          else puts (dlerror ());
11014	}
11015      /* dlclose (self); */
11016    }
11017  else
11018    puts (dlerror ());
11019
11020  return status;
11021}
11022_LT_EOF
11023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11024  (eval $ac_link) 2>&5
11025  ac_status=$?
11026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11027  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11028    (./conftest; exit; ) >&5 2>/dev/null
11029    lt_status=$?
11030    case x$lt_status in
11031      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11032      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11033      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11034    esac
11035  else :
11036    # compilation failed
11037    lt_cv_dlopen_self=no
11038  fi
11039fi
11040rm -fr conftest*
11041
11042
11043fi
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11045$as_echo "$lt_cv_dlopen_self" >&6; }
11046
11047    if test "x$lt_cv_dlopen_self" = xyes; then
11048      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11049      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11050$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11051if ${lt_cv_dlopen_self_static+:} false; then :
11052  $as_echo_n "(cached) " >&6
11053else
11054  	  if test "$cross_compiling" = yes; then :
11055  lt_cv_dlopen_self_static=cross
11056else
11057  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11058  lt_status=$lt_dlunknown
11059  cat > conftest.$ac_ext <<_LT_EOF
11060#line $LINENO "configure"
11061#include "confdefs.h"
11062
11063#if HAVE_DLFCN_H
11064#include <dlfcn.h>
11065#endif
11066
11067#include <stdio.h>
11068
11069#ifdef RTLD_GLOBAL
11070#  define LT_DLGLOBAL		RTLD_GLOBAL
11071#else
11072#  ifdef DL_GLOBAL
11073#    define LT_DLGLOBAL		DL_GLOBAL
11074#  else
11075#    define LT_DLGLOBAL		0
11076#  endif
11077#endif
11078
11079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11080   find out it does not work in some platform. */
11081#ifndef LT_DLLAZY_OR_NOW
11082#  ifdef RTLD_LAZY
11083#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11084#  else
11085#    ifdef DL_LAZY
11086#      define LT_DLLAZY_OR_NOW		DL_LAZY
11087#    else
11088#      ifdef RTLD_NOW
11089#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11090#      else
11091#        ifdef DL_NOW
11092#          define LT_DLLAZY_OR_NOW	DL_NOW
11093#        else
11094#          define LT_DLLAZY_OR_NOW	0
11095#        endif
11096#      endif
11097#    endif
11098#  endif
11099#endif
11100
11101/* When -fvisbility=hidden is used, assume the code has been annotated
11102   correspondingly for the symbols needed.  */
11103#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11104int fnord () __attribute__((visibility("default")));
11105#endif
11106
11107int fnord () { return 42; }
11108int main ()
11109{
11110  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111  int status = $lt_dlunknown;
11112
11113  if (self)
11114    {
11115      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11116      else
11117        {
11118	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11119          else puts (dlerror ());
11120	}
11121      /* dlclose (self); */
11122    }
11123  else
11124    puts (dlerror ());
11125
11126  return status;
11127}
11128_LT_EOF
11129  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11130  (eval $ac_link) 2>&5
11131  ac_status=$?
11132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11134    (./conftest; exit; ) >&5 2>/dev/null
11135    lt_status=$?
11136    case x$lt_status in
11137      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11138      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11139      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11140    esac
11141  else :
11142    # compilation failed
11143    lt_cv_dlopen_self_static=no
11144  fi
11145fi
11146rm -fr conftest*
11147
11148
11149fi
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11151$as_echo "$lt_cv_dlopen_self_static" >&6; }
11152    fi
11153
11154    CPPFLAGS="$save_CPPFLAGS"
11155    LDFLAGS="$save_LDFLAGS"
11156    LIBS="$save_LIBS"
11157    ;;
11158  esac
11159
11160  case $lt_cv_dlopen_self in
11161  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11162  *) enable_dlopen_self=unknown ;;
11163  esac
11164
11165  case $lt_cv_dlopen_self_static in
11166  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11167  *) enable_dlopen_self_static=unknown ;;
11168  esac
11169fi
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187striplib=
11188old_striplib=
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11190$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11191if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11192  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11193  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11195$as_echo "yes" >&6; }
11196else
11197# FIXME - insert some real tests, host_os isn't really good enough
11198  case $host_os in
11199  darwin*)
11200    if test -n "$STRIP" ; then
11201      striplib="$STRIP -x"
11202      old_striplib="$STRIP -S"
11203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204$as_echo "yes" >&6; }
11205    else
11206      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207$as_echo "no" >&6; }
11208    fi
11209    ;;
11210  *)
11211    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
11213    ;;
11214  esac
11215fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228  # Report which library types will actually be built
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11230$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11232$as_echo "$can_build_shared" >&6; }
11233
11234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11235$as_echo_n "checking whether to build shared libraries... " >&6; }
11236  test "$can_build_shared" = "no" && enable_shared=no
11237
11238  # On AIX, shared libraries and static libraries use the same namespace, and
11239  # are all built from PIC.
11240  case $host_os in
11241  aix3*)
11242    test "$enable_shared" = yes && enable_static=no
11243    if test -n "$RANLIB"; then
11244      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11245      postinstall_cmds='$RANLIB $lib'
11246    fi
11247    ;;
11248
11249  aix[4-9]*)
11250    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11251      test "$enable_shared" = yes && enable_static=no
11252    fi
11253    ;;
11254  esac
11255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11256$as_echo "$enable_shared" >&6; }
11257
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11259$as_echo_n "checking whether to build static libraries... " >&6; }
11260  # Make sure either enable_shared or enable_static is yes.
11261  test "$enable_shared" = yes || enable_static=yes
11262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11263$as_echo "$enable_static" >&6; }
11264
11265
11266
11267
11268fi
11269ac_ext=c
11270ac_cpp='$CPP $CPPFLAGS'
11271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11273ac_compiler_gnu=$ac_cv_c_compiler_gnu
11274
11275CC="$lt_save_CC"
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291        ac_config_commands="$ac_config_commands libtool"
11292
11293
11294
11295
11296# Only expand once:
11297
11298
11299
11300# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11313$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11314if ${ac_cv_prog_cc_c99+:} false; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  ac_cv_prog_cc_c99=no
11318ac_save_CC=$CC
11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320/* end confdefs.h.  */
11321#include <stdarg.h>
11322#include <stdbool.h>
11323#include <stdlib.h>
11324#include <wchar.h>
11325#include <stdio.h>
11326
11327// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11328#define debug(...) fprintf (stderr, __VA_ARGS__)
11329#define showlist(...) puts (#__VA_ARGS__)
11330#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11331static void
11332test_varargs_macros (void)
11333{
11334  int x = 1234;
11335  int y = 5678;
11336  debug ("Flag");
11337  debug ("X = %d\n", x);
11338  showlist (The first, second, and third items.);
11339  report (x>y, "x is %d but y is %d", x, y);
11340}
11341
11342// Check long long types.
11343#define BIG64 18446744073709551615ull
11344#define BIG32 4294967295ul
11345#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11346#if !BIG_OK
11347  your preprocessor is broken;
11348#endif
11349#if BIG_OK
11350#else
11351  your preprocessor is broken;
11352#endif
11353static long long int bignum = -9223372036854775807LL;
11354static unsigned long long int ubignum = BIG64;
11355
11356struct incomplete_array
11357{
11358  int datasize;
11359  double data[];
11360};
11361
11362struct named_init {
11363  int number;
11364  const wchar_t *name;
11365  double average;
11366};
11367
11368typedef const char *ccp;
11369
11370static inline int
11371test_restrict (ccp restrict text)
11372{
11373  // See if C++-style comments work.
11374  // Iterate through items via the restricted pointer.
11375  // Also check for declarations in for loops.
11376  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11377    continue;
11378  return 0;
11379}
11380
11381// Check varargs and va_copy.
11382static void
11383test_varargs (const char *format, ...)
11384{
11385  va_list args;
11386  va_start (args, format);
11387  va_list args_copy;
11388  va_copy (args_copy, args);
11389
11390  const char *str;
11391  int number;
11392  float fnumber;
11393
11394  while (*format)
11395    {
11396      switch (*format++)
11397	{
11398	case 's': // string
11399	  str = va_arg (args_copy, const char *);
11400	  break;
11401	case 'd': // int
11402	  number = va_arg (args_copy, int);
11403	  break;
11404	case 'f': // float
11405	  fnumber = va_arg (args_copy, double);
11406	  break;
11407	default:
11408	  break;
11409	}
11410    }
11411  va_end (args_copy);
11412  va_end (args);
11413}
11414
11415int
11416main ()
11417{
11418
11419  // Check bool.
11420  _Bool success = false;
11421
11422  // Check restrict.
11423  if (test_restrict ("String literal") == 0)
11424    success = true;
11425  char *restrict newvar = "Another string";
11426
11427  // Check varargs.
11428  test_varargs ("s, d' f .", "string", 65, 34.234);
11429  test_varargs_macros ();
11430
11431  // Check flexible array members.
11432  struct incomplete_array *ia =
11433    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11434  ia->datasize = 10;
11435  for (int i = 0; i < ia->datasize; ++i)
11436    ia->data[i] = i * 1.234;
11437
11438  // Check named initializers.
11439  struct named_init ni = {
11440    .number = 34,
11441    .name = L"Test wide string",
11442    .average = 543.34343,
11443  };
11444
11445  ni.number = 58;
11446
11447  int dynamic_array[ni.number];
11448  dynamic_array[ni.number - 1] = 543;
11449
11450  // work around unused variable warnings
11451  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11452	  || dynamic_array[ni.number - 1] != 543);
11453
11454  ;
11455  return 0;
11456}
11457_ACEOF
11458for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11459do
11460  CC="$ac_save_CC $ac_arg"
11461  if ac_fn_c_try_compile "$LINENO"; then :
11462  ac_cv_prog_cc_c99=$ac_arg
11463fi
11464rm -f core conftest.err conftest.$ac_objext
11465  test "x$ac_cv_prog_cc_c99" != "xno" && break
11466done
11467rm -f conftest.$ac_ext
11468CC=$ac_save_CC
11469
11470fi
11471# AC_CACHE_VAL
11472case "x$ac_cv_prog_cc_c99" in
11473  x)
11474    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11475$as_echo "none needed" >&6; } ;;
11476  xno)
11477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11478$as_echo "unsupported" >&6; } ;;
11479  *)
11480    CC="$CC $ac_cv_prog_cc_c99"
11481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11482$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11483esac
11484if test "x$ac_cv_prog_cc_c99" != xno; then :
11485
11486fi
11487
11488
11489
11490
11491
11492
11493ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11494if test "x$ac_cv_have_decl___clang__" = xyes; then :
11495  CLANGCC="yes"
11496else
11497  CLANGCC="no"
11498fi
11499
11500ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11501if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11502  INTELCC="yes"
11503else
11504  INTELCC="no"
11505fi
11506
11507ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11508if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11509  SUNCC="yes"
11510else
11511  SUNCC="no"
11512fi
11513
11514
11515
11516
11517
11518
11519
11520
11521if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11522	if test -n "$ac_tool_prefix"; then
11523  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11524set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11526$as_echo_n "checking for $ac_word... " >&6; }
11527if ${ac_cv_path_PKG_CONFIG+:} false; then :
11528  $as_echo_n "(cached) " >&6
11529else
11530  case $PKG_CONFIG in
11531  [\\/]* | ?:[\\/]*)
11532  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11533  ;;
11534  *)
11535  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11536for as_dir in $PATH
11537do
11538  IFS=$as_save_IFS
11539  test -z "$as_dir" && as_dir=.
11540    for ac_exec_ext in '' $ac_executable_extensions; do
11541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11542    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11544    break 2
11545  fi
11546done
11547  done
11548IFS=$as_save_IFS
11549
11550  ;;
11551esac
11552fi
11553PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11554if test -n "$PKG_CONFIG"; then
11555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11556$as_echo "$PKG_CONFIG" >&6; }
11557else
11558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559$as_echo "no" >&6; }
11560fi
11561
11562
11563fi
11564if test -z "$ac_cv_path_PKG_CONFIG"; then
11565  ac_pt_PKG_CONFIG=$PKG_CONFIG
11566  # Extract the first word of "pkg-config", so it can be a program name with args.
11567set dummy pkg-config; ac_word=$2
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569$as_echo_n "checking for $ac_word... " >&6; }
11570if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11571  $as_echo_n "(cached) " >&6
11572else
11573  case $ac_pt_PKG_CONFIG in
11574  [\\/]* | ?:[\\/]*)
11575  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11576  ;;
11577  *)
11578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579for as_dir in $PATH
11580do
11581  IFS=$as_save_IFS
11582  test -z "$as_dir" && as_dir=.
11583    for ac_exec_ext in '' $ac_executable_extensions; do
11584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11585    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587    break 2
11588  fi
11589done
11590  done
11591IFS=$as_save_IFS
11592
11593  ;;
11594esac
11595fi
11596ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11597if test -n "$ac_pt_PKG_CONFIG"; then
11598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11599$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11600else
11601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602$as_echo "no" >&6; }
11603fi
11604
11605  if test "x$ac_pt_PKG_CONFIG" = x; then
11606    PKG_CONFIG=""
11607  else
11608    case $cross_compiling:$ac_tool_warned in
11609yes:)
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11612ac_tool_warned=yes ;;
11613esac
11614    PKG_CONFIG=$ac_pt_PKG_CONFIG
11615  fi
11616else
11617  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11618fi
11619
11620fi
11621if test -n "$PKG_CONFIG"; then
11622	_pkg_min_version=0.9.0
11623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11624$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11625	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11627$as_echo "yes" >&6; }
11628	else
11629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630$as_echo "no" >&6; }
11631		PKG_CONFIG=""
11632	fi
11633fi
11634
11635
11636
11637
11638
11639# Check whether --enable-selective-werror was given.
11640if test "${enable_selective_werror+set}" = set; then :
11641  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11642else
11643  SELECTIVE_WERROR=yes
11644fi
11645
11646
11647
11648
11649
11650# -v is too short to test reliably with XORG_TESTSET_CFLAG
11651if test "x$SUNCC" = "xyes"; then
11652    BASE_CFLAGS="-v"
11653else
11654    BASE_CFLAGS=""
11655fi
11656
11657# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671xorg_testset_save_CFLAGS="$CFLAGS"
11672
11673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11674	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11676$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11677if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11678  $as_echo_n "(cached) " >&6
11679else
11680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681/* end confdefs.h.  */
11682int i;
11683_ACEOF
11684if ac_fn_c_try_compile "$LINENO"; then :
11685  xorg_cv_cc_flag_unknown_warning_option=yes
11686else
11687  xorg_cv_cc_flag_unknown_warning_option=no
11688fi
11689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690fi
11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11692$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11694	CFLAGS="$xorg_testset_save_CFLAGS"
11695fi
11696
11697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11700	fi
11701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11703$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11704if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11705  $as_echo_n "(cached) " >&6
11706else
11707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708/* end confdefs.h.  */
11709int i;
11710_ACEOF
11711if ac_fn_c_try_compile "$LINENO"; then :
11712  xorg_cv_cc_flag_unused_command_line_argument=yes
11713else
11714  xorg_cv_cc_flag_unused_command_line_argument=no
11715fi
11716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717fi
11718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11719$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11721	CFLAGS="$xorg_testset_save_CFLAGS"
11722fi
11723
11724found="no"
11725
11726	if test $found = "no" ; then
11727		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11729		fi
11730
11731		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11733		fi
11734
11735		CFLAGS="$CFLAGS -Wall"
11736
11737		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11738$as_echo_n "checking if $CC supports -Wall... " >&6; }
11739		cacheid=xorg_cv_cc_flag__Wall
11740		if eval \${$cacheid+:} false; then :
11741  $as_echo_n "(cached) " >&6
11742else
11743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744/* end confdefs.h.  */
11745int i;
11746int
11747main ()
11748{
11749
11750  ;
11751  return 0;
11752}
11753_ACEOF
11754if ac_fn_c_try_link "$LINENO"; then :
11755  eval $cacheid=yes
11756else
11757  eval $cacheid=no
11758fi
11759rm -f core conftest.err conftest.$ac_objext \
11760    conftest$ac_exeext conftest.$ac_ext
11761fi
11762
11763
11764		CFLAGS="$xorg_testset_save_CFLAGS"
11765
11766		eval supported=\$$cacheid
11767		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11768$as_echo "$supported" >&6; }
11769		if test "$supported" = "yes" ; then
11770			BASE_CFLAGS="$BASE_CFLAGS -Wall"
11771			found="yes"
11772		fi
11773	fi
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789xorg_testset_save_CFLAGS="$CFLAGS"
11790
11791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11796  $as_echo_n "(cached) " >&6
11797else
11798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799/* end confdefs.h.  */
11800int i;
11801_ACEOF
11802if ac_fn_c_try_compile "$LINENO"; then :
11803  xorg_cv_cc_flag_unknown_warning_option=yes
11804else
11805  xorg_cv_cc_flag_unknown_warning_option=no
11806fi
11807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11808fi
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11812	CFLAGS="$xorg_testset_save_CFLAGS"
11813fi
11814
11815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11818	fi
11819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11823  $as_echo_n "(cached) " >&6
11824else
11825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826/* end confdefs.h.  */
11827int i;
11828_ACEOF
11829if ac_fn_c_try_compile "$LINENO"; then :
11830  xorg_cv_cc_flag_unused_command_line_argument=yes
11831else
11832  xorg_cv_cc_flag_unused_command_line_argument=no
11833fi
11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11839	CFLAGS="$xorg_testset_save_CFLAGS"
11840fi
11841
11842found="no"
11843
11844	if test $found = "no" ; then
11845		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11847		fi
11848
11849		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11851		fi
11852
11853		CFLAGS="$CFLAGS -Wpointer-arith"
11854
11855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11856$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11857		cacheid=xorg_cv_cc_flag__Wpointer_arith
11858		if eval \${$cacheid+:} false; then :
11859  $as_echo_n "(cached) " >&6
11860else
11861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11862/* end confdefs.h.  */
11863int i;
11864int
11865main ()
11866{
11867
11868  ;
11869  return 0;
11870}
11871_ACEOF
11872if ac_fn_c_try_link "$LINENO"; then :
11873  eval $cacheid=yes
11874else
11875  eval $cacheid=no
11876fi
11877rm -f core conftest.err conftest.$ac_objext \
11878    conftest$ac_exeext conftest.$ac_ext
11879fi
11880
11881
11882		CFLAGS="$xorg_testset_save_CFLAGS"
11883
11884		eval supported=\$$cacheid
11885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11886$as_echo "$supported" >&6; }
11887		if test "$supported" = "yes" ; then
11888			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11889			found="yes"
11890		fi
11891	fi
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907xorg_testset_save_CFLAGS="$CFLAGS"
11908
11909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11914  $as_echo_n "(cached) " >&6
11915else
11916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11917/* end confdefs.h.  */
11918int i;
11919_ACEOF
11920if ac_fn_c_try_compile "$LINENO"; then :
11921  xorg_cv_cc_flag_unknown_warning_option=yes
11922else
11923  xorg_cv_cc_flag_unknown_warning_option=no
11924fi
11925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11929	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11930	CFLAGS="$xorg_testset_save_CFLAGS"
11931fi
11932
11933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11934	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11935		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11936	fi
11937	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11941  $as_echo_n "(cached) " >&6
11942else
11943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944/* end confdefs.h.  */
11945int i;
11946_ACEOF
11947if ac_fn_c_try_compile "$LINENO"; then :
11948  xorg_cv_cc_flag_unused_command_line_argument=yes
11949else
11950  xorg_cv_cc_flag_unused_command_line_argument=no
11951fi
11952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953fi
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11957	CFLAGS="$xorg_testset_save_CFLAGS"
11958fi
11959
11960found="no"
11961
11962	if test $found = "no" ; then
11963		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11965		fi
11966
11967		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11969		fi
11970
11971		CFLAGS="$CFLAGS -Wmissing-declarations"
11972
11973		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
11974$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
11975		cacheid=xorg_cv_cc_flag__Wmissing_declarations
11976		if eval \${$cacheid+:} false; then :
11977  $as_echo_n "(cached) " >&6
11978else
11979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h.  */
11981int i;
11982int
11983main ()
11984{
11985
11986  ;
11987  return 0;
11988}
11989_ACEOF
11990if ac_fn_c_try_link "$LINENO"; then :
11991  eval $cacheid=yes
11992else
11993  eval $cacheid=no
11994fi
11995rm -f core conftest.err conftest.$ac_objext \
11996    conftest$ac_exeext conftest.$ac_ext
11997fi
11998
11999
12000		CFLAGS="$xorg_testset_save_CFLAGS"
12001
12002		eval supported=\$$cacheid
12003		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12004$as_echo "$supported" >&6; }
12005		if test "$supported" = "yes" ; then
12006			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12007			found="yes"
12008		fi
12009	fi
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025xorg_testset_save_CFLAGS="$CFLAGS"
12026
12027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035/* end confdefs.h.  */
12036int i;
12037_ACEOF
12038if ac_fn_c_try_compile "$LINENO"; then :
12039  xorg_cv_cc_flag_unknown_warning_option=yes
12040else
12041  xorg_cv_cc_flag_unknown_warning_option=no
12042fi
12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044fi
12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12048	CFLAGS="$xorg_testset_save_CFLAGS"
12049fi
12050
12051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12054	fi
12055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12059  $as_echo_n "(cached) " >&6
12060else
12061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062/* end confdefs.h.  */
12063int i;
12064_ACEOF
12065if ac_fn_c_try_compile "$LINENO"; then :
12066  xorg_cv_cc_flag_unused_command_line_argument=yes
12067else
12068  xorg_cv_cc_flag_unused_command_line_argument=no
12069fi
12070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071fi
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12075	CFLAGS="$xorg_testset_save_CFLAGS"
12076fi
12077
12078found="no"
12079
12080	if test $found = "no" ; then
12081		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12083		fi
12084
12085		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12087		fi
12088
12089		CFLAGS="$CFLAGS -Wformat=2"
12090
12091		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12092$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12093		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12094		if eval \${$cacheid+:} false; then :
12095  $as_echo_n "(cached) " >&6
12096else
12097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h.  */
12099int i;
12100int
12101main ()
12102{
12103
12104  ;
12105  return 0;
12106}
12107_ACEOF
12108if ac_fn_c_try_link "$LINENO"; then :
12109  eval $cacheid=yes
12110else
12111  eval $cacheid=no
12112fi
12113rm -f core conftest.err conftest.$ac_objext \
12114    conftest$ac_exeext conftest.$ac_ext
12115fi
12116
12117
12118		CFLAGS="$xorg_testset_save_CFLAGS"
12119
12120		eval supported=\$$cacheid
12121		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12122$as_echo "$supported" >&6; }
12123		if test "$supported" = "yes" ; then
12124			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12125			found="yes"
12126		fi
12127	fi
12128
12129	if test $found = "no" ; then
12130		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12132		fi
12133
12134		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12136		fi
12137
12138		CFLAGS="$CFLAGS -Wformat"
12139
12140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12141$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12142		cacheid=xorg_cv_cc_flag__Wformat
12143		if eval \${$cacheid+:} false; then :
12144  $as_echo_n "(cached) " >&6
12145else
12146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h.  */
12148int i;
12149int
12150main ()
12151{
12152
12153  ;
12154  return 0;
12155}
12156_ACEOF
12157if ac_fn_c_try_link "$LINENO"; then :
12158  eval $cacheid=yes
12159else
12160  eval $cacheid=no
12161fi
12162rm -f core conftest.err conftest.$ac_objext \
12163    conftest$ac_exeext conftest.$ac_ext
12164fi
12165
12166
12167		CFLAGS="$xorg_testset_save_CFLAGS"
12168
12169		eval supported=\$$cacheid
12170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12171$as_echo "$supported" >&6; }
12172		if test "$supported" = "yes" ; then
12173			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12174			found="yes"
12175		fi
12176	fi
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194xorg_testset_save_CFLAGS="$CFLAGS"
12195
12196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12201  $as_echo_n "(cached) " >&6
12202else
12203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204/* end confdefs.h.  */
12205int i;
12206_ACEOF
12207if ac_fn_c_try_compile "$LINENO"; then :
12208  xorg_cv_cc_flag_unknown_warning_option=yes
12209else
12210  xorg_cv_cc_flag_unknown_warning_option=no
12211fi
12212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12213fi
12214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12217	CFLAGS="$xorg_testset_save_CFLAGS"
12218fi
12219
12220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12223	fi
12224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12228  $as_echo_n "(cached) " >&6
12229else
12230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231/* end confdefs.h.  */
12232int i;
12233_ACEOF
12234if ac_fn_c_try_compile "$LINENO"; then :
12235  xorg_cv_cc_flag_unused_command_line_argument=yes
12236else
12237  xorg_cv_cc_flag_unused_command_line_argument=no
12238fi
12239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12240fi
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12244	CFLAGS="$xorg_testset_save_CFLAGS"
12245fi
12246
12247found="no"
12248
12249	if test $found = "no" ; then
12250		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12252		fi
12253
12254		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12256		fi
12257
12258		CFLAGS="$CFLAGS -Wstrict-prototypes"
12259
12260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12261$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12262		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12263		if eval \${$cacheid+:} false; then :
12264  $as_echo_n "(cached) " >&6
12265else
12266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267/* end confdefs.h.  */
12268int i;
12269int
12270main ()
12271{
12272
12273  ;
12274  return 0;
12275}
12276_ACEOF
12277if ac_fn_c_try_link "$LINENO"; then :
12278  eval $cacheid=yes
12279else
12280  eval $cacheid=no
12281fi
12282rm -f core conftest.err conftest.$ac_objext \
12283    conftest$ac_exeext conftest.$ac_ext
12284fi
12285
12286
12287		CFLAGS="$xorg_testset_save_CFLAGS"
12288
12289		eval supported=\$$cacheid
12290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12291$as_echo "$supported" >&6; }
12292		if test "$supported" = "yes" ; then
12293			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12294			found="yes"
12295		fi
12296	fi
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312xorg_testset_save_CFLAGS="$CFLAGS"
12313
12314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12319  $as_echo_n "(cached) " >&6
12320else
12321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322/* end confdefs.h.  */
12323int i;
12324_ACEOF
12325if ac_fn_c_try_compile "$LINENO"; then :
12326  xorg_cv_cc_flag_unknown_warning_option=yes
12327else
12328  xorg_cv_cc_flag_unknown_warning_option=no
12329fi
12330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331fi
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12335	CFLAGS="$xorg_testset_save_CFLAGS"
12336fi
12337
12338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12341	fi
12342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12346  $as_echo_n "(cached) " >&6
12347else
12348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349/* end confdefs.h.  */
12350int i;
12351_ACEOF
12352if ac_fn_c_try_compile "$LINENO"; then :
12353  xorg_cv_cc_flag_unused_command_line_argument=yes
12354else
12355  xorg_cv_cc_flag_unused_command_line_argument=no
12356fi
12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358fi
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12362	CFLAGS="$xorg_testset_save_CFLAGS"
12363fi
12364
12365found="no"
12366
12367	if test $found = "no" ; then
12368		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12370		fi
12371
12372		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12374		fi
12375
12376		CFLAGS="$CFLAGS -Wmissing-prototypes"
12377
12378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12379$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12380		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12381		if eval \${$cacheid+:} false; then :
12382  $as_echo_n "(cached) " >&6
12383else
12384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h.  */
12386int i;
12387int
12388main ()
12389{
12390
12391  ;
12392  return 0;
12393}
12394_ACEOF
12395if ac_fn_c_try_link "$LINENO"; then :
12396  eval $cacheid=yes
12397else
12398  eval $cacheid=no
12399fi
12400rm -f core conftest.err conftest.$ac_objext \
12401    conftest$ac_exeext conftest.$ac_ext
12402fi
12403
12404
12405		CFLAGS="$xorg_testset_save_CFLAGS"
12406
12407		eval supported=\$$cacheid
12408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12409$as_echo "$supported" >&6; }
12410		if test "$supported" = "yes" ; then
12411			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12412			found="yes"
12413		fi
12414	fi
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430xorg_testset_save_CFLAGS="$CFLAGS"
12431
12432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12437  $as_echo_n "(cached) " >&6
12438else
12439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h.  */
12441int i;
12442_ACEOF
12443if ac_fn_c_try_compile "$LINENO"; then :
12444  xorg_cv_cc_flag_unknown_warning_option=yes
12445else
12446  xorg_cv_cc_flag_unknown_warning_option=no
12447fi
12448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12453	CFLAGS="$xorg_testset_save_CFLAGS"
12454fi
12455
12456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12459	fi
12460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12464  $as_echo_n "(cached) " >&6
12465else
12466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h.  */
12468int i;
12469_ACEOF
12470if ac_fn_c_try_compile "$LINENO"; then :
12471  xorg_cv_cc_flag_unused_command_line_argument=yes
12472else
12473  xorg_cv_cc_flag_unused_command_line_argument=no
12474fi
12475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476fi
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12480	CFLAGS="$xorg_testset_save_CFLAGS"
12481fi
12482
12483found="no"
12484
12485	if test $found = "no" ; then
12486		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12488		fi
12489
12490		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12492		fi
12493
12494		CFLAGS="$CFLAGS -Wnested-externs"
12495
12496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12497$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12498		cacheid=xorg_cv_cc_flag__Wnested_externs
12499		if eval \${$cacheid+:} false; then :
12500  $as_echo_n "(cached) " >&6
12501else
12502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503/* end confdefs.h.  */
12504int i;
12505int
12506main ()
12507{
12508
12509  ;
12510  return 0;
12511}
12512_ACEOF
12513if ac_fn_c_try_link "$LINENO"; then :
12514  eval $cacheid=yes
12515else
12516  eval $cacheid=no
12517fi
12518rm -f core conftest.err conftest.$ac_objext \
12519    conftest$ac_exeext conftest.$ac_ext
12520fi
12521
12522
12523		CFLAGS="$xorg_testset_save_CFLAGS"
12524
12525		eval supported=\$$cacheid
12526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12527$as_echo "$supported" >&6; }
12528		if test "$supported" = "yes" ; then
12529			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12530			found="yes"
12531		fi
12532	fi
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548xorg_testset_save_CFLAGS="$CFLAGS"
12549
12550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12555  $as_echo_n "(cached) " >&6
12556else
12557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558/* end confdefs.h.  */
12559int i;
12560_ACEOF
12561if ac_fn_c_try_compile "$LINENO"; then :
12562  xorg_cv_cc_flag_unknown_warning_option=yes
12563else
12564  xorg_cv_cc_flag_unknown_warning_option=no
12565fi
12566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567fi
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12571	CFLAGS="$xorg_testset_save_CFLAGS"
12572fi
12573
12574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12577	fi
12578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12582  $as_echo_n "(cached) " >&6
12583else
12584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585/* end confdefs.h.  */
12586int i;
12587_ACEOF
12588if ac_fn_c_try_compile "$LINENO"; then :
12589  xorg_cv_cc_flag_unused_command_line_argument=yes
12590else
12591  xorg_cv_cc_flag_unused_command_line_argument=no
12592fi
12593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594fi
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12598	CFLAGS="$xorg_testset_save_CFLAGS"
12599fi
12600
12601found="no"
12602
12603	if test $found = "no" ; then
12604		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12606		fi
12607
12608		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12610		fi
12611
12612		CFLAGS="$CFLAGS -Wbad-function-cast"
12613
12614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12615$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12616		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12617		if eval \${$cacheid+:} false; then :
12618  $as_echo_n "(cached) " >&6
12619else
12620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621/* end confdefs.h.  */
12622int i;
12623int
12624main ()
12625{
12626
12627  ;
12628  return 0;
12629}
12630_ACEOF
12631if ac_fn_c_try_link "$LINENO"; then :
12632  eval $cacheid=yes
12633else
12634  eval $cacheid=no
12635fi
12636rm -f core conftest.err conftest.$ac_objext \
12637    conftest$ac_exeext conftest.$ac_ext
12638fi
12639
12640
12641		CFLAGS="$xorg_testset_save_CFLAGS"
12642
12643		eval supported=\$$cacheid
12644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12645$as_echo "$supported" >&6; }
12646		if test "$supported" = "yes" ; then
12647			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12648			found="yes"
12649		fi
12650	fi
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666xorg_testset_save_CFLAGS="$CFLAGS"
12667
12668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12673  $as_echo_n "(cached) " >&6
12674else
12675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676/* end confdefs.h.  */
12677int i;
12678_ACEOF
12679if ac_fn_c_try_compile "$LINENO"; then :
12680  xorg_cv_cc_flag_unknown_warning_option=yes
12681else
12682  xorg_cv_cc_flag_unknown_warning_option=no
12683fi
12684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12685fi
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12689	CFLAGS="$xorg_testset_save_CFLAGS"
12690fi
12691
12692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12695	fi
12696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12700  $as_echo_n "(cached) " >&6
12701else
12702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703/* end confdefs.h.  */
12704int i;
12705_ACEOF
12706if ac_fn_c_try_compile "$LINENO"; then :
12707  xorg_cv_cc_flag_unused_command_line_argument=yes
12708else
12709  xorg_cv_cc_flag_unused_command_line_argument=no
12710fi
12711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712fi
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12716	CFLAGS="$xorg_testset_save_CFLAGS"
12717fi
12718
12719found="no"
12720
12721	if test $found = "no" ; then
12722		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12724		fi
12725
12726		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12728		fi
12729
12730		CFLAGS="$CFLAGS -Wold-style-definition"
12731
12732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12733$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12734		cacheid=xorg_cv_cc_flag__Wold_style_definition
12735		if eval \${$cacheid+:} false; then :
12736  $as_echo_n "(cached) " >&6
12737else
12738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739/* end confdefs.h.  */
12740int i;
12741int
12742main ()
12743{
12744
12745  ;
12746  return 0;
12747}
12748_ACEOF
12749if ac_fn_c_try_link "$LINENO"; then :
12750  eval $cacheid=yes
12751else
12752  eval $cacheid=no
12753fi
12754rm -f core conftest.err conftest.$ac_objext \
12755    conftest$ac_exeext conftest.$ac_ext
12756fi
12757
12758
12759		CFLAGS="$xorg_testset_save_CFLAGS"
12760
12761		eval supported=\$$cacheid
12762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12763$as_echo "$supported" >&6; }
12764		if test "$supported" = "yes" ; then
12765			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12766			found="yes"
12767		fi
12768	fi
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784xorg_testset_save_CFLAGS="$CFLAGS"
12785
12786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12791  $as_echo_n "(cached) " >&6
12792else
12793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794/* end confdefs.h.  */
12795int i;
12796_ACEOF
12797if ac_fn_c_try_compile "$LINENO"; then :
12798  xorg_cv_cc_flag_unknown_warning_option=yes
12799else
12800  xorg_cv_cc_flag_unknown_warning_option=no
12801fi
12802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803fi
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12807	CFLAGS="$xorg_testset_save_CFLAGS"
12808fi
12809
12810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12813	fi
12814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12818  $as_echo_n "(cached) " >&6
12819else
12820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821/* end confdefs.h.  */
12822int i;
12823_ACEOF
12824if ac_fn_c_try_compile "$LINENO"; then :
12825  xorg_cv_cc_flag_unused_command_line_argument=yes
12826else
12827  xorg_cv_cc_flag_unused_command_line_argument=no
12828fi
12829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830fi
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12834	CFLAGS="$xorg_testset_save_CFLAGS"
12835fi
12836
12837found="no"
12838
12839	if test $found = "no" ; then
12840		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12842		fi
12843
12844		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12846		fi
12847
12848		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12849
12850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12851$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12852		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12853		if eval \${$cacheid+:} false; then :
12854  $as_echo_n "(cached) " >&6
12855else
12856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857/* end confdefs.h.  */
12858int i;
12859int
12860main ()
12861{
12862
12863  ;
12864  return 0;
12865}
12866_ACEOF
12867if ac_fn_c_try_link "$LINENO"; then :
12868  eval $cacheid=yes
12869else
12870  eval $cacheid=no
12871fi
12872rm -f core conftest.err conftest.$ac_objext \
12873    conftest$ac_exeext conftest.$ac_ext
12874fi
12875
12876
12877		CFLAGS="$xorg_testset_save_CFLAGS"
12878
12879		eval supported=\$$cacheid
12880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12881$as_echo "$supported" >&6; }
12882		if test "$supported" = "yes" ; then
12883			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12884			found="yes"
12885		fi
12886	fi
12887
12888
12889
12890
12891
12892# This chunk adds additional warnings that could catch undesired effects.
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906xorg_testset_save_CFLAGS="$CFLAGS"
12907
12908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12913  $as_echo_n "(cached) " >&6
12914else
12915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916/* end confdefs.h.  */
12917int i;
12918_ACEOF
12919if ac_fn_c_try_compile "$LINENO"; then :
12920  xorg_cv_cc_flag_unknown_warning_option=yes
12921else
12922  xorg_cv_cc_flag_unknown_warning_option=no
12923fi
12924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925fi
12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12929	CFLAGS="$xorg_testset_save_CFLAGS"
12930fi
12931
12932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12935	fi
12936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12940  $as_echo_n "(cached) " >&6
12941else
12942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943/* end confdefs.h.  */
12944int i;
12945_ACEOF
12946if ac_fn_c_try_compile "$LINENO"; then :
12947  xorg_cv_cc_flag_unused_command_line_argument=yes
12948else
12949  xorg_cv_cc_flag_unused_command_line_argument=no
12950fi
12951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12956	CFLAGS="$xorg_testset_save_CFLAGS"
12957fi
12958
12959found="no"
12960
12961	if test $found = "no" ; then
12962		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12964		fi
12965
12966		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12968		fi
12969
12970		CFLAGS="$CFLAGS -Wunused"
12971
12972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
12973$as_echo_n "checking if $CC supports -Wunused... " >&6; }
12974		cacheid=xorg_cv_cc_flag__Wunused
12975		if eval \${$cacheid+:} false; then :
12976  $as_echo_n "(cached) " >&6
12977else
12978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979/* end confdefs.h.  */
12980int i;
12981int
12982main ()
12983{
12984
12985  ;
12986  return 0;
12987}
12988_ACEOF
12989if ac_fn_c_try_link "$LINENO"; then :
12990  eval $cacheid=yes
12991else
12992  eval $cacheid=no
12993fi
12994rm -f core conftest.err conftest.$ac_objext \
12995    conftest$ac_exeext conftest.$ac_ext
12996fi
12997
12998
12999		CFLAGS="$xorg_testset_save_CFLAGS"
13000
13001		eval supported=\$$cacheid
13002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13003$as_echo "$supported" >&6; }
13004		if test "$supported" = "yes" ; then
13005			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13006			found="yes"
13007		fi
13008	fi
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024xorg_testset_save_CFLAGS="$CFLAGS"
13025
13026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13031  $as_echo_n "(cached) " >&6
13032else
13033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034/* end confdefs.h.  */
13035int i;
13036_ACEOF
13037if ac_fn_c_try_compile "$LINENO"; then :
13038  xorg_cv_cc_flag_unknown_warning_option=yes
13039else
13040  xorg_cv_cc_flag_unknown_warning_option=no
13041fi
13042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043fi
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13047	CFLAGS="$xorg_testset_save_CFLAGS"
13048fi
13049
13050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13053	fi
13054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13058  $as_echo_n "(cached) " >&6
13059else
13060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061/* end confdefs.h.  */
13062int i;
13063_ACEOF
13064if ac_fn_c_try_compile "$LINENO"; then :
13065  xorg_cv_cc_flag_unused_command_line_argument=yes
13066else
13067  xorg_cv_cc_flag_unused_command_line_argument=no
13068fi
13069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13074	CFLAGS="$xorg_testset_save_CFLAGS"
13075fi
13076
13077found="no"
13078
13079	if test $found = "no" ; then
13080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13082		fi
13083
13084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13086		fi
13087
13088		CFLAGS="$CFLAGS -Wuninitialized"
13089
13090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13091$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13092		cacheid=xorg_cv_cc_flag__Wuninitialized
13093		if eval \${$cacheid+:} false; then :
13094  $as_echo_n "(cached) " >&6
13095else
13096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097/* end confdefs.h.  */
13098int i;
13099int
13100main ()
13101{
13102
13103  ;
13104  return 0;
13105}
13106_ACEOF
13107if ac_fn_c_try_link "$LINENO"; then :
13108  eval $cacheid=yes
13109else
13110  eval $cacheid=no
13111fi
13112rm -f core conftest.err conftest.$ac_objext \
13113    conftest$ac_exeext conftest.$ac_ext
13114fi
13115
13116
13117		CFLAGS="$xorg_testset_save_CFLAGS"
13118
13119		eval supported=\$$cacheid
13120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13121$as_echo "$supported" >&6; }
13122		if test "$supported" = "yes" ; then
13123			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13124			found="yes"
13125		fi
13126	fi
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142xorg_testset_save_CFLAGS="$CFLAGS"
13143
13144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13149  $as_echo_n "(cached) " >&6
13150else
13151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152/* end confdefs.h.  */
13153int i;
13154_ACEOF
13155if ac_fn_c_try_compile "$LINENO"; then :
13156  xorg_cv_cc_flag_unknown_warning_option=yes
13157else
13158  xorg_cv_cc_flag_unknown_warning_option=no
13159fi
13160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161fi
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13165	CFLAGS="$xorg_testset_save_CFLAGS"
13166fi
13167
13168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13171	fi
13172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13176  $as_echo_n "(cached) " >&6
13177else
13178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h.  */
13180int i;
13181_ACEOF
13182if ac_fn_c_try_compile "$LINENO"; then :
13183  xorg_cv_cc_flag_unused_command_line_argument=yes
13184else
13185  xorg_cv_cc_flag_unused_command_line_argument=no
13186fi
13187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188fi
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13192	CFLAGS="$xorg_testset_save_CFLAGS"
13193fi
13194
13195found="no"
13196
13197	if test $found = "no" ; then
13198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13200		fi
13201
13202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13204		fi
13205
13206		CFLAGS="$CFLAGS -Wshadow"
13207
13208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13209$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13210		cacheid=xorg_cv_cc_flag__Wshadow
13211		if eval \${$cacheid+:} false; then :
13212  $as_echo_n "(cached) " >&6
13213else
13214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215/* end confdefs.h.  */
13216int i;
13217int
13218main ()
13219{
13220
13221  ;
13222  return 0;
13223}
13224_ACEOF
13225if ac_fn_c_try_link "$LINENO"; then :
13226  eval $cacheid=yes
13227else
13228  eval $cacheid=no
13229fi
13230rm -f core conftest.err conftest.$ac_objext \
13231    conftest$ac_exeext conftest.$ac_ext
13232fi
13233
13234
13235		CFLAGS="$xorg_testset_save_CFLAGS"
13236
13237		eval supported=\$$cacheid
13238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13239$as_echo "$supported" >&6; }
13240		if test "$supported" = "yes" ; then
13241			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13242			found="yes"
13243		fi
13244	fi
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260xorg_testset_save_CFLAGS="$CFLAGS"
13261
13262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13267  $as_echo_n "(cached) " >&6
13268else
13269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270/* end confdefs.h.  */
13271int i;
13272_ACEOF
13273if ac_fn_c_try_compile "$LINENO"; then :
13274  xorg_cv_cc_flag_unknown_warning_option=yes
13275else
13276  xorg_cv_cc_flag_unknown_warning_option=no
13277fi
13278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279fi
13280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13283	CFLAGS="$xorg_testset_save_CFLAGS"
13284fi
13285
13286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13289	fi
13290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13294  $as_echo_n "(cached) " >&6
13295else
13296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13297/* end confdefs.h.  */
13298int i;
13299_ACEOF
13300if ac_fn_c_try_compile "$LINENO"; then :
13301  xorg_cv_cc_flag_unused_command_line_argument=yes
13302else
13303  xorg_cv_cc_flag_unused_command_line_argument=no
13304fi
13305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13310	CFLAGS="$xorg_testset_save_CFLAGS"
13311fi
13312
13313found="no"
13314
13315	if test $found = "no" ; then
13316		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13318		fi
13319
13320		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13322		fi
13323
13324		CFLAGS="$CFLAGS -Wcast-qual"
13325
13326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13327$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13328		cacheid=xorg_cv_cc_flag__Wcast_qual
13329		if eval \${$cacheid+:} false; then :
13330  $as_echo_n "(cached) " >&6
13331else
13332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333/* end confdefs.h.  */
13334int i;
13335int
13336main ()
13337{
13338
13339  ;
13340  return 0;
13341}
13342_ACEOF
13343if ac_fn_c_try_link "$LINENO"; then :
13344  eval $cacheid=yes
13345else
13346  eval $cacheid=no
13347fi
13348rm -f core conftest.err conftest.$ac_objext \
13349    conftest$ac_exeext conftest.$ac_ext
13350fi
13351
13352
13353		CFLAGS="$xorg_testset_save_CFLAGS"
13354
13355		eval supported=\$$cacheid
13356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13357$as_echo "$supported" >&6; }
13358		if test "$supported" = "yes" ; then
13359			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13360			found="yes"
13361		fi
13362	fi
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378xorg_testset_save_CFLAGS="$CFLAGS"
13379
13380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13385  $as_echo_n "(cached) " >&6
13386else
13387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388/* end confdefs.h.  */
13389int i;
13390_ACEOF
13391if ac_fn_c_try_compile "$LINENO"; then :
13392  xorg_cv_cc_flag_unknown_warning_option=yes
13393else
13394  xorg_cv_cc_flag_unknown_warning_option=no
13395fi
13396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397fi
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13401	CFLAGS="$xorg_testset_save_CFLAGS"
13402fi
13403
13404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13407	fi
13408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13412  $as_echo_n "(cached) " >&6
13413else
13414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415/* end confdefs.h.  */
13416int i;
13417_ACEOF
13418if ac_fn_c_try_compile "$LINENO"; then :
13419  xorg_cv_cc_flag_unused_command_line_argument=yes
13420else
13421  xorg_cv_cc_flag_unused_command_line_argument=no
13422fi
13423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424fi
13425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13428	CFLAGS="$xorg_testset_save_CFLAGS"
13429fi
13430
13431found="no"
13432
13433	if test $found = "no" ; then
13434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13436		fi
13437
13438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13440		fi
13441
13442		CFLAGS="$CFLAGS -Wmissing-noreturn"
13443
13444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13445$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13446		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13447		if eval \${$cacheid+:} false; then :
13448  $as_echo_n "(cached) " >&6
13449else
13450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* end confdefs.h.  */
13452int i;
13453int
13454main ()
13455{
13456
13457  ;
13458  return 0;
13459}
13460_ACEOF
13461if ac_fn_c_try_link "$LINENO"; then :
13462  eval $cacheid=yes
13463else
13464  eval $cacheid=no
13465fi
13466rm -f core conftest.err conftest.$ac_objext \
13467    conftest$ac_exeext conftest.$ac_ext
13468fi
13469
13470
13471		CFLAGS="$xorg_testset_save_CFLAGS"
13472
13473		eval supported=\$$cacheid
13474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13475$as_echo "$supported" >&6; }
13476		if test "$supported" = "yes" ; then
13477			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13478			found="yes"
13479		fi
13480	fi
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496xorg_testset_save_CFLAGS="$CFLAGS"
13497
13498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13503  $as_echo_n "(cached) " >&6
13504else
13505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506/* end confdefs.h.  */
13507int i;
13508_ACEOF
13509if ac_fn_c_try_compile "$LINENO"; then :
13510  xorg_cv_cc_flag_unknown_warning_option=yes
13511else
13512  xorg_cv_cc_flag_unknown_warning_option=no
13513fi
13514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13519	CFLAGS="$xorg_testset_save_CFLAGS"
13520fi
13521
13522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13525	fi
13526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13530  $as_echo_n "(cached) " >&6
13531else
13532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533/* end confdefs.h.  */
13534int i;
13535_ACEOF
13536if ac_fn_c_try_compile "$LINENO"; then :
13537  xorg_cv_cc_flag_unused_command_line_argument=yes
13538else
13539  xorg_cv_cc_flag_unused_command_line_argument=no
13540fi
13541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13546	CFLAGS="$xorg_testset_save_CFLAGS"
13547fi
13548
13549found="no"
13550
13551	if test $found = "no" ; then
13552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13554		fi
13555
13556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13558		fi
13559
13560		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13561
13562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13563$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13564		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13565		if eval \${$cacheid+:} false; then :
13566  $as_echo_n "(cached) " >&6
13567else
13568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569/* end confdefs.h.  */
13570int i;
13571int
13572main ()
13573{
13574
13575  ;
13576  return 0;
13577}
13578_ACEOF
13579if ac_fn_c_try_link "$LINENO"; then :
13580  eval $cacheid=yes
13581else
13582  eval $cacheid=no
13583fi
13584rm -f core conftest.err conftest.$ac_objext \
13585    conftest$ac_exeext conftest.$ac_ext
13586fi
13587
13588
13589		CFLAGS="$xorg_testset_save_CFLAGS"
13590
13591		eval supported=\$$cacheid
13592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13593$as_echo "$supported" >&6; }
13594		if test "$supported" = "yes" ; then
13595			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13596			found="yes"
13597		fi
13598	fi
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614xorg_testset_save_CFLAGS="$CFLAGS"
13615
13616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13621  $as_echo_n "(cached) " >&6
13622else
13623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624/* end confdefs.h.  */
13625int i;
13626_ACEOF
13627if ac_fn_c_try_compile "$LINENO"; then :
13628  xorg_cv_cc_flag_unknown_warning_option=yes
13629else
13630  xorg_cv_cc_flag_unknown_warning_option=no
13631fi
13632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633fi
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13637	CFLAGS="$xorg_testset_save_CFLAGS"
13638fi
13639
13640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13643	fi
13644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13648  $as_echo_n "(cached) " >&6
13649else
13650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h.  */
13652int i;
13653_ACEOF
13654if ac_fn_c_try_compile "$LINENO"; then :
13655  xorg_cv_cc_flag_unused_command_line_argument=yes
13656else
13657  xorg_cv_cc_flag_unused_command_line_argument=no
13658fi
13659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660fi
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13664	CFLAGS="$xorg_testset_save_CFLAGS"
13665fi
13666
13667found="no"
13668
13669	if test $found = "no" ; then
13670		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13672		fi
13673
13674		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13676		fi
13677
13678		CFLAGS="$CFLAGS -Wredundant-decls"
13679
13680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13681$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13682		cacheid=xorg_cv_cc_flag__Wredundant_decls
13683		if eval \${$cacheid+:} false; then :
13684  $as_echo_n "(cached) " >&6
13685else
13686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687/* end confdefs.h.  */
13688int i;
13689int
13690main ()
13691{
13692
13693  ;
13694  return 0;
13695}
13696_ACEOF
13697if ac_fn_c_try_link "$LINENO"; then :
13698  eval $cacheid=yes
13699else
13700  eval $cacheid=no
13701fi
13702rm -f core conftest.err conftest.$ac_objext \
13703    conftest$ac_exeext conftest.$ac_ext
13704fi
13705
13706
13707		CFLAGS="$xorg_testset_save_CFLAGS"
13708
13709		eval supported=\$$cacheid
13710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13711$as_echo "$supported" >&6; }
13712		if test "$supported" = "yes" ; then
13713			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13714			found="yes"
13715		fi
13716	fi
13717
13718
13719
13720# These are currently disabled because they are noisy.  They will be enabled
13721# in the future once the codebase is sufficiently modernized to silence
13722# them.  For now, I don't want them to drown out the other warnings.
13723# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13724# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13725# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13726
13727# Turn some warnings into errors, so we don't accidently get successful builds
13728# when there are problems that should be fixed.
13729
13730if test "x$SELECTIVE_WERROR" = "xyes" ; then
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744xorg_testset_save_CFLAGS="$CFLAGS"
13745
13746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13751  $as_echo_n "(cached) " >&6
13752else
13753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754/* end confdefs.h.  */
13755int i;
13756_ACEOF
13757if ac_fn_c_try_compile "$LINENO"; then :
13758  xorg_cv_cc_flag_unknown_warning_option=yes
13759else
13760  xorg_cv_cc_flag_unknown_warning_option=no
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763fi
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13767	CFLAGS="$xorg_testset_save_CFLAGS"
13768fi
13769
13770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13773	fi
13774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13778  $as_echo_n "(cached) " >&6
13779else
13780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781/* end confdefs.h.  */
13782int i;
13783_ACEOF
13784if ac_fn_c_try_compile "$LINENO"; then :
13785  xorg_cv_cc_flag_unused_command_line_argument=yes
13786else
13787  xorg_cv_cc_flag_unused_command_line_argument=no
13788fi
13789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13790fi
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13794	CFLAGS="$xorg_testset_save_CFLAGS"
13795fi
13796
13797found="no"
13798
13799	if test $found = "no" ; then
13800		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13802		fi
13803
13804		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13806		fi
13807
13808		CFLAGS="$CFLAGS -Werror=implicit"
13809
13810		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13811$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13812		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13813		if eval \${$cacheid+:} false; then :
13814  $as_echo_n "(cached) " >&6
13815else
13816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h.  */
13818int i;
13819int
13820main ()
13821{
13822
13823  ;
13824  return 0;
13825}
13826_ACEOF
13827if ac_fn_c_try_link "$LINENO"; then :
13828  eval $cacheid=yes
13829else
13830  eval $cacheid=no
13831fi
13832rm -f core conftest.err conftest.$ac_objext \
13833    conftest$ac_exeext conftest.$ac_ext
13834fi
13835
13836
13837		CFLAGS="$xorg_testset_save_CFLAGS"
13838
13839		eval supported=\$$cacheid
13840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13841$as_echo "$supported" >&6; }
13842		if test "$supported" = "yes" ; then
13843			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13844			found="yes"
13845		fi
13846	fi
13847
13848	if test $found = "no" ; then
13849		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13851		fi
13852
13853		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13855		fi
13856
13857		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13858
13859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13860$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13861		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13862		if eval \${$cacheid+:} false; then :
13863  $as_echo_n "(cached) " >&6
13864else
13865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866/* end confdefs.h.  */
13867int i;
13868int
13869main ()
13870{
13871
13872  ;
13873  return 0;
13874}
13875_ACEOF
13876if ac_fn_c_try_link "$LINENO"; then :
13877  eval $cacheid=yes
13878else
13879  eval $cacheid=no
13880fi
13881rm -f core conftest.err conftest.$ac_objext \
13882    conftest$ac_exeext conftest.$ac_ext
13883fi
13884
13885
13886		CFLAGS="$xorg_testset_save_CFLAGS"
13887
13888		eval supported=\$$cacheid
13889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13890$as_echo "$supported" >&6; }
13891		if test "$supported" = "yes" ; then
13892			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13893			found="yes"
13894		fi
13895	fi
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911xorg_testset_save_CFLAGS="$CFLAGS"
13912
13913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13918  $as_echo_n "(cached) " >&6
13919else
13920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922int i;
13923_ACEOF
13924if ac_fn_c_try_compile "$LINENO"; then :
13925  xorg_cv_cc_flag_unknown_warning_option=yes
13926else
13927  xorg_cv_cc_flag_unknown_warning_option=no
13928fi
13929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13930fi
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13934	CFLAGS="$xorg_testset_save_CFLAGS"
13935fi
13936
13937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13940	fi
13941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13945  $as_echo_n "(cached) " >&6
13946else
13947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948/* end confdefs.h.  */
13949int i;
13950_ACEOF
13951if ac_fn_c_try_compile "$LINENO"; then :
13952  xorg_cv_cc_flag_unused_command_line_argument=yes
13953else
13954  xorg_cv_cc_flag_unused_command_line_argument=no
13955fi
13956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957fi
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13961	CFLAGS="$xorg_testset_save_CFLAGS"
13962fi
13963
13964found="no"
13965
13966	if test $found = "no" ; then
13967		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13969		fi
13970
13971		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13973		fi
13974
13975		CFLAGS="$CFLAGS -Werror=nonnull"
13976
13977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
13978$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
13979		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
13980		if eval \${$cacheid+:} false; then :
13981  $as_echo_n "(cached) " >&6
13982else
13983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984/* end confdefs.h.  */
13985int i;
13986int
13987main ()
13988{
13989
13990  ;
13991  return 0;
13992}
13993_ACEOF
13994if ac_fn_c_try_link "$LINENO"; then :
13995  eval $cacheid=yes
13996else
13997  eval $cacheid=no
13998fi
13999rm -f core conftest.err conftest.$ac_objext \
14000    conftest$ac_exeext conftest.$ac_ext
14001fi
14002
14003
14004		CFLAGS="$xorg_testset_save_CFLAGS"
14005
14006		eval supported=\$$cacheid
14007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14008$as_echo "$supported" >&6; }
14009		if test "$supported" = "yes" ; then
14010			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14011			found="yes"
14012		fi
14013	fi
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029xorg_testset_save_CFLAGS="$CFLAGS"
14030
14031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14036  $as_echo_n "(cached) " >&6
14037else
14038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h.  */
14040int i;
14041_ACEOF
14042if ac_fn_c_try_compile "$LINENO"; then :
14043  xorg_cv_cc_flag_unknown_warning_option=yes
14044else
14045  xorg_cv_cc_flag_unknown_warning_option=no
14046fi
14047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048fi
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14052	CFLAGS="$xorg_testset_save_CFLAGS"
14053fi
14054
14055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14058	fi
14059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14063  $as_echo_n "(cached) " >&6
14064else
14065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067int i;
14068_ACEOF
14069if ac_fn_c_try_compile "$LINENO"; then :
14070  xorg_cv_cc_flag_unused_command_line_argument=yes
14071else
14072  xorg_cv_cc_flag_unused_command_line_argument=no
14073fi
14074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075fi
14076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14079	CFLAGS="$xorg_testset_save_CFLAGS"
14080fi
14081
14082found="no"
14083
14084	if test $found = "no" ; then
14085		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087		fi
14088
14089		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14091		fi
14092
14093		CFLAGS="$CFLAGS -Werror=init-self"
14094
14095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14096$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14097		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14098		if eval \${$cacheid+:} false; then :
14099  $as_echo_n "(cached) " >&6
14100else
14101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h.  */
14103int i;
14104int
14105main ()
14106{
14107
14108  ;
14109  return 0;
14110}
14111_ACEOF
14112if ac_fn_c_try_link "$LINENO"; then :
14113  eval $cacheid=yes
14114else
14115  eval $cacheid=no
14116fi
14117rm -f core conftest.err conftest.$ac_objext \
14118    conftest$ac_exeext conftest.$ac_ext
14119fi
14120
14121
14122		CFLAGS="$xorg_testset_save_CFLAGS"
14123
14124		eval supported=\$$cacheid
14125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126$as_echo "$supported" >&6; }
14127		if test "$supported" = "yes" ; then
14128			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14129			found="yes"
14130		fi
14131	fi
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147xorg_testset_save_CFLAGS="$CFLAGS"
14148
14149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14150	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14153if ${xorg_cv_cc_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_cc_flag_unknown_warning_option=yes
14162else
14163  xorg_cv_cc_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_cc_flag_unknown_warning_option" >&5
14168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14170	CFLAGS="$xorg_testset_save_CFLAGS"
14171fi
14172
14173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14174	if test "x$xorg_testset_cc_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 $CC supports -Werror=unused-command-line-argument" >&5
14179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14180if ${xorg_cv_cc_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_cc_flag_unused_command_line_argument=yes
14189else
14190  xorg_cv_cc_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_cc_flag_unused_command_line_argument" >&5
14195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_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=main"
14212
14213		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14214$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14215		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14216		if eval \${$cacheid+:} 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 $cacheid=yes
14232else
14233  eval $cacheid=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=\$$cacheid
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=main"
14247			found="yes"
14248		fi
14249	fi
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265xorg_testset_save_CFLAGS="$CFLAGS"
14266
14267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14272  $as_echo_n "(cached) " >&6
14273else
14274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275/* end confdefs.h.  */
14276int i;
14277_ACEOF
14278if ac_fn_c_try_compile "$LINENO"; then :
14279  xorg_cv_cc_flag_unknown_warning_option=yes
14280else
14281  xorg_cv_cc_flag_unknown_warning_option=no
14282fi
14283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284fi
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14288	CFLAGS="$xorg_testset_save_CFLAGS"
14289fi
14290
14291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14294	fi
14295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14299  $as_echo_n "(cached) " >&6
14300else
14301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302/* end confdefs.h.  */
14303int i;
14304_ACEOF
14305if ac_fn_c_try_compile "$LINENO"; then :
14306  xorg_cv_cc_flag_unused_command_line_argument=yes
14307else
14308  xorg_cv_cc_flag_unused_command_line_argument=no
14309fi
14310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311fi
14312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14314	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14315	CFLAGS="$xorg_testset_save_CFLAGS"
14316fi
14317
14318found="no"
14319
14320	if test $found = "no" ; then
14321		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323		fi
14324
14325		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14327		fi
14328
14329		CFLAGS="$CFLAGS -Werror=missing-braces"
14330
14331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14332$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14333		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14334		if eval \${$cacheid+:} false; then :
14335  $as_echo_n "(cached) " >&6
14336else
14337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338/* end confdefs.h.  */
14339int i;
14340int
14341main ()
14342{
14343
14344  ;
14345  return 0;
14346}
14347_ACEOF
14348if ac_fn_c_try_link "$LINENO"; then :
14349  eval $cacheid=yes
14350else
14351  eval $cacheid=no
14352fi
14353rm -f core conftest.err conftest.$ac_objext \
14354    conftest$ac_exeext conftest.$ac_ext
14355fi
14356
14357
14358		CFLAGS="$xorg_testset_save_CFLAGS"
14359
14360		eval supported=\$$cacheid
14361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14362$as_echo "$supported" >&6; }
14363		if test "$supported" = "yes" ; then
14364			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14365			found="yes"
14366		fi
14367	fi
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383xorg_testset_save_CFLAGS="$CFLAGS"
14384
14385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14390  $as_echo_n "(cached) " >&6
14391else
14392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h.  */
14394int i;
14395_ACEOF
14396if ac_fn_c_try_compile "$LINENO"; then :
14397  xorg_cv_cc_flag_unknown_warning_option=yes
14398else
14399  xorg_cv_cc_flag_unknown_warning_option=no
14400fi
14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402fi
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14406	CFLAGS="$xorg_testset_save_CFLAGS"
14407fi
14408
14409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14412	fi
14413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14417  $as_echo_n "(cached) " >&6
14418else
14419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420/* end confdefs.h.  */
14421int i;
14422_ACEOF
14423if ac_fn_c_try_compile "$LINENO"; then :
14424  xorg_cv_cc_flag_unused_command_line_argument=yes
14425else
14426  xorg_cv_cc_flag_unused_command_line_argument=no
14427fi
14428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429fi
14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14433	CFLAGS="$xorg_testset_save_CFLAGS"
14434fi
14435
14436found="no"
14437
14438	if test $found = "no" ; then
14439		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14441		fi
14442
14443		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14445		fi
14446
14447		CFLAGS="$CFLAGS -Werror=sequence-point"
14448
14449		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14450$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14451		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14452		if eval \${$cacheid+:} false; then :
14453  $as_echo_n "(cached) " >&6
14454else
14455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456/* end confdefs.h.  */
14457int i;
14458int
14459main ()
14460{
14461
14462  ;
14463  return 0;
14464}
14465_ACEOF
14466if ac_fn_c_try_link "$LINENO"; then :
14467  eval $cacheid=yes
14468else
14469  eval $cacheid=no
14470fi
14471rm -f core conftest.err conftest.$ac_objext \
14472    conftest$ac_exeext conftest.$ac_ext
14473fi
14474
14475
14476		CFLAGS="$xorg_testset_save_CFLAGS"
14477
14478		eval supported=\$$cacheid
14479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14480$as_echo "$supported" >&6; }
14481		if test "$supported" = "yes" ; then
14482			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14483			found="yes"
14484		fi
14485	fi
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501xorg_testset_save_CFLAGS="$CFLAGS"
14502
14503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14506$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14507if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14508  $as_echo_n "(cached) " >&6
14509else
14510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511/* end confdefs.h.  */
14512int i;
14513_ACEOF
14514if ac_fn_c_try_compile "$LINENO"; then :
14515  xorg_cv_cc_flag_unknown_warning_option=yes
14516else
14517  xorg_cv_cc_flag_unknown_warning_option=no
14518fi
14519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520fi
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14522$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14524	CFLAGS="$xorg_testset_save_CFLAGS"
14525fi
14526
14527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14530	fi
14531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14533$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14534if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14535  $as_echo_n "(cached) " >&6
14536else
14537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h.  */
14539int i;
14540_ACEOF
14541if ac_fn_c_try_compile "$LINENO"; then :
14542  xorg_cv_cc_flag_unused_command_line_argument=yes
14543else
14544  xorg_cv_cc_flag_unused_command_line_argument=no
14545fi
14546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14549$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14551	CFLAGS="$xorg_testset_save_CFLAGS"
14552fi
14553
14554found="no"
14555
14556	if test $found = "no" ; then
14557		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559		fi
14560
14561		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563		fi
14564
14565		CFLAGS="$CFLAGS -Werror=return-type"
14566
14567		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14568$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14569		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14570		if eval \${$cacheid+:} false; then :
14571  $as_echo_n "(cached) " >&6
14572else
14573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h.  */
14575int i;
14576int
14577main ()
14578{
14579
14580  ;
14581  return 0;
14582}
14583_ACEOF
14584if ac_fn_c_try_link "$LINENO"; then :
14585  eval $cacheid=yes
14586else
14587  eval $cacheid=no
14588fi
14589rm -f core conftest.err conftest.$ac_objext \
14590    conftest$ac_exeext conftest.$ac_ext
14591fi
14592
14593
14594		CFLAGS="$xorg_testset_save_CFLAGS"
14595
14596		eval supported=\$$cacheid
14597		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14598$as_echo "$supported" >&6; }
14599		if test "$supported" = "yes" ; then
14600			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14601			found="yes"
14602		fi
14603	fi
14604
14605	if test $found = "no" ; then
14606		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14608		fi
14609
14610		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14612		fi
14613
14614		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14615
14616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14617$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14618		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14619		if eval \${$cacheid+:} false; then :
14620  $as_echo_n "(cached) " >&6
14621else
14622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h.  */
14624int i;
14625int
14626main ()
14627{
14628
14629  ;
14630  return 0;
14631}
14632_ACEOF
14633if ac_fn_c_try_link "$LINENO"; then :
14634  eval $cacheid=yes
14635else
14636  eval $cacheid=no
14637fi
14638rm -f core conftest.err conftest.$ac_objext \
14639    conftest$ac_exeext conftest.$ac_ext
14640fi
14641
14642
14643		CFLAGS="$xorg_testset_save_CFLAGS"
14644
14645		eval supported=\$$cacheid
14646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14647$as_echo "$supported" >&6; }
14648		if test "$supported" = "yes" ; then
14649			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14650			found="yes"
14651		fi
14652	fi
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668xorg_testset_save_CFLAGS="$CFLAGS"
14669
14670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14675  $as_echo_n "(cached) " >&6
14676else
14677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678/* end confdefs.h.  */
14679int i;
14680_ACEOF
14681if ac_fn_c_try_compile "$LINENO"; then :
14682  xorg_cv_cc_flag_unknown_warning_option=yes
14683else
14684  xorg_cv_cc_flag_unknown_warning_option=no
14685fi
14686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687fi
14688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14691	CFLAGS="$xorg_testset_save_CFLAGS"
14692fi
14693
14694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14697	fi
14698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14702  $as_echo_n "(cached) " >&6
14703else
14704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705/* end confdefs.h.  */
14706int i;
14707_ACEOF
14708if ac_fn_c_try_compile "$LINENO"; then :
14709  xorg_cv_cc_flag_unused_command_line_argument=yes
14710else
14711  xorg_cv_cc_flag_unused_command_line_argument=no
14712fi
14713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714fi
14715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14718	CFLAGS="$xorg_testset_save_CFLAGS"
14719fi
14720
14721found="no"
14722
14723	if test $found = "no" ; then
14724		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726		fi
14727
14728		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730		fi
14731
14732		CFLAGS="$CFLAGS -Werror=trigraphs"
14733
14734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14735$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14736		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14737		if eval \${$cacheid+:} false; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742int i;
14743int
14744main ()
14745{
14746
14747  ;
14748  return 0;
14749}
14750_ACEOF
14751if ac_fn_c_try_link "$LINENO"; then :
14752  eval $cacheid=yes
14753else
14754  eval $cacheid=no
14755fi
14756rm -f core conftest.err conftest.$ac_objext \
14757    conftest$ac_exeext conftest.$ac_ext
14758fi
14759
14760
14761		CFLAGS="$xorg_testset_save_CFLAGS"
14762
14763		eval supported=\$$cacheid
14764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14765$as_echo "$supported" >&6; }
14766		if test "$supported" = "yes" ; then
14767			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14768			found="yes"
14769		fi
14770	fi
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786xorg_testset_save_CFLAGS="$CFLAGS"
14787
14788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14793  $as_echo_n "(cached) " >&6
14794else
14795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796/* end confdefs.h.  */
14797int i;
14798_ACEOF
14799if ac_fn_c_try_compile "$LINENO"; then :
14800  xorg_cv_cc_flag_unknown_warning_option=yes
14801else
14802  xorg_cv_cc_flag_unknown_warning_option=no
14803fi
14804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805fi
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14809	CFLAGS="$xorg_testset_save_CFLAGS"
14810fi
14811
14812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14815	fi
14816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14820  $as_echo_n "(cached) " >&6
14821else
14822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823/* end confdefs.h.  */
14824int i;
14825_ACEOF
14826if ac_fn_c_try_compile "$LINENO"; then :
14827  xorg_cv_cc_flag_unused_command_line_argument=yes
14828else
14829  xorg_cv_cc_flag_unused_command_line_argument=no
14830fi
14831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832fi
14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14836	CFLAGS="$xorg_testset_save_CFLAGS"
14837fi
14838
14839found="no"
14840
14841	if test $found = "no" ; then
14842		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14844		fi
14845
14846		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14848		fi
14849
14850		CFLAGS="$CFLAGS -Werror=array-bounds"
14851
14852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14853$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14854		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14855		if eval \${$cacheid+:} false; then :
14856  $as_echo_n "(cached) " >&6
14857else
14858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859/* end confdefs.h.  */
14860int i;
14861int
14862main ()
14863{
14864
14865  ;
14866  return 0;
14867}
14868_ACEOF
14869if ac_fn_c_try_link "$LINENO"; then :
14870  eval $cacheid=yes
14871else
14872  eval $cacheid=no
14873fi
14874rm -f core conftest.err conftest.$ac_objext \
14875    conftest$ac_exeext conftest.$ac_ext
14876fi
14877
14878
14879		CFLAGS="$xorg_testset_save_CFLAGS"
14880
14881		eval supported=\$$cacheid
14882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14883$as_echo "$supported" >&6; }
14884		if test "$supported" = "yes" ; then
14885			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14886			found="yes"
14887		fi
14888	fi
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904xorg_testset_save_CFLAGS="$CFLAGS"
14905
14906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14911  $as_echo_n "(cached) " >&6
14912else
14913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914/* end confdefs.h.  */
14915int i;
14916_ACEOF
14917if ac_fn_c_try_compile "$LINENO"; then :
14918  xorg_cv_cc_flag_unknown_warning_option=yes
14919else
14920  xorg_cv_cc_flag_unknown_warning_option=no
14921fi
14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923fi
14924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14927	CFLAGS="$xorg_testset_save_CFLAGS"
14928fi
14929
14930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933	fi
14934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14938  $as_echo_n "(cached) " >&6
14939else
14940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941/* end confdefs.h.  */
14942int i;
14943_ACEOF
14944if ac_fn_c_try_compile "$LINENO"; then :
14945  xorg_cv_cc_flag_unused_command_line_argument=yes
14946else
14947  xorg_cv_cc_flag_unused_command_line_argument=no
14948fi
14949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14950fi
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14954	CFLAGS="$xorg_testset_save_CFLAGS"
14955fi
14956
14957found="no"
14958
14959	if test $found = "no" ; then
14960		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14962		fi
14963
14964		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14966		fi
14967
14968		CFLAGS="$CFLAGS -Werror=write-strings"
14969
14970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
14971$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
14972		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
14973		if eval \${$cacheid+:} false; then :
14974  $as_echo_n "(cached) " >&6
14975else
14976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977/* end confdefs.h.  */
14978int i;
14979int
14980main ()
14981{
14982
14983  ;
14984  return 0;
14985}
14986_ACEOF
14987if ac_fn_c_try_link "$LINENO"; then :
14988  eval $cacheid=yes
14989else
14990  eval $cacheid=no
14991fi
14992rm -f core conftest.err conftest.$ac_objext \
14993    conftest$ac_exeext conftest.$ac_ext
14994fi
14995
14996
14997		CFLAGS="$xorg_testset_save_CFLAGS"
14998
14999		eval supported=\$$cacheid
15000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15001$as_echo "$supported" >&6; }
15002		if test "$supported" = "yes" ; then
15003			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15004			found="yes"
15005		fi
15006	fi
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022xorg_testset_save_CFLAGS="$CFLAGS"
15023
15024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15029  $as_echo_n "(cached) " >&6
15030else
15031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032/* end confdefs.h.  */
15033int i;
15034_ACEOF
15035if ac_fn_c_try_compile "$LINENO"; then :
15036  xorg_cv_cc_flag_unknown_warning_option=yes
15037else
15038  xorg_cv_cc_flag_unknown_warning_option=no
15039fi
15040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041fi
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15045	CFLAGS="$xorg_testset_save_CFLAGS"
15046fi
15047
15048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15051	fi
15052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15056  $as_echo_n "(cached) " >&6
15057else
15058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059/* end confdefs.h.  */
15060int i;
15061_ACEOF
15062if ac_fn_c_try_compile "$LINENO"; then :
15063  xorg_cv_cc_flag_unused_command_line_argument=yes
15064else
15065  xorg_cv_cc_flag_unused_command_line_argument=no
15066fi
15067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068fi
15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15072	CFLAGS="$xorg_testset_save_CFLAGS"
15073fi
15074
15075found="no"
15076
15077	if test $found = "no" ; then
15078		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080		fi
15081
15082		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15084		fi
15085
15086		CFLAGS="$CFLAGS -Werror=address"
15087
15088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15089$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15090		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15091		if eval \${$cacheid+:} false; then :
15092  $as_echo_n "(cached) " >&6
15093else
15094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095/* end confdefs.h.  */
15096int i;
15097int
15098main ()
15099{
15100
15101  ;
15102  return 0;
15103}
15104_ACEOF
15105if ac_fn_c_try_link "$LINENO"; then :
15106  eval $cacheid=yes
15107else
15108  eval $cacheid=no
15109fi
15110rm -f core conftest.err conftest.$ac_objext \
15111    conftest$ac_exeext conftest.$ac_ext
15112fi
15113
15114
15115		CFLAGS="$xorg_testset_save_CFLAGS"
15116
15117		eval supported=\$$cacheid
15118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15119$as_echo "$supported" >&6; }
15120		if test "$supported" = "yes" ; then
15121			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15122			found="yes"
15123		fi
15124	fi
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140xorg_testset_save_CFLAGS="$CFLAGS"
15141
15142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15143	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15147  $as_echo_n "(cached) " >&6
15148else
15149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150/* end confdefs.h.  */
15151int i;
15152_ACEOF
15153if ac_fn_c_try_compile "$LINENO"; then :
15154  xorg_cv_cc_flag_unknown_warning_option=yes
15155else
15156  xorg_cv_cc_flag_unknown_warning_option=no
15157fi
15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159fi
15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15163	CFLAGS="$xorg_testset_save_CFLAGS"
15164fi
15165
15166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15169	fi
15170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15171	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15174  $as_echo_n "(cached) " >&6
15175else
15176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177/* end confdefs.h.  */
15178int i;
15179_ACEOF
15180if ac_fn_c_try_compile "$LINENO"; then :
15181  xorg_cv_cc_flag_unused_command_line_argument=yes
15182else
15183  xorg_cv_cc_flag_unused_command_line_argument=no
15184fi
15185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186fi
15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15190	CFLAGS="$xorg_testset_save_CFLAGS"
15191fi
15192
15193found="no"
15194
15195	if test $found = "no" ; then
15196		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15198		fi
15199
15200		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15202		fi
15203
15204		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15205
15206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15207$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15208		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15209		if eval \${$cacheid+:} false; then :
15210  $as_echo_n "(cached) " >&6
15211else
15212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h.  */
15214int i;
15215int
15216main ()
15217{
15218
15219  ;
15220  return 0;
15221}
15222_ACEOF
15223if ac_fn_c_try_link "$LINENO"; then :
15224  eval $cacheid=yes
15225else
15226  eval $cacheid=no
15227fi
15228rm -f core conftest.err conftest.$ac_objext \
15229    conftest$ac_exeext conftest.$ac_ext
15230fi
15231
15232
15233		CFLAGS="$xorg_testset_save_CFLAGS"
15234
15235		eval supported=\$$cacheid
15236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15237$as_echo "$supported" >&6; }
15238		if test "$supported" = "yes" ; then
15239			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15240			found="yes"
15241		fi
15242	fi
15243
15244	if test $found = "no" ; then
15245		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247		fi
15248
15249		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15251		fi
15252
15253		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15254
15255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15256$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15257		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15258		if eval \${$cacheid+:} false; then :
15259  $as_echo_n "(cached) " >&6
15260else
15261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263int i;
15264int
15265main ()
15266{
15267
15268  ;
15269  return 0;
15270}
15271_ACEOF
15272if ac_fn_c_try_link "$LINENO"; then :
15273  eval $cacheid=yes
15274else
15275  eval $cacheid=no
15276fi
15277rm -f core conftest.err conftest.$ac_objext \
15278    conftest$ac_exeext conftest.$ac_ext
15279fi
15280
15281
15282		CFLAGS="$xorg_testset_save_CFLAGS"
15283
15284		eval supported=\$$cacheid
15285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15286$as_echo "$supported" >&6; }
15287		if test "$supported" = "yes" ; then
15288			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15289			found="yes"
15290		fi
15291	fi
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307xorg_testset_save_CFLAGS="$CFLAGS"
15308
15309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15314  $as_echo_n "(cached) " >&6
15315else
15316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317/* end confdefs.h.  */
15318int i;
15319_ACEOF
15320if ac_fn_c_try_compile "$LINENO"; then :
15321  xorg_cv_cc_flag_unknown_warning_option=yes
15322else
15323  xorg_cv_cc_flag_unknown_warning_option=no
15324fi
15325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326fi
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15330	CFLAGS="$xorg_testset_save_CFLAGS"
15331fi
15332
15333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15336	fi
15337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15341  $as_echo_n "(cached) " >&6
15342else
15343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h.  */
15345int i;
15346_ACEOF
15347if ac_fn_c_try_compile "$LINENO"; then :
15348  xorg_cv_cc_flag_unused_command_line_argument=yes
15349else
15350  xorg_cv_cc_flag_unused_command_line_argument=no
15351fi
15352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353fi
15354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15357	CFLAGS="$xorg_testset_save_CFLAGS"
15358fi
15359
15360found="no"
15361
15362	if test $found = "no" ; then
15363		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15365		fi
15366
15367		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15369		fi
15370
15371		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15372
15373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15374$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15375		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15376		if eval \${$cacheid+:} false; then :
15377  $as_echo_n "(cached) " >&6
15378else
15379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380/* end confdefs.h.  */
15381int i;
15382int
15383main ()
15384{
15385
15386  ;
15387  return 0;
15388}
15389_ACEOF
15390if ac_fn_c_try_link "$LINENO"; then :
15391  eval $cacheid=yes
15392else
15393  eval $cacheid=no
15394fi
15395rm -f core conftest.err conftest.$ac_objext \
15396    conftest$ac_exeext conftest.$ac_ext
15397fi
15398
15399
15400		CFLAGS="$xorg_testset_save_CFLAGS"
15401
15402		eval supported=\$$cacheid
15403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15404$as_echo "$supported" >&6; }
15405		if test "$supported" = "yes" ; then
15406			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15407			found="yes"
15408		fi
15409	fi
15410
15411 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15412else
15413{ $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
15414$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;}
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428xorg_testset_save_CFLAGS="$CFLAGS"
15429
15430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15435  $as_echo_n "(cached) " >&6
15436else
15437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438/* end confdefs.h.  */
15439int i;
15440_ACEOF
15441if ac_fn_c_try_compile "$LINENO"; then :
15442  xorg_cv_cc_flag_unknown_warning_option=yes
15443else
15444  xorg_cv_cc_flag_unknown_warning_option=no
15445fi
15446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447fi
15448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15451	CFLAGS="$xorg_testset_save_CFLAGS"
15452fi
15453
15454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15457	fi
15458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15462  $as_echo_n "(cached) " >&6
15463else
15464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465/* end confdefs.h.  */
15466int i;
15467_ACEOF
15468if ac_fn_c_try_compile "$LINENO"; then :
15469  xorg_cv_cc_flag_unused_command_line_argument=yes
15470else
15471  xorg_cv_cc_flag_unused_command_line_argument=no
15472fi
15473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474fi
15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15478	CFLAGS="$xorg_testset_save_CFLAGS"
15479fi
15480
15481found="no"
15482
15483	if test $found = "no" ; then
15484		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15486		fi
15487
15488		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15490		fi
15491
15492		CFLAGS="$CFLAGS -Wimplicit"
15493
15494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15495$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15496		cacheid=xorg_cv_cc_flag__Wimplicit
15497		if eval \${$cacheid+:} false; then :
15498  $as_echo_n "(cached) " >&6
15499else
15500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501/* end confdefs.h.  */
15502int i;
15503int
15504main ()
15505{
15506
15507  ;
15508  return 0;
15509}
15510_ACEOF
15511if ac_fn_c_try_link "$LINENO"; then :
15512  eval $cacheid=yes
15513else
15514  eval $cacheid=no
15515fi
15516rm -f core conftest.err conftest.$ac_objext \
15517    conftest$ac_exeext conftest.$ac_ext
15518fi
15519
15520
15521		CFLAGS="$xorg_testset_save_CFLAGS"
15522
15523		eval supported=\$$cacheid
15524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15525$as_echo "$supported" >&6; }
15526		if test "$supported" = "yes" ; then
15527			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15528			found="yes"
15529		fi
15530	fi
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546xorg_testset_save_CFLAGS="$CFLAGS"
15547
15548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15553  $as_echo_n "(cached) " >&6
15554else
15555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556/* end confdefs.h.  */
15557int i;
15558_ACEOF
15559if ac_fn_c_try_compile "$LINENO"; then :
15560  xorg_cv_cc_flag_unknown_warning_option=yes
15561else
15562  xorg_cv_cc_flag_unknown_warning_option=no
15563fi
15564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565fi
15566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15569	CFLAGS="$xorg_testset_save_CFLAGS"
15570fi
15571
15572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15575	fi
15576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15580  $as_echo_n "(cached) " >&6
15581else
15582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583/* end confdefs.h.  */
15584int i;
15585_ACEOF
15586if ac_fn_c_try_compile "$LINENO"; then :
15587  xorg_cv_cc_flag_unused_command_line_argument=yes
15588else
15589  xorg_cv_cc_flag_unused_command_line_argument=no
15590fi
15591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592fi
15593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15596	CFLAGS="$xorg_testset_save_CFLAGS"
15597fi
15598
15599found="no"
15600
15601	if test $found = "no" ; then
15602		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15604		fi
15605
15606		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15608		fi
15609
15610		CFLAGS="$CFLAGS -Wnonnull"
15611
15612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15613$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15614		cacheid=xorg_cv_cc_flag__Wnonnull
15615		if eval \${$cacheid+:} false; then :
15616  $as_echo_n "(cached) " >&6
15617else
15618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619/* end confdefs.h.  */
15620int i;
15621int
15622main ()
15623{
15624
15625  ;
15626  return 0;
15627}
15628_ACEOF
15629if ac_fn_c_try_link "$LINENO"; then :
15630  eval $cacheid=yes
15631else
15632  eval $cacheid=no
15633fi
15634rm -f core conftest.err conftest.$ac_objext \
15635    conftest$ac_exeext conftest.$ac_ext
15636fi
15637
15638
15639		CFLAGS="$xorg_testset_save_CFLAGS"
15640
15641		eval supported=\$$cacheid
15642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15643$as_echo "$supported" >&6; }
15644		if test "$supported" = "yes" ; then
15645			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15646			found="yes"
15647		fi
15648	fi
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664xorg_testset_save_CFLAGS="$CFLAGS"
15665
15666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15671  $as_echo_n "(cached) " >&6
15672else
15673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674/* end confdefs.h.  */
15675int i;
15676_ACEOF
15677if ac_fn_c_try_compile "$LINENO"; then :
15678  xorg_cv_cc_flag_unknown_warning_option=yes
15679else
15680  xorg_cv_cc_flag_unknown_warning_option=no
15681fi
15682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683fi
15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15687	CFLAGS="$xorg_testset_save_CFLAGS"
15688fi
15689
15690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15693	fi
15694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15698  $as_echo_n "(cached) " >&6
15699else
15700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701/* end confdefs.h.  */
15702int i;
15703_ACEOF
15704if ac_fn_c_try_compile "$LINENO"; then :
15705  xorg_cv_cc_flag_unused_command_line_argument=yes
15706else
15707  xorg_cv_cc_flag_unused_command_line_argument=no
15708fi
15709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710fi
15711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15714	CFLAGS="$xorg_testset_save_CFLAGS"
15715fi
15716
15717found="no"
15718
15719	if test $found = "no" ; then
15720		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15722		fi
15723
15724		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15726		fi
15727
15728		CFLAGS="$CFLAGS -Winit-self"
15729
15730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15731$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15732		cacheid=xorg_cv_cc_flag__Winit_self
15733		if eval \${$cacheid+:} false; then :
15734  $as_echo_n "(cached) " >&6
15735else
15736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737/* end confdefs.h.  */
15738int i;
15739int
15740main ()
15741{
15742
15743  ;
15744  return 0;
15745}
15746_ACEOF
15747if ac_fn_c_try_link "$LINENO"; then :
15748  eval $cacheid=yes
15749else
15750  eval $cacheid=no
15751fi
15752rm -f core conftest.err conftest.$ac_objext \
15753    conftest$ac_exeext conftest.$ac_ext
15754fi
15755
15756
15757		CFLAGS="$xorg_testset_save_CFLAGS"
15758
15759		eval supported=\$$cacheid
15760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15761$as_echo "$supported" >&6; }
15762		if test "$supported" = "yes" ; then
15763			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15764			found="yes"
15765		fi
15766	fi
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782xorg_testset_save_CFLAGS="$CFLAGS"
15783
15784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15789  $as_echo_n "(cached) " >&6
15790else
15791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792/* end confdefs.h.  */
15793int i;
15794_ACEOF
15795if ac_fn_c_try_compile "$LINENO"; then :
15796  xorg_cv_cc_flag_unknown_warning_option=yes
15797else
15798  xorg_cv_cc_flag_unknown_warning_option=no
15799fi
15800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15801fi
15802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15805	CFLAGS="$xorg_testset_save_CFLAGS"
15806fi
15807
15808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15811	fi
15812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15816  $as_echo_n "(cached) " >&6
15817else
15818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h.  */
15820int i;
15821_ACEOF
15822if ac_fn_c_try_compile "$LINENO"; then :
15823  xorg_cv_cc_flag_unused_command_line_argument=yes
15824else
15825  xorg_cv_cc_flag_unused_command_line_argument=no
15826fi
15827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828fi
15829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15832	CFLAGS="$xorg_testset_save_CFLAGS"
15833fi
15834
15835found="no"
15836
15837	if test $found = "no" ; then
15838		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15840		fi
15841
15842		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15844		fi
15845
15846		CFLAGS="$CFLAGS -Wmain"
15847
15848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15849$as_echo_n "checking if $CC supports -Wmain... " >&6; }
15850		cacheid=xorg_cv_cc_flag__Wmain
15851		if eval \${$cacheid+:} false; then :
15852  $as_echo_n "(cached) " >&6
15853else
15854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855/* end confdefs.h.  */
15856int i;
15857int
15858main ()
15859{
15860
15861  ;
15862  return 0;
15863}
15864_ACEOF
15865if ac_fn_c_try_link "$LINENO"; then :
15866  eval $cacheid=yes
15867else
15868  eval $cacheid=no
15869fi
15870rm -f core conftest.err conftest.$ac_objext \
15871    conftest$ac_exeext conftest.$ac_ext
15872fi
15873
15874
15875		CFLAGS="$xorg_testset_save_CFLAGS"
15876
15877		eval supported=\$$cacheid
15878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15879$as_echo "$supported" >&6; }
15880		if test "$supported" = "yes" ; then
15881			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15882			found="yes"
15883		fi
15884	fi
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900xorg_testset_save_CFLAGS="$CFLAGS"
15901
15902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15907  $as_echo_n "(cached) " >&6
15908else
15909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910/* end confdefs.h.  */
15911int i;
15912_ACEOF
15913if ac_fn_c_try_compile "$LINENO"; then :
15914  xorg_cv_cc_flag_unknown_warning_option=yes
15915else
15916  xorg_cv_cc_flag_unknown_warning_option=no
15917fi
15918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919fi
15920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15923	CFLAGS="$xorg_testset_save_CFLAGS"
15924fi
15925
15926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15929	fi
15930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15934  $as_echo_n "(cached) " >&6
15935else
15936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937/* end confdefs.h.  */
15938int i;
15939_ACEOF
15940if ac_fn_c_try_compile "$LINENO"; then :
15941  xorg_cv_cc_flag_unused_command_line_argument=yes
15942else
15943  xorg_cv_cc_flag_unused_command_line_argument=no
15944fi
15945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946fi
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15950	CFLAGS="$xorg_testset_save_CFLAGS"
15951fi
15952
15953found="no"
15954
15955	if test $found = "no" ; then
15956		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15958		fi
15959
15960		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15962		fi
15963
15964		CFLAGS="$CFLAGS -Wmissing-braces"
15965
15966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
15967$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
15968		cacheid=xorg_cv_cc_flag__Wmissing_braces
15969		if eval \${$cacheid+:} false; then :
15970  $as_echo_n "(cached) " >&6
15971else
15972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973/* end confdefs.h.  */
15974int i;
15975int
15976main ()
15977{
15978
15979  ;
15980  return 0;
15981}
15982_ACEOF
15983if ac_fn_c_try_link "$LINENO"; then :
15984  eval $cacheid=yes
15985else
15986  eval $cacheid=no
15987fi
15988rm -f core conftest.err conftest.$ac_objext \
15989    conftest$ac_exeext conftest.$ac_ext
15990fi
15991
15992
15993		CFLAGS="$xorg_testset_save_CFLAGS"
15994
15995		eval supported=\$$cacheid
15996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15997$as_echo "$supported" >&6; }
15998		if test "$supported" = "yes" ; then
15999			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16000			found="yes"
16001		fi
16002	fi
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018xorg_testset_save_CFLAGS="$CFLAGS"
16019
16020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16021	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16025  $as_echo_n "(cached) " >&6
16026else
16027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028/* end confdefs.h.  */
16029int i;
16030_ACEOF
16031if ac_fn_c_try_compile "$LINENO"; then :
16032  xorg_cv_cc_flag_unknown_warning_option=yes
16033else
16034  xorg_cv_cc_flag_unknown_warning_option=no
16035fi
16036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16037fi
16038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16040	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16041	CFLAGS="$xorg_testset_save_CFLAGS"
16042fi
16043
16044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16045	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16046		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16047	fi
16048	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16052  $as_echo_n "(cached) " >&6
16053else
16054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055/* end confdefs.h.  */
16056int i;
16057_ACEOF
16058if ac_fn_c_try_compile "$LINENO"; then :
16059  xorg_cv_cc_flag_unused_command_line_argument=yes
16060else
16061  xorg_cv_cc_flag_unused_command_line_argument=no
16062fi
16063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064fi
16065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16068	CFLAGS="$xorg_testset_save_CFLAGS"
16069fi
16070
16071found="no"
16072
16073	if test $found = "no" ; then
16074		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076		fi
16077
16078		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16080		fi
16081
16082		CFLAGS="$CFLAGS -Wsequence-point"
16083
16084		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16085$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16086		cacheid=xorg_cv_cc_flag__Wsequence_point
16087		if eval \${$cacheid+:} false; then :
16088  $as_echo_n "(cached) " >&6
16089else
16090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091/* end confdefs.h.  */
16092int i;
16093int
16094main ()
16095{
16096
16097  ;
16098  return 0;
16099}
16100_ACEOF
16101if ac_fn_c_try_link "$LINENO"; then :
16102  eval $cacheid=yes
16103else
16104  eval $cacheid=no
16105fi
16106rm -f core conftest.err conftest.$ac_objext \
16107    conftest$ac_exeext conftest.$ac_ext
16108fi
16109
16110
16111		CFLAGS="$xorg_testset_save_CFLAGS"
16112
16113		eval supported=\$$cacheid
16114		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16115$as_echo "$supported" >&6; }
16116		if test "$supported" = "yes" ; then
16117			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16118			found="yes"
16119		fi
16120	fi
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136xorg_testset_save_CFLAGS="$CFLAGS"
16137
16138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16139	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16143  $as_echo_n "(cached) " >&6
16144else
16145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146/* end confdefs.h.  */
16147int i;
16148_ACEOF
16149if ac_fn_c_try_compile "$LINENO"; then :
16150  xorg_cv_cc_flag_unknown_warning_option=yes
16151else
16152  xorg_cv_cc_flag_unknown_warning_option=no
16153fi
16154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155fi
16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16159	CFLAGS="$xorg_testset_save_CFLAGS"
16160fi
16161
16162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165	fi
16166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16170  $as_echo_n "(cached) " >&6
16171else
16172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173/* end confdefs.h.  */
16174int i;
16175_ACEOF
16176if ac_fn_c_try_compile "$LINENO"; then :
16177  xorg_cv_cc_flag_unused_command_line_argument=yes
16178else
16179  xorg_cv_cc_flag_unused_command_line_argument=no
16180fi
16181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16182fi
16183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16186	CFLAGS="$xorg_testset_save_CFLAGS"
16187fi
16188
16189found="no"
16190
16191	if test $found = "no" ; then
16192		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16194		fi
16195
16196		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16198		fi
16199
16200		CFLAGS="$CFLAGS -Wreturn-type"
16201
16202		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16203$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16204		cacheid=xorg_cv_cc_flag__Wreturn_type
16205		if eval \${$cacheid+:} false; then :
16206  $as_echo_n "(cached) " >&6
16207else
16208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209/* end confdefs.h.  */
16210int i;
16211int
16212main ()
16213{
16214
16215  ;
16216  return 0;
16217}
16218_ACEOF
16219if ac_fn_c_try_link "$LINENO"; then :
16220  eval $cacheid=yes
16221else
16222  eval $cacheid=no
16223fi
16224rm -f core conftest.err conftest.$ac_objext \
16225    conftest$ac_exeext conftest.$ac_ext
16226fi
16227
16228
16229		CFLAGS="$xorg_testset_save_CFLAGS"
16230
16231		eval supported=\$$cacheid
16232		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16233$as_echo "$supported" >&6; }
16234		if test "$supported" = "yes" ; then
16235			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16236			found="yes"
16237		fi
16238	fi
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254xorg_testset_save_CFLAGS="$CFLAGS"
16255
16256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16257	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16261  $as_echo_n "(cached) " >&6
16262else
16263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16264/* end confdefs.h.  */
16265int i;
16266_ACEOF
16267if ac_fn_c_try_compile "$LINENO"; then :
16268  xorg_cv_cc_flag_unknown_warning_option=yes
16269else
16270  xorg_cv_cc_flag_unknown_warning_option=no
16271fi
16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273fi
16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16276	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16277	CFLAGS="$xorg_testset_save_CFLAGS"
16278fi
16279
16280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16281	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16282		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16283	fi
16284	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16285	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16288  $as_echo_n "(cached) " >&6
16289else
16290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h.  */
16292int i;
16293_ACEOF
16294if ac_fn_c_try_compile "$LINENO"; then :
16295  xorg_cv_cc_flag_unused_command_line_argument=yes
16296else
16297  xorg_cv_cc_flag_unused_command_line_argument=no
16298fi
16299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300fi
16301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16304	CFLAGS="$xorg_testset_save_CFLAGS"
16305fi
16306
16307found="no"
16308
16309	if test $found = "no" ; then
16310		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16312		fi
16313
16314		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16316		fi
16317
16318		CFLAGS="$CFLAGS -Wtrigraphs"
16319
16320		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16321$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16322		cacheid=xorg_cv_cc_flag__Wtrigraphs
16323		if eval \${$cacheid+:} false; then :
16324  $as_echo_n "(cached) " >&6
16325else
16326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327/* end confdefs.h.  */
16328int i;
16329int
16330main ()
16331{
16332
16333  ;
16334  return 0;
16335}
16336_ACEOF
16337if ac_fn_c_try_link "$LINENO"; then :
16338  eval $cacheid=yes
16339else
16340  eval $cacheid=no
16341fi
16342rm -f core conftest.err conftest.$ac_objext \
16343    conftest$ac_exeext conftest.$ac_ext
16344fi
16345
16346
16347		CFLAGS="$xorg_testset_save_CFLAGS"
16348
16349		eval supported=\$$cacheid
16350		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16351$as_echo "$supported" >&6; }
16352		if test "$supported" = "yes" ; then
16353			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16354			found="yes"
16355		fi
16356	fi
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372xorg_testset_save_CFLAGS="$CFLAGS"
16373
16374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16375	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16379  $as_echo_n "(cached) " >&6
16380else
16381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h.  */
16383int i;
16384_ACEOF
16385if ac_fn_c_try_compile "$LINENO"; then :
16386  xorg_cv_cc_flag_unknown_warning_option=yes
16387else
16388  xorg_cv_cc_flag_unknown_warning_option=no
16389fi
16390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391fi
16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16395	CFLAGS="$xorg_testset_save_CFLAGS"
16396fi
16397
16398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16401	fi
16402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16406  $as_echo_n "(cached) " >&6
16407else
16408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409/* end confdefs.h.  */
16410int i;
16411_ACEOF
16412if ac_fn_c_try_compile "$LINENO"; then :
16413  xorg_cv_cc_flag_unused_command_line_argument=yes
16414else
16415  xorg_cv_cc_flag_unused_command_line_argument=no
16416fi
16417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16418fi
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16422	CFLAGS="$xorg_testset_save_CFLAGS"
16423fi
16424
16425found="no"
16426
16427	if test $found = "no" ; then
16428		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16430		fi
16431
16432		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16434		fi
16435
16436		CFLAGS="$CFLAGS -Warray-bounds"
16437
16438		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16439$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16440		cacheid=xorg_cv_cc_flag__Warray_bounds
16441		if eval \${$cacheid+:} false; then :
16442  $as_echo_n "(cached) " >&6
16443else
16444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16445/* end confdefs.h.  */
16446int i;
16447int
16448main ()
16449{
16450
16451  ;
16452  return 0;
16453}
16454_ACEOF
16455if ac_fn_c_try_link "$LINENO"; then :
16456  eval $cacheid=yes
16457else
16458  eval $cacheid=no
16459fi
16460rm -f core conftest.err conftest.$ac_objext \
16461    conftest$ac_exeext conftest.$ac_ext
16462fi
16463
16464
16465		CFLAGS="$xorg_testset_save_CFLAGS"
16466
16467		eval supported=\$$cacheid
16468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16469$as_echo "$supported" >&6; }
16470		if test "$supported" = "yes" ; then
16471			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16472			found="yes"
16473		fi
16474	fi
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490xorg_testset_save_CFLAGS="$CFLAGS"
16491
16492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16494	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16497  $as_echo_n "(cached) " >&6
16498else
16499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500/* end confdefs.h.  */
16501int i;
16502_ACEOF
16503if ac_fn_c_try_compile "$LINENO"; then :
16504  xorg_cv_cc_flag_unknown_warning_option=yes
16505else
16506  xorg_cv_cc_flag_unknown_warning_option=no
16507fi
16508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16509fi
16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16513	CFLAGS="$xorg_testset_save_CFLAGS"
16514fi
16515
16516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16519	fi
16520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16521	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16524  $as_echo_n "(cached) " >&6
16525else
16526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527/* end confdefs.h.  */
16528int i;
16529_ACEOF
16530if ac_fn_c_try_compile "$LINENO"; then :
16531  xorg_cv_cc_flag_unused_command_line_argument=yes
16532else
16533  xorg_cv_cc_flag_unused_command_line_argument=no
16534fi
16535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16536fi
16537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16540	CFLAGS="$xorg_testset_save_CFLAGS"
16541fi
16542
16543found="no"
16544
16545	if test $found = "no" ; then
16546		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16548		fi
16549
16550		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16552		fi
16553
16554		CFLAGS="$CFLAGS -Wwrite-strings"
16555
16556		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16557$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16558		cacheid=xorg_cv_cc_flag__Wwrite_strings
16559		if eval \${$cacheid+:} false; then :
16560  $as_echo_n "(cached) " >&6
16561else
16562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563/* end confdefs.h.  */
16564int i;
16565int
16566main ()
16567{
16568
16569  ;
16570  return 0;
16571}
16572_ACEOF
16573if ac_fn_c_try_link "$LINENO"; then :
16574  eval $cacheid=yes
16575else
16576  eval $cacheid=no
16577fi
16578rm -f core conftest.err conftest.$ac_objext \
16579    conftest$ac_exeext conftest.$ac_ext
16580fi
16581
16582
16583		CFLAGS="$xorg_testset_save_CFLAGS"
16584
16585		eval supported=\$$cacheid
16586		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16587$as_echo "$supported" >&6; }
16588		if test "$supported" = "yes" ; then
16589			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16590			found="yes"
16591		fi
16592	fi
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608xorg_testset_save_CFLAGS="$CFLAGS"
16609
16610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16611	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16615  $as_echo_n "(cached) " >&6
16616else
16617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618/* end confdefs.h.  */
16619int i;
16620_ACEOF
16621if ac_fn_c_try_compile "$LINENO"; then :
16622  xorg_cv_cc_flag_unknown_warning_option=yes
16623else
16624  xorg_cv_cc_flag_unknown_warning_option=no
16625fi
16626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16627fi
16628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16631	CFLAGS="$xorg_testset_save_CFLAGS"
16632fi
16633
16634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16637	fi
16638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16639	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16642  $as_echo_n "(cached) " >&6
16643else
16644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645/* end confdefs.h.  */
16646int i;
16647_ACEOF
16648if ac_fn_c_try_compile "$LINENO"; then :
16649  xorg_cv_cc_flag_unused_command_line_argument=yes
16650else
16651  xorg_cv_cc_flag_unused_command_line_argument=no
16652fi
16653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654fi
16655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16658	CFLAGS="$xorg_testset_save_CFLAGS"
16659fi
16660
16661found="no"
16662
16663	if test $found = "no" ; then
16664		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16666		fi
16667
16668		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670		fi
16671
16672		CFLAGS="$CFLAGS -Waddress"
16673
16674		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16675$as_echo_n "checking if $CC supports -Waddress... " >&6; }
16676		cacheid=xorg_cv_cc_flag__Waddress
16677		if eval \${$cacheid+:} false; then :
16678  $as_echo_n "(cached) " >&6
16679else
16680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681/* end confdefs.h.  */
16682int i;
16683int
16684main ()
16685{
16686
16687  ;
16688  return 0;
16689}
16690_ACEOF
16691if ac_fn_c_try_link "$LINENO"; then :
16692  eval $cacheid=yes
16693else
16694  eval $cacheid=no
16695fi
16696rm -f core conftest.err conftest.$ac_objext \
16697    conftest$ac_exeext conftest.$ac_ext
16698fi
16699
16700
16701		CFLAGS="$xorg_testset_save_CFLAGS"
16702
16703		eval supported=\$$cacheid
16704		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16705$as_echo "$supported" >&6; }
16706		if test "$supported" = "yes" ; then
16707			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16708			found="yes"
16709		fi
16710	fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726xorg_testset_save_CFLAGS="$CFLAGS"
16727
16728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16729	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16731$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16732if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16733  $as_echo_n "(cached) " >&6
16734else
16735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736/* end confdefs.h.  */
16737int i;
16738_ACEOF
16739if ac_fn_c_try_compile "$LINENO"; then :
16740  xorg_cv_cc_flag_unknown_warning_option=yes
16741else
16742  xorg_cv_cc_flag_unknown_warning_option=no
16743fi
16744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745fi
16746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16747$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16748	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16749	CFLAGS="$xorg_testset_save_CFLAGS"
16750fi
16751
16752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16753	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16754		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16755	fi
16756	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16758$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16759if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16760  $as_echo_n "(cached) " >&6
16761else
16762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763/* end confdefs.h.  */
16764int i;
16765_ACEOF
16766if ac_fn_c_try_compile "$LINENO"; then :
16767  xorg_cv_cc_flag_unused_command_line_argument=yes
16768else
16769  xorg_cv_cc_flag_unused_command_line_argument=no
16770fi
16771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772fi
16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16774$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16775	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16776	CFLAGS="$xorg_testset_save_CFLAGS"
16777fi
16778
16779found="no"
16780
16781	if test $found = "no" ; then
16782		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16783			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16784		fi
16785
16786		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16787			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16788		fi
16789
16790		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16791
16792		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16793$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16794		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16795		if eval \${$cacheid+:} false; then :
16796  $as_echo_n "(cached) " >&6
16797else
16798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799/* end confdefs.h.  */
16800int i;
16801int
16802main ()
16803{
16804
16805  ;
16806  return 0;
16807}
16808_ACEOF
16809if ac_fn_c_try_link "$LINENO"; then :
16810  eval $cacheid=yes
16811else
16812  eval $cacheid=no
16813fi
16814rm -f core conftest.err conftest.$ac_objext \
16815    conftest$ac_exeext conftest.$ac_ext
16816fi
16817
16818
16819		CFLAGS="$xorg_testset_save_CFLAGS"
16820
16821		eval supported=\$$cacheid
16822		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16823$as_echo "$supported" >&6; }
16824		if test "$supported" = "yes" ; then
16825			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16826			found="yes"
16827		fi
16828	fi
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844xorg_testset_save_CFLAGS="$CFLAGS"
16845
16846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16849$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16850if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16851  $as_echo_n "(cached) " >&6
16852else
16853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16854/* end confdefs.h.  */
16855int i;
16856_ACEOF
16857if ac_fn_c_try_compile "$LINENO"; then :
16858  xorg_cv_cc_flag_unknown_warning_option=yes
16859else
16860  xorg_cv_cc_flag_unknown_warning_option=no
16861fi
16862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863fi
16864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16865$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16867	CFLAGS="$xorg_testset_save_CFLAGS"
16868fi
16869
16870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16873	fi
16874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16875	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16876$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16877if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16878  $as_echo_n "(cached) " >&6
16879else
16880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881/* end confdefs.h.  */
16882int i;
16883_ACEOF
16884if ac_fn_c_try_compile "$LINENO"; then :
16885  xorg_cv_cc_flag_unused_command_line_argument=yes
16886else
16887  xorg_cv_cc_flag_unused_command_line_argument=no
16888fi
16889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890fi
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16892$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16894	CFLAGS="$xorg_testset_save_CFLAGS"
16895fi
16896
16897found="no"
16898
16899	if test $found = "no" ; then
16900		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16902		fi
16903
16904		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16906		fi
16907
16908		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16909
16910		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16911$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16912		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16913		if eval \${$cacheid+:} false; then :
16914  $as_echo_n "(cached) " >&6
16915else
16916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16917/* end confdefs.h.  */
16918int i;
16919int
16920main ()
16921{
16922
16923  ;
16924  return 0;
16925}
16926_ACEOF
16927if ac_fn_c_try_link "$LINENO"; then :
16928  eval $cacheid=yes
16929else
16930  eval $cacheid=no
16931fi
16932rm -f core conftest.err conftest.$ac_objext \
16933    conftest$ac_exeext conftest.$ac_ext
16934fi
16935
16936
16937		CFLAGS="$xorg_testset_save_CFLAGS"
16938
16939		eval supported=\$$cacheid
16940		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16941$as_echo "$supported" >&6; }
16942		if test "$supported" = "yes" ; then
16943			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
16944			found="yes"
16945		fi
16946	fi
16947
16948
16949fi
16950
16951
16952
16953
16954
16955
16956
16957		CWARNFLAGS="$BASE_CFLAGS"
16958		if  test "x$GCC" = xyes ; then
16959		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
16960		fi
16961
16962
16963
16964
16965
16966
16967
16968
16969# Check whether --enable-strict-compilation was given.
16970if test "${enable_strict_compilation+set}" = set; then :
16971  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
16972else
16973  STRICT_COMPILE=no
16974fi
16975
16976
16977
16978
16979
16980
16981STRICT_CFLAGS=""
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995xorg_testset_save_CFLAGS="$CFLAGS"
16996
16997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17002  $as_echo_n "(cached) " >&6
17003else
17004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005/* end confdefs.h.  */
17006int i;
17007_ACEOF
17008if ac_fn_c_try_compile "$LINENO"; then :
17009  xorg_cv_cc_flag_unknown_warning_option=yes
17010else
17011  xorg_cv_cc_flag_unknown_warning_option=no
17012fi
17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014fi
17015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17018	CFLAGS="$xorg_testset_save_CFLAGS"
17019fi
17020
17021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024	fi
17025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17029  $as_echo_n "(cached) " >&6
17030else
17031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032/* end confdefs.h.  */
17033int i;
17034_ACEOF
17035if ac_fn_c_try_compile "$LINENO"; then :
17036  xorg_cv_cc_flag_unused_command_line_argument=yes
17037else
17038  xorg_cv_cc_flag_unused_command_line_argument=no
17039fi
17040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041fi
17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17045	CFLAGS="$xorg_testset_save_CFLAGS"
17046fi
17047
17048found="no"
17049
17050	if test $found = "no" ; then
17051		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053		fi
17054
17055		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17057		fi
17058
17059		CFLAGS="$CFLAGS -pedantic"
17060
17061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17062$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17063		cacheid=xorg_cv_cc_flag__pedantic
17064		if eval \${$cacheid+:} false; then :
17065  $as_echo_n "(cached) " >&6
17066else
17067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068/* end confdefs.h.  */
17069int i;
17070int
17071main ()
17072{
17073
17074  ;
17075  return 0;
17076}
17077_ACEOF
17078if ac_fn_c_try_link "$LINENO"; then :
17079  eval $cacheid=yes
17080else
17081  eval $cacheid=no
17082fi
17083rm -f core conftest.err conftest.$ac_objext \
17084    conftest$ac_exeext conftest.$ac_ext
17085fi
17086
17087
17088		CFLAGS="$xorg_testset_save_CFLAGS"
17089
17090		eval supported=\$$cacheid
17091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17092$as_echo "$supported" >&6; }
17093		if test "$supported" = "yes" ; then
17094			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17095			found="yes"
17096		fi
17097	fi
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113xorg_testset_save_CFLAGS="$CFLAGS"
17114
17115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17120  $as_echo_n "(cached) " >&6
17121else
17122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123/* end confdefs.h.  */
17124int i;
17125_ACEOF
17126if ac_fn_c_try_compile "$LINENO"; then :
17127  xorg_cv_cc_flag_unknown_warning_option=yes
17128else
17129  xorg_cv_cc_flag_unknown_warning_option=no
17130fi
17131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132fi
17133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17135	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17136	CFLAGS="$xorg_testset_save_CFLAGS"
17137fi
17138
17139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17140	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17141		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17142	fi
17143	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17147  $as_echo_n "(cached) " >&6
17148else
17149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17150/* end confdefs.h.  */
17151int i;
17152_ACEOF
17153if ac_fn_c_try_compile "$LINENO"; then :
17154  xorg_cv_cc_flag_unused_command_line_argument=yes
17155else
17156  xorg_cv_cc_flag_unused_command_line_argument=no
17157fi
17158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159fi
17160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17163	CFLAGS="$xorg_testset_save_CFLAGS"
17164fi
17165
17166found="no"
17167
17168	if test $found = "no" ; then
17169		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17171		fi
17172
17173		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17175		fi
17176
17177		CFLAGS="$CFLAGS -Werror"
17178
17179		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17180$as_echo_n "checking if $CC supports -Werror... " >&6; }
17181		cacheid=xorg_cv_cc_flag__Werror
17182		if eval \${$cacheid+:} false; then :
17183  $as_echo_n "(cached) " >&6
17184else
17185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186/* end confdefs.h.  */
17187int i;
17188int
17189main ()
17190{
17191
17192  ;
17193  return 0;
17194}
17195_ACEOF
17196if ac_fn_c_try_link "$LINENO"; then :
17197  eval $cacheid=yes
17198else
17199  eval $cacheid=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext \
17202    conftest$ac_exeext conftest.$ac_ext
17203fi
17204
17205
17206		CFLAGS="$xorg_testset_save_CFLAGS"
17207
17208		eval supported=\$$cacheid
17209		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17210$as_echo "$supported" >&6; }
17211		if test "$supported" = "yes" ; then
17212			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17213			found="yes"
17214		fi
17215	fi
17216
17217	if test $found = "no" ; then
17218		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220		fi
17221
17222		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17224		fi
17225
17226		CFLAGS="$CFLAGS -errwarn"
17227
17228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17229$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17230		cacheid=xorg_cv_cc_flag__errwarn
17231		if eval \${$cacheid+:} false; then :
17232  $as_echo_n "(cached) " >&6
17233else
17234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235/* end confdefs.h.  */
17236int i;
17237int
17238main ()
17239{
17240
17241  ;
17242  return 0;
17243}
17244_ACEOF
17245if ac_fn_c_try_link "$LINENO"; then :
17246  eval $cacheid=yes
17247else
17248  eval $cacheid=no
17249fi
17250rm -f core conftest.err conftest.$ac_objext \
17251    conftest$ac_exeext conftest.$ac_ext
17252fi
17253
17254
17255		CFLAGS="$xorg_testset_save_CFLAGS"
17256
17257		eval supported=\$$cacheid
17258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17259$as_echo "$supported" >&6; }
17260		if test "$supported" = "yes" ; then
17261			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17262			found="yes"
17263		fi
17264	fi
17265
17266
17267
17268# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17269# activate it with -Werror, so we add it here explicitly.
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283xorg_testset_save_CFLAGS="$CFLAGS"
17284
17285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17290  $as_echo_n "(cached) " >&6
17291else
17292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293/* end confdefs.h.  */
17294int i;
17295_ACEOF
17296if ac_fn_c_try_compile "$LINENO"; then :
17297  xorg_cv_cc_flag_unknown_warning_option=yes
17298else
17299  xorg_cv_cc_flag_unknown_warning_option=no
17300fi
17301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302fi
17303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17306	CFLAGS="$xorg_testset_save_CFLAGS"
17307fi
17308
17309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17312	fi
17313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17317  $as_echo_n "(cached) " >&6
17318else
17319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320/* end confdefs.h.  */
17321int i;
17322_ACEOF
17323if ac_fn_c_try_compile "$LINENO"; then :
17324  xorg_cv_cc_flag_unused_command_line_argument=yes
17325else
17326  xorg_cv_cc_flag_unused_command_line_argument=no
17327fi
17328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329fi
17330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17333	CFLAGS="$xorg_testset_save_CFLAGS"
17334fi
17335
17336found="no"
17337
17338	if test $found = "no" ; then
17339		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17341		fi
17342
17343		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17345		fi
17346
17347		CFLAGS="$CFLAGS -Werror=attributes"
17348
17349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17350$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17351		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17352		if eval \${$cacheid+:} false; then :
17353  $as_echo_n "(cached) " >&6
17354else
17355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356/* end confdefs.h.  */
17357int i;
17358int
17359main ()
17360{
17361
17362  ;
17363  return 0;
17364}
17365_ACEOF
17366if ac_fn_c_try_link "$LINENO"; then :
17367  eval $cacheid=yes
17368else
17369  eval $cacheid=no
17370fi
17371rm -f core conftest.err conftest.$ac_objext \
17372    conftest$ac_exeext conftest.$ac_ext
17373fi
17374
17375
17376		CFLAGS="$xorg_testset_save_CFLAGS"
17377
17378		eval supported=\$$cacheid
17379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17380$as_echo "$supported" >&6; }
17381		if test "$supported" = "yes" ; then
17382			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17383			found="yes"
17384		fi
17385	fi
17386
17387
17388
17389if test "x$STRICT_COMPILE" = "xyes"; then
17390    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17391    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17392fi
17393
17394
17395
17396
17397
17398
17399cat >>confdefs.h <<_ACEOF
17400#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17401_ACEOF
17402
17403	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17404	if test "x$PVM" = "x"; then
17405		PVM="0"
17406	fi
17407
17408cat >>confdefs.h <<_ACEOF
17409#define PACKAGE_VERSION_MINOR $PVM
17410_ACEOF
17411
17412	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17413	if test "x$PVP" = "x"; then
17414		PVP="0"
17415	fi
17416
17417cat >>confdefs.h <<_ACEOF
17418#define PACKAGE_VERSION_PATCHLEVEL $PVP
17419_ACEOF
17420
17421
17422
17423CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17424mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17425|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17426echo 'git directory not found: installing possibly empty changelog.' >&2)"
17427
17428
17429
17430
17431macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17432INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17433mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17434|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17435echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17436
17437
17438
17439
17440
17441
17442if test x$APP_MAN_SUFFIX = x    ; then
17443    APP_MAN_SUFFIX=1
17444fi
17445if test x$APP_MAN_DIR = x    ; then
17446    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17447fi
17448
17449if test x$LIB_MAN_SUFFIX = x    ; then
17450    LIB_MAN_SUFFIX=3
17451fi
17452if test x$LIB_MAN_DIR = x    ; then
17453    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17454fi
17455
17456if test x$FILE_MAN_SUFFIX = x    ; then
17457    case $host_os in
17458	solaris*)	FILE_MAN_SUFFIX=4  ;;
17459	*)		FILE_MAN_SUFFIX=5  ;;
17460    esac
17461fi
17462if test x$FILE_MAN_DIR = x    ; then
17463    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17464fi
17465
17466if test x$MISC_MAN_SUFFIX = x    ; then
17467    case $host_os in
17468	solaris*)	MISC_MAN_SUFFIX=5  ;;
17469	*)		MISC_MAN_SUFFIX=7  ;;
17470    esac
17471fi
17472if test x$MISC_MAN_DIR = x    ; then
17473    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17474fi
17475
17476if test x$DRIVER_MAN_SUFFIX = x    ; then
17477    case $host_os in
17478	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17479	*)		DRIVER_MAN_SUFFIX=4  ;;
17480    esac
17481fi
17482if test x$DRIVER_MAN_DIR = x    ; then
17483    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17484fi
17485
17486if test x$ADMIN_MAN_SUFFIX = x    ; then
17487    case $host_os in
17488	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17489	*)		ADMIN_MAN_SUFFIX=8  ;;
17490    esac
17491fi
17492if test x$ADMIN_MAN_DIR = x    ; then
17493    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17494fi
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510XORG_MAN_PAGE="X Version 11"
17511
17512MAN_SUBSTS="\
17513	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17514	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17515	-e 's|__xservername__|Xorg|g' \
17516	-e 's|__xconfigfile__|xorg.conf|g' \
17517	-e 's|__projectroot__|\$(prefix)|g' \
17518	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17519	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17520	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17521	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17522	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17523	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17524	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17525
17526
17527
17528# Check whether --enable-silent-rules was given.
17529if test "${enable_silent_rules+set}" = set; then :
17530  enableval=$enable_silent_rules;
17531fi
17532
17533case $enable_silent_rules in
17534yes) AM_DEFAULT_VERBOSITY=0;;
17535no)  AM_DEFAULT_VERBOSITY=1;;
17536*)   AM_DEFAULT_VERBOSITY=0;;
17537esac
17538am_make=${MAKE-make}
17539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17540$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17541if ${am_cv_make_support_nested_variables+:} false; then :
17542  $as_echo_n "(cached) " >&6
17543else
17544  if $as_echo 'TRUE=$(BAR$(V))
17545BAR0=false
17546BAR1=true
17547V=1
17548am__doit:
17549	@$(TRUE)
17550.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17551  am_cv_make_support_nested_variables=yes
17552else
17553  am_cv_make_support_nested_variables=no
17554fi
17555fi
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17557$as_echo "$am_cv_make_support_nested_variables" >&6; }
17558if test $am_cv_make_support_nested_variables = yes; then
17559    AM_V='$(V)'
17560  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17561else
17562  AM_V=$AM_DEFAULT_VERBOSITY
17563  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17564fi
17565AM_BACKSLASH='\'
17566
17567
17568
17569# Check whether --enable-malloc0returnsnull was given.
17570if test "${enable_malloc0returnsnull+set}" = set; then :
17571  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
17572else
17573  MALLOC_ZERO_RETURNS_NULL=auto
17574fi
17575
17576
17577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
17578$as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
17579if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
17580	if test "$cross_compiling" = yes; then :
17581  MALLOC_ZERO_RETURNS_NULL=yes
17582else
17583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584/* end confdefs.h.  */
17585
17586#include <stdlib.h>
17587
17588int
17589main ()
17590{
17591
17592    char *m0, *r0, *c0, *p;
17593    m0 = malloc(0);
17594    p = malloc(10);
17595    r0 = realloc(p,0);
17596    c0 = calloc(0,10);
17597    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
17598
17599  ;
17600  return 0;
17601}
17602_ACEOF
17603if ac_fn_c_try_run "$LINENO"; then :
17604  MALLOC_ZERO_RETURNS_NULL=yes
17605else
17606  MALLOC_ZERO_RETURNS_NULL=no
17607fi
17608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17609  conftest.$ac_objext conftest.beam conftest.$ac_ext
17610fi
17611
17612fi
17613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
17614$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
17615
17616if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
17617	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
17618	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
17619	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
17620else
17621	MALLOC_ZERO_CFLAGS=""
17622	XMALLOC_ZERO_CFLAGS=""
17623	XTMALLOC_ZERO_CFLAGS=""
17624fi
17625
17626
17627
17628
17629
17630
17631# Check randr configuration, strip extra digits from package version to
17632# find the required protocol version
17633RANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
17634
17635
17636# Obtain compiler/linker options for depedencies
17637
17638pkg_failed=no
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RANDR" >&5
17640$as_echo_n "checking for RANDR... " >&6; }
17641
17642if test -n "$RANDR_CFLAGS"; then
17643    pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS"
17644 elif test -n "$PKG_CONFIG"; then
17645    if test -n "$PKG_CONFIG" && \
17646    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
17647  ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
17648  ac_status=$?
17649  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17650  test $ac_status = 0; }; then
17651  pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
17652else
17653  pkg_failed=yes
17654fi
17655 else
17656    pkg_failed=untried
17657fi
17658if test -n "$RANDR_LIBS"; then
17659    pkg_cv_RANDR_LIBS="$RANDR_LIBS"
17660 elif test -n "$PKG_CONFIG"; then
17661    if test -n "$PKG_CONFIG" && \
17662    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
17663  ($PKG_CONFIG --exists --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
17664  ac_status=$?
17665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17666  test $ac_status = 0; }; then
17667  pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
17668else
17669  pkg_failed=yes
17670fi
17671 else
17672    pkg_failed=untried
17673fi
17674
17675
17676
17677if test $pkg_failed = yes; then
17678   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679$as_echo "no" >&6; }
17680
17681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17682        _pkg_short_errors_supported=yes
17683else
17684        _pkg_short_errors_supported=no
17685fi
17686        if test $_pkg_short_errors_supported = yes; then
17687	        RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
17688        else
17689	        RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
17690        fi
17691	# Put the nasty error message in config.log where it belongs
17692	echo "$RANDR_PKG_ERRORS" >&5
17693
17694	as_fn_error $? "Package requirements (x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met:
17695
17696$RANDR_PKG_ERRORS
17697
17698Consider adjusting the PKG_CONFIG_PATH environment variable if you
17699installed software in a non-standard prefix.
17700
17701Alternatively, you may set the environment variables RANDR_CFLAGS
17702and RANDR_LIBS to avoid the need to call pkg-config.
17703See the pkg-config man page for more details." "$LINENO" 5
17704
17705elif test $pkg_failed = untried; then
17706     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17707$as_echo "no" >&6; }
17708	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17710as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17711is in your PATH or set the PKG_CONFIG environment variable to the full
17712path to pkg-config.
17713
17714Alternatively, you may set the environment variables RANDR_CFLAGS
17715and RANDR_LIBS to avoid the need to call pkg-config.
17716See the pkg-config man page for more details.
17717
17718To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17719See \`config.log' for more details" "$LINENO" 5; }
17720
17721else
17722	RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS
17723	RANDR_LIBS=$pkg_cv_RANDR_LIBS
17724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17725$as_echo "yes" >&6; }
17726
17727fi
17728
17729ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc"
17730
17731cat >confcache <<\_ACEOF
17732# This file is a shell script that caches the results of configure
17733# tests run on this system so they can be shared between configure
17734# scripts and configure runs, see configure's option --config-cache.
17735# It is not useful on other systems.  If it contains results you don't
17736# want to keep, you may remove or edit it.
17737#
17738# config.status only pays attention to the cache file if you give it
17739# the --recheck option to rerun configure.
17740#
17741# `ac_cv_env_foo' variables (set or unset) will be overridden when
17742# loading this file, other *unset* `ac_cv_foo' will be assigned the
17743# following values.
17744
17745_ACEOF
17746
17747# The following way of writing the cache mishandles newlines in values,
17748# but we know of no workaround that is simple, portable, and efficient.
17749# So, we kill variables containing newlines.
17750# Ultrix sh set writes to stderr and can't be redirected directly,
17751# and sets the high bit in the cache file unless we assign to the vars.
17752(
17753  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17754    eval ac_val=\$$ac_var
17755    case $ac_val in #(
17756    *${as_nl}*)
17757      case $ac_var in #(
17758      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17759$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17760      esac
17761      case $ac_var in #(
17762      _ | IFS | as_nl) ;; #(
17763      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17764      *) { eval $ac_var=; unset $ac_var;} ;;
17765      esac ;;
17766    esac
17767  done
17768
17769  (set) 2>&1 |
17770    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17771    *${as_nl}ac_space=\ *)
17772      # `set' does not quote correctly, so add quotes: double-quote
17773      # substitution turns \\\\ into \\, and sed turns \\ into \.
17774      sed -n \
17775	"s/'/'\\\\''/g;
17776	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17777      ;; #(
17778    *)
17779      # `set' quotes correctly as required by POSIX, so do not add quotes.
17780      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17781      ;;
17782    esac |
17783    sort
17784) |
17785  sed '
17786     /^ac_cv_env_/b end
17787     t clear
17788     :clear
17789     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17790     t end
17791     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17792     :end' >>confcache
17793if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17794  if test -w "$cache_file"; then
17795    if test "x$cache_file" != "x/dev/null"; then
17796      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17797$as_echo "$as_me: updating cache $cache_file" >&6;}
17798      if test ! -f "$cache_file" || test -h "$cache_file"; then
17799	cat confcache >"$cache_file"
17800      else
17801        case $cache_file in #(
17802        */* | ?:*)
17803	  mv -f confcache "$cache_file"$$ &&
17804	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17805        *)
17806	  mv -f confcache "$cache_file" ;;
17807	esac
17808      fi
17809    fi
17810  else
17811    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17812$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17813  fi
17814fi
17815rm -f confcache
17816
17817test "x$prefix" = xNONE && prefix=$ac_default_prefix
17818# Let make expand exec_prefix.
17819test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17820
17821DEFS=-DHAVE_CONFIG_H
17822
17823ac_libobjs=
17824ac_ltlibobjs=
17825U=
17826for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17827  # 1. Remove the extension, and $U if already installed.
17828  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17829  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17830  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17831  #    will be set to the directory where LIBOBJS objects are built.
17832  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17833  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17834done
17835LIBOBJS=$ac_libobjs
17836
17837LTLIBOBJS=$ac_ltlibobjs
17838
17839
17840 if test -n "$EXEEXT"; then
17841  am__EXEEXT_TRUE=
17842  am__EXEEXT_FALSE='#'
17843else
17844  am__EXEEXT_TRUE='#'
17845  am__EXEEXT_FALSE=
17846fi
17847
17848if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17849  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17850Usually this means the macro was only invoked conditionally." "$LINENO" 5
17851fi
17852if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17853  as_fn_error $? "conditional \"AMDEP\" was never defined.
17854Usually this means the macro was only invoked conditionally." "$LINENO" 5
17855fi
17856if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17857  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17858Usually this means the macro was only invoked conditionally." "$LINENO" 5
17859fi
17860
17861: "${CONFIG_STATUS=./config.status}"
17862ac_write_fail=0
17863ac_clean_files_save=$ac_clean_files
17864ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17865{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17866$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17867as_write_fail=0
17868cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17869#! $SHELL
17870# Generated by $as_me.
17871# Run this file to recreate the current configuration.
17872# Compiler output produced by configure, useful for debugging
17873# configure, is in config.log if it exists.
17874
17875debug=false
17876ac_cs_recheck=false
17877ac_cs_silent=false
17878
17879SHELL=\${CONFIG_SHELL-$SHELL}
17880export SHELL
17881_ASEOF
17882cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17883## -------------------- ##
17884## M4sh Initialization. ##
17885## -------------------- ##
17886
17887# Be more Bourne compatible
17888DUALCASE=1; export DUALCASE # for MKS sh
17889if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17890  emulate sh
17891  NULLCMD=:
17892  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17893  # is contrary to our usage.  Disable this feature.
17894  alias -g '${1+"$@"}'='"$@"'
17895  setopt NO_GLOB_SUBST
17896else
17897  case `(set -o) 2>/dev/null` in #(
17898  *posix*) :
17899    set -o posix ;; #(
17900  *) :
17901     ;;
17902esac
17903fi
17904
17905
17906as_nl='
17907'
17908export as_nl
17909# Printing a long string crashes Solaris 7 /usr/bin/printf.
17910as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17911as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17912as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17913# Prefer a ksh shell builtin over an external printf program on Solaris,
17914# but without wasting forks for bash or zsh.
17915if test -z "$BASH_VERSION$ZSH_VERSION" \
17916    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17917  as_echo='print -r --'
17918  as_echo_n='print -rn --'
17919elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17920  as_echo='printf %s\n'
17921  as_echo_n='printf %s'
17922else
17923  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17924    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17925    as_echo_n='/usr/ucb/echo -n'
17926  else
17927    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17928    as_echo_n_body='eval
17929      arg=$1;
17930      case $arg in #(
17931      *"$as_nl"*)
17932	expr "X$arg" : "X\\(.*\\)$as_nl";
17933	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17934      esac;
17935      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17936    '
17937    export as_echo_n_body
17938    as_echo_n='sh -c $as_echo_n_body as_echo'
17939  fi
17940  export as_echo_body
17941  as_echo='sh -c $as_echo_body as_echo'
17942fi
17943
17944# The user is always right.
17945if test "${PATH_SEPARATOR+set}" != set; then
17946  PATH_SEPARATOR=:
17947  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17948    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17949      PATH_SEPARATOR=';'
17950  }
17951fi
17952
17953
17954# IFS
17955# We need space, tab and new line, in precisely that order.  Quoting is
17956# there to prevent editors from complaining about space-tab.
17957# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17958# splitting by setting IFS to empty value.)
17959IFS=" ""	$as_nl"
17960
17961# Find who we are.  Look in the path if we contain no directory separator.
17962as_myself=
17963case $0 in #((
17964  *[\\/]* ) as_myself=$0 ;;
17965  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17966for as_dir in $PATH
17967do
17968  IFS=$as_save_IFS
17969  test -z "$as_dir" && as_dir=.
17970    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17971  done
17972IFS=$as_save_IFS
17973
17974     ;;
17975esac
17976# We did not find ourselves, most probably we were run as `sh COMMAND'
17977# in which case we are not to be found in the path.
17978if test "x$as_myself" = x; then
17979  as_myself=$0
17980fi
17981if test ! -f "$as_myself"; then
17982  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17983  exit 1
17984fi
17985
17986# Unset variables that we do not need and which cause bugs (e.g. in
17987# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17988# suppresses any "Segmentation fault" message there.  '((' could
17989# trigger a bug in pdksh 5.2.14.
17990for as_var in BASH_ENV ENV MAIL MAILPATH
17991do eval test x\${$as_var+set} = xset \
17992  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17993done
17994PS1='$ '
17995PS2='> '
17996PS4='+ '
17997
17998# NLS nuisances.
17999LC_ALL=C
18000export LC_ALL
18001LANGUAGE=C
18002export LANGUAGE
18003
18004# CDPATH.
18005(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18006
18007
18008# as_fn_error STATUS ERROR [LINENO LOG_FD]
18009# ----------------------------------------
18010# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18011# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18012# script with STATUS, using 1 if that was 0.
18013as_fn_error ()
18014{
18015  as_status=$1; test $as_status -eq 0 && as_status=1
18016  if test "$4"; then
18017    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18018    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18019  fi
18020  $as_echo "$as_me: error: $2" >&2
18021  as_fn_exit $as_status
18022} # as_fn_error
18023
18024
18025# as_fn_set_status STATUS
18026# -----------------------
18027# Set $? to STATUS, without forking.
18028as_fn_set_status ()
18029{
18030  return $1
18031} # as_fn_set_status
18032
18033# as_fn_exit STATUS
18034# -----------------
18035# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18036as_fn_exit ()
18037{
18038  set +e
18039  as_fn_set_status $1
18040  exit $1
18041} # as_fn_exit
18042
18043# as_fn_unset VAR
18044# ---------------
18045# Portably unset VAR.
18046as_fn_unset ()
18047{
18048  { eval $1=; unset $1;}
18049}
18050as_unset=as_fn_unset
18051# as_fn_append VAR VALUE
18052# ----------------------
18053# Append the text in VALUE to the end of the definition contained in VAR. Take
18054# advantage of any shell optimizations that allow amortized linear growth over
18055# repeated appends, instead of the typical quadratic growth present in naive
18056# implementations.
18057if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18058  eval 'as_fn_append ()
18059  {
18060    eval $1+=\$2
18061  }'
18062else
18063  as_fn_append ()
18064  {
18065    eval $1=\$$1\$2
18066  }
18067fi # as_fn_append
18068
18069# as_fn_arith ARG...
18070# ------------------
18071# Perform arithmetic evaluation on the ARGs, and store the result in the
18072# global $as_val. Take advantage of shells that can avoid forks. The arguments
18073# must be portable across $(()) and expr.
18074if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18075  eval 'as_fn_arith ()
18076  {
18077    as_val=$(( $* ))
18078  }'
18079else
18080  as_fn_arith ()
18081  {
18082    as_val=`expr "$@" || test $? -eq 1`
18083  }
18084fi # as_fn_arith
18085
18086
18087if expr a : '\(a\)' >/dev/null 2>&1 &&
18088   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18089  as_expr=expr
18090else
18091  as_expr=false
18092fi
18093
18094if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18095  as_basename=basename
18096else
18097  as_basename=false
18098fi
18099
18100if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18101  as_dirname=dirname
18102else
18103  as_dirname=false
18104fi
18105
18106as_me=`$as_basename -- "$0" ||
18107$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18108	 X"$0" : 'X\(//\)$' \| \
18109	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18110$as_echo X/"$0" |
18111    sed '/^.*\/\([^/][^/]*\)\/*$/{
18112	    s//\1/
18113	    q
18114	  }
18115	  /^X\/\(\/\/\)$/{
18116	    s//\1/
18117	    q
18118	  }
18119	  /^X\/\(\/\).*/{
18120	    s//\1/
18121	    q
18122	  }
18123	  s/.*/./; q'`
18124
18125# Avoid depending upon Character Ranges.
18126as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18127as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18128as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18129as_cr_digits='0123456789'
18130as_cr_alnum=$as_cr_Letters$as_cr_digits
18131
18132ECHO_C= ECHO_N= ECHO_T=
18133case `echo -n x` in #(((((
18134-n*)
18135  case `echo 'xy\c'` in
18136  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18137  xy)  ECHO_C='\c';;
18138  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18139       ECHO_T='	';;
18140  esac;;
18141*)
18142  ECHO_N='-n';;
18143esac
18144
18145rm -f conf$$ conf$$.exe conf$$.file
18146if test -d conf$$.dir; then
18147  rm -f conf$$.dir/conf$$.file
18148else
18149  rm -f conf$$.dir
18150  mkdir conf$$.dir 2>/dev/null
18151fi
18152if (echo >conf$$.file) 2>/dev/null; then
18153  if ln -s conf$$.file conf$$ 2>/dev/null; then
18154    as_ln_s='ln -s'
18155    # ... but there are two gotchas:
18156    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18157    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18158    # In both cases, we have to default to `cp -p'.
18159    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18160      as_ln_s='cp -p'
18161  elif ln conf$$.file conf$$ 2>/dev/null; then
18162    as_ln_s=ln
18163  else
18164    as_ln_s='cp -p'
18165  fi
18166else
18167  as_ln_s='cp -p'
18168fi
18169rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18170rmdir conf$$.dir 2>/dev/null
18171
18172
18173# as_fn_mkdir_p
18174# -------------
18175# Create "$as_dir" as a directory, including parents if necessary.
18176as_fn_mkdir_p ()
18177{
18178
18179  case $as_dir in #(
18180  -*) as_dir=./$as_dir;;
18181  esac
18182  test -d "$as_dir" || eval $as_mkdir_p || {
18183    as_dirs=
18184    while :; do
18185      case $as_dir in #(
18186      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18187      *) as_qdir=$as_dir;;
18188      esac
18189      as_dirs="'$as_qdir' $as_dirs"
18190      as_dir=`$as_dirname -- "$as_dir" ||
18191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18192	 X"$as_dir" : 'X\(//\)[^/]' \| \
18193	 X"$as_dir" : 'X\(//\)$' \| \
18194	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18195$as_echo X"$as_dir" |
18196    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18197	    s//\1/
18198	    q
18199	  }
18200	  /^X\(\/\/\)[^/].*/{
18201	    s//\1/
18202	    q
18203	  }
18204	  /^X\(\/\/\)$/{
18205	    s//\1/
18206	    q
18207	  }
18208	  /^X\(\/\).*/{
18209	    s//\1/
18210	    q
18211	  }
18212	  s/.*/./; q'`
18213      test -d "$as_dir" && break
18214    done
18215    test -z "$as_dirs" || eval "mkdir $as_dirs"
18216  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18217
18218
18219} # as_fn_mkdir_p
18220if mkdir -p . 2>/dev/null; then
18221  as_mkdir_p='mkdir -p "$as_dir"'
18222else
18223  test -d ./-p && rmdir ./-p
18224  as_mkdir_p=false
18225fi
18226
18227if test -x / >/dev/null 2>&1; then
18228  as_test_x='test -x'
18229else
18230  if ls -dL / >/dev/null 2>&1; then
18231    as_ls_L_option=L
18232  else
18233    as_ls_L_option=
18234  fi
18235  as_test_x='
18236    eval sh -c '\''
18237      if test -d "$1"; then
18238	test -d "$1/.";
18239      else
18240	case $1 in #(
18241	-*)set "./$1";;
18242	esac;
18243	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18244	???[sx]*):;;*)false;;esac;fi
18245    '\'' sh
18246  '
18247fi
18248as_executable_p=$as_test_x
18249
18250# Sed expression to map a string onto a valid CPP name.
18251as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18252
18253# Sed expression to map a string onto a valid variable name.
18254as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18255
18256
18257exec 6>&1
18258## ----------------------------------- ##
18259## Main body of $CONFIG_STATUS script. ##
18260## ----------------------------------- ##
18261_ASEOF
18262test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18263
18264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18265# Save the log message, to keep $0 and so on meaningful, and to
18266# report actual input values of CONFIG_FILES etc. instead of their
18267# values after options handling.
18268ac_log="
18269This file was extended by libXrandr $as_me 1.4.0, which was
18270generated by GNU Autoconf 2.68.  Invocation command line was
18271
18272  CONFIG_FILES    = $CONFIG_FILES
18273  CONFIG_HEADERS  = $CONFIG_HEADERS
18274  CONFIG_LINKS    = $CONFIG_LINKS
18275  CONFIG_COMMANDS = $CONFIG_COMMANDS
18276  $ $0 $@
18277
18278on `(hostname || uname -n) 2>/dev/null | sed 1q`
18279"
18280
18281_ACEOF
18282
18283case $ac_config_files in *"
18284"*) set x $ac_config_files; shift; ac_config_files=$*;;
18285esac
18286
18287case $ac_config_headers in *"
18288"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18289esac
18290
18291
18292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18293# Files that config.status was made for.
18294config_files="$ac_config_files"
18295config_headers="$ac_config_headers"
18296config_commands="$ac_config_commands"
18297
18298_ACEOF
18299
18300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18301ac_cs_usage="\
18302\`$as_me' instantiates files and other configuration actions
18303from templates according to the current configuration.  Unless the files
18304and actions are specified as TAGs, all are instantiated by default.
18305
18306Usage: $0 [OPTION]... [TAG]...
18307
18308  -h, --help       print this help, then exit
18309  -V, --version    print version number and configuration settings, then exit
18310      --config     print configuration, then exit
18311  -q, --quiet, --silent
18312                   do not print progress messages
18313  -d, --debug      don't remove temporary files
18314      --recheck    update $as_me by reconfiguring in the same conditions
18315      --file=FILE[:TEMPLATE]
18316                   instantiate the configuration file FILE
18317      --header=FILE[:TEMPLATE]
18318                   instantiate the configuration header FILE
18319
18320Configuration files:
18321$config_files
18322
18323Configuration headers:
18324$config_headers
18325
18326Configuration commands:
18327$config_commands
18328
18329Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18330
18331_ACEOF
18332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18333ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18334ac_cs_version="\\
18335libXrandr config.status 1.4.0
18336configured by $0, generated by GNU Autoconf 2.68,
18337  with options \\"\$ac_cs_config\\"
18338
18339Copyright (C) 2010 Free Software Foundation, Inc.
18340This config.status script is free software; the Free Software Foundation
18341gives unlimited permission to copy, distribute and modify it."
18342
18343ac_pwd='$ac_pwd'
18344srcdir='$srcdir'
18345INSTALL='$INSTALL'
18346MKDIR_P='$MKDIR_P'
18347AWK='$AWK'
18348test -n "\$AWK" || AWK=awk
18349_ACEOF
18350
18351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18352# The default lists apply if the user does not specify any file.
18353ac_need_defaults=:
18354while test $# != 0
18355do
18356  case $1 in
18357  --*=?*)
18358    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18359    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18360    ac_shift=:
18361    ;;
18362  --*=)
18363    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18364    ac_optarg=
18365    ac_shift=:
18366    ;;
18367  *)
18368    ac_option=$1
18369    ac_optarg=$2
18370    ac_shift=shift
18371    ;;
18372  esac
18373
18374  case $ac_option in
18375  # Handling of the options.
18376  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18377    ac_cs_recheck=: ;;
18378  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18379    $as_echo "$ac_cs_version"; exit ;;
18380  --config | --confi | --conf | --con | --co | --c )
18381    $as_echo "$ac_cs_config"; exit ;;
18382  --debug | --debu | --deb | --de | --d | -d )
18383    debug=: ;;
18384  --file | --fil | --fi | --f )
18385    $ac_shift
18386    case $ac_optarg in
18387    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18388    '') as_fn_error $? "missing file argument" ;;
18389    esac
18390    as_fn_append CONFIG_FILES " '$ac_optarg'"
18391    ac_need_defaults=false;;
18392  --header | --heade | --head | --hea )
18393    $ac_shift
18394    case $ac_optarg in
18395    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18396    esac
18397    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18398    ac_need_defaults=false;;
18399  --he | --h)
18400    # Conflict between --help and --header
18401    as_fn_error $? "ambiguous option: \`$1'
18402Try \`$0 --help' for more information.";;
18403  --help | --hel | -h )
18404    $as_echo "$ac_cs_usage"; exit ;;
18405  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18406  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18407    ac_cs_silent=: ;;
18408
18409  # This is an error.
18410  -*) as_fn_error $? "unrecognized option: \`$1'
18411Try \`$0 --help' for more information." ;;
18412
18413  *) as_fn_append ac_config_targets " $1"
18414     ac_need_defaults=false ;;
18415
18416  esac
18417  shift
18418done
18419
18420ac_configure_extra_args=
18421
18422if $ac_cs_silent; then
18423  exec 6>/dev/null
18424  ac_configure_extra_args="$ac_configure_extra_args --silent"
18425fi
18426
18427_ACEOF
18428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18429if \$ac_cs_recheck; then
18430  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18431  shift
18432  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18433  CONFIG_SHELL='$SHELL'
18434  export CONFIG_SHELL
18435  exec "\$@"
18436fi
18437
18438_ACEOF
18439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18440exec 5>>config.log
18441{
18442  echo
18443  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18444## Running $as_me. ##
18445_ASBOX
18446  $as_echo "$ac_log"
18447} >&5
18448
18449_ACEOF
18450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18451#
18452# INIT-COMMANDS
18453#
18454AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18455
18456
18457# The HP-UX ksh and POSIX shell print the target directory to stdout
18458# if CDPATH is set.
18459(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18460
18461sed_quote_subst='$sed_quote_subst'
18462double_quote_subst='$double_quote_subst'
18463delay_variable_subst='$delay_variable_subst'
18464macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18465macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18466enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18467enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18468pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18469enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18470SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18471ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18472PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18473host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18474host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18475host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18476build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18477build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18478build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18479SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18480Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18481GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18482EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18483FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18484LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18485NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18486LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18487max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18488ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18489exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18490lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18491lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18492lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18493lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18494lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18495reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18496reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18497OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18498deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18499file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18500file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18501want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18502DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18503sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18504AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18505AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18506archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18507STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18508RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18509old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18510old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18511old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18512lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18513CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18514CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18515compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18516GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18517lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18518lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18519lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18520lt_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"`'
18521nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18522lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18523objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18524MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18525lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18526lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18527lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18528lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18529lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18530need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18531MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18532DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18533NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18534LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18535OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18536OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18537libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18538shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18539extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18540archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18541enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18542export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18543whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18544compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18545old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18546old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18547archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18548archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18549module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18550module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18551with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18552allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18553no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18554hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18555hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18556hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18557hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18558hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18559hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18560hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18561inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18562link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18563always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18564export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18565exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18566include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18567prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18568postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18569file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18570variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18571need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18572need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18573version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18574runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18575shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18576shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18577libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18578library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18579soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18580install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18581postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18582postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18583finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18584finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18585hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18586sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18587sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18588hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18589enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18590enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18591enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18592old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18593striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18594
18595LTCC='$LTCC'
18596LTCFLAGS='$LTCFLAGS'
18597compiler='$compiler_DEFAULT'
18598
18599# A function that is used when there is no print builtin or printf.
18600func_fallback_echo ()
18601{
18602  eval 'cat <<_LTECHO_EOF
18603\$1
18604_LTECHO_EOF'
18605}
18606
18607# Quote evaled strings.
18608for var in SHELL \
18609ECHO \
18610PATH_SEPARATOR \
18611SED \
18612GREP \
18613EGREP \
18614FGREP \
18615LD \
18616NM \
18617LN_S \
18618lt_SP2NL \
18619lt_NL2SP \
18620reload_flag \
18621OBJDUMP \
18622deplibs_check_method \
18623file_magic_cmd \
18624file_magic_glob \
18625want_nocaseglob \
18626DLLTOOL \
18627sharedlib_from_linklib_cmd \
18628AR \
18629AR_FLAGS \
18630archiver_list_spec \
18631STRIP \
18632RANLIB \
18633CC \
18634CFLAGS \
18635compiler \
18636lt_cv_sys_global_symbol_pipe \
18637lt_cv_sys_global_symbol_to_cdecl \
18638lt_cv_sys_global_symbol_to_c_name_address \
18639lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18640nm_file_list_spec \
18641lt_prog_compiler_no_builtin_flag \
18642lt_prog_compiler_pic \
18643lt_prog_compiler_wl \
18644lt_prog_compiler_static \
18645lt_cv_prog_compiler_c_o \
18646need_locks \
18647MANIFEST_TOOL \
18648DSYMUTIL \
18649NMEDIT \
18650LIPO \
18651OTOOL \
18652OTOOL64 \
18653shrext_cmds \
18654export_dynamic_flag_spec \
18655whole_archive_flag_spec \
18656compiler_needs_object \
18657with_gnu_ld \
18658allow_undefined_flag \
18659no_undefined_flag \
18660hardcode_libdir_flag_spec \
18661hardcode_libdir_separator \
18662exclude_expsyms \
18663include_expsyms \
18664file_list_spec \
18665variables_saved_for_relink \
18666libname_spec \
18667library_names_spec \
18668soname_spec \
18669install_override_mode \
18670finish_eval \
18671old_striplib \
18672striplib; do
18673    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18674    *[\\\\\\\`\\"\\\$]*)
18675      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18676      ;;
18677    *)
18678      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18679      ;;
18680    esac
18681done
18682
18683# Double-quote double-evaled strings.
18684for var in reload_cmds \
18685old_postinstall_cmds \
18686old_postuninstall_cmds \
18687old_archive_cmds \
18688extract_expsyms_cmds \
18689old_archive_from_new_cmds \
18690old_archive_from_expsyms_cmds \
18691archive_cmds \
18692archive_expsym_cmds \
18693module_cmds \
18694module_expsym_cmds \
18695export_symbols_cmds \
18696prelink_cmds \
18697postlink_cmds \
18698postinstall_cmds \
18699postuninstall_cmds \
18700finish_cmds \
18701sys_lib_search_path_spec \
18702sys_lib_dlsearch_path_spec; do
18703    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18704    *[\\\\\\\`\\"\\\$]*)
18705      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18706      ;;
18707    *)
18708      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18709      ;;
18710    esac
18711done
18712
18713ac_aux_dir='$ac_aux_dir'
18714xsi_shell='$xsi_shell'
18715lt_shell_append='$lt_shell_append'
18716
18717# See if we are running on zsh, and set the options which allow our
18718# commands through without removal of \ escapes INIT.
18719if test -n "\${ZSH_VERSION+set}" ; then
18720   setopt NO_GLOB_SUBST
18721fi
18722
18723
18724    PACKAGE='$PACKAGE'
18725    VERSION='$VERSION'
18726    TIMESTAMP='$TIMESTAMP'
18727    RM='$RM'
18728    ofile='$ofile'
18729
18730
18731
18732
18733_ACEOF
18734
18735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18736
18737# Handling of arguments.
18738for ac_config_target in $ac_config_targets
18739do
18740  case $ac_config_target in
18741    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18742    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18743    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18744    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18745    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18746    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18747    "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;;
18748
18749  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18750  esac
18751done
18752
18753
18754# If the user did not use the arguments to specify the items to instantiate,
18755# then the envvar interface is used.  Set only those that are not.
18756# We use the long form for the default assignment because of an extremely
18757# bizarre bug on SunOS 4.1.3.
18758if $ac_need_defaults; then
18759  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18760  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18761  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18762fi
18763
18764# Have a temporary directory for convenience.  Make it in the build tree
18765# simply because there is no reason against having it here, and in addition,
18766# creating and moving files from /tmp can sometimes cause problems.
18767# Hook for its removal unless debugging.
18768# Note that there is a small window in which the directory will not be cleaned:
18769# after its creation but before its name has been assigned to `$tmp'.
18770$debug ||
18771{
18772  tmp= ac_tmp=
18773  trap 'exit_status=$?
18774  : "${ac_tmp:=$tmp}"
18775  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18776' 0
18777  trap 'as_fn_exit 1' 1 2 13 15
18778}
18779# Create a (secure) tmp directory for tmp files.
18780
18781{
18782  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18783  test -d "$tmp"
18784}  ||
18785{
18786  tmp=./conf$$-$RANDOM
18787  (umask 077 && mkdir "$tmp")
18788} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18789ac_tmp=$tmp
18790
18791# Set up the scripts for CONFIG_FILES section.
18792# No need to generate them if there are no CONFIG_FILES.
18793# This happens for instance with `./config.status config.h'.
18794if test -n "$CONFIG_FILES"; then
18795
18796
18797ac_cr=`echo X | tr X '\015'`
18798# On cygwin, bash can eat \r inside `` if the user requested igncr.
18799# But we know of no other shell where ac_cr would be empty at this
18800# point, so we can use a bashism as a fallback.
18801if test "x$ac_cr" = x; then
18802  eval ac_cr=\$\'\\r\'
18803fi
18804ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18805if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18806  ac_cs_awk_cr='\\r'
18807else
18808  ac_cs_awk_cr=$ac_cr
18809fi
18810
18811echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18812_ACEOF
18813
18814
18815{
18816  echo "cat >conf$$subs.awk <<_ACEOF" &&
18817  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18818  echo "_ACEOF"
18819} >conf$$subs.sh ||
18820  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18821ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18822ac_delim='%!_!# '
18823for ac_last_try in false false false false false :; do
18824  . ./conf$$subs.sh ||
18825    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18826
18827  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18828  if test $ac_delim_n = $ac_delim_num; then
18829    break
18830  elif $ac_last_try; then
18831    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18832  else
18833    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18834  fi
18835done
18836rm -f conf$$subs.sh
18837
18838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18839cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18840_ACEOF
18841sed -n '
18842h
18843s/^/S["/; s/!.*/"]=/
18844p
18845g
18846s/^[^!]*!//
18847:repl
18848t repl
18849s/'"$ac_delim"'$//
18850t delim
18851:nl
18852h
18853s/\(.\{148\}\)..*/\1/
18854t more1
18855s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18856p
18857n
18858b repl
18859:more1
18860s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18861p
18862g
18863s/.\{148\}//
18864t nl
18865:delim
18866h
18867s/\(.\{148\}\)..*/\1/
18868t more2
18869s/["\\]/\\&/g; s/^/"/; s/$/"/
18870p
18871b
18872:more2
18873s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18874p
18875g
18876s/.\{148\}//
18877t delim
18878' <conf$$subs.awk | sed '
18879/^[^""]/{
18880  N
18881  s/\n//
18882}
18883' >>$CONFIG_STATUS || ac_write_fail=1
18884rm -f conf$$subs.awk
18885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886_ACAWK
18887cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18888  for (key in S) S_is_set[key] = 1
18889  FS = ""
18890
18891}
18892{
18893  line = $ 0
18894  nfields = split(line, field, "@")
18895  substed = 0
18896  len = length(field[1])
18897  for (i = 2; i < nfields; i++) {
18898    key = field[i]
18899    keylen = length(key)
18900    if (S_is_set[key]) {
18901      value = S[key]
18902      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18903      len += length(value) + length(field[++i])
18904      substed = 1
18905    } else
18906      len += 1 + keylen
18907  }
18908
18909  print line
18910}
18911
18912_ACAWK
18913_ACEOF
18914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18915if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18916  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18917else
18918  cat
18919fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18920  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18921_ACEOF
18922
18923# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18924# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18925# trailing colons and then remove the whole line if VPATH becomes empty
18926# (actually we leave an empty line to preserve line numbers).
18927if test "x$srcdir" = x.; then
18928  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18929h
18930s///
18931s/^/:/
18932s/[	 ]*$/:/
18933s/:\$(srcdir):/:/g
18934s/:\${srcdir}:/:/g
18935s/:@srcdir@:/:/g
18936s/^:*//
18937s/:*$//
18938x
18939s/\(=[	 ]*\).*/\1/
18940G
18941s/\n//
18942s/^[^=]*=[	 ]*$//
18943}'
18944fi
18945
18946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18947fi # test -n "$CONFIG_FILES"
18948
18949# Set up the scripts for CONFIG_HEADERS section.
18950# No need to generate them if there are no CONFIG_HEADERS.
18951# This happens for instance with `./config.status Makefile'.
18952if test -n "$CONFIG_HEADERS"; then
18953cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18954BEGIN {
18955_ACEOF
18956
18957# Transform confdefs.h into an awk script `defines.awk', embedded as
18958# here-document in config.status, that substitutes the proper values into
18959# config.h.in to produce config.h.
18960
18961# Create a delimiter string that does not exist in confdefs.h, to ease
18962# handling of long lines.
18963ac_delim='%!_!# '
18964for ac_last_try in false false :; do
18965  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18966  if test -z "$ac_tt"; then
18967    break
18968  elif $ac_last_try; then
18969    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18970  else
18971    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18972  fi
18973done
18974
18975# For the awk script, D is an array of macro values keyed by name,
18976# likewise P contains macro parameters if any.  Preserve backslash
18977# newline sequences.
18978
18979ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18980sed -n '
18981s/.\{148\}/&'"$ac_delim"'/g
18982t rset
18983:rset
18984s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18985t def
18986d
18987:def
18988s/\\$//
18989t bsnl
18990s/["\\]/\\&/g
18991s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18992D["\1"]=" \3"/p
18993s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18994d
18995:bsnl
18996s/["\\]/\\&/g
18997s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18998D["\1"]=" \3\\\\\\n"\\/p
18999t cont
19000s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19001t cont
19002d
19003:cont
19004n
19005s/.\{148\}/&'"$ac_delim"'/g
19006t clear
19007:clear
19008s/\\$//
19009t bsnlc
19010s/["\\]/\\&/g; s/^/"/; s/$/"/p
19011d
19012:bsnlc
19013s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19014b cont
19015' <confdefs.h | sed '
19016s/'"$ac_delim"'/"\\\
19017"/g' >>$CONFIG_STATUS || ac_write_fail=1
19018
19019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19020  for (key in D) D_is_set[key] = 1
19021  FS = ""
19022}
19023/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19024  line = \$ 0
19025  split(line, arg, " ")
19026  if (arg[1] == "#") {
19027    defundef = arg[2]
19028    mac1 = arg[3]
19029  } else {
19030    defundef = substr(arg[1], 2)
19031    mac1 = arg[2]
19032  }
19033  split(mac1, mac2, "(") #)
19034  macro = mac2[1]
19035  prefix = substr(line, 1, index(line, defundef) - 1)
19036  if (D_is_set[macro]) {
19037    # Preserve the white space surrounding the "#".
19038    print prefix "define", macro P[macro] D[macro]
19039    next
19040  } else {
19041    # Replace #undef with comments.  This is necessary, for example,
19042    # in the case of _POSIX_SOURCE, which is predefined and required
19043    # on some systems where configure will not decide to define it.
19044    if (defundef == "undef") {
19045      print "/*", prefix defundef, macro, "*/"
19046      next
19047    }
19048  }
19049}
19050{ print }
19051_ACAWK
19052_ACEOF
19053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19054  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19055fi # test -n "$CONFIG_HEADERS"
19056
19057
19058eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19059shift
19060for ac_tag
19061do
19062  case $ac_tag in
19063  :[FHLC]) ac_mode=$ac_tag; continue;;
19064  esac
19065  case $ac_mode$ac_tag in
19066  :[FHL]*:*);;
19067  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19068  :[FH]-) ac_tag=-:-;;
19069  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19070  esac
19071  ac_save_IFS=$IFS
19072  IFS=:
19073  set x $ac_tag
19074  IFS=$ac_save_IFS
19075  shift
19076  ac_file=$1
19077  shift
19078
19079  case $ac_mode in
19080  :L) ac_source=$1;;
19081  :[FH])
19082    ac_file_inputs=
19083    for ac_f
19084    do
19085      case $ac_f in
19086      -) ac_f="$ac_tmp/stdin";;
19087      *) # Look for the file first in the build tree, then in the source tree
19088	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19089	 # because $ac_f cannot contain `:'.
19090	 test -f "$ac_f" ||
19091	   case $ac_f in
19092	   [\\/$]*) false;;
19093	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19094	   esac ||
19095	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19096      esac
19097      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19098      as_fn_append ac_file_inputs " '$ac_f'"
19099    done
19100
19101    # Let's still pretend it is `configure' which instantiates (i.e., don't
19102    # use $as_me), people would be surprised to read:
19103    #    /* config.h.  Generated by config.status.  */
19104    configure_input='Generated from '`
19105	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19106	`' by configure.'
19107    if test x"$ac_file" != x-; then
19108      configure_input="$ac_file.  $configure_input"
19109      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19110$as_echo "$as_me: creating $ac_file" >&6;}
19111    fi
19112    # Neutralize special characters interpreted by sed in replacement strings.
19113    case $configure_input in #(
19114    *\&* | *\|* | *\\* )
19115       ac_sed_conf_input=`$as_echo "$configure_input" |
19116       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19117    *) ac_sed_conf_input=$configure_input;;
19118    esac
19119
19120    case $ac_tag in
19121    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19122      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19123    esac
19124    ;;
19125  esac
19126
19127  ac_dir=`$as_dirname -- "$ac_file" ||
19128$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19129	 X"$ac_file" : 'X\(//\)[^/]' \| \
19130	 X"$ac_file" : 'X\(//\)$' \| \
19131	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19132$as_echo X"$ac_file" |
19133    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19134	    s//\1/
19135	    q
19136	  }
19137	  /^X\(\/\/\)[^/].*/{
19138	    s//\1/
19139	    q
19140	  }
19141	  /^X\(\/\/\)$/{
19142	    s//\1/
19143	    q
19144	  }
19145	  /^X\(\/\).*/{
19146	    s//\1/
19147	    q
19148	  }
19149	  s/.*/./; q'`
19150  as_dir="$ac_dir"; as_fn_mkdir_p
19151  ac_builddir=.
19152
19153case "$ac_dir" in
19154.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19155*)
19156  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19157  # A ".." for each directory in $ac_dir_suffix.
19158  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19159  case $ac_top_builddir_sub in
19160  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19161  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19162  esac ;;
19163esac
19164ac_abs_top_builddir=$ac_pwd
19165ac_abs_builddir=$ac_pwd$ac_dir_suffix
19166# for backward compatibility:
19167ac_top_builddir=$ac_top_build_prefix
19168
19169case $srcdir in
19170  .)  # We are building in place.
19171    ac_srcdir=.
19172    ac_top_srcdir=$ac_top_builddir_sub
19173    ac_abs_top_srcdir=$ac_pwd ;;
19174  [\\/]* | ?:[\\/]* )  # Absolute name.
19175    ac_srcdir=$srcdir$ac_dir_suffix;
19176    ac_top_srcdir=$srcdir
19177    ac_abs_top_srcdir=$srcdir ;;
19178  *) # Relative name.
19179    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19180    ac_top_srcdir=$ac_top_build_prefix$srcdir
19181    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19182esac
19183ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19184
19185
19186  case $ac_mode in
19187  :F)
19188  #
19189  # CONFIG_FILE
19190  #
19191
19192  case $INSTALL in
19193  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19194  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19195  esac
19196  ac_MKDIR_P=$MKDIR_P
19197  case $MKDIR_P in
19198  [\\/$]* | ?:[\\/]* ) ;;
19199  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19200  esac
19201_ACEOF
19202
19203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19204# If the template does not know about datarootdir, expand it.
19205# FIXME: This hack should be removed a few years after 2.60.
19206ac_datarootdir_hack=; ac_datarootdir_seen=
19207ac_sed_dataroot='
19208/datarootdir/ {
19209  p
19210  q
19211}
19212/@datadir@/p
19213/@docdir@/p
19214/@infodir@/p
19215/@localedir@/p
19216/@mandir@/p'
19217case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19218*datarootdir*) ac_datarootdir_seen=yes;;
19219*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19220  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19221$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19222_ACEOF
19223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19224  ac_datarootdir_hack='
19225  s&@datadir@&$datadir&g
19226  s&@docdir@&$docdir&g
19227  s&@infodir@&$infodir&g
19228  s&@localedir@&$localedir&g
19229  s&@mandir@&$mandir&g
19230  s&\\\${datarootdir}&$datarootdir&g' ;;
19231esac
19232_ACEOF
19233
19234# Neutralize VPATH when `$srcdir' = `.'.
19235# Shell code in configure.ac might set extrasub.
19236# FIXME: do we really want to maintain this feature?
19237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19238ac_sed_extra="$ac_vpsub
19239$extrasub
19240_ACEOF
19241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19242:t
19243/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19244s|@configure_input@|$ac_sed_conf_input|;t t
19245s&@top_builddir@&$ac_top_builddir_sub&;t t
19246s&@top_build_prefix@&$ac_top_build_prefix&;t t
19247s&@srcdir@&$ac_srcdir&;t t
19248s&@abs_srcdir@&$ac_abs_srcdir&;t t
19249s&@top_srcdir@&$ac_top_srcdir&;t t
19250s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19251s&@builddir@&$ac_builddir&;t t
19252s&@abs_builddir@&$ac_abs_builddir&;t t
19253s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19254s&@INSTALL@&$ac_INSTALL&;t t
19255s&@MKDIR_P@&$ac_MKDIR_P&;t t
19256$ac_datarootdir_hack
19257"
19258eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19259  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19260
19261test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19262  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19263  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19264      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19265  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19266which seems to be undefined.  Please make sure it is defined" >&5
19267$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19268which seems to be undefined.  Please make sure it is defined" >&2;}
19269
19270  rm -f "$ac_tmp/stdin"
19271  case $ac_file in
19272  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19273  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19274  esac \
19275  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19276 ;;
19277  :H)
19278  #
19279  # CONFIG_HEADER
19280  #
19281  if test x"$ac_file" != x-; then
19282    {
19283      $as_echo "/* $configure_input  */" \
19284      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19285    } >"$ac_tmp/config.h" \
19286      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19287    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19288      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19289$as_echo "$as_me: $ac_file is unchanged" >&6;}
19290    else
19291      rm -f "$ac_file"
19292      mv "$ac_tmp/config.h" "$ac_file" \
19293	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19294    fi
19295  else
19296    $as_echo "/* $configure_input  */" \
19297      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19298      || as_fn_error $? "could not create -" "$LINENO" 5
19299  fi
19300# Compute "$ac_file"'s index in $config_headers.
19301_am_arg="$ac_file"
19302_am_stamp_count=1
19303for _am_header in $config_headers :; do
19304  case $_am_header in
19305    $_am_arg | $_am_arg:* )
19306      break ;;
19307    * )
19308      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19309  esac
19310done
19311echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19312$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19313	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19314	 X"$_am_arg" : 'X\(//\)$' \| \
19315	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19316$as_echo X"$_am_arg" |
19317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19318	    s//\1/
19319	    q
19320	  }
19321	  /^X\(\/\/\)[^/].*/{
19322	    s//\1/
19323	    q
19324	  }
19325	  /^X\(\/\/\)$/{
19326	    s//\1/
19327	    q
19328	  }
19329	  /^X\(\/\).*/{
19330	    s//\1/
19331	    q
19332	  }
19333	  s/.*/./; q'`/stamp-h$_am_stamp_count
19334 ;;
19335
19336  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19337$as_echo "$as_me: executing $ac_file commands" >&6;}
19338 ;;
19339  esac
19340
19341
19342  case $ac_file$ac_mode in
19343    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19344  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19345  # are listed without --file.  Let's play safe and only enable the eval
19346  # if we detect the quoting.
19347  case $CONFIG_FILES in
19348  *\'*) eval set x "$CONFIG_FILES" ;;
19349  *)   set x $CONFIG_FILES ;;
19350  esac
19351  shift
19352  for mf
19353  do
19354    # Strip MF so we end up with the name of the file.
19355    mf=`echo "$mf" | sed -e 's/:.*$//'`
19356    # Check whether this is an Automake generated Makefile or not.
19357    # We used to match only the files named `Makefile.in', but
19358    # some people rename them; so instead we look at the file content.
19359    # Grep'ing the first line is not enough: some people post-process
19360    # each Makefile.in and add a new line on top of each file to say so.
19361    # Grep'ing the whole file is not good either: AIX grep has a line
19362    # limit of 2048, but all sed's we know have understand at least 4000.
19363    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19364      dirpart=`$as_dirname -- "$mf" ||
19365$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19366	 X"$mf" : 'X\(//\)[^/]' \| \
19367	 X"$mf" : 'X\(//\)$' \| \
19368	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19369$as_echo X"$mf" |
19370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19371	    s//\1/
19372	    q
19373	  }
19374	  /^X\(\/\/\)[^/].*/{
19375	    s//\1/
19376	    q
19377	  }
19378	  /^X\(\/\/\)$/{
19379	    s//\1/
19380	    q
19381	  }
19382	  /^X\(\/\).*/{
19383	    s//\1/
19384	    q
19385	  }
19386	  s/.*/./; q'`
19387    else
19388      continue
19389    fi
19390    # Extract the definition of DEPDIR, am__include, and am__quote
19391    # from the Makefile without running `make'.
19392    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19393    test -z "$DEPDIR" && continue
19394    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19395    test -z "am__include" && continue
19396    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19397    # When using ansi2knr, U may be empty or an underscore; expand it
19398    U=`sed -n 's/^U = //p' < "$mf"`
19399    # Find all dependency output files, they are included files with
19400    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19401    # simplest approach to changing $(DEPDIR) to its actual value in the
19402    # expansion.
19403    for file in `sed -n "
19404      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19405	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19406      # Make sure the directory exists.
19407      test -f "$dirpart/$file" && continue
19408      fdir=`$as_dirname -- "$file" ||
19409$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19410	 X"$file" : 'X\(//\)[^/]' \| \
19411	 X"$file" : 'X\(//\)$' \| \
19412	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19413$as_echo X"$file" |
19414    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19415	    s//\1/
19416	    q
19417	  }
19418	  /^X\(\/\/\)[^/].*/{
19419	    s//\1/
19420	    q
19421	  }
19422	  /^X\(\/\/\)$/{
19423	    s//\1/
19424	    q
19425	  }
19426	  /^X\(\/\).*/{
19427	    s//\1/
19428	    q
19429	  }
19430	  s/.*/./; q'`
19431      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19432      # echo "creating $dirpart/$file"
19433      echo '# dummy' > "$dirpart/$file"
19434    done
19435  done
19436}
19437 ;;
19438    "libtool":C)
19439
19440    # See if we are running on zsh, and set the options which allow our
19441    # commands through without removal of \ escapes.
19442    if test -n "${ZSH_VERSION+set}" ; then
19443      setopt NO_GLOB_SUBST
19444    fi
19445
19446    cfgfile="${ofile}T"
19447    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19448    $RM "$cfgfile"
19449
19450    cat <<_LT_EOF >> "$cfgfile"
19451#! $SHELL
19452
19453# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19454# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19455# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19456# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19457#
19458#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19459#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19460#                 Foundation, Inc.
19461#   Written by Gordon Matzigkeit, 1996
19462#
19463#   This file is part of GNU Libtool.
19464#
19465# GNU Libtool is free software; you can redistribute it and/or
19466# modify it under the terms of the GNU General Public License as
19467# published by the Free Software Foundation; either version 2 of
19468# the License, or (at your option) any later version.
19469#
19470# As a special exception to the GNU General Public License,
19471# if you distribute this file as part of a program or library that
19472# is built using GNU Libtool, you may include this file under the
19473# same distribution terms that you use for the rest of that program.
19474#
19475# GNU Libtool is distributed in the hope that it will be useful,
19476# but WITHOUT ANY WARRANTY; without even the implied warranty of
19477# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19478# GNU General Public License for more details.
19479#
19480# You should have received a copy of the GNU General Public License
19481# along with GNU Libtool; see the file COPYING.  If not, a copy
19482# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19483# obtained by writing to the Free Software Foundation, Inc.,
19484# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19485
19486
19487# The names of the tagged configurations supported by this script.
19488available_tags=""
19489
19490# ### BEGIN LIBTOOL CONFIG
19491
19492# Which release of libtool.m4 was used?
19493macro_version=$macro_version
19494macro_revision=$macro_revision
19495
19496# Whether or not to build shared libraries.
19497build_libtool_libs=$enable_shared
19498
19499# Whether or not to build static libraries.
19500build_old_libs=$enable_static
19501
19502# What type of objects to build.
19503pic_mode=$pic_mode
19504
19505# Whether or not to optimize for fast installation.
19506fast_install=$enable_fast_install
19507
19508# Shell to use when invoking shell scripts.
19509SHELL=$lt_SHELL
19510
19511# An echo program that protects backslashes.
19512ECHO=$lt_ECHO
19513
19514# The PATH separator for the build system.
19515PATH_SEPARATOR=$lt_PATH_SEPARATOR
19516
19517# The host system.
19518host_alias=$host_alias
19519host=$host
19520host_os=$host_os
19521
19522# The build system.
19523build_alias=$build_alias
19524build=$build
19525build_os=$build_os
19526
19527# A sed program that does not truncate output.
19528SED=$lt_SED
19529
19530# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19531Xsed="\$SED -e 1s/^X//"
19532
19533# A grep program that handles long lines.
19534GREP=$lt_GREP
19535
19536# An ERE matcher.
19537EGREP=$lt_EGREP
19538
19539# A literal string matcher.
19540FGREP=$lt_FGREP
19541
19542# A BSD- or MS-compatible name lister.
19543NM=$lt_NM
19544
19545# Whether we need soft or hard links.
19546LN_S=$lt_LN_S
19547
19548# What is the maximum length of a command?
19549max_cmd_len=$max_cmd_len
19550
19551# Object file suffix (normally "o").
19552objext=$ac_objext
19553
19554# Executable file suffix (normally "").
19555exeext=$exeext
19556
19557# whether the shell understands "unset".
19558lt_unset=$lt_unset
19559
19560# turn spaces into newlines.
19561SP2NL=$lt_lt_SP2NL
19562
19563# turn newlines into spaces.
19564NL2SP=$lt_lt_NL2SP
19565
19566# convert \$build file names to \$host format.
19567to_host_file_cmd=$lt_cv_to_host_file_cmd
19568
19569# convert \$build files to toolchain format.
19570to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19571
19572# An object symbol dumper.
19573OBJDUMP=$lt_OBJDUMP
19574
19575# Method to check whether dependent libraries are shared objects.
19576deplibs_check_method=$lt_deplibs_check_method
19577
19578# Command to use when deplibs_check_method = "file_magic".
19579file_magic_cmd=$lt_file_magic_cmd
19580
19581# How to find potential files when deplibs_check_method = "file_magic".
19582file_magic_glob=$lt_file_magic_glob
19583
19584# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19585want_nocaseglob=$lt_want_nocaseglob
19586
19587# DLL creation program.
19588DLLTOOL=$lt_DLLTOOL
19589
19590# Command to associate shared and link libraries.
19591sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19592
19593# The archiver.
19594AR=$lt_AR
19595
19596# Flags to create an archive.
19597AR_FLAGS=$lt_AR_FLAGS
19598
19599# How to feed a file listing to the archiver.
19600archiver_list_spec=$lt_archiver_list_spec
19601
19602# A symbol stripping program.
19603STRIP=$lt_STRIP
19604
19605# Commands used to install an old-style archive.
19606RANLIB=$lt_RANLIB
19607old_postinstall_cmds=$lt_old_postinstall_cmds
19608old_postuninstall_cmds=$lt_old_postuninstall_cmds
19609
19610# Whether to use a lock for old archive extraction.
19611lock_old_archive_extraction=$lock_old_archive_extraction
19612
19613# A C compiler.
19614LTCC=$lt_CC
19615
19616# LTCC compiler flags.
19617LTCFLAGS=$lt_CFLAGS
19618
19619# Take the output of nm and produce a listing of raw symbols and C names.
19620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19621
19622# Transform the output of nm in a proper C declaration.
19623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19624
19625# Transform the output of nm in a C name address pair.
19626global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19627
19628# Transform the output of nm in a C name address pair when lib prefix is needed.
19629global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19630
19631# Specify filename containing input files for \$NM.
19632nm_file_list_spec=$lt_nm_file_list_spec
19633
19634# The root where to search for dependent libraries,and in which our libraries should be installed.
19635lt_sysroot=$lt_sysroot
19636
19637# The name of the directory that contains temporary libtool files.
19638objdir=$objdir
19639
19640# Used to examine libraries when file_magic_cmd begins with "file".
19641MAGIC_CMD=$MAGIC_CMD
19642
19643# Must we lock files when doing compilation?
19644need_locks=$lt_need_locks
19645
19646# Manifest tool.
19647MANIFEST_TOOL=$lt_MANIFEST_TOOL
19648
19649# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19650DSYMUTIL=$lt_DSYMUTIL
19651
19652# Tool to change global to local symbols on Mac OS X.
19653NMEDIT=$lt_NMEDIT
19654
19655# Tool to manipulate fat objects and archives on Mac OS X.
19656LIPO=$lt_LIPO
19657
19658# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19659OTOOL=$lt_OTOOL
19660
19661# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19662OTOOL64=$lt_OTOOL64
19663
19664# Old archive suffix (normally "a").
19665libext=$libext
19666
19667# Shared library suffix (normally ".so").
19668shrext_cmds=$lt_shrext_cmds
19669
19670# The commands to extract the exported symbol list from a shared archive.
19671extract_expsyms_cmds=$lt_extract_expsyms_cmds
19672
19673# Variables whose values should be saved in libtool wrapper scripts and
19674# restored at link time.
19675variables_saved_for_relink=$lt_variables_saved_for_relink
19676
19677# Do we need the "lib" prefix for modules?
19678need_lib_prefix=$need_lib_prefix
19679
19680# Do we need a version for libraries?
19681need_version=$need_version
19682
19683# Library versioning type.
19684version_type=$version_type
19685
19686# Shared library runtime path variable.
19687runpath_var=$runpath_var
19688
19689# Shared library path variable.
19690shlibpath_var=$shlibpath_var
19691
19692# Is shlibpath searched before the hard-coded library search path?
19693shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19694
19695# Format of library name prefix.
19696libname_spec=$lt_libname_spec
19697
19698# List of archive names.  First name is the real one, the rest are links.
19699# The last name is the one that the linker finds with -lNAME
19700library_names_spec=$lt_library_names_spec
19701
19702# The coded name of the library, if different from the real name.
19703soname_spec=$lt_soname_spec
19704
19705# Permission mode override for installation of shared libraries.
19706install_override_mode=$lt_install_override_mode
19707
19708# Command to use after installation of a shared archive.
19709postinstall_cmds=$lt_postinstall_cmds
19710
19711# Command to use after uninstallation of a shared archive.
19712postuninstall_cmds=$lt_postuninstall_cmds
19713
19714# Commands used to finish a libtool library installation in a directory.
19715finish_cmds=$lt_finish_cmds
19716
19717# As "finish_cmds", except a single script fragment to be evaled but
19718# not shown.
19719finish_eval=$lt_finish_eval
19720
19721# Whether we should hardcode library paths into libraries.
19722hardcode_into_libs=$hardcode_into_libs
19723
19724# Compile-time system search path for libraries.
19725sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19726
19727# Run-time system search path for libraries.
19728sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19729
19730# Whether dlopen is supported.
19731dlopen_support=$enable_dlopen
19732
19733# Whether dlopen of programs is supported.
19734dlopen_self=$enable_dlopen_self
19735
19736# Whether dlopen of statically linked programs is supported.
19737dlopen_self_static=$enable_dlopen_self_static
19738
19739# Commands to strip libraries.
19740old_striplib=$lt_old_striplib
19741striplib=$lt_striplib
19742
19743
19744# The linker used to build libraries.
19745LD=$lt_LD
19746
19747# How to create reloadable object files.
19748reload_flag=$lt_reload_flag
19749reload_cmds=$lt_reload_cmds
19750
19751# Commands used to build an old-style archive.
19752old_archive_cmds=$lt_old_archive_cmds
19753
19754# A language specific compiler.
19755CC=$lt_compiler
19756
19757# Is the compiler the GNU compiler?
19758with_gcc=$GCC
19759
19760# Compiler flag to turn off builtin functions.
19761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19762
19763# Additional compiler flags for building library objects.
19764pic_flag=$lt_lt_prog_compiler_pic
19765
19766# How to pass a linker flag through the compiler.
19767wl=$lt_lt_prog_compiler_wl
19768
19769# Compiler flag to prevent dynamic linking.
19770link_static_flag=$lt_lt_prog_compiler_static
19771
19772# Does compiler simultaneously support -c and -o options?
19773compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19774
19775# Whether or not to add -lc for building shared libraries.
19776build_libtool_need_lc=$archive_cmds_need_lc
19777
19778# Whether or not to disallow shared libs when runtime libs are static.
19779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19780
19781# Compiler flag to allow reflexive dlopens.
19782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19783
19784# Compiler flag to generate shared objects directly from archives.
19785whole_archive_flag_spec=$lt_whole_archive_flag_spec
19786
19787# Whether the compiler copes with passing no objects directly.
19788compiler_needs_object=$lt_compiler_needs_object
19789
19790# Create an old-style archive from a shared archive.
19791old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19792
19793# Create a temporary old-style archive to link instead of a shared archive.
19794old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19795
19796# Commands used to build a shared archive.
19797archive_cmds=$lt_archive_cmds
19798archive_expsym_cmds=$lt_archive_expsym_cmds
19799
19800# Commands used to build a loadable module if different from building
19801# a shared archive.
19802module_cmds=$lt_module_cmds
19803module_expsym_cmds=$lt_module_expsym_cmds
19804
19805# Whether we are building with GNU ld or not.
19806with_gnu_ld=$lt_with_gnu_ld
19807
19808# Flag that allows shared libraries with undefined symbols to be built.
19809allow_undefined_flag=$lt_allow_undefined_flag
19810
19811# Flag that enforces no undefined symbols.
19812no_undefined_flag=$lt_no_undefined_flag
19813
19814# Flag to hardcode \$libdir into a binary during linking.
19815# This must work even if \$libdir does not exist
19816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19817
19818# Whether we need a single "-rpath" flag with a separated argument.
19819hardcode_libdir_separator=$lt_hardcode_libdir_separator
19820
19821# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19822# DIR into the resulting binary.
19823hardcode_direct=$hardcode_direct
19824
19825# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19826# DIR into the resulting binary and the resulting library dependency is
19827# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19828# library is relocated.
19829hardcode_direct_absolute=$hardcode_direct_absolute
19830
19831# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19832# into the resulting binary.
19833hardcode_minus_L=$hardcode_minus_L
19834
19835# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19836# into the resulting binary.
19837hardcode_shlibpath_var=$hardcode_shlibpath_var
19838
19839# Set to "yes" if building a shared library automatically hardcodes DIR
19840# into the library and all subsequent libraries and executables linked
19841# against it.
19842hardcode_automatic=$hardcode_automatic
19843
19844# Set to yes if linker adds runtime paths of dependent libraries
19845# to runtime path list.
19846inherit_rpath=$inherit_rpath
19847
19848# Whether libtool must link a program against all its dependency libraries.
19849link_all_deplibs=$link_all_deplibs
19850
19851# Set to "yes" if exported symbols are required.
19852always_export_symbols=$always_export_symbols
19853
19854# The commands to list exported symbols.
19855export_symbols_cmds=$lt_export_symbols_cmds
19856
19857# Symbols that should not be listed in the preloaded symbols.
19858exclude_expsyms=$lt_exclude_expsyms
19859
19860# Symbols that must always be exported.
19861include_expsyms=$lt_include_expsyms
19862
19863# Commands necessary for linking programs (against libraries) with templates.
19864prelink_cmds=$lt_prelink_cmds
19865
19866# Commands necessary for finishing linking programs.
19867postlink_cmds=$lt_postlink_cmds
19868
19869# Specify filename containing input files.
19870file_list_spec=$lt_file_list_spec
19871
19872# How to hardcode a shared library path into an executable.
19873hardcode_action=$hardcode_action
19874
19875# ### END LIBTOOL CONFIG
19876
19877_LT_EOF
19878
19879  case $host_os in
19880  aix3*)
19881    cat <<\_LT_EOF >> "$cfgfile"
19882# AIX sometimes has problems with the GCC collect2 program.  For some
19883# reason, if we set the COLLECT_NAMES environment variable, the problems
19884# vanish in a puff of smoke.
19885if test "X${COLLECT_NAMES+set}" != Xset; then
19886  COLLECT_NAMES=
19887  export COLLECT_NAMES
19888fi
19889_LT_EOF
19890    ;;
19891  esac
19892
19893
19894ltmain="$ac_aux_dir/ltmain.sh"
19895
19896
19897  # We use sed instead of cat because bash on DJGPP gets confused if
19898  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19899  # text mode, it properly converts lines to CR/LF.  This bash problem
19900  # is reportedly fixed, but why not run on old versions too?
19901  sed '$q' "$ltmain" >> "$cfgfile" \
19902     || (rm -f "$cfgfile"; exit 1)
19903
19904  if test x"$xsi_shell" = xyes; then
19905  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19906func_dirname ()\
19907{\
19908\    case ${1} in\
19909\      */*) func_dirname_result="${1%/*}${2}" ;;\
19910\      *  ) func_dirname_result="${3}" ;;\
19911\    esac\
19912} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19913  && mv -f "$cfgfile.tmp" "$cfgfile" \
19914    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19915test 0 -eq $? || _lt_function_replace_fail=:
19916
19917
19918  sed -e '/^func_basename ()$/,/^} # func_basename /c\
19919func_basename ()\
19920{\
19921\    func_basename_result="${1##*/}"\
19922} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19923  && mv -f "$cfgfile.tmp" "$cfgfile" \
19924    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19925test 0 -eq $? || _lt_function_replace_fail=:
19926
19927
19928  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19929func_dirname_and_basename ()\
19930{\
19931\    case ${1} in\
19932\      */*) func_dirname_result="${1%/*}${2}" ;;\
19933\      *  ) func_dirname_result="${3}" ;;\
19934\    esac\
19935\    func_basename_result="${1##*/}"\
19936} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19937  && mv -f "$cfgfile.tmp" "$cfgfile" \
19938    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19939test 0 -eq $? || _lt_function_replace_fail=:
19940
19941
19942  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19943func_stripname ()\
19944{\
19945\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19946\    # positional parameters, so assign one to ordinary parameter first.\
19947\    func_stripname_result=${3}\
19948\    func_stripname_result=${func_stripname_result#"${1}"}\
19949\    func_stripname_result=${func_stripname_result%"${2}"}\
19950} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19951  && mv -f "$cfgfile.tmp" "$cfgfile" \
19952    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19953test 0 -eq $? || _lt_function_replace_fail=:
19954
19955
19956  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19957func_split_long_opt ()\
19958{\
19959\    func_split_long_opt_name=${1%%=*}\
19960\    func_split_long_opt_arg=${1#*=}\
19961} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19962  && mv -f "$cfgfile.tmp" "$cfgfile" \
19963    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19964test 0 -eq $? || _lt_function_replace_fail=:
19965
19966
19967  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19968func_split_short_opt ()\
19969{\
19970\    func_split_short_opt_arg=${1#??}\
19971\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19972} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19973  && mv -f "$cfgfile.tmp" "$cfgfile" \
19974    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19975test 0 -eq $? || _lt_function_replace_fail=:
19976
19977
19978  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19979func_lo2o ()\
19980{\
19981\    case ${1} in\
19982\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19983\      *)    func_lo2o_result=${1} ;;\
19984\    esac\
19985} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19986  && mv -f "$cfgfile.tmp" "$cfgfile" \
19987    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19988test 0 -eq $? || _lt_function_replace_fail=:
19989
19990
19991  sed -e '/^func_xform ()$/,/^} # func_xform /c\
19992func_xform ()\
19993{\
19994    func_xform_result=${1%.*}.lo\
19995} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19996  && mv -f "$cfgfile.tmp" "$cfgfile" \
19997    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19998test 0 -eq $? || _lt_function_replace_fail=:
19999
20000
20001  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20002func_arith ()\
20003{\
20004    func_arith_result=$(( $* ))\
20005} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20006  && mv -f "$cfgfile.tmp" "$cfgfile" \
20007    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20008test 0 -eq $? || _lt_function_replace_fail=:
20009
20010
20011  sed -e '/^func_len ()$/,/^} # func_len /c\
20012func_len ()\
20013{\
20014    func_len_result=${#1}\
20015} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20016  && mv -f "$cfgfile.tmp" "$cfgfile" \
20017    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20018test 0 -eq $? || _lt_function_replace_fail=:
20019
20020fi
20021
20022if test x"$lt_shell_append" = xyes; then
20023  sed -e '/^func_append ()$/,/^} # func_append /c\
20024func_append ()\
20025{\
20026    eval "${1}+=\\${2}"\
20027} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20028  && mv -f "$cfgfile.tmp" "$cfgfile" \
20029    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20030test 0 -eq $? || _lt_function_replace_fail=:
20031
20032
20033  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20034func_append_quoted ()\
20035{\
20036\    func_quote_for_eval "${2}"\
20037\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20038} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20039  && mv -f "$cfgfile.tmp" "$cfgfile" \
20040    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20041test 0 -eq $? || _lt_function_replace_fail=:
20042
20043
20044  # Save a `func_append' function call where possible by direct use of '+='
20045  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20046    && mv -f "$cfgfile.tmp" "$cfgfile" \
20047      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20048  test 0 -eq $? || _lt_function_replace_fail=:
20049else
20050  # Save a `func_append' function call even when '+=' is not available
20051  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20052    && mv -f "$cfgfile.tmp" "$cfgfile" \
20053      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20054  test 0 -eq $? || _lt_function_replace_fail=:
20055fi
20056
20057if test x"$_lt_function_replace_fail" = x":"; then
20058  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20059$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20060fi
20061
20062
20063   mv -f "$cfgfile" "$ofile" ||
20064    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20065  chmod +x "$ofile"
20066
20067 ;;
20068
20069  esac
20070done # for ac_tag
20071
20072
20073as_fn_exit 0
20074_ACEOF
20075ac_clean_files=$ac_clean_files_save
20076
20077test $ac_write_fail = 0 ||
20078  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20079
20080
20081# configure is writing to config.log, and then calls config.status.
20082# config.status does its own redirection, appending to config.log.
20083# Unfortunately, on DOS this fails, as config.log is still kept open
20084# by configure, so config.status won't be able to write to it; its
20085# output is simply discarded.  So we exec the FD to /dev/null,
20086# effectively closing config.log, so it can be properly (re)opened and
20087# appended to by config.status.  When coming back to configure, we
20088# need to make the FD available again.
20089if test "$no_create" != yes; then
20090  ac_cs_success=:
20091  ac_config_status_args=
20092  test "$silent" = yes &&
20093    ac_config_status_args="$ac_config_status_args --quiet"
20094  exec 5>/dev/null
20095  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20096  exec 5>>config.log
20097  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20098  # would make configure fail if this is the last instruction.
20099  $ac_cs_success || as_fn_exit 1
20100fi
20101if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20102  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20103$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20104fi
20105
20106