configure revision 8d0bc965
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXrandr 1.5.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='libXrandr'
624PACKAGE_TARNAME='libXrandr'
625PACKAGE_VERSION='1.5.3'
626PACKAGE_STRING='libXrandr 1.5.3'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667RANDR_LIBS
668RANDR_CFLAGS
669RANDR_VERSION
670XTMALLOC_ZERO_CFLAGS
671XMALLOC_ZERO_CFLAGS
672MALLOC_ZERO_CFLAGS
673MAN_SUBSTS
674XORG_MAN_PAGE
675ADMIN_MAN_DIR
676DRIVER_MAN_DIR
677MISC_MAN_DIR
678FILE_MAN_DIR
679LIB_MAN_DIR
680APP_MAN_DIR
681ADMIN_MAN_SUFFIX
682DRIVER_MAN_SUFFIX
683MISC_MAN_SUFFIX
684FILE_MAN_SUFFIX
685LIB_MAN_SUFFIX
686APP_MAN_SUFFIX
687INSTALL_CMD
688PKG_CONFIG_LIBDIR
689PKG_CONFIG_PATH
690PKG_CONFIG
691CHANGELOG_CMD
692STRICT_CFLAGS
693CWARNFLAGS
694BASE_CFLAGS
695LT_SYS_LIBRARY_PATH
696OTOOL64
697OTOOL
698LIPO
699NMEDIT
700DSYMUTIL
701MANIFEST_TOOL
702RANLIB
703ac_ct_AR
704AR
705DLLTOOL
706OBJDUMP
707FILECMD
708LN_S
709NM
710ac_ct_DUMPBIN
711DUMPBIN
712LD
713FGREP
714EGREP
715GREP
716SED
717am__fastdepCC_FALSE
718am__fastdepCC_TRUE
719CCDEPMODE
720am__nodep
721AMDEPBACKSLASH
722AMDEP_FALSE
723AMDEP_TRUE
724am__include
725DEPDIR
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733host_os
734host_vendor
735host_cpu
736host
737build_os
738build_vendor
739build_cpu
740build
741LIBTOOL
742AM_BACKSLASH
743AM_DEFAULT_VERBOSITY
744AM_DEFAULT_V
745AM_V
746CSCOPE
747ETAGS
748CTAGS
749am__untar
750am__tar
751AMTAR
752am__leading_dot
753SET_MAKE
754AWK
755mkdir_p
756MKDIR_P
757INSTALL_STRIP_PROGRAM
758STRIP
759install_sh
760MAKEINFO
761AUTOHEADER
762AUTOMAKE
763AUTOCONF
764ACLOCAL
765VERSION
766PACKAGE
767CYGPATH_W
768am__isrc
769INSTALL_DATA
770INSTALL_SCRIPT
771INSTALL_PROGRAM
772target_alias
773host_alias
774build_alias
775LIBS
776ECHO_T
777ECHO_N
778ECHO_C
779DEFS
780mandir
781localedir
782libdir
783psdir
784pdfdir
785dvidir
786htmldir
787infodir
788docdir
789oldincludedir
790includedir
791runstatedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL
811am__quote'
812ac_subst_files=''
813ac_user_opts='
814enable_option_checking
815enable_silent_rules
816enable_shared
817enable_static
818with_pic
819enable_fast_install
820with_aix_soname
821enable_dependency_tracking
822with_gnu_ld
823with_sysroot
824enable_libtool_lock
825enable_selective_werror
826enable_strict_compilation
827enable_malloc0returnsnull
828'
829      ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837LT_SYS_LIBRARY_PATH
838PKG_CONFIG
839PKG_CONFIG_PATH
840PKG_CONFIG_LIBDIR
841RANDR_CFLAGS
842RANDR_LIBS'
843
844
845# Initialize some variables set by options.
846ac_init_help=
847ac_init_version=false
848ac_unrecognized_opts=
849ac_unrecognized_sep=
850# The variables have the same names as the options, with
851# dashes changed to underlines.
852cache_file=/dev/null
853exec_prefix=NONE
854no_create=
855no_recursion=
856prefix=NONE
857program_prefix=NONE
858program_suffix=NONE
859program_transform_name=s,x,x,
860silent=
861site=
862srcdir=
863verbose=
864x_includes=NONE
865x_libraries=NONE
866
867# Installation directory options.
868# These are left unexpanded so users can "make install exec_prefix=/foo"
869# and all the variables that are supposed to be based on exec_prefix
870# by default will actually change.
871# Use braces instead of parens because sh, perl, etc. also accept them.
872# (The list follows the same order as the GNU Coding Standards.)
873bindir='${exec_prefix}/bin'
874sbindir='${exec_prefix}/sbin'
875libexecdir='${exec_prefix}/libexec'
876datarootdir='${prefix}/share'
877datadir='${datarootdir}'
878sysconfdir='${prefix}/etc'
879sharedstatedir='${prefix}/com'
880localstatedir='${prefix}/var'
881runstatedir='${localstatedir}/run'
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
884docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
893
894ac_prev=
895ac_dashdash=
896for ac_option
897do
898  # If the previous option needs an argument, assign it.
899  if test -n "$ac_prev"; then
900    eval $ac_prev=\$ac_option
901    ac_prev=
902    continue
903  fi
904
905  case $ac_option in
906  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907  *=)   ac_optarg= ;;
908  *)    ac_optarg=yes ;;
909  esac
910
911  case $ac_dashdash$ac_option in
912  --)
913    ac_dashdash=yes ;;
914
915  -bindir | --bindir | --bindi | --bind | --bin | --bi)
916    ac_prev=bindir ;;
917  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918    bindir=$ac_optarg ;;
919
920  -build | --build | --buil | --bui | --bu)
921    ac_prev=build_alias ;;
922  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923    build_alias=$ac_optarg ;;
924
925  -cache-file | --cache-file | --cache-fil | --cache-fi \
926  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927    ac_prev=cache_file ;;
928  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930    cache_file=$ac_optarg ;;
931
932  --config-cache | -C)
933    cache_file=config.cache ;;
934
935  -datadir | --datadir | --datadi | --datad)
936    ac_prev=datadir ;;
937  -datadir=* | --datadir=* | --datadi=* | --datad=*)
938    datadir=$ac_optarg ;;
939
940  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941  | --dataroo | --dataro | --datar)
942    ac_prev=datarootdir ;;
943  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945    datarootdir=$ac_optarg ;;
946
947  -disable-* | --disable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: \`$ac_useropt'"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=no ;;
962
963  -docdir | --docdir | --docdi | --doc | --do)
964    ac_prev=docdir ;;
965  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966    docdir=$ac_optarg ;;
967
968  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969    ac_prev=dvidir ;;
970  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971    dvidir=$ac_optarg ;;
972
973  -enable-* | --enable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: \`$ac_useropt'"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=\$ac_optarg ;;
988
989  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991  | --exec | --exe | --ex)
992    ac_prev=exec_prefix ;;
993  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995  | --exec=* | --exe=* | --ex=*)
996    exec_prefix=$ac_optarg ;;
997
998  -gas | --gas | --ga | --g)
999    # Obsolete; use --with-gas.
1000    with_gas=yes ;;
1001
1002  -help | --help | --hel | --he | -h)
1003    ac_init_help=long ;;
1004  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005    ac_init_help=recursive ;;
1006  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007    ac_init_help=short ;;
1008
1009  -host | --host | --hos | --ho)
1010    ac_prev=host_alias ;;
1011  -host=* | --host=* | --hos=* | --ho=*)
1012    host_alias=$ac_optarg ;;
1013
1014  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015    ac_prev=htmldir ;;
1016  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017  | --ht=*)
1018    htmldir=$ac_optarg ;;
1019
1020  -includedir | --includedir | --includedi | --included | --include \
1021  | --includ | --inclu | --incl | --inc)
1022    ac_prev=includedir ;;
1023  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024  | --includ=* | --inclu=* | --incl=* | --inc=*)
1025    includedir=$ac_optarg ;;
1026
1027  -infodir | --infodir | --infodi | --infod | --info | --inf)
1028    ac_prev=infodir ;;
1029  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030    infodir=$ac_optarg ;;
1031
1032  -libdir | --libdir | --libdi | --libd)
1033    ac_prev=libdir ;;
1034  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035    libdir=$ac_optarg ;;
1036
1037  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038  | --libexe | --libex | --libe)
1039    ac_prev=libexecdir ;;
1040  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041  | --libexe=* | --libex=* | --libe=*)
1042    libexecdir=$ac_optarg ;;
1043
1044  -localedir | --localedir | --localedi | --localed | --locale)
1045    ac_prev=localedir ;;
1046  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047    localedir=$ac_optarg ;;
1048
1049  -localstatedir | --localstatedir | --localstatedi | --localstated \
1050  | --localstate | --localstat | --localsta | --localst | --locals)
1051    ac_prev=localstatedir ;;
1052  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054    localstatedir=$ac_optarg ;;
1055
1056  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057    ac_prev=mandir ;;
1058  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059    mandir=$ac_optarg ;;
1060
1061  -nfp | --nfp | --nf)
1062    # Obsolete; use --without-fp.
1063    with_fp=no ;;
1064
1065  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066  | --no-cr | --no-c | -n)
1067    no_create=yes ;;
1068
1069  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071    no_recursion=yes ;;
1072
1073  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075  | --oldin | --oldi | --old | --ol | --o)
1076    ac_prev=oldincludedir ;;
1077  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080    oldincludedir=$ac_optarg ;;
1081
1082  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083    ac_prev=prefix ;;
1084  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085    prefix=$ac_optarg ;;
1086
1087  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088  | --program-pre | --program-pr | --program-p)
1089    ac_prev=program_prefix ;;
1090  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092    program_prefix=$ac_optarg ;;
1093
1094  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095  | --program-suf | --program-su | --program-s)
1096    ac_prev=program_suffix ;;
1097  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099    program_suffix=$ac_optarg ;;
1100
1101  -program-transform-name | --program-transform-name \
1102  | --program-transform-nam | --program-transform-na \
1103  | --program-transform-n | --program-transform- \
1104  | --program-transform | --program-transfor \
1105  | --program-transfo | --program-transf \
1106  | --program-trans | --program-tran \
1107  | --progr-tra | --program-tr | --program-t)
1108    ac_prev=program_transform_name ;;
1109  -program-transform-name=* | --program-transform-name=* \
1110  | --program-transform-nam=* | --program-transform-na=* \
1111  | --program-transform-n=* | --program-transform-=* \
1112  | --program-transform=* | --program-transfor=* \
1113  | --program-transfo=* | --program-transf=* \
1114  | --program-trans=* | --program-tran=* \
1115  | --progr-tra=* | --program-tr=* | --program-t=*)
1116    program_transform_name=$ac_optarg ;;
1117
1118  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119    ac_prev=pdfdir ;;
1120  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121    pdfdir=$ac_optarg ;;
1122
1123  -psdir | --psdir | --psdi | --psd | --ps)
1124    ac_prev=psdir ;;
1125  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126    psdir=$ac_optarg ;;
1127
1128  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129  | -silent | --silent | --silen | --sile | --sil)
1130    silent=yes ;;
1131
1132  -runstatedir | --runstatedir | --runstatedi | --runstated \
1133  | --runstate | --runstat | --runsta | --runst | --runs \
1134  | --run | --ru | --r)
1135    ac_prev=runstatedir ;;
1136  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1137  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1138  | --run=* | --ru=* | --r=*)
1139    runstatedir=$ac_optarg ;;
1140
1141  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142    ac_prev=sbindir ;;
1143  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144  | --sbi=* | --sb=*)
1145    sbindir=$ac_optarg ;;
1146
1147  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149  | --sharedst | --shareds | --shared | --share | --shar \
1150  | --sha | --sh)
1151    ac_prev=sharedstatedir ;;
1152  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155  | --sha=* | --sh=*)
1156    sharedstatedir=$ac_optarg ;;
1157
1158  -site | --site | --sit)
1159    ac_prev=site ;;
1160  -site=* | --site=* | --sit=*)
1161    site=$ac_optarg ;;
1162
1163  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164    ac_prev=srcdir ;;
1165  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166    srcdir=$ac_optarg ;;
1167
1168  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169  | --syscon | --sysco | --sysc | --sys | --sy)
1170    ac_prev=sysconfdir ;;
1171  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173    sysconfdir=$ac_optarg ;;
1174
1175  -target | --target | --targe | --targ | --tar | --ta | --t)
1176    ac_prev=target_alias ;;
1177  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178    target_alias=$ac_optarg ;;
1179
1180  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181    verbose=yes ;;
1182
1183  -version | --version | --versio | --versi | --vers | -V)
1184    ac_init_version=: ;;
1185
1186  -with-* | --with-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid package name: \`$ac_useropt'"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"with_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval with_$ac_useropt=\$ac_optarg ;;
1201
1202  -without-* | --without-*)
1203    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204    # Reject names that are not valid shell variable names.
1205    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206      as_fn_error $? "invalid package name: \`$ac_useropt'"
1207    ac_useropt_orig=$ac_useropt
1208    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1209    case $ac_user_opts in
1210      *"
1211"with_$ac_useropt"
1212"*) ;;
1213      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214	 ac_unrecognized_sep=', ';;
1215    esac
1216    eval with_$ac_useropt=no ;;
1217
1218  --x)
1219    # Obsolete; use --with-x.
1220    with_x=yes ;;
1221
1222  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223  | --x-incl | --x-inc | --x-in | --x-i)
1224    ac_prev=x_includes ;;
1225  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227    x_includes=$ac_optarg ;;
1228
1229  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231    ac_prev=x_libraries ;;
1232  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234    x_libraries=$ac_optarg ;;
1235
1236  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237Try \`$0 --help' for more information"
1238    ;;
1239
1240  *=*)
1241    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242    # Reject names that are not valid shell variable names.
1243    case $ac_envvar in #(
1244      '' | [0-9]* | *[!_$as_cr_alnum]* )
1245      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1246    esac
1247    eval $ac_envvar=\$ac_optarg
1248    export $ac_envvar ;;
1249
1250  *)
1251    # FIXME: should be removed in autoconf 3.0.
1252    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1253    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1255    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256    ;;
1257
1258  esac
1259done
1260
1261if test -n "$ac_prev"; then
1262  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263  as_fn_error $? "missing argument to $ac_option"
1264fi
1265
1266if test -n "$ac_unrecognized_opts"; then
1267  case $enable_option_checking in
1268    no) ;;
1269    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271  esac
1272fi
1273
1274# Check all directory arguments for consistency.
1275for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276		datadir sysconfdir sharedstatedir localstatedir includedir \
1277		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278		libdir localedir mandir runstatedir
1279do
1280  eval ac_val=\$$ac_var
1281  # Remove trailing slashes.
1282  case $ac_val in
1283    */ )
1284      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285      eval $ac_var=\$ac_val;;
1286  esac
1287  # Be sure to have absolute directory names.
1288  case $ac_val in
1289    [\\/$]* | ?:[\\/]* )  continue;;
1290    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291  esac
1292  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304  if test "x$build_alias" = x; then
1305    cross_compiling=maybe
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  as_fn_error $? "working directory cannot be determined"
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322  as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327  ac_srcdir_defaulted=yes
1328  # Try the directory containing this script, then the parent directory.
1329  ac_confdir=`$as_dirname -- "$as_myself" ||
1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331	 X"$as_myself" : 'X\(//\)[^/]' \| \
1332	 X"$as_myself" : 'X\(//\)$' \| \
1333	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334printf "%s\n" X"$as_myself" |
1335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)[^/].*/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)$/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\).*/{
1348	    s//\1/
1349	    q
1350	  }
1351	  s/.*/./; q'`
1352  srcdir=$ac_confdir
1353  if test ! -r "$srcdir/$ac_unique_file"; then
1354    srcdir=..
1355  fi
1356else
1357  ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362fi
1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364ac_abs_confdir=`(
1365	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366	pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369  srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379  eval ac_env_${ac_var}_value=\$${ac_var}
1380  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
1383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388  # Omit some internal or obsolete options to make the list less imposing.
1389  # This message is too long to be a string in the A/UX 3.1 sh.
1390  cat <<_ACEOF
1391\`configure' configures libXrandr 1.5.3 to adapt to many kinds of systems.
1392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401  -h, --help              display this help and exit
1402      --help=short        display options specific to this package
1403      --help=recursive    display the short help of all the included packages
1404  -V, --version           display version information and exit
1405  -q, --quiet, --silent   do not print \`checking ...' messages
1406      --cache-file=FILE   cache test results in FILE [disabled]
1407  -C, --config-cache      alias for \`--cache-file=config.cache'
1408  -n, --no-create         do not create output files
1409      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1410
1411Installation directories:
1412  --prefix=PREFIX         install architecture-independent files in PREFIX
1413                          [$ac_default_prefix]
1414  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                          [PREFIX]
1416
1417By default, \`make install' will install all the files in
1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1419an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420for instance \`--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425  --bindir=DIR            user executables [EPREFIX/bin]
1426  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1427  --libexecdir=DIR        program executables [EPREFIX/libexec]
1428  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1429  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1430  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1431  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1432  --libdir=DIR            object code libraries [EPREFIX/lib]
1433  --includedir=DIR        C header files [PREFIX/include]
1434  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437  --infodir=DIR           info documentation [DATAROOTDIR/info]
1438  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439  --mandir=DIR            man documentation [DATAROOTDIR/man]
1440  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrandr]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449Program names:
1450  --program-prefix=PREFIX            prepend PREFIX to installed program names
1451  --program-suffix=SUFFIX            append SUFFIX to installed program names
1452  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461  case $ac_init_help in
1462     short | recursive ) echo "Configuration of libXrandr 1.5.3:";;
1463   esac
1464  cat <<\_ACEOF
1465
1466Optional Features:
1467  --disable-option-checking  ignore unrecognized --enable/--with options
1468  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470  --enable-silent-rules   less verbose build output (undo: "make V=1")
1471  --disable-silent-rules  verbose build output (undo: "make V=0")
1472  --enable-shared[=PKGS]  build shared libraries [default=yes]
1473  --enable-static[=PKGS]  build static libraries [default=yes]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --enable-dependency-tracking
1477                          do not reject slow dependency extractors
1478  --disable-dependency-tracking
1479                          speeds up one-time build
1480  --disable-libtool-lock  avoid locking (might break parallel builds)
1481  --disable-selective-werror
1482                          Turn off selective compiler errors. (default:
1483                          enabled)
1484  --enable-strict-compilation
1485                          Enable all warnings from compiler and make them
1486                          errors (default: disabled)
1487  --enable-malloc0returnsnull
1488                          malloc(0) returns NULL (default: auto)
1489
1490Optional Packages:
1491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1494                          both]
1495  --with-aix-soname=aix|svr4|both
1496                          shared library versioning (aka "SONAME") variant to
1497                          provide on AIX, [default=aix].
1498  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1499  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1500                          compiler's sysroot if not specified).
1501
1502Some influential environment variables:
1503  CC          C compiler command
1504  CFLAGS      C compiler flags
1505  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506              nonstandard directory <lib dir>
1507  LIBS        libraries to pass to the linker, e.g. -l<library>
1508  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509              you have headers in a nonstandard directory <include dir>
1510  LT_SYS_LIBRARY_PATH
1511              User-defined run-time library search path.
1512  PKG_CONFIG  path to pkg-config utility
1513  PKG_CONFIG_PATH
1514              directories to add to pkg-config's search path
1515  PKG_CONFIG_LIBDIR
1516              path overriding pkg-config's built-in search path
1517  RANDR_CFLAGS
1518              C compiler flags for RANDR, overriding pkg-config
1519  RANDR_LIBS  linker flags for RANDR, overriding pkg-config
1520
1521Use these variables to override the choices made by `configure' or to help
1522it to find libraries and programs with nonstandard names/locations.
1523
1524Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues>.
1525_ACEOF
1526ac_status=$?
1527fi
1528
1529if test "$ac_init_help" = "recursive"; then
1530  # If there are subdirs, report their specific --help.
1531  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532    test -d "$ac_dir" ||
1533      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534      continue
1535    ac_builddir=.
1536
1537case "$ac_dir" in
1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539*)
1540  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1541  # A ".." for each directory in $ac_dir_suffix.
1542  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543  case $ac_top_builddir_sub in
1544  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546  esac ;;
1547esac
1548ac_abs_top_builddir=$ac_pwd
1549ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550# for backward compatibility:
1551ac_top_builddir=$ac_top_build_prefix
1552
1553case $srcdir in
1554  .)  # We are building in place.
1555    ac_srcdir=.
1556    ac_top_srcdir=$ac_top_builddir_sub
1557    ac_abs_top_srcdir=$ac_pwd ;;
1558  [\\/]* | ?:[\\/]* )  # Absolute name.
1559    ac_srcdir=$srcdir$ac_dir_suffix;
1560    ac_top_srcdir=$srcdir
1561    ac_abs_top_srcdir=$srcdir ;;
1562  *) # Relative name.
1563    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564    ac_top_srcdir=$ac_top_build_prefix$srcdir
1565    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566esac
1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569    cd "$ac_dir" || { ac_status=$?; continue; }
1570    # Check for configure.gnu first; this name is used for a wrapper for
1571    # Metaconfig's "Configure" on case-insensitive file systems.
1572    if test -f "$ac_srcdir/configure.gnu"; then
1573      echo &&
1574      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575    elif test -f "$ac_srcdir/configure"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure" --help=recursive
1578    else
1579      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580    fi || ac_status=$?
1581    cd "$ac_pwd" || { ac_status=$?; break; }
1582  done
1583fi
1584
1585test -n "$ac_init_help" && exit $ac_status
1586if $ac_init_version; then
1587  cat <<\_ACEOF
1588libXrandr configure 1.5.3
1589generated by GNU Autoconf 2.71
1590
1591Copyright (C) 2021 Free Software Foundation, Inc.
1592This configure script is free software; the Free Software Foundation
1593gives unlimited permission to copy, distribute and modify it.
1594_ACEOF
1595  exit
1596fi
1597
1598## ------------------------ ##
1599## Autoconf initialization. ##
1600## ------------------------ ##
1601
1602# ac_fn_c_try_compile LINENO
1603# --------------------------
1604# Try to compile conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_compile ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  rm -f conftest.$ac_objext conftest.beam
1609  if { { ac_try="$ac_compile"
1610case "(($ac_try" in
1611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612  *) ac_try_echo=$ac_try;;
1613esac
1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615printf "%s\n" "$ac_try_echo"; } >&5
1616  (eval "$ac_compile") 2>conftest.err
1617  ac_status=$?
1618  if test -s conftest.err; then
1619    grep -v '^ *+' conftest.err >conftest.er1
1620    cat conftest.er1 >&5
1621    mv -f conftest.er1 conftest.err
1622  fi
1623  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624  test $ac_status = 0; } && {
1625	 test -z "$ac_c_werror_flag" ||
1626	 test ! -s conftest.err
1627       } && test -s conftest.$ac_objext
1628then :
1629  ac_retval=0
1630else $as_nop
1631  printf "%s\n" "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634	ac_retval=1
1635fi
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637  as_fn_set_status $ac_retval
1638
1639} # ac_fn_c_try_compile
1640
1641# ac_fn_c_try_link LINENO
1642# -----------------------
1643# Try to link conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_link ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1648  if { { ac_try="$ac_link"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654printf "%s\n" "$ac_try_echo"; } >&5
1655  (eval "$ac_link") 2>conftest.err
1656  ac_status=$?
1657  if test -s conftest.err; then
1658    grep -v '^ *+' conftest.err >conftest.er1
1659    cat conftest.er1 >&5
1660    mv -f conftest.er1 conftest.err
1661  fi
1662  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } && {
1664	 test -z "$ac_c_werror_flag" ||
1665	 test ! -s conftest.err
1666       } && test -s conftest$ac_exeext && {
1667	 test "$cross_compiling" = yes ||
1668	 test -x conftest$ac_exeext
1669       }
1670then :
1671  ac_retval=0
1672else $as_nop
1673  printf "%s\n" "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676	ac_retval=1
1677fi
1678  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680  # interfere with the next link command; also delete a directory that is
1681  # left behind by Apple's compiler.  We do this before executing the actions.
1682  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684  as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_link
1687
1688# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689# -------------------------------------------------------
1690# Tests whether HEADER exists and can be compiled using the include files in
1691# INCLUDES, setting the cache variable VAR accordingly.
1692ac_fn_c_check_header_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696printf %s "checking for $2... " >&6; }
1697if eval test \${$3+y}
1698then :
1699  printf %s "(cached) " >&6
1700else $as_nop
1701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703$4
1704#include <$2>
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"
1707then :
1708  eval "$3=yes"
1709else $as_nop
1710  eval "$3=no"
1711fi
1712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1713fi
1714eval ac_res=\$$3
1715	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716printf "%s\n" "$ac_res" >&6; }
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719} # ac_fn_c_check_header_compile
1720
1721# ac_fn_c_check_func LINENO FUNC VAR
1722# ----------------------------------
1723# Tests whether FUNC exists, setting the cache variable VAR accordingly
1724ac_fn_c_check_func ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728printf %s "checking for $2... " >&6; }
1729if eval test \${$3+y}
1730then :
1731  printf %s "(cached) " >&6
1732else $as_nop
1733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h.  */
1735/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1737#define $2 innocuous_$2
1738
1739/* System header to define __stub macros and hopefully few prototypes,
1740   which can conflict with char $2 (); below.  */
1741
1742#include <limits.h>
1743#undef $2
1744
1745/* Override any GCC internal prototype to avoid an error.
1746   Use char because int might match the return type of a GCC
1747   builtin and then its argument prototype would still apply.  */
1748#ifdef __cplusplus
1749extern "C"
1750#endif
1751char $2 ();
1752/* The GNU C library defines this for functions which it implements
1753    to always fail with ENOSYS.  Some functions are actually named
1754    something starting with __ and the normal name is an alias.  */
1755#if defined __stub_$2 || defined __stub___$2
1756choke me
1757#endif
1758
1759int
1760main (void)
1761{
1762return $2 ();
1763  ;
1764  return 0;
1765}
1766_ACEOF
1767if ac_fn_c_try_link "$LINENO"
1768then :
1769  eval "$3=yes"
1770else $as_nop
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.beam \
1774    conftest$ac_exeext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778printf "%s\n" "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_func
1782
1783# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1784# ------------------------------------------------------------------
1785# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1786# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1787ac_fn_check_decl ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  as_decl_name=`echo $2|sed 's/ *(.*//'`
1791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1792printf %s "checking whether $as_decl_name is declared... " >&6; }
1793if eval test \${$3+y}
1794then :
1795  printf %s "(cached) " >&6
1796else $as_nop
1797  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1798  eval ac_save_FLAGS=\$$6
1799  as_fn_append $6 " $5"
1800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802$4
1803int
1804main (void)
1805{
1806#ifndef $as_decl_name
1807#ifdef __cplusplus
1808  (void) $as_decl_use;
1809#else
1810  (void) $as_decl_name;
1811#endif
1812#endif
1813
1814  ;
1815  return 0;
1816}
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"
1819then :
1820  eval "$3=yes"
1821else $as_nop
1822  eval "$3=no"
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1825  eval $6=\$ac_save_FLAGS
1826
1827fi
1828eval ac_res=\$$3
1829	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830printf "%s\n" "$ac_res" >&6; }
1831  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833} # ac_fn_check_decl
1834
1835# ac_fn_c_try_run LINENO
1836# ----------------------
1837# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1838# executables *can* be run.
1839ac_fn_c_try_run ()
1840{
1841  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842  if { { ac_try="$ac_link"
1843case "(($ac_try" in
1844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845  *) ac_try_echo=$ac_try;;
1846esac
1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848printf "%s\n" "$ac_try_echo"; } >&5
1849  (eval "$ac_link") 2>&5
1850  ac_status=$?
1851  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1853  { { case "(($ac_try" in
1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855  *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858printf "%s\n" "$ac_try_echo"; } >&5
1859  (eval "$ac_try") 2>&5
1860  ac_status=$?
1861  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862  test $ac_status = 0; }; }
1863then :
1864  ac_retval=0
1865else $as_nop
1866  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1867       printf "%s\n" "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870       ac_retval=$ac_status
1871fi
1872  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874  as_fn_set_status $ac_retval
1875
1876} # ac_fn_c_try_run
1877ac_configure_args_raw=
1878for ac_arg
1879do
1880  case $ac_arg in
1881  *\'*)
1882    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883  esac
1884  as_fn_append ac_configure_args_raw " '$ac_arg'"
1885done
1886
1887case $ac_configure_args_raw in
1888  *$as_nl*)
1889    ac_safe_unquote= ;;
1890  *)
1891    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1892    ac_unsafe_a="$ac_unsafe_z#~"
1893    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1894    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1895esac
1896
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by libXrandr $as_me 1.5.3, which was
1902generated by GNU Autoconf 2.71.  Invocation command line was
1903
1904  $ $0$ac_configure_args_raw
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  case $as_dir in #(((
1938    '') as_dir=./ ;;
1939    */) ;;
1940    *) as_dir=$as_dir/ ;;
1941  esac
1942    printf "%s\n" "PATH: $as_dir"
1943  done
1944IFS=$as_save_IFS
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969  for ac_arg
1970  do
1971    case $ac_arg in
1972    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974    | -silent | --silent | --silen | --sile | --sil)
1975      continue ;;
1976    *\'*)
1977      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978    esac
1979    case $ac_pass in
1980    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981    2)
1982      as_fn_append ac_configure_args1 " '$ac_arg'"
1983      if test $ac_must_keep_next = true; then
1984	ac_must_keep_next=false # Got value, back to normal.
1985      else
1986	case $ac_arg in
1987	  *=* | --config-cache | -C | -disable-* | --disable-* \
1988	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990	  | -with-* | --with-* | -without-* | --without-* | --x)
1991	    case "$ac_configure_args0 " in
1992	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993	    esac
1994	    ;;
1995	  -* ) ac_must_keep_next=true ;;
1996	esac
1997      fi
1998      as_fn_append ac_configure_args " '$ac_arg'"
1999      ;;
2000    esac
2001  done
2002done
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log.  We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011trap 'exit_status=$?
2012  # Sanitize IFS.
2013  IFS=" ""	$as_nl"
2014  # Save into config.log some information that might help in debugging.
2015  {
2016    echo
2017
2018    printf "%s\n" "## ---------------- ##
2019## Cache variables. ##
2020## ---------------- ##"
2021    echo
2022    # The following way of writing the cache mishandles newlines in values,
2023(
2024  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025    eval ac_val=\$$ac_var
2026    case $ac_val in #(
2027    *${as_nl}*)
2028      case $ac_var in #(
2029      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031      esac
2032      case $ac_var in #(
2033      _ | IFS | as_nl) ;; #(
2034      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035      *) { eval $ac_var=; unset $ac_var;} ;;
2036      esac ;;
2037    esac
2038  done
2039  (set) 2>&1 |
2040    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041    *${as_nl}ac_space=\ *)
2042      sed -n \
2043	"s/'\''/'\''\\\\'\'''\''/g;
2044	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045      ;; #(
2046    *)
2047      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048      ;;
2049    esac |
2050    sort
2051)
2052    echo
2053
2054    printf "%s\n" "## ----------------- ##
2055## Output variables. ##
2056## ----------------- ##"
2057    echo
2058    for ac_var in $ac_subst_vars
2059    do
2060      eval ac_val=\$$ac_var
2061      case $ac_val in
2062      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063      esac
2064      printf "%s\n" "$ac_var='\''$ac_val'\''"
2065    done | sort
2066    echo
2067
2068    if test -n "$ac_subst_files"; then
2069      printf "%s\n" "## ------------------- ##
2070## File substitutions. ##
2071## ------------------- ##"
2072      echo
2073      for ac_var in $ac_subst_files
2074      do
2075	eval ac_val=\$$ac_var
2076	case $ac_val in
2077	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078	esac
2079	printf "%s\n" "$ac_var='\''$ac_val'\''"
2080      done | sort
2081      echo
2082    fi
2083
2084    if test -s confdefs.h; then
2085      printf "%s\n" "## ----------- ##
2086## confdefs.h. ##
2087## ----------- ##"
2088      echo
2089      cat confdefs.h
2090      echo
2091    fi
2092    test "$ac_signal" != 0 &&
2093      printf "%s\n" "$as_me: caught signal $ac_signal"
2094    printf "%s\n" "$as_me: exit $exit_status"
2095  } >&5
2096  rm -f core *.core core.conftest.* &&
2097    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098    exit $exit_status
2099' 0
2100for ac_signal in 1 2 13 15; do
2101  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102done
2103ac_signal=0
2104
2105# confdefs.h avoids OS command line length limits that DEFS can exceed.
2106rm -f -r conftest* confdefs.h
2107
2108printf "%s\n" "/* confdefs.h */" > confdefs.h
2109
2110# Predefined preprocessor variables.
2111
2112printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2115
2116printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2117
2118printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2119
2120printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2121
2122printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2123
2124
2125# Let the site file select an alternate cache file if it wants to.
2126# Prefer an explicitly selected file to automatically selected ones.
2127if test -n "$CONFIG_SITE"; then
2128  ac_site_files="$CONFIG_SITE"
2129elif test "x$prefix" != xNONE; then
2130  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2131else
2132  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2133fi
2134
2135for ac_site_file in $ac_site_files
2136do
2137  case $ac_site_file in #(
2138  */*) :
2139     ;; #(
2140  *) :
2141    ac_site_file=./$ac_site_file ;;
2142esac
2143  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2146    sed 's/^/| /' "$ac_site_file" >&5
2147    . "$ac_site_file" \
2148      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2150as_fn_error $? "failed to load site script $ac_site_file
2151See \`config.log' for more details" "$LINENO" 5; }
2152  fi
2153done
2154
2155if test -r "$cache_file"; then
2156  # Some versions of bash will fail to source /dev/null (special files
2157  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2158  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2161    case $cache_file in
2162      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163      *)                      . "./$cache_file";;
2164    esac
2165  fi
2166else
2167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2169  >$cache_file
2170fi
2171
2172# Test code for whether the C compiler supports C89 (global declarations)
2173ac_c_conftest_c89_globals='
2174/* Does the compiler advertise C89 conformance?
2175   Do not test the value of __STDC__, because some compilers set it to 0
2176   while being otherwise adequately conformant. */
2177#if !defined __STDC__
2178# error "Compiler does not advertise C89 conformance"
2179#endif
2180
2181#include <stddef.h>
2182#include <stdarg.h>
2183struct stat;
2184/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2185struct buf { int x; };
2186struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2187static char *e (p, i)
2188     char **p;
2189     int i;
2190{
2191  return p[i];
2192}
2193static char *f (char * (*g) (char **, int), char **p, ...)
2194{
2195  char *s;
2196  va_list v;
2197  va_start (v,p);
2198  s = g (p, va_arg (v,int));
2199  va_end (v);
2200  return s;
2201}
2202
2203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2204   function prototypes and stuff, but not \xHH hex character constants.
2205   These do not provoke an error unfortunately, instead are silently treated
2206   as an "x".  The following induces an error, until -std is added to get
2207   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2208   array size at least.  It is necessary to write \x00 == 0 to get something
2209   that is true only with -std.  */
2210int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2211
2212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2213   inside strings and character constants.  */
2214#define FOO(x) '\''x'\''
2215int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2216
2217int test (int i, double x);
2218struct s1 {int (*f) (int a);};
2219struct s2 {int (*f) (double a);};
2220int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2221               int, int);'
2222
2223# Test code for whether the C compiler supports C89 (body of main).
2224ac_c_conftest_c89_main='
2225ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2226'
2227
2228# Test code for whether the C compiler supports C99 (global declarations)
2229ac_c_conftest_c99_globals='
2230// Does the compiler advertise C99 conformance?
2231#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2232# error "Compiler does not advertise C99 conformance"
2233#endif
2234
2235#include <stdbool.h>
2236extern int puts (const char *);
2237extern int printf (const char *, ...);
2238extern int dprintf (int, const char *, ...);
2239extern void *malloc (size_t);
2240
2241// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2242// dprintf is used instead of fprintf to avoid needing to declare
2243// FILE and stderr.
2244#define debug(...) dprintf (2, __VA_ARGS__)
2245#define showlist(...) puts (#__VA_ARGS__)
2246#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2247static void
2248test_varargs_macros (void)
2249{
2250  int x = 1234;
2251  int y = 5678;
2252  debug ("Flag");
2253  debug ("X = %d\n", x);
2254  showlist (The first, second, and third items.);
2255  report (x>y, "x is %d but y is %d", x, y);
2256}
2257
2258// Check long long types.
2259#define BIG64 18446744073709551615ull
2260#define BIG32 4294967295ul
2261#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2262#if !BIG_OK
2263  #error "your preprocessor is broken"
2264#endif
2265#if BIG_OK
2266#else
2267  #error "your preprocessor is broken"
2268#endif
2269static long long int bignum = -9223372036854775807LL;
2270static unsigned long long int ubignum = BIG64;
2271
2272struct incomplete_array
2273{
2274  int datasize;
2275  double data[];
2276};
2277
2278struct named_init {
2279  int number;
2280  const wchar_t *name;
2281  double average;
2282};
2283
2284typedef const char *ccp;
2285
2286static inline int
2287test_restrict (ccp restrict text)
2288{
2289  // See if C++-style comments work.
2290  // Iterate through items via the restricted pointer.
2291  // Also check for declarations in for loops.
2292  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2293    continue;
2294  return 0;
2295}
2296
2297// Check varargs and va_copy.
2298static bool
2299test_varargs (const char *format, ...)
2300{
2301  va_list args;
2302  va_start (args, format);
2303  va_list args_copy;
2304  va_copy (args_copy, args);
2305
2306  const char *str = "";
2307  int number = 0;
2308  float fnumber = 0;
2309
2310  while (*format)
2311    {
2312      switch (*format++)
2313	{
2314	case '\''s'\'': // string
2315	  str = va_arg (args_copy, const char *);
2316	  break;
2317	case '\''d'\'': // int
2318	  number = va_arg (args_copy, int);
2319	  break;
2320	case '\''f'\'': // float
2321	  fnumber = va_arg (args_copy, double);
2322	  break;
2323	default:
2324	  break;
2325	}
2326    }
2327  va_end (args_copy);
2328  va_end (args);
2329
2330  return *str && number && fnumber;
2331}
2332'
2333
2334# Test code for whether the C compiler supports C99 (body of main).
2335ac_c_conftest_c99_main='
2336  // Check bool.
2337  _Bool success = false;
2338  success |= (argc != 0);
2339
2340  // Check restrict.
2341  if (test_restrict ("String literal") == 0)
2342    success = true;
2343  char *restrict newvar = "Another string";
2344
2345  // Check varargs.
2346  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2347  test_varargs_macros ();
2348
2349  // Check flexible array members.
2350  struct incomplete_array *ia =
2351    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2352  ia->datasize = 10;
2353  for (int i = 0; i < ia->datasize; ++i)
2354    ia->data[i] = i * 1.234;
2355
2356  // Check named initializers.
2357  struct named_init ni = {
2358    .number = 34,
2359    .name = L"Test wide string",
2360    .average = 543.34343,
2361  };
2362
2363  ni.number = 58;
2364
2365  int dynamic_array[ni.number];
2366  dynamic_array[0] = argv[0][0];
2367  dynamic_array[ni.number - 1] = 543;
2368
2369  // work around unused variable warnings
2370  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2371	 || dynamic_array[ni.number - 1] != 543);
2372'
2373
2374# Test code for whether the C compiler supports C11 (global declarations)
2375ac_c_conftest_c11_globals='
2376// Does the compiler advertise C11 conformance?
2377#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2378# error "Compiler does not advertise C11 conformance"
2379#endif
2380
2381// Check _Alignas.
2382char _Alignas (double) aligned_as_double;
2383char _Alignas (0) no_special_alignment;
2384extern char aligned_as_int;
2385char _Alignas (0) _Alignas (int) aligned_as_int;
2386
2387// Check _Alignof.
2388enum
2389{
2390  int_alignment = _Alignof (int),
2391  int_array_alignment = _Alignof (int[100]),
2392  char_alignment = _Alignof (char)
2393};
2394_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2395
2396// Check _Noreturn.
2397int _Noreturn does_not_return (void) { for (;;) continue; }
2398
2399// Check _Static_assert.
2400struct test_static_assert
2401{
2402  int x;
2403  _Static_assert (sizeof (int) <= sizeof (long int),
2404                  "_Static_assert does not work in struct");
2405  long int y;
2406};
2407
2408// Check UTF-8 literals.
2409#define u8 syntax error!
2410char const utf8_literal[] = u8"happens to be ASCII" "another string";
2411
2412// Check duplicate typedefs.
2413typedef long *long_ptr;
2414typedef long int *long_ptr;
2415typedef long_ptr long_ptr;
2416
2417// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2418struct anonymous
2419{
2420  union {
2421    struct { int i; int j; };
2422    struct { int k; long int l; } w;
2423  };
2424  int m;
2425} v1;
2426'
2427
2428# Test code for whether the C compiler supports C11 (body of main).
2429ac_c_conftest_c11_main='
2430  _Static_assert ((offsetof (struct anonymous, i)
2431		   == offsetof (struct anonymous, w.k)),
2432		  "Anonymous union alignment botch");
2433  v1.i = 2;
2434  v1.w.k = 5;
2435  ok |= v1.i != 5;
2436'
2437
2438# Test code for whether the C compiler supports C11 (complete).
2439ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2440${ac_c_conftest_c99_globals}
2441${ac_c_conftest_c11_globals}
2442
2443int
2444main (int argc, char **argv)
2445{
2446  int ok = 0;
2447  ${ac_c_conftest_c89_main}
2448  ${ac_c_conftest_c99_main}
2449  ${ac_c_conftest_c11_main}
2450  return ok;
2451}
2452"
2453
2454# Test code for whether the C compiler supports C99 (complete).
2455ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2456${ac_c_conftest_c99_globals}
2457
2458int
2459main (int argc, char **argv)
2460{
2461  int ok = 0;
2462  ${ac_c_conftest_c89_main}
2463  ${ac_c_conftest_c99_main}
2464  return ok;
2465}
2466"
2467
2468# Test code for whether the C compiler supports C89 (complete).
2469ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2470
2471int
2472main (int argc, char **argv)
2473{
2474  int ok = 0;
2475  ${ac_c_conftest_c89_main}
2476  return ok;
2477}
2478"
2479
2480as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2481as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2482as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2483as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2484as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2485as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2486as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2487as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2488as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2489
2490# Auxiliary files required by this configure script.
2491ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2492
2493# Locations in which to look for auxiliary files.
2494ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2495
2496# Search for a directory containing all of the required auxiliary files,
2497# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2498# If we don't find one directory that contains all the files we need,
2499# we report the set of missing files from the *first* directory in
2500# $ac_aux_dir_candidates and give up.
2501ac_missing_aux_files=""
2502ac_first_candidate=:
2503printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505as_found=false
2506for as_dir in $ac_aux_dir_candidates
2507do
2508  IFS=$as_save_IFS
2509  case $as_dir in #(((
2510    '') as_dir=./ ;;
2511    */) ;;
2512    *) as_dir=$as_dir/ ;;
2513  esac
2514  as_found=:
2515
2516  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2517  ac_aux_dir_found=yes
2518  ac_install_sh=
2519  for ac_aux in $ac_aux_files
2520  do
2521    # As a special case, if "install-sh" is required, that requirement
2522    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2523    # and $ac_install_sh is set appropriately for whichever one is found.
2524    if test x"$ac_aux" = x"install-sh"
2525    then
2526      if test -f "${as_dir}install-sh"; then
2527        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2528        ac_install_sh="${as_dir}install-sh -c"
2529      elif test -f "${as_dir}install.sh"; then
2530        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2531        ac_install_sh="${as_dir}install.sh -c"
2532      elif test -f "${as_dir}shtool"; then
2533        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2534        ac_install_sh="${as_dir}shtool install -c"
2535      else
2536        ac_aux_dir_found=no
2537        if $ac_first_candidate; then
2538          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2539        else
2540          break
2541        fi
2542      fi
2543    else
2544      if test -f "${as_dir}${ac_aux}"; then
2545        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2546      else
2547        ac_aux_dir_found=no
2548        if $ac_first_candidate; then
2549          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2550        else
2551          break
2552        fi
2553      fi
2554    fi
2555  done
2556  if test "$ac_aux_dir_found" = yes; then
2557    ac_aux_dir="$as_dir"
2558    break
2559  fi
2560  ac_first_candidate=false
2561
2562  as_found=false
2563done
2564IFS=$as_save_IFS
2565if $as_found
2566then :
2567
2568else $as_nop
2569  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2570fi
2571
2572
2573# These three variables are undocumented and unsupported,
2574# and are intended to be withdrawn in a future Autoconf release.
2575# They can cause serious problems if a builder's source tree is in a directory
2576# whose full name contains unusual characters.
2577if test -f "${ac_aux_dir}config.guess"; then
2578  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2579fi
2580if test -f "${ac_aux_dir}config.sub"; then
2581  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2582fi
2583if test -f "$ac_aux_dir/configure"; then
2584  ac_configure="$SHELL ${ac_aux_dir}configure"
2585fi
2586
2587# Check that the precious variables saved in the cache have kept the same
2588# value.
2589ac_cache_corrupted=false
2590for ac_var in $ac_precious_vars; do
2591  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2592  eval ac_new_set=\$ac_env_${ac_var}_set
2593  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2594  eval ac_new_val=\$ac_env_${ac_var}_value
2595  case $ac_old_set,$ac_new_set in
2596    set,)
2597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2598printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2599      ac_cache_corrupted=: ;;
2600    ,set)
2601      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2602printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2603      ac_cache_corrupted=: ;;
2604    ,);;
2605    *)
2606      if test "x$ac_old_val" != "x$ac_new_val"; then
2607	# differences in whitespace do not lead to failure.
2608	ac_old_val_w=`echo x $ac_old_val`
2609	ac_new_val_w=`echo x $ac_new_val`
2610	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2611	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2612printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2613	  ac_cache_corrupted=:
2614	else
2615	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2616printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2617	  eval $ac_var=\$ac_old_val
2618	fi
2619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2620printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2622printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2623      fi;;
2624  esac
2625  # Pass precious variables to config.status.
2626  if test "$ac_new_set" = set; then
2627    case $ac_new_val in
2628    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2629    *) ac_arg=$ac_var=$ac_new_val ;;
2630    esac
2631    case " $ac_configure_args " in
2632      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2633      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2634    esac
2635  fi
2636done
2637if $ac_cache_corrupted; then
2638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2639printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2641printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2642  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2643	    and start over" "$LINENO" 5
2644fi
2645## -------------------- ##
2646## Main body of script. ##
2647## -------------------- ##
2648
2649ac_ext=c
2650ac_cpp='$CPP $CPPFLAGS'
2651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654
2655
2656
2657ac_config_headers="$ac_config_headers config.h"
2658
2659
2660# Initialize Automake
2661am__api_version='1.16'
2662
2663
2664
2665  # Find a good install program.  We prefer a C program (faster),
2666# so one script is as good as another.  But avoid the broken or
2667# incompatible versions:
2668# SysV /etc/install, /usr/sbin/install
2669# SunOS /usr/etc/install
2670# IRIX /sbin/install
2671# AIX /bin/install
2672# AmigaOS /C/install, which installs bootblocks on floppy discs
2673# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2674# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2675# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2676# OS/2's system install, which has a completely different semantic
2677# ./install, which can be erroneously created by make from ./install.sh.
2678# Reject install programs that cannot install multiple files.
2679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2680printf %s "checking for a BSD-compatible install... " >&6; }
2681if test -z "$INSTALL"; then
2682if test ${ac_cv_path_install+y}
2683then :
2684  printf %s "(cached) " >&6
2685else $as_nop
2686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  case $as_dir in #(((
2691    '') as_dir=./ ;;
2692    */) ;;
2693    *) as_dir=$as_dir/ ;;
2694  esac
2695    # Account for fact that we put trailing slashes in our PATH walk.
2696case $as_dir in #((
2697  ./ | /[cC]/* | \
2698  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2700  /usr/ucb/* ) ;;
2701  *)
2702    # OSF1 and SCO ODT 3.0 have their own names for install.
2703    # Don't use installbsd from OSF since it installs stuff as root
2704    # by default.
2705    for ac_prog in ginstall scoinst install; do
2706      for ac_exec_ext in '' $ac_executable_extensions; do
2707	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2708	  if test $ac_prog = install &&
2709	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710	    # AIX install.  It has an incompatible calling convention.
2711	    :
2712	  elif test $ac_prog = install &&
2713	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714	    # program-specific install script used by HP pwplus--don't use.
2715	    :
2716	  else
2717	    rm -rf conftest.one conftest.two conftest.dir
2718	    echo one > conftest.one
2719	    echo two > conftest.two
2720	    mkdir conftest.dir
2721	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2722	      test -s conftest.one && test -s conftest.two &&
2723	      test -s conftest.dir/conftest.one &&
2724	      test -s conftest.dir/conftest.two
2725	    then
2726	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2727	      break 3
2728	    fi
2729	  fi
2730	fi
2731      done
2732    done
2733    ;;
2734esac
2735
2736  done
2737IFS=$as_save_IFS
2738
2739rm -rf conftest.one conftest.two conftest.dir
2740
2741fi
2742  if test ${ac_cv_path_install+y}; then
2743    INSTALL=$ac_cv_path_install
2744  else
2745    # As a last resort, use the slow shell script.  Don't cache a
2746    # value for INSTALL within a source directory, because that will
2747    # break other packages using the cache if that directory is
2748    # removed, or if the value is a relative name.
2749    INSTALL=$ac_install_sh
2750  fi
2751fi
2752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2753printf "%s\n" "$INSTALL" >&6; }
2754
2755# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756# It thinks the first close brace ends the variable substitution.
2757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
2759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760
2761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
2763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2764printf %s "checking whether build environment is sane... " >&6; }
2765# Reject unsafe characters in $srcdir or the absolute working directory
2766# name.  Accept space and tab only in the latter.
2767am_lf='
2768'
2769case `pwd` in
2770  *[\\\"\#\$\&\'\`$am_lf]*)
2771    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2772esac
2773case $srcdir in
2774  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2775    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2776esac
2777
2778# Do 'set' in a subshell so we don't clobber the current shell's
2779# arguments.  Must try -L first in case configure is actually a
2780# symlink; some systems play weird games with the mod time of symlinks
2781# (eg FreeBSD returns the mod time of the symlink's containing
2782# directory).
2783if (
2784   am_has_slept=no
2785   for am_try in 1 2; do
2786     echo "timestamp, slept: $am_has_slept" > conftest.file
2787     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2788     if test "$*" = "X"; then
2789	# -L didn't work.
2790	set X `ls -t "$srcdir/configure" conftest.file`
2791     fi
2792     if test "$*" != "X $srcdir/configure conftest.file" \
2793	&& test "$*" != "X conftest.file $srcdir/configure"; then
2794
2795	# If neither matched, then we have a broken ls.  This can happen
2796	# if, for instance, CONFIG_SHELL is bash and it inherits a
2797	# broken ls alias from the environment.  This has actually
2798	# happened.  Such a system could not be considered "sane".
2799	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2800  alias in your environment" "$LINENO" 5
2801     fi
2802     if test "$2" = conftest.file || test $am_try -eq 2; then
2803       break
2804     fi
2805     # Just in case.
2806     sleep 1
2807     am_has_slept=yes
2808   done
2809   test "$2" = conftest.file
2810   )
2811then
2812   # Ok.
2813   :
2814else
2815   as_fn_error $? "newly created file is older than distributed files!
2816Check your system clock" "$LINENO" 5
2817fi
2818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819printf "%s\n" "yes" >&6; }
2820# If we didn't sleep, we still need to ensure time stamps of config.status and
2821# generated files are strictly newer.
2822am_sleep_pid=
2823if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2824  ( sleep 1 ) &
2825  am_sleep_pid=$!
2826fi
2827
2828rm -f conftest.file
2829
2830test "$program_prefix" != NONE &&
2831  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832# Use a double $ so make ignores it.
2833test "$program_suffix" != NONE &&
2834  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835# Double any \ or $.
2836# By default was `s,x,x', remove it if useless.
2837ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2839
2840
2841# Expand $ac_aux_dir to an absolute path.
2842am_aux_dir=`cd "$ac_aux_dir" && pwd`
2843
2844
2845  if test x"${MISSING+set}" != xset; then
2846  MISSING="\${SHELL} '$am_aux_dir/missing'"
2847fi
2848# Use eval to expand $SHELL
2849if eval "$MISSING --is-lightweight"; then
2850  am_missing_run="$MISSING "
2851else
2852  am_missing_run=
2853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2854printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2855fi
2856
2857if test x"${install_sh+set}" != xset; then
2858  case $am_aux_dir in
2859  *\ * | *\	*)
2860    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2861  *)
2862    install_sh="\${SHELL} $am_aux_dir/install-sh"
2863  esac
2864fi
2865
2866# Installed binaries are usually stripped using 'strip' when the user
2867# run "make install-strip".  However 'strip' might not be the right
2868# tool to use in cross-compilation environments, therefore Automake
2869# will honor the 'STRIP' environment variable to overrule this program.
2870if test "$cross_compiling" != no; then
2871  if test -n "$ac_tool_prefix"; then
2872  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873set dummy ${ac_tool_prefix}strip; ac_word=$2
2874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875printf %s "checking for $ac_word... " >&6; }
2876if test ${ac_cv_prog_STRIP+y}
2877then :
2878  printf %s "(cached) " >&6
2879else $as_nop
2880  if test -n "$STRIP"; then
2881  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886  IFS=$as_save_IFS
2887  case $as_dir in #(((
2888    '') as_dir=./ ;;
2889    */) ;;
2890    *) as_dir=$as_dir/ ;;
2891  esac
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2894    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2895    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904STRIP=$ac_cv_prog_STRIP
2905if test -n "$STRIP"; then
2906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2907printf "%s\n" "$STRIP" >&6; }
2908else
2909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910printf "%s\n" "no" >&6; }
2911fi
2912
2913
2914fi
2915if test -z "$ac_cv_prog_STRIP"; then
2916  ac_ct_STRIP=$STRIP
2917  # Extract the first word of "strip", so it can be a program name with args.
2918set dummy strip; ac_word=$2
2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920printf %s "checking for $ac_word... " >&6; }
2921if test ${ac_cv_prog_ac_ct_STRIP+y}
2922then :
2923  printf %s "(cached) " >&6
2924else $as_nop
2925  if test -n "$ac_ct_STRIP"; then
2926  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  case $as_dir in #(((
2933    '') as_dir=./ ;;
2934    */) ;;
2935    *) as_dir=$as_dir/ ;;
2936  esac
2937    for ac_exec_ext in '' $ac_executable_extensions; do
2938  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2939    ac_cv_prog_ac_ct_STRIP="strip"
2940    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2941    break 2
2942  fi
2943done
2944  done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2950if test -n "$ac_ct_STRIP"; then
2951  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2952printf "%s\n" "$ac_ct_STRIP" >&6; }
2953else
2954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955printf "%s\n" "no" >&6; }
2956fi
2957
2958  if test "x$ac_ct_STRIP" = x; then
2959    STRIP=":"
2960  else
2961    case $cross_compiling:$ac_tool_warned in
2962yes:)
2963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965ac_tool_warned=yes ;;
2966esac
2967    STRIP=$ac_ct_STRIP
2968  fi
2969else
2970  STRIP="$ac_cv_prog_STRIP"
2971fi
2972
2973fi
2974INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2975
2976
2977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2978printf %s "checking for a race-free mkdir -p... " >&6; }
2979if test -z "$MKDIR_P"; then
2980  if test ${ac_cv_path_mkdir+y}
2981then :
2982  printf %s "(cached) " >&6
2983else $as_nop
2984  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2986do
2987  IFS=$as_save_IFS
2988  case $as_dir in #(((
2989    '') as_dir=./ ;;
2990    */) ;;
2991    *) as_dir=$as_dir/ ;;
2992  esac
2993    for ac_prog in mkdir gmkdir; do
2994	 for ac_exec_ext in '' $ac_executable_extensions; do
2995	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2996	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2997	     'mkdir ('*'coreutils) '* | \
2998	     'BusyBox '* | \
2999	     'mkdir (fileutils) '4.1*)
3000	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3001	       break 3;;
3002	   esac
3003	 done
3004       done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009
3010  test -d ./--version && rmdir ./--version
3011  if test ${ac_cv_path_mkdir+y}; then
3012    MKDIR_P="$ac_cv_path_mkdir -p"
3013  else
3014    # As a last resort, use the slow shell script.  Don't cache a
3015    # value for MKDIR_P within a source directory, because that will
3016    # break other packages using the cache if that directory is
3017    # removed, or if the value is a relative name.
3018    MKDIR_P="$ac_install_sh -d"
3019  fi
3020fi
3021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3022printf "%s\n" "$MKDIR_P" >&6; }
3023
3024for ac_prog in gawk mawk nawk awk
3025do
3026  # Extract the first word of "$ac_prog", so it can be a program name with args.
3027set dummy $ac_prog; ac_word=$2
3028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029printf %s "checking for $ac_word... " >&6; }
3030if test ${ac_cv_prog_AWK+y}
3031then :
3032  printf %s "(cached) " >&6
3033else $as_nop
3034  if test -n "$AWK"; then
3035  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  case $as_dir in #(((
3042    '') as_dir=./ ;;
3043    */) ;;
3044    *) as_dir=$as_dir/ ;;
3045  esac
3046    for ac_exec_ext in '' $ac_executable_extensions; do
3047  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3048    ac_cv_prog_AWK="$ac_prog"
3049    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3050    break 2
3051  fi
3052done
3053  done
3054IFS=$as_save_IFS
3055
3056fi
3057fi
3058AWK=$ac_cv_prog_AWK
3059if test -n "$AWK"; then
3060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3061printf "%s\n" "$AWK" >&6; }
3062else
3063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064printf "%s\n" "no" >&6; }
3065fi
3066
3067
3068  test -n "$AWK" && break
3069done
3070
3071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3072printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3073set x ${MAKE-make}
3074ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3075if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3076then :
3077  printf %s "(cached) " >&6
3078else $as_nop
3079  cat >conftest.make <<\_ACEOF
3080SHELL = /bin/sh
3081all:
3082	@echo '@@@%%%=$(MAKE)=@@@%%%'
3083_ACEOF
3084# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3085case `${MAKE-make} -f conftest.make 2>/dev/null` in
3086  *@@@%%%=?*=@@@%%%*)
3087    eval ac_cv_prog_make_${ac_make}_set=yes;;
3088  *)
3089    eval ac_cv_prog_make_${ac_make}_set=no;;
3090esac
3091rm -f conftest.make
3092fi
3093if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095printf "%s\n" "yes" >&6; }
3096  SET_MAKE=
3097else
3098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099printf "%s\n" "no" >&6; }
3100  SET_MAKE="MAKE=${MAKE-make}"
3101fi
3102
3103rm -rf .tst 2>/dev/null
3104mkdir .tst 2>/dev/null
3105if test -d .tst; then
3106  am__leading_dot=.
3107else
3108  am__leading_dot=_
3109fi
3110rmdir .tst 2>/dev/null
3111
3112# Check whether --enable-silent-rules was given.
3113if test ${enable_silent_rules+y}
3114then :
3115  enableval=$enable_silent_rules;
3116fi
3117
3118case $enable_silent_rules in # (((
3119  yes) AM_DEFAULT_VERBOSITY=0;;
3120   no) AM_DEFAULT_VERBOSITY=1;;
3121    *) AM_DEFAULT_VERBOSITY=1;;
3122esac
3123am_make=${MAKE-make}
3124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3125printf %s "checking whether $am_make supports nested variables... " >&6; }
3126if test ${am_cv_make_support_nested_variables+y}
3127then :
3128  printf %s "(cached) " >&6
3129else $as_nop
3130  if printf "%s\n" 'TRUE=$(BAR$(V))
3131BAR0=false
3132BAR1=true
3133V=1
3134am__doit:
3135	@$(TRUE)
3136.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3137  am_cv_make_support_nested_variables=yes
3138else
3139  am_cv_make_support_nested_variables=no
3140fi
3141fi
3142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3143printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3144if test $am_cv_make_support_nested_variables = yes; then
3145    AM_V='$(V)'
3146  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3147else
3148  AM_V=$AM_DEFAULT_VERBOSITY
3149  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3150fi
3151AM_BACKSLASH='\'
3152
3153if test "`cd $srcdir && pwd`" != "`pwd`"; then
3154  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3155  # is not polluted with repeated "-I."
3156  am__isrc=' -I$(srcdir)'
3157  # test to see if srcdir already configured
3158  if test -f $srcdir/config.status; then
3159    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3160  fi
3161fi
3162
3163# test whether we have cygpath
3164if test -z "$CYGPATH_W"; then
3165  if (cygpath --version) >/dev/null 2>/dev/null; then
3166    CYGPATH_W='cygpath -w'
3167  else
3168    CYGPATH_W=echo
3169  fi
3170fi
3171
3172
3173# Define the identity of the package.
3174 PACKAGE='libXrandr'
3175 VERSION='1.5.3'
3176
3177
3178printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3179
3180
3181printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3182
3183# Some tools Automake needs.
3184
3185ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3186
3187
3188AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3189
3190
3191AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3192
3193
3194AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3195
3196
3197MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3198
3199# For better backward compatibility.  To be removed once Automake 1.9.x
3200# dies out for good.  For more background, see:
3201# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3202# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3203mkdir_p='$(MKDIR_P)'
3204
3205# We need awk for the "check" target (and possibly the TAP driver).  The
3206# system "awk" is bad on some platforms.
3207# Always define AMTAR for backward compatibility.  Yes, it's still used
3208# in the wild :-(  We should find a proper way to deprecate it ...
3209AMTAR='$${TAR-tar}'
3210
3211
3212# We'll loop over all known methods to create a tar archive until one works.
3213_am_tools='gnutar  pax cpio none'
3214
3215am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3216
3217
3218
3219
3220
3221# Variables for tags utilities; see am/tags.am
3222if test -z "$CTAGS"; then
3223  CTAGS=ctags
3224fi
3225
3226if test -z "$ETAGS"; then
3227  ETAGS=etags
3228fi
3229
3230if test -z "$CSCOPE"; then
3231  CSCOPE=cscope
3232fi
3233
3234
3235
3236# POSIX will say in a future version that running "rm -f" with no argument
3237# is OK; and we want to be able to make that assumption in our Makefile
3238# recipes.  So use an aggressive probe to check that the usage we want is
3239# actually supported "in the wild" to an acceptable degree.
3240# See automake bug#10828.
3241# To make any issue more visible, cause the running configure to be aborted
3242# by default if the 'rm' program in use doesn't match our expectations; the
3243# user can still override this though.
3244if rm -f && rm -fr && rm -rf; then : OK; else
3245  cat >&2 <<'END'
3246Oops!
3247
3248Your 'rm' program seems unable to run without file operands specified
3249on the command line, even when the '-f' option is present.  This is contrary
3250to the behaviour of most rm programs out there, and not conforming with
3251the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3252
3253Please tell bug-automake@gnu.org about your system, including the value
3254of your $PATH and any error possibly output before this message.  This
3255can help us improve future automake versions.
3256
3257END
3258  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3259    echo 'Configuration will proceed anyway, since you have set the' >&2
3260    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3261    echo >&2
3262  else
3263    cat >&2 <<'END'
3264Aborting the configuration process, to ensure you take notice of the issue.
3265
3266You can download and install GNU coreutils to get an 'rm' implementation
3267that behaves properly: <https://www.gnu.org/software/coreutils/>.
3268
3269If you want to complete the configuration process using your problematic
3270'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3271to "yes", and re-run configure.
3272
3273END
3274    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3275  fi
3276fi
3277
3278
3279# Initialize libtool
3280case `pwd` in
3281  *\ * | *\	*)
3282    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3283printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3284esac
3285
3286
3287
3288macro_version='2.4.7'
3289macro_revision='2.4.7'
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304ltmain=$ac_aux_dir/ltmain.sh
3305
3306
3307
3308  # Make sure we can run config.sub.
3309$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3310  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3311
3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3313printf %s "checking build system type... " >&6; }
3314if test ${ac_cv_build+y}
3315then :
3316  printf %s "(cached) " >&6
3317else $as_nop
3318  ac_build_alias=$build_alias
3319test "x$ac_build_alias" = x &&
3320  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3321test "x$ac_build_alias" = x &&
3322  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3323ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3324  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3325
3326fi
3327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3328printf "%s\n" "$ac_cv_build" >&6; }
3329case $ac_cv_build in
3330*-*-*) ;;
3331*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3332esac
3333build=$ac_cv_build
3334ac_save_IFS=$IFS; IFS='-'
3335set x $ac_cv_build
3336shift
3337build_cpu=$1
3338build_vendor=$2
3339shift; shift
3340# Remember, the first character of IFS is used to create $*,
3341# except with old shells:
3342build_os=$*
3343IFS=$ac_save_IFS
3344case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3345
3346
3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3348printf %s "checking host system type... " >&6; }
3349if test ${ac_cv_host+y}
3350then :
3351  printf %s "(cached) " >&6
3352else $as_nop
3353  if test "x$host_alias" = x; then
3354  ac_cv_host=$ac_cv_build
3355else
3356  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3357    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3358fi
3359
3360fi
3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3362printf "%s\n" "$ac_cv_host" >&6; }
3363case $ac_cv_host in
3364*-*-*) ;;
3365*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3366esac
3367host=$ac_cv_host
3368ac_save_IFS=$IFS; IFS='-'
3369set x $ac_cv_host
3370shift
3371host_cpu=$1
3372host_vendor=$2
3373shift; shift
3374# Remember, the first character of IFS is used to create $*,
3375# except with old shells:
3376host_os=$*
3377IFS=$ac_save_IFS
3378case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3379
3380
3381# Backslashify metacharacters that are still active within
3382# double-quoted strings.
3383sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3384
3385# Same as above, but do not quote variable references.
3386double_quote_subst='s/\(["`\\]\)/\\\1/g'
3387
3388# Sed substitution to delay expansion of an escaped shell variable in a
3389# double_quote_subst'ed string.
3390delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3391
3392# Sed substitution to delay expansion of an escaped single quote.
3393delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3394
3395# Sed substitution to avoid accidental globbing in evaled expressions
3396no_glob_subst='s/\*/\\\*/g'
3397
3398ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3399ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3400ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3401
3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3403printf %s "checking how to print strings... " >&6; }
3404# Test print first, because it will be a builtin if present.
3405if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3406   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3407  ECHO='print -r --'
3408elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3409  ECHO='printf %s\n'
3410else
3411  # Use this function as a fallback that always works.
3412  func_fallback_echo ()
3413  {
3414    eval 'cat <<_LTECHO_EOF
3415$1
3416_LTECHO_EOF'
3417  }
3418  ECHO='func_fallback_echo'
3419fi
3420
3421# func_echo_all arg...
3422# Invoke $ECHO with all args, space-separated.
3423func_echo_all ()
3424{
3425    $ECHO ""
3426}
3427
3428case $ECHO in
3429  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3430printf "%s\n" "printf" >&6; } ;;
3431  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3432printf "%s\n" "print -r" >&6; } ;;
3433  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3434printf "%s\n" "cat" >&6; } ;;
3435esac
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459DEPDIR="${am__leading_dot}deps"
3460
3461ac_config_commands="$ac_config_commands depfiles"
3462
3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3464printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3465cat > confinc.mk << 'END'
3466am__doit:
3467	@echo this is the am__doit target >confinc.out
3468.PHONY: am__doit
3469END
3470am__include="#"
3471am__quote=
3472# BSD make does it like this.
3473echo '.include "confinc.mk" # ignored' > confmf.BSD
3474# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3475echo 'include confinc.mk # ignored' > confmf.GNU
3476_am_result=no
3477for s in GNU BSD; do
3478  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3479   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }
3483  case $?:`cat confinc.out 2>/dev/null` in #(
3484  '0:this is the am__doit target') :
3485    case $s in #(
3486  BSD) :
3487    am__include='.include' am__quote='"' ;; #(
3488  *) :
3489    am__include='include' am__quote='' ;;
3490esac ;; #(
3491  *) :
3492     ;;
3493esac
3494  if test "$am__include" != "#"; then
3495    _am_result="yes ($s style)"
3496    break
3497  fi
3498done
3499rm -f confinc.* confmf.*
3500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3501printf "%s\n" "${_am_result}" >&6; }
3502
3503# Check whether --enable-dependency-tracking was given.
3504if test ${enable_dependency_tracking+y}
3505then :
3506  enableval=$enable_dependency_tracking;
3507fi
3508
3509if test "x$enable_dependency_tracking" != xno; then
3510  am_depcomp="$ac_aux_dir/depcomp"
3511  AMDEPBACKSLASH='\'
3512  am__nodep='_no'
3513fi
3514 if test "x$enable_dependency_tracking" != xno; then
3515  AMDEP_TRUE=
3516  AMDEP_FALSE='#'
3517else
3518  AMDEP_TRUE='#'
3519  AMDEP_FALSE=
3520fi
3521
3522
3523ac_ext=c
3524ac_cpp='$CPP $CPPFLAGS'
3525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528if test -n "$ac_tool_prefix"; then
3529  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3530set dummy ${ac_tool_prefix}gcc; ac_word=$2
3531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532printf %s "checking for $ac_word... " >&6; }
3533if test ${ac_cv_prog_CC+y}
3534then :
3535  printf %s "(cached) " >&6
3536else $as_nop
3537  if test -n "$CC"; then
3538  ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  case $as_dir in #(((
3545    '') as_dir=./ ;;
3546    */) ;;
3547    *) as_dir=$as_dir/ ;;
3548  esac
3549    for ac_exec_ext in '' $ac_executable_extensions; do
3550  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3551    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3552    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3553    break 2
3554  fi
3555done
3556  done
3557IFS=$as_save_IFS
3558
3559fi
3560fi
3561CC=$ac_cv_prog_CC
3562if test -n "$CC"; then
3563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564printf "%s\n" "$CC" >&6; }
3565else
3566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567printf "%s\n" "no" >&6; }
3568fi
3569
3570
3571fi
3572if test -z "$ac_cv_prog_CC"; then
3573  ac_ct_CC=$CC
3574  # Extract the first word of "gcc", so it can be a program name with args.
3575set dummy gcc; ac_word=$2
3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577printf %s "checking for $ac_word... " >&6; }
3578if test ${ac_cv_prog_ac_ct_CC+y}
3579then :
3580  printf %s "(cached) " >&6
3581else $as_nop
3582  if test -n "$ac_ct_CC"; then
3583  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  case $as_dir in #(((
3590    '') as_dir=./ ;;
3591    */) ;;
3592    *) as_dir=$as_dir/ ;;
3593  esac
3594    for ac_exec_ext in '' $ac_executable_extensions; do
3595  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3596    ac_cv_prog_ac_ct_CC="gcc"
3597    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3598    break 2
3599  fi
3600done
3601  done
3602IFS=$as_save_IFS
3603
3604fi
3605fi
3606ac_ct_CC=$ac_cv_prog_ac_ct_CC
3607if test -n "$ac_ct_CC"; then
3608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3609printf "%s\n" "$ac_ct_CC" >&6; }
3610else
3611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612printf "%s\n" "no" >&6; }
3613fi
3614
3615  if test "x$ac_ct_CC" = x; then
3616    CC=""
3617  else
3618    case $cross_compiling:$ac_tool_warned in
3619yes:)
3620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3621printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3622ac_tool_warned=yes ;;
3623esac
3624    CC=$ac_ct_CC
3625  fi
3626else
3627  CC="$ac_cv_prog_CC"
3628fi
3629
3630if test -z "$CC"; then
3631          if test -n "$ac_tool_prefix"; then
3632    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3633set dummy ${ac_tool_prefix}cc; ac_word=$2
3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635printf %s "checking for $ac_word... " >&6; }
3636if test ${ac_cv_prog_CC+y}
3637then :
3638  printf %s "(cached) " >&6
3639else $as_nop
3640  if test -n "$CC"; then
3641  ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  case $as_dir in #(((
3648    '') as_dir=./ ;;
3649    */) ;;
3650    *) as_dir=$as_dir/ ;;
3651  esac
3652    for ac_exec_ext in '' $ac_executable_extensions; do
3653  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654    ac_cv_prog_CC="${ac_tool_prefix}cc"
3655    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656    break 2
3657  fi
3658done
3659  done
3660IFS=$as_save_IFS
3661
3662fi
3663fi
3664CC=$ac_cv_prog_CC
3665if test -n "$CC"; then
3666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667printf "%s\n" "$CC" >&6; }
3668else
3669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670printf "%s\n" "no" >&6; }
3671fi
3672
3673
3674  fi
3675fi
3676if test -z "$CC"; then
3677  # Extract the first word of "cc", so it can be a program name with args.
3678set dummy cc; ac_word=$2
3679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680printf %s "checking for $ac_word... " >&6; }
3681if test ${ac_cv_prog_CC+y}
3682then :
3683  printf %s "(cached) " >&6
3684else $as_nop
3685  if test -n "$CC"; then
3686  ac_cv_prog_CC="$CC" # Let the user override the test.
3687else
3688  ac_prog_rejected=no
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692  IFS=$as_save_IFS
3693  case $as_dir in #(((
3694    '') as_dir=./ ;;
3695    */) ;;
3696    *) as_dir=$as_dir/ ;;
3697  esac
3698    for ac_exec_ext in '' $ac_executable_extensions; do
3699  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3700    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3701       ac_prog_rejected=yes
3702       continue
3703     fi
3704    ac_cv_prog_CC="cc"
3705    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3706    break 2
3707  fi
3708done
3709  done
3710IFS=$as_save_IFS
3711
3712if test $ac_prog_rejected = yes; then
3713  # We found a bogon in the path, so make sure we never use it.
3714  set dummy $ac_cv_prog_CC
3715  shift
3716  if test $# != 0; then
3717    # We chose a different compiler from the bogus one.
3718    # However, it has the same basename, so the bogon will be chosen
3719    # first if we set CC to just the basename; use the full file name.
3720    shift
3721    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3722  fi
3723fi
3724fi
3725fi
3726CC=$ac_cv_prog_CC
3727if test -n "$CC"; then
3728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729printf "%s\n" "$CC" >&6; }
3730else
3731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732printf "%s\n" "no" >&6; }
3733fi
3734
3735
3736fi
3737if test -z "$CC"; then
3738  if test -n "$ac_tool_prefix"; then
3739  for ac_prog in cl.exe
3740  do
3741    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744printf %s "checking for $ac_word... " >&6; }
3745if test ${ac_cv_prog_CC+y}
3746then :
3747  printf %s "(cached) " >&6
3748else $as_nop
3749  if test -n "$CC"; then
3750  ac_cv_prog_CC="$CC" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755  IFS=$as_save_IFS
3756  case $as_dir in #(((
3757    '') as_dir=./ ;;
3758    */) ;;
3759    *) as_dir=$as_dir/ ;;
3760  esac
3761    for ac_exec_ext in '' $ac_executable_extensions; do
3762  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3763    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3765    break 2
3766  fi
3767done
3768  done
3769IFS=$as_save_IFS
3770
3771fi
3772fi
3773CC=$ac_cv_prog_CC
3774if test -n "$CC"; then
3775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776printf "%s\n" "$CC" >&6; }
3777else
3778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779printf "%s\n" "no" >&6; }
3780fi
3781
3782
3783    test -n "$CC" && break
3784  done
3785fi
3786if test -z "$CC"; then
3787  ac_ct_CC=$CC
3788  for ac_prog in cl.exe
3789do
3790  # Extract the first word of "$ac_prog", so it can be a program name with args.
3791set dummy $ac_prog; ac_word=$2
3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793printf %s "checking for $ac_word... " >&6; }
3794if test ${ac_cv_prog_ac_ct_CC+y}
3795then :
3796  printf %s "(cached) " >&6
3797else $as_nop
3798  if test -n "$ac_ct_CC"; then
3799  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  case $as_dir in #(((
3806    '') as_dir=./ ;;
3807    */) ;;
3808    *) as_dir=$as_dir/ ;;
3809  esac
3810    for ac_exec_ext in '' $ac_executable_extensions; do
3811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3812    ac_cv_prog_ac_ct_CC="$ac_prog"
3813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3814    break 2
3815  fi
3816done
3817  done
3818IFS=$as_save_IFS
3819
3820fi
3821fi
3822ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823if test -n "$ac_ct_CC"; then
3824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825printf "%s\n" "$ac_ct_CC" >&6; }
3826else
3827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828printf "%s\n" "no" >&6; }
3829fi
3830
3831
3832  test -n "$ac_ct_CC" && break
3833done
3834
3835  if test "x$ac_ct_CC" = x; then
3836    CC=""
3837  else
3838    case $cross_compiling:$ac_tool_warned in
3839yes:)
3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842ac_tool_warned=yes ;;
3843esac
3844    CC=$ac_ct_CC
3845  fi
3846fi
3847
3848fi
3849if test -z "$CC"; then
3850  if test -n "$ac_tool_prefix"; then
3851  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3852set dummy ${ac_tool_prefix}clang; ac_word=$2
3853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854printf %s "checking for $ac_word... " >&6; }
3855if test ${ac_cv_prog_CC+y}
3856then :
3857  printf %s "(cached) " >&6
3858else $as_nop
3859  if test -n "$CC"; then
3860  ac_cv_prog_CC="$CC" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865  IFS=$as_save_IFS
3866  case $as_dir in #(((
3867    '') as_dir=./ ;;
3868    */) ;;
3869    *) as_dir=$as_dir/ ;;
3870  esac
3871    for ac_exec_ext in '' $ac_executable_extensions; do
3872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3873    ac_cv_prog_CC="${ac_tool_prefix}clang"
3874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3875    break 2
3876  fi
3877done
3878  done
3879IFS=$as_save_IFS
3880
3881fi
3882fi
3883CC=$ac_cv_prog_CC
3884if test -n "$CC"; then
3885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3886printf "%s\n" "$CC" >&6; }
3887else
3888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889printf "%s\n" "no" >&6; }
3890fi
3891
3892
3893fi
3894if test -z "$ac_cv_prog_CC"; then
3895  ac_ct_CC=$CC
3896  # Extract the first word of "clang", so it can be a program name with args.
3897set dummy clang; ac_word=$2
3898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899printf %s "checking for $ac_word... " >&6; }
3900if test ${ac_cv_prog_ac_ct_CC+y}
3901then :
3902  printf %s "(cached) " >&6
3903else $as_nop
3904  if test -n "$ac_ct_CC"; then
3905  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910  IFS=$as_save_IFS
3911  case $as_dir in #(((
3912    '') as_dir=./ ;;
3913    */) ;;
3914    *) as_dir=$as_dir/ ;;
3915  esac
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3918    ac_cv_prog_ac_ct_CC="clang"
3919    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3920    break 2
3921  fi
3922done
3923  done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928ac_ct_CC=$ac_cv_prog_ac_ct_CC
3929if test -n "$ac_ct_CC"; then
3930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3931printf "%s\n" "$ac_ct_CC" >&6; }
3932else
3933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934printf "%s\n" "no" >&6; }
3935fi
3936
3937  if test "x$ac_ct_CC" = x; then
3938    CC=""
3939  else
3940    case $cross_compiling:$ac_tool_warned in
3941yes:)
3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944ac_tool_warned=yes ;;
3945esac
3946    CC=$ac_ct_CC
3947  fi
3948else
3949  CC="$ac_cv_prog_CC"
3950fi
3951
3952fi
3953
3954
3955test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3957as_fn_error $? "no acceptable C compiler found in \$PATH
3958See \`config.log' for more details" "$LINENO" 5; }
3959
3960# Provide some information about the compiler.
3961printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3962set X $ac_compile
3963ac_compiler=$2
3964for ac_option in --version -v -V -qversion -version; do
3965  { { ac_try="$ac_compiler $ac_option >&5"
3966case "(($ac_try" in
3967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968  *) ac_try_echo=$ac_try;;
3969esac
3970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971printf "%s\n" "$ac_try_echo"; } >&5
3972  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3973  ac_status=$?
3974  if test -s conftest.err; then
3975    sed '10a\
3976... rest of stderr output deleted ...
3977         10q' conftest.err >conftest.er1
3978    cat conftest.er1 >&5
3979  fi
3980  rm -f conftest.er1 conftest.err
3981  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982  test $ac_status = 0; }
3983done
3984
3985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987
3988int
3989main (void)
3990{
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996ac_clean_files_save=$ac_clean_files
3997ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3998# Try to create an executable without -o first, disregard a.out.
3999# It will help us diagnose broken compilers, and finding out an intuition
4000# of exeext.
4001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4002printf %s "checking whether the C compiler works... " >&6; }
4003ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4004
4005# The possible output files:
4006ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4007
4008ac_rmfiles=
4009for ac_file in $ac_files
4010do
4011  case $ac_file in
4012    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4014  esac
4015done
4016rm -f $ac_rmfiles
4017
4018if { { ac_try="$ac_link_default"
4019case "(($ac_try" in
4020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021  *) ac_try_echo=$ac_try;;
4022esac
4023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024printf "%s\n" "$ac_try_echo"; } >&5
4025  (eval "$ac_link_default") 2>&5
4026  ac_status=$?
4027  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028  test $ac_status = 0; }
4029then :
4030  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4031# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4032# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4033# so that the user can short-circuit this test for compilers unknown to
4034# Autoconf.
4035for ac_file in $ac_files ''
4036do
4037  test -f "$ac_file" || continue
4038  case $ac_file in
4039    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4040	;;
4041    [ab].out )
4042	# We found the default executable, but exeext='' is most
4043	# certainly right.
4044	break;;
4045    *.* )
4046	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4047	then :; else
4048	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4049	fi
4050	# We set ac_cv_exeext here because the later test for it is not
4051	# safe: cross compilers may not add the suffix if given an `-o'
4052	# argument, so we may need to know it at that point already.
4053	# Even if this section looks crufty: it has the advantage of
4054	# actually working.
4055	break;;
4056    * )
4057	break;;
4058  esac
4059done
4060test "$ac_cv_exeext" = no && ac_cv_exeext=
4061
4062else $as_nop
4063  ac_file=''
4064fi
4065if test -z "$ac_file"
4066then :
4067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068printf "%s\n" "no" >&6; }
4069printf "%s\n" "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4074as_fn_error 77 "C compiler cannot create executables
4075See \`config.log' for more details" "$LINENO" 5; }
4076else $as_nop
4077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4078printf "%s\n" "yes" >&6; }
4079fi
4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4081printf %s "checking for C compiler default output file name... " >&6; }
4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4083printf "%s\n" "$ac_file" >&6; }
4084ac_exeext=$ac_cv_exeext
4085
4086rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4087ac_clean_files=$ac_clean_files_save
4088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4089printf %s "checking for suffix of executables... " >&6; }
4090if { { ac_try="$ac_link"
4091case "(($ac_try" in
4092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093  *) ac_try_echo=$ac_try;;
4094esac
4095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096printf "%s\n" "$ac_try_echo"; } >&5
4097  (eval "$ac_link") 2>&5
4098  ac_status=$?
4099  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100  test $ac_status = 0; }
4101then :
4102  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4103# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4104# work properly (i.e., refer to `conftest.exe'), while it won't with
4105# `rm'.
4106for ac_file in conftest.exe conftest conftest.*; do
4107  test -f "$ac_file" || continue
4108  case $ac_file in
4109    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4110    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4111	  break;;
4112    * ) break;;
4113  esac
4114done
4115else $as_nop
4116  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4118as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4119See \`config.log' for more details" "$LINENO" 5; }
4120fi
4121rm -f conftest conftest$ac_cv_exeext
4122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4123printf "%s\n" "$ac_cv_exeext" >&6; }
4124
4125rm -f conftest.$ac_ext
4126EXEEXT=$ac_cv_exeext
4127ac_exeext=$EXEEXT
4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130#include <stdio.h>
4131int
4132main (void)
4133{
4134FILE *f = fopen ("conftest.out", "w");
4135 return ferror (f) || fclose (f) != 0;
4136
4137  ;
4138  return 0;
4139}
4140_ACEOF
4141ac_clean_files="$ac_clean_files conftest.out"
4142# Check that the compiler produces executables we can run.  If not, either
4143# the compiler is broken, or we cross compile.
4144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4145printf %s "checking whether we are cross compiling... " >&6; }
4146if test "$cross_compiling" != yes; then
4147  { { ac_try="$ac_link"
4148case "(($ac_try" in
4149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150  *) ac_try_echo=$ac_try;;
4151esac
4152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153printf "%s\n" "$ac_try_echo"; } >&5
4154  (eval "$ac_link") 2>&5
4155  ac_status=$?
4156  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157  test $ac_status = 0; }
4158  if { ac_try='./conftest$ac_cv_exeext'
4159  { { case "(($ac_try" in
4160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161  *) ac_try_echo=$ac_try;;
4162esac
4163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164printf "%s\n" "$ac_try_echo"; } >&5
4165  (eval "$ac_try") 2>&5
4166  ac_status=$?
4167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168  test $ac_status = 0; }; }; then
4169    cross_compiling=no
4170  else
4171    if test "$cross_compiling" = maybe; then
4172	cross_compiling=yes
4173    else
4174	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4176as_fn_error 77 "cannot run C compiled programs.
4177If you meant to cross compile, use \`--host'.
4178See \`config.log' for more details" "$LINENO" 5; }
4179    fi
4180  fi
4181fi
4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4183printf "%s\n" "$cross_compiling" >&6; }
4184
4185rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4186ac_clean_files=$ac_clean_files_save
4187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4188printf %s "checking for suffix of object files... " >&6; }
4189if test ${ac_cv_objext+y}
4190then :
4191  printf %s "(cached) " >&6
4192else $as_nop
4193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194/* end confdefs.h.  */
4195
4196int
4197main (void)
4198{
4199
4200  ;
4201  return 0;
4202}
4203_ACEOF
4204rm -f conftest.o conftest.obj
4205if { { ac_try="$ac_compile"
4206case "(($ac_try" in
4207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208  *) ac_try_echo=$ac_try;;
4209esac
4210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4211printf "%s\n" "$ac_try_echo"; } >&5
4212  (eval "$ac_compile") 2>&5
4213  ac_status=$?
4214  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215  test $ac_status = 0; }
4216then :
4217  for ac_file in conftest.o conftest.obj conftest.*; do
4218  test -f "$ac_file" || continue;
4219  case $ac_file in
4220    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4221    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4222       break;;
4223  esac
4224done
4225else $as_nop
4226  printf "%s\n" "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4230printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4231as_fn_error $? "cannot compute suffix of object files: cannot compile
4232See \`config.log' for more details" "$LINENO" 5; }
4233fi
4234rm -f conftest.$ac_cv_objext conftest.$ac_ext
4235fi
4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4237printf "%s\n" "$ac_cv_objext" >&6; }
4238OBJEXT=$ac_cv_objext
4239ac_objext=$OBJEXT
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4241printf %s "checking whether the compiler supports GNU C... " >&6; }
4242if test ${ac_cv_c_compiler_gnu+y}
4243then :
4244  printf %s "(cached) " >&6
4245else $as_nop
4246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247/* end confdefs.h.  */
4248
4249int
4250main (void)
4251{
4252#ifndef __GNUC__
4253       choke me
4254#endif
4255
4256  ;
4257  return 0;
4258}
4259_ACEOF
4260if ac_fn_c_try_compile "$LINENO"
4261then :
4262  ac_compiler_gnu=yes
4263else $as_nop
4264  ac_compiler_gnu=no
4265fi
4266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4267ac_cv_c_compiler_gnu=$ac_compiler_gnu
4268
4269fi
4270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4271printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274if test $ac_compiler_gnu = yes; then
4275  GCC=yes
4276else
4277  GCC=
4278fi
4279ac_test_CFLAGS=${CFLAGS+y}
4280ac_save_CFLAGS=$CFLAGS
4281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4282printf %s "checking whether $CC accepts -g... " >&6; }
4283if test ${ac_cv_prog_cc_g+y}
4284then :
4285  printf %s "(cached) " >&6
4286else $as_nop
4287  ac_save_c_werror_flag=$ac_c_werror_flag
4288   ac_c_werror_flag=yes
4289   ac_cv_prog_cc_g=no
4290   CFLAGS="-g"
4291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292/* end confdefs.h.  */
4293
4294int
4295main (void)
4296{
4297
4298  ;
4299  return 0;
4300}
4301_ACEOF
4302if ac_fn_c_try_compile "$LINENO"
4303then :
4304  ac_cv_prog_cc_g=yes
4305else $as_nop
4306  CFLAGS=""
4307      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309
4310int
4311main (void)
4312{
4313
4314  ;
4315  return 0;
4316}
4317_ACEOF
4318if ac_fn_c_try_compile "$LINENO"
4319then :
4320
4321else $as_nop
4322  ac_c_werror_flag=$ac_save_c_werror_flag
4323	 CFLAGS="-g"
4324	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h.  */
4326
4327int
4328main (void)
4329{
4330
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335if ac_fn_c_try_compile "$LINENO"
4336then :
4337  ac_cv_prog_cc_g=yes
4338fi
4339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4340fi
4341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4344   ac_c_werror_flag=$ac_save_c_werror_flag
4345fi
4346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4347printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4348if test $ac_test_CFLAGS; then
4349  CFLAGS=$ac_save_CFLAGS
4350elif test $ac_cv_prog_cc_g = yes; then
4351  if test "$GCC" = yes; then
4352    CFLAGS="-g -O2"
4353  else
4354    CFLAGS="-g"
4355  fi
4356else
4357  if test "$GCC" = yes; then
4358    CFLAGS="-O2"
4359  else
4360    CFLAGS=
4361  fi
4362fi
4363ac_prog_cc_stdc=no
4364if test x$ac_prog_cc_stdc = xno
4365then :
4366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4367printf %s "checking for $CC option to enable C11 features... " >&6; }
4368if test ${ac_cv_prog_cc_c11+y}
4369then :
4370  printf %s "(cached) " >&6
4371else $as_nop
4372  ac_cv_prog_cc_c11=no
4373ac_save_CC=$CC
4374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375/* end confdefs.h.  */
4376$ac_c_conftest_c11_program
4377_ACEOF
4378for ac_arg in '' -std=gnu11
4379do
4380  CC="$ac_save_CC $ac_arg"
4381  if ac_fn_c_try_compile "$LINENO"
4382then :
4383  ac_cv_prog_cc_c11=$ac_arg
4384fi
4385rm -f core conftest.err conftest.$ac_objext conftest.beam
4386  test "x$ac_cv_prog_cc_c11" != "xno" && break
4387done
4388rm -f conftest.$ac_ext
4389CC=$ac_save_CC
4390fi
4391
4392if test "x$ac_cv_prog_cc_c11" = xno
4393then :
4394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395printf "%s\n" "unsupported" >&6; }
4396else $as_nop
4397  if test "x$ac_cv_prog_cc_c11" = x
4398then :
4399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4400printf "%s\n" "none needed" >&6; }
4401else $as_nop
4402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4403printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4404     CC="$CC $ac_cv_prog_cc_c11"
4405fi
4406  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4407  ac_prog_cc_stdc=c11
4408fi
4409fi
4410if test x$ac_prog_cc_stdc = xno
4411then :
4412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4413printf %s "checking for $CC option to enable C99 features... " >&6; }
4414if test ${ac_cv_prog_cc_c99+y}
4415then :
4416  printf %s "(cached) " >&6
4417else $as_nop
4418  ac_cv_prog_cc_c99=no
4419ac_save_CC=$CC
4420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421/* end confdefs.h.  */
4422$ac_c_conftest_c99_program
4423_ACEOF
4424for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4425do
4426  CC="$ac_save_CC $ac_arg"
4427  if ac_fn_c_try_compile "$LINENO"
4428then :
4429  ac_cv_prog_cc_c99=$ac_arg
4430fi
4431rm -f core conftest.err conftest.$ac_objext conftest.beam
4432  test "x$ac_cv_prog_cc_c99" != "xno" && break
4433done
4434rm -f conftest.$ac_ext
4435CC=$ac_save_CC
4436fi
4437
4438if test "x$ac_cv_prog_cc_c99" = xno
4439then :
4440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4441printf "%s\n" "unsupported" >&6; }
4442else $as_nop
4443  if test "x$ac_cv_prog_cc_c99" = x
4444then :
4445  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4446printf "%s\n" "none needed" >&6; }
4447else $as_nop
4448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4449printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4450     CC="$CC $ac_cv_prog_cc_c99"
4451fi
4452  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4453  ac_prog_cc_stdc=c99
4454fi
4455fi
4456if test x$ac_prog_cc_stdc = xno
4457then :
4458  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4459printf %s "checking for $CC option to enable C89 features... " >&6; }
4460if test ${ac_cv_prog_cc_c89+y}
4461then :
4462  printf %s "(cached) " >&6
4463else $as_nop
4464  ac_cv_prog_cc_c89=no
4465ac_save_CC=$CC
4466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468$ac_c_conftest_c89_program
4469_ACEOF
4470for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4471do
4472  CC="$ac_save_CC $ac_arg"
4473  if ac_fn_c_try_compile "$LINENO"
4474then :
4475  ac_cv_prog_cc_c89=$ac_arg
4476fi
4477rm -f core conftest.err conftest.$ac_objext conftest.beam
4478  test "x$ac_cv_prog_cc_c89" != "xno" && break
4479done
4480rm -f conftest.$ac_ext
4481CC=$ac_save_CC
4482fi
4483
4484if test "x$ac_cv_prog_cc_c89" = xno
4485then :
4486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4487printf "%s\n" "unsupported" >&6; }
4488else $as_nop
4489  if test "x$ac_cv_prog_cc_c89" = x
4490then :
4491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4492printf "%s\n" "none needed" >&6; }
4493else $as_nop
4494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4495printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4496     CC="$CC $ac_cv_prog_cc_c89"
4497fi
4498  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4499  ac_prog_cc_stdc=c89
4500fi
4501fi
4502
4503ac_ext=c
4504ac_cpp='$CPP $CPPFLAGS'
4505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508
4509
4510  ac_ext=c
4511ac_cpp='$CPP $CPPFLAGS'
4512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4516printf %s "checking whether $CC understands -c and -o together... " >&6; }
4517if test ${am_cv_prog_cc_c_o+y}
4518then :
4519  printf %s "(cached) " >&6
4520else $as_nop
4521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h.  */
4523
4524int
4525main (void)
4526{
4527
4528  ;
4529  return 0;
4530}
4531_ACEOF
4532  # Make sure it works both with $CC and with simple cc.
4533  # Following AC_PROG_CC_C_O, we do the test twice because some
4534  # compilers refuse to overwrite an existing .o file with -o,
4535  # though they will create one.
4536  am_cv_prog_cc_c_o=yes
4537  for am_i in 1 2; do
4538    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4539   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); } \
4543         && test -f conftest2.$ac_objext; then
4544      : OK
4545    else
4546      am_cv_prog_cc_c_o=no
4547      break
4548    fi
4549  done
4550  rm -f core conftest*
4551  unset am_i
4552fi
4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4554printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4555if test "$am_cv_prog_cc_c_o" != yes; then
4556   # Losing compiler, so override with the script.
4557   # FIXME: It is wrong to rewrite CC.
4558   # But if we don't then we get into trouble of one sort or another.
4559   # A longer-term fix would be to have automake use am__CC in this case,
4560   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4561   CC="$am_aux_dir/compile $CC"
4562fi
4563ac_ext=c
4564ac_cpp='$CPP $CPPFLAGS'
4565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568
4569
4570depcc="$CC"   am_compiler_list=
4571
4572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4573printf %s "checking dependency style of $depcc... " >&6; }
4574if test ${am_cv_CC_dependencies_compiler_type+y}
4575then :
4576  printf %s "(cached) " >&6
4577else $as_nop
4578  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4579  # We make a subdir and do the tests there.  Otherwise we can end up
4580  # making bogus files that we don't know about and never remove.  For
4581  # instance it was reported that on HP-UX the gcc test will end up
4582  # making a dummy file named 'D' -- because '-MD' means "put the output
4583  # in D".
4584  rm -rf conftest.dir
4585  mkdir conftest.dir
4586  # Copy depcomp to subdir because otherwise we won't find it if we're
4587  # using a relative directory.
4588  cp "$am_depcomp" conftest.dir
4589  cd conftest.dir
4590  # We will build objects and dependencies in a subdirectory because
4591  # it helps to detect inapplicable dependency modes.  For instance
4592  # both Tru64's cc and ICC support -MD to output dependencies as a
4593  # side effect of compilation, but ICC will put the dependencies in
4594  # the current directory while Tru64 will put them in the object
4595  # directory.
4596  mkdir sub
4597
4598  am_cv_CC_dependencies_compiler_type=none
4599  if test "$am_compiler_list" = ""; then
4600     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4601  fi
4602  am__universal=false
4603  case " $depcc " in #(
4604     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4605     esac
4606
4607  for depmode in $am_compiler_list; do
4608    # Setup a source with many dependencies, because some compilers
4609    # like to wrap large dependency lists on column 80 (with \), and
4610    # we should not choose a depcomp mode which is confused by this.
4611    #
4612    # We need to recreate these files for each test, as the compiler may
4613    # overwrite some of them when testing with obscure command lines.
4614    # This happens at least with the AIX C compiler.
4615    : > sub/conftest.c
4616    for i in 1 2 3 4 5 6; do
4617      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4618      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4619      # Solaris 10 /bin/sh.
4620      echo '/* dummy */' > sub/conftst$i.h
4621    done
4622    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4623
4624    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4625    # mode.  It turns out that the SunPro C++ compiler does not properly
4626    # handle '-M -o', and we need to detect this.  Also, some Intel
4627    # versions had trouble with output in subdirs.
4628    am__obj=sub/conftest.${OBJEXT-o}
4629    am__minus_obj="-o $am__obj"
4630    case $depmode in
4631    gcc)
4632      # This depmode causes a compiler race in universal mode.
4633      test "$am__universal" = false || continue
4634      ;;
4635    nosideeffect)
4636      # After this tag, mechanisms are not by side-effect, so they'll
4637      # only be used when explicitly requested.
4638      if test "x$enable_dependency_tracking" = xyes; then
4639	continue
4640      else
4641	break
4642      fi
4643      ;;
4644    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4645      # This compiler won't grok '-c -o', but also, the minuso test has
4646      # not run yet.  These depmodes are late enough in the game, and
4647      # so weak that their functioning should not be impacted.
4648      am__obj=conftest.${OBJEXT-o}
4649      am__minus_obj=
4650      ;;
4651    none) break ;;
4652    esac
4653    if depmode=$depmode \
4654       source=sub/conftest.c object=$am__obj \
4655       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4656       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4657         >/dev/null 2>conftest.err &&
4658       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4659       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4660       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4661       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4662      # icc doesn't choke on unknown options, it will just issue warnings
4663      # or remarks (even with -Werror).  So we grep stderr for any message
4664      # that says an option was ignored or not supported.
4665      # When given -MP, icc 7.0 and 7.1 complain thusly:
4666      #   icc: Command line warning: ignoring option '-M'; no argument required
4667      # The diagnosis changed in icc 8.0:
4668      #   icc: Command line remark: option '-MP' not supported
4669      if (grep 'ignoring option' conftest.err ||
4670          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4671        am_cv_CC_dependencies_compiler_type=$depmode
4672        break
4673      fi
4674    fi
4675  done
4676
4677  cd ..
4678  rm -rf conftest.dir
4679else
4680  am_cv_CC_dependencies_compiler_type=none
4681fi
4682
4683fi
4684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4685printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4686CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4687
4688 if
4689  test "x$enable_dependency_tracking" != xno \
4690  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4691  am__fastdepCC_TRUE=
4692  am__fastdepCC_FALSE='#'
4693else
4694  am__fastdepCC_TRUE='#'
4695  am__fastdepCC_FALSE=
4696fi
4697
4698
4699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4700printf %s "checking for a sed that does not truncate output... " >&6; }
4701if test ${ac_cv_path_SED+y}
4702then :
4703  printf %s "(cached) " >&6
4704else $as_nop
4705            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4706     for ac_i in 1 2 3 4 5 6 7; do
4707       ac_script="$ac_script$as_nl$ac_script"
4708     done
4709     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4710     { ac_script=; unset ac_script;}
4711     if test -z "$SED"; then
4712  ac_path_SED_found=false
4713  # Loop through the user's path and test for each of PROGNAME-LIST
4714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717  IFS=$as_save_IFS
4718  case $as_dir in #(((
4719    '') as_dir=./ ;;
4720    */) ;;
4721    *) as_dir=$as_dir/ ;;
4722  esac
4723    for ac_prog in sed gsed
4724   do
4725    for ac_exec_ext in '' $ac_executable_extensions; do
4726      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4727      as_fn_executable_p "$ac_path_SED" || continue
4728# Check for GNU ac_path_SED and select it if it is found.
4729  # Check for GNU $ac_path_SED
4730case `"$ac_path_SED" --version 2>&1` in
4731*GNU*)
4732  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4733*)
4734  ac_count=0
4735  printf %s 0123456789 >"conftest.in"
4736  while :
4737  do
4738    cat "conftest.in" "conftest.in" >"conftest.tmp"
4739    mv "conftest.tmp" "conftest.in"
4740    cp "conftest.in" "conftest.nl"
4741    printf "%s\n" '' >> "conftest.nl"
4742    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4743    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4744    as_fn_arith $ac_count + 1 && ac_count=$as_val
4745    if test $ac_count -gt ${ac_path_SED_max-0}; then
4746      # Best one so far, save it but keep looking for a better one
4747      ac_cv_path_SED="$ac_path_SED"
4748      ac_path_SED_max=$ac_count
4749    fi
4750    # 10*(2^10) chars as input seems more than enough
4751    test $ac_count -gt 10 && break
4752  done
4753  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4754esac
4755
4756      $ac_path_SED_found && break 3
4757    done
4758  done
4759  done
4760IFS=$as_save_IFS
4761  if test -z "$ac_cv_path_SED"; then
4762    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4763  fi
4764else
4765  ac_cv_path_SED=$SED
4766fi
4767
4768fi
4769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4770printf "%s\n" "$ac_cv_path_SED" >&6; }
4771 SED="$ac_cv_path_SED"
4772  rm -f conftest.sed
4773
4774test -z "$SED" && SED=sed
4775Xsed="$SED -e 1s/^X//"
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4788printf %s "checking for grep that handles long lines and -e... " >&6; }
4789if test ${ac_cv_path_GREP+y}
4790then :
4791  printf %s "(cached) " >&6
4792else $as_nop
4793  if test -z "$GREP"; then
4794  ac_path_GREP_found=false
4795  # Loop through the user's path and test for each of PROGNAME-LIST
4796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798do
4799  IFS=$as_save_IFS
4800  case $as_dir in #(((
4801    '') as_dir=./ ;;
4802    */) ;;
4803    *) as_dir=$as_dir/ ;;
4804  esac
4805    for ac_prog in grep ggrep
4806   do
4807    for ac_exec_ext in '' $ac_executable_extensions; do
4808      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4809      as_fn_executable_p "$ac_path_GREP" || continue
4810# Check for GNU ac_path_GREP and select it if it is found.
4811  # Check for GNU $ac_path_GREP
4812case `"$ac_path_GREP" --version 2>&1` in
4813*GNU*)
4814  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4815*)
4816  ac_count=0
4817  printf %s 0123456789 >"conftest.in"
4818  while :
4819  do
4820    cat "conftest.in" "conftest.in" >"conftest.tmp"
4821    mv "conftest.tmp" "conftest.in"
4822    cp "conftest.in" "conftest.nl"
4823    printf "%s\n" 'GREP' >> "conftest.nl"
4824    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4825    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4826    as_fn_arith $ac_count + 1 && ac_count=$as_val
4827    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4828      # Best one so far, save it but keep looking for a better one
4829      ac_cv_path_GREP="$ac_path_GREP"
4830      ac_path_GREP_max=$ac_count
4831    fi
4832    # 10*(2^10) chars as input seems more than enough
4833    test $ac_count -gt 10 && break
4834  done
4835  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4836esac
4837
4838      $ac_path_GREP_found && break 3
4839    done
4840  done
4841  done
4842IFS=$as_save_IFS
4843  if test -z "$ac_cv_path_GREP"; then
4844    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4845  fi
4846else
4847  ac_cv_path_GREP=$GREP
4848fi
4849
4850fi
4851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4852printf "%s\n" "$ac_cv_path_GREP" >&6; }
4853 GREP="$ac_cv_path_GREP"
4854
4855
4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4857printf %s "checking for egrep... " >&6; }
4858if test ${ac_cv_path_EGREP+y}
4859then :
4860  printf %s "(cached) " >&6
4861else $as_nop
4862  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4863   then ac_cv_path_EGREP="$GREP -E"
4864   else
4865     if test -z "$EGREP"; then
4866  ac_path_EGREP_found=false
4867  # Loop through the user's path and test for each of PROGNAME-LIST
4868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870do
4871  IFS=$as_save_IFS
4872  case $as_dir in #(((
4873    '') as_dir=./ ;;
4874    */) ;;
4875    *) as_dir=$as_dir/ ;;
4876  esac
4877    for ac_prog in egrep
4878   do
4879    for ac_exec_ext in '' $ac_executable_extensions; do
4880      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4881      as_fn_executable_p "$ac_path_EGREP" || continue
4882# Check for GNU ac_path_EGREP and select it if it is found.
4883  # Check for GNU $ac_path_EGREP
4884case `"$ac_path_EGREP" --version 2>&1` in
4885*GNU*)
4886  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4887*)
4888  ac_count=0
4889  printf %s 0123456789 >"conftest.in"
4890  while :
4891  do
4892    cat "conftest.in" "conftest.in" >"conftest.tmp"
4893    mv "conftest.tmp" "conftest.in"
4894    cp "conftest.in" "conftest.nl"
4895    printf "%s\n" 'EGREP' >> "conftest.nl"
4896    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898    as_fn_arith $ac_count + 1 && ac_count=$as_val
4899    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4900      # Best one so far, save it but keep looking for a better one
4901      ac_cv_path_EGREP="$ac_path_EGREP"
4902      ac_path_EGREP_max=$ac_count
4903    fi
4904    # 10*(2^10) chars as input seems more than enough
4905    test $ac_count -gt 10 && break
4906  done
4907  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908esac
4909
4910      $ac_path_EGREP_found && break 3
4911    done
4912  done
4913  done
4914IFS=$as_save_IFS
4915  if test -z "$ac_cv_path_EGREP"; then
4916    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917  fi
4918else
4919  ac_cv_path_EGREP=$EGREP
4920fi
4921
4922   fi
4923fi
4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4925printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4926 EGREP="$ac_cv_path_EGREP"
4927
4928
4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4930printf %s "checking for fgrep... " >&6; }
4931if test ${ac_cv_path_FGREP+y}
4932then :
4933  printf %s "(cached) " >&6
4934else $as_nop
4935  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4936   then ac_cv_path_FGREP="$GREP -F"
4937   else
4938     if test -z "$FGREP"; then
4939  ac_path_FGREP_found=false
4940  # Loop through the user's path and test for each of PROGNAME-LIST
4941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4943do
4944  IFS=$as_save_IFS
4945  case $as_dir in #(((
4946    '') as_dir=./ ;;
4947    */) ;;
4948    *) as_dir=$as_dir/ ;;
4949  esac
4950    for ac_prog in fgrep
4951   do
4952    for ac_exec_ext in '' $ac_executable_extensions; do
4953      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4954      as_fn_executable_p "$ac_path_FGREP" || continue
4955# Check for GNU ac_path_FGREP and select it if it is found.
4956  # Check for GNU $ac_path_FGREP
4957case `"$ac_path_FGREP" --version 2>&1` in
4958*GNU*)
4959  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4960*)
4961  ac_count=0
4962  printf %s 0123456789 >"conftest.in"
4963  while :
4964  do
4965    cat "conftest.in" "conftest.in" >"conftest.tmp"
4966    mv "conftest.tmp" "conftest.in"
4967    cp "conftest.in" "conftest.nl"
4968    printf "%s\n" 'FGREP' >> "conftest.nl"
4969    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971    as_fn_arith $ac_count + 1 && ac_count=$as_val
4972    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4973      # Best one so far, save it but keep looking for a better one
4974      ac_cv_path_FGREP="$ac_path_FGREP"
4975      ac_path_FGREP_max=$ac_count
4976    fi
4977    # 10*(2^10) chars as input seems more than enough
4978    test $ac_count -gt 10 && break
4979  done
4980  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981esac
4982
4983      $ac_path_FGREP_found && break 3
4984    done
4985  done
4986  done
4987IFS=$as_save_IFS
4988  if test -z "$ac_cv_path_FGREP"; then
4989    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990  fi
4991else
4992  ac_cv_path_FGREP=$FGREP
4993fi
4994
4995   fi
4996fi
4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4998printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4999 FGREP="$ac_cv_path_FGREP"
5000
5001
5002test -z "$GREP" && GREP=grep
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022# Check whether --with-gnu-ld was given.
5023if test ${with_gnu_ld+y}
5024then :
5025  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5026else $as_nop
5027  with_gnu_ld=no
5028fi
5029
5030ac_prog=ld
5031if test yes = "$GCC"; then
5032  # Check if gcc -print-prog-name=ld gives a path.
5033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5034printf %s "checking for ld used by $CC... " >&6; }
5035  case $host in
5036  *-*-mingw*)
5037    # gcc leaves a trailing carriage return, which upsets mingw
5038    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5039  *)
5040    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5041  esac
5042  case $ac_prog in
5043    # Accept absolute paths.
5044    [\\/]* | ?:[\\/]*)
5045      re_direlt='/[^/][^/]*/\.\./'
5046      # Canonicalize the pathname of ld
5047      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5048      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5049	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5050      done
5051      test -z "$LD" && LD=$ac_prog
5052      ;;
5053  "")
5054    # If it fails, then pretend we aren't using GCC.
5055    ac_prog=ld
5056    ;;
5057  *)
5058    # If it is relative, then search for the first ld in PATH.
5059    with_gnu_ld=unknown
5060    ;;
5061  esac
5062elif test yes = "$with_gnu_ld"; then
5063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5064printf %s "checking for GNU ld... " >&6; }
5065else
5066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5067printf %s "checking for non-GNU ld... " >&6; }
5068fi
5069if test ${lt_cv_path_LD+y}
5070then :
5071  printf %s "(cached) " >&6
5072else $as_nop
5073  if test -z "$LD"; then
5074  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5075  for ac_dir in $PATH; do
5076    IFS=$lt_save_ifs
5077    test -z "$ac_dir" && ac_dir=.
5078    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5079      lt_cv_path_LD=$ac_dir/$ac_prog
5080      # Check to see if the program is GNU ld.  I'd rather use --version,
5081      # but apparently some variants of GNU ld only accept -v.
5082      # Break only if it was the GNU/non-GNU ld that we prefer.
5083      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5084      *GNU* | *'with BFD'*)
5085	test no != "$with_gnu_ld" && break
5086	;;
5087      *)
5088	test yes != "$with_gnu_ld" && break
5089	;;
5090      esac
5091    fi
5092  done
5093  IFS=$lt_save_ifs
5094else
5095  lt_cv_path_LD=$LD # Let the user override the test with a path.
5096fi
5097fi
5098
5099LD=$lt_cv_path_LD
5100if test -n "$LD"; then
5101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5102printf "%s\n" "$LD" >&6; }
5103else
5104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105printf "%s\n" "no" >&6; }
5106fi
5107test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5109printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5110if test ${lt_cv_prog_gnu_ld+y}
5111then :
5112  printf %s "(cached) " >&6
5113else $as_nop
5114  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5115case `$LD -v 2>&1 </dev/null` in
5116*GNU* | *'with BFD'*)
5117  lt_cv_prog_gnu_ld=yes
5118  ;;
5119*)
5120  lt_cv_prog_gnu_ld=no
5121  ;;
5122esac
5123fi
5124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5125printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5126with_gnu_ld=$lt_cv_prog_gnu_ld
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5137printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5138if test ${lt_cv_path_NM+y}
5139then :
5140  printf %s "(cached) " >&6
5141else $as_nop
5142  if test -n "$NM"; then
5143  # Let the user override the test.
5144  lt_cv_path_NM=$NM
5145else
5146  lt_nm_to_check=${ac_tool_prefix}nm
5147  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5148    lt_nm_to_check="$lt_nm_to_check nm"
5149  fi
5150  for lt_tmp_nm in $lt_nm_to_check; do
5151    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5152    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5153      IFS=$lt_save_ifs
5154      test -z "$ac_dir" && ac_dir=.
5155      tmp_nm=$ac_dir/$lt_tmp_nm
5156      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5157	# Check to see if the nm accepts a BSD-compat flag.
5158	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5159	#   nm: unknown option "B" ignored
5160	# Tru64's nm complains that /dev/null is an invalid object file
5161	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5162	case $build_os in
5163	mingw*) lt_bad_file=conftest.nm/nofile ;;
5164	*) lt_bad_file=/dev/null ;;
5165	esac
5166	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5167	*$lt_bad_file* | *'Invalid file or object type'*)
5168	  lt_cv_path_NM="$tmp_nm -B"
5169	  break 2
5170	  ;;
5171	*)
5172	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5173	  */dev/null*)
5174	    lt_cv_path_NM="$tmp_nm -p"
5175	    break 2
5176	    ;;
5177	  *)
5178	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5179	    continue # so that we can try to find one that supports BSD flags
5180	    ;;
5181	  esac
5182	  ;;
5183	esac
5184      fi
5185    done
5186    IFS=$lt_save_ifs
5187  done
5188  : ${lt_cv_path_NM=no}
5189fi
5190fi
5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5192printf "%s\n" "$lt_cv_path_NM" >&6; }
5193if test no != "$lt_cv_path_NM"; then
5194  NM=$lt_cv_path_NM
5195else
5196  # Didn't find any BSD compatible name lister, look for dumpbin.
5197  if test -n "$DUMPBIN"; then :
5198    # Let the user override the test.
5199  else
5200    if test -n "$ac_tool_prefix"; then
5201  for ac_prog in dumpbin "link -dump"
5202  do
5203    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206printf %s "checking for $ac_word... " >&6; }
5207if test ${ac_cv_prog_DUMPBIN+y}
5208then :
5209  printf %s "(cached) " >&6
5210else $as_nop
5211  if test -n "$DUMPBIN"; then
5212  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217  IFS=$as_save_IFS
5218  case $as_dir in #(((
5219    '') as_dir=./ ;;
5220    */) ;;
5221    *) as_dir=$as_dir/ ;;
5222  esac
5223    for ac_exec_ext in '' $ac_executable_extensions; do
5224  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5225    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5226    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5227    break 2
5228  fi
5229done
5230  done
5231IFS=$as_save_IFS
5232
5233fi
5234fi
5235DUMPBIN=$ac_cv_prog_DUMPBIN
5236if test -n "$DUMPBIN"; then
5237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5238printf "%s\n" "$DUMPBIN" >&6; }
5239else
5240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241printf "%s\n" "no" >&6; }
5242fi
5243
5244
5245    test -n "$DUMPBIN" && break
5246  done
5247fi
5248if test -z "$DUMPBIN"; then
5249  ac_ct_DUMPBIN=$DUMPBIN
5250  for ac_prog in dumpbin "link -dump"
5251do
5252  # Extract the first word of "$ac_prog", so it can be a program name with args.
5253set dummy $ac_prog; ac_word=$2
5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255printf %s "checking for $ac_word... " >&6; }
5256if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5257then :
5258  printf %s "(cached) " >&6
5259else $as_nop
5260  if test -n "$ac_ct_DUMPBIN"; then
5261  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  case $as_dir in #(((
5268    '') as_dir=./ ;;
5269    */) ;;
5270    *) as_dir=$as_dir/ ;;
5271  esac
5272    for ac_exec_ext in '' $ac_executable_extensions; do
5273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5274    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279  done
5280IFS=$as_save_IFS
5281
5282fi
5283fi
5284ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5285if test -n "$ac_ct_DUMPBIN"; then
5286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5287printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5288else
5289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290printf "%s\n" "no" >&6; }
5291fi
5292
5293
5294  test -n "$ac_ct_DUMPBIN" && break
5295done
5296
5297  if test "x$ac_ct_DUMPBIN" = x; then
5298    DUMPBIN=":"
5299  else
5300    case $cross_compiling:$ac_tool_warned in
5301yes:)
5302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304ac_tool_warned=yes ;;
5305esac
5306    DUMPBIN=$ac_ct_DUMPBIN
5307  fi
5308fi
5309
5310    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5311    *COFF*)
5312      DUMPBIN="$DUMPBIN -symbols -headers"
5313      ;;
5314    *)
5315      DUMPBIN=:
5316      ;;
5317    esac
5318  fi
5319
5320  if test : != "$DUMPBIN"; then
5321    NM=$DUMPBIN
5322  fi
5323fi
5324test -z "$NM" && NM=nm
5325
5326
5327
5328
5329
5330
5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5332printf %s "checking the name lister ($NM) interface... " >&6; }
5333if test ${lt_cv_nm_interface+y}
5334then :
5335  printf %s "(cached) " >&6
5336else $as_nop
5337  lt_cv_nm_interface="BSD nm"
5338  echo "int some_variable = 0;" > conftest.$ac_ext
5339  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5340  (eval "$ac_compile" 2>conftest.err)
5341  cat conftest.err >&5
5342  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5343  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5344  cat conftest.err >&5
5345  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5346  cat conftest.out >&5
5347  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5348    lt_cv_nm_interface="MS dumpbin"
5349  fi
5350  rm -f conftest*
5351fi
5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5353printf "%s\n" "$lt_cv_nm_interface" >&6; }
5354
5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5356printf %s "checking whether ln -s works... " >&6; }
5357LN_S=$as_ln_s
5358if test "$LN_S" = "ln -s"; then
5359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5360printf "%s\n" "yes" >&6; }
5361else
5362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5363printf "%s\n" "no, using $LN_S" >&6; }
5364fi
5365
5366# find the maximum length of command line arguments
5367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5368printf %s "checking the maximum length of command line arguments... " >&6; }
5369if test ${lt_cv_sys_max_cmd_len+y}
5370then :
5371  printf %s "(cached) " >&6
5372else $as_nop
5373    i=0
5374  teststring=ABCD
5375
5376  case $build_os in
5377  msdosdjgpp*)
5378    # On DJGPP, this test can blow up pretty badly due to problems in libc
5379    # (any single argument exceeding 2000 bytes causes a buffer overrun
5380    # during glob expansion).  Even if it were fixed, the result of this
5381    # check would be larger than it should be.
5382    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5383    ;;
5384
5385  gnu*)
5386    # Under GNU Hurd, this test is not required because there is
5387    # no limit to the length of command line arguments.
5388    # Libtool will interpret -1 as no limit whatsoever
5389    lt_cv_sys_max_cmd_len=-1;
5390    ;;
5391
5392  cygwin* | mingw* | cegcc*)
5393    # On Win9x/ME, this test blows up -- it succeeds, but takes
5394    # about 5 minutes as the teststring grows exponentially.
5395    # Worse, since 9x/ME are not pre-emptively multitasking,
5396    # you end up with a "frozen" computer, even though with patience
5397    # the test eventually succeeds (with a max line length of 256k).
5398    # Instead, let's just punt: use the minimum linelength reported by
5399    # all of the supported platforms: 8192 (on NT/2K/XP).
5400    lt_cv_sys_max_cmd_len=8192;
5401    ;;
5402
5403  mint*)
5404    # On MiNT this can take a long time and run out of memory.
5405    lt_cv_sys_max_cmd_len=8192;
5406    ;;
5407
5408  amigaos*)
5409    # On AmigaOS with pdksh, this test takes hours, literally.
5410    # So we just punt and use a minimum line length of 8192.
5411    lt_cv_sys_max_cmd_len=8192;
5412    ;;
5413
5414  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5415    # This has been around since 386BSD, at least.  Likely further.
5416    if test -x /sbin/sysctl; then
5417      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5418    elif test -x /usr/sbin/sysctl; then
5419      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5420    else
5421      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5422    fi
5423    # And add a safety zone
5424    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5425    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5426    ;;
5427
5428  interix*)
5429    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5430    lt_cv_sys_max_cmd_len=196608
5431    ;;
5432
5433  os2*)
5434    # The test takes a long time on OS/2.
5435    lt_cv_sys_max_cmd_len=8192
5436    ;;
5437
5438  osf*)
5439    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5440    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5441    # nice to cause kernel panics so lets avoid the loop below.
5442    # First set a reasonable default.
5443    lt_cv_sys_max_cmd_len=16384
5444    #
5445    if test -x /sbin/sysconfig; then
5446      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5447        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5448      esac
5449    fi
5450    ;;
5451  sco3.2v5*)
5452    lt_cv_sys_max_cmd_len=102400
5453    ;;
5454  sysv5* | sco5v6* | sysv4.2uw2*)
5455    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5456    if test -n "$kargmax"; then
5457      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5458    else
5459      lt_cv_sys_max_cmd_len=32768
5460    fi
5461    ;;
5462  *)
5463    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5464    if test -n "$lt_cv_sys_max_cmd_len" && \
5465       test undefined != "$lt_cv_sys_max_cmd_len"; then
5466      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5467      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5468    else
5469      # Make teststring a little bigger before we do anything with it.
5470      # a 1K string should be a reasonable start.
5471      for i in 1 2 3 4 5 6 7 8; do
5472        teststring=$teststring$teststring
5473      done
5474      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5475      # If test is not a shell built-in, we'll probably end up computing a
5476      # maximum length that is only half of the actual maximum length, but
5477      # we can't tell.
5478      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5479	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5480	      test 17 != "$i" # 1/2 MB should be enough
5481      do
5482        i=`expr $i + 1`
5483        teststring=$teststring$teststring
5484      done
5485      # Only check the string length outside the loop.
5486      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5487      teststring=
5488      # Add a significant safety factor because C++ compilers can tack on
5489      # massive amounts of additional arguments before passing them to the
5490      # linker.  It appears as though 1/2 is a usable value.
5491      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5492    fi
5493    ;;
5494  esac
5495
5496fi
5497
5498if test -n "$lt_cv_sys_max_cmd_len"; then
5499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5500printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5501else
5502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5503printf "%s\n" "none" >&6; }
5504fi
5505max_cmd_len=$lt_cv_sys_max_cmd_len
5506
5507
5508
5509
5510
5511
5512: ${CP="cp -f"}
5513: ${MV="mv -f"}
5514: ${RM="rm -f"}
5515
5516if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5517  lt_unset=unset
5518else
5519  lt_unset=false
5520fi
5521
5522
5523
5524
5525
5526# test EBCDIC or ASCII
5527case `echo X|tr X '\101'` in
5528 A) # ASCII based system
5529    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5530  lt_SP2NL='tr \040 \012'
5531  lt_NL2SP='tr \015\012 \040\040'
5532  ;;
5533 *) # EBCDIC based system
5534  lt_SP2NL='tr \100 \n'
5535  lt_NL2SP='tr \r\n \100\100'
5536  ;;
5537esac
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5548printf %s "checking how to convert $build file names to $host format... " >&6; }
5549if test ${lt_cv_to_host_file_cmd+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553  case $host in
5554  *-*-mingw* )
5555    case $build in
5556      *-*-mingw* ) # actually msys
5557        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5558        ;;
5559      *-*-cygwin* )
5560        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5561        ;;
5562      * ) # otherwise, assume *nix
5563        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5564        ;;
5565    esac
5566    ;;
5567  *-*-cygwin* )
5568    case $build in
5569      *-*-mingw* ) # actually msys
5570        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5571        ;;
5572      *-*-cygwin* )
5573        lt_cv_to_host_file_cmd=func_convert_file_noop
5574        ;;
5575      * ) # otherwise, assume *nix
5576        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5577        ;;
5578    esac
5579    ;;
5580  * ) # unhandled hosts (and "normal" native builds)
5581    lt_cv_to_host_file_cmd=func_convert_file_noop
5582    ;;
5583esac
5584
5585fi
5586
5587to_host_file_cmd=$lt_cv_to_host_file_cmd
5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5589printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5590
5591
5592
5593
5594
5595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5596printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5597if test ${lt_cv_to_tool_file_cmd+y}
5598then :
5599  printf %s "(cached) " >&6
5600else $as_nop
5601  #assume ordinary cross tools, or native build.
5602lt_cv_to_tool_file_cmd=func_convert_file_noop
5603case $host in
5604  *-*-mingw* )
5605    case $build in
5606      *-*-mingw* ) # actually msys
5607        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5608        ;;
5609    esac
5610    ;;
5611esac
5612
5613fi
5614
5615to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5617printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5618
5619
5620
5621
5622
5623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5624printf %s "checking for $LD option to reload object files... " >&6; }
5625if test ${lt_cv_ld_reload_flag+y}
5626then :
5627  printf %s "(cached) " >&6
5628else $as_nop
5629  lt_cv_ld_reload_flag='-r'
5630fi
5631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5632printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5633reload_flag=$lt_cv_ld_reload_flag
5634case $reload_flag in
5635"" | " "*) ;;
5636*) reload_flag=" $reload_flag" ;;
5637esac
5638reload_cmds='$LD$reload_flag -o $output$reload_objs'
5639case $host_os in
5640  cygwin* | mingw* | pw32* | cegcc*)
5641    if test yes != "$GCC"; then
5642      reload_cmds=false
5643    fi
5644    ;;
5645  darwin*)
5646    if test yes = "$GCC"; then
5647      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5648    else
5649      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5650    fi
5651    ;;
5652esac
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662if test -n "$ac_tool_prefix"; then
5663  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5664set dummy ${ac_tool_prefix}file; ac_word=$2
5665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666printf %s "checking for $ac_word... " >&6; }
5667if test ${ac_cv_prog_FILECMD+y}
5668then :
5669  printf %s "(cached) " >&6
5670else $as_nop
5671  if test -n "$FILECMD"; then
5672  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677  IFS=$as_save_IFS
5678  case $as_dir in #(((
5679    '') as_dir=./ ;;
5680    */) ;;
5681    *) as_dir=$as_dir/ ;;
5682  esac
5683    for ac_exec_ext in '' $ac_executable_extensions; do
5684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5685    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5687    break 2
5688  fi
5689done
5690  done
5691IFS=$as_save_IFS
5692
5693fi
5694fi
5695FILECMD=$ac_cv_prog_FILECMD
5696if test -n "$FILECMD"; then
5697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5698printf "%s\n" "$FILECMD" >&6; }
5699else
5700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701printf "%s\n" "no" >&6; }
5702fi
5703
5704
5705fi
5706if test -z "$ac_cv_prog_FILECMD"; then
5707  ac_ct_FILECMD=$FILECMD
5708  # Extract the first word of "file", so it can be a program name with args.
5709set dummy file; ac_word=$2
5710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711printf %s "checking for $ac_word... " >&6; }
5712if test ${ac_cv_prog_ac_ct_FILECMD+y}
5713then :
5714  printf %s "(cached) " >&6
5715else $as_nop
5716  if test -n "$ac_ct_FILECMD"; then
5717  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722  IFS=$as_save_IFS
5723  case $as_dir in #(((
5724    '') as_dir=./ ;;
5725    */) ;;
5726    *) as_dir=$as_dir/ ;;
5727  esac
5728    for ac_exec_ext in '' $ac_executable_extensions; do
5729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5730    ac_cv_prog_ac_ct_FILECMD="file"
5731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5732    break 2
5733  fi
5734done
5735  done
5736IFS=$as_save_IFS
5737
5738fi
5739fi
5740ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5741if test -n "$ac_ct_FILECMD"; then
5742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5743printf "%s\n" "$ac_ct_FILECMD" >&6; }
5744else
5745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746printf "%s\n" "no" >&6; }
5747fi
5748
5749  if test "x$ac_ct_FILECMD" = x; then
5750    FILECMD=":"
5751  else
5752    case $cross_compiling:$ac_tool_warned in
5753yes:)
5754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5756ac_tool_warned=yes ;;
5757esac
5758    FILECMD=$ac_ct_FILECMD
5759  fi
5760else
5761  FILECMD="$ac_cv_prog_FILECMD"
5762fi
5763
5764
5765
5766
5767
5768
5769
5770if test -n "$ac_tool_prefix"; then
5771  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5772set dummy ${ac_tool_prefix}objdump; ac_word=$2
5773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774printf %s "checking for $ac_word... " >&6; }
5775if test ${ac_cv_prog_OBJDUMP+y}
5776then :
5777  printf %s "(cached) " >&6
5778else $as_nop
5779  if test -n "$OBJDUMP"; then
5780  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5781else
5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783for as_dir in $PATH
5784do
5785  IFS=$as_save_IFS
5786  case $as_dir in #(((
5787    '') as_dir=./ ;;
5788    */) ;;
5789    *) as_dir=$as_dir/ ;;
5790  esac
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5793    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5794    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5795    break 2
5796  fi
5797done
5798  done
5799IFS=$as_save_IFS
5800
5801fi
5802fi
5803OBJDUMP=$ac_cv_prog_OBJDUMP
5804if test -n "$OBJDUMP"; then
5805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5806printf "%s\n" "$OBJDUMP" >&6; }
5807else
5808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809printf "%s\n" "no" >&6; }
5810fi
5811
5812
5813fi
5814if test -z "$ac_cv_prog_OBJDUMP"; then
5815  ac_ct_OBJDUMP=$OBJDUMP
5816  # Extract the first word of "objdump", so it can be a program name with args.
5817set dummy objdump; ac_word=$2
5818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819printf %s "checking for $ac_word... " >&6; }
5820if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5821then :
5822  printf %s "(cached) " >&6
5823else $as_nop
5824  if test -n "$ac_ct_OBJDUMP"; then
5825  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  case $as_dir in #(((
5832    '') as_dir=./ ;;
5833    */) ;;
5834    *) as_dir=$as_dir/ ;;
5835  esac
5836    for ac_exec_ext in '' $ac_executable_extensions; do
5837  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5838    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5839    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5840    break 2
5841  fi
5842done
5843  done
5844IFS=$as_save_IFS
5845
5846fi
5847fi
5848ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5849if test -n "$ac_ct_OBJDUMP"; then
5850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5851printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5852else
5853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854printf "%s\n" "no" >&6; }
5855fi
5856
5857  if test "x$ac_ct_OBJDUMP" = x; then
5858    OBJDUMP="false"
5859  else
5860    case $cross_compiling:$ac_tool_warned in
5861yes:)
5862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5863printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5864ac_tool_warned=yes ;;
5865esac
5866    OBJDUMP=$ac_ct_OBJDUMP
5867  fi
5868else
5869  OBJDUMP="$ac_cv_prog_OBJDUMP"
5870fi
5871
5872test -z "$OBJDUMP" && OBJDUMP=objdump
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5883printf %s "checking how to recognize dependent libraries... " >&6; }
5884if test ${lt_cv_deplibs_check_method+y}
5885then :
5886  printf %s "(cached) " >&6
5887else $as_nop
5888  lt_cv_file_magic_cmd='$MAGIC_CMD'
5889lt_cv_file_magic_test_file=
5890lt_cv_deplibs_check_method='unknown'
5891# Need to set the preceding variable on all platforms that support
5892# interlibrary dependencies.
5893# 'none' -- dependencies not supported.
5894# 'unknown' -- same as none, but documents that we really don't know.
5895# 'pass_all' -- all dependencies passed with no checks.
5896# 'test_compile' -- check by making test program.
5897# 'file_magic [[regex]]' -- check by looking for files in library path
5898# that responds to the $file_magic_cmd with a given extended regex.
5899# If you have 'file' or equivalent on your system and you're not sure
5900# whether 'pass_all' will *always* work, you probably want this one.
5901
5902case $host_os in
5903aix[4-9]*)
5904  lt_cv_deplibs_check_method=pass_all
5905  ;;
5906
5907beos*)
5908  lt_cv_deplibs_check_method=pass_all
5909  ;;
5910
5911bsdi[45]*)
5912  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5913  lt_cv_file_magic_cmd='$FILECMD -L'
5914  lt_cv_file_magic_test_file=/shlib/libc.so
5915  ;;
5916
5917cygwin*)
5918  # func_win32_libid is a shell function defined in ltmain.sh
5919  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5920  lt_cv_file_magic_cmd='func_win32_libid'
5921  ;;
5922
5923mingw* | pw32*)
5924  # Base MSYS/MinGW do not provide the 'file' command needed by
5925  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5926  # unless we find 'file', for example because we are cross-compiling.
5927  if ( file / ) >/dev/null 2>&1; then
5928    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5929    lt_cv_file_magic_cmd='func_win32_libid'
5930  else
5931    # Keep this pattern in sync with the one in func_win32_libid.
5932    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5933    lt_cv_file_magic_cmd='$OBJDUMP -f'
5934  fi
5935  ;;
5936
5937cegcc*)
5938  # use the weaker test based on 'objdump'. See mingw*.
5939  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5940  lt_cv_file_magic_cmd='$OBJDUMP -f'
5941  ;;
5942
5943darwin* | rhapsody*)
5944  lt_cv_deplibs_check_method=pass_all
5945  ;;
5946
5947freebsd* | dragonfly* | midnightbsd*)
5948  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5949    case $host_cpu in
5950    i*86 )
5951      # Not sure whether the presence of OpenBSD here was a mistake.
5952      # Let's accept both of them until this is cleared up.
5953      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5954      lt_cv_file_magic_cmd=$FILECMD
5955      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5956      ;;
5957    esac
5958  else
5959    lt_cv_deplibs_check_method=pass_all
5960  fi
5961  ;;
5962
5963haiku*)
5964  lt_cv_deplibs_check_method=pass_all
5965  ;;
5966
5967hpux10.20* | hpux11*)
5968  lt_cv_file_magic_cmd=$FILECMD
5969  case $host_cpu in
5970  ia64*)
5971    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5972    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5973    ;;
5974  hppa*64*)
5975    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]'
5976    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5977    ;;
5978  *)
5979    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5980    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5981    ;;
5982  esac
5983  ;;
5984
5985interix[3-9]*)
5986  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5987  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5988  ;;
5989
5990irix5* | irix6* | nonstopux*)
5991  case $LD in
5992  *-32|*"-32 ") libmagic=32-bit;;
5993  *-n32|*"-n32 ") libmagic=N32;;
5994  *-64|*"-64 ") libmagic=64-bit;;
5995  *) libmagic=never-match;;
5996  esac
5997  lt_cv_deplibs_check_method=pass_all
5998  ;;
5999
6000# This must be glibc/ELF.
6001linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6002  lt_cv_deplibs_check_method=pass_all
6003  ;;
6004
6005netbsd*)
6006  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6007    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6008  else
6009    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6010  fi
6011  ;;
6012
6013newos6*)
6014  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6015  lt_cv_file_magic_cmd=$FILECMD
6016  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6017  ;;
6018
6019*nto* | *qnx*)
6020  lt_cv_deplibs_check_method=pass_all
6021  ;;
6022
6023openbsd* | bitrig*)
6024  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6025    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6026  else
6027    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6028  fi
6029  ;;
6030
6031osf3* | osf4* | osf5*)
6032  lt_cv_deplibs_check_method=pass_all
6033  ;;
6034
6035rdos*)
6036  lt_cv_deplibs_check_method=pass_all
6037  ;;
6038
6039solaris*)
6040  lt_cv_deplibs_check_method=pass_all
6041  ;;
6042
6043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6044  lt_cv_deplibs_check_method=pass_all
6045  ;;
6046
6047sysv4 | sysv4.3*)
6048  case $host_vendor in
6049  motorola)
6050    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]'
6051    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6052    ;;
6053  ncr)
6054    lt_cv_deplibs_check_method=pass_all
6055    ;;
6056  sequent)
6057    lt_cv_file_magic_cmd='/bin/file'
6058    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6059    ;;
6060  sni)
6061    lt_cv_file_magic_cmd='/bin/file'
6062    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6063    lt_cv_file_magic_test_file=/lib/libc.so
6064    ;;
6065  siemens)
6066    lt_cv_deplibs_check_method=pass_all
6067    ;;
6068  pc)
6069    lt_cv_deplibs_check_method=pass_all
6070    ;;
6071  esac
6072  ;;
6073
6074tpf*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077os2*)
6078  lt_cv_deplibs_check_method=pass_all
6079  ;;
6080esac
6081
6082fi
6083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6084printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6085
6086file_magic_glob=
6087want_nocaseglob=no
6088if test "$build" = "$host"; then
6089  case $host_os in
6090  mingw* | pw32*)
6091    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6092      want_nocaseglob=yes
6093    else
6094      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6095    fi
6096    ;;
6097  esac
6098fi
6099
6100file_magic_cmd=$lt_cv_file_magic_cmd
6101deplibs_check_method=$lt_cv_deplibs_check_method
6102test -z "$deplibs_check_method" && deplibs_check_method=unknown
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125if test -n "$ac_tool_prefix"; then
6126  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6127set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129printf %s "checking for $ac_word... " >&6; }
6130if test ${ac_cv_prog_DLLTOOL+y}
6131then :
6132  printf %s "(cached) " >&6
6133else $as_nop
6134  if test -n "$DLLTOOL"; then
6135  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140  IFS=$as_save_IFS
6141  case $as_dir in #(((
6142    '') as_dir=./ ;;
6143    */) ;;
6144    *) as_dir=$as_dir/ ;;
6145  esac
6146    for ac_exec_ext in '' $ac_executable_extensions; do
6147  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6148    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6149    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6150    break 2
6151  fi
6152done
6153  done
6154IFS=$as_save_IFS
6155
6156fi
6157fi
6158DLLTOOL=$ac_cv_prog_DLLTOOL
6159if test -n "$DLLTOOL"; then
6160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6161printf "%s\n" "$DLLTOOL" >&6; }
6162else
6163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164printf "%s\n" "no" >&6; }
6165fi
6166
6167
6168fi
6169if test -z "$ac_cv_prog_DLLTOOL"; then
6170  ac_ct_DLLTOOL=$DLLTOOL
6171  # Extract the first word of "dlltool", so it can be a program name with args.
6172set dummy dlltool; ac_word=$2
6173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174printf %s "checking for $ac_word... " >&6; }
6175if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6176then :
6177  printf %s "(cached) " >&6
6178else $as_nop
6179  if test -n "$ac_ct_DLLTOOL"; then
6180  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6181else
6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183for as_dir in $PATH
6184do
6185  IFS=$as_save_IFS
6186  case $as_dir in #(((
6187    '') as_dir=./ ;;
6188    */) ;;
6189    *) as_dir=$as_dir/ ;;
6190  esac
6191    for ac_exec_ext in '' $ac_executable_extensions; do
6192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6193    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6195    break 2
6196  fi
6197done
6198  done
6199IFS=$as_save_IFS
6200
6201fi
6202fi
6203ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6204if test -n "$ac_ct_DLLTOOL"; then
6205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6206printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6207else
6208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209printf "%s\n" "no" >&6; }
6210fi
6211
6212  if test "x$ac_ct_DLLTOOL" = x; then
6213    DLLTOOL="false"
6214  else
6215    case $cross_compiling:$ac_tool_warned in
6216yes:)
6217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219ac_tool_warned=yes ;;
6220esac
6221    DLLTOOL=$ac_ct_DLLTOOL
6222  fi
6223else
6224  DLLTOOL="$ac_cv_prog_DLLTOOL"
6225fi
6226
6227test -z "$DLLTOOL" && DLLTOOL=dlltool
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6239printf %s "checking how to associate runtime and link libraries... " >&6; }
6240if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6241then :
6242  printf %s "(cached) " >&6
6243else $as_nop
6244  lt_cv_sharedlib_from_linklib_cmd='unknown'
6245
6246case $host_os in
6247cygwin* | mingw* | pw32* | cegcc*)
6248  # two different shell functions defined in ltmain.sh;
6249  # decide which one to use based on capabilities of $DLLTOOL
6250  case `$DLLTOOL --help 2>&1` in
6251  *--identify-strict*)
6252    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6253    ;;
6254  *)
6255    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6256    ;;
6257  esac
6258  ;;
6259*)
6260  # fallback: assume linklib IS sharedlib
6261  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6262  ;;
6263esac
6264
6265fi
6266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6267printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6268sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6269test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6270
6271
6272
6273
6274
6275
6276
6277
6278if test -n "$ac_tool_prefix"; then
6279  for ac_prog in ar
6280  do
6281    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284printf %s "checking for $ac_word... " >&6; }
6285if test ${ac_cv_prog_AR+y}
6286then :
6287  printf %s "(cached) " >&6
6288else $as_nop
6289  if test -n "$AR"; then
6290  ac_cv_prog_AR="$AR" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295  IFS=$as_save_IFS
6296  case $as_dir in #(((
6297    '') as_dir=./ ;;
6298    */) ;;
6299    *) as_dir=$as_dir/ ;;
6300  esac
6301    for ac_exec_ext in '' $ac_executable_extensions; do
6302  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6303    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6304    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6305    break 2
6306  fi
6307done
6308  done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313AR=$ac_cv_prog_AR
6314if test -n "$AR"; then
6315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6316printf "%s\n" "$AR" >&6; }
6317else
6318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319printf "%s\n" "no" >&6; }
6320fi
6321
6322
6323    test -n "$AR" && break
6324  done
6325fi
6326if test -z "$AR"; then
6327  ac_ct_AR=$AR
6328  for ac_prog in ar
6329do
6330  # Extract the first word of "$ac_prog", so it can be a program name with args.
6331set dummy $ac_prog; ac_word=$2
6332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333printf %s "checking for $ac_word... " >&6; }
6334if test ${ac_cv_prog_ac_ct_AR+y}
6335then :
6336  printf %s "(cached) " >&6
6337else $as_nop
6338  if test -n "$ac_ct_AR"; then
6339  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344  IFS=$as_save_IFS
6345  case $as_dir in #(((
6346    '') as_dir=./ ;;
6347    */) ;;
6348    *) as_dir=$as_dir/ ;;
6349  esac
6350    for ac_exec_ext in '' $ac_executable_extensions; do
6351  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6352    ac_cv_prog_ac_ct_AR="$ac_prog"
6353    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6354    break 2
6355  fi
6356done
6357  done
6358IFS=$as_save_IFS
6359
6360fi
6361fi
6362ac_ct_AR=$ac_cv_prog_ac_ct_AR
6363if test -n "$ac_ct_AR"; then
6364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6365printf "%s\n" "$ac_ct_AR" >&6; }
6366else
6367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368printf "%s\n" "no" >&6; }
6369fi
6370
6371
6372  test -n "$ac_ct_AR" && break
6373done
6374
6375  if test "x$ac_ct_AR" = x; then
6376    AR="false"
6377  else
6378    case $cross_compiling:$ac_tool_warned in
6379yes:)
6380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382ac_tool_warned=yes ;;
6383esac
6384    AR=$ac_ct_AR
6385  fi
6386fi
6387
6388: ${AR=ar}
6389
6390
6391
6392
6393
6394
6395# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6396# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6397# higher priority because thats what people were doing historically (setting
6398# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6399# variable obsoleted/removed.
6400
6401test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6402lt_ar_flags=$AR_FLAGS
6403
6404
6405
6406
6407
6408
6409# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6410# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6411
6412
6413
6414
6415
6416
6417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6418printf %s "checking for archiver @FILE support... " >&6; }
6419if test ${lt_cv_ar_at_file+y}
6420then :
6421  printf %s "(cached) " >&6
6422else $as_nop
6423  lt_cv_ar_at_file=no
6424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425/* end confdefs.h.  */
6426
6427int
6428main (void)
6429{
6430
6431  ;
6432  return 0;
6433}
6434_ACEOF
6435if ac_fn_c_try_compile "$LINENO"
6436then :
6437  echo conftest.$ac_objext > conftest.lst
6438      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6439      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6440  (eval $lt_ar_try) 2>&5
6441  ac_status=$?
6442  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443  test $ac_status = 0; }
6444      if test 0 -eq "$ac_status"; then
6445	# Ensure the archiver fails upon bogus file names.
6446	rm -f conftest.$ac_objext libconftest.a
6447	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6448  (eval $lt_ar_try) 2>&5
6449  ac_status=$?
6450  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451  test $ac_status = 0; }
6452	if test 0 -ne "$ac_status"; then
6453          lt_cv_ar_at_file=@
6454        fi
6455      fi
6456      rm -f conftest.* libconftest.a
6457
6458fi
6459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6460
6461fi
6462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6463printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6464
6465if test no = "$lt_cv_ar_at_file"; then
6466  archiver_list_spec=
6467else
6468  archiver_list_spec=$lt_cv_ar_at_file
6469fi
6470
6471
6472
6473
6474
6475
6476
6477if test -n "$ac_tool_prefix"; then
6478  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6479set dummy ${ac_tool_prefix}strip; ac_word=$2
6480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481printf %s "checking for $ac_word... " >&6; }
6482if test ${ac_cv_prog_STRIP+y}
6483then :
6484  printf %s "(cached) " >&6
6485else $as_nop
6486  if test -n "$STRIP"; then
6487  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6488else
6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490for as_dir in $PATH
6491do
6492  IFS=$as_save_IFS
6493  case $as_dir in #(((
6494    '') as_dir=./ ;;
6495    */) ;;
6496    *) as_dir=$as_dir/ ;;
6497  esac
6498    for ac_exec_ext in '' $ac_executable_extensions; do
6499  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6500    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6501    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6502    break 2
6503  fi
6504done
6505  done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510STRIP=$ac_cv_prog_STRIP
6511if test -n "$STRIP"; then
6512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6513printf "%s\n" "$STRIP" >&6; }
6514else
6515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516printf "%s\n" "no" >&6; }
6517fi
6518
6519
6520fi
6521if test -z "$ac_cv_prog_STRIP"; then
6522  ac_ct_STRIP=$STRIP
6523  # Extract the first word of "strip", so it can be a program name with args.
6524set dummy strip; ac_word=$2
6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526printf %s "checking for $ac_word... " >&6; }
6527if test ${ac_cv_prog_ac_ct_STRIP+y}
6528then :
6529  printf %s "(cached) " >&6
6530else $as_nop
6531  if test -n "$ac_ct_STRIP"; then
6532  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6533else
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  case $as_dir in #(((
6539    '') as_dir=./ ;;
6540    */) ;;
6541    *) as_dir=$as_dir/ ;;
6542  esac
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6545    ac_cv_prog_ac_ct_STRIP="strip"
6546    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6556if test -n "$ac_ct_STRIP"; then
6557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6558printf "%s\n" "$ac_ct_STRIP" >&6; }
6559else
6560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561printf "%s\n" "no" >&6; }
6562fi
6563
6564  if test "x$ac_ct_STRIP" = x; then
6565    STRIP=":"
6566  else
6567    case $cross_compiling:$ac_tool_warned in
6568yes:)
6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571ac_tool_warned=yes ;;
6572esac
6573    STRIP=$ac_ct_STRIP
6574  fi
6575else
6576  STRIP="$ac_cv_prog_STRIP"
6577fi
6578
6579test -z "$STRIP" && STRIP=:
6580
6581
6582
6583
6584
6585
6586if test -n "$ac_tool_prefix"; then
6587  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6588set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590printf %s "checking for $ac_word... " >&6; }
6591if test ${ac_cv_prog_RANLIB+y}
6592then :
6593  printf %s "(cached) " >&6
6594else $as_nop
6595  if test -n "$RANLIB"; then
6596  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6597else
6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601  IFS=$as_save_IFS
6602  case $as_dir in #(((
6603    '') as_dir=./ ;;
6604    */) ;;
6605    *) as_dir=$as_dir/ ;;
6606  esac
6607    for ac_exec_ext in '' $ac_executable_extensions; do
6608  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6609    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6610    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6611    break 2
6612  fi
6613done
6614  done
6615IFS=$as_save_IFS
6616
6617fi
6618fi
6619RANLIB=$ac_cv_prog_RANLIB
6620if test -n "$RANLIB"; then
6621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6622printf "%s\n" "$RANLIB" >&6; }
6623else
6624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625printf "%s\n" "no" >&6; }
6626fi
6627
6628
6629fi
6630if test -z "$ac_cv_prog_RANLIB"; then
6631  ac_ct_RANLIB=$RANLIB
6632  # Extract the first word of "ranlib", so it can be a program name with args.
6633set dummy ranlib; ac_word=$2
6634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635printf %s "checking for $ac_word... " >&6; }
6636if test ${ac_cv_prog_ac_ct_RANLIB+y}
6637then :
6638  printf %s "(cached) " >&6
6639else $as_nop
6640  if test -n "$ac_ct_RANLIB"; then
6641  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6642else
6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644for as_dir in $PATH
6645do
6646  IFS=$as_save_IFS
6647  case $as_dir in #(((
6648    '') as_dir=./ ;;
6649    */) ;;
6650    *) as_dir=$as_dir/ ;;
6651  esac
6652    for ac_exec_ext in '' $ac_executable_extensions; do
6653  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6654    ac_cv_prog_ac_ct_RANLIB="ranlib"
6655    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6656    break 2
6657  fi
6658done
6659  done
6660IFS=$as_save_IFS
6661
6662fi
6663fi
6664ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6665if test -n "$ac_ct_RANLIB"; then
6666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6667printf "%s\n" "$ac_ct_RANLIB" >&6; }
6668else
6669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670printf "%s\n" "no" >&6; }
6671fi
6672
6673  if test "x$ac_ct_RANLIB" = x; then
6674    RANLIB=":"
6675  else
6676    case $cross_compiling:$ac_tool_warned in
6677yes:)
6678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680ac_tool_warned=yes ;;
6681esac
6682    RANLIB=$ac_ct_RANLIB
6683  fi
6684else
6685  RANLIB="$ac_cv_prog_RANLIB"
6686fi
6687
6688test -z "$RANLIB" && RANLIB=:
6689
6690
6691
6692
6693
6694
6695# Determine commands to create old-style static archives.
6696old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6697old_postinstall_cmds='chmod 644 $oldlib'
6698old_postuninstall_cmds=
6699
6700if test -n "$RANLIB"; then
6701  case $host_os in
6702  bitrig* | openbsd*)
6703    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6704    ;;
6705  *)
6706    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6707    ;;
6708  esac
6709  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6710fi
6711
6712case $host_os in
6713  darwin*)
6714    lock_old_archive_extraction=yes ;;
6715  *)
6716    lock_old_archive_extraction=no ;;
6717esac
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757# If no C compiler was specified, use CC.
6758LTCC=${LTCC-"$CC"}
6759
6760# If no C compiler flags were specified, use CFLAGS.
6761LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6762
6763# Allow CC to be a program name with arguments.
6764compiler=$CC
6765
6766
6767# Check for command to grab the raw symbol name followed by C symbol from nm.
6768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6769printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6770if test ${lt_cv_sys_global_symbol_pipe+y}
6771then :
6772  printf %s "(cached) " >&6
6773else $as_nop
6774
6775# These are sane defaults that work on at least a few old systems.
6776# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6777
6778# Character class describing NM global symbol codes.
6779symcode='[BCDEGRST]'
6780
6781# Regexp to match symbols that can be accessed directly from C.
6782sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6783
6784# Define system-specific variables.
6785case $host_os in
6786aix*)
6787  symcode='[BCDT]'
6788  ;;
6789cygwin* | mingw* | pw32* | cegcc*)
6790  symcode='[ABCDGISTW]'
6791  ;;
6792hpux*)
6793  if test ia64 = "$host_cpu"; then
6794    symcode='[ABCDEGRST]'
6795  fi
6796  ;;
6797irix* | nonstopux*)
6798  symcode='[BCDEGRST]'
6799  ;;
6800osf*)
6801  symcode='[BCDEGQRST]'
6802  ;;
6803solaris*)
6804  symcode='[BDRT]'
6805  ;;
6806sco3.2v5*)
6807  symcode='[DT]'
6808  ;;
6809sysv4.2uw2*)
6810  symcode='[DT]'
6811  ;;
6812sysv5* | sco5v6* | unixware* | OpenUNIX*)
6813  symcode='[ABDT]'
6814  ;;
6815sysv4)
6816  symcode='[DFNSTU]'
6817  ;;
6818esac
6819
6820# If we're using GNU nm, then use its standard symbol codes.
6821case `$NM -V 2>&1` in
6822*GNU* | *'with BFD'*)
6823  symcode='[ABCDGIRSTW]' ;;
6824esac
6825
6826if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6827  # Gets list of data symbols to import.
6828  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6829  # Adjust the below global symbol transforms to fixup imported variables.
6830  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6831  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6832  lt_c_name_lib_hook="\
6833  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6834  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6835else
6836  # Disable hooks by default.
6837  lt_cv_sys_global_symbol_to_import=
6838  lt_cdecl_hook=
6839  lt_c_name_hook=
6840  lt_c_name_lib_hook=
6841fi
6842
6843# Transform an extracted symbol line into a proper C declaration.
6844# Some systems (esp. on ia64) link data and code symbols differently,
6845# so use this general approach.
6846lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6847$lt_cdecl_hook\
6848" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6849" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6850
6851# Transform an extracted symbol line into symbol name and symbol address
6852lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6853$lt_c_name_hook\
6854" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6855" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6856
6857# Transform an extracted symbol line into symbol name with lib prefix and
6858# symbol address.
6859lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6860$lt_c_name_lib_hook\
6861" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6862" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6863" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6864
6865# Handle CRLF in mingw tool chain
6866opt_cr=
6867case $build_os in
6868mingw*)
6869  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6870  ;;
6871esac
6872
6873# Try without a prefix underscore, then with it.
6874for ac_symprfx in "" "_"; do
6875
6876  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6877  symxfrm="\\1 $ac_symprfx\\2 \\2"
6878
6879  # Write the raw and C identifiers.
6880  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6881    # Fake it for dumpbin and say T for any non-static function,
6882    # D for any global variable and I for any imported variable.
6883    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6884    # which start with @ or ?.
6885    lt_cv_sys_global_symbol_pipe="$AWK '"\
6886"     {last_section=section; section=\$ 3};"\
6887"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6888"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6889"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6890"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6891"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6892"     \$ 0!~/External *\|/{next};"\
6893"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6894"     {if(hide[section]) next};"\
6895"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6896"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6897"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6898"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6899"     ' prfx=^$ac_symprfx"
6900  else
6901    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902  fi
6903  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6904
6905  # Check to see that the pipe works correctly.
6906  pipe_works=no
6907
6908  rm -f conftest*
6909  cat > conftest.$ac_ext <<_LT_EOF
6910#ifdef __cplusplus
6911extern "C" {
6912#endif
6913char nm_test_var;
6914void nm_test_func(void);
6915void nm_test_func(void){}
6916#ifdef __cplusplus
6917}
6918#endif
6919int main(){nm_test_var='a';nm_test_func();return(0);}
6920_LT_EOF
6921
6922  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923  (eval $ac_compile) 2>&5
6924  ac_status=$?
6925  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926  test $ac_status = 0; }; then
6927    # Now try to grab the symbols.
6928    nlist=conftest.nm
6929    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6930  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6931  ac_status=$?
6932  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933  test $ac_status = 0; } && test -s "$nlist"; then
6934      # Try sorting and uniquifying the output.
6935      if sort "$nlist" | uniq > "$nlist"T; then
6936	mv -f "$nlist"T "$nlist"
6937      else
6938	rm -f "$nlist"T
6939      fi
6940
6941      # Make sure that we snagged all the symbols we need.
6942      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6943	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6944	  cat <<_LT_EOF > conftest.$ac_ext
6945/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6946#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6947/* DATA imports from DLLs on WIN32 can't be const, because runtime
6948   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6949# define LT_DLSYM_CONST
6950#elif defined __osf__
6951/* This system does not cope well with relocations in const data.  */
6952# define LT_DLSYM_CONST
6953#else
6954# define LT_DLSYM_CONST const
6955#endif
6956
6957#ifdef __cplusplus
6958extern "C" {
6959#endif
6960
6961_LT_EOF
6962	  # Now generate the symbol file.
6963	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6964
6965	  cat <<_LT_EOF >> conftest.$ac_ext
6966
6967/* The mapping between symbol names and symbols.  */
6968LT_DLSYM_CONST struct {
6969  const char *name;
6970  void       *address;
6971}
6972lt__PROGRAM__LTX_preloaded_symbols[] =
6973{
6974  { "@PROGRAM@", (void *) 0 },
6975_LT_EOF
6976	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6977	  cat <<\_LT_EOF >> conftest.$ac_ext
6978  {0, (void *) 0}
6979};
6980
6981/* This works around a problem in FreeBSD linker */
6982#ifdef FREEBSD_WORKAROUND
6983static const void *lt_preloaded_setup() {
6984  return lt__PROGRAM__LTX_preloaded_symbols;
6985}
6986#endif
6987
6988#ifdef __cplusplus
6989}
6990#endif
6991_LT_EOF
6992	  # Now try linking the two files.
6993	  mv conftest.$ac_objext conftstm.$ac_objext
6994	  lt_globsym_save_LIBS=$LIBS
6995	  lt_globsym_save_CFLAGS=$CFLAGS
6996	  LIBS=conftstm.$ac_objext
6997	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6998	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6999  (eval $ac_link) 2>&5
7000  ac_status=$?
7001  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7003	    pipe_works=yes
7004	  fi
7005	  LIBS=$lt_globsym_save_LIBS
7006	  CFLAGS=$lt_globsym_save_CFLAGS
7007	else
7008	  echo "cannot find nm_test_func in $nlist" >&5
7009	fi
7010      else
7011	echo "cannot find nm_test_var in $nlist" >&5
7012      fi
7013    else
7014      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7015    fi
7016  else
7017    echo "$progname: failed program was:" >&5
7018    cat conftest.$ac_ext >&5
7019  fi
7020  rm -rf conftest* conftst*
7021
7022  # Do not use the global_symbol_pipe unless it works.
7023  if test yes = "$pipe_works"; then
7024    break
7025  else
7026    lt_cv_sys_global_symbol_pipe=
7027  fi
7028done
7029
7030fi
7031
7032if test -z "$lt_cv_sys_global_symbol_pipe"; then
7033  lt_cv_sys_global_symbol_to_cdecl=
7034fi
7035if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7037printf "%s\n" "failed" >&6; }
7038else
7039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7040printf "%s\n" "ok" >&6; }
7041fi
7042
7043# Response file support.
7044if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7045  nm_file_list_spec='@'
7046elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7047  nm_file_list_spec='@'
7048fi
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7087printf %s "checking for sysroot... " >&6; }
7088
7089# Check whether --with-sysroot was given.
7090if test ${with_sysroot+y}
7091then :
7092  withval=$with_sysroot;
7093else $as_nop
7094  with_sysroot=no
7095fi
7096
7097
7098lt_sysroot=
7099case $with_sysroot in #(
7100 yes)
7101   if test yes = "$GCC"; then
7102     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7103   fi
7104   ;; #(
7105 /*)
7106   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7107   ;; #(
7108 no|'')
7109   ;; #(
7110 *)
7111   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7112printf "%s\n" "$with_sysroot" >&6; }
7113   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7114   ;;
7115esac
7116
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7118printf "%s\n" "${lt_sysroot:-no}" >&6; }
7119
7120
7121
7122
7123
7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7125printf %s "checking for a working dd... " >&6; }
7126if test ${ac_cv_path_lt_DD+y}
7127then :
7128  printf %s "(cached) " >&6
7129else $as_nop
7130  printf 0123456789abcdef0123456789abcdef >conftest.i
7131cat conftest.i conftest.i >conftest2.i
7132: ${lt_DD:=$DD}
7133if test -z "$lt_DD"; then
7134  ac_path_lt_DD_found=false
7135  # Loop through the user's path and test for each of PROGNAME-LIST
7136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137for as_dir in $PATH
7138do
7139  IFS=$as_save_IFS
7140  case $as_dir in #(((
7141    '') as_dir=./ ;;
7142    */) ;;
7143    *) as_dir=$as_dir/ ;;
7144  esac
7145    for ac_prog in dd
7146   do
7147    for ac_exec_ext in '' $ac_executable_extensions; do
7148      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7149      as_fn_executable_p "$ac_path_lt_DD" || continue
7150if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7151  cmp -s conftest.i conftest.out \
7152  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7153fi
7154      $ac_path_lt_DD_found && break 3
7155    done
7156  done
7157  done
7158IFS=$as_save_IFS
7159  if test -z "$ac_cv_path_lt_DD"; then
7160    :
7161  fi
7162else
7163  ac_cv_path_lt_DD=$lt_DD
7164fi
7165
7166rm -f conftest.i conftest2.i conftest.out
7167fi
7168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7169printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7170
7171
7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7173printf %s "checking how to truncate binary pipes... " >&6; }
7174if test ${lt_cv_truncate_bin+y}
7175then :
7176  printf %s "(cached) " >&6
7177else $as_nop
7178  printf 0123456789abcdef0123456789abcdef >conftest.i
7179cat conftest.i conftest.i >conftest2.i
7180lt_cv_truncate_bin=
7181if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7182  cmp -s conftest.i conftest.out \
7183  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7184fi
7185rm -f conftest.i conftest2.i conftest.out
7186test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7187fi
7188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7189printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7190
7191
7192
7193
7194
7195
7196
7197# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7198func_cc_basename ()
7199{
7200    for cc_temp in $*""; do
7201      case $cc_temp in
7202        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7203        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7204        \-*) ;;
7205        *) break;;
7206      esac
7207    done
7208    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7209}
7210
7211# Check whether --enable-libtool-lock was given.
7212if test ${enable_libtool_lock+y}
7213then :
7214  enableval=$enable_libtool_lock;
7215fi
7216
7217test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7218
7219# Some flags need to be propagated to the compiler or linker for good
7220# libtool support.
7221case $host in
7222ia64-*-hpux*)
7223  # Find out what ABI is being produced by ac_compile, and set mode
7224  # options accordingly.
7225  echo 'int i;' > conftest.$ac_ext
7226  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7227  (eval $ac_compile) 2>&5
7228  ac_status=$?
7229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230  test $ac_status = 0; }; then
7231    case `$FILECMD conftest.$ac_objext` in
7232      *ELF-32*)
7233	HPUX_IA64_MODE=32
7234	;;
7235      *ELF-64*)
7236	HPUX_IA64_MODE=64
7237	;;
7238    esac
7239  fi
7240  rm -rf conftest*
7241  ;;
7242*-*-irix6*)
7243  # Find out what ABI is being produced by ac_compile, and set linker
7244  # options accordingly.
7245  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7246  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7247  (eval $ac_compile) 2>&5
7248  ac_status=$?
7249  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250  test $ac_status = 0; }; then
7251    if test yes = "$lt_cv_prog_gnu_ld"; then
7252      case `$FILECMD conftest.$ac_objext` in
7253	*32-bit*)
7254	  LD="${LD-ld} -melf32bsmip"
7255	  ;;
7256	*N32*)
7257	  LD="${LD-ld} -melf32bmipn32"
7258	  ;;
7259	*64-bit*)
7260	  LD="${LD-ld} -melf64bmip"
7261	;;
7262      esac
7263    else
7264      case `$FILECMD conftest.$ac_objext` in
7265	*32-bit*)
7266	  LD="${LD-ld} -32"
7267	  ;;
7268	*N32*)
7269	  LD="${LD-ld} -n32"
7270	  ;;
7271	*64-bit*)
7272	  LD="${LD-ld} -64"
7273	  ;;
7274      esac
7275    fi
7276  fi
7277  rm -rf conftest*
7278  ;;
7279
7280mips64*-*linux*)
7281  # Find out what ABI is being produced by ac_compile, and set linker
7282  # options accordingly.
7283  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7284  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7285  (eval $ac_compile) 2>&5
7286  ac_status=$?
7287  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288  test $ac_status = 0; }; then
7289    emul=elf
7290    case `$FILECMD conftest.$ac_objext` in
7291      *32-bit*)
7292	emul="${emul}32"
7293	;;
7294      *64-bit*)
7295	emul="${emul}64"
7296	;;
7297    esac
7298    case `$FILECMD conftest.$ac_objext` in
7299      *MSB*)
7300	emul="${emul}btsmip"
7301	;;
7302      *LSB*)
7303	emul="${emul}ltsmip"
7304	;;
7305    esac
7306    case `$FILECMD conftest.$ac_objext` in
7307      *N32*)
7308	emul="${emul}n32"
7309	;;
7310    esac
7311    LD="${LD-ld} -m $emul"
7312  fi
7313  rm -rf conftest*
7314  ;;
7315
7316x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7317s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7318  # Find out what ABI is being produced by ac_compile, and set linker
7319  # options accordingly.  Note that the listed cases only cover the
7320  # situations where additional linker options are needed (such as when
7321  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7322  # vice versa); the common cases where no linker options are needed do
7323  # not appear in the list.
7324  echo 'int i;' > conftest.$ac_ext
7325  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7326  (eval $ac_compile) 2>&5
7327  ac_status=$?
7328  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7329  test $ac_status = 0; }; then
7330    case `$FILECMD conftest.o` in
7331      *32-bit*)
7332	case $host in
7333	  x86_64-*kfreebsd*-gnu)
7334	    LD="${LD-ld} -m elf_i386_fbsd"
7335	    ;;
7336	  x86_64-*linux*)
7337	    case `$FILECMD conftest.o` in
7338	      *x86-64*)
7339		LD="${LD-ld} -m elf32_x86_64"
7340		;;
7341	      *)
7342		LD="${LD-ld} -m elf_i386"
7343		;;
7344	    esac
7345	    ;;
7346	  powerpc64le-*linux*)
7347	    LD="${LD-ld} -m elf32lppclinux"
7348	    ;;
7349	  powerpc64-*linux*)
7350	    LD="${LD-ld} -m elf32ppclinux"
7351	    ;;
7352	  s390x-*linux*)
7353	    LD="${LD-ld} -m elf_s390"
7354	    ;;
7355	  sparc64-*linux*)
7356	    LD="${LD-ld} -m elf32_sparc"
7357	    ;;
7358	esac
7359	;;
7360      *64-bit*)
7361	case $host in
7362	  x86_64-*kfreebsd*-gnu)
7363	    LD="${LD-ld} -m elf_x86_64_fbsd"
7364	    ;;
7365	  x86_64-*linux*)
7366	    LD="${LD-ld} -m elf_x86_64"
7367	    ;;
7368	  powerpcle-*linux*)
7369	    LD="${LD-ld} -m elf64lppc"
7370	    ;;
7371	  powerpc-*linux*)
7372	    LD="${LD-ld} -m elf64ppc"
7373	    ;;
7374	  s390*-*linux*|s390*-*tpf*)
7375	    LD="${LD-ld} -m elf64_s390"
7376	    ;;
7377	  sparc*-*linux*)
7378	    LD="${LD-ld} -m elf64_sparc"
7379	    ;;
7380	esac
7381	;;
7382    esac
7383  fi
7384  rm -rf conftest*
7385  ;;
7386
7387*-*-sco3.2v5*)
7388  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7389  SAVE_CFLAGS=$CFLAGS
7390  CFLAGS="$CFLAGS -belf"
7391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7392printf %s "checking whether the C compiler needs -belf... " >&6; }
7393if test ${lt_cv_cc_needs_belf+y}
7394then :
7395  printf %s "(cached) " >&6
7396else $as_nop
7397  ac_ext=c
7398ac_cpp='$CPP $CPPFLAGS'
7399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7401ac_compiler_gnu=$ac_cv_c_compiler_gnu
7402
7403     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405
7406int
7407main (void)
7408{
7409
7410  ;
7411  return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_link "$LINENO"
7415then :
7416  lt_cv_cc_needs_belf=yes
7417else $as_nop
7418  lt_cv_cc_needs_belf=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext conftest.beam \
7421    conftest$ac_exeext conftest.$ac_ext
7422     ac_ext=c
7423ac_cpp='$CPP $CPPFLAGS'
7424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426ac_compiler_gnu=$ac_cv_c_compiler_gnu
7427
7428fi
7429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7430printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7431  if test yes != "$lt_cv_cc_needs_belf"; then
7432    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7433    CFLAGS=$SAVE_CFLAGS
7434  fi
7435  ;;
7436*-*solaris*)
7437  # Find out what ABI is being produced by ac_compile, and set linker
7438  # options accordingly.
7439  echo 'int i;' > conftest.$ac_ext
7440  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7441  (eval $ac_compile) 2>&5
7442  ac_status=$?
7443  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444  test $ac_status = 0; }; then
7445    case `$FILECMD conftest.o` in
7446    *64-bit*)
7447      case $lt_cv_prog_gnu_ld in
7448      yes*)
7449        case $host in
7450        i?86-*-solaris*|x86_64-*-solaris*)
7451          LD="${LD-ld} -m elf_x86_64"
7452          ;;
7453        sparc*-*-solaris*)
7454          LD="${LD-ld} -m elf64_sparc"
7455          ;;
7456        esac
7457        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7458        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7459          LD=${LD-ld}_sol2
7460        fi
7461        ;;
7462      *)
7463	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7464	  LD="${LD-ld} -64"
7465	fi
7466	;;
7467      esac
7468      ;;
7469    esac
7470  fi
7471  rm -rf conftest*
7472  ;;
7473esac
7474
7475need_locks=$enable_libtool_lock
7476
7477if test -n "$ac_tool_prefix"; then
7478  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7479set dummy ${ac_tool_prefix}mt; ac_word=$2
7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481printf %s "checking for $ac_word... " >&6; }
7482if test ${ac_cv_prog_MANIFEST_TOOL+y}
7483then :
7484  printf %s "(cached) " >&6
7485else $as_nop
7486  if test -n "$MANIFEST_TOOL"; then
7487  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7488else
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492  IFS=$as_save_IFS
7493  case $as_dir in #(((
7494    '') as_dir=./ ;;
7495    */) ;;
7496    *) as_dir=$as_dir/ ;;
7497  esac
7498    for ac_exec_ext in '' $ac_executable_extensions; do
7499  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7500    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7501    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7502    break 2
7503  fi
7504done
7505  done
7506IFS=$as_save_IFS
7507
7508fi
7509fi
7510MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7511if test -n "$MANIFEST_TOOL"; then
7512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7513printf "%s\n" "$MANIFEST_TOOL" >&6; }
7514else
7515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516printf "%s\n" "no" >&6; }
7517fi
7518
7519
7520fi
7521if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7522  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7523  # Extract the first word of "mt", so it can be a program name with args.
7524set dummy mt; ac_word=$2
7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526printf %s "checking for $ac_word... " >&6; }
7527if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  if test -n "$ac_ct_MANIFEST_TOOL"; then
7532  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  case $as_dir in #(((
7539    '') as_dir=./ ;;
7540    */) ;;
7541    *) as_dir=$as_dir/ ;;
7542  esac
7543    for ac_exec_ext in '' $ac_executable_extensions; do
7544  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7545    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7546    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7547    break 2
7548  fi
7549done
7550  done
7551IFS=$as_save_IFS
7552
7553fi
7554fi
7555ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7556if test -n "$ac_ct_MANIFEST_TOOL"; then
7557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7558printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7559else
7560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561printf "%s\n" "no" >&6; }
7562fi
7563
7564  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7565    MANIFEST_TOOL=":"
7566  else
7567    case $cross_compiling:$ac_tool_warned in
7568yes:)
7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571ac_tool_warned=yes ;;
7572esac
7573    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7574  fi
7575else
7576  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7577fi
7578
7579test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7581printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7582if test ${lt_cv_path_mainfest_tool+y}
7583then :
7584  printf %s "(cached) " >&6
7585else $as_nop
7586  lt_cv_path_mainfest_tool=no
7587  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7588  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7589  cat conftest.err >&5
7590  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7591    lt_cv_path_mainfest_tool=yes
7592  fi
7593  rm -f conftest*
7594fi
7595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7596printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7597if test yes != "$lt_cv_path_mainfest_tool"; then
7598  MANIFEST_TOOL=:
7599fi
7600
7601
7602
7603
7604
7605
7606  case $host_os in
7607    rhapsody* | darwin*)
7608    if test -n "$ac_tool_prefix"; then
7609  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7610set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612printf %s "checking for $ac_word... " >&6; }
7613if test ${ac_cv_prog_DSYMUTIL+y}
7614then :
7615  printf %s "(cached) " >&6
7616else $as_nop
7617  if test -n "$DSYMUTIL"; then
7618  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7619else
7620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623  IFS=$as_save_IFS
7624  case $as_dir in #(((
7625    '') as_dir=./ ;;
7626    */) ;;
7627    *) as_dir=$as_dir/ ;;
7628  esac
7629    for ac_exec_ext in '' $ac_executable_extensions; do
7630  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7631    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7632    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7633    break 2
7634  fi
7635done
7636  done
7637IFS=$as_save_IFS
7638
7639fi
7640fi
7641DSYMUTIL=$ac_cv_prog_DSYMUTIL
7642if test -n "$DSYMUTIL"; then
7643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7644printf "%s\n" "$DSYMUTIL" >&6; }
7645else
7646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647printf "%s\n" "no" >&6; }
7648fi
7649
7650
7651fi
7652if test -z "$ac_cv_prog_DSYMUTIL"; then
7653  ac_ct_DSYMUTIL=$DSYMUTIL
7654  # Extract the first word of "dsymutil", so it can be a program name with args.
7655set dummy dsymutil; ac_word=$2
7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657printf %s "checking for $ac_word... " >&6; }
7658if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7659then :
7660  printf %s "(cached) " >&6
7661else $as_nop
7662  if test -n "$ac_ct_DSYMUTIL"; then
7663  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7664else
7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668  IFS=$as_save_IFS
7669  case $as_dir in #(((
7670    '') as_dir=./ ;;
7671    */) ;;
7672    *) as_dir=$as_dir/ ;;
7673  esac
7674    for ac_exec_ext in '' $ac_executable_extensions; do
7675  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7676    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7677    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681  done
7682IFS=$as_save_IFS
7683
7684fi
7685fi
7686ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7687if test -n "$ac_ct_DSYMUTIL"; then
7688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7689printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7690else
7691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692printf "%s\n" "no" >&6; }
7693fi
7694
7695  if test "x$ac_ct_DSYMUTIL" = x; then
7696    DSYMUTIL=":"
7697  else
7698    case $cross_compiling:$ac_tool_warned in
7699yes:)
7700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702ac_tool_warned=yes ;;
7703esac
7704    DSYMUTIL=$ac_ct_DSYMUTIL
7705  fi
7706else
7707  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7708fi
7709
7710    if test -n "$ac_tool_prefix"; then
7711  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7712set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714printf %s "checking for $ac_word... " >&6; }
7715if test ${ac_cv_prog_NMEDIT+y}
7716then :
7717  printf %s "(cached) " >&6
7718else $as_nop
7719  if test -n "$NMEDIT"; then
7720  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725  IFS=$as_save_IFS
7726  case $as_dir in #(((
7727    '') as_dir=./ ;;
7728    */) ;;
7729    *) as_dir=$as_dir/ ;;
7730  esac
7731    for ac_exec_ext in '' $ac_executable_extensions; do
7732  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7733    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7734    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7735    break 2
7736  fi
7737done
7738  done
7739IFS=$as_save_IFS
7740
7741fi
7742fi
7743NMEDIT=$ac_cv_prog_NMEDIT
7744if test -n "$NMEDIT"; then
7745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7746printf "%s\n" "$NMEDIT" >&6; }
7747else
7748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749printf "%s\n" "no" >&6; }
7750fi
7751
7752
7753fi
7754if test -z "$ac_cv_prog_NMEDIT"; then
7755  ac_ct_NMEDIT=$NMEDIT
7756  # Extract the first word of "nmedit", so it can be a program name with args.
7757set dummy nmedit; ac_word=$2
7758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759printf %s "checking for $ac_word... " >&6; }
7760if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7761then :
7762  printf %s "(cached) " >&6
7763else $as_nop
7764  if test -n "$ac_ct_NMEDIT"; then
7765  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7766else
7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770  IFS=$as_save_IFS
7771  case $as_dir in #(((
7772    '') as_dir=./ ;;
7773    */) ;;
7774    *) as_dir=$as_dir/ ;;
7775  esac
7776    for ac_exec_ext in '' $ac_executable_extensions; do
7777  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7778    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7779    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7780    break 2
7781  fi
7782done
7783  done
7784IFS=$as_save_IFS
7785
7786fi
7787fi
7788ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7789if test -n "$ac_ct_NMEDIT"; then
7790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7791printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7792else
7793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794printf "%s\n" "no" >&6; }
7795fi
7796
7797  if test "x$ac_ct_NMEDIT" = x; then
7798    NMEDIT=":"
7799  else
7800    case $cross_compiling:$ac_tool_warned in
7801yes:)
7802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804ac_tool_warned=yes ;;
7805esac
7806    NMEDIT=$ac_ct_NMEDIT
7807  fi
7808else
7809  NMEDIT="$ac_cv_prog_NMEDIT"
7810fi
7811
7812    if test -n "$ac_tool_prefix"; then
7813  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7814set dummy ${ac_tool_prefix}lipo; ac_word=$2
7815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816printf %s "checking for $ac_word... " >&6; }
7817if test ${ac_cv_prog_LIPO+y}
7818then :
7819  printf %s "(cached) " >&6
7820else $as_nop
7821  if test -n "$LIPO"; then
7822  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7823else
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827  IFS=$as_save_IFS
7828  case $as_dir in #(((
7829    '') as_dir=./ ;;
7830    */) ;;
7831    *) as_dir=$as_dir/ ;;
7832  esac
7833    for ac_exec_ext in '' $ac_executable_extensions; do
7834  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7835    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7836    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7837    break 2
7838  fi
7839done
7840  done
7841IFS=$as_save_IFS
7842
7843fi
7844fi
7845LIPO=$ac_cv_prog_LIPO
7846if test -n "$LIPO"; then
7847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7848printf "%s\n" "$LIPO" >&6; }
7849else
7850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851printf "%s\n" "no" >&6; }
7852fi
7853
7854
7855fi
7856if test -z "$ac_cv_prog_LIPO"; then
7857  ac_ct_LIPO=$LIPO
7858  # Extract the first word of "lipo", so it can be a program name with args.
7859set dummy lipo; ac_word=$2
7860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861printf %s "checking for $ac_word... " >&6; }
7862if test ${ac_cv_prog_ac_ct_LIPO+y}
7863then :
7864  printf %s "(cached) " >&6
7865else $as_nop
7866  if test -n "$ac_ct_LIPO"; then
7867  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7868else
7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870for as_dir in $PATH
7871do
7872  IFS=$as_save_IFS
7873  case $as_dir in #(((
7874    '') as_dir=./ ;;
7875    */) ;;
7876    *) as_dir=$as_dir/ ;;
7877  esac
7878    for ac_exec_ext in '' $ac_executable_extensions; do
7879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7880    ac_cv_prog_ac_ct_LIPO="lipo"
7881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7882    break 2
7883  fi
7884done
7885  done
7886IFS=$as_save_IFS
7887
7888fi
7889fi
7890ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7891if test -n "$ac_ct_LIPO"; then
7892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7893printf "%s\n" "$ac_ct_LIPO" >&6; }
7894else
7895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896printf "%s\n" "no" >&6; }
7897fi
7898
7899  if test "x$ac_ct_LIPO" = x; then
7900    LIPO=":"
7901  else
7902    case $cross_compiling:$ac_tool_warned in
7903yes:)
7904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906ac_tool_warned=yes ;;
7907esac
7908    LIPO=$ac_ct_LIPO
7909  fi
7910else
7911  LIPO="$ac_cv_prog_LIPO"
7912fi
7913
7914    if test -n "$ac_tool_prefix"; then
7915  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7916set dummy ${ac_tool_prefix}otool; ac_word=$2
7917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918printf %s "checking for $ac_word... " >&6; }
7919if test ${ac_cv_prog_OTOOL+y}
7920then :
7921  printf %s "(cached) " >&6
7922else $as_nop
7923  if test -n "$OTOOL"; then
7924  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7925else
7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929  IFS=$as_save_IFS
7930  case $as_dir in #(((
7931    '') as_dir=./ ;;
7932    */) ;;
7933    *) as_dir=$as_dir/ ;;
7934  esac
7935    for ac_exec_ext in '' $ac_executable_extensions; do
7936  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7938    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942  done
7943IFS=$as_save_IFS
7944
7945fi
7946fi
7947OTOOL=$ac_cv_prog_OTOOL
7948if test -n "$OTOOL"; then
7949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7950printf "%s\n" "$OTOOL" >&6; }
7951else
7952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953printf "%s\n" "no" >&6; }
7954fi
7955
7956
7957fi
7958if test -z "$ac_cv_prog_OTOOL"; then
7959  ac_ct_OTOOL=$OTOOL
7960  # Extract the first word of "otool", so it can be a program name with args.
7961set dummy otool; ac_word=$2
7962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963printf %s "checking for $ac_word... " >&6; }
7964if test ${ac_cv_prog_ac_ct_OTOOL+y}
7965then :
7966  printf %s "(cached) " >&6
7967else $as_nop
7968  if test -n "$ac_ct_OTOOL"; then
7969  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7970else
7971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972for as_dir in $PATH
7973do
7974  IFS=$as_save_IFS
7975  case $as_dir in #(((
7976    '') as_dir=./ ;;
7977    */) ;;
7978    *) as_dir=$as_dir/ ;;
7979  esac
7980    for ac_exec_ext in '' $ac_executable_extensions; do
7981  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7982    ac_cv_prog_ac_ct_OTOOL="otool"
7983    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7984    break 2
7985  fi
7986done
7987  done
7988IFS=$as_save_IFS
7989
7990fi
7991fi
7992ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7993if test -n "$ac_ct_OTOOL"; then
7994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7995printf "%s\n" "$ac_ct_OTOOL" >&6; }
7996else
7997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998printf "%s\n" "no" >&6; }
7999fi
8000
8001  if test "x$ac_ct_OTOOL" = x; then
8002    OTOOL=":"
8003  else
8004    case $cross_compiling:$ac_tool_warned in
8005yes:)
8006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008ac_tool_warned=yes ;;
8009esac
8010    OTOOL=$ac_ct_OTOOL
8011  fi
8012else
8013  OTOOL="$ac_cv_prog_OTOOL"
8014fi
8015
8016    if test -n "$ac_tool_prefix"; then
8017  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8018set dummy ${ac_tool_prefix}otool64; ac_word=$2
8019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020printf %s "checking for $ac_word... " >&6; }
8021if test ${ac_cv_prog_OTOOL64+y}
8022then :
8023  printf %s "(cached) " >&6
8024else $as_nop
8025  if test -n "$OTOOL64"; then
8026  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8027else
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031  IFS=$as_save_IFS
8032  case $as_dir in #(((
8033    '') as_dir=./ ;;
8034    */) ;;
8035    *) as_dir=$as_dir/ ;;
8036  esac
8037    for ac_exec_ext in '' $ac_executable_extensions; do
8038  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8039    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8040    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8041    break 2
8042  fi
8043done
8044  done
8045IFS=$as_save_IFS
8046
8047fi
8048fi
8049OTOOL64=$ac_cv_prog_OTOOL64
8050if test -n "$OTOOL64"; then
8051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8052printf "%s\n" "$OTOOL64" >&6; }
8053else
8054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055printf "%s\n" "no" >&6; }
8056fi
8057
8058
8059fi
8060if test -z "$ac_cv_prog_OTOOL64"; then
8061  ac_ct_OTOOL64=$OTOOL64
8062  # Extract the first word of "otool64", so it can be a program name with args.
8063set dummy otool64; ac_word=$2
8064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065printf %s "checking for $ac_word... " >&6; }
8066if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8067then :
8068  printf %s "(cached) " >&6
8069else $as_nop
8070  if test -n "$ac_ct_OTOOL64"; then
8071  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8072else
8073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074for as_dir in $PATH
8075do
8076  IFS=$as_save_IFS
8077  case $as_dir in #(((
8078    '') as_dir=./ ;;
8079    */) ;;
8080    *) as_dir=$as_dir/ ;;
8081  esac
8082    for ac_exec_ext in '' $ac_executable_extensions; do
8083  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8084    ac_cv_prog_ac_ct_OTOOL64="otool64"
8085    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8086    break 2
8087  fi
8088done
8089  done
8090IFS=$as_save_IFS
8091
8092fi
8093fi
8094ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8095if test -n "$ac_ct_OTOOL64"; then
8096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8097printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8098else
8099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100printf "%s\n" "no" >&6; }
8101fi
8102
8103  if test "x$ac_ct_OTOOL64" = x; then
8104    OTOOL64=":"
8105  else
8106    case $cross_compiling:$ac_tool_warned in
8107yes:)
8108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8109printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8110ac_tool_warned=yes ;;
8111esac
8112    OTOOL64=$ac_ct_OTOOL64
8113  fi
8114else
8115  OTOOL64="$ac_cv_prog_OTOOL64"
8116fi
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8145printf %s "checking for -single_module linker flag... " >&6; }
8146if test ${lt_cv_apple_cc_single_mod+y}
8147then :
8148  printf %s "(cached) " >&6
8149else $as_nop
8150  lt_cv_apple_cc_single_mod=no
8151      if test -z "$LT_MULTI_MODULE"; then
8152	# By default we will add the -single_module flag. You can override
8153	# by either setting the environment variable LT_MULTI_MODULE
8154	# non-empty at configure time, or by adding -multi_module to the
8155	# link flags.
8156	rm -rf libconftest.dylib*
8157	echo "int foo(void){return 1;}" > conftest.c
8158	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8159-dynamiclib -Wl,-single_module conftest.c" >&5
8160	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8161	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8162        _lt_result=$?
8163	# If there is a non-empty error log, and "single_module"
8164	# appears in it, assume the flag caused a linker warning
8165        if test -s conftest.err && $GREP single_module conftest.err; then
8166	  cat conftest.err >&5
8167	# Otherwise, if the output was created with a 0 exit code from
8168	# the compiler, it worked.
8169	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8170	  lt_cv_apple_cc_single_mod=yes
8171	else
8172	  cat conftest.err >&5
8173	fi
8174	rm -rf libconftest.dylib*
8175	rm -f conftest.*
8176      fi
8177fi
8178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8179printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8180
8181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8182printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8183if test ${lt_cv_ld_exported_symbols_list+y}
8184then :
8185  printf %s "(cached) " >&6
8186else $as_nop
8187  lt_cv_ld_exported_symbols_list=no
8188      save_LDFLAGS=$LDFLAGS
8189      echo "_main" > conftest.sym
8190      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8191      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193
8194int
8195main (void)
8196{
8197
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202if ac_fn_c_try_link "$LINENO"
8203then :
8204  lt_cv_ld_exported_symbols_list=yes
8205else $as_nop
8206  lt_cv_ld_exported_symbols_list=no
8207fi
8208rm -f core conftest.err conftest.$ac_objext conftest.beam \
8209    conftest$ac_exeext conftest.$ac_ext
8210	LDFLAGS=$save_LDFLAGS
8211
8212fi
8213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8214printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8215
8216    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8217printf %s "checking for -force_load linker flag... " >&6; }
8218if test ${lt_cv_ld_force_load+y}
8219then :
8220  printf %s "(cached) " >&6
8221else $as_nop
8222  lt_cv_ld_force_load=no
8223      cat > conftest.c << _LT_EOF
8224int forced_loaded() { return 2;}
8225_LT_EOF
8226      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8227      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8228      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8229      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8230      echo "$RANLIB libconftest.a" >&5
8231      $RANLIB libconftest.a 2>&5
8232      cat > conftest.c << _LT_EOF
8233int main() { return 0;}
8234_LT_EOF
8235      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8236      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8237      _lt_result=$?
8238      if test -s conftest.err && $GREP force_load conftest.err; then
8239	cat conftest.err >&5
8240      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8241	lt_cv_ld_force_load=yes
8242      else
8243	cat conftest.err >&5
8244      fi
8245        rm -f conftest.err libconftest.a conftest conftest.c
8246        rm -rf conftest.dSYM
8247
8248fi
8249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8250printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8251    case $host_os in
8252    rhapsody* | darwin1.[012])
8253      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8254    darwin1.*)
8255      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8256    darwin*)
8257      case $MACOSX_DEPLOYMENT_TARGET,$host in
8258        10.[012],*|,*powerpc*-darwin[5-8]*)
8259          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8260        *)
8261          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8262      esac
8263    ;;
8264  esac
8265    if test yes = "$lt_cv_apple_cc_single_mod"; then
8266      _lt_dar_single_mod='$single_module'
8267    fi
8268    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8269      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8270    else
8271      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8272    fi
8273    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8274      _lt_dsymutil='~$DSYMUTIL $lib || :'
8275    else
8276      _lt_dsymutil=
8277    fi
8278    ;;
8279  esac
8280
8281# func_munge_path_list VARIABLE PATH
8282# -----------------------------------
8283# VARIABLE is name of variable containing _space_ separated list of
8284# directories to be munged by the contents of PATH, which is string
8285# having a format:
8286# "DIR[:DIR]:"
8287#       string "DIR[ DIR]" will be prepended to VARIABLE
8288# ":DIR[:DIR]"
8289#       string "DIR[ DIR]" will be appended to VARIABLE
8290# "DIRP[:DIRP]::[DIRA:]DIRA"
8291#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8292#       "DIRA[ DIRA]" will be appended to VARIABLE
8293# "DIR[:DIR]"
8294#       VARIABLE will be replaced by "DIR[ DIR]"
8295func_munge_path_list ()
8296{
8297    case x$2 in
8298    x)
8299        ;;
8300    *:)
8301        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8302        ;;
8303    x:*)
8304        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8305        ;;
8306    *::*)
8307        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8308        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8309        ;;
8310    *)
8311        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8312        ;;
8313    esac
8314}
8315
8316ac_header= ac_cache=
8317for ac_item in $ac_header_c_list
8318do
8319  if test $ac_cache; then
8320    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8321    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8322      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8323    fi
8324    ac_header= ac_cache=
8325  elif test $ac_header; then
8326    ac_cache=$ac_item
8327  else
8328    ac_header=$ac_item
8329  fi
8330done
8331
8332
8333
8334
8335
8336
8337
8338
8339if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8340then :
8341
8342printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8343
8344fi
8345ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8346"
8347if test "x$ac_cv_header_dlfcn_h" = xyes
8348then :
8349  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8350
8351fi
8352
8353
8354
8355
8356
8357# Set options
8358
8359
8360
8361        enable_dlopen=no
8362
8363
8364  enable_win32_dll=no
8365
8366
8367            # Check whether --enable-shared was given.
8368if test ${enable_shared+y}
8369then :
8370  enableval=$enable_shared; p=${PACKAGE-default}
8371    case $enableval in
8372    yes) enable_shared=yes ;;
8373    no) enable_shared=no ;;
8374    *)
8375      enable_shared=no
8376      # Look at the argument we got.  We use all the common list separators.
8377      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8378      for pkg in $enableval; do
8379	IFS=$lt_save_ifs
8380	if test "X$pkg" = "X$p"; then
8381	  enable_shared=yes
8382	fi
8383      done
8384      IFS=$lt_save_ifs
8385      ;;
8386    esac
8387else $as_nop
8388  enable_shared=yes
8389fi
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399  # Check whether --enable-static was given.
8400if test ${enable_static+y}
8401then :
8402  enableval=$enable_static; p=${PACKAGE-default}
8403    case $enableval in
8404    yes) enable_static=yes ;;
8405    no) enable_static=no ;;
8406    *)
8407     enable_static=no
8408      # Look at the argument we got.  We use all the common list separators.
8409      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8410      for pkg in $enableval; do
8411	IFS=$lt_save_ifs
8412	if test "X$pkg" = "X$p"; then
8413	  enable_static=yes
8414	fi
8415      done
8416      IFS=$lt_save_ifs
8417      ;;
8418    esac
8419else $as_nop
8420  enable_static=yes
8421fi
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432# Check whether --with-pic was given.
8433if test ${with_pic+y}
8434then :
8435  withval=$with_pic; lt_p=${PACKAGE-default}
8436    case $withval in
8437    yes|no) pic_mode=$withval ;;
8438    *)
8439      pic_mode=default
8440      # Look at the argument we got.  We use all the common list separators.
8441      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8442      for lt_pkg in $withval; do
8443	IFS=$lt_save_ifs
8444	if test "X$lt_pkg" = "X$lt_p"; then
8445	  pic_mode=yes
8446	fi
8447      done
8448      IFS=$lt_save_ifs
8449      ;;
8450    esac
8451else $as_nop
8452  pic_mode=default
8453fi
8454
8455
8456
8457
8458
8459
8460
8461
8462  # Check whether --enable-fast-install was given.
8463if test ${enable_fast_install+y}
8464then :
8465  enableval=$enable_fast_install; p=${PACKAGE-default}
8466    case $enableval in
8467    yes) enable_fast_install=yes ;;
8468    no) enable_fast_install=no ;;
8469    *)
8470      enable_fast_install=no
8471      # Look at the argument we got.  We use all the common list separators.
8472      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8473      for pkg in $enableval; do
8474	IFS=$lt_save_ifs
8475	if test "X$pkg" = "X$p"; then
8476	  enable_fast_install=yes
8477	fi
8478      done
8479      IFS=$lt_save_ifs
8480      ;;
8481    esac
8482else $as_nop
8483  enable_fast_install=yes
8484fi
8485
8486
8487
8488
8489
8490
8491
8492
8493  shared_archive_member_spec=
8494case $host,$enable_shared in
8495power*-*-aix[5-9]*,yes)
8496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8497printf %s "checking which variant of shared library versioning to provide... " >&6; }
8498
8499# Check whether --with-aix-soname was given.
8500if test ${with_aix_soname+y}
8501then :
8502  withval=$with_aix_soname; case $withval in
8503    aix|svr4|both)
8504      ;;
8505    *)
8506      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8507      ;;
8508    esac
8509    lt_cv_with_aix_soname=$with_aix_soname
8510else $as_nop
8511  if test ${lt_cv_with_aix_soname+y}
8512then :
8513  printf %s "(cached) " >&6
8514else $as_nop
8515  lt_cv_with_aix_soname=aix
8516fi
8517
8518    with_aix_soname=$lt_cv_with_aix_soname
8519fi
8520
8521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8522printf "%s\n" "$with_aix_soname" >&6; }
8523  if test aix != "$with_aix_soname"; then
8524    # For the AIX way of multilib, we name the shared archive member
8525    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8526    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8527    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8528    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8529    if test 64 = "${OBJECT_MODE-32}"; then
8530      shared_archive_member_spec=shr_64
8531    else
8532      shared_archive_member_spec=shr
8533    fi
8534  fi
8535  ;;
8536*)
8537  with_aix_soname=aix
8538  ;;
8539esac
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550# This can be used to rebuild libtool when needed
8551LIBTOOL_DEPS=$ltmain
8552
8553# Always use our own libtool.
8554LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585test -z "$LN_S" && LN_S="ln -s"
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600if test -n "${ZSH_VERSION+set}"; then
8601   setopt NO_GLOB_SUBST
8602fi
8603
8604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8605printf %s "checking for objdir... " >&6; }
8606if test ${lt_cv_objdir+y}
8607then :
8608  printf %s "(cached) " >&6
8609else $as_nop
8610  rm -f .libs 2>/dev/null
8611mkdir .libs 2>/dev/null
8612if test -d .libs; then
8613  lt_cv_objdir=.libs
8614else
8615  # MS-DOS does not allow filenames that begin with a dot.
8616  lt_cv_objdir=_libs
8617fi
8618rmdir .libs 2>/dev/null
8619fi
8620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8621printf "%s\n" "$lt_cv_objdir" >&6; }
8622objdir=$lt_cv_objdir
8623
8624
8625
8626
8627
8628printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8629
8630
8631
8632
8633case $host_os in
8634aix3*)
8635  # AIX sometimes has problems with the GCC collect2 program.  For some
8636  # reason, if we set the COLLECT_NAMES environment variable, the problems
8637  # vanish in a puff of smoke.
8638  if test set != "${COLLECT_NAMES+set}"; then
8639    COLLECT_NAMES=
8640    export COLLECT_NAMES
8641  fi
8642  ;;
8643esac
8644
8645# Global variables:
8646ofile=libtool
8647can_build_shared=yes
8648
8649# All known linkers require a '.a' archive for static linking (except MSVC and
8650# ICC, which need '.lib').
8651libext=a
8652
8653with_gnu_ld=$lt_cv_prog_gnu_ld
8654
8655old_CC=$CC
8656old_CFLAGS=$CFLAGS
8657
8658# Set sane defaults for various variables
8659test -z "$CC" && CC=cc
8660test -z "$LTCC" && LTCC=$CC
8661test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8662test -z "$LD" && LD=ld
8663test -z "$ac_objext" && ac_objext=o
8664
8665func_cc_basename $compiler
8666cc_basename=$func_cc_basename_result
8667
8668
8669# Only perform the check for file, if the check method requires it
8670test -z "$MAGIC_CMD" && MAGIC_CMD=file
8671case $deplibs_check_method in
8672file_magic*)
8673  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8674    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8675printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8676if test ${lt_cv_path_MAGIC_CMD+y}
8677then :
8678  printf %s "(cached) " >&6
8679else $as_nop
8680  case $MAGIC_CMD in
8681[\\/*] |  ?:[\\/]*)
8682  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8683  ;;
8684*)
8685  lt_save_MAGIC_CMD=$MAGIC_CMD
8686  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8687  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8688  for ac_dir in $ac_dummy; do
8689    IFS=$lt_save_ifs
8690    test -z "$ac_dir" && ac_dir=.
8691    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8692      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8693      if test -n "$file_magic_test_file"; then
8694	case $deplibs_check_method in
8695	"file_magic "*)
8696	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8697	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8698	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8699	    $EGREP "$file_magic_regex" > /dev/null; then
8700	    :
8701	  else
8702	    cat <<_LT_EOF 1>&2
8703
8704*** Warning: the command libtool uses to detect shared libraries,
8705*** $file_magic_cmd, produces output that libtool cannot recognize.
8706*** The result is that libtool may fail to recognize shared libraries
8707*** as such.  This will affect the creation of libtool libraries that
8708*** depend on shared libraries, but programs linked with such libtool
8709*** libraries will work regardless of this problem.  Nevertheless, you
8710*** may want to report the problem to your system manager and/or to
8711*** bug-libtool@gnu.org
8712
8713_LT_EOF
8714	  fi ;;
8715	esac
8716      fi
8717      break
8718    fi
8719  done
8720  IFS=$lt_save_ifs
8721  MAGIC_CMD=$lt_save_MAGIC_CMD
8722  ;;
8723esac
8724fi
8725
8726MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8727if test -n "$MAGIC_CMD"; then
8728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8729printf "%s\n" "$MAGIC_CMD" >&6; }
8730else
8731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732printf "%s\n" "no" >&6; }
8733fi
8734
8735
8736
8737
8738
8739if test -z "$lt_cv_path_MAGIC_CMD"; then
8740  if test -n "$ac_tool_prefix"; then
8741    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8742printf %s "checking for file... " >&6; }
8743if test ${lt_cv_path_MAGIC_CMD+y}
8744then :
8745  printf %s "(cached) " >&6
8746else $as_nop
8747  case $MAGIC_CMD in
8748[\\/*] |  ?:[\\/]*)
8749  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8750  ;;
8751*)
8752  lt_save_MAGIC_CMD=$MAGIC_CMD
8753  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8754  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8755  for ac_dir in $ac_dummy; do
8756    IFS=$lt_save_ifs
8757    test -z "$ac_dir" && ac_dir=.
8758    if test -f "$ac_dir/file"; then
8759      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8760      if test -n "$file_magic_test_file"; then
8761	case $deplibs_check_method in
8762	"file_magic "*)
8763	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8764	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8765	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8766	    $EGREP "$file_magic_regex" > /dev/null; then
8767	    :
8768	  else
8769	    cat <<_LT_EOF 1>&2
8770
8771*** Warning: the command libtool uses to detect shared libraries,
8772*** $file_magic_cmd, produces output that libtool cannot recognize.
8773*** The result is that libtool may fail to recognize shared libraries
8774*** as such.  This will affect the creation of libtool libraries that
8775*** depend on shared libraries, but programs linked with such libtool
8776*** libraries will work regardless of this problem.  Nevertheless, you
8777*** may want to report the problem to your system manager and/or to
8778*** bug-libtool@gnu.org
8779
8780_LT_EOF
8781	  fi ;;
8782	esac
8783      fi
8784      break
8785    fi
8786  done
8787  IFS=$lt_save_ifs
8788  MAGIC_CMD=$lt_save_MAGIC_CMD
8789  ;;
8790esac
8791fi
8792
8793MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8794if test -n "$MAGIC_CMD"; then
8795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8796printf "%s\n" "$MAGIC_CMD" >&6; }
8797else
8798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799printf "%s\n" "no" >&6; }
8800fi
8801
8802
8803  else
8804    MAGIC_CMD=:
8805  fi
8806fi
8807
8808  fi
8809  ;;
8810esac
8811
8812# Use C for the default configuration in the libtool script
8813
8814lt_save_CC=$CC
8815ac_ext=c
8816ac_cpp='$CPP $CPPFLAGS'
8817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819ac_compiler_gnu=$ac_cv_c_compiler_gnu
8820
8821
8822# Source file extension for C test sources.
8823ac_ext=c
8824
8825# Object file extension for compiled C test sources.
8826objext=o
8827objext=$objext
8828
8829# Code to be used in simple compile tests
8830lt_simple_compile_test_code="int some_variable = 0;"
8831
8832# Code to be used in simple link tests
8833lt_simple_link_test_code='int main(){return(0);}'
8834
8835
8836
8837
8838
8839
8840
8841# If no C compiler was specified, use CC.
8842LTCC=${LTCC-"$CC"}
8843
8844# If no C compiler flags were specified, use CFLAGS.
8845LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8846
8847# Allow CC to be a program name with arguments.
8848compiler=$CC
8849
8850# Save the default compiler, since it gets overwritten when the other
8851# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8852compiler_DEFAULT=$CC
8853
8854# save warnings/boilerplate of simple test code
8855ac_outfile=conftest.$ac_objext
8856echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8857eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8858_lt_compiler_boilerplate=`cat conftest.err`
8859$RM conftest*
8860
8861ac_outfile=conftest.$ac_objext
8862echo "$lt_simple_link_test_code" >conftest.$ac_ext
8863eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8864_lt_linker_boilerplate=`cat conftest.err`
8865$RM -r conftest*
8866
8867
8868if test -n "$compiler"; then
8869
8870lt_prog_compiler_no_builtin_flag=
8871
8872if test yes = "$GCC"; then
8873  case $cc_basename in
8874  nvcc*)
8875    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8876  *)
8877    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8878  esac
8879
8880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8881printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8882if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8883then :
8884  printf %s "(cached) " >&6
8885else $as_nop
8886  lt_cv_prog_compiler_rtti_exceptions=no
8887   ac_outfile=conftest.$ac_objext
8888   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8889   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8890   # Insert the option either (1) after the last *FLAGS variable, or
8891   # (2) before a word containing "conftest.", or (3) at the end.
8892   # Note that $ac_compile itself does not contain backslashes and begins
8893   # with a dollar sign (not a hyphen), so the echo should work correctly.
8894   # The option is referenced via a variable to avoid confusing sed.
8895   lt_compile=`echo "$ac_compile" | $SED \
8896   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898   -e 's:$: $lt_compiler_flag:'`
8899   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900   (eval "$lt_compile" 2>conftest.err)
8901   ac_status=$?
8902   cat conftest.err >&5
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   if (exit $ac_status) && test -s "$ac_outfile"; then
8905     # The compiler can only warn and ignore the option if not recognized
8906     # So say no if there are warnings other than the usual output.
8907     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8908     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8909     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8910       lt_cv_prog_compiler_rtti_exceptions=yes
8911     fi
8912   fi
8913   $RM conftest*
8914
8915fi
8916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8917printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8918
8919if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8920    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8921else
8922    :
8923fi
8924
8925fi
8926
8927
8928
8929
8930
8931
8932  lt_prog_compiler_wl=
8933lt_prog_compiler_pic=
8934lt_prog_compiler_static=
8935
8936
8937  if test yes = "$GCC"; then
8938    lt_prog_compiler_wl='-Wl,'
8939    lt_prog_compiler_static='-static'
8940
8941    case $host_os in
8942      aix*)
8943      # All AIX code is PIC.
8944      if test ia64 = "$host_cpu"; then
8945	# AIX 5 now supports IA64 processor
8946	lt_prog_compiler_static='-Bstatic'
8947      fi
8948      lt_prog_compiler_pic='-fPIC'
8949      ;;
8950
8951    amigaos*)
8952      case $host_cpu in
8953      powerpc)
8954            # see comment about AmigaOS4 .so support
8955            lt_prog_compiler_pic='-fPIC'
8956        ;;
8957      m68k)
8958            # FIXME: we need at least 68020 code to build shared libraries, but
8959            # adding the '-m68020' flag to GCC prevents building anything better,
8960            # like '-m68040'.
8961            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8962        ;;
8963      esac
8964      ;;
8965
8966    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8967      # PIC is the default for these OSes.
8968      ;;
8969
8970    mingw* | cygwin* | pw32* | os2* | cegcc*)
8971      # This hack is so that the source file can tell whether it is being
8972      # built for inclusion in a dll (and should export symbols for example).
8973      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8974      # (--disable-auto-import) libraries
8975      lt_prog_compiler_pic='-DDLL_EXPORT'
8976      case $host_os in
8977      os2*)
8978	lt_prog_compiler_static='$wl-static'
8979	;;
8980      esac
8981      ;;
8982
8983    darwin* | rhapsody*)
8984      # PIC is the default on this platform
8985      # Common symbols not allowed in MH_DYLIB files
8986      lt_prog_compiler_pic='-fno-common'
8987      ;;
8988
8989    haiku*)
8990      # PIC is the default for Haiku.
8991      # The "-static" flag exists, but is broken.
8992      lt_prog_compiler_static=
8993      ;;
8994
8995    hpux*)
8996      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8997      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8998      # sets the default TLS model and affects inlining.
8999      case $host_cpu in
9000      hppa*64*)
9001	# +Z the default
9002	;;
9003      *)
9004	lt_prog_compiler_pic='-fPIC'
9005	;;
9006      esac
9007      ;;
9008
9009    interix[3-9]*)
9010      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9011      # Instead, we relocate shared libraries at runtime.
9012      ;;
9013
9014    msdosdjgpp*)
9015      # Just because we use GCC doesn't mean we suddenly get shared libraries
9016      # on systems that don't support them.
9017      lt_prog_compiler_can_build_shared=no
9018      enable_shared=no
9019      ;;
9020
9021    *nto* | *qnx*)
9022      # QNX uses GNU C++, but need to define -shared option too, otherwise
9023      # it will coredump.
9024      lt_prog_compiler_pic='-fPIC -shared'
9025      ;;
9026
9027    sysv4*MP*)
9028      if test -d /usr/nec; then
9029	lt_prog_compiler_pic=-Kconform_pic
9030      fi
9031      ;;
9032
9033    *)
9034      lt_prog_compiler_pic='-fPIC'
9035      ;;
9036    esac
9037
9038    case $cc_basename in
9039    nvcc*) # Cuda Compiler Driver 2.2
9040      lt_prog_compiler_wl='-Xlinker '
9041      if test -n "$lt_prog_compiler_pic"; then
9042        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9043      fi
9044      ;;
9045    esac
9046  else
9047    # PORTME Check for flag to pass linker flags through the system compiler.
9048    case $host_os in
9049    aix*)
9050      lt_prog_compiler_wl='-Wl,'
9051      if test ia64 = "$host_cpu"; then
9052	# AIX 5 now supports IA64 processor
9053	lt_prog_compiler_static='-Bstatic'
9054      else
9055	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9056      fi
9057      ;;
9058
9059    darwin* | rhapsody*)
9060      # PIC is the default on this platform
9061      # Common symbols not allowed in MH_DYLIB files
9062      lt_prog_compiler_pic='-fno-common'
9063      case $cc_basename in
9064      nagfor*)
9065        # NAG Fortran compiler
9066        lt_prog_compiler_wl='-Wl,-Wl,,'
9067        lt_prog_compiler_pic='-PIC'
9068        lt_prog_compiler_static='-Bstatic'
9069        ;;
9070      esac
9071      ;;
9072
9073    mingw* | cygwin* | pw32* | os2* | cegcc*)
9074      # This hack is so that the source file can tell whether it is being
9075      # built for inclusion in a dll (and should export symbols for example).
9076      lt_prog_compiler_pic='-DDLL_EXPORT'
9077      case $host_os in
9078      os2*)
9079	lt_prog_compiler_static='$wl-static'
9080	;;
9081      esac
9082      ;;
9083
9084    hpux9* | hpux10* | hpux11*)
9085      lt_prog_compiler_wl='-Wl,'
9086      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9087      # not for PA HP-UX.
9088      case $host_cpu in
9089      hppa*64*|ia64*)
9090	# +Z the default
9091	;;
9092      *)
9093	lt_prog_compiler_pic='+Z'
9094	;;
9095      esac
9096      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9097      lt_prog_compiler_static='$wl-a ${wl}archive'
9098      ;;
9099
9100    irix5* | irix6* | nonstopux*)
9101      lt_prog_compiler_wl='-Wl,'
9102      # PIC (with -KPIC) is the default.
9103      lt_prog_compiler_static='-non_shared'
9104      ;;
9105
9106    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9107      case $cc_basename in
9108      # old Intel for x86_64, which still supported -KPIC.
9109      ecc*)
9110	lt_prog_compiler_wl='-Wl,'
9111	lt_prog_compiler_pic='-KPIC'
9112	lt_prog_compiler_static='-static'
9113        ;;
9114      # icc used to be incompatible with GCC.
9115      # ICC 10 doesn't accept -KPIC any more.
9116      icc* | ifort*)
9117	lt_prog_compiler_wl='-Wl,'
9118	lt_prog_compiler_pic='-fPIC'
9119	lt_prog_compiler_static='-static'
9120        ;;
9121      # Lahey Fortran 8.1.
9122      lf95*)
9123	lt_prog_compiler_wl='-Wl,'
9124	lt_prog_compiler_pic='--shared'
9125	lt_prog_compiler_static='--static'
9126	;;
9127      nagfor*)
9128	# NAG Fortran compiler
9129	lt_prog_compiler_wl='-Wl,-Wl,,'
9130	lt_prog_compiler_pic='-PIC'
9131	lt_prog_compiler_static='-Bstatic'
9132	;;
9133      tcc*)
9134	# Fabrice Bellard et al's Tiny C Compiler
9135	lt_prog_compiler_wl='-Wl,'
9136	lt_prog_compiler_pic='-fPIC'
9137	lt_prog_compiler_static='-static'
9138	;;
9139      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9140        # Portland Group compilers (*not* the Pentium gcc compiler,
9141	# which looks to be a dead project)
9142	lt_prog_compiler_wl='-Wl,'
9143	lt_prog_compiler_pic='-fpic'
9144	lt_prog_compiler_static='-Bstatic'
9145        ;;
9146      ccc*)
9147        lt_prog_compiler_wl='-Wl,'
9148        # All Alpha code is PIC.
9149        lt_prog_compiler_static='-non_shared'
9150        ;;
9151      xl* | bgxl* | bgf* | mpixl*)
9152	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9153	lt_prog_compiler_wl='-Wl,'
9154	lt_prog_compiler_pic='-qpic'
9155	lt_prog_compiler_static='-qstaticlink'
9156	;;
9157      *)
9158	case `$CC -V 2>&1 | $SED 5q` in
9159	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9160	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9161	  lt_prog_compiler_pic='-KPIC'
9162	  lt_prog_compiler_static='-Bstatic'
9163	  lt_prog_compiler_wl=''
9164	  ;;
9165	*Sun\ F* | *Sun*Fortran*)
9166	  lt_prog_compiler_pic='-KPIC'
9167	  lt_prog_compiler_static='-Bstatic'
9168	  lt_prog_compiler_wl='-Qoption ld '
9169	  ;;
9170	*Sun\ C*)
9171	  # Sun C 5.9
9172	  lt_prog_compiler_pic='-KPIC'
9173	  lt_prog_compiler_static='-Bstatic'
9174	  lt_prog_compiler_wl='-Wl,'
9175	  ;;
9176        *Intel*\ [CF]*Compiler*)
9177	  lt_prog_compiler_wl='-Wl,'
9178	  lt_prog_compiler_pic='-fPIC'
9179	  lt_prog_compiler_static='-static'
9180	  ;;
9181	*Portland\ Group*)
9182	  lt_prog_compiler_wl='-Wl,'
9183	  lt_prog_compiler_pic='-fpic'
9184	  lt_prog_compiler_static='-Bstatic'
9185	  ;;
9186	esac
9187	;;
9188      esac
9189      ;;
9190
9191    newsos6)
9192      lt_prog_compiler_pic='-KPIC'
9193      lt_prog_compiler_static='-Bstatic'
9194      ;;
9195
9196    *nto* | *qnx*)
9197      # QNX uses GNU C++, but need to define -shared option too, otherwise
9198      # it will coredump.
9199      lt_prog_compiler_pic='-fPIC -shared'
9200      ;;
9201
9202    osf3* | osf4* | osf5*)
9203      lt_prog_compiler_wl='-Wl,'
9204      # All OSF/1 code is PIC.
9205      lt_prog_compiler_static='-non_shared'
9206      ;;
9207
9208    rdos*)
9209      lt_prog_compiler_static='-non_shared'
9210      ;;
9211
9212    solaris*)
9213      lt_prog_compiler_pic='-KPIC'
9214      lt_prog_compiler_static='-Bstatic'
9215      case $cc_basename in
9216      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9217	lt_prog_compiler_wl='-Qoption ld ';;
9218      *)
9219	lt_prog_compiler_wl='-Wl,';;
9220      esac
9221      ;;
9222
9223    sunos4*)
9224      lt_prog_compiler_wl='-Qoption ld '
9225      lt_prog_compiler_pic='-PIC'
9226      lt_prog_compiler_static='-Bstatic'
9227      ;;
9228
9229    sysv4 | sysv4.2uw2* | sysv4.3*)
9230      lt_prog_compiler_wl='-Wl,'
9231      lt_prog_compiler_pic='-KPIC'
9232      lt_prog_compiler_static='-Bstatic'
9233      ;;
9234
9235    sysv4*MP*)
9236      if test -d /usr/nec; then
9237	lt_prog_compiler_pic='-Kconform_pic'
9238	lt_prog_compiler_static='-Bstatic'
9239      fi
9240      ;;
9241
9242    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9243      lt_prog_compiler_wl='-Wl,'
9244      lt_prog_compiler_pic='-KPIC'
9245      lt_prog_compiler_static='-Bstatic'
9246      ;;
9247
9248    unicos*)
9249      lt_prog_compiler_wl='-Wl,'
9250      lt_prog_compiler_can_build_shared=no
9251      ;;
9252
9253    uts4*)
9254      lt_prog_compiler_pic='-pic'
9255      lt_prog_compiler_static='-Bstatic'
9256      ;;
9257
9258    *)
9259      lt_prog_compiler_can_build_shared=no
9260      ;;
9261    esac
9262  fi
9263
9264case $host_os in
9265  # For platforms that do not support PIC, -DPIC is meaningless:
9266  *djgpp*)
9267    lt_prog_compiler_pic=
9268    ;;
9269  *)
9270    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9271    ;;
9272esac
9273
9274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9275printf %s "checking for $compiler option to produce PIC... " >&6; }
9276if test ${lt_cv_prog_compiler_pic+y}
9277then :
9278  printf %s "(cached) " >&6
9279else $as_nop
9280  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9281fi
9282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9283printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9284lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9285
9286#
9287# Check to make sure the PIC flag actually works.
9288#
9289if test -n "$lt_prog_compiler_pic"; then
9290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9291printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9292if test ${lt_cv_prog_compiler_pic_works+y}
9293then :
9294  printf %s "(cached) " >&6
9295else $as_nop
9296  lt_cv_prog_compiler_pic_works=no
9297   ac_outfile=conftest.$ac_objext
9298   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9299   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9300   # Insert the option either (1) after the last *FLAGS variable, or
9301   # (2) before a word containing "conftest.", or (3) at the end.
9302   # Note that $ac_compile itself does not contain backslashes and begins
9303   # with a dollar sign (not a hyphen), so the echo should work correctly.
9304   # The option is referenced via a variable to avoid confusing sed.
9305   lt_compile=`echo "$ac_compile" | $SED \
9306   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9307   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9308   -e 's:$: $lt_compiler_flag:'`
9309   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9310   (eval "$lt_compile" 2>conftest.err)
9311   ac_status=$?
9312   cat conftest.err >&5
9313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314   if (exit $ac_status) && test -s "$ac_outfile"; then
9315     # The compiler can only warn and ignore the option if not recognized
9316     # So say no if there are warnings other than the usual output.
9317     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9318     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9319     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9320       lt_cv_prog_compiler_pic_works=yes
9321     fi
9322   fi
9323   $RM conftest*
9324
9325fi
9326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9327printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9328
9329if test yes = "$lt_cv_prog_compiler_pic_works"; then
9330    case $lt_prog_compiler_pic in
9331     "" | " "*) ;;
9332     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9333     esac
9334else
9335    lt_prog_compiler_pic=
9336     lt_prog_compiler_can_build_shared=no
9337fi
9338
9339fi
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351#
9352# Check to make sure the static flag actually works.
9353#
9354wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9356printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9357if test ${lt_cv_prog_compiler_static_works+y}
9358then :
9359  printf %s "(cached) " >&6
9360else $as_nop
9361  lt_cv_prog_compiler_static_works=no
9362   save_LDFLAGS=$LDFLAGS
9363   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9364   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9365   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9366     # The linker can only warn and ignore the option if not recognized
9367     # So say no if there are warnings
9368     if test -s conftest.err; then
9369       # Append any errors to the config.log.
9370       cat conftest.err 1>&5
9371       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9372       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9373       if diff conftest.exp conftest.er2 >/dev/null; then
9374         lt_cv_prog_compiler_static_works=yes
9375       fi
9376     else
9377       lt_cv_prog_compiler_static_works=yes
9378     fi
9379   fi
9380   $RM -r conftest*
9381   LDFLAGS=$save_LDFLAGS
9382
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9385printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9386
9387if test yes = "$lt_cv_prog_compiler_static_works"; then
9388    :
9389else
9390    lt_prog_compiler_static=
9391fi
9392
9393
9394
9395
9396
9397
9398
9399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9400printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9401if test ${lt_cv_prog_compiler_c_o+y}
9402then :
9403  printf %s "(cached) " >&6
9404else $as_nop
9405  lt_cv_prog_compiler_c_o=no
9406   $RM -r conftest 2>/dev/null
9407   mkdir conftest
9408   cd conftest
9409   mkdir out
9410   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411
9412   lt_compiler_flag="-o out/conftest2.$ac_objext"
9413   # Insert the option either (1) after the last *FLAGS variable, or
9414   # (2) before a word containing "conftest.", or (3) at the end.
9415   # Note that $ac_compile itself does not contain backslashes and begins
9416   # with a dollar sign (not a hyphen), so the echo should work correctly.
9417   lt_compile=`echo "$ac_compile" | $SED \
9418   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9419   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9420   -e 's:$: $lt_compiler_flag:'`
9421   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9422   (eval "$lt_compile" 2>out/conftest.err)
9423   ac_status=$?
9424   cat out/conftest.err >&5
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9427   then
9428     # The compiler can only warn and ignore the option if not recognized
9429     # So say no if there are warnings
9430     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9431     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9432     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9433       lt_cv_prog_compiler_c_o=yes
9434     fi
9435   fi
9436   chmod u+w . 2>&5
9437   $RM conftest*
9438   # SGI C++ compiler will create directory out/ii_files/ for
9439   # template instantiation
9440   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9441   $RM out/* && rmdir out
9442   cd ..
9443   $RM -r conftest
9444   $RM conftest*
9445
9446fi
9447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9448printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9449
9450
9451
9452
9453
9454
9455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9456printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9457if test ${lt_cv_prog_compiler_c_o+y}
9458then :
9459  printf %s "(cached) " >&6
9460else $as_nop
9461  lt_cv_prog_compiler_c_o=no
9462   $RM -r conftest 2>/dev/null
9463   mkdir conftest
9464   cd conftest
9465   mkdir out
9466   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9467
9468   lt_compiler_flag="-o out/conftest2.$ac_objext"
9469   # Insert the option either (1) after the last *FLAGS variable, or
9470   # (2) before a word containing "conftest.", or (3) at the end.
9471   # Note that $ac_compile itself does not contain backslashes and begins
9472   # with a dollar sign (not a hyphen), so the echo should work correctly.
9473   lt_compile=`echo "$ac_compile" | $SED \
9474   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9475   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9476   -e 's:$: $lt_compiler_flag:'`
9477   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9478   (eval "$lt_compile" 2>out/conftest.err)
9479   ac_status=$?
9480   cat out/conftest.err >&5
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9483   then
9484     # The compiler can only warn and ignore the option if not recognized
9485     # So say no if there are warnings
9486     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9487     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9488     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9489       lt_cv_prog_compiler_c_o=yes
9490     fi
9491   fi
9492   chmod u+w . 2>&5
9493   $RM conftest*
9494   # SGI C++ compiler will create directory out/ii_files/ for
9495   # template instantiation
9496   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9497   $RM out/* && rmdir out
9498   cd ..
9499   $RM -r conftest
9500   $RM conftest*
9501
9502fi
9503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9504printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9505
9506
9507
9508
9509hard_links=nottested
9510if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9511  # do not overwrite the value of need_locks provided by the user
9512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9513printf %s "checking if we can lock with hard links... " >&6; }
9514  hard_links=yes
9515  $RM conftest*
9516  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9517  touch conftest.a
9518  ln conftest.a conftest.b 2>&5 || hard_links=no
9519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9521printf "%s\n" "$hard_links" >&6; }
9522  if test no = "$hard_links"; then
9523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9524printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9525    need_locks=warn
9526  fi
9527else
9528  need_locks=no
9529fi
9530
9531
9532
9533
9534
9535
9536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9537printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9538
9539  runpath_var=
9540  allow_undefined_flag=
9541  always_export_symbols=no
9542  archive_cmds=
9543  archive_expsym_cmds=
9544  compiler_needs_object=no
9545  enable_shared_with_static_runtimes=no
9546  export_dynamic_flag_spec=
9547  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9548  hardcode_automatic=no
9549  hardcode_direct=no
9550  hardcode_direct_absolute=no
9551  hardcode_libdir_flag_spec=
9552  hardcode_libdir_separator=
9553  hardcode_minus_L=no
9554  hardcode_shlibpath_var=unsupported
9555  inherit_rpath=no
9556  link_all_deplibs=unknown
9557  module_cmds=
9558  module_expsym_cmds=
9559  old_archive_from_new_cmds=
9560  old_archive_from_expsyms_cmds=
9561  thread_safe_flag_spec=
9562  whole_archive_flag_spec=
9563  # include_expsyms should be a list of space-separated symbols to be *always*
9564  # included in the symbol list
9565  include_expsyms=
9566  # exclude_expsyms can be an extended regexp of symbols to exclude
9567  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9568  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9569  # as well as any symbol that contains 'd'.
9570  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9571  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9572  # platforms (ab)use it in PIC code, but their linkers get confused if
9573  # the symbol is explicitly referenced.  Since portable code cannot
9574  # rely on this symbol name, it's probably fine to never include it in
9575  # preloaded symbol tables.
9576  # Exclude shared library initialization/finalization symbols.
9577  extract_expsyms_cmds=
9578
9579  case $host_os in
9580  cygwin* | mingw* | pw32* | cegcc*)
9581    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9582    # When not using gcc, we currently assume that we are using
9583    # Microsoft Visual C++ or Intel C++ Compiler.
9584    if test yes != "$GCC"; then
9585      with_gnu_ld=no
9586    fi
9587    ;;
9588  interix*)
9589    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9590    with_gnu_ld=yes
9591    ;;
9592  openbsd* | bitrig*)
9593    with_gnu_ld=no
9594    ;;
9595  esac
9596
9597  ld_shlibs=yes
9598
9599  # On some targets, GNU ld is compatible enough with the native linker
9600  # that we're better off using the native interface for both.
9601  lt_use_gnu_ld_interface=no
9602  if test yes = "$with_gnu_ld"; then
9603    case $host_os in
9604      aix*)
9605	# The AIX port of GNU ld has always aspired to compatibility
9606	# with the native linker.  However, as the warning in the GNU ld
9607	# block says, versions before 2.19.5* couldn't really create working
9608	# shared libraries, regardless of the interface used.
9609	case `$LD -v 2>&1` in
9610	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9611	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9612	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9613	  *)
9614	    lt_use_gnu_ld_interface=yes
9615	    ;;
9616	esac
9617	;;
9618      *)
9619	lt_use_gnu_ld_interface=yes
9620	;;
9621    esac
9622  fi
9623
9624  if test yes = "$lt_use_gnu_ld_interface"; then
9625    # If archive_cmds runs LD, not CC, wlarc should be empty
9626    wlarc='$wl'
9627
9628    # Set some defaults for GNU ld with shared library support. These
9629    # are reset later if shared libraries are not supported. Putting them
9630    # here allows them to be overridden if necessary.
9631    runpath_var=LD_RUN_PATH
9632    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9633    export_dynamic_flag_spec='$wl--export-dynamic'
9634    # ancient GNU ld didn't support --whole-archive et. al.
9635    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9636      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9637    else
9638      whole_archive_flag_spec=
9639    fi
9640    supports_anon_versioning=no
9641    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9642      *GNU\ gold*) supports_anon_versioning=yes ;;
9643      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9644      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9645      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9646      *\ 2.11.*) ;; # other 2.11 versions
9647      *) supports_anon_versioning=yes ;;
9648    esac
9649
9650    # See if GNU ld supports shared libraries.
9651    case $host_os in
9652    aix[3-9]*)
9653      # On AIX/PPC, the GNU linker is very broken
9654      if test ia64 != "$host_cpu"; then
9655	ld_shlibs=no
9656	cat <<_LT_EOF 1>&2
9657
9658*** Warning: the GNU linker, at least up to release 2.19, is reported
9659*** to be unable to reliably create shared libraries on AIX.
9660*** Therefore, libtool is disabling shared libraries support.  If you
9661*** really care for shared libraries, you may want to install binutils
9662*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9663*** You will then need to restart the configuration process.
9664
9665_LT_EOF
9666      fi
9667      ;;
9668
9669    amigaos*)
9670      case $host_cpu in
9671      powerpc)
9672            # see comment about AmigaOS4 .so support
9673            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9674            archive_expsym_cmds=''
9675        ;;
9676      m68k)
9677            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)'
9678            hardcode_libdir_flag_spec='-L$libdir'
9679            hardcode_minus_L=yes
9680        ;;
9681      esac
9682      ;;
9683
9684    beos*)
9685      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9686	allow_undefined_flag=unsupported
9687	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9688	# support --undefined.  This deserves some investigation.  FIXME
9689	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9690      else
9691	ld_shlibs=no
9692      fi
9693      ;;
9694
9695    cygwin* | mingw* | pw32* | cegcc*)
9696      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9697      # as there is no search path for DLLs.
9698      hardcode_libdir_flag_spec='-L$libdir'
9699      export_dynamic_flag_spec='$wl--export-all-symbols'
9700      allow_undefined_flag=unsupported
9701      always_export_symbols=no
9702      enable_shared_with_static_runtimes=yes
9703      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'
9704      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9705
9706      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9707        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9708	# If the export-symbols file already is a .def file, use it as
9709	# is; otherwise, prepend EXPORTS...
9710	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9711          cp $export_symbols $output_objdir/$soname.def;
9712        else
9713          echo EXPORTS > $output_objdir/$soname.def;
9714          cat $export_symbols >> $output_objdir/$soname.def;
9715        fi~
9716        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9717      else
9718	ld_shlibs=no
9719      fi
9720      ;;
9721
9722    haiku*)
9723      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9724      link_all_deplibs=yes
9725      ;;
9726
9727    os2*)
9728      hardcode_libdir_flag_spec='-L$libdir'
9729      hardcode_minus_L=yes
9730      allow_undefined_flag=unsupported
9731      shrext_cmds=.dll
9732      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9733	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9734	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9735	$ECHO EXPORTS >> $output_objdir/$libname.def~
9736	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9737	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9738	emximp -o $lib $output_objdir/$libname.def'
9739      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9740	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9741	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9742	$ECHO EXPORTS >> $output_objdir/$libname.def~
9743	prefix_cmds="$SED"~
9744	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9745	  prefix_cmds="$prefix_cmds -e 1d";
9746	fi~
9747	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9748	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9749	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9750	emximp -o $lib $output_objdir/$libname.def'
9751      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9752      enable_shared_with_static_runtimes=yes
9753      file_list_spec='@'
9754      ;;
9755
9756    interix[3-9]*)
9757      hardcode_direct=no
9758      hardcode_shlibpath_var=no
9759      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9760      export_dynamic_flag_spec='$wl-E'
9761      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9762      # Instead, shared libraries are loaded at an image base (0x10000000 by
9763      # default) and relocated if they conflict, which is a slow very memory
9764      # consuming and fragmenting process.  To avoid this, we pick a random,
9765      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9766      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9767      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9768      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'
9769      ;;
9770
9771    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9772      tmp_diet=no
9773      if test linux-dietlibc = "$host_os"; then
9774	case $cc_basename in
9775	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9776	esac
9777      fi
9778      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9779	 && test no = "$tmp_diet"
9780      then
9781	tmp_addflag=' $pic_flag'
9782	tmp_sharedflag='-shared'
9783	case $cc_basename,$host_cpu in
9784        pgcc*)				# Portland Group C compiler
9785	  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'
9786	  tmp_addflag=' $pic_flag'
9787	  ;;
9788	pgf77* | pgf90* | pgf95* | pgfortran*)
9789					# Portland Group f77 and f90 compilers
9790	  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'
9791	  tmp_addflag=' $pic_flag -Mnomain' ;;
9792	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9793	  tmp_addflag=' -i_dynamic' ;;
9794	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9795	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9796	ifc* | ifort*)			# Intel Fortran compiler
9797	  tmp_addflag=' -nofor_main' ;;
9798	lf95*)				# Lahey Fortran 8.1
9799	  whole_archive_flag_spec=
9800	  tmp_sharedflag='--shared' ;;
9801        nagfor*)                        # NAGFOR 5.3
9802          tmp_sharedflag='-Wl,-shared' ;;
9803	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9804	  tmp_sharedflag='-qmkshrobj'
9805	  tmp_addflag= ;;
9806	nvcc*)	# Cuda Compiler Driver 2.2
9807	  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'
9808	  compiler_needs_object=yes
9809	  ;;
9810	esac
9811	case `$CC -V 2>&1 | $SED 5q` in
9812	*Sun\ C*)			# Sun C 5.9
9813	  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'
9814	  compiler_needs_object=yes
9815	  tmp_sharedflag='-G' ;;
9816	*Sun\ F*)			# Sun Fortran 8.3
9817	  tmp_sharedflag='-G' ;;
9818	esac
9819	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9820
9821        if test yes = "$supports_anon_versioning"; then
9822          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9823            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9824            echo "local: *; };" >> $output_objdir/$libname.ver~
9825            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9826        fi
9827
9828	case $cc_basename in
9829	tcc*)
9830	  export_dynamic_flag_spec='-rdynamic'
9831	  ;;
9832	xlf* | bgf* | bgxlf* | mpixlf*)
9833	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9834	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9835	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9836	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9837	  if test yes = "$supports_anon_versioning"; then
9838	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9839              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9840              echo "local: *; };" >> $output_objdir/$libname.ver~
9841              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9842	  fi
9843	  ;;
9844	esac
9845      else
9846        ld_shlibs=no
9847      fi
9848      ;;
9849
9850    netbsd*)
9851      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9852	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9853	wlarc=
9854      else
9855	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9856	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9857      fi
9858      ;;
9859
9860    solaris*)
9861      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9862	ld_shlibs=no
9863	cat <<_LT_EOF 1>&2
9864
9865*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9866*** create shared libraries on Solaris systems.  Therefore, libtool
9867*** is disabling shared libraries support.  We urge you to upgrade GNU
9868*** binutils to release 2.9.1 or newer.  Another option is to modify
9869*** your PATH or compiler configuration so that the native linker is
9870*** used, and then restart.
9871
9872_LT_EOF
9873      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9874	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9875	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9876      else
9877	ld_shlibs=no
9878      fi
9879      ;;
9880
9881    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9882      case `$LD -v 2>&1` in
9883        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9884	ld_shlibs=no
9885	cat <<_LT_EOF 1>&2
9886
9887*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9888*** reliably create shared libraries on SCO systems.  Therefore, libtool
9889*** is disabling shared libraries support.  We urge you to upgrade GNU
9890*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9891*** your PATH or compiler configuration so that the native linker is
9892*** used, and then restart.
9893
9894_LT_EOF
9895	;;
9896	*)
9897	  # For security reasons, it is highly recommended that you always
9898	  # use absolute paths for naming shared libraries, and exclude the
9899	  # DT_RUNPATH tag from executables and libraries.  But doing so
9900	  # requires that you compile everything twice, which is a pain.
9901	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9902	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9903	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9904	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9905	  else
9906	    ld_shlibs=no
9907	  fi
9908	;;
9909      esac
9910      ;;
9911
9912    sunos4*)
9913      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914      wlarc=
9915      hardcode_direct=yes
9916      hardcode_shlibpath_var=no
9917      ;;
9918
9919    *)
9920      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9921	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9922	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9923      else
9924	ld_shlibs=no
9925      fi
9926      ;;
9927    esac
9928
9929    if test no = "$ld_shlibs"; then
9930      runpath_var=
9931      hardcode_libdir_flag_spec=
9932      export_dynamic_flag_spec=
9933      whole_archive_flag_spec=
9934    fi
9935  else
9936    # PORTME fill in a description of your system's linker (not GNU ld)
9937    case $host_os in
9938    aix3*)
9939      allow_undefined_flag=unsupported
9940      always_export_symbols=yes
9941      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'
9942      # Note: this linker hardcodes the directories in LIBPATH if there
9943      # are no directories specified by -L.
9944      hardcode_minus_L=yes
9945      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9946	# Neither direct hardcoding nor static linking is supported with a
9947	# broken collect2.
9948	hardcode_direct=unsupported
9949      fi
9950      ;;
9951
9952    aix[4-9]*)
9953      if test ia64 = "$host_cpu"; then
9954	# On IA64, the linker does run time linking by default, so we don't
9955	# have to do anything special.
9956	aix_use_runtimelinking=no
9957	exp_sym_flag='-Bexport'
9958	no_entry_flag=
9959      else
9960	# If we're using GNU nm, then we don't want the "-C" option.
9961	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9962	# Without the "-l" option, or with the "-B" option, AIX nm treats
9963	# weak defined symbols like other global defined symbols, whereas
9964	# GNU nm marks them as "W".
9965	# While the 'weak' keyword is ignored in the Export File, we need
9966	# it in the Import File for the 'aix-soname' feature, so we have
9967	# to replace the "-B" option with "-P" for AIX nm.
9968	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9969	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9970	else
9971	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9972	fi
9973	aix_use_runtimelinking=no
9974
9975	# Test if we are trying to use run time linking or normal
9976	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9977	# have runtime linking enabled, and use it for executables.
9978	# For shared libraries, we enable/disable runtime linking
9979	# depending on the kind of the shared library created -
9980	# when "with_aix_soname,aix_use_runtimelinking" is:
9981	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9982	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9983	#            lib.a           static archive
9984	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9985	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9986	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9987	#            lib.a(lib.so.V) shared, rtl:no
9988	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9989	#            lib.a           static archive
9990	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9991	  for ld_flag in $LDFLAGS; do
9992	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9993	    aix_use_runtimelinking=yes
9994	    break
9995	  fi
9996	  done
9997	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9998	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9999	    # so we don't have lib.a shared libs to link our executables.
10000	    # We have to force runtime linking in this case.
10001	    aix_use_runtimelinking=yes
10002	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10003	  fi
10004	  ;;
10005	esac
10006
10007	exp_sym_flag='-bexport'
10008	no_entry_flag='-bnoentry'
10009      fi
10010
10011      # When large executables or shared objects are built, AIX ld can
10012      # have problems creating the table of contents.  If linking a library
10013      # or program results in "error TOC overflow" add -mminimal-toc to
10014      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10015      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10016
10017      archive_cmds=''
10018      hardcode_direct=yes
10019      hardcode_direct_absolute=yes
10020      hardcode_libdir_separator=':'
10021      link_all_deplibs=yes
10022      file_list_spec='$wl-f,'
10023      case $with_aix_soname,$aix_use_runtimelinking in
10024      aix,*) ;; # traditional, no import file
10025      svr4,* | *,yes) # use import file
10026	# The Import File defines what to hardcode.
10027	hardcode_direct=no
10028	hardcode_direct_absolute=no
10029	;;
10030      esac
10031
10032      if test yes = "$GCC"; then
10033	case $host_os in aix4.[012]|aix4.[012].*)
10034	# We only want to do this on AIX 4.2 and lower, the check
10035	# below for broken collect2 doesn't work under 4.3+
10036	  collect2name=`$CC -print-prog-name=collect2`
10037	  if test -f "$collect2name" &&
10038	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10039	  then
10040	  # We have reworked collect2
10041	  :
10042	  else
10043	  # We have old collect2
10044	  hardcode_direct=unsupported
10045	  # It fails to find uninstalled libraries when the uninstalled
10046	  # path is not listed in the libpath.  Setting hardcode_minus_L
10047	  # to unsupported forces relinking
10048	  hardcode_minus_L=yes
10049	  hardcode_libdir_flag_spec='-L$libdir'
10050	  hardcode_libdir_separator=
10051	  fi
10052	  ;;
10053	esac
10054	shared_flag='-shared'
10055	if test yes = "$aix_use_runtimelinking"; then
10056	  shared_flag="$shared_flag "'$wl-G'
10057	fi
10058	# Need to ensure runtime linking is disabled for the traditional
10059	# shared library, or the linker may eventually find shared libraries
10060	# /with/ Import File - we do not want to mix them.
10061	shared_flag_aix='-shared'
10062	shared_flag_svr4='-shared $wl-G'
10063      else
10064	# not using gcc
10065	if test ia64 = "$host_cpu"; then
10066	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10067	# chokes on -Wl,-G. The following line is correct:
10068	  shared_flag='-G'
10069	else
10070	  if test yes = "$aix_use_runtimelinking"; then
10071	    shared_flag='$wl-G'
10072	  else
10073	    shared_flag='$wl-bM:SRE'
10074	  fi
10075	  shared_flag_aix='$wl-bM:SRE'
10076	  shared_flag_svr4='$wl-G'
10077	fi
10078      fi
10079
10080      export_dynamic_flag_spec='$wl-bexpall'
10081      # It seems that -bexpall does not export symbols beginning with
10082      # underscore (_), so it is better to generate a list of symbols to export.
10083      always_export_symbols=yes
10084      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10085	# Warning - without using the other runtime loading flags (-brtl),
10086	# -berok will link without error, but may produce a broken library.
10087	allow_undefined_flag='-berok'
10088        # Determine the default libpath from the value encoded in an
10089        # empty executable.
10090        if test set = "${lt_cv_aix_libpath+set}"; then
10091  aix_libpath=$lt_cv_aix_libpath
10092else
10093  if test ${lt_cv_aix_libpath_+y}
10094then :
10095  printf %s "(cached) " >&6
10096else $as_nop
10097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099
10100int
10101main (void)
10102{
10103
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108if ac_fn_c_try_link "$LINENO"
10109then :
10110
10111  lt_aix_libpath_sed='
10112      /Import File Strings/,/^$/ {
10113	  /^0/ {
10114	      s/^0  *\([^ ]*\) *$/\1/
10115	      p
10116	  }
10117      }'
10118  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10119  # Check for a 64-bit object if we didn't find anything.
10120  if test -z "$lt_cv_aix_libpath_"; then
10121    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10122  fi
10123fi
10124rm -f core conftest.err conftest.$ac_objext conftest.beam \
10125    conftest$ac_exeext conftest.$ac_ext
10126  if test -z "$lt_cv_aix_libpath_"; then
10127    lt_cv_aix_libpath_=/usr/lib:/lib
10128  fi
10129
10130fi
10131
10132  aix_libpath=$lt_cv_aix_libpath_
10133fi
10134
10135        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10136        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10137      else
10138	if test ia64 = "$host_cpu"; then
10139	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10140	  allow_undefined_flag="-z nodefs"
10141	  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"
10142	else
10143	 # Determine the default libpath from the value encoded in an
10144	 # empty executable.
10145	 if test set = "${lt_cv_aix_libpath+set}"; then
10146  aix_libpath=$lt_cv_aix_libpath
10147else
10148  if test ${lt_cv_aix_libpath_+y}
10149then :
10150  printf %s "(cached) " >&6
10151else $as_nop
10152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154
10155int
10156main (void)
10157{
10158
10159  ;
10160  return 0;
10161}
10162_ACEOF
10163if ac_fn_c_try_link "$LINENO"
10164then :
10165
10166  lt_aix_libpath_sed='
10167      /Import File Strings/,/^$/ {
10168	  /^0/ {
10169	      s/^0  *\([^ ]*\) *$/\1/
10170	      p
10171	  }
10172      }'
10173  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10174  # Check for a 64-bit object if we didn't find anything.
10175  if test -z "$lt_cv_aix_libpath_"; then
10176    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10177  fi
10178fi
10179rm -f core conftest.err conftest.$ac_objext conftest.beam \
10180    conftest$ac_exeext conftest.$ac_ext
10181  if test -z "$lt_cv_aix_libpath_"; then
10182    lt_cv_aix_libpath_=/usr/lib:/lib
10183  fi
10184
10185fi
10186
10187  aix_libpath=$lt_cv_aix_libpath_
10188fi
10189
10190	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10191	  # Warning - without using the other run time loading flags,
10192	  # -berok will link without error, but may produce a broken library.
10193	  no_undefined_flag=' $wl-bernotok'
10194	  allow_undefined_flag=' $wl-berok'
10195	  if test yes = "$with_gnu_ld"; then
10196	    # We only use this code for GNU lds that support --whole-archive.
10197	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10198	  else
10199	    # Exported symbols can be pulled into shared objects from archives
10200	    whole_archive_flag_spec='$convenience'
10201	  fi
10202	  archive_cmds_need_lc=yes
10203	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10204	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10205	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10206	  if test svr4 != "$with_aix_soname"; then
10207	    # This is similar to how AIX traditionally builds its shared libraries.
10208	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10209	  fi
10210	  if test aix != "$with_aix_soname"; then
10211	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10212	  else
10213	    # used by -dlpreopen to get the symbols
10214	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10215	  fi
10216	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10217	fi
10218      fi
10219      ;;
10220
10221    amigaos*)
10222      case $host_cpu in
10223      powerpc)
10224            # see comment about AmigaOS4 .so support
10225            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10226            archive_expsym_cmds=''
10227        ;;
10228      m68k)
10229            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)'
10230            hardcode_libdir_flag_spec='-L$libdir'
10231            hardcode_minus_L=yes
10232        ;;
10233      esac
10234      ;;
10235
10236    bsdi[45]*)
10237      export_dynamic_flag_spec=-rdynamic
10238      ;;
10239
10240    cygwin* | mingw* | pw32* | cegcc*)
10241      # When not using gcc, we currently assume that we are using
10242      # Microsoft Visual C++ or Intel C++ Compiler.
10243      # hardcode_libdir_flag_spec is actually meaningless, as there is
10244      # no search path for DLLs.
10245      case $cc_basename in
10246      cl* | icl*)
10247	# Native MSVC or ICC
10248	hardcode_libdir_flag_spec=' '
10249	allow_undefined_flag=unsupported
10250	always_export_symbols=yes
10251	file_list_spec='@'
10252	# Tell ltmain to make .lib files, not .a files.
10253	libext=lib
10254	# Tell ltmain to make .dll files, not .so files.
10255	shrext_cmds=.dll
10256	# FIXME: Setting linknames here is a bad hack.
10257	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10258	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10259            cp "$export_symbols" "$output_objdir/$soname.def";
10260            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10261          else
10262            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10263          fi~
10264          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10265          linknames='
10266	# The linker will not automatically build a static lib if we build a DLL.
10267	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10268	enable_shared_with_static_runtimes=yes
10269	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10270	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10271	# Don't use ranlib
10272	old_postinstall_cmds='chmod 644 $oldlib'
10273	postlink_cmds='lt_outputfile="@OUTPUT@"~
10274          lt_tool_outputfile="@TOOL_OUTPUT@"~
10275          case $lt_outputfile in
10276            *.exe|*.EXE) ;;
10277            *)
10278              lt_outputfile=$lt_outputfile.exe
10279              lt_tool_outputfile=$lt_tool_outputfile.exe
10280              ;;
10281          esac~
10282          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10283            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10284            $RM "$lt_outputfile.manifest";
10285          fi'
10286	;;
10287      *)
10288	# Assume MSVC and ICC wrapper
10289	hardcode_libdir_flag_spec=' '
10290	allow_undefined_flag=unsupported
10291	# Tell ltmain to make .lib files, not .a files.
10292	libext=lib
10293	# Tell ltmain to make .dll files, not .so files.
10294	shrext_cmds=.dll
10295	# FIXME: Setting linknames here is a bad hack.
10296	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10297	# The linker will automatically build a .lib file if we build a DLL.
10298	old_archive_from_new_cmds='true'
10299	# FIXME: Should let the user specify the lib program.
10300	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10301	enable_shared_with_static_runtimes=yes
10302	;;
10303      esac
10304      ;;
10305
10306    darwin* | rhapsody*)
10307
10308
10309  archive_cmds_need_lc=no
10310  hardcode_direct=no
10311  hardcode_automatic=yes
10312  hardcode_shlibpath_var=unsupported
10313  if test yes = "$lt_cv_ld_force_load"; then
10314    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\"`'
10315
10316  else
10317    whole_archive_flag_spec=''
10318  fi
10319  link_all_deplibs=yes
10320  allow_undefined_flag=$_lt_dar_allow_undefined
10321  case $cc_basename in
10322     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10323     *) _lt_dar_can_shared=$GCC ;;
10324  esac
10325  if test yes = "$_lt_dar_can_shared"; then
10326    output_verbose_link_cmd=func_echo_all
10327    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10328    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10329    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"
10330    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"
10331
10332  else
10333  ld_shlibs=no
10334  fi
10335
10336      ;;
10337
10338    dgux*)
10339      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10340      hardcode_libdir_flag_spec='-L$libdir'
10341      hardcode_shlibpath_var=no
10342      ;;
10343
10344    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10345    # support.  Future versions do this automatically, but an explicit c++rt0.o
10346    # does not break anything, and helps significantly (at the cost of a little
10347    # extra space).
10348    freebsd2.2*)
10349      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10350      hardcode_libdir_flag_spec='-R$libdir'
10351      hardcode_direct=yes
10352      hardcode_shlibpath_var=no
10353      ;;
10354
10355    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10356    freebsd2.*)
10357      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10358      hardcode_direct=yes
10359      hardcode_minus_L=yes
10360      hardcode_shlibpath_var=no
10361      ;;
10362
10363    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10364    freebsd* | dragonfly* | midnightbsd*)
10365      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10366      hardcode_libdir_flag_spec='-R$libdir'
10367      hardcode_direct=yes
10368      hardcode_shlibpath_var=no
10369      ;;
10370
10371    hpux9*)
10372      if test yes = "$GCC"; then
10373	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10374      else
10375	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10376      fi
10377      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10378      hardcode_libdir_separator=:
10379      hardcode_direct=yes
10380
10381      # hardcode_minus_L: Not really in the search PATH,
10382      # but as the default location of the library.
10383      hardcode_minus_L=yes
10384      export_dynamic_flag_spec='$wl-E'
10385      ;;
10386
10387    hpux10*)
10388      if test yes,no = "$GCC,$with_gnu_ld"; then
10389	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10390      else
10391	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10392      fi
10393      if test no = "$with_gnu_ld"; then
10394	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10395	hardcode_libdir_separator=:
10396	hardcode_direct=yes
10397	hardcode_direct_absolute=yes
10398	export_dynamic_flag_spec='$wl-E'
10399	# hardcode_minus_L: Not really in the search PATH,
10400	# but as the default location of the library.
10401	hardcode_minus_L=yes
10402      fi
10403      ;;
10404
10405    hpux11*)
10406      if test yes,no = "$GCC,$with_gnu_ld"; then
10407	case $host_cpu in
10408	hppa*64*)
10409	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10410	  ;;
10411	ia64*)
10412	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10413	  ;;
10414	*)
10415	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10416	  ;;
10417	esac
10418      else
10419	case $host_cpu in
10420	hppa*64*)
10421	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10422	  ;;
10423	ia64*)
10424	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10425	  ;;
10426	*)
10427
10428	  # Older versions of the 11.00 compiler do not understand -b yet
10429	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10430	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10431printf %s "checking if $CC understands -b... " >&6; }
10432if test ${lt_cv_prog_compiler__b+y}
10433then :
10434  printf %s "(cached) " >&6
10435else $as_nop
10436  lt_cv_prog_compiler__b=no
10437   save_LDFLAGS=$LDFLAGS
10438   LDFLAGS="$LDFLAGS -b"
10439   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10440   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10441     # The linker can only warn and ignore the option if not recognized
10442     # So say no if there are warnings
10443     if test -s conftest.err; then
10444       # Append any errors to the config.log.
10445       cat conftest.err 1>&5
10446       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10447       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10448       if diff conftest.exp conftest.er2 >/dev/null; then
10449         lt_cv_prog_compiler__b=yes
10450       fi
10451     else
10452       lt_cv_prog_compiler__b=yes
10453     fi
10454   fi
10455   $RM -r conftest*
10456   LDFLAGS=$save_LDFLAGS
10457
10458fi
10459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10460printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10461
10462if test yes = "$lt_cv_prog_compiler__b"; then
10463    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10464else
10465    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10466fi
10467
10468	  ;;
10469	esac
10470      fi
10471      if test no = "$with_gnu_ld"; then
10472	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10473	hardcode_libdir_separator=:
10474
10475	case $host_cpu in
10476	hppa*64*|ia64*)
10477	  hardcode_direct=no
10478	  hardcode_shlibpath_var=no
10479	  ;;
10480	*)
10481	  hardcode_direct=yes
10482	  hardcode_direct_absolute=yes
10483	  export_dynamic_flag_spec='$wl-E'
10484
10485	  # hardcode_minus_L: Not really in the search PATH,
10486	  # but as the default location of the library.
10487	  hardcode_minus_L=yes
10488	  ;;
10489	esac
10490      fi
10491      ;;
10492
10493    irix5* | irix6* | nonstopux*)
10494      if test yes = "$GCC"; then
10495	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'
10496	# Try to use the -exported_symbol ld option, if it does not
10497	# work, assume that -exports_file does not work either and
10498	# implicitly export all symbols.
10499	# This should be the same for all languages, so no per-tag cache variable.
10500	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10501printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10502if test ${lt_cv_irix_exported_symbol+y}
10503then :
10504  printf %s "(cached) " >&6
10505else $as_nop
10506  save_LDFLAGS=$LDFLAGS
10507	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10508	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509/* end confdefs.h.  */
10510int foo (void) { return 0; }
10511_ACEOF
10512if ac_fn_c_try_link "$LINENO"
10513then :
10514  lt_cv_irix_exported_symbol=yes
10515else $as_nop
10516  lt_cv_irix_exported_symbol=no
10517fi
10518rm -f core conftest.err conftest.$ac_objext conftest.beam \
10519    conftest$ac_exeext conftest.$ac_ext
10520           LDFLAGS=$save_LDFLAGS
10521fi
10522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10523printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10524	if test yes = "$lt_cv_irix_exported_symbol"; then
10525          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'
10526	fi
10527      else
10528	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'
10529	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'
10530      fi
10531      archive_cmds_need_lc='no'
10532      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10533      hardcode_libdir_separator=:
10534      inherit_rpath=yes
10535      link_all_deplibs=yes
10536      ;;
10537
10538    linux*)
10539      case $cc_basename in
10540      tcc*)
10541	# Fabrice Bellard et al's Tiny C Compiler
10542	ld_shlibs=yes
10543	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10544	;;
10545      esac
10546      ;;
10547
10548    netbsd*)
10549      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10550	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10551      else
10552	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10553      fi
10554      hardcode_libdir_flag_spec='-R$libdir'
10555      hardcode_direct=yes
10556      hardcode_shlibpath_var=no
10557      ;;
10558
10559    newsos6)
10560      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561      hardcode_direct=yes
10562      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10563      hardcode_libdir_separator=:
10564      hardcode_shlibpath_var=no
10565      ;;
10566
10567    *nto* | *qnx*)
10568      ;;
10569
10570    openbsd* | bitrig*)
10571      if test -f /usr/libexec/ld.so; then
10572	hardcode_direct=yes
10573	hardcode_shlibpath_var=no
10574	hardcode_direct_absolute=yes
10575	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10576	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10577	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10578	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10579	  export_dynamic_flag_spec='$wl-E'
10580	else
10581	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10583	fi
10584      else
10585	ld_shlibs=no
10586      fi
10587      ;;
10588
10589    os2*)
10590      hardcode_libdir_flag_spec='-L$libdir'
10591      hardcode_minus_L=yes
10592      allow_undefined_flag=unsupported
10593      shrext_cmds=.dll
10594      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10595	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10596	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10597	$ECHO EXPORTS >> $output_objdir/$libname.def~
10598	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10599	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10600	emximp -o $lib $output_objdir/$libname.def'
10601      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10602	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10603	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10604	$ECHO EXPORTS >> $output_objdir/$libname.def~
10605	prefix_cmds="$SED"~
10606	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10607	  prefix_cmds="$prefix_cmds -e 1d";
10608	fi~
10609	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10610	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10611	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10612	emximp -o $lib $output_objdir/$libname.def'
10613      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10614      enable_shared_with_static_runtimes=yes
10615      file_list_spec='@'
10616      ;;
10617
10618    osf3*)
10619      if test yes = "$GCC"; then
10620	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10621	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'
10622      else
10623	allow_undefined_flag=' -expect_unresolved \*'
10624	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'
10625      fi
10626      archive_cmds_need_lc='no'
10627      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10628      hardcode_libdir_separator=:
10629      ;;
10630
10631    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10632      if test yes = "$GCC"; then
10633	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10634	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'
10635	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10636      else
10637	allow_undefined_flag=' -expect_unresolved \*'
10638	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'
10639	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~
10640          $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'
10641
10642	# Both c and cxx compiler support -rpath directly
10643	hardcode_libdir_flag_spec='-rpath $libdir'
10644      fi
10645      archive_cmds_need_lc='no'
10646      hardcode_libdir_separator=:
10647      ;;
10648
10649    solaris*)
10650      no_undefined_flag=' -z defs'
10651      if test yes = "$GCC"; then
10652	wlarc='$wl'
10653	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10654	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10655          $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'
10656      else
10657	case `$CC -V 2>&1` in
10658	*"Compilers 5.0"*)
10659	  wlarc=''
10660	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10662            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10663	  ;;
10664	*)
10665	  wlarc='$wl'
10666	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10667	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10668            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10669	  ;;
10670	esac
10671      fi
10672      hardcode_libdir_flag_spec='-R$libdir'
10673      hardcode_shlibpath_var=no
10674      case $host_os in
10675      solaris2.[0-5] | solaris2.[0-5].*) ;;
10676      *)
10677	# The compiler driver will combine and reorder linker options,
10678	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10679	# but is careful enough not to reorder.
10680	# Supported since Solaris 2.6 (maybe 2.5.1?)
10681	if test yes = "$GCC"; then
10682	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10683	else
10684	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10685	fi
10686	;;
10687      esac
10688      link_all_deplibs=yes
10689      ;;
10690
10691    sunos4*)
10692      if test sequent = "$host_vendor"; then
10693	# Use $CC to link under sequent, because it throws in some extra .o
10694	# files that make .init and .fini sections work.
10695	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10696      else
10697	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10698      fi
10699      hardcode_libdir_flag_spec='-L$libdir'
10700      hardcode_direct=yes
10701      hardcode_minus_L=yes
10702      hardcode_shlibpath_var=no
10703      ;;
10704
10705    sysv4)
10706      case $host_vendor in
10707	sni)
10708	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709	  hardcode_direct=yes # is this really true???
10710	;;
10711	siemens)
10712	  ## LD is ld it makes a PLAMLIB
10713	  ## CC just makes a GrossModule.
10714	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10715	  reload_cmds='$CC -r -o $output$reload_objs'
10716	  hardcode_direct=no
10717        ;;
10718	motorola)
10719	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10721	;;
10722      esac
10723      runpath_var='LD_RUN_PATH'
10724      hardcode_shlibpath_var=no
10725      ;;
10726
10727    sysv4.3*)
10728      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729      hardcode_shlibpath_var=no
10730      export_dynamic_flag_spec='-Bexport'
10731      ;;
10732
10733    sysv4*MP*)
10734      if test -d /usr/nec; then
10735	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10736	hardcode_shlibpath_var=no
10737	runpath_var=LD_RUN_PATH
10738	hardcode_runpath_var=yes
10739	ld_shlibs=yes
10740      fi
10741      ;;
10742
10743    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10744      no_undefined_flag='$wl-z,text'
10745      archive_cmds_need_lc=no
10746      hardcode_shlibpath_var=no
10747      runpath_var='LD_RUN_PATH'
10748
10749      if test yes = "$GCC"; then
10750	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752      else
10753	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755      fi
10756      ;;
10757
10758    sysv5* | sco3.2v5* | sco5v6*)
10759      # Note: We CANNOT use -z defs as we might desire, because we do not
10760      # link with -lc, and that would cause any symbols used from libc to
10761      # always be unresolved, which means just about no library would
10762      # ever link correctly.  If we're not using GNU ld we use -z text
10763      # though, which does catch some bad symbols but isn't as heavy-handed
10764      # as -z defs.
10765      no_undefined_flag='$wl-z,text'
10766      allow_undefined_flag='$wl-z,nodefs'
10767      archive_cmds_need_lc=no
10768      hardcode_shlibpath_var=no
10769      hardcode_libdir_flag_spec='$wl-R,$libdir'
10770      hardcode_libdir_separator=':'
10771      link_all_deplibs=yes
10772      export_dynamic_flag_spec='$wl-Bexport'
10773      runpath_var='LD_RUN_PATH'
10774
10775      if test yes = "$GCC"; then
10776	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778      else
10779	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781      fi
10782      ;;
10783
10784    uts4*)
10785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786      hardcode_libdir_flag_spec='-L$libdir'
10787      hardcode_shlibpath_var=no
10788      ;;
10789
10790    *)
10791      ld_shlibs=no
10792      ;;
10793    esac
10794
10795    if test sni = "$host_vendor"; then
10796      case $host in
10797      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10798	export_dynamic_flag_spec='$wl-Blargedynsym'
10799	;;
10800      esac
10801    fi
10802  fi
10803
10804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10805printf "%s\n" "$ld_shlibs" >&6; }
10806test no = "$ld_shlibs" && can_build_shared=no
10807
10808with_gnu_ld=$with_gnu_ld
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824#
10825# Do we need to explicitly link libc?
10826#
10827case "x$archive_cmds_need_lc" in
10828x|xyes)
10829  # Assume -lc should be added
10830  archive_cmds_need_lc=yes
10831
10832  if test yes,yes = "$GCC,$enable_shared"; then
10833    case $archive_cmds in
10834    *'~'*)
10835      # FIXME: we may have to deal with multi-command sequences.
10836      ;;
10837    '$CC '*)
10838      # Test whether the compiler implicitly links with -lc since on some
10839      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10840      # to ld, don't add -lc before -lgcc.
10841      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10842printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10843if test ${lt_cv_archive_cmds_need_lc+y}
10844then :
10845  printf %s "(cached) " >&6
10846else $as_nop
10847  $RM conftest*
10848	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10849
10850	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10851  (eval $ac_compile) 2>&5
10852  ac_status=$?
10853  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854  test $ac_status = 0; } 2>conftest.err; then
10855	  soname=conftest
10856	  lib=conftest
10857	  libobjs=conftest.$ac_objext
10858	  deplibs=
10859	  wl=$lt_prog_compiler_wl
10860	  pic_flag=$lt_prog_compiler_pic
10861	  compiler_flags=-v
10862	  linker_flags=-v
10863	  verstring=
10864	  output_objdir=.
10865	  libname=conftest
10866	  lt_save_allow_undefined_flag=$allow_undefined_flag
10867	  allow_undefined_flag=
10868	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10869  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10870  ac_status=$?
10871  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10872  test $ac_status = 0; }
10873	  then
10874	    lt_cv_archive_cmds_need_lc=no
10875	  else
10876	    lt_cv_archive_cmds_need_lc=yes
10877	  fi
10878	  allow_undefined_flag=$lt_save_allow_undefined_flag
10879	else
10880	  cat conftest.err 1>&5
10881	fi
10882	$RM conftest*
10883
10884fi
10885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10886printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10887      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10888      ;;
10889    esac
10890  fi
10891  ;;
10892esac
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11046printf %s "checking dynamic linker characteristics... " >&6; }
11047
11048if test yes = "$GCC"; then
11049  case $host_os in
11050    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11051    *) lt_awk_arg='/^libraries:/' ;;
11052  esac
11053  case $host_os in
11054    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11055    *) lt_sed_strip_eq='s|=/|/|g' ;;
11056  esac
11057  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11058  case $lt_search_path_spec in
11059  *\;*)
11060    # if the path contains ";" then we assume it to be the separator
11061    # otherwise default to the standard path separator (i.e. ":") - it is
11062    # assumed that no part of a normal pathname contains ";" but that should
11063    # okay in the real world where ";" in dirpaths is itself problematic.
11064    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11065    ;;
11066  *)
11067    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11068    ;;
11069  esac
11070  # Ok, now we have the path, separated by spaces, we can step through it
11071  # and add multilib dir if necessary...
11072  lt_tmp_lt_search_path_spec=
11073  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11074  # ...but if some path component already ends with the multilib dir we assume
11075  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11076  case "$lt_multi_os_dir; $lt_search_path_spec " in
11077  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11078    lt_multi_os_dir=
11079    ;;
11080  esac
11081  for lt_sys_path in $lt_search_path_spec; do
11082    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11083      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11084    elif test -n "$lt_multi_os_dir"; then
11085      test -d "$lt_sys_path" && \
11086	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11087    fi
11088  done
11089  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11090BEGIN {RS = " "; FS = "/|\n";} {
11091  lt_foo = "";
11092  lt_count = 0;
11093  for (lt_i = NF; lt_i > 0; lt_i--) {
11094    if ($lt_i != "" && $lt_i != ".") {
11095      if ($lt_i == "..") {
11096        lt_count++;
11097      } else {
11098        if (lt_count == 0) {
11099          lt_foo = "/" $lt_i lt_foo;
11100        } else {
11101          lt_count--;
11102        }
11103      }
11104    }
11105  }
11106  if (lt_foo != "") { lt_freq[lt_foo]++; }
11107  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11108}'`
11109  # AWK program above erroneously prepends '/' to C:/dos/paths
11110  # for these hosts.
11111  case $host_os in
11112    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11113      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11114  esac
11115  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11116else
11117  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11118fi
11119library_names_spec=
11120libname_spec='lib$name'
11121soname_spec=
11122shrext_cmds=.so
11123postinstall_cmds=
11124postuninstall_cmds=
11125finish_cmds=
11126finish_eval=
11127shlibpath_var=
11128shlibpath_overrides_runpath=unknown
11129version_type=none
11130dynamic_linker="$host_os ld.so"
11131sys_lib_dlsearch_path_spec="/lib /usr/lib"
11132need_lib_prefix=unknown
11133hardcode_into_libs=no
11134
11135# when you set need_version to no, make sure it does not cause -set_version
11136# flags to be left without arguments
11137need_version=unknown
11138
11139
11140
11141case $host_os in
11142aix3*)
11143  version_type=linux # correct to gnu/linux during the next big refactor
11144  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11145  shlibpath_var=LIBPATH
11146
11147  # AIX 3 has no versioning support, so we append a major version to the name.
11148  soname_spec='$libname$release$shared_ext$major'
11149  ;;
11150
11151aix[4-9]*)
11152  version_type=linux # correct to gnu/linux during the next big refactor
11153  need_lib_prefix=no
11154  need_version=no
11155  hardcode_into_libs=yes
11156  if test ia64 = "$host_cpu"; then
11157    # AIX 5 supports IA64
11158    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11159    shlibpath_var=LD_LIBRARY_PATH
11160  else
11161    # With GCC up to 2.95.x, collect2 would create an import file
11162    # for dependence libraries.  The import file would start with
11163    # the line '#! .'.  This would cause the generated library to
11164    # depend on '.', always an invalid library.  This was fixed in
11165    # development snapshots of GCC prior to 3.0.
11166    case $host_os in
11167      aix4 | aix4.[01] | aix4.[01].*)
11168      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11169	   echo ' yes '
11170	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11171	:
11172      else
11173	can_build_shared=no
11174      fi
11175      ;;
11176    esac
11177    # Using Import Files as archive members, it is possible to support
11178    # filename-based versioning of shared library archives on AIX. While
11179    # this would work for both with and without runtime linking, it will
11180    # prevent static linking of such archives. So we do filename-based
11181    # shared library versioning with .so extension only, which is used
11182    # when both runtime linking and shared linking is enabled.
11183    # Unfortunately, runtime linking may impact performance, so we do
11184    # not want this to be the default eventually. Also, we use the
11185    # versioned .so libs for executables only if there is the -brtl
11186    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11187    # To allow for filename-based versioning support, we need to create
11188    # libNAME.so.V as an archive file, containing:
11189    # *) an Import File, referring to the versioned filename of the
11190    #    archive as well as the shared archive member, telling the
11191    #    bitwidth (32 or 64) of that shared object, and providing the
11192    #    list of exported symbols of that shared object, eventually
11193    #    decorated with the 'weak' keyword
11194    # *) the shared object with the F_LOADONLY flag set, to really avoid
11195    #    it being seen by the linker.
11196    # At run time we better use the real file rather than another symlink,
11197    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11198
11199    case $with_aix_soname,$aix_use_runtimelinking in
11200    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11201    # soname into executable. Probably we can add versioning support to
11202    # collect2, so additional links can be useful in future.
11203    aix,yes) # traditional libtool
11204      dynamic_linker='AIX unversionable lib.so'
11205      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11206      # instead of lib<name>.a to let people know that these are not
11207      # typical AIX shared libraries.
11208      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11209      ;;
11210    aix,no) # traditional AIX only
11211      dynamic_linker='AIX lib.a(lib.so.V)'
11212      # We preserve .a as extension for shared libraries through AIX4.2
11213      # and later when we are not doing run time linking.
11214      library_names_spec='$libname$release.a $libname.a'
11215      soname_spec='$libname$release$shared_ext$major'
11216      ;;
11217    svr4,*) # full svr4 only
11218      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11219      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11220      # We do not specify a path in Import Files, so LIBPATH fires.
11221      shlibpath_overrides_runpath=yes
11222      ;;
11223    *,yes) # both, prefer svr4
11224      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11225      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11226      # unpreferred sharedlib libNAME.a needs extra handling
11227      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11228      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11229      # We do not specify a path in Import Files, so LIBPATH fires.
11230      shlibpath_overrides_runpath=yes
11231      ;;
11232    *,no) # both, prefer aix
11233      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11234      library_names_spec='$libname$release.a $libname.a'
11235      soname_spec='$libname$release$shared_ext$major'
11236      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11237      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11238      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11239      ;;
11240    esac
11241    shlibpath_var=LIBPATH
11242  fi
11243  ;;
11244
11245amigaos*)
11246  case $host_cpu in
11247  powerpc)
11248    # Since July 2007 AmigaOS4 officially supports .so libraries.
11249    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11250    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11251    ;;
11252  m68k)
11253    library_names_spec='$libname.ixlibrary $libname.a'
11254    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11255    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11256    ;;
11257  esac
11258  ;;
11259
11260beos*)
11261  library_names_spec='$libname$shared_ext'
11262  dynamic_linker="$host_os ld.so"
11263  shlibpath_var=LIBRARY_PATH
11264  ;;
11265
11266bsdi[45]*)
11267  version_type=linux # correct to gnu/linux during the next big refactor
11268  need_version=no
11269  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11270  soname_spec='$libname$release$shared_ext$major'
11271  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11272  shlibpath_var=LD_LIBRARY_PATH
11273  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11274  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11275  # the default ld.so.conf also contains /usr/contrib/lib and
11276  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11277  # libtool to hard-code these into programs
11278  ;;
11279
11280cygwin* | mingw* | pw32* | cegcc*)
11281  version_type=windows
11282  shrext_cmds=.dll
11283  need_version=no
11284  need_lib_prefix=no
11285
11286  case $GCC,$cc_basename in
11287  yes,*)
11288    # gcc
11289    library_names_spec='$libname.dll.a'
11290    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11291    postinstall_cmds='base_file=`basename \$file`~
11292      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11293      dldir=$destdir/`dirname \$dlpath`~
11294      test -d \$dldir || mkdir -p \$dldir~
11295      $install_prog $dir/$dlname \$dldir/$dlname~
11296      chmod a+x \$dldir/$dlname~
11297      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11298        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11299      fi'
11300    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11301      dlpath=$dir/\$dldll~
11302       $RM \$dlpath'
11303    shlibpath_overrides_runpath=yes
11304
11305    case $host_os in
11306    cygwin*)
11307      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11308      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11309
11310      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11311      ;;
11312    mingw* | cegcc*)
11313      # MinGW DLLs use traditional 'lib' prefix
11314      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11315      ;;
11316    pw32*)
11317      # pw32 DLLs use 'pw' prefix rather than 'lib'
11318      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11319      ;;
11320    esac
11321    dynamic_linker='Win32 ld.exe'
11322    ;;
11323
11324  *,cl* | *,icl*)
11325    # Native MSVC or ICC
11326    libname_spec='$name'
11327    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11328    library_names_spec='$libname.dll.lib'
11329
11330    case $build_os in
11331    mingw*)
11332      sys_lib_search_path_spec=
11333      lt_save_ifs=$IFS
11334      IFS=';'
11335      for lt_path in $LIB
11336      do
11337        IFS=$lt_save_ifs
11338        # Let DOS variable expansion print the short 8.3 style file name.
11339        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11340        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11341      done
11342      IFS=$lt_save_ifs
11343      # Convert to MSYS style.
11344      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11345      ;;
11346    cygwin*)
11347      # Convert to unix form, then to dos form, then back to unix form
11348      # but this time dos style (no spaces!) so that the unix form looks
11349      # like /cygdrive/c/PROGRA~1:/cygdr...
11350      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11351      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11352      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11353      ;;
11354    *)
11355      sys_lib_search_path_spec=$LIB
11356      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11357        # It is most probably a Windows format PATH.
11358        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11359      else
11360        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11361      fi
11362      # FIXME: find the short name or the path components, as spaces are
11363      # common. (e.g. "Program Files" -> "PROGRA~1")
11364      ;;
11365    esac
11366
11367    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11368    postinstall_cmds='base_file=`basename \$file`~
11369      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11370      dldir=$destdir/`dirname \$dlpath`~
11371      test -d \$dldir || mkdir -p \$dldir~
11372      $install_prog $dir/$dlname \$dldir/$dlname'
11373    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11374      dlpath=$dir/\$dldll~
11375       $RM \$dlpath'
11376    shlibpath_overrides_runpath=yes
11377    dynamic_linker='Win32 link.exe'
11378    ;;
11379
11380  *)
11381    # Assume MSVC and ICC wrapper
11382    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11383    dynamic_linker='Win32 ld.exe'
11384    ;;
11385  esac
11386  # FIXME: first we should search . and the directory the executable is in
11387  shlibpath_var=PATH
11388  ;;
11389
11390darwin* | rhapsody*)
11391  dynamic_linker="$host_os dyld"
11392  version_type=darwin
11393  need_lib_prefix=no
11394  need_version=no
11395  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11396  soname_spec='$libname$release$major$shared_ext'
11397  shlibpath_overrides_runpath=yes
11398  shlibpath_var=DYLD_LIBRARY_PATH
11399  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11400
11401  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11402  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11403  ;;
11404
11405dgux*)
11406  version_type=linux # correct to gnu/linux during the next big refactor
11407  need_lib_prefix=no
11408  need_version=no
11409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11410  soname_spec='$libname$release$shared_ext$major'
11411  shlibpath_var=LD_LIBRARY_PATH
11412  ;;
11413
11414freebsd* | dragonfly* | midnightbsd*)
11415  # DragonFly does not have aout.  When/if they implement a new
11416  # versioning mechanism, adjust this.
11417  if test -x /usr/bin/objformat; then
11418    objformat=`/usr/bin/objformat`
11419  else
11420    case $host_os in
11421    freebsd[23].*) objformat=aout ;;
11422    *) objformat=elf ;;
11423    esac
11424  fi
11425  version_type=freebsd-$objformat
11426  case $version_type in
11427    freebsd-elf*)
11428      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11429      soname_spec='$libname$release$shared_ext$major'
11430      need_version=no
11431      need_lib_prefix=no
11432      ;;
11433    freebsd-*)
11434      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11435      need_version=yes
11436      ;;
11437  esac
11438  shlibpath_var=LD_LIBRARY_PATH
11439  case $host_os in
11440  freebsd2.*)
11441    shlibpath_overrides_runpath=yes
11442    ;;
11443  freebsd3.[01]* | freebsdelf3.[01]*)
11444    shlibpath_overrides_runpath=yes
11445    hardcode_into_libs=yes
11446    ;;
11447  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11448  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11449    shlibpath_overrides_runpath=no
11450    hardcode_into_libs=yes
11451    ;;
11452  *) # from 4.6 on, and DragonFly
11453    shlibpath_overrides_runpath=yes
11454    hardcode_into_libs=yes
11455    ;;
11456  esac
11457  ;;
11458
11459haiku*)
11460  version_type=linux # correct to gnu/linux during the next big refactor
11461  need_lib_prefix=no
11462  need_version=no
11463  dynamic_linker="$host_os runtime_loader"
11464  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465  soname_spec='$libname$release$shared_ext$major'
11466  shlibpath_var=LIBRARY_PATH
11467  shlibpath_overrides_runpath=no
11468  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11469  hardcode_into_libs=yes
11470  ;;
11471
11472hpux9* | hpux10* | hpux11*)
11473  # Give a soname corresponding to the major version so that dld.sl refuses to
11474  # link against other versions.
11475  version_type=sunos
11476  need_lib_prefix=no
11477  need_version=no
11478  case $host_cpu in
11479  ia64*)
11480    shrext_cmds='.so'
11481    hardcode_into_libs=yes
11482    dynamic_linker="$host_os dld.so"
11483    shlibpath_var=LD_LIBRARY_PATH
11484    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11485    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486    soname_spec='$libname$release$shared_ext$major'
11487    if test 32 = "$HPUX_IA64_MODE"; then
11488      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11489      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11490    else
11491      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11492      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11493    fi
11494    ;;
11495  hppa*64*)
11496    shrext_cmds='.sl'
11497    hardcode_into_libs=yes
11498    dynamic_linker="$host_os dld.sl"
11499    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11500    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11501    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11502    soname_spec='$libname$release$shared_ext$major'
11503    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11504    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11505    ;;
11506  *)
11507    shrext_cmds='.sl'
11508    dynamic_linker="$host_os dld.sl"
11509    shlibpath_var=SHLIB_PATH
11510    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11511    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512    soname_spec='$libname$release$shared_ext$major'
11513    ;;
11514  esac
11515  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11516  postinstall_cmds='chmod 555 $lib'
11517  # or fails outright, so override atomically:
11518  install_override_mode=555
11519  ;;
11520
11521interix[3-9]*)
11522  version_type=linux # correct to gnu/linux during the next big refactor
11523  need_lib_prefix=no
11524  need_version=no
11525  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526  soname_spec='$libname$release$shared_ext$major'
11527  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11528  shlibpath_var=LD_LIBRARY_PATH
11529  shlibpath_overrides_runpath=no
11530  hardcode_into_libs=yes
11531  ;;
11532
11533irix5* | irix6* | nonstopux*)
11534  case $host_os in
11535    nonstopux*) version_type=nonstopux ;;
11536    *)
11537	if test yes = "$lt_cv_prog_gnu_ld"; then
11538		version_type=linux # correct to gnu/linux during the next big refactor
11539	else
11540		version_type=irix
11541	fi ;;
11542  esac
11543  need_lib_prefix=no
11544  need_version=no
11545  soname_spec='$libname$release$shared_ext$major'
11546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11547  case $host_os in
11548  irix5* | nonstopux*)
11549    libsuff= shlibsuff=
11550    ;;
11551  *)
11552    case $LD in # libtool.m4 will add one of these switches to LD
11553    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11554      libsuff= shlibsuff= libmagic=32-bit;;
11555    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11556      libsuff=32 shlibsuff=N32 libmagic=N32;;
11557    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11558      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11559    *) libsuff= shlibsuff= libmagic=never-match;;
11560    esac
11561    ;;
11562  esac
11563  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11564  shlibpath_overrides_runpath=no
11565  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11566  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11567  hardcode_into_libs=yes
11568  ;;
11569
11570# No shared lib support for Linux oldld, aout, or coff.
11571linux*oldld* | linux*aout* | linux*coff*)
11572  dynamic_linker=no
11573  ;;
11574
11575linux*android*)
11576  version_type=none # Android doesn't support versioned libraries.
11577  need_lib_prefix=no
11578  need_version=no
11579  library_names_spec='$libname$release$shared_ext'
11580  soname_spec='$libname$release$shared_ext'
11581  finish_cmds=
11582  shlibpath_var=LD_LIBRARY_PATH
11583  shlibpath_overrides_runpath=yes
11584
11585  # This implies no fast_install, which is unacceptable.
11586  # Some rework will be needed to allow for fast_install
11587  # before this can be enabled.
11588  hardcode_into_libs=yes
11589
11590  dynamic_linker='Android linker'
11591  # Don't embed -rpath directories since the linker doesn't support them.
11592  hardcode_libdir_flag_spec='-L$libdir'
11593  ;;
11594
11595# This must be glibc/ELF.
11596linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11597  version_type=linux # correct to gnu/linux during the next big refactor
11598  need_lib_prefix=no
11599  need_version=no
11600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11601  soname_spec='$libname$release$shared_ext$major'
11602  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11603  shlibpath_var=LD_LIBRARY_PATH
11604  shlibpath_overrides_runpath=no
11605
11606  # Some binutils ld are patched to set DT_RUNPATH
11607  if test ${lt_cv_shlibpath_overrides_runpath+y}
11608then :
11609  printf %s "(cached) " >&6
11610else $as_nop
11611  lt_cv_shlibpath_overrides_runpath=no
11612    save_LDFLAGS=$LDFLAGS
11613    save_libdir=$libdir
11614    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11615	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11616    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617/* end confdefs.h.  */
11618
11619int
11620main (void)
11621{
11622
11623  ;
11624  return 0;
11625}
11626_ACEOF
11627if ac_fn_c_try_link "$LINENO"
11628then :
11629  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11630then :
11631  lt_cv_shlibpath_overrides_runpath=yes
11632fi
11633fi
11634rm -f core conftest.err conftest.$ac_objext conftest.beam \
11635    conftest$ac_exeext conftest.$ac_ext
11636    LDFLAGS=$save_LDFLAGS
11637    libdir=$save_libdir
11638
11639fi
11640
11641  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11642
11643  # This implies no fast_install, which is unacceptable.
11644  # Some rework will be needed to allow for fast_install
11645  # before this can be enabled.
11646  hardcode_into_libs=yes
11647
11648  # Ideally, we could use ldconfig to report *all* directores which are
11649  # searched for libraries, however this is still not possible.  Aside from not
11650  # being certain /sbin/ldconfig is available, command
11651  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11652  # even though it is searched at run-time.  Try to do the best guess by
11653  # appending ld.so.conf contents (and includes) to the search path.
11654  if test -f /etc/ld.so.conf; then
11655    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' ' '`
11656    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11657  fi
11658
11659  # We used to test for /lib/ld.so.1 and disable shared libraries on
11660  # powerpc, because MkLinux only supported shared libraries with the
11661  # GNU dynamic linker.  Since this was broken with cross compilers,
11662  # most powerpc-linux boxes support dynamic linking these days and
11663  # people can always --disable-shared, the test was removed, and we
11664  # assume the GNU/Linux dynamic linker is in use.
11665  dynamic_linker='GNU/Linux ld.so'
11666  ;;
11667
11668netbsd*)
11669  version_type=sunos
11670  need_lib_prefix=no
11671  need_version=no
11672  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11673    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11674    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11675    dynamic_linker='NetBSD (a.out) ld.so'
11676  else
11677    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678    soname_spec='$libname$release$shared_ext$major'
11679    dynamic_linker='NetBSD ld.elf_so'
11680  fi
11681  shlibpath_var=LD_LIBRARY_PATH
11682  shlibpath_overrides_runpath=yes
11683  hardcode_into_libs=yes
11684  ;;
11685
11686newsos6)
11687  version_type=linux # correct to gnu/linux during the next big refactor
11688  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689  shlibpath_var=LD_LIBRARY_PATH
11690  shlibpath_overrides_runpath=yes
11691  ;;
11692
11693*nto* | *qnx*)
11694  version_type=qnx
11695  need_lib_prefix=no
11696  need_version=no
11697  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11698  soname_spec='$libname$release$shared_ext$major'
11699  shlibpath_var=LD_LIBRARY_PATH
11700  shlibpath_overrides_runpath=no
11701  hardcode_into_libs=yes
11702  dynamic_linker='ldqnx.so'
11703  ;;
11704
11705openbsd* | bitrig*)
11706  version_type=sunos
11707  sys_lib_dlsearch_path_spec=/usr/lib
11708  need_lib_prefix=no
11709  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11710    need_version=no
11711  else
11712    need_version=yes
11713  fi
11714  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11715  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11716  shlibpath_var=LD_LIBRARY_PATH
11717  shlibpath_overrides_runpath=yes
11718  ;;
11719
11720os2*)
11721  libname_spec='$name'
11722  version_type=windows
11723  shrext_cmds=.dll
11724  need_version=no
11725  need_lib_prefix=no
11726  # OS/2 can only load a DLL with a base name of 8 characters or less.
11727  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11728    v=$($ECHO $release$versuffix | tr -d .-);
11729    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11730    $ECHO $n$v`$shared_ext'
11731  library_names_spec='${libname}_dll.$libext'
11732  dynamic_linker='OS/2 ld.exe'
11733  shlibpath_var=BEGINLIBPATH
11734  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11735  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11736  postinstall_cmds='base_file=`basename \$file`~
11737    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11738    dldir=$destdir/`dirname \$dlpath`~
11739    test -d \$dldir || mkdir -p \$dldir~
11740    $install_prog $dir/$dlname \$dldir/$dlname~
11741    chmod a+x \$dldir/$dlname~
11742    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11743      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11744    fi'
11745  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11746    dlpath=$dir/\$dldll~
11747    $RM \$dlpath'
11748  ;;
11749
11750osf3* | osf4* | osf5*)
11751  version_type=osf
11752  need_lib_prefix=no
11753  need_version=no
11754  soname_spec='$libname$release$shared_ext$major'
11755  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756  shlibpath_var=LD_LIBRARY_PATH
11757  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11758  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11759  ;;
11760
11761rdos*)
11762  dynamic_linker=no
11763  ;;
11764
11765solaris*)
11766  version_type=linux # correct to gnu/linux during the next big refactor
11767  need_lib_prefix=no
11768  need_version=no
11769  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770  soname_spec='$libname$release$shared_ext$major'
11771  shlibpath_var=LD_LIBRARY_PATH
11772  shlibpath_overrides_runpath=yes
11773  hardcode_into_libs=yes
11774  # ldd complains unless libraries are executable
11775  postinstall_cmds='chmod +x $lib'
11776  ;;
11777
11778sunos4*)
11779  version_type=sunos
11780  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11781  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11782  shlibpath_var=LD_LIBRARY_PATH
11783  shlibpath_overrides_runpath=yes
11784  if test yes = "$with_gnu_ld"; then
11785    need_lib_prefix=no
11786  fi
11787  need_version=yes
11788  ;;
11789
11790sysv4 | sysv4.3*)
11791  version_type=linux # correct to gnu/linux during the next big refactor
11792  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793  soname_spec='$libname$release$shared_ext$major'
11794  shlibpath_var=LD_LIBRARY_PATH
11795  case $host_vendor in
11796    sni)
11797      shlibpath_overrides_runpath=no
11798      need_lib_prefix=no
11799      runpath_var=LD_RUN_PATH
11800      ;;
11801    siemens)
11802      need_lib_prefix=no
11803      ;;
11804    motorola)
11805      need_lib_prefix=no
11806      need_version=no
11807      shlibpath_overrides_runpath=no
11808      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11809      ;;
11810  esac
11811  ;;
11812
11813sysv4*MP*)
11814  if test -d /usr/nec; then
11815    version_type=linux # correct to gnu/linux during the next big refactor
11816    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11817    soname_spec='$libname$shared_ext.$major'
11818    shlibpath_var=LD_LIBRARY_PATH
11819  fi
11820  ;;
11821
11822sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11823  version_type=sco
11824  need_lib_prefix=no
11825  need_version=no
11826  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11827  soname_spec='$libname$release$shared_ext$major'
11828  shlibpath_var=LD_LIBRARY_PATH
11829  shlibpath_overrides_runpath=yes
11830  hardcode_into_libs=yes
11831  if test yes = "$with_gnu_ld"; then
11832    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11833  else
11834    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11835    case $host_os in
11836      sco3.2v5*)
11837        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11838	;;
11839    esac
11840  fi
11841  sys_lib_dlsearch_path_spec='/usr/lib'
11842  ;;
11843
11844tpf*)
11845  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11846  version_type=linux # correct to gnu/linux during the next big refactor
11847  need_lib_prefix=no
11848  need_version=no
11849  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11850  shlibpath_var=LD_LIBRARY_PATH
11851  shlibpath_overrides_runpath=no
11852  hardcode_into_libs=yes
11853  ;;
11854
11855uts4*)
11856  version_type=linux # correct to gnu/linux during the next big refactor
11857  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858  soname_spec='$libname$release$shared_ext$major'
11859  shlibpath_var=LD_LIBRARY_PATH
11860  ;;
11861
11862*)
11863  dynamic_linker=no
11864  ;;
11865esac
11866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11867printf "%s\n" "$dynamic_linker" >&6; }
11868test no = "$dynamic_linker" && can_build_shared=no
11869
11870variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11871if test yes = "$GCC"; then
11872  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11873fi
11874
11875if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11876  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11877fi
11878
11879if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11880  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11881fi
11882
11883# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11884configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11885
11886# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11887func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11888
11889# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11890configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11989printf %s "checking how to hardcode library paths into programs... " >&6; }
11990hardcode_action=
11991if test -n "$hardcode_libdir_flag_spec" ||
11992   test -n "$runpath_var" ||
11993   test yes = "$hardcode_automatic"; then
11994
11995  # We can hardcode non-existent directories.
11996  if test no != "$hardcode_direct" &&
11997     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11998     # have to relink, otherwise we might link with an installed library
11999     # when we should be linking with a yet-to-be-installed one
12000     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12001     test no != "$hardcode_minus_L"; then
12002    # Linking always hardcodes the temporary library directory.
12003    hardcode_action=relink
12004  else
12005    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12006    hardcode_action=immediate
12007  fi
12008else
12009  # We cannot hardcode anything, or else we can only hardcode existing
12010  # directories.
12011  hardcode_action=unsupported
12012fi
12013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12014printf "%s\n" "$hardcode_action" >&6; }
12015
12016if test relink = "$hardcode_action" ||
12017   test yes = "$inherit_rpath"; then
12018  # Fast installation is not supported
12019  enable_fast_install=no
12020elif test yes = "$shlibpath_overrides_runpath" ||
12021     test no = "$enable_shared"; then
12022  # Fast installation is not necessary
12023  enable_fast_install=needless
12024fi
12025
12026
12027
12028
12029
12030
12031  if test yes != "$enable_dlopen"; then
12032  enable_dlopen=unknown
12033  enable_dlopen_self=unknown
12034  enable_dlopen_self_static=unknown
12035else
12036  lt_cv_dlopen=no
12037  lt_cv_dlopen_libs=
12038
12039  case $host_os in
12040  beos*)
12041    lt_cv_dlopen=load_add_on
12042    lt_cv_dlopen_libs=
12043    lt_cv_dlopen_self=yes
12044    ;;
12045
12046  mingw* | pw32* | cegcc*)
12047    lt_cv_dlopen=LoadLibrary
12048    lt_cv_dlopen_libs=
12049    ;;
12050
12051  cygwin*)
12052    lt_cv_dlopen=dlopen
12053    lt_cv_dlopen_libs=
12054    ;;
12055
12056  darwin*)
12057    # if libdl is installed we need to link against it
12058    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12059printf %s "checking for dlopen in -ldl... " >&6; }
12060if test ${ac_cv_lib_dl_dlopen+y}
12061then :
12062  printf %s "(cached) " >&6
12063else $as_nop
12064  ac_check_lib_save_LIBS=$LIBS
12065LIBS="-ldl  $LIBS"
12066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067/* end confdefs.h.  */
12068
12069/* Override any GCC internal prototype to avoid an error.
12070   Use char because int might match the return type of a GCC
12071   builtin and then its argument prototype would still apply.  */
12072char dlopen ();
12073int
12074main (void)
12075{
12076return dlopen ();
12077  ;
12078  return 0;
12079}
12080_ACEOF
12081if ac_fn_c_try_link "$LINENO"
12082then :
12083  ac_cv_lib_dl_dlopen=yes
12084else $as_nop
12085  ac_cv_lib_dl_dlopen=no
12086fi
12087rm -f core conftest.err conftest.$ac_objext conftest.beam \
12088    conftest$ac_exeext conftest.$ac_ext
12089LIBS=$ac_check_lib_save_LIBS
12090fi
12091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12092printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12093if test "x$ac_cv_lib_dl_dlopen" = xyes
12094then :
12095  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12096else $as_nop
12097
12098    lt_cv_dlopen=dyld
12099    lt_cv_dlopen_libs=
12100    lt_cv_dlopen_self=yes
12101
12102fi
12103
12104    ;;
12105
12106  tpf*)
12107    # Don't try to run any link tests for TPF.  We know it's impossible
12108    # because TPF is a cross-compiler, and we know how we open DSOs.
12109    lt_cv_dlopen=dlopen
12110    lt_cv_dlopen_libs=
12111    lt_cv_dlopen_self=no
12112    ;;
12113
12114  *)
12115    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12116if test "x$ac_cv_func_shl_load" = xyes
12117then :
12118  lt_cv_dlopen=shl_load
12119else $as_nop
12120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12121printf %s "checking for shl_load in -ldld... " >&6; }
12122if test ${ac_cv_lib_dld_shl_load+y}
12123then :
12124  printf %s "(cached) " >&6
12125else $as_nop
12126  ac_check_lib_save_LIBS=$LIBS
12127LIBS="-ldld  $LIBS"
12128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h.  */
12130
12131/* Override any GCC internal prototype to avoid an error.
12132   Use char because int might match the return type of a GCC
12133   builtin and then its argument prototype would still apply.  */
12134char shl_load ();
12135int
12136main (void)
12137{
12138return shl_load ();
12139  ;
12140  return 0;
12141}
12142_ACEOF
12143if ac_fn_c_try_link "$LINENO"
12144then :
12145  ac_cv_lib_dld_shl_load=yes
12146else $as_nop
12147  ac_cv_lib_dld_shl_load=no
12148fi
12149rm -f core conftest.err conftest.$ac_objext conftest.beam \
12150    conftest$ac_exeext conftest.$ac_ext
12151LIBS=$ac_check_lib_save_LIBS
12152fi
12153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12154printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12155if test "x$ac_cv_lib_dld_shl_load" = xyes
12156then :
12157  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12158else $as_nop
12159  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12160if test "x$ac_cv_func_dlopen" = xyes
12161then :
12162  lt_cv_dlopen=dlopen
12163else $as_nop
12164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12165printf %s "checking for dlopen in -ldl... " >&6; }
12166if test ${ac_cv_lib_dl_dlopen+y}
12167then :
12168  printf %s "(cached) " >&6
12169else $as_nop
12170  ac_check_lib_save_LIBS=$LIBS
12171LIBS="-ldl  $LIBS"
12172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173/* end confdefs.h.  */
12174
12175/* Override any GCC internal prototype to avoid an error.
12176   Use char because int might match the return type of a GCC
12177   builtin and then its argument prototype would still apply.  */
12178char dlopen ();
12179int
12180main (void)
12181{
12182return dlopen ();
12183  ;
12184  return 0;
12185}
12186_ACEOF
12187if ac_fn_c_try_link "$LINENO"
12188then :
12189  ac_cv_lib_dl_dlopen=yes
12190else $as_nop
12191  ac_cv_lib_dl_dlopen=no
12192fi
12193rm -f core conftest.err conftest.$ac_objext conftest.beam \
12194    conftest$ac_exeext conftest.$ac_ext
12195LIBS=$ac_check_lib_save_LIBS
12196fi
12197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12198printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12199if test "x$ac_cv_lib_dl_dlopen" = xyes
12200then :
12201  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12202else $as_nop
12203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12204printf %s "checking for dlopen in -lsvld... " >&6; }
12205if test ${ac_cv_lib_svld_dlopen+y}
12206then :
12207  printf %s "(cached) " >&6
12208else $as_nop
12209  ac_check_lib_save_LIBS=$LIBS
12210LIBS="-lsvld  $LIBS"
12211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212/* end confdefs.h.  */
12213
12214/* Override any GCC internal prototype to avoid an error.
12215   Use char because int might match the return type of a GCC
12216   builtin and then its argument prototype would still apply.  */
12217char dlopen ();
12218int
12219main (void)
12220{
12221return dlopen ();
12222  ;
12223  return 0;
12224}
12225_ACEOF
12226if ac_fn_c_try_link "$LINENO"
12227then :
12228  ac_cv_lib_svld_dlopen=yes
12229else $as_nop
12230  ac_cv_lib_svld_dlopen=no
12231fi
12232rm -f core conftest.err conftest.$ac_objext conftest.beam \
12233    conftest$ac_exeext conftest.$ac_ext
12234LIBS=$ac_check_lib_save_LIBS
12235fi
12236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12237printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12238if test "x$ac_cv_lib_svld_dlopen" = xyes
12239then :
12240  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12241else $as_nop
12242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12243printf %s "checking for dld_link in -ldld... " >&6; }
12244if test ${ac_cv_lib_dld_dld_link+y}
12245then :
12246  printf %s "(cached) " >&6
12247else $as_nop
12248  ac_check_lib_save_LIBS=$LIBS
12249LIBS="-ldld  $LIBS"
12250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251/* end confdefs.h.  */
12252
12253/* Override any GCC internal prototype to avoid an error.
12254   Use char because int might match the return type of a GCC
12255   builtin and then its argument prototype would still apply.  */
12256char dld_link ();
12257int
12258main (void)
12259{
12260return dld_link ();
12261  ;
12262  return 0;
12263}
12264_ACEOF
12265if ac_fn_c_try_link "$LINENO"
12266then :
12267  ac_cv_lib_dld_dld_link=yes
12268else $as_nop
12269  ac_cv_lib_dld_dld_link=no
12270fi
12271rm -f core conftest.err conftest.$ac_objext conftest.beam \
12272    conftest$ac_exeext conftest.$ac_ext
12273LIBS=$ac_check_lib_save_LIBS
12274fi
12275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12276printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12277if test "x$ac_cv_lib_dld_dld_link" = xyes
12278then :
12279  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12280fi
12281
12282
12283fi
12284
12285
12286fi
12287
12288
12289fi
12290
12291
12292fi
12293
12294
12295fi
12296
12297    ;;
12298  esac
12299
12300  if test no = "$lt_cv_dlopen"; then
12301    enable_dlopen=no
12302  else
12303    enable_dlopen=yes
12304  fi
12305
12306  case $lt_cv_dlopen in
12307  dlopen)
12308    save_CPPFLAGS=$CPPFLAGS
12309    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12310
12311    save_LDFLAGS=$LDFLAGS
12312    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12313
12314    save_LIBS=$LIBS
12315    LIBS="$lt_cv_dlopen_libs $LIBS"
12316
12317    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12318printf %s "checking whether a program can dlopen itself... " >&6; }
12319if test ${lt_cv_dlopen_self+y}
12320then :
12321  printf %s "(cached) " >&6
12322else $as_nop
12323  	  if test yes = "$cross_compiling"; then :
12324  lt_cv_dlopen_self=cross
12325else
12326  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12327  lt_status=$lt_dlunknown
12328  cat > conftest.$ac_ext <<_LT_EOF
12329#line $LINENO "configure"
12330#include "confdefs.h"
12331
12332#if HAVE_DLFCN_H
12333#include <dlfcn.h>
12334#endif
12335
12336#include <stdio.h>
12337
12338#ifdef RTLD_GLOBAL
12339#  define LT_DLGLOBAL		RTLD_GLOBAL
12340#else
12341#  ifdef DL_GLOBAL
12342#    define LT_DLGLOBAL		DL_GLOBAL
12343#  else
12344#    define LT_DLGLOBAL		0
12345#  endif
12346#endif
12347
12348/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12349   find out it does not work in some platform. */
12350#ifndef LT_DLLAZY_OR_NOW
12351#  ifdef RTLD_LAZY
12352#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12353#  else
12354#    ifdef DL_LAZY
12355#      define LT_DLLAZY_OR_NOW		DL_LAZY
12356#    else
12357#      ifdef RTLD_NOW
12358#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12359#      else
12360#        ifdef DL_NOW
12361#          define LT_DLLAZY_OR_NOW	DL_NOW
12362#        else
12363#          define LT_DLLAZY_OR_NOW	0
12364#        endif
12365#      endif
12366#    endif
12367#  endif
12368#endif
12369
12370/* When -fvisibility=hidden is used, assume the code has been annotated
12371   correspondingly for the symbols needed.  */
12372#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12373int fnord () __attribute__((visibility("default")));
12374#endif
12375
12376int fnord () { return 42; }
12377int main ()
12378{
12379  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12380  int status = $lt_dlunknown;
12381
12382  if (self)
12383    {
12384      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12385      else
12386        {
12387	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12388          else puts (dlerror ());
12389	}
12390      /* dlclose (self); */
12391    }
12392  else
12393    puts (dlerror ());
12394
12395  return status;
12396}
12397_LT_EOF
12398  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12399  (eval $ac_link) 2>&5
12400  ac_status=$?
12401  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12402  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12403    (./conftest; exit; ) >&5 2>/dev/null
12404    lt_status=$?
12405    case x$lt_status in
12406      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12407      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12408      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12409    esac
12410  else :
12411    # compilation failed
12412    lt_cv_dlopen_self=no
12413  fi
12414fi
12415rm -fr conftest*
12416
12417
12418fi
12419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12420printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12421
12422    if test yes = "$lt_cv_dlopen_self"; then
12423      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12424      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12425printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12426if test ${lt_cv_dlopen_self_static+y}
12427then :
12428  printf %s "(cached) " >&6
12429else $as_nop
12430  	  if test yes = "$cross_compiling"; then :
12431  lt_cv_dlopen_self_static=cross
12432else
12433  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12434  lt_status=$lt_dlunknown
12435  cat > conftest.$ac_ext <<_LT_EOF
12436#line $LINENO "configure"
12437#include "confdefs.h"
12438
12439#if HAVE_DLFCN_H
12440#include <dlfcn.h>
12441#endif
12442
12443#include <stdio.h>
12444
12445#ifdef RTLD_GLOBAL
12446#  define LT_DLGLOBAL		RTLD_GLOBAL
12447#else
12448#  ifdef DL_GLOBAL
12449#    define LT_DLGLOBAL		DL_GLOBAL
12450#  else
12451#    define LT_DLGLOBAL		0
12452#  endif
12453#endif
12454
12455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12456   find out it does not work in some platform. */
12457#ifndef LT_DLLAZY_OR_NOW
12458#  ifdef RTLD_LAZY
12459#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12460#  else
12461#    ifdef DL_LAZY
12462#      define LT_DLLAZY_OR_NOW		DL_LAZY
12463#    else
12464#      ifdef RTLD_NOW
12465#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12466#      else
12467#        ifdef DL_NOW
12468#          define LT_DLLAZY_OR_NOW	DL_NOW
12469#        else
12470#          define LT_DLLAZY_OR_NOW	0
12471#        endif
12472#      endif
12473#    endif
12474#  endif
12475#endif
12476
12477/* When -fvisibility=hidden is used, assume the code has been annotated
12478   correspondingly for the symbols needed.  */
12479#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12480int fnord () __attribute__((visibility("default")));
12481#endif
12482
12483int fnord () { return 42; }
12484int main ()
12485{
12486  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12487  int status = $lt_dlunknown;
12488
12489  if (self)
12490    {
12491      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12492      else
12493        {
12494	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12495          else puts (dlerror ());
12496	}
12497      /* dlclose (self); */
12498    }
12499  else
12500    puts (dlerror ());
12501
12502  return status;
12503}
12504_LT_EOF
12505  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12506  (eval $ac_link) 2>&5
12507  ac_status=$?
12508  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12509  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12510    (./conftest; exit; ) >&5 2>/dev/null
12511    lt_status=$?
12512    case x$lt_status in
12513      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12514      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12515      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12516    esac
12517  else :
12518    # compilation failed
12519    lt_cv_dlopen_self_static=no
12520  fi
12521fi
12522rm -fr conftest*
12523
12524
12525fi
12526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12527printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12528    fi
12529
12530    CPPFLAGS=$save_CPPFLAGS
12531    LDFLAGS=$save_LDFLAGS
12532    LIBS=$save_LIBS
12533    ;;
12534  esac
12535
12536  case $lt_cv_dlopen_self in
12537  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12538  *) enable_dlopen_self=unknown ;;
12539  esac
12540
12541  case $lt_cv_dlopen_self_static in
12542  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12543  *) enable_dlopen_self_static=unknown ;;
12544  esac
12545fi
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563striplib=
12564old_striplib=
12565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12566printf %s "checking whether stripping libraries is possible... " >&6; }
12567if test -z "$STRIP"; then
12568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569printf "%s\n" "no" >&6; }
12570else
12571  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12572    old_striplib="$STRIP --strip-debug"
12573    striplib="$STRIP --strip-unneeded"
12574    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575printf "%s\n" "yes" >&6; }
12576  else
12577    case $host_os in
12578    darwin*)
12579      # FIXME - insert some real tests, host_os isn't really good enough
12580      striplib="$STRIP -x"
12581      old_striplib="$STRIP -S"
12582      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12583printf "%s\n" "yes" >&6; }
12584      ;;
12585    freebsd*)
12586      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12587        old_striplib="$STRIP --strip-debug"
12588        striplib="$STRIP --strip-unneeded"
12589        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12590printf "%s\n" "yes" >&6; }
12591      else
12592        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593printf "%s\n" "no" >&6; }
12594      fi
12595      ;;
12596    *)
12597      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598printf "%s\n" "no" >&6; }
12599      ;;
12600    esac
12601  fi
12602fi
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615  # Report what library types will actually be built
12616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12617printf %s "checking if libtool supports shared libraries... " >&6; }
12618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12619printf "%s\n" "$can_build_shared" >&6; }
12620
12621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12622printf %s "checking whether to build shared libraries... " >&6; }
12623  test no = "$can_build_shared" && enable_shared=no
12624
12625  # On AIX, shared libraries and static libraries use the same namespace, and
12626  # are all built from PIC.
12627  case $host_os in
12628  aix3*)
12629    test yes = "$enable_shared" && enable_static=no
12630    if test -n "$RANLIB"; then
12631      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12632      postinstall_cmds='$RANLIB $lib'
12633    fi
12634    ;;
12635
12636  aix[4-9]*)
12637    if test ia64 != "$host_cpu"; then
12638      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12639      yes,aix,yes) ;;			# shared object as lib.so file only
12640      yes,svr4,*) ;;			# shared object as lib.so archive member only
12641      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12642      esac
12643    fi
12644    ;;
12645  esac
12646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12647printf "%s\n" "$enable_shared" >&6; }
12648
12649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12650printf %s "checking whether to build static libraries... " >&6; }
12651  # Make sure either enable_shared or enable_static is yes.
12652  test yes = "$enable_shared" || enable_static=yes
12653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12654printf "%s\n" "$enable_static" >&6; }
12655
12656
12657
12658
12659fi
12660ac_ext=c
12661ac_cpp='$CPP $CPPFLAGS'
12662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664ac_compiler_gnu=$ac_cv_c_compiler_gnu
12665
12666CC=$lt_save_CC
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682        ac_config_commands="$ac_config_commands libtool"
12683
12684
12685
12686
12687# Only expand once:
12688
12689
12690
12691# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12705printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12706if test ${ac_cv_c_undeclared_builtin_options+y}
12707then :
12708  printf %s "(cached) " >&6
12709else $as_nop
12710  ac_save_CFLAGS=$CFLAGS
12711   ac_cv_c_undeclared_builtin_options='cannot detect'
12712   for ac_arg in '' -fno-builtin; do
12713     CFLAGS="$ac_save_CFLAGS $ac_arg"
12714     # This test program should *not* compile successfully.
12715     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716/* end confdefs.h.  */
12717
12718int
12719main (void)
12720{
12721(void) strchr;
12722  ;
12723  return 0;
12724}
12725_ACEOF
12726if ac_fn_c_try_compile "$LINENO"
12727then :
12728
12729else $as_nop
12730  # This test program should compile successfully.
12731        # No library function is consistently available on
12732        # freestanding implementations, so test against a dummy
12733        # declaration.  Include always-available headers on the
12734        # off chance that they somehow elicit warnings.
12735        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736/* end confdefs.h.  */
12737#include <float.h>
12738#include <limits.h>
12739#include <stdarg.h>
12740#include <stddef.h>
12741extern void ac_decl (int, char *);
12742
12743int
12744main (void)
12745{
12746(void) ac_decl (0, (char *) 0);
12747  (void) ac_decl;
12748
12749  ;
12750  return 0;
12751}
12752_ACEOF
12753if ac_fn_c_try_compile "$LINENO"
12754then :
12755  if test x"$ac_arg" = x
12756then :
12757  ac_cv_c_undeclared_builtin_options='none needed'
12758else $as_nop
12759  ac_cv_c_undeclared_builtin_options=$ac_arg
12760fi
12761          break
12762fi
12763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12764fi
12765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12766    done
12767    CFLAGS=$ac_save_CFLAGS
12768
12769fi
12770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12771printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12772  case $ac_cv_c_undeclared_builtin_options in #(
12773  'cannot detect') :
12774    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12775printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12776as_fn_error $? "cannot make $CC report undeclared builtins
12777See \`config.log' for more details" "$LINENO" 5; } ;; #(
12778  'none needed') :
12779    ac_c_undeclared_builtin_options='' ;; #(
12780  *) :
12781    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12782esac
12783
12784
12785
12786
12787
12788ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12789if test "x$ac_cv_have_decl___clang__" = xyes
12790then :
12791  CLANGCC="yes"
12792else $as_nop
12793  CLANGCC="no"
12794fi
12795ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12796if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12797then :
12798  INTELCC="yes"
12799else $as_nop
12800  INTELCC="no"
12801fi
12802ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12803if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12804then :
12805  SUNCC="yes"
12806else $as_nop
12807  SUNCC="no"
12808fi
12809
12810
12811
12812
12813
12814
12815
12816
12817if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12818	if test -n "$ac_tool_prefix"; then
12819  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12820set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822printf %s "checking for $ac_word... " >&6; }
12823if test ${ac_cv_path_PKG_CONFIG+y}
12824then :
12825  printf %s "(cached) " >&6
12826else $as_nop
12827  case $PKG_CONFIG in
12828  [\\/]* | ?:[\\/]*)
12829  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12830  ;;
12831  *)
12832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833for as_dir in $PATH
12834do
12835  IFS=$as_save_IFS
12836  case $as_dir in #(((
12837    '') as_dir=./ ;;
12838    */) ;;
12839    *) as_dir=$as_dir/ ;;
12840  esac
12841    for ac_exec_ext in '' $ac_executable_extensions; do
12842  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12843    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12844    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12845    break 2
12846  fi
12847done
12848  done
12849IFS=$as_save_IFS
12850
12851  ;;
12852esac
12853fi
12854PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12855if test -n "$PKG_CONFIG"; then
12856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12857printf "%s\n" "$PKG_CONFIG" >&6; }
12858else
12859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860printf "%s\n" "no" >&6; }
12861fi
12862
12863
12864fi
12865if test -z "$ac_cv_path_PKG_CONFIG"; then
12866  ac_pt_PKG_CONFIG=$PKG_CONFIG
12867  # Extract the first word of "pkg-config", so it can be a program name with args.
12868set dummy pkg-config; ac_word=$2
12869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870printf %s "checking for $ac_word... " >&6; }
12871if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12872then :
12873  printf %s "(cached) " >&6
12874else $as_nop
12875  case $ac_pt_PKG_CONFIG in
12876  [\\/]* | ?:[\\/]*)
12877  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12878  ;;
12879  *)
12880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883  IFS=$as_save_IFS
12884  case $as_dir in #(((
12885    '') as_dir=./ ;;
12886    */) ;;
12887    *) as_dir=$as_dir/ ;;
12888  esac
12889    for ac_exec_ext in '' $ac_executable_extensions; do
12890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12891    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12893    break 2
12894  fi
12895done
12896  done
12897IFS=$as_save_IFS
12898
12899  ;;
12900esac
12901fi
12902ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12903if test -n "$ac_pt_PKG_CONFIG"; then
12904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12905printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12906else
12907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908printf "%s\n" "no" >&6; }
12909fi
12910
12911  if test "x$ac_pt_PKG_CONFIG" = x; then
12912    PKG_CONFIG=""
12913  else
12914    case $cross_compiling:$ac_tool_warned in
12915yes:)
12916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12918ac_tool_warned=yes ;;
12919esac
12920    PKG_CONFIG=$ac_pt_PKG_CONFIG
12921  fi
12922else
12923  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12924fi
12925
12926fi
12927if test -n "$PKG_CONFIG"; then
12928	_pkg_min_version=0.9.0
12929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12930printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12931	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933printf "%s\n" "yes" >&6; }
12934	else
12935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936printf "%s\n" "no" >&6; }
12937		PKG_CONFIG=""
12938	fi
12939fi
12940
12941
12942
12943
12944
12945# Check whether --enable-selective-werror was given.
12946if test ${enable_selective_werror+y}
12947then :
12948  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12949else $as_nop
12950  SELECTIVE_WERROR=yes
12951fi
12952
12953
12954
12955
12956
12957# -v is too short to test reliably with XORG_TESTSET_CFLAG
12958if test "x$SUNCC" = "xyes"; then
12959    BASE_CFLAGS="-v"
12960else
12961    BASE_CFLAGS=""
12962fi
12963
12964# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978xorg_testset_save_CFLAGS="$CFLAGS"
12979
12980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12984if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12985then :
12986  printf %s "(cached) " >&6
12987else $as_nop
12988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989/* end confdefs.h.  */
12990int i;
12991_ACEOF
12992if ac_fn_c_try_compile "$LINENO"
12993then :
12994  xorg_cv_cc_flag_unknown_warning_option=yes
12995else $as_nop
12996  xorg_cv_cc_flag_unknown_warning_option=no
12997fi
12998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12999fi
13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13002	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13003	CFLAGS="$xorg_testset_save_CFLAGS"
13004fi
13005
13006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13007	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13008		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13009	fi
13010	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13013if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13014then :
13015  printf %s "(cached) " >&6
13016else $as_nop
13017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018/* end confdefs.h.  */
13019int i;
13020_ACEOF
13021if ac_fn_c_try_compile "$LINENO"
13022then :
13023  xorg_cv_cc_flag_unused_command_line_argument=yes
13024else $as_nop
13025  xorg_cv_cc_flag_unused_command_line_argument=no
13026fi
13027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13028fi
13029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13032	CFLAGS="$xorg_testset_save_CFLAGS"
13033fi
13034
13035found="no"
13036
13037	if test $found = "no" ; then
13038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13040		fi
13041
13042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13044		fi
13045
13046		CFLAGS="$CFLAGS -Wall"
13047
13048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13049printf %s "checking if $CC supports -Wall... " >&6; }
13050		cacheid=xorg_cv_cc_flag__Wall
13051		if eval test \${$cacheid+y}
13052then :
13053  printf %s "(cached) " >&6
13054else $as_nop
13055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056/* end confdefs.h.  */
13057int i;
13058int
13059main (void)
13060{
13061
13062  ;
13063  return 0;
13064}
13065_ACEOF
13066if ac_fn_c_try_link "$LINENO"
13067then :
13068  eval $cacheid=yes
13069else $as_nop
13070  eval $cacheid=no
13071fi
13072rm -f core conftest.err conftest.$ac_objext conftest.beam \
13073    conftest$ac_exeext conftest.$ac_ext
13074fi
13075
13076
13077		CFLAGS="$xorg_testset_save_CFLAGS"
13078
13079		eval supported=\$$cacheid
13080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13081printf "%s\n" "$supported" >&6; }
13082		if test "$supported" = "yes" ; then
13083			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13084			found="yes"
13085		fi
13086	fi
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102xorg_testset_save_CFLAGS="$CFLAGS"
13103
13104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13106	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13108if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13109then :
13110  printf %s "(cached) " >&6
13111else $as_nop
13112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113/* end confdefs.h.  */
13114int i;
13115_ACEOF
13116if ac_fn_c_try_compile "$LINENO"
13117then :
13118  xorg_cv_cc_flag_unknown_warning_option=yes
13119else $as_nop
13120  xorg_cv_cc_flag_unknown_warning_option=no
13121fi
13122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13123fi
13124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13127	CFLAGS="$xorg_testset_save_CFLAGS"
13128fi
13129
13130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13133	fi
13134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13137if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13138then :
13139  printf %s "(cached) " >&6
13140else $as_nop
13141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142/* end confdefs.h.  */
13143int i;
13144_ACEOF
13145if ac_fn_c_try_compile "$LINENO"
13146then :
13147  xorg_cv_cc_flag_unused_command_line_argument=yes
13148else $as_nop
13149  xorg_cv_cc_flag_unused_command_line_argument=no
13150fi
13151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13152fi
13153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13155	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13156	CFLAGS="$xorg_testset_save_CFLAGS"
13157fi
13158
13159found="no"
13160
13161	if test $found = "no" ; then
13162		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13163			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13164		fi
13165
13166		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13167			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13168		fi
13169
13170		CFLAGS="$CFLAGS -Wpointer-arith"
13171
13172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13173printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13174		cacheid=xorg_cv_cc_flag__Wpointer_arith
13175		if eval test \${$cacheid+y}
13176then :
13177  printf %s "(cached) " >&6
13178else $as_nop
13179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13180/* end confdefs.h.  */
13181int i;
13182int
13183main (void)
13184{
13185
13186  ;
13187  return 0;
13188}
13189_ACEOF
13190if ac_fn_c_try_link "$LINENO"
13191then :
13192  eval $cacheid=yes
13193else $as_nop
13194  eval $cacheid=no
13195fi
13196rm -f core conftest.err conftest.$ac_objext conftest.beam \
13197    conftest$ac_exeext conftest.$ac_ext
13198fi
13199
13200
13201		CFLAGS="$xorg_testset_save_CFLAGS"
13202
13203		eval supported=\$$cacheid
13204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13205printf "%s\n" "$supported" >&6; }
13206		if test "$supported" = "yes" ; then
13207			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13208			found="yes"
13209		fi
13210	fi
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226xorg_testset_save_CFLAGS="$CFLAGS"
13227
13228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13230	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13232if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13233then :
13234  printf %s "(cached) " >&6
13235else $as_nop
13236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238int i;
13239_ACEOF
13240if ac_fn_c_try_compile "$LINENO"
13241then :
13242  xorg_cv_cc_flag_unknown_warning_option=yes
13243else $as_nop
13244  xorg_cv_cc_flag_unknown_warning_option=no
13245fi
13246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13247fi
13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13251	CFLAGS="$xorg_testset_save_CFLAGS"
13252fi
13253
13254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13257	fi
13258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13259	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13261if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13262then :
13263  printf %s "(cached) " >&6
13264else $as_nop
13265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266/* end confdefs.h.  */
13267int i;
13268_ACEOF
13269if ac_fn_c_try_compile "$LINENO"
13270then :
13271  xorg_cv_cc_flag_unused_command_line_argument=yes
13272else $as_nop
13273  xorg_cv_cc_flag_unused_command_line_argument=no
13274fi
13275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13276fi
13277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13280	CFLAGS="$xorg_testset_save_CFLAGS"
13281fi
13282
13283found="no"
13284
13285	if test $found = "no" ; then
13286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13288		fi
13289
13290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13292		fi
13293
13294		CFLAGS="$CFLAGS -Wmissing-declarations"
13295
13296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13297printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13298		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13299		if eval test \${$cacheid+y}
13300then :
13301  printf %s "(cached) " >&6
13302else $as_nop
13303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304/* end confdefs.h.  */
13305int i;
13306int
13307main (void)
13308{
13309
13310  ;
13311  return 0;
13312}
13313_ACEOF
13314if ac_fn_c_try_link "$LINENO"
13315then :
13316  eval $cacheid=yes
13317else $as_nop
13318  eval $cacheid=no
13319fi
13320rm -f core conftest.err conftest.$ac_objext conftest.beam \
13321    conftest$ac_exeext conftest.$ac_ext
13322fi
13323
13324
13325		CFLAGS="$xorg_testset_save_CFLAGS"
13326
13327		eval supported=\$$cacheid
13328		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13329printf "%s\n" "$supported" >&6; }
13330		if test "$supported" = "yes" ; then
13331			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13332			found="yes"
13333		fi
13334	fi
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350xorg_testset_save_CFLAGS="$CFLAGS"
13351
13352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13353	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13354	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13356if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13357then :
13358  printf %s "(cached) " >&6
13359else $as_nop
13360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h.  */
13362int i;
13363_ACEOF
13364if ac_fn_c_try_compile "$LINENO"
13365then :
13366  xorg_cv_cc_flag_unknown_warning_option=yes
13367else $as_nop
13368  xorg_cv_cc_flag_unknown_warning_option=no
13369fi
13370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13371fi
13372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13375	CFLAGS="$xorg_testset_save_CFLAGS"
13376fi
13377
13378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13381	fi
13382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13385if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13386then :
13387  printf %s "(cached) " >&6
13388else $as_nop
13389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390/* end confdefs.h.  */
13391int i;
13392_ACEOF
13393if ac_fn_c_try_compile "$LINENO"
13394then :
13395  xorg_cv_cc_flag_unused_command_line_argument=yes
13396else $as_nop
13397  xorg_cv_cc_flag_unused_command_line_argument=no
13398fi
13399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13400fi
13401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13404	CFLAGS="$xorg_testset_save_CFLAGS"
13405fi
13406
13407found="no"
13408
13409	if test $found = "no" ; then
13410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13412		fi
13413
13414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13416		fi
13417
13418		CFLAGS="$CFLAGS -Wformat=2"
13419
13420		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13421printf %s "checking if $CC supports -Wformat=2... " >&6; }
13422		cacheid=xorg_cv_cc_flag__Wformat_2
13423		if eval test \${$cacheid+y}
13424then :
13425  printf %s "(cached) " >&6
13426else $as_nop
13427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428/* end confdefs.h.  */
13429int i;
13430int
13431main (void)
13432{
13433
13434  ;
13435  return 0;
13436}
13437_ACEOF
13438if ac_fn_c_try_link "$LINENO"
13439then :
13440  eval $cacheid=yes
13441else $as_nop
13442  eval $cacheid=no
13443fi
13444rm -f core conftest.err conftest.$ac_objext conftest.beam \
13445    conftest$ac_exeext conftest.$ac_ext
13446fi
13447
13448
13449		CFLAGS="$xorg_testset_save_CFLAGS"
13450
13451		eval supported=\$$cacheid
13452		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13453printf "%s\n" "$supported" >&6; }
13454		if test "$supported" = "yes" ; then
13455			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13456			found="yes"
13457		fi
13458	fi
13459
13460	if test $found = "no" ; then
13461		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13462			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13463		fi
13464
13465		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13466			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13467		fi
13468
13469		CFLAGS="$CFLAGS -Wformat"
13470
13471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13472printf %s "checking if $CC supports -Wformat... " >&6; }
13473		cacheid=xorg_cv_cc_flag__Wformat
13474		if eval test \${$cacheid+y}
13475then :
13476  printf %s "(cached) " >&6
13477else $as_nop
13478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479/* end confdefs.h.  */
13480int i;
13481int
13482main (void)
13483{
13484
13485  ;
13486  return 0;
13487}
13488_ACEOF
13489if ac_fn_c_try_link "$LINENO"
13490then :
13491  eval $cacheid=yes
13492else $as_nop
13493  eval $cacheid=no
13494fi
13495rm -f core conftest.err conftest.$ac_objext conftest.beam \
13496    conftest$ac_exeext conftest.$ac_ext
13497fi
13498
13499
13500		CFLAGS="$xorg_testset_save_CFLAGS"
13501
13502		eval supported=\$$cacheid
13503		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13504printf "%s\n" "$supported" >&6; }
13505		if test "$supported" = "yes" ; then
13506			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13507			found="yes"
13508		fi
13509	fi
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527xorg_testset_save_CFLAGS="$CFLAGS"
13528
13529if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13530	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13532printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13533if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13534then :
13535  printf %s "(cached) " >&6
13536else $as_nop
13537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538/* end confdefs.h.  */
13539int i;
13540_ACEOF
13541if ac_fn_c_try_compile "$LINENO"
13542then :
13543  xorg_cv_cc_flag_unknown_warning_option=yes
13544else $as_nop
13545  xorg_cv_cc_flag_unknown_warning_option=no
13546fi
13547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13548fi
13549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13550printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13552	CFLAGS="$xorg_testset_save_CFLAGS"
13553fi
13554
13555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13558	fi
13559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13560	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13561printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13562if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13563then :
13564  printf %s "(cached) " >&6
13565else $as_nop
13566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567/* end confdefs.h.  */
13568int i;
13569_ACEOF
13570if ac_fn_c_try_compile "$LINENO"
13571then :
13572  xorg_cv_cc_flag_unused_command_line_argument=yes
13573else $as_nop
13574  xorg_cv_cc_flag_unused_command_line_argument=no
13575fi
13576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13577fi
13578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13581	CFLAGS="$xorg_testset_save_CFLAGS"
13582fi
13583
13584found="no"
13585
13586	if test $found = "no" ; then
13587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13589		fi
13590
13591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13593		fi
13594
13595		CFLAGS="$CFLAGS -Wstrict-prototypes"
13596
13597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13598printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13599		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13600		if eval test \${$cacheid+y}
13601then :
13602  printf %s "(cached) " >&6
13603else $as_nop
13604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605/* end confdefs.h.  */
13606int i;
13607int
13608main (void)
13609{
13610
13611  ;
13612  return 0;
13613}
13614_ACEOF
13615if ac_fn_c_try_link "$LINENO"
13616then :
13617  eval $cacheid=yes
13618else $as_nop
13619  eval $cacheid=no
13620fi
13621rm -f core conftest.err conftest.$ac_objext conftest.beam \
13622    conftest$ac_exeext conftest.$ac_ext
13623fi
13624
13625
13626		CFLAGS="$xorg_testset_save_CFLAGS"
13627
13628		eval supported=\$$cacheid
13629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13630printf "%s\n" "$supported" >&6; }
13631		if test "$supported" = "yes" ; then
13632			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13633			found="yes"
13634		fi
13635	fi
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651xorg_testset_save_CFLAGS="$CFLAGS"
13652
13653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13656printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13657if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13658then :
13659  printf %s "(cached) " >&6
13660else $as_nop
13661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662/* end confdefs.h.  */
13663int i;
13664_ACEOF
13665if ac_fn_c_try_compile "$LINENO"
13666then :
13667  xorg_cv_cc_flag_unknown_warning_option=yes
13668else $as_nop
13669  xorg_cv_cc_flag_unknown_warning_option=no
13670fi
13671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13672fi
13673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13674printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13676	CFLAGS="$xorg_testset_save_CFLAGS"
13677fi
13678
13679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13682	fi
13683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13684	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13685printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13686if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13687then :
13688  printf %s "(cached) " >&6
13689else $as_nop
13690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691/* end confdefs.h.  */
13692int i;
13693_ACEOF
13694if ac_fn_c_try_compile "$LINENO"
13695then :
13696  xorg_cv_cc_flag_unused_command_line_argument=yes
13697else $as_nop
13698  xorg_cv_cc_flag_unused_command_line_argument=no
13699fi
13700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13701fi
13702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13705	CFLAGS="$xorg_testset_save_CFLAGS"
13706fi
13707
13708found="no"
13709
13710	if test $found = "no" ; then
13711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13713		fi
13714
13715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13717		fi
13718
13719		CFLAGS="$CFLAGS -Wmissing-prototypes"
13720
13721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13722printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13723		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13724		if eval test \${$cacheid+y}
13725then :
13726  printf %s "(cached) " >&6
13727else $as_nop
13728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729/* end confdefs.h.  */
13730int i;
13731int
13732main (void)
13733{
13734
13735  ;
13736  return 0;
13737}
13738_ACEOF
13739if ac_fn_c_try_link "$LINENO"
13740then :
13741  eval $cacheid=yes
13742else $as_nop
13743  eval $cacheid=no
13744fi
13745rm -f core conftest.err conftest.$ac_objext conftest.beam \
13746    conftest$ac_exeext conftest.$ac_ext
13747fi
13748
13749
13750		CFLAGS="$xorg_testset_save_CFLAGS"
13751
13752		eval supported=\$$cacheid
13753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13754printf "%s\n" "$supported" >&6; }
13755		if test "$supported" = "yes" ; then
13756			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13757			found="yes"
13758		fi
13759	fi
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775xorg_testset_save_CFLAGS="$CFLAGS"
13776
13777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13780printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13781if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13782then :
13783  printf %s "(cached) " >&6
13784else $as_nop
13785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786/* end confdefs.h.  */
13787int i;
13788_ACEOF
13789if ac_fn_c_try_compile "$LINENO"
13790then :
13791  xorg_cv_cc_flag_unknown_warning_option=yes
13792else $as_nop
13793  xorg_cv_cc_flag_unknown_warning_option=no
13794fi
13795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13796fi
13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13798printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13800	CFLAGS="$xorg_testset_save_CFLAGS"
13801fi
13802
13803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13806	fi
13807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13809printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13810if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13811then :
13812  printf %s "(cached) " >&6
13813else $as_nop
13814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815/* end confdefs.h.  */
13816int i;
13817_ACEOF
13818if ac_fn_c_try_compile "$LINENO"
13819then :
13820  xorg_cv_cc_flag_unused_command_line_argument=yes
13821else $as_nop
13822  xorg_cv_cc_flag_unused_command_line_argument=no
13823fi
13824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13825fi
13826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13827printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13829	CFLAGS="$xorg_testset_save_CFLAGS"
13830fi
13831
13832found="no"
13833
13834	if test $found = "no" ; then
13835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13837		fi
13838
13839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13841		fi
13842
13843		CFLAGS="$CFLAGS -Wnested-externs"
13844
13845		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13846printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13847		cacheid=xorg_cv_cc_flag__Wnested_externs
13848		if eval test \${$cacheid+y}
13849then :
13850  printf %s "(cached) " >&6
13851else $as_nop
13852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853/* end confdefs.h.  */
13854int i;
13855int
13856main (void)
13857{
13858
13859  ;
13860  return 0;
13861}
13862_ACEOF
13863if ac_fn_c_try_link "$LINENO"
13864then :
13865  eval $cacheid=yes
13866else $as_nop
13867  eval $cacheid=no
13868fi
13869rm -f core conftest.err conftest.$ac_objext conftest.beam \
13870    conftest$ac_exeext conftest.$ac_ext
13871fi
13872
13873
13874		CFLAGS="$xorg_testset_save_CFLAGS"
13875
13876		eval supported=\$$cacheid
13877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13878printf "%s\n" "$supported" >&6; }
13879		if test "$supported" = "yes" ; then
13880			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13881			found="yes"
13882		fi
13883	fi
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899xorg_testset_save_CFLAGS="$CFLAGS"
13900
13901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13905if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13906then :
13907  printf %s "(cached) " >&6
13908else $as_nop
13909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h.  */
13911int i;
13912_ACEOF
13913if ac_fn_c_try_compile "$LINENO"
13914then :
13915  xorg_cv_cc_flag_unknown_warning_option=yes
13916else $as_nop
13917  xorg_cv_cc_flag_unknown_warning_option=no
13918fi
13919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13920fi
13921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13922printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13924	CFLAGS="$xorg_testset_save_CFLAGS"
13925fi
13926
13927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13930	fi
13931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13932	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13933printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13934if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13935then :
13936  printf %s "(cached) " >&6
13937else $as_nop
13938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h.  */
13940int i;
13941_ACEOF
13942if ac_fn_c_try_compile "$LINENO"
13943then :
13944  xorg_cv_cc_flag_unused_command_line_argument=yes
13945else $as_nop
13946  xorg_cv_cc_flag_unused_command_line_argument=no
13947fi
13948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13949fi
13950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13953	CFLAGS="$xorg_testset_save_CFLAGS"
13954fi
13955
13956found="no"
13957
13958	if test $found = "no" ; then
13959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13961		fi
13962
13963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13965		fi
13966
13967		CFLAGS="$CFLAGS -Wbad-function-cast"
13968
13969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13970printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13971		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13972		if eval test \${$cacheid+y}
13973then :
13974  printf %s "(cached) " >&6
13975else $as_nop
13976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977/* end confdefs.h.  */
13978int i;
13979int
13980main (void)
13981{
13982
13983  ;
13984  return 0;
13985}
13986_ACEOF
13987if ac_fn_c_try_link "$LINENO"
13988then :
13989  eval $cacheid=yes
13990else $as_nop
13991  eval $cacheid=no
13992fi
13993rm -f core conftest.err conftest.$ac_objext conftest.beam \
13994    conftest$ac_exeext conftest.$ac_ext
13995fi
13996
13997
13998		CFLAGS="$xorg_testset_save_CFLAGS"
13999
14000		eval supported=\$$cacheid
14001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14002printf "%s\n" "$supported" >&6; }
14003		if test "$supported" = "yes" ; then
14004			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14005			found="yes"
14006		fi
14007	fi
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023xorg_testset_save_CFLAGS="$CFLAGS"
14024
14025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14028printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14029if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14030then :
14031  printf %s "(cached) " >&6
14032else $as_nop
14033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034/* end confdefs.h.  */
14035int i;
14036_ACEOF
14037if ac_fn_c_try_compile "$LINENO"
14038then :
14039  xorg_cv_cc_flag_unknown_warning_option=yes
14040else $as_nop
14041  xorg_cv_cc_flag_unknown_warning_option=no
14042fi
14043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14044fi
14045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14046printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14047	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14048	CFLAGS="$xorg_testset_save_CFLAGS"
14049fi
14050
14051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14052	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14053		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14054	fi
14055	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14057printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14058if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14059then :
14060  printf %s "(cached) " >&6
14061else $as_nop
14062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063/* end confdefs.h.  */
14064int i;
14065_ACEOF
14066if ac_fn_c_try_compile "$LINENO"
14067then :
14068  xorg_cv_cc_flag_unused_command_line_argument=yes
14069else $as_nop
14070  xorg_cv_cc_flag_unused_command_line_argument=no
14071fi
14072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14073fi
14074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14075printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14077	CFLAGS="$xorg_testset_save_CFLAGS"
14078fi
14079
14080found="no"
14081
14082	if test $found = "no" ; then
14083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14085		fi
14086
14087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14089		fi
14090
14091		CFLAGS="$CFLAGS -Wold-style-definition"
14092
14093		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14094printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14095		cacheid=xorg_cv_cc_flag__Wold_style_definition
14096		if eval test \${$cacheid+y}
14097then :
14098  printf %s "(cached) " >&6
14099else $as_nop
14100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h.  */
14102int i;
14103int
14104main (void)
14105{
14106
14107  ;
14108  return 0;
14109}
14110_ACEOF
14111if ac_fn_c_try_link "$LINENO"
14112then :
14113  eval $cacheid=yes
14114else $as_nop
14115  eval $cacheid=no
14116fi
14117rm -f core conftest.err conftest.$ac_objext conftest.beam \
14118    conftest$ac_exeext conftest.$ac_ext
14119fi
14120
14121
14122		CFLAGS="$xorg_testset_save_CFLAGS"
14123
14124		eval supported=\$$cacheid
14125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14126printf "%s\n" "$supported" >&6; }
14127		if test "$supported" = "yes" ; then
14128			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14129			found="yes"
14130		fi
14131	fi
14132
14133	if test $found = "no" ; then
14134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14136		fi
14137
14138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14140		fi
14141
14142		CFLAGS="$CFLAGS -fd"
14143
14144		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14145printf %s "checking if $CC supports -fd... " >&6; }
14146		cacheid=xorg_cv_cc_flag__fd
14147		if eval test \${$cacheid+y}
14148then :
14149  printf %s "(cached) " >&6
14150else $as_nop
14151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152/* end confdefs.h.  */
14153int i;
14154int
14155main (void)
14156{
14157
14158  ;
14159  return 0;
14160}
14161_ACEOF
14162if ac_fn_c_try_link "$LINENO"
14163then :
14164  eval $cacheid=yes
14165else $as_nop
14166  eval $cacheid=no
14167fi
14168rm -f core conftest.err conftest.$ac_objext conftest.beam \
14169    conftest$ac_exeext conftest.$ac_ext
14170fi
14171
14172
14173		CFLAGS="$xorg_testset_save_CFLAGS"
14174
14175		eval supported=\$$cacheid
14176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14177printf "%s\n" "$supported" >&6; }
14178		if test "$supported" = "yes" ; then
14179			BASE_CFLAGS="$BASE_CFLAGS -fd"
14180			found="yes"
14181		fi
14182	fi
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198xorg_testset_save_CFLAGS="$CFLAGS"
14199
14200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14203printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14204if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14205then :
14206  printf %s "(cached) " >&6
14207else $as_nop
14208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209/* end confdefs.h.  */
14210int i;
14211_ACEOF
14212if ac_fn_c_try_compile "$LINENO"
14213then :
14214  xorg_cv_cc_flag_unknown_warning_option=yes
14215else $as_nop
14216  xorg_cv_cc_flag_unknown_warning_option=no
14217fi
14218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14219fi
14220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14221printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14223	CFLAGS="$xorg_testset_save_CFLAGS"
14224fi
14225
14226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14229	fi
14230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14232printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14233if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14234then :
14235  printf %s "(cached) " >&6
14236else $as_nop
14237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238/* end confdefs.h.  */
14239int i;
14240_ACEOF
14241if ac_fn_c_try_compile "$LINENO"
14242then :
14243  xorg_cv_cc_flag_unused_command_line_argument=yes
14244else $as_nop
14245  xorg_cv_cc_flag_unused_command_line_argument=no
14246fi
14247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14248fi
14249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14250printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14252	CFLAGS="$xorg_testset_save_CFLAGS"
14253fi
14254
14255found="no"
14256
14257	if test $found = "no" ; then
14258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14260		fi
14261
14262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14264		fi
14265
14266		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14267
14268		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14269printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14270		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14271		if eval test \${$cacheid+y}
14272then :
14273  printf %s "(cached) " >&6
14274else $as_nop
14275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276/* end confdefs.h.  */
14277int i;
14278int
14279main (void)
14280{
14281
14282  ;
14283  return 0;
14284}
14285_ACEOF
14286if ac_fn_c_try_link "$LINENO"
14287then :
14288  eval $cacheid=yes
14289else $as_nop
14290  eval $cacheid=no
14291fi
14292rm -f core conftest.err conftest.$ac_objext conftest.beam \
14293    conftest$ac_exeext conftest.$ac_ext
14294fi
14295
14296
14297		CFLAGS="$xorg_testset_save_CFLAGS"
14298
14299		eval supported=\$$cacheid
14300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14301printf "%s\n" "$supported" >&6; }
14302		if test "$supported" = "yes" ; then
14303			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14304			found="yes"
14305		fi
14306	fi
14307
14308
14309
14310
14311
14312# This chunk adds additional warnings that could catch undesired effects.
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326xorg_testset_save_CFLAGS="$CFLAGS"
14327
14328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14332if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14333then :
14334  printf %s "(cached) " >&6
14335else $as_nop
14336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337/* end confdefs.h.  */
14338int i;
14339_ACEOF
14340if ac_fn_c_try_compile "$LINENO"
14341then :
14342  xorg_cv_cc_flag_unknown_warning_option=yes
14343else $as_nop
14344  xorg_cv_cc_flag_unknown_warning_option=no
14345fi
14346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14347fi
14348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14351	CFLAGS="$xorg_testset_save_CFLAGS"
14352fi
14353
14354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14357	fi
14358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14361if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14362then :
14363  printf %s "(cached) " >&6
14364else $as_nop
14365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366/* end confdefs.h.  */
14367int i;
14368_ACEOF
14369if ac_fn_c_try_compile "$LINENO"
14370then :
14371  xorg_cv_cc_flag_unused_command_line_argument=yes
14372else $as_nop
14373  xorg_cv_cc_flag_unused_command_line_argument=no
14374fi
14375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14376fi
14377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14380	CFLAGS="$xorg_testset_save_CFLAGS"
14381fi
14382
14383found="no"
14384
14385	if test $found = "no" ; then
14386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14388		fi
14389
14390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14392		fi
14393
14394		CFLAGS="$CFLAGS -Wunused"
14395
14396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14397printf %s "checking if $CC supports -Wunused... " >&6; }
14398		cacheid=xorg_cv_cc_flag__Wunused
14399		if eval test \${$cacheid+y}
14400then :
14401  printf %s "(cached) " >&6
14402else $as_nop
14403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404/* end confdefs.h.  */
14405int i;
14406int
14407main (void)
14408{
14409
14410  ;
14411  return 0;
14412}
14413_ACEOF
14414if ac_fn_c_try_link "$LINENO"
14415then :
14416  eval $cacheid=yes
14417else $as_nop
14418  eval $cacheid=no
14419fi
14420rm -f core conftest.err conftest.$ac_objext conftest.beam \
14421    conftest$ac_exeext conftest.$ac_ext
14422fi
14423
14424
14425		CFLAGS="$xorg_testset_save_CFLAGS"
14426
14427		eval supported=\$$cacheid
14428		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14429printf "%s\n" "$supported" >&6; }
14430		if test "$supported" = "yes" ; then
14431			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14432			found="yes"
14433		fi
14434	fi
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450xorg_testset_save_CFLAGS="$CFLAGS"
14451
14452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14456if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14457then :
14458  printf %s "(cached) " >&6
14459else $as_nop
14460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461/* end confdefs.h.  */
14462int i;
14463_ACEOF
14464if ac_fn_c_try_compile "$LINENO"
14465then :
14466  xorg_cv_cc_flag_unknown_warning_option=yes
14467else $as_nop
14468  xorg_cv_cc_flag_unknown_warning_option=no
14469fi
14470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14471fi
14472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14475	CFLAGS="$xorg_testset_save_CFLAGS"
14476fi
14477
14478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14481	fi
14482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14485if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14486then :
14487  printf %s "(cached) " >&6
14488else $as_nop
14489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490/* end confdefs.h.  */
14491int i;
14492_ACEOF
14493if ac_fn_c_try_compile "$LINENO"
14494then :
14495  xorg_cv_cc_flag_unused_command_line_argument=yes
14496else $as_nop
14497  xorg_cv_cc_flag_unused_command_line_argument=no
14498fi
14499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14500fi
14501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14503	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14504	CFLAGS="$xorg_testset_save_CFLAGS"
14505fi
14506
14507found="no"
14508
14509	if test $found = "no" ; then
14510		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14511			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512		fi
14513
14514		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14515			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516		fi
14517
14518		CFLAGS="$CFLAGS -Wuninitialized"
14519
14520		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14521printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14522		cacheid=xorg_cv_cc_flag__Wuninitialized
14523		if eval test \${$cacheid+y}
14524then :
14525  printf %s "(cached) " >&6
14526else $as_nop
14527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528/* end confdefs.h.  */
14529int i;
14530int
14531main (void)
14532{
14533
14534  ;
14535  return 0;
14536}
14537_ACEOF
14538if ac_fn_c_try_link "$LINENO"
14539then :
14540  eval $cacheid=yes
14541else $as_nop
14542  eval $cacheid=no
14543fi
14544rm -f core conftest.err conftest.$ac_objext conftest.beam \
14545    conftest$ac_exeext conftest.$ac_ext
14546fi
14547
14548
14549		CFLAGS="$xorg_testset_save_CFLAGS"
14550
14551		eval supported=\$$cacheid
14552		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14553printf "%s\n" "$supported" >&6; }
14554		if test "$supported" = "yes" ; then
14555			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14556			found="yes"
14557		fi
14558	fi
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574xorg_testset_save_CFLAGS="$CFLAGS"
14575
14576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14577	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14580if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14581then :
14582  printf %s "(cached) " >&6
14583else $as_nop
14584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585/* end confdefs.h.  */
14586int i;
14587_ACEOF
14588if ac_fn_c_try_compile "$LINENO"
14589then :
14590  xorg_cv_cc_flag_unknown_warning_option=yes
14591else $as_nop
14592  xorg_cv_cc_flag_unknown_warning_option=no
14593fi
14594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14595fi
14596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14598	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14599	CFLAGS="$xorg_testset_save_CFLAGS"
14600fi
14601
14602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14603	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14604		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14605	fi
14606	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14609if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14610then :
14611  printf %s "(cached) " >&6
14612else $as_nop
14613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614/* end confdefs.h.  */
14615int i;
14616_ACEOF
14617if ac_fn_c_try_compile "$LINENO"
14618then :
14619  xorg_cv_cc_flag_unused_command_line_argument=yes
14620else $as_nop
14621  xorg_cv_cc_flag_unused_command_line_argument=no
14622fi
14623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14624fi
14625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14628	CFLAGS="$xorg_testset_save_CFLAGS"
14629fi
14630
14631found="no"
14632
14633	if test $found = "no" ; then
14634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14636		fi
14637
14638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14640		fi
14641
14642		CFLAGS="$CFLAGS -Wshadow"
14643
14644		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14645printf %s "checking if $CC supports -Wshadow... " >&6; }
14646		cacheid=xorg_cv_cc_flag__Wshadow
14647		if eval test \${$cacheid+y}
14648then :
14649  printf %s "(cached) " >&6
14650else $as_nop
14651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14652/* end confdefs.h.  */
14653int i;
14654int
14655main (void)
14656{
14657
14658  ;
14659  return 0;
14660}
14661_ACEOF
14662if ac_fn_c_try_link "$LINENO"
14663then :
14664  eval $cacheid=yes
14665else $as_nop
14666  eval $cacheid=no
14667fi
14668rm -f core conftest.err conftest.$ac_objext conftest.beam \
14669    conftest$ac_exeext conftest.$ac_ext
14670fi
14671
14672
14673		CFLAGS="$xorg_testset_save_CFLAGS"
14674
14675		eval supported=\$$cacheid
14676		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14677printf "%s\n" "$supported" >&6; }
14678		if test "$supported" = "yes" ; then
14679			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14680			found="yes"
14681		fi
14682	fi
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698xorg_testset_save_CFLAGS="$CFLAGS"
14699
14700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14701	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14703printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14704if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14705then :
14706  printf %s "(cached) " >&6
14707else $as_nop
14708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709/* end confdefs.h.  */
14710int i;
14711_ACEOF
14712if ac_fn_c_try_compile "$LINENO"
14713then :
14714  xorg_cv_cc_flag_unknown_warning_option=yes
14715else $as_nop
14716  xorg_cv_cc_flag_unknown_warning_option=no
14717fi
14718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14719fi
14720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14722	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14723	CFLAGS="$xorg_testset_save_CFLAGS"
14724fi
14725
14726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14727	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14728		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14729	fi
14730	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14733if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14734then :
14735  printf %s "(cached) " >&6
14736else $as_nop
14737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738/* end confdefs.h.  */
14739int i;
14740_ACEOF
14741if ac_fn_c_try_compile "$LINENO"
14742then :
14743  xorg_cv_cc_flag_unused_command_line_argument=yes
14744else $as_nop
14745  xorg_cv_cc_flag_unused_command_line_argument=no
14746fi
14747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14748fi
14749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14750printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14751	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14752	CFLAGS="$xorg_testset_save_CFLAGS"
14753fi
14754
14755found="no"
14756
14757	if test $found = "no" ; then
14758		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14760		fi
14761
14762		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14764		fi
14765
14766		CFLAGS="$CFLAGS -Wmissing-noreturn"
14767
14768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14769printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14770		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14771		if eval test \${$cacheid+y}
14772then :
14773  printf %s "(cached) " >&6
14774else $as_nop
14775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776/* end confdefs.h.  */
14777int i;
14778int
14779main (void)
14780{
14781
14782  ;
14783  return 0;
14784}
14785_ACEOF
14786if ac_fn_c_try_link "$LINENO"
14787then :
14788  eval $cacheid=yes
14789else $as_nop
14790  eval $cacheid=no
14791fi
14792rm -f core conftest.err conftest.$ac_objext conftest.beam \
14793    conftest$ac_exeext conftest.$ac_ext
14794fi
14795
14796
14797		CFLAGS="$xorg_testset_save_CFLAGS"
14798
14799		eval supported=\$$cacheid
14800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14801printf "%s\n" "$supported" >&6; }
14802		if test "$supported" = "yes" ; then
14803			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14804			found="yes"
14805		fi
14806	fi
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822xorg_testset_save_CFLAGS="$CFLAGS"
14823
14824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14828if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14829then :
14830  printf %s "(cached) " >&6
14831else $as_nop
14832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833/* end confdefs.h.  */
14834int i;
14835_ACEOF
14836if ac_fn_c_try_compile "$LINENO"
14837then :
14838  xorg_cv_cc_flag_unknown_warning_option=yes
14839else $as_nop
14840  xorg_cv_cc_flag_unknown_warning_option=no
14841fi
14842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14843fi
14844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14846	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14847	CFLAGS="$xorg_testset_save_CFLAGS"
14848fi
14849
14850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14851	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14852		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14853	fi
14854	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14857if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14858then :
14859  printf %s "(cached) " >&6
14860else $as_nop
14861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862/* end confdefs.h.  */
14863int i;
14864_ACEOF
14865if ac_fn_c_try_compile "$LINENO"
14866then :
14867  xorg_cv_cc_flag_unused_command_line_argument=yes
14868else $as_nop
14869  xorg_cv_cc_flag_unused_command_line_argument=no
14870fi
14871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14872fi
14873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14874printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14875	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14876	CFLAGS="$xorg_testset_save_CFLAGS"
14877fi
14878
14879found="no"
14880
14881	if test $found = "no" ; then
14882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14884		fi
14885
14886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14888		fi
14889
14890		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14891
14892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14893printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14894		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14895		if eval test \${$cacheid+y}
14896then :
14897  printf %s "(cached) " >&6
14898else $as_nop
14899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900/* end confdefs.h.  */
14901int i;
14902int
14903main (void)
14904{
14905
14906  ;
14907  return 0;
14908}
14909_ACEOF
14910if ac_fn_c_try_link "$LINENO"
14911then :
14912  eval $cacheid=yes
14913else $as_nop
14914  eval $cacheid=no
14915fi
14916rm -f core conftest.err conftest.$ac_objext conftest.beam \
14917    conftest$ac_exeext conftest.$ac_ext
14918fi
14919
14920
14921		CFLAGS="$xorg_testset_save_CFLAGS"
14922
14923		eval supported=\$$cacheid
14924		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14925printf "%s\n" "$supported" >&6; }
14926		if test "$supported" = "yes" ; then
14927			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14928			found="yes"
14929		fi
14930	fi
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946xorg_testset_save_CFLAGS="$CFLAGS"
14947
14948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14951printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14952if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14953then :
14954  printf %s "(cached) " >&6
14955else $as_nop
14956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957/* end confdefs.h.  */
14958int i;
14959_ACEOF
14960if ac_fn_c_try_compile "$LINENO"
14961then :
14962  xorg_cv_cc_flag_unknown_warning_option=yes
14963else $as_nop
14964  xorg_cv_cc_flag_unknown_warning_option=no
14965fi
14966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14967fi
14968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14971	CFLAGS="$xorg_testset_save_CFLAGS"
14972fi
14973
14974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14977	fi
14978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14981if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14982then :
14983  printf %s "(cached) " >&6
14984else $as_nop
14985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h.  */
14987int i;
14988_ACEOF
14989if ac_fn_c_try_compile "$LINENO"
14990then :
14991  xorg_cv_cc_flag_unused_command_line_argument=yes
14992else $as_nop
14993  xorg_cv_cc_flag_unused_command_line_argument=no
14994fi
14995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14996fi
14997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14999	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15000	CFLAGS="$xorg_testset_save_CFLAGS"
15001fi
15002
15003found="no"
15004
15005	if test $found = "no" ; then
15006		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15007			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15008		fi
15009
15010		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15011			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15012		fi
15013
15014		CFLAGS="$CFLAGS -Wredundant-decls"
15015
15016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15017printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15018		cacheid=xorg_cv_cc_flag__Wredundant_decls
15019		if eval test \${$cacheid+y}
15020then :
15021  printf %s "(cached) " >&6
15022else $as_nop
15023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024/* end confdefs.h.  */
15025int i;
15026int
15027main (void)
15028{
15029
15030  ;
15031  return 0;
15032}
15033_ACEOF
15034if ac_fn_c_try_link "$LINENO"
15035then :
15036  eval $cacheid=yes
15037else $as_nop
15038  eval $cacheid=no
15039fi
15040rm -f core conftest.err conftest.$ac_objext conftest.beam \
15041    conftest$ac_exeext conftest.$ac_ext
15042fi
15043
15044
15045		CFLAGS="$xorg_testset_save_CFLAGS"
15046
15047		eval supported=\$$cacheid
15048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15049printf "%s\n" "$supported" >&6; }
15050		if test "$supported" = "yes" ; then
15051			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15052			found="yes"
15053		fi
15054	fi
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070xorg_testset_save_CFLAGS="$CFLAGS"
15071
15072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15073	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15075printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15076if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15077then :
15078  printf %s "(cached) " >&6
15079else $as_nop
15080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081/* end confdefs.h.  */
15082int i;
15083_ACEOF
15084if ac_fn_c_try_compile "$LINENO"
15085then :
15086  xorg_cv_cc_flag_unknown_warning_option=yes
15087else $as_nop
15088  xorg_cv_cc_flag_unknown_warning_option=no
15089fi
15090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15091fi
15092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15093printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15094	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15095	CFLAGS="$xorg_testset_save_CFLAGS"
15096fi
15097
15098if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15099	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15100		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15101	fi
15102	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15104printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15105if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15106then :
15107  printf %s "(cached) " >&6
15108else $as_nop
15109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110/* end confdefs.h.  */
15111int i;
15112_ACEOF
15113if ac_fn_c_try_compile "$LINENO"
15114then :
15115  xorg_cv_cc_flag_unused_command_line_argument=yes
15116else $as_nop
15117  xorg_cv_cc_flag_unused_command_line_argument=no
15118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15120fi
15121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15124	CFLAGS="$xorg_testset_save_CFLAGS"
15125fi
15126
15127found="no"
15128
15129	if test $found = "no" ; then
15130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15132		fi
15133
15134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15136		fi
15137
15138		CFLAGS="$CFLAGS -Wlogical-op"
15139
15140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15141printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15142		cacheid=xorg_cv_cc_flag__Wlogical_op
15143		if eval test \${$cacheid+y}
15144then :
15145  printf %s "(cached) " >&6
15146else $as_nop
15147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15148/* end confdefs.h.  */
15149int i;
15150int
15151main (void)
15152{
15153
15154  ;
15155  return 0;
15156}
15157_ACEOF
15158if ac_fn_c_try_link "$LINENO"
15159then :
15160  eval $cacheid=yes
15161else $as_nop
15162  eval $cacheid=no
15163fi
15164rm -f core conftest.err conftest.$ac_objext conftest.beam \
15165    conftest$ac_exeext conftest.$ac_ext
15166fi
15167
15168
15169		CFLAGS="$xorg_testset_save_CFLAGS"
15170
15171		eval supported=\$$cacheid
15172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15173printf "%s\n" "$supported" >&6; }
15174		if test "$supported" = "yes" ; then
15175			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15176			found="yes"
15177		fi
15178	fi
15179
15180
15181
15182# These are currently disabled because they are noisy.  They will be enabled
15183# in the future once the codebase is sufficiently modernized to silence
15184# them.  For now, I don't want them to drown out the other warnings.
15185# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15186# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15187# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15188
15189# Turn some warnings into errors, so we don't accidently get successful builds
15190# when there are problems that should be fixed.
15191
15192if test "x$SELECTIVE_WERROR" = "xyes" ; then
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206xorg_testset_save_CFLAGS="$CFLAGS"
15207
15208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15211printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15212if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15213then :
15214  printf %s "(cached) " >&6
15215else $as_nop
15216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217/* end confdefs.h.  */
15218int i;
15219_ACEOF
15220if ac_fn_c_try_compile "$LINENO"
15221then :
15222  xorg_cv_cc_flag_unknown_warning_option=yes
15223else $as_nop
15224  xorg_cv_cc_flag_unknown_warning_option=no
15225fi
15226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15227fi
15228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15231	CFLAGS="$xorg_testset_save_CFLAGS"
15232fi
15233
15234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15237	fi
15238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15242then :
15243  printf %s "(cached) " >&6
15244else $as_nop
15245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246/* end confdefs.h.  */
15247int i;
15248_ACEOF
15249if ac_fn_c_try_compile "$LINENO"
15250then :
15251  xorg_cv_cc_flag_unused_command_line_argument=yes
15252else $as_nop
15253  xorg_cv_cc_flag_unused_command_line_argument=no
15254fi
15255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15256fi
15257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15260	CFLAGS="$xorg_testset_save_CFLAGS"
15261fi
15262
15263found="no"
15264
15265	if test $found = "no" ; then
15266		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268		fi
15269
15270		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15272		fi
15273
15274		CFLAGS="$CFLAGS -Werror=implicit"
15275
15276		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15277printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15278		cacheid=xorg_cv_cc_flag__Werror_implicit
15279		if eval test \${$cacheid+y}
15280then :
15281  printf %s "(cached) " >&6
15282else $as_nop
15283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284/* end confdefs.h.  */
15285int i;
15286int
15287main (void)
15288{
15289
15290  ;
15291  return 0;
15292}
15293_ACEOF
15294if ac_fn_c_try_link "$LINENO"
15295then :
15296  eval $cacheid=yes
15297else $as_nop
15298  eval $cacheid=no
15299fi
15300rm -f core conftest.err conftest.$ac_objext conftest.beam \
15301    conftest$ac_exeext conftest.$ac_ext
15302fi
15303
15304
15305		CFLAGS="$xorg_testset_save_CFLAGS"
15306
15307		eval supported=\$$cacheid
15308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15309printf "%s\n" "$supported" >&6; }
15310		if test "$supported" = "yes" ; then
15311			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15312			found="yes"
15313		fi
15314	fi
15315
15316	if test $found = "no" ; then
15317		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15319		fi
15320
15321		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15323		fi
15324
15325		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15326
15327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15328printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15329		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15330		if eval test \${$cacheid+y}
15331then :
15332  printf %s "(cached) " >&6
15333else $as_nop
15334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335/* end confdefs.h.  */
15336int i;
15337int
15338main (void)
15339{
15340
15341  ;
15342  return 0;
15343}
15344_ACEOF
15345if ac_fn_c_try_link "$LINENO"
15346then :
15347  eval $cacheid=yes
15348else $as_nop
15349  eval $cacheid=no
15350fi
15351rm -f core conftest.err conftest.$ac_objext conftest.beam \
15352    conftest$ac_exeext conftest.$ac_ext
15353fi
15354
15355
15356		CFLAGS="$xorg_testset_save_CFLAGS"
15357
15358		eval supported=\$$cacheid
15359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15360printf "%s\n" "$supported" >&6; }
15361		if test "$supported" = "yes" ; then
15362			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15363			found="yes"
15364		fi
15365	fi
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381xorg_testset_save_CFLAGS="$CFLAGS"
15382
15383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15387if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15388then :
15389  printf %s "(cached) " >&6
15390else $as_nop
15391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392/* end confdefs.h.  */
15393int i;
15394_ACEOF
15395if ac_fn_c_try_compile "$LINENO"
15396then :
15397  xorg_cv_cc_flag_unknown_warning_option=yes
15398else $as_nop
15399  xorg_cv_cc_flag_unknown_warning_option=no
15400fi
15401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15402fi
15403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15406	CFLAGS="$xorg_testset_save_CFLAGS"
15407fi
15408
15409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15412	fi
15413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15416if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15417then :
15418  printf %s "(cached) " >&6
15419else $as_nop
15420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421/* end confdefs.h.  */
15422int i;
15423_ACEOF
15424if ac_fn_c_try_compile "$LINENO"
15425then :
15426  xorg_cv_cc_flag_unused_command_line_argument=yes
15427else $as_nop
15428  xorg_cv_cc_flag_unused_command_line_argument=no
15429fi
15430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15431fi
15432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15435	CFLAGS="$xorg_testset_save_CFLAGS"
15436fi
15437
15438found="no"
15439
15440	if test $found = "no" ; then
15441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15443		fi
15444
15445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15447		fi
15448
15449		CFLAGS="$CFLAGS -Werror=nonnull"
15450
15451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15452printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15453		cacheid=xorg_cv_cc_flag__Werror_nonnull
15454		if eval test \${$cacheid+y}
15455then :
15456  printf %s "(cached) " >&6
15457else $as_nop
15458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459/* end confdefs.h.  */
15460int i;
15461int
15462main (void)
15463{
15464
15465  ;
15466  return 0;
15467}
15468_ACEOF
15469if ac_fn_c_try_link "$LINENO"
15470then :
15471  eval $cacheid=yes
15472else $as_nop
15473  eval $cacheid=no
15474fi
15475rm -f core conftest.err conftest.$ac_objext conftest.beam \
15476    conftest$ac_exeext conftest.$ac_ext
15477fi
15478
15479
15480		CFLAGS="$xorg_testset_save_CFLAGS"
15481
15482		eval supported=\$$cacheid
15483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15484printf "%s\n" "$supported" >&6; }
15485		if test "$supported" = "yes" ; then
15486			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15487			found="yes"
15488		fi
15489	fi
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505xorg_testset_save_CFLAGS="$CFLAGS"
15506
15507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15511if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15512then :
15513  printf %s "(cached) " >&6
15514else $as_nop
15515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516/* end confdefs.h.  */
15517int i;
15518_ACEOF
15519if ac_fn_c_try_compile "$LINENO"
15520then :
15521  xorg_cv_cc_flag_unknown_warning_option=yes
15522else $as_nop
15523  xorg_cv_cc_flag_unknown_warning_option=no
15524fi
15525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15526fi
15527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15528printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15530	CFLAGS="$xorg_testset_save_CFLAGS"
15531fi
15532
15533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15536	fi
15537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15538	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15539printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15540if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15541then :
15542  printf %s "(cached) " >&6
15543else $as_nop
15544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15545/* end confdefs.h.  */
15546int i;
15547_ACEOF
15548if ac_fn_c_try_compile "$LINENO"
15549then :
15550  xorg_cv_cc_flag_unused_command_line_argument=yes
15551else $as_nop
15552  xorg_cv_cc_flag_unused_command_line_argument=no
15553fi
15554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15555fi
15556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15557printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15559	CFLAGS="$xorg_testset_save_CFLAGS"
15560fi
15561
15562found="no"
15563
15564	if test $found = "no" ; then
15565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15567		fi
15568
15569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15571		fi
15572
15573		CFLAGS="$CFLAGS -Werror=init-self"
15574
15575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15576printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15577		cacheid=xorg_cv_cc_flag__Werror_init_self
15578		if eval test \${$cacheid+y}
15579then :
15580  printf %s "(cached) " >&6
15581else $as_nop
15582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15583/* end confdefs.h.  */
15584int i;
15585int
15586main (void)
15587{
15588
15589  ;
15590  return 0;
15591}
15592_ACEOF
15593if ac_fn_c_try_link "$LINENO"
15594then :
15595  eval $cacheid=yes
15596else $as_nop
15597  eval $cacheid=no
15598fi
15599rm -f core conftest.err conftest.$ac_objext conftest.beam \
15600    conftest$ac_exeext conftest.$ac_ext
15601fi
15602
15603
15604		CFLAGS="$xorg_testset_save_CFLAGS"
15605
15606		eval supported=\$$cacheid
15607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15608printf "%s\n" "$supported" >&6; }
15609		if test "$supported" = "yes" ; then
15610			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15611			found="yes"
15612		fi
15613	fi
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629xorg_testset_save_CFLAGS="$CFLAGS"
15630
15631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15635if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15636then :
15637  printf %s "(cached) " >&6
15638else $as_nop
15639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15640/* end confdefs.h.  */
15641int i;
15642_ACEOF
15643if ac_fn_c_try_compile "$LINENO"
15644then :
15645  xorg_cv_cc_flag_unknown_warning_option=yes
15646else $as_nop
15647  xorg_cv_cc_flag_unknown_warning_option=no
15648fi
15649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15650fi
15651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15652printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15654	CFLAGS="$xorg_testset_save_CFLAGS"
15655fi
15656
15657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15660	fi
15661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15663printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15664if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15665then :
15666  printf %s "(cached) " >&6
15667else $as_nop
15668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669/* end confdefs.h.  */
15670int i;
15671_ACEOF
15672if ac_fn_c_try_compile "$LINENO"
15673then :
15674  xorg_cv_cc_flag_unused_command_line_argument=yes
15675else $as_nop
15676  xorg_cv_cc_flag_unused_command_line_argument=no
15677fi
15678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15679fi
15680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15683	CFLAGS="$xorg_testset_save_CFLAGS"
15684fi
15685
15686found="no"
15687
15688	if test $found = "no" ; then
15689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15691		fi
15692
15693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15695		fi
15696
15697		CFLAGS="$CFLAGS -Werror=main"
15698
15699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15700printf %s "checking if $CC supports -Werror=main... " >&6; }
15701		cacheid=xorg_cv_cc_flag__Werror_main
15702		if eval test \${$cacheid+y}
15703then :
15704  printf %s "(cached) " >&6
15705else $as_nop
15706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707/* end confdefs.h.  */
15708int i;
15709int
15710main (void)
15711{
15712
15713  ;
15714  return 0;
15715}
15716_ACEOF
15717if ac_fn_c_try_link "$LINENO"
15718then :
15719  eval $cacheid=yes
15720else $as_nop
15721  eval $cacheid=no
15722fi
15723rm -f core conftest.err conftest.$ac_objext conftest.beam \
15724    conftest$ac_exeext conftest.$ac_ext
15725fi
15726
15727
15728		CFLAGS="$xorg_testset_save_CFLAGS"
15729
15730		eval supported=\$$cacheid
15731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15732printf "%s\n" "$supported" >&6; }
15733		if test "$supported" = "yes" ; then
15734			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15735			found="yes"
15736		fi
15737	fi
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753xorg_testset_save_CFLAGS="$CFLAGS"
15754
15755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15757	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15759if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15760then :
15761  printf %s "(cached) " >&6
15762else $as_nop
15763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764/* end confdefs.h.  */
15765int i;
15766_ACEOF
15767if ac_fn_c_try_compile "$LINENO"
15768then :
15769  xorg_cv_cc_flag_unknown_warning_option=yes
15770else $as_nop
15771  xorg_cv_cc_flag_unknown_warning_option=no
15772fi
15773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15774fi
15775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15778	CFLAGS="$xorg_testset_save_CFLAGS"
15779fi
15780
15781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15784	fi
15785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15788if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15789then :
15790  printf %s "(cached) " >&6
15791else $as_nop
15792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793/* end confdefs.h.  */
15794int i;
15795_ACEOF
15796if ac_fn_c_try_compile "$LINENO"
15797then :
15798  xorg_cv_cc_flag_unused_command_line_argument=yes
15799else $as_nop
15800  xorg_cv_cc_flag_unused_command_line_argument=no
15801fi
15802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15803fi
15804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15807	CFLAGS="$xorg_testset_save_CFLAGS"
15808fi
15809
15810found="no"
15811
15812	if test $found = "no" ; then
15813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15815		fi
15816
15817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15819		fi
15820
15821		CFLAGS="$CFLAGS -Werror=missing-braces"
15822
15823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15824printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15825		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15826		if eval test \${$cacheid+y}
15827then :
15828  printf %s "(cached) " >&6
15829else $as_nop
15830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15831/* end confdefs.h.  */
15832int i;
15833int
15834main (void)
15835{
15836
15837  ;
15838  return 0;
15839}
15840_ACEOF
15841if ac_fn_c_try_link "$LINENO"
15842then :
15843  eval $cacheid=yes
15844else $as_nop
15845  eval $cacheid=no
15846fi
15847rm -f core conftest.err conftest.$ac_objext conftest.beam \
15848    conftest$ac_exeext conftest.$ac_ext
15849fi
15850
15851
15852		CFLAGS="$xorg_testset_save_CFLAGS"
15853
15854		eval supported=\$$cacheid
15855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15856printf "%s\n" "$supported" >&6; }
15857		if test "$supported" = "yes" ; then
15858			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15859			found="yes"
15860		fi
15861	fi
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877xorg_testset_save_CFLAGS="$CFLAGS"
15878
15879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15883if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15884then :
15885  printf %s "(cached) " >&6
15886else $as_nop
15887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888/* end confdefs.h.  */
15889int i;
15890_ACEOF
15891if ac_fn_c_try_compile "$LINENO"
15892then :
15893  xorg_cv_cc_flag_unknown_warning_option=yes
15894else $as_nop
15895  xorg_cv_cc_flag_unknown_warning_option=no
15896fi
15897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15898fi
15899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15902	CFLAGS="$xorg_testset_save_CFLAGS"
15903fi
15904
15905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15908	fi
15909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15913then :
15914  printf %s "(cached) " >&6
15915else $as_nop
15916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917/* end confdefs.h.  */
15918int i;
15919_ACEOF
15920if ac_fn_c_try_compile "$LINENO"
15921then :
15922  xorg_cv_cc_flag_unused_command_line_argument=yes
15923else $as_nop
15924  xorg_cv_cc_flag_unused_command_line_argument=no
15925fi
15926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15927fi
15928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15931	CFLAGS="$xorg_testset_save_CFLAGS"
15932fi
15933
15934found="no"
15935
15936	if test $found = "no" ; then
15937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15939		fi
15940
15941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15943		fi
15944
15945		CFLAGS="$CFLAGS -Werror=sequence-point"
15946
15947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15948printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15949		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15950		if eval test \${$cacheid+y}
15951then :
15952  printf %s "(cached) " >&6
15953else $as_nop
15954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955/* end confdefs.h.  */
15956int i;
15957int
15958main (void)
15959{
15960
15961  ;
15962  return 0;
15963}
15964_ACEOF
15965if ac_fn_c_try_link "$LINENO"
15966then :
15967  eval $cacheid=yes
15968else $as_nop
15969  eval $cacheid=no
15970fi
15971rm -f core conftest.err conftest.$ac_objext conftest.beam \
15972    conftest$ac_exeext conftest.$ac_ext
15973fi
15974
15975
15976		CFLAGS="$xorg_testset_save_CFLAGS"
15977
15978		eval supported=\$$cacheid
15979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15980printf "%s\n" "$supported" >&6; }
15981		if test "$supported" = "yes" ; then
15982			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15983			found="yes"
15984		fi
15985	fi
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001xorg_testset_save_CFLAGS="$CFLAGS"
16002
16003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16007if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16008then :
16009  printf %s "(cached) " >&6
16010else $as_nop
16011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013int i;
16014_ACEOF
16015if ac_fn_c_try_compile "$LINENO"
16016then :
16017  xorg_cv_cc_flag_unknown_warning_option=yes
16018else $as_nop
16019  xorg_cv_cc_flag_unknown_warning_option=no
16020fi
16021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16022fi
16023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16024printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16026	CFLAGS="$xorg_testset_save_CFLAGS"
16027fi
16028
16029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032	fi
16033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16035printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16036if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16037then :
16038  printf %s "(cached) " >&6
16039else $as_nop
16040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041/* end confdefs.h.  */
16042int i;
16043_ACEOF
16044if ac_fn_c_try_compile "$LINENO"
16045then :
16046  xorg_cv_cc_flag_unused_command_line_argument=yes
16047else $as_nop
16048  xorg_cv_cc_flag_unused_command_line_argument=no
16049fi
16050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16051fi
16052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16055	CFLAGS="$xorg_testset_save_CFLAGS"
16056fi
16057
16058found="no"
16059
16060	if test $found = "no" ; then
16061		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16063		fi
16064
16065		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16067		fi
16068
16069		CFLAGS="$CFLAGS -Werror=return-type"
16070
16071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16072printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16073		cacheid=xorg_cv_cc_flag__Werror_return_type
16074		if eval test \${$cacheid+y}
16075then :
16076  printf %s "(cached) " >&6
16077else $as_nop
16078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079/* end confdefs.h.  */
16080int i;
16081int
16082main (void)
16083{
16084
16085  ;
16086  return 0;
16087}
16088_ACEOF
16089if ac_fn_c_try_link "$LINENO"
16090then :
16091  eval $cacheid=yes
16092else $as_nop
16093  eval $cacheid=no
16094fi
16095rm -f core conftest.err conftest.$ac_objext conftest.beam \
16096    conftest$ac_exeext conftest.$ac_ext
16097fi
16098
16099
16100		CFLAGS="$xorg_testset_save_CFLAGS"
16101
16102		eval supported=\$$cacheid
16103		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16104printf "%s\n" "$supported" >&6; }
16105		if test "$supported" = "yes" ; then
16106			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16107			found="yes"
16108		fi
16109	fi
16110
16111	if test $found = "no" ; then
16112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16114		fi
16115
16116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16118		fi
16119
16120		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16121
16122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16123printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16124		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16125		if eval test \${$cacheid+y}
16126then :
16127  printf %s "(cached) " >&6
16128else $as_nop
16129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130/* end confdefs.h.  */
16131int i;
16132int
16133main (void)
16134{
16135
16136  ;
16137  return 0;
16138}
16139_ACEOF
16140if ac_fn_c_try_link "$LINENO"
16141then :
16142  eval $cacheid=yes
16143else $as_nop
16144  eval $cacheid=no
16145fi
16146rm -f core conftest.err conftest.$ac_objext conftest.beam \
16147    conftest$ac_exeext conftest.$ac_ext
16148fi
16149
16150
16151		CFLAGS="$xorg_testset_save_CFLAGS"
16152
16153		eval supported=\$$cacheid
16154		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16155printf "%s\n" "$supported" >&6; }
16156		if test "$supported" = "yes" ; then
16157			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16158			found="yes"
16159		fi
16160	fi
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176xorg_testset_save_CFLAGS="$CFLAGS"
16177
16178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16182if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16183then :
16184  printf %s "(cached) " >&6
16185else $as_nop
16186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h.  */
16188int i;
16189_ACEOF
16190if ac_fn_c_try_compile "$LINENO"
16191then :
16192  xorg_cv_cc_flag_unknown_warning_option=yes
16193else $as_nop
16194  xorg_cv_cc_flag_unknown_warning_option=no
16195fi
16196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16197fi
16198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16201	CFLAGS="$xorg_testset_save_CFLAGS"
16202fi
16203
16204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16207	fi
16208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16209	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16211if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16212then :
16213  printf %s "(cached) " >&6
16214else $as_nop
16215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16216/* end confdefs.h.  */
16217int i;
16218_ACEOF
16219if ac_fn_c_try_compile "$LINENO"
16220then :
16221  xorg_cv_cc_flag_unused_command_line_argument=yes
16222else $as_nop
16223  xorg_cv_cc_flag_unused_command_line_argument=no
16224fi
16225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16226fi
16227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16230	CFLAGS="$xorg_testset_save_CFLAGS"
16231fi
16232
16233found="no"
16234
16235	if test $found = "no" ; then
16236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16238		fi
16239
16240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16242		fi
16243
16244		CFLAGS="$CFLAGS -Werror=trigraphs"
16245
16246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16247printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16248		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16249		if eval test \${$cacheid+y}
16250then :
16251  printf %s "(cached) " >&6
16252else $as_nop
16253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254/* end confdefs.h.  */
16255int i;
16256int
16257main (void)
16258{
16259
16260  ;
16261  return 0;
16262}
16263_ACEOF
16264if ac_fn_c_try_link "$LINENO"
16265then :
16266  eval $cacheid=yes
16267else $as_nop
16268  eval $cacheid=no
16269fi
16270rm -f core conftest.err conftest.$ac_objext conftest.beam \
16271    conftest$ac_exeext conftest.$ac_ext
16272fi
16273
16274
16275		CFLAGS="$xorg_testset_save_CFLAGS"
16276
16277		eval supported=\$$cacheid
16278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16279printf "%s\n" "$supported" >&6; }
16280		if test "$supported" = "yes" ; then
16281			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16282			found="yes"
16283		fi
16284	fi
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300xorg_testset_save_CFLAGS="$CFLAGS"
16301
16302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16307then :
16308  printf %s "(cached) " >&6
16309else $as_nop
16310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h.  */
16312int i;
16313_ACEOF
16314if ac_fn_c_try_compile "$LINENO"
16315then :
16316  xorg_cv_cc_flag_unknown_warning_option=yes
16317else $as_nop
16318  xorg_cv_cc_flag_unknown_warning_option=no
16319fi
16320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16321fi
16322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16325	CFLAGS="$xorg_testset_save_CFLAGS"
16326fi
16327
16328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16331	fi
16332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16336then :
16337  printf %s "(cached) " >&6
16338else $as_nop
16339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h.  */
16341int i;
16342_ACEOF
16343if ac_fn_c_try_compile "$LINENO"
16344then :
16345  xorg_cv_cc_flag_unused_command_line_argument=yes
16346else $as_nop
16347  xorg_cv_cc_flag_unused_command_line_argument=no
16348fi
16349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16350fi
16351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16354	CFLAGS="$xorg_testset_save_CFLAGS"
16355fi
16356
16357found="no"
16358
16359	if test $found = "no" ; then
16360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16362		fi
16363
16364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16366		fi
16367
16368		CFLAGS="$CFLAGS -Werror=array-bounds"
16369
16370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16371printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16372		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16373		if eval test \${$cacheid+y}
16374then :
16375  printf %s "(cached) " >&6
16376else $as_nop
16377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h.  */
16379int i;
16380int
16381main (void)
16382{
16383
16384  ;
16385  return 0;
16386}
16387_ACEOF
16388if ac_fn_c_try_link "$LINENO"
16389then :
16390  eval $cacheid=yes
16391else $as_nop
16392  eval $cacheid=no
16393fi
16394rm -f core conftest.err conftest.$ac_objext conftest.beam \
16395    conftest$ac_exeext conftest.$ac_ext
16396fi
16397
16398
16399		CFLAGS="$xorg_testset_save_CFLAGS"
16400
16401		eval supported=\$$cacheid
16402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16403printf "%s\n" "$supported" >&6; }
16404		if test "$supported" = "yes" ; then
16405			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16406			found="yes"
16407		fi
16408	fi
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424xorg_testset_save_CFLAGS="$CFLAGS"
16425
16426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16431then :
16432  printf %s "(cached) " >&6
16433else $as_nop
16434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435/* end confdefs.h.  */
16436int i;
16437_ACEOF
16438if ac_fn_c_try_compile "$LINENO"
16439then :
16440  xorg_cv_cc_flag_unknown_warning_option=yes
16441else $as_nop
16442  xorg_cv_cc_flag_unknown_warning_option=no
16443fi
16444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16445fi
16446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16449	CFLAGS="$xorg_testset_save_CFLAGS"
16450fi
16451
16452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16455	fi
16456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16460then :
16461  printf %s "(cached) " >&6
16462else $as_nop
16463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h.  */
16465int i;
16466_ACEOF
16467if ac_fn_c_try_compile "$LINENO"
16468then :
16469  xorg_cv_cc_flag_unused_command_line_argument=yes
16470else $as_nop
16471  xorg_cv_cc_flag_unused_command_line_argument=no
16472fi
16473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16474fi
16475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16478	CFLAGS="$xorg_testset_save_CFLAGS"
16479fi
16480
16481found="no"
16482
16483	if test $found = "no" ; then
16484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16486		fi
16487
16488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16490		fi
16491
16492		CFLAGS="$CFLAGS -Werror=write-strings"
16493
16494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16495printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16496		cacheid=xorg_cv_cc_flag__Werror_write_strings
16497		if eval test \${$cacheid+y}
16498then :
16499  printf %s "(cached) " >&6
16500else $as_nop
16501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h.  */
16503int i;
16504int
16505main (void)
16506{
16507
16508  ;
16509  return 0;
16510}
16511_ACEOF
16512if ac_fn_c_try_link "$LINENO"
16513then :
16514  eval $cacheid=yes
16515else $as_nop
16516  eval $cacheid=no
16517fi
16518rm -f core conftest.err conftest.$ac_objext conftest.beam \
16519    conftest$ac_exeext conftest.$ac_ext
16520fi
16521
16522
16523		CFLAGS="$xorg_testset_save_CFLAGS"
16524
16525		eval supported=\$$cacheid
16526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16527printf "%s\n" "$supported" >&6; }
16528		if test "$supported" = "yes" ; then
16529			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16530			found="yes"
16531		fi
16532	fi
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548xorg_testset_save_CFLAGS="$CFLAGS"
16549
16550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16554if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16555then :
16556  printf %s "(cached) " >&6
16557else $as_nop
16558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559/* end confdefs.h.  */
16560int i;
16561_ACEOF
16562if ac_fn_c_try_compile "$LINENO"
16563then :
16564  xorg_cv_cc_flag_unknown_warning_option=yes
16565else $as_nop
16566  xorg_cv_cc_flag_unknown_warning_option=no
16567fi
16568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16569fi
16570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16573	CFLAGS="$xorg_testset_save_CFLAGS"
16574fi
16575
16576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16579	fi
16580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16584then :
16585  printf %s "(cached) " >&6
16586else $as_nop
16587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588/* end confdefs.h.  */
16589int i;
16590_ACEOF
16591if ac_fn_c_try_compile "$LINENO"
16592then :
16593  xorg_cv_cc_flag_unused_command_line_argument=yes
16594else $as_nop
16595  xorg_cv_cc_flag_unused_command_line_argument=no
16596fi
16597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16598fi
16599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16602	CFLAGS="$xorg_testset_save_CFLAGS"
16603fi
16604
16605found="no"
16606
16607	if test $found = "no" ; then
16608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16610		fi
16611
16612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16614		fi
16615
16616		CFLAGS="$CFLAGS -Werror=address"
16617
16618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16619printf %s "checking if $CC supports -Werror=address... " >&6; }
16620		cacheid=xorg_cv_cc_flag__Werror_address
16621		if eval test \${$cacheid+y}
16622then :
16623  printf %s "(cached) " >&6
16624else $as_nop
16625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626/* end confdefs.h.  */
16627int i;
16628int
16629main (void)
16630{
16631
16632  ;
16633  return 0;
16634}
16635_ACEOF
16636if ac_fn_c_try_link "$LINENO"
16637then :
16638  eval $cacheid=yes
16639else $as_nop
16640  eval $cacheid=no
16641fi
16642rm -f core conftest.err conftest.$ac_objext conftest.beam \
16643    conftest$ac_exeext conftest.$ac_ext
16644fi
16645
16646
16647		CFLAGS="$xorg_testset_save_CFLAGS"
16648
16649		eval supported=\$$cacheid
16650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16651printf "%s\n" "$supported" >&6; }
16652		if test "$supported" = "yes" ; then
16653			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16654			found="yes"
16655		fi
16656	fi
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672xorg_testset_save_CFLAGS="$CFLAGS"
16673
16674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16678if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16679then :
16680  printf %s "(cached) " >&6
16681else $as_nop
16682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683/* end confdefs.h.  */
16684int i;
16685_ACEOF
16686if ac_fn_c_try_compile "$LINENO"
16687then :
16688  xorg_cv_cc_flag_unknown_warning_option=yes
16689else $as_nop
16690  xorg_cv_cc_flag_unknown_warning_option=no
16691fi
16692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16693fi
16694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16697	CFLAGS="$xorg_testset_save_CFLAGS"
16698fi
16699
16700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16703	fi
16704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16708then :
16709  printf %s "(cached) " >&6
16710else $as_nop
16711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712/* end confdefs.h.  */
16713int i;
16714_ACEOF
16715if ac_fn_c_try_compile "$LINENO"
16716then :
16717  xorg_cv_cc_flag_unused_command_line_argument=yes
16718else $as_nop
16719  xorg_cv_cc_flag_unused_command_line_argument=no
16720fi
16721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16722fi
16723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16726	CFLAGS="$xorg_testset_save_CFLAGS"
16727fi
16728
16729found="no"
16730
16731	if test $found = "no" ; then
16732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16734		fi
16735
16736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16738		fi
16739
16740		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16741
16742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16743printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16744		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16745		if eval test \${$cacheid+y}
16746then :
16747  printf %s "(cached) " >&6
16748else $as_nop
16749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750/* end confdefs.h.  */
16751int i;
16752int
16753main (void)
16754{
16755
16756  ;
16757  return 0;
16758}
16759_ACEOF
16760if ac_fn_c_try_link "$LINENO"
16761then :
16762  eval $cacheid=yes
16763else $as_nop
16764  eval $cacheid=no
16765fi
16766rm -f core conftest.err conftest.$ac_objext conftest.beam \
16767    conftest$ac_exeext conftest.$ac_ext
16768fi
16769
16770
16771		CFLAGS="$xorg_testset_save_CFLAGS"
16772
16773		eval supported=\$$cacheid
16774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16775printf "%s\n" "$supported" >&6; }
16776		if test "$supported" = "yes" ; then
16777			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16778			found="yes"
16779		fi
16780	fi
16781
16782	if test $found = "no" ; then
16783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16785		fi
16786
16787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16789		fi
16790
16791		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16792
16793		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16794printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16795		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16796		if eval test \${$cacheid+y}
16797then :
16798  printf %s "(cached) " >&6
16799else $as_nop
16800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int i;
16803int
16804main (void)
16805{
16806
16807  ;
16808  return 0;
16809}
16810_ACEOF
16811if ac_fn_c_try_link "$LINENO"
16812then :
16813  eval $cacheid=yes
16814else $as_nop
16815  eval $cacheid=no
16816fi
16817rm -f core conftest.err conftest.$ac_objext conftest.beam \
16818    conftest$ac_exeext conftest.$ac_ext
16819fi
16820
16821
16822		CFLAGS="$xorg_testset_save_CFLAGS"
16823
16824		eval supported=\$$cacheid
16825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16826printf "%s\n" "$supported" >&6; }
16827		if test "$supported" = "yes" ; then
16828			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16829			found="yes"
16830		fi
16831	fi
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847xorg_testset_save_CFLAGS="$CFLAGS"
16848
16849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16850	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16853if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16854then :
16855  printf %s "(cached) " >&6
16856else $as_nop
16857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858/* end confdefs.h.  */
16859int i;
16860_ACEOF
16861if ac_fn_c_try_compile "$LINENO"
16862then :
16863  xorg_cv_cc_flag_unknown_warning_option=yes
16864else $as_nop
16865  xorg_cv_cc_flag_unknown_warning_option=no
16866fi
16867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16868fi
16869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16872	CFLAGS="$xorg_testset_save_CFLAGS"
16873fi
16874
16875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16878	fi
16879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16882if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16883then :
16884  printf %s "(cached) " >&6
16885else $as_nop
16886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887/* end confdefs.h.  */
16888int i;
16889_ACEOF
16890if ac_fn_c_try_compile "$LINENO"
16891then :
16892  xorg_cv_cc_flag_unused_command_line_argument=yes
16893else $as_nop
16894  xorg_cv_cc_flag_unused_command_line_argument=no
16895fi
16896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16897fi
16898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16901	CFLAGS="$xorg_testset_save_CFLAGS"
16902fi
16903
16904found="no"
16905
16906	if test $found = "no" ; then
16907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16909		fi
16910
16911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16913		fi
16914
16915		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16916
16917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16918printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16919		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16920		if eval test \${$cacheid+y}
16921then :
16922  printf %s "(cached) " >&6
16923else $as_nop
16924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h.  */
16926int i;
16927int
16928main (void)
16929{
16930
16931  ;
16932  return 0;
16933}
16934_ACEOF
16935if ac_fn_c_try_link "$LINENO"
16936then :
16937  eval $cacheid=yes
16938else $as_nop
16939  eval $cacheid=no
16940fi
16941rm -f core conftest.err conftest.$ac_objext conftest.beam \
16942    conftest$ac_exeext conftest.$ac_ext
16943fi
16944
16945
16946		CFLAGS="$xorg_testset_save_CFLAGS"
16947
16948		eval supported=\$$cacheid
16949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16950printf "%s\n" "$supported" >&6; }
16951		if test "$supported" = "yes" ; then
16952			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16953			found="yes"
16954		fi
16955	fi
16956
16957 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16958else
16959{ printf "%s\n" "$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
16960printf "%s\n" "$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;}
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974xorg_testset_save_CFLAGS="$CFLAGS"
16975
16976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16981then :
16982  printf %s "(cached) " >&6
16983else $as_nop
16984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985/* end confdefs.h.  */
16986int i;
16987_ACEOF
16988if ac_fn_c_try_compile "$LINENO"
16989then :
16990  xorg_cv_cc_flag_unknown_warning_option=yes
16991else $as_nop
16992  xorg_cv_cc_flag_unknown_warning_option=no
16993fi
16994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16995fi
16996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16999	CFLAGS="$xorg_testset_save_CFLAGS"
17000fi
17001
17002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005	fi
17006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17010then :
17011  printf %s "(cached) " >&6
17012else $as_nop
17013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014/* end confdefs.h.  */
17015int i;
17016_ACEOF
17017if ac_fn_c_try_compile "$LINENO"
17018then :
17019  xorg_cv_cc_flag_unused_command_line_argument=yes
17020else $as_nop
17021  xorg_cv_cc_flag_unused_command_line_argument=no
17022fi
17023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17024fi
17025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17028	CFLAGS="$xorg_testset_save_CFLAGS"
17029fi
17030
17031found="no"
17032
17033	if test $found = "no" ; then
17034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17036		fi
17037
17038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17040		fi
17041
17042		CFLAGS="$CFLAGS -Wimplicit"
17043
17044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17045printf %s "checking if $CC supports -Wimplicit... " >&6; }
17046		cacheid=xorg_cv_cc_flag__Wimplicit
17047		if eval test \${$cacheid+y}
17048then :
17049  printf %s "(cached) " >&6
17050else $as_nop
17051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052/* end confdefs.h.  */
17053int i;
17054int
17055main (void)
17056{
17057
17058  ;
17059  return 0;
17060}
17061_ACEOF
17062if ac_fn_c_try_link "$LINENO"
17063then :
17064  eval $cacheid=yes
17065else $as_nop
17066  eval $cacheid=no
17067fi
17068rm -f core conftest.err conftest.$ac_objext conftest.beam \
17069    conftest$ac_exeext conftest.$ac_ext
17070fi
17071
17072
17073		CFLAGS="$xorg_testset_save_CFLAGS"
17074
17075		eval supported=\$$cacheid
17076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17077printf "%s\n" "$supported" >&6; }
17078		if test "$supported" = "yes" ; then
17079			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17080			found="yes"
17081		fi
17082	fi
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098xorg_testset_save_CFLAGS="$CFLAGS"
17099
17100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17104if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17105then :
17106  printf %s "(cached) " >&6
17107else $as_nop
17108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109/* end confdefs.h.  */
17110int i;
17111_ACEOF
17112if ac_fn_c_try_compile "$LINENO"
17113then :
17114  xorg_cv_cc_flag_unknown_warning_option=yes
17115else $as_nop
17116  xorg_cv_cc_flag_unknown_warning_option=no
17117fi
17118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17119fi
17120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17123	CFLAGS="$xorg_testset_save_CFLAGS"
17124fi
17125
17126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17129	fi
17130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17134then :
17135  printf %s "(cached) " >&6
17136else $as_nop
17137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139int i;
17140_ACEOF
17141if ac_fn_c_try_compile "$LINENO"
17142then :
17143  xorg_cv_cc_flag_unused_command_line_argument=yes
17144else $as_nop
17145  xorg_cv_cc_flag_unused_command_line_argument=no
17146fi
17147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17148fi
17149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17152	CFLAGS="$xorg_testset_save_CFLAGS"
17153fi
17154
17155found="no"
17156
17157	if test $found = "no" ; then
17158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17160		fi
17161
17162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17164		fi
17165
17166		CFLAGS="$CFLAGS -Wnonnull"
17167
17168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17169printf %s "checking if $CC supports -Wnonnull... " >&6; }
17170		cacheid=xorg_cv_cc_flag__Wnonnull
17171		if eval test \${$cacheid+y}
17172then :
17173  printf %s "(cached) " >&6
17174else $as_nop
17175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176/* end confdefs.h.  */
17177int i;
17178int
17179main (void)
17180{
17181
17182  ;
17183  return 0;
17184}
17185_ACEOF
17186if ac_fn_c_try_link "$LINENO"
17187then :
17188  eval $cacheid=yes
17189else $as_nop
17190  eval $cacheid=no
17191fi
17192rm -f core conftest.err conftest.$ac_objext conftest.beam \
17193    conftest$ac_exeext conftest.$ac_ext
17194fi
17195
17196
17197		CFLAGS="$xorg_testset_save_CFLAGS"
17198
17199		eval supported=\$$cacheid
17200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17201printf "%s\n" "$supported" >&6; }
17202		if test "$supported" = "yes" ; then
17203			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17204			found="yes"
17205		fi
17206	fi
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222xorg_testset_save_CFLAGS="$CFLAGS"
17223
17224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17229then :
17230  printf %s "(cached) " >&6
17231else $as_nop
17232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17233/* end confdefs.h.  */
17234int i;
17235_ACEOF
17236if ac_fn_c_try_compile "$LINENO"
17237then :
17238  xorg_cv_cc_flag_unknown_warning_option=yes
17239else $as_nop
17240  xorg_cv_cc_flag_unknown_warning_option=no
17241fi
17242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17243fi
17244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17247	CFLAGS="$xorg_testset_save_CFLAGS"
17248fi
17249
17250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17253	fi
17254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17258then :
17259  printf %s "(cached) " >&6
17260else $as_nop
17261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262/* end confdefs.h.  */
17263int i;
17264_ACEOF
17265if ac_fn_c_try_compile "$LINENO"
17266then :
17267  xorg_cv_cc_flag_unused_command_line_argument=yes
17268else $as_nop
17269  xorg_cv_cc_flag_unused_command_line_argument=no
17270fi
17271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17272fi
17273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17276	CFLAGS="$xorg_testset_save_CFLAGS"
17277fi
17278
17279found="no"
17280
17281	if test $found = "no" ; then
17282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17284		fi
17285
17286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17288		fi
17289
17290		CFLAGS="$CFLAGS -Winit-self"
17291
17292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17293printf %s "checking if $CC supports -Winit-self... " >&6; }
17294		cacheid=xorg_cv_cc_flag__Winit_self
17295		if eval test \${$cacheid+y}
17296then :
17297  printf %s "(cached) " >&6
17298else $as_nop
17299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300/* end confdefs.h.  */
17301int i;
17302int
17303main (void)
17304{
17305
17306  ;
17307  return 0;
17308}
17309_ACEOF
17310if ac_fn_c_try_link "$LINENO"
17311then :
17312  eval $cacheid=yes
17313else $as_nop
17314  eval $cacheid=no
17315fi
17316rm -f core conftest.err conftest.$ac_objext conftest.beam \
17317    conftest$ac_exeext conftest.$ac_ext
17318fi
17319
17320
17321		CFLAGS="$xorg_testset_save_CFLAGS"
17322
17323		eval supported=\$$cacheid
17324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17325printf "%s\n" "$supported" >&6; }
17326		if test "$supported" = "yes" ; then
17327			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17328			found="yes"
17329		fi
17330	fi
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346xorg_testset_save_CFLAGS="$CFLAGS"
17347
17348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17353then :
17354  printf %s "(cached) " >&6
17355else $as_nop
17356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357/* end confdefs.h.  */
17358int i;
17359_ACEOF
17360if ac_fn_c_try_compile "$LINENO"
17361then :
17362  xorg_cv_cc_flag_unknown_warning_option=yes
17363else $as_nop
17364  xorg_cv_cc_flag_unknown_warning_option=no
17365fi
17366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17367fi
17368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17371	CFLAGS="$xorg_testset_save_CFLAGS"
17372fi
17373
17374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17377	fi
17378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17381if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17382then :
17383  printf %s "(cached) " >&6
17384else $as_nop
17385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386/* end confdefs.h.  */
17387int i;
17388_ACEOF
17389if ac_fn_c_try_compile "$LINENO"
17390then :
17391  xorg_cv_cc_flag_unused_command_line_argument=yes
17392else $as_nop
17393  xorg_cv_cc_flag_unused_command_line_argument=no
17394fi
17395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17396fi
17397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17400	CFLAGS="$xorg_testset_save_CFLAGS"
17401fi
17402
17403found="no"
17404
17405	if test $found = "no" ; then
17406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17408		fi
17409
17410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17412		fi
17413
17414		CFLAGS="$CFLAGS -Wmain"
17415
17416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17417printf %s "checking if $CC supports -Wmain... " >&6; }
17418		cacheid=xorg_cv_cc_flag__Wmain
17419		if eval test \${$cacheid+y}
17420then :
17421  printf %s "(cached) " >&6
17422else $as_nop
17423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424/* end confdefs.h.  */
17425int i;
17426int
17427main (void)
17428{
17429
17430  ;
17431  return 0;
17432}
17433_ACEOF
17434if ac_fn_c_try_link "$LINENO"
17435then :
17436  eval $cacheid=yes
17437else $as_nop
17438  eval $cacheid=no
17439fi
17440rm -f core conftest.err conftest.$ac_objext conftest.beam \
17441    conftest$ac_exeext conftest.$ac_ext
17442fi
17443
17444
17445		CFLAGS="$xorg_testset_save_CFLAGS"
17446
17447		eval supported=\$$cacheid
17448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17449printf "%s\n" "$supported" >&6; }
17450		if test "$supported" = "yes" ; then
17451			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17452			found="yes"
17453		fi
17454	fi
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470xorg_testset_save_CFLAGS="$CFLAGS"
17471
17472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17476if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17477then :
17478  printf %s "(cached) " >&6
17479else $as_nop
17480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481/* end confdefs.h.  */
17482int i;
17483_ACEOF
17484if ac_fn_c_try_compile "$LINENO"
17485then :
17486  xorg_cv_cc_flag_unknown_warning_option=yes
17487else $as_nop
17488  xorg_cv_cc_flag_unknown_warning_option=no
17489fi
17490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17491fi
17492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17495	CFLAGS="$xorg_testset_save_CFLAGS"
17496fi
17497
17498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17501	fi
17502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17505if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17506then :
17507  printf %s "(cached) " >&6
17508else $as_nop
17509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h.  */
17511int i;
17512_ACEOF
17513if ac_fn_c_try_compile "$LINENO"
17514then :
17515  xorg_cv_cc_flag_unused_command_line_argument=yes
17516else $as_nop
17517  xorg_cv_cc_flag_unused_command_line_argument=no
17518fi
17519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17520fi
17521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17524	CFLAGS="$xorg_testset_save_CFLAGS"
17525fi
17526
17527found="no"
17528
17529	if test $found = "no" ; then
17530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17532		fi
17533
17534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17536		fi
17537
17538		CFLAGS="$CFLAGS -Wmissing-braces"
17539
17540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17541printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17542		cacheid=xorg_cv_cc_flag__Wmissing_braces
17543		if eval test \${$cacheid+y}
17544then :
17545  printf %s "(cached) " >&6
17546else $as_nop
17547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548/* end confdefs.h.  */
17549int i;
17550int
17551main (void)
17552{
17553
17554  ;
17555  return 0;
17556}
17557_ACEOF
17558if ac_fn_c_try_link "$LINENO"
17559then :
17560  eval $cacheid=yes
17561else $as_nop
17562  eval $cacheid=no
17563fi
17564rm -f core conftest.err conftest.$ac_objext conftest.beam \
17565    conftest$ac_exeext conftest.$ac_ext
17566fi
17567
17568
17569		CFLAGS="$xorg_testset_save_CFLAGS"
17570
17571		eval supported=\$$cacheid
17572		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17573printf "%s\n" "$supported" >&6; }
17574		if test "$supported" = "yes" ; then
17575			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17576			found="yes"
17577		fi
17578	fi
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594xorg_testset_save_CFLAGS="$CFLAGS"
17595
17596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17600if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17601then :
17602  printf %s "(cached) " >&6
17603else $as_nop
17604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605/* end confdefs.h.  */
17606int i;
17607_ACEOF
17608if ac_fn_c_try_compile "$LINENO"
17609then :
17610  xorg_cv_cc_flag_unknown_warning_option=yes
17611else $as_nop
17612  xorg_cv_cc_flag_unknown_warning_option=no
17613fi
17614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17615fi
17616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17619	CFLAGS="$xorg_testset_save_CFLAGS"
17620fi
17621
17622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17625	fi
17626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17629if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17630then :
17631  printf %s "(cached) " >&6
17632else $as_nop
17633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634/* end confdefs.h.  */
17635int i;
17636_ACEOF
17637if ac_fn_c_try_compile "$LINENO"
17638then :
17639  xorg_cv_cc_flag_unused_command_line_argument=yes
17640else $as_nop
17641  xorg_cv_cc_flag_unused_command_line_argument=no
17642fi
17643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17644fi
17645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17648	CFLAGS="$xorg_testset_save_CFLAGS"
17649fi
17650
17651found="no"
17652
17653	if test $found = "no" ; then
17654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17656		fi
17657
17658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17660		fi
17661
17662		CFLAGS="$CFLAGS -Wsequence-point"
17663
17664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17665printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17666		cacheid=xorg_cv_cc_flag__Wsequence_point
17667		if eval test \${$cacheid+y}
17668then :
17669  printf %s "(cached) " >&6
17670else $as_nop
17671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672/* end confdefs.h.  */
17673int i;
17674int
17675main (void)
17676{
17677
17678  ;
17679  return 0;
17680}
17681_ACEOF
17682if ac_fn_c_try_link "$LINENO"
17683then :
17684  eval $cacheid=yes
17685else $as_nop
17686  eval $cacheid=no
17687fi
17688rm -f core conftest.err conftest.$ac_objext conftest.beam \
17689    conftest$ac_exeext conftest.$ac_ext
17690fi
17691
17692
17693		CFLAGS="$xorg_testset_save_CFLAGS"
17694
17695		eval supported=\$$cacheid
17696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17697printf "%s\n" "$supported" >&6; }
17698		if test "$supported" = "yes" ; then
17699			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17700			found="yes"
17701		fi
17702	fi
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718xorg_testset_save_CFLAGS="$CFLAGS"
17719
17720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17725then :
17726  printf %s "(cached) " >&6
17727else $as_nop
17728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729/* end confdefs.h.  */
17730int i;
17731_ACEOF
17732if ac_fn_c_try_compile "$LINENO"
17733then :
17734  xorg_cv_cc_flag_unknown_warning_option=yes
17735else $as_nop
17736  xorg_cv_cc_flag_unknown_warning_option=no
17737fi
17738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17739fi
17740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17743	CFLAGS="$xorg_testset_save_CFLAGS"
17744fi
17745
17746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17749	fi
17750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17754then :
17755  printf %s "(cached) " >&6
17756else $as_nop
17757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758/* end confdefs.h.  */
17759int i;
17760_ACEOF
17761if ac_fn_c_try_compile "$LINENO"
17762then :
17763  xorg_cv_cc_flag_unused_command_line_argument=yes
17764else $as_nop
17765  xorg_cv_cc_flag_unused_command_line_argument=no
17766fi
17767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17768fi
17769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17772	CFLAGS="$xorg_testset_save_CFLAGS"
17773fi
17774
17775found="no"
17776
17777	if test $found = "no" ; then
17778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17780		fi
17781
17782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17784		fi
17785
17786		CFLAGS="$CFLAGS -Wreturn-type"
17787
17788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17789printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17790		cacheid=xorg_cv_cc_flag__Wreturn_type
17791		if eval test \${$cacheid+y}
17792then :
17793  printf %s "(cached) " >&6
17794else $as_nop
17795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796/* end confdefs.h.  */
17797int i;
17798int
17799main (void)
17800{
17801
17802  ;
17803  return 0;
17804}
17805_ACEOF
17806if ac_fn_c_try_link "$LINENO"
17807then :
17808  eval $cacheid=yes
17809else $as_nop
17810  eval $cacheid=no
17811fi
17812rm -f core conftest.err conftest.$ac_objext conftest.beam \
17813    conftest$ac_exeext conftest.$ac_ext
17814fi
17815
17816
17817		CFLAGS="$xorg_testset_save_CFLAGS"
17818
17819		eval supported=\$$cacheid
17820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17821printf "%s\n" "$supported" >&6; }
17822		if test "$supported" = "yes" ; then
17823			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17824			found="yes"
17825		fi
17826	fi
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842xorg_testset_save_CFLAGS="$CFLAGS"
17843
17844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17849then :
17850  printf %s "(cached) " >&6
17851else $as_nop
17852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853/* end confdefs.h.  */
17854int i;
17855_ACEOF
17856if ac_fn_c_try_compile "$LINENO"
17857then :
17858  xorg_cv_cc_flag_unknown_warning_option=yes
17859else $as_nop
17860  xorg_cv_cc_flag_unknown_warning_option=no
17861fi
17862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17863fi
17864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17866	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17867	CFLAGS="$xorg_testset_save_CFLAGS"
17868fi
17869
17870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17871	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17872		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17873	fi
17874	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17877if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17878then :
17879  printf %s "(cached) " >&6
17880else $as_nop
17881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882/* end confdefs.h.  */
17883int i;
17884_ACEOF
17885if ac_fn_c_try_compile "$LINENO"
17886then :
17887  xorg_cv_cc_flag_unused_command_line_argument=yes
17888else $as_nop
17889  xorg_cv_cc_flag_unused_command_line_argument=no
17890fi
17891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17892fi
17893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17896	CFLAGS="$xorg_testset_save_CFLAGS"
17897fi
17898
17899found="no"
17900
17901	if test $found = "no" ; then
17902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17904		fi
17905
17906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17908		fi
17909
17910		CFLAGS="$CFLAGS -Wtrigraphs"
17911
17912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17913printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17914		cacheid=xorg_cv_cc_flag__Wtrigraphs
17915		if eval test \${$cacheid+y}
17916then :
17917  printf %s "(cached) " >&6
17918else $as_nop
17919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920/* end confdefs.h.  */
17921int i;
17922int
17923main (void)
17924{
17925
17926  ;
17927  return 0;
17928}
17929_ACEOF
17930if ac_fn_c_try_link "$LINENO"
17931then :
17932  eval $cacheid=yes
17933else $as_nop
17934  eval $cacheid=no
17935fi
17936rm -f core conftest.err conftest.$ac_objext conftest.beam \
17937    conftest$ac_exeext conftest.$ac_ext
17938fi
17939
17940
17941		CFLAGS="$xorg_testset_save_CFLAGS"
17942
17943		eval supported=\$$cacheid
17944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17945printf "%s\n" "$supported" >&6; }
17946		if test "$supported" = "yes" ; then
17947			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17948			found="yes"
17949		fi
17950	fi
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966xorg_testset_save_CFLAGS="$CFLAGS"
17967
17968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17973then :
17974  printf %s "(cached) " >&6
17975else $as_nop
17976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977/* end confdefs.h.  */
17978int i;
17979_ACEOF
17980if ac_fn_c_try_compile "$LINENO"
17981then :
17982  xorg_cv_cc_flag_unknown_warning_option=yes
17983else $as_nop
17984  xorg_cv_cc_flag_unknown_warning_option=no
17985fi
17986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17987fi
17988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17991	CFLAGS="$xorg_testset_save_CFLAGS"
17992fi
17993
17994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17997	fi
17998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18001if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18002then :
18003  printf %s "(cached) " >&6
18004else $as_nop
18005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006/* end confdefs.h.  */
18007int i;
18008_ACEOF
18009if ac_fn_c_try_compile "$LINENO"
18010then :
18011  xorg_cv_cc_flag_unused_command_line_argument=yes
18012else $as_nop
18013  xorg_cv_cc_flag_unused_command_line_argument=no
18014fi
18015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18016fi
18017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18020	CFLAGS="$xorg_testset_save_CFLAGS"
18021fi
18022
18023found="no"
18024
18025	if test $found = "no" ; then
18026		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18028		fi
18029
18030		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18032		fi
18033
18034		CFLAGS="$CFLAGS -Warray-bounds"
18035
18036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18037printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18038		cacheid=xorg_cv_cc_flag__Warray_bounds
18039		if eval test \${$cacheid+y}
18040then :
18041  printf %s "(cached) " >&6
18042else $as_nop
18043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044/* end confdefs.h.  */
18045int i;
18046int
18047main (void)
18048{
18049
18050  ;
18051  return 0;
18052}
18053_ACEOF
18054if ac_fn_c_try_link "$LINENO"
18055then :
18056  eval $cacheid=yes
18057else $as_nop
18058  eval $cacheid=no
18059fi
18060rm -f core conftest.err conftest.$ac_objext conftest.beam \
18061    conftest$ac_exeext conftest.$ac_ext
18062fi
18063
18064
18065		CFLAGS="$xorg_testset_save_CFLAGS"
18066
18067		eval supported=\$$cacheid
18068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18069printf "%s\n" "$supported" >&6; }
18070		if test "$supported" = "yes" ; then
18071			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18072			found="yes"
18073		fi
18074	fi
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090xorg_testset_save_CFLAGS="$CFLAGS"
18091
18092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18096if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18097then :
18098  printf %s "(cached) " >&6
18099else $as_nop
18100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18101/* end confdefs.h.  */
18102int i;
18103_ACEOF
18104if ac_fn_c_try_compile "$LINENO"
18105then :
18106  xorg_cv_cc_flag_unknown_warning_option=yes
18107else $as_nop
18108  xorg_cv_cc_flag_unknown_warning_option=no
18109fi
18110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18111fi
18112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18115	CFLAGS="$xorg_testset_save_CFLAGS"
18116fi
18117
18118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18121	fi
18122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18125if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18126then :
18127  printf %s "(cached) " >&6
18128else $as_nop
18129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130/* end confdefs.h.  */
18131int i;
18132_ACEOF
18133if ac_fn_c_try_compile "$LINENO"
18134then :
18135  xorg_cv_cc_flag_unused_command_line_argument=yes
18136else $as_nop
18137  xorg_cv_cc_flag_unused_command_line_argument=no
18138fi
18139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18140fi
18141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18144	CFLAGS="$xorg_testset_save_CFLAGS"
18145fi
18146
18147found="no"
18148
18149	if test $found = "no" ; then
18150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18152		fi
18153
18154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18156		fi
18157
18158		CFLAGS="$CFLAGS -Wwrite-strings"
18159
18160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18161printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18162		cacheid=xorg_cv_cc_flag__Wwrite_strings
18163		if eval test \${$cacheid+y}
18164then :
18165  printf %s "(cached) " >&6
18166else $as_nop
18167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168/* end confdefs.h.  */
18169int i;
18170int
18171main (void)
18172{
18173
18174  ;
18175  return 0;
18176}
18177_ACEOF
18178if ac_fn_c_try_link "$LINENO"
18179then :
18180  eval $cacheid=yes
18181else $as_nop
18182  eval $cacheid=no
18183fi
18184rm -f core conftest.err conftest.$ac_objext conftest.beam \
18185    conftest$ac_exeext conftest.$ac_ext
18186fi
18187
18188
18189		CFLAGS="$xorg_testset_save_CFLAGS"
18190
18191		eval supported=\$$cacheid
18192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18193printf "%s\n" "$supported" >&6; }
18194		if test "$supported" = "yes" ; then
18195			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18196			found="yes"
18197		fi
18198	fi
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214xorg_testset_save_CFLAGS="$CFLAGS"
18215
18216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18221then :
18222  printf %s "(cached) " >&6
18223else $as_nop
18224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225/* end confdefs.h.  */
18226int i;
18227_ACEOF
18228if ac_fn_c_try_compile "$LINENO"
18229then :
18230  xorg_cv_cc_flag_unknown_warning_option=yes
18231else $as_nop
18232  xorg_cv_cc_flag_unknown_warning_option=no
18233fi
18234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18235fi
18236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18239	CFLAGS="$xorg_testset_save_CFLAGS"
18240fi
18241
18242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18245	fi
18246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18250then :
18251  printf %s "(cached) " >&6
18252else $as_nop
18253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18254/* end confdefs.h.  */
18255int i;
18256_ACEOF
18257if ac_fn_c_try_compile "$LINENO"
18258then :
18259  xorg_cv_cc_flag_unused_command_line_argument=yes
18260else $as_nop
18261  xorg_cv_cc_flag_unused_command_line_argument=no
18262fi
18263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18264fi
18265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18268	CFLAGS="$xorg_testset_save_CFLAGS"
18269fi
18270
18271found="no"
18272
18273	if test $found = "no" ; then
18274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18276		fi
18277
18278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18280		fi
18281
18282		CFLAGS="$CFLAGS -Waddress"
18283
18284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18285printf %s "checking if $CC supports -Waddress... " >&6; }
18286		cacheid=xorg_cv_cc_flag__Waddress
18287		if eval test \${$cacheid+y}
18288then :
18289  printf %s "(cached) " >&6
18290else $as_nop
18291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18292/* end confdefs.h.  */
18293int i;
18294int
18295main (void)
18296{
18297
18298  ;
18299  return 0;
18300}
18301_ACEOF
18302if ac_fn_c_try_link "$LINENO"
18303then :
18304  eval $cacheid=yes
18305else $as_nop
18306  eval $cacheid=no
18307fi
18308rm -f core conftest.err conftest.$ac_objext conftest.beam \
18309    conftest$ac_exeext conftest.$ac_ext
18310fi
18311
18312
18313		CFLAGS="$xorg_testset_save_CFLAGS"
18314
18315		eval supported=\$$cacheid
18316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18317printf "%s\n" "$supported" >&6; }
18318		if test "$supported" = "yes" ; then
18319			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18320			found="yes"
18321		fi
18322	fi
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338xorg_testset_save_CFLAGS="$CFLAGS"
18339
18340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18341	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18342	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18344if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18345then :
18346  printf %s "(cached) " >&6
18347else $as_nop
18348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349/* end confdefs.h.  */
18350int i;
18351_ACEOF
18352if ac_fn_c_try_compile "$LINENO"
18353then :
18354  xorg_cv_cc_flag_unknown_warning_option=yes
18355else $as_nop
18356  xorg_cv_cc_flag_unknown_warning_option=no
18357fi
18358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18359fi
18360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18363	CFLAGS="$xorg_testset_save_CFLAGS"
18364fi
18365
18366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18369	fi
18370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18373if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18374then :
18375  printf %s "(cached) " >&6
18376else $as_nop
18377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378/* end confdefs.h.  */
18379int i;
18380_ACEOF
18381if ac_fn_c_try_compile "$LINENO"
18382then :
18383  xorg_cv_cc_flag_unused_command_line_argument=yes
18384else $as_nop
18385  xorg_cv_cc_flag_unused_command_line_argument=no
18386fi
18387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18388fi
18389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18391	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18392	CFLAGS="$xorg_testset_save_CFLAGS"
18393fi
18394
18395found="no"
18396
18397	if test $found = "no" ; then
18398		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18399			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18400		fi
18401
18402		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18403			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18404		fi
18405
18406		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18407
18408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18409printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18410		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18411		if eval test \${$cacheid+y}
18412then :
18413  printf %s "(cached) " >&6
18414else $as_nop
18415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416/* end confdefs.h.  */
18417int i;
18418int
18419main (void)
18420{
18421
18422  ;
18423  return 0;
18424}
18425_ACEOF
18426if ac_fn_c_try_link "$LINENO"
18427then :
18428  eval $cacheid=yes
18429else $as_nop
18430  eval $cacheid=no
18431fi
18432rm -f core conftest.err conftest.$ac_objext conftest.beam \
18433    conftest$ac_exeext conftest.$ac_ext
18434fi
18435
18436
18437		CFLAGS="$xorg_testset_save_CFLAGS"
18438
18439		eval supported=\$$cacheid
18440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18441printf "%s\n" "$supported" >&6; }
18442		if test "$supported" = "yes" ; then
18443			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18444			found="yes"
18445		fi
18446	fi
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462xorg_testset_save_CFLAGS="$CFLAGS"
18463
18464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18465	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18466	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18468if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18469then :
18470  printf %s "(cached) " >&6
18471else $as_nop
18472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473/* end confdefs.h.  */
18474int i;
18475_ACEOF
18476if ac_fn_c_try_compile "$LINENO"
18477then :
18478  xorg_cv_cc_flag_unknown_warning_option=yes
18479else $as_nop
18480  xorg_cv_cc_flag_unknown_warning_option=no
18481fi
18482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18483fi
18484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18486	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18487	CFLAGS="$xorg_testset_save_CFLAGS"
18488fi
18489
18490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18491	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18493	fi
18494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18497if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18498then :
18499  printf %s "(cached) " >&6
18500else $as_nop
18501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502/* end confdefs.h.  */
18503int i;
18504_ACEOF
18505if ac_fn_c_try_compile "$LINENO"
18506then :
18507  xorg_cv_cc_flag_unused_command_line_argument=yes
18508else $as_nop
18509  xorg_cv_cc_flag_unused_command_line_argument=no
18510fi
18511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18512fi
18513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18514printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18516	CFLAGS="$xorg_testset_save_CFLAGS"
18517fi
18518
18519found="no"
18520
18521	if test $found = "no" ; then
18522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18524		fi
18525
18526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18528		fi
18529
18530		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18531
18532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18533printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18534		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18535		if eval test \${$cacheid+y}
18536then :
18537  printf %s "(cached) " >&6
18538else $as_nop
18539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540/* end confdefs.h.  */
18541int i;
18542int
18543main (void)
18544{
18545
18546  ;
18547  return 0;
18548}
18549_ACEOF
18550if ac_fn_c_try_link "$LINENO"
18551then :
18552  eval $cacheid=yes
18553else $as_nop
18554  eval $cacheid=no
18555fi
18556rm -f core conftest.err conftest.$ac_objext conftest.beam \
18557    conftest$ac_exeext conftest.$ac_ext
18558fi
18559
18560
18561		CFLAGS="$xorg_testset_save_CFLAGS"
18562
18563		eval supported=\$$cacheid
18564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18565printf "%s\n" "$supported" >&6; }
18566		if test "$supported" = "yes" ; then
18567			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18568			found="yes"
18569		fi
18570	fi
18571
18572
18573fi
18574
18575
18576
18577
18578
18579
18580
18581		CWARNFLAGS="$BASE_CFLAGS"
18582		if  test "x$GCC" = xyes ; then
18583		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18584		fi
18585
18586
18587
18588
18589
18590
18591
18592
18593# Check whether --enable-strict-compilation was given.
18594if test ${enable_strict_compilation+y}
18595then :
18596  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18597else $as_nop
18598  STRICT_COMPILE=no
18599fi
18600
18601
18602
18603
18604
18605
18606STRICT_CFLAGS=""
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620xorg_testset_save_CFLAGS="$CFLAGS"
18621
18622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18625printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18626if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18627then :
18628  printf %s "(cached) " >&6
18629else $as_nop
18630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18631/* end confdefs.h.  */
18632int i;
18633_ACEOF
18634if ac_fn_c_try_compile "$LINENO"
18635then :
18636  xorg_cv_cc_flag_unknown_warning_option=yes
18637else $as_nop
18638  xorg_cv_cc_flag_unknown_warning_option=no
18639fi
18640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18641fi
18642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18645	CFLAGS="$xorg_testset_save_CFLAGS"
18646fi
18647
18648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18651	fi
18652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18655if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18656then :
18657  printf %s "(cached) " >&6
18658else $as_nop
18659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660/* end confdefs.h.  */
18661int i;
18662_ACEOF
18663if ac_fn_c_try_compile "$LINENO"
18664then :
18665  xorg_cv_cc_flag_unused_command_line_argument=yes
18666else $as_nop
18667  xorg_cv_cc_flag_unused_command_line_argument=no
18668fi
18669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18670fi
18671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18672printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18674	CFLAGS="$xorg_testset_save_CFLAGS"
18675fi
18676
18677found="no"
18678
18679	if test $found = "no" ; then
18680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18682		fi
18683
18684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18686		fi
18687
18688		CFLAGS="$CFLAGS -pedantic"
18689
18690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18691printf %s "checking if $CC supports -pedantic... " >&6; }
18692		cacheid=xorg_cv_cc_flag__pedantic
18693		if eval test \${$cacheid+y}
18694then :
18695  printf %s "(cached) " >&6
18696else $as_nop
18697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698/* end confdefs.h.  */
18699int i;
18700int
18701main (void)
18702{
18703
18704  ;
18705  return 0;
18706}
18707_ACEOF
18708if ac_fn_c_try_link "$LINENO"
18709then :
18710  eval $cacheid=yes
18711else $as_nop
18712  eval $cacheid=no
18713fi
18714rm -f core conftest.err conftest.$ac_objext conftest.beam \
18715    conftest$ac_exeext conftest.$ac_ext
18716fi
18717
18718
18719		CFLAGS="$xorg_testset_save_CFLAGS"
18720
18721		eval supported=\$$cacheid
18722		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18723printf "%s\n" "$supported" >&6; }
18724		if test "$supported" = "yes" ; then
18725			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18726			found="yes"
18727		fi
18728	fi
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744xorg_testset_save_CFLAGS="$CFLAGS"
18745
18746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18749printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18750if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18751then :
18752  printf %s "(cached) " >&6
18753else $as_nop
18754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18755/* end confdefs.h.  */
18756int i;
18757_ACEOF
18758if ac_fn_c_try_compile "$LINENO"
18759then :
18760  xorg_cv_cc_flag_unknown_warning_option=yes
18761else $as_nop
18762  xorg_cv_cc_flag_unknown_warning_option=no
18763fi
18764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18765fi
18766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18769	CFLAGS="$xorg_testset_save_CFLAGS"
18770fi
18771
18772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18775	fi
18776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18779if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18780then :
18781  printf %s "(cached) " >&6
18782else $as_nop
18783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784/* end confdefs.h.  */
18785int i;
18786_ACEOF
18787if ac_fn_c_try_compile "$LINENO"
18788then :
18789  xorg_cv_cc_flag_unused_command_line_argument=yes
18790else $as_nop
18791  xorg_cv_cc_flag_unused_command_line_argument=no
18792fi
18793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18794fi
18795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18796printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18797	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18798	CFLAGS="$xorg_testset_save_CFLAGS"
18799fi
18800
18801found="no"
18802
18803	if test $found = "no" ; then
18804		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18805			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18806		fi
18807
18808		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18809			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18810		fi
18811
18812		CFLAGS="$CFLAGS -Werror"
18813
18814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18815printf %s "checking if $CC supports -Werror... " >&6; }
18816		cacheid=xorg_cv_cc_flag__Werror
18817		if eval test \${$cacheid+y}
18818then :
18819  printf %s "(cached) " >&6
18820else $as_nop
18821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822/* end confdefs.h.  */
18823int i;
18824int
18825main (void)
18826{
18827
18828  ;
18829  return 0;
18830}
18831_ACEOF
18832if ac_fn_c_try_link "$LINENO"
18833then :
18834  eval $cacheid=yes
18835else $as_nop
18836  eval $cacheid=no
18837fi
18838rm -f core conftest.err conftest.$ac_objext conftest.beam \
18839    conftest$ac_exeext conftest.$ac_ext
18840fi
18841
18842
18843		CFLAGS="$xorg_testset_save_CFLAGS"
18844
18845		eval supported=\$$cacheid
18846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18847printf "%s\n" "$supported" >&6; }
18848		if test "$supported" = "yes" ; then
18849			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18850			found="yes"
18851		fi
18852	fi
18853
18854	if test $found = "no" ; then
18855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18857		fi
18858
18859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18861		fi
18862
18863		CFLAGS="$CFLAGS -errwarn"
18864
18865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18866printf %s "checking if $CC supports -errwarn... " >&6; }
18867		cacheid=xorg_cv_cc_flag__errwarn
18868		if eval test \${$cacheid+y}
18869then :
18870  printf %s "(cached) " >&6
18871else $as_nop
18872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873/* end confdefs.h.  */
18874int i;
18875int
18876main (void)
18877{
18878
18879  ;
18880  return 0;
18881}
18882_ACEOF
18883if ac_fn_c_try_link "$LINENO"
18884then :
18885  eval $cacheid=yes
18886else $as_nop
18887  eval $cacheid=no
18888fi
18889rm -f core conftest.err conftest.$ac_objext conftest.beam \
18890    conftest$ac_exeext conftest.$ac_ext
18891fi
18892
18893
18894		CFLAGS="$xorg_testset_save_CFLAGS"
18895
18896		eval supported=\$$cacheid
18897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18898printf "%s\n" "$supported" >&6; }
18899		if test "$supported" = "yes" ; then
18900			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18901			found="yes"
18902		fi
18903	fi
18904
18905
18906
18907# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18908# activate it with -Werror, so we add it here explicitly.
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922xorg_testset_save_CFLAGS="$CFLAGS"
18923
18924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18928if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18929then :
18930  printf %s "(cached) " >&6
18931else $as_nop
18932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933/* end confdefs.h.  */
18934int i;
18935_ACEOF
18936if ac_fn_c_try_compile "$LINENO"
18937then :
18938  xorg_cv_cc_flag_unknown_warning_option=yes
18939else $as_nop
18940  xorg_cv_cc_flag_unknown_warning_option=no
18941fi
18942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18943fi
18944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18946	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18947	CFLAGS="$xorg_testset_save_CFLAGS"
18948fi
18949
18950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18951	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18952		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18953	fi
18954	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18957if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18958then :
18959  printf %s "(cached) " >&6
18960else $as_nop
18961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962/* end confdefs.h.  */
18963int i;
18964_ACEOF
18965if ac_fn_c_try_compile "$LINENO"
18966then :
18967  xorg_cv_cc_flag_unused_command_line_argument=yes
18968else $as_nop
18969  xorg_cv_cc_flag_unused_command_line_argument=no
18970fi
18971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18972fi
18973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18976	CFLAGS="$xorg_testset_save_CFLAGS"
18977fi
18978
18979found="no"
18980
18981	if test $found = "no" ; then
18982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18984		fi
18985
18986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18988		fi
18989
18990		CFLAGS="$CFLAGS -Werror=attributes"
18991
18992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18993printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18994		cacheid=xorg_cv_cc_flag__Werror_attributes
18995		if eval test \${$cacheid+y}
18996then :
18997  printf %s "(cached) " >&6
18998else $as_nop
18999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000/* end confdefs.h.  */
19001int i;
19002int
19003main (void)
19004{
19005
19006  ;
19007  return 0;
19008}
19009_ACEOF
19010if ac_fn_c_try_link "$LINENO"
19011then :
19012  eval $cacheid=yes
19013else $as_nop
19014  eval $cacheid=no
19015fi
19016rm -f core conftest.err conftest.$ac_objext conftest.beam \
19017    conftest$ac_exeext conftest.$ac_ext
19018fi
19019
19020
19021		CFLAGS="$xorg_testset_save_CFLAGS"
19022
19023		eval supported=\$$cacheid
19024		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19025printf "%s\n" "$supported" >&6; }
19026		if test "$supported" = "yes" ; then
19027			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19028			found="yes"
19029		fi
19030	fi
19031
19032
19033
19034if test "x$STRICT_COMPILE" = "xyes"; then
19035    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19036    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19037fi
19038
19039
19040
19041
19042
19043
19044cat >>confdefs.h <<_ACEOF
19045#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19046_ACEOF
19047
19048	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19049	if test "x$PVM" = "x"; then
19050		PVM="0"
19051	fi
19052
19053printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19054
19055	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19056	if test "x$PVP" = "x"; then
19057		PVP="0"
19058	fi
19059
19060printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19061
19062
19063
19064CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19065mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19066|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19067touch \$(top_srcdir)/ChangeLog; \
19068echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19069
19070
19071
19072
19073macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19074INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19075mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19076|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19077touch \$(top_srcdir)/INSTALL; \
19078echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19079
19080
19081
19082
19083
19084
19085case $host_os in
19086    solaris*)
19087        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19088        # check for a man page file found in later versions that use
19089        # traditional section numbers instead
19090        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19091printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19092if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19093then :
19094  printf %s "(cached) " >&6
19095else $as_nop
19096  test "$cross_compiling" = yes &&
19097  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19098if test -r "/usr/share/man/man7/attributes.7"; then
19099  ac_cv_file__usr_share_man_man7_attributes_7=yes
19100else
19101  ac_cv_file__usr_share_man_man7_attributes_7=no
19102fi
19103fi
19104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19105printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19106if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19107then :
19108  SYSV_MAN_SECTIONS=false
19109else $as_nop
19110  SYSV_MAN_SECTIONS=true
19111fi
19112
19113        ;;
19114    *) SYSV_MAN_SECTIONS=false ;;
19115esac
19116
19117if test x$APP_MAN_SUFFIX = x    ; then
19118    APP_MAN_SUFFIX=1
19119fi
19120if test x$APP_MAN_DIR = x    ; then
19121    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19122fi
19123
19124if test x$LIB_MAN_SUFFIX = x    ; then
19125    LIB_MAN_SUFFIX=3
19126fi
19127if test x$LIB_MAN_DIR = x    ; then
19128    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19129fi
19130
19131if test x$FILE_MAN_SUFFIX = x    ; then
19132    case $SYSV_MAN_SECTIONS in
19133	true)				FILE_MAN_SUFFIX=4  ;;
19134	*)				FILE_MAN_SUFFIX=5  ;;
19135    esac
19136fi
19137if test x$FILE_MAN_DIR = x    ; then
19138    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19139fi
19140
19141if test x$MISC_MAN_SUFFIX = x    ; then
19142    case $SYSV_MAN_SECTIONS in
19143	true)				MISC_MAN_SUFFIX=5  ;;
19144	*)				MISC_MAN_SUFFIX=7  ;;
19145    esac
19146fi
19147if test x$MISC_MAN_DIR = x    ; then
19148    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19149fi
19150
19151if test x$DRIVER_MAN_SUFFIX = x    ; then
19152    case $SYSV_MAN_SECTIONS in
19153	true)				DRIVER_MAN_SUFFIX=7  ;;
19154	*)				DRIVER_MAN_SUFFIX=4  ;;
19155    esac
19156fi
19157if test x$DRIVER_MAN_DIR = x    ; then
19158    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19159fi
19160
19161if test x$ADMIN_MAN_SUFFIX = x    ; then
19162    case $SYSV_MAN_SECTIONS in
19163	true)				ADMIN_MAN_SUFFIX=1m ;;
19164	*)				ADMIN_MAN_SUFFIX=8  ;;
19165    esac
19166fi
19167if test x$ADMIN_MAN_DIR = x    ; then
19168    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19169fi
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185XORG_MAN_PAGE="X Version 11"
19186
19187MAN_SUBSTS="\
19188	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19189	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19190	-e 's|__xservername__|Xorg|g' \
19191	-e 's|__xconfigfile__|xorg.conf|g' \
19192	-e 's|__projectroot__|\$(prefix)|g' \
19193	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19194	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19195	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19196	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19197	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19198	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19199	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19200
19201
19202
19203# Check whether --enable-silent-rules was given.
19204if test ${enable_silent_rules+y}
19205then :
19206  enableval=$enable_silent_rules;
19207fi
19208
19209case $enable_silent_rules in # (((
19210  yes) AM_DEFAULT_VERBOSITY=0;;
19211   no) AM_DEFAULT_VERBOSITY=1;;
19212    *) AM_DEFAULT_VERBOSITY=0;;
19213esac
19214am_make=${MAKE-make}
19215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19216printf %s "checking whether $am_make supports nested variables... " >&6; }
19217if test ${am_cv_make_support_nested_variables+y}
19218then :
19219  printf %s "(cached) " >&6
19220else $as_nop
19221  if printf "%s\n" 'TRUE=$(BAR$(V))
19222BAR0=false
19223BAR1=true
19224V=1
19225am__doit:
19226	@$(TRUE)
19227.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19228  am_cv_make_support_nested_variables=yes
19229else
19230  am_cv_make_support_nested_variables=no
19231fi
19232fi
19233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19234printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19235if test $am_cv_make_support_nested_variables = yes; then
19236    AM_V='$(V)'
19237  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19238else
19239  AM_V=$AM_DEFAULT_VERBOSITY
19240  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19241fi
19242AM_BACKSLASH='\'
19243
19244
19245
19246# Check whether --enable-malloc0returnsnull was given.
19247if test ${enable_malloc0returnsnull+y}
19248then :
19249  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19250else $as_nop
19251  MALLOC_ZERO_RETURNS_NULL=auto
19252fi
19253
19254
19255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19256printf %s "checking whether malloc(0) returns NULL... " >&6; }
19257if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19258if test ${xorg_cv_malloc0_returns_null+y}
19259then :
19260  printf %s "(cached) " >&6
19261else $as_nop
19262  if test "$cross_compiling" = yes
19263then :
19264  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19265printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19266as_fn_error $? "cannot run test program while cross compiling
19267See \`config.log' for more details" "$LINENO" 5; }
19268else $as_nop
19269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270/* end confdefs.h.  */
19271
19272#include <stdlib.h>
19273
19274int
19275main (void)
19276{
19277
19278    char *m0, *r0, *c0, *p;
19279    m0 = malloc(0);
19280    p = malloc(10);
19281    r0 = realloc(p,0);
19282    c0 = calloc(0,10);
19283    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19284
19285  ;
19286  return 0;
19287}
19288_ACEOF
19289if ac_fn_c_try_run "$LINENO"
19290then :
19291  xorg_cv_malloc0_returns_null=yes
19292else $as_nop
19293  xorg_cv_malloc0_returns_null=no
19294fi
19295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19296  conftest.$ac_objext conftest.beam conftest.$ac_ext
19297fi
19298
19299fi
19300
19301MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19302fi
19303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19304printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19305
19306if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19307	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19308	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19309	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19310else
19311	MALLOC_ZERO_CFLAGS=""
19312	XMALLOC_ZERO_CFLAGS=""
19313	XTMALLOC_ZERO_CFLAGS=""
19314fi
19315
19316
19317
19318
19319
19320
19321# Check randr configuration, strip extra digits from package version to
19322# find the required protocol version
19323RANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19324
19325
19326# Obtain compiler/linker options for dependencies
19327
19328pkg_failed=no
19329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RANDR" >&5
19330printf %s "checking for RANDR... " >&6; }
19331
19332if test -n "$RANDR_CFLAGS"; then
19333    pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS"
19334 elif test -n "$PKG_CONFIG"; then
19335    if test -n "$PKG_CONFIG" && \
19336    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
19337  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
19338  ac_status=$?
19339  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19340  test $ac_status = 0; }; then
19341  pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
19342		      test "x$?" != "x0" && pkg_failed=yes
19343else
19344  pkg_failed=yes
19345fi
19346 else
19347    pkg_failed=untried
19348fi
19349if test -n "$RANDR_LIBS"; then
19350    pkg_cv_RANDR_LIBS="$RANDR_LIBS"
19351 elif test -n "$PKG_CONFIG"; then
19352    if test -n "$PKG_CONFIG" && \
19353    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5
19354  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5
19355  ac_status=$?
19356  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19357  test $ac_status = 0; }; then
19358  pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null`
19359		      test "x$?" != "x0" && pkg_failed=yes
19360else
19361  pkg_failed=yes
19362fi
19363 else
19364    pkg_failed=untried
19365fi
19366
19367
19368
19369if test $pkg_failed = yes; then
19370   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19371printf "%s\n" "no" >&6; }
19372
19373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19374        _pkg_short_errors_supported=yes
19375else
19376        _pkg_short_errors_supported=no
19377fi
19378        if test $_pkg_short_errors_supported = yes; then
19379	        RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
19380        else
19381	        RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1`
19382        fi
19383	# Put the nasty error message in config.log where it belongs
19384	echo "$RANDR_PKG_ERRORS" >&5
19385
19386	as_fn_error $? "Package requirements (x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met:
19387
19388$RANDR_PKG_ERRORS
19389
19390Consider adjusting the PKG_CONFIG_PATH environment variable if you
19391installed software in a non-standard prefix.
19392
19393Alternatively, you may set the environment variables RANDR_CFLAGS
19394and RANDR_LIBS to avoid the need to call pkg-config.
19395See the pkg-config man page for more details." "$LINENO" 5
19396elif test $pkg_failed = untried; then
19397     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398printf "%s\n" "no" >&6; }
19399	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19400printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19401as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19402is in your PATH or set the PKG_CONFIG environment variable to the full
19403path to pkg-config.
19404
19405Alternatively, you may set the environment variables RANDR_CFLAGS
19406and RANDR_LIBS to avoid the need to call pkg-config.
19407See the pkg-config man page for more details.
19408
19409To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19410See \`config.log' for more details" "$LINENO" 5; }
19411else
19412	RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS
19413	RANDR_LIBS=$pkg_cv_RANDR_LIBS
19414        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19415printf "%s\n" "yes" >&6; }
19416
19417fi
19418
19419ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc"
19420
19421cat >confcache <<\_ACEOF
19422# This file is a shell script that caches the results of configure
19423# tests run on this system so they can be shared between configure
19424# scripts and configure runs, see configure's option --config-cache.
19425# It is not useful on other systems.  If it contains results you don't
19426# want to keep, you may remove or edit it.
19427#
19428# config.status only pays attention to the cache file if you give it
19429# the --recheck option to rerun configure.
19430#
19431# `ac_cv_env_foo' variables (set or unset) will be overridden when
19432# loading this file, other *unset* `ac_cv_foo' will be assigned the
19433# following values.
19434
19435_ACEOF
19436
19437# The following way of writing the cache mishandles newlines in values,
19438# but we know of no workaround that is simple, portable, and efficient.
19439# So, we kill variables containing newlines.
19440# Ultrix sh set writes to stderr and can't be redirected directly,
19441# and sets the high bit in the cache file unless we assign to the vars.
19442(
19443  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19444    eval ac_val=\$$ac_var
19445    case $ac_val in #(
19446    *${as_nl}*)
19447      case $ac_var in #(
19448      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19449printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19450      esac
19451      case $ac_var in #(
19452      _ | IFS | as_nl) ;; #(
19453      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19454      *) { eval $ac_var=; unset $ac_var;} ;;
19455      esac ;;
19456    esac
19457  done
19458
19459  (set) 2>&1 |
19460    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19461    *${as_nl}ac_space=\ *)
19462      # `set' does not quote correctly, so add quotes: double-quote
19463      # substitution turns \\\\ into \\, and sed turns \\ into \.
19464      sed -n \
19465	"s/'/'\\\\''/g;
19466	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19467      ;; #(
19468    *)
19469      # `set' quotes correctly as required by POSIX, so do not add quotes.
19470      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19471      ;;
19472    esac |
19473    sort
19474) |
19475  sed '
19476     /^ac_cv_env_/b end
19477     t clear
19478     :clear
19479     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19480     t end
19481     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19482     :end' >>confcache
19483if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19484  if test -w "$cache_file"; then
19485    if test "x$cache_file" != "x/dev/null"; then
19486      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19487printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19488      if test ! -f "$cache_file" || test -h "$cache_file"; then
19489	cat confcache >"$cache_file"
19490      else
19491        case $cache_file in #(
19492        */* | ?:*)
19493	  mv -f confcache "$cache_file"$$ &&
19494	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19495        *)
19496	  mv -f confcache "$cache_file" ;;
19497	esac
19498      fi
19499    fi
19500  else
19501    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19502printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19503  fi
19504fi
19505rm -f confcache
19506
19507test "x$prefix" = xNONE && prefix=$ac_default_prefix
19508# Let make expand exec_prefix.
19509test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19510
19511DEFS=-DHAVE_CONFIG_H
19512
19513ac_libobjs=
19514ac_ltlibobjs=
19515U=
19516for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19517  # 1. Remove the extension, and $U if already installed.
19518  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19519  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19520  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19521  #    will be set to the directory where LIBOBJS objects are built.
19522  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19523  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19524done
19525LIBOBJS=$ac_libobjs
19526
19527LTLIBOBJS=$ac_ltlibobjs
19528
19529
19530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19531printf %s "checking that generated files are newer than configure... " >&6; }
19532   if test -n "$am_sleep_pid"; then
19533     # Hide warnings about reused PIDs.
19534     wait $am_sleep_pid 2>/dev/null
19535   fi
19536   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19537printf "%s\n" "done" >&6; }
19538 if test -n "$EXEEXT"; then
19539  am__EXEEXT_TRUE=
19540  am__EXEEXT_FALSE='#'
19541else
19542  am__EXEEXT_TRUE='#'
19543  am__EXEEXT_FALSE=
19544fi
19545
19546if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19547  as_fn_error $? "conditional \"AMDEP\" was never defined.
19548Usually this means the macro was only invoked conditionally." "$LINENO" 5
19549fi
19550if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19551  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19552Usually this means the macro was only invoked conditionally." "$LINENO" 5
19553fi
19554
19555: "${CONFIG_STATUS=./config.status}"
19556ac_write_fail=0
19557ac_clean_files_save=$ac_clean_files
19558ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19560printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19561as_write_fail=0
19562cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19563#! $SHELL
19564# Generated by $as_me.
19565# Run this file to recreate the current configuration.
19566# Compiler output produced by configure, useful for debugging
19567# configure, is in config.log if it exists.
19568
19569debug=false
19570ac_cs_recheck=false
19571ac_cs_silent=false
19572
19573SHELL=\${CONFIG_SHELL-$SHELL}
19574export SHELL
19575_ASEOF
19576cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19577## -------------------- ##
19578## M4sh Initialization. ##
19579## -------------------- ##
19580
19581# Be more Bourne compatible
19582DUALCASE=1; export DUALCASE # for MKS sh
19583as_nop=:
19584if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19585then :
19586  emulate sh
19587  NULLCMD=:
19588  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19589  # is contrary to our usage.  Disable this feature.
19590  alias -g '${1+"$@"}'='"$@"'
19591  setopt NO_GLOB_SUBST
19592else $as_nop
19593  case `(set -o) 2>/dev/null` in #(
19594  *posix*) :
19595    set -o posix ;; #(
19596  *) :
19597     ;;
19598esac
19599fi
19600
19601
19602
19603# Reset variables that may have inherited troublesome values from
19604# the environment.
19605
19606# IFS needs to be set, to space, tab, and newline, in precisely that order.
19607# (If _AS_PATH_WALK were called with IFS unset, it would have the
19608# side effect of setting IFS to empty, thus disabling word splitting.)
19609# Quoting is to prevent editors from complaining about space-tab.
19610as_nl='
19611'
19612export as_nl
19613IFS=" ""	$as_nl"
19614
19615PS1='$ '
19616PS2='> '
19617PS4='+ '
19618
19619# Ensure predictable behavior from utilities with locale-dependent output.
19620LC_ALL=C
19621export LC_ALL
19622LANGUAGE=C
19623export LANGUAGE
19624
19625# We cannot yet rely on "unset" to work, but we need these variables
19626# to be unset--not just set to an empty or harmless value--now, to
19627# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19628# also avoids known problems related to "unset" and subshell syntax
19629# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19630for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19631do eval test \${$as_var+y} \
19632  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19633done
19634
19635# Ensure that fds 0, 1, and 2 are open.
19636if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19637if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19638if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19639
19640# The user is always right.
19641if ${PATH_SEPARATOR+false} :; then
19642  PATH_SEPARATOR=:
19643  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19644    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19645      PATH_SEPARATOR=';'
19646  }
19647fi
19648
19649
19650# Find who we are.  Look in the path if we contain no directory separator.
19651as_myself=
19652case $0 in #((
19653  *[\\/]* ) as_myself=$0 ;;
19654  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19655for as_dir in $PATH
19656do
19657  IFS=$as_save_IFS
19658  case $as_dir in #(((
19659    '') as_dir=./ ;;
19660    */) ;;
19661    *) as_dir=$as_dir/ ;;
19662  esac
19663    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19664  done
19665IFS=$as_save_IFS
19666
19667     ;;
19668esac
19669# We did not find ourselves, most probably we were run as `sh COMMAND'
19670# in which case we are not to be found in the path.
19671if test "x$as_myself" = x; then
19672  as_myself=$0
19673fi
19674if test ! -f "$as_myself"; then
19675  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19676  exit 1
19677fi
19678
19679
19680
19681# as_fn_error STATUS ERROR [LINENO LOG_FD]
19682# ----------------------------------------
19683# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19684# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19685# script with STATUS, using 1 if that was 0.
19686as_fn_error ()
19687{
19688  as_status=$1; test $as_status -eq 0 && as_status=1
19689  if test "$4"; then
19690    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19691    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19692  fi
19693  printf "%s\n" "$as_me: error: $2" >&2
19694  as_fn_exit $as_status
19695} # as_fn_error
19696
19697
19698
19699# as_fn_set_status STATUS
19700# -----------------------
19701# Set $? to STATUS, without forking.
19702as_fn_set_status ()
19703{
19704  return $1
19705} # as_fn_set_status
19706
19707# as_fn_exit STATUS
19708# -----------------
19709# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19710as_fn_exit ()
19711{
19712  set +e
19713  as_fn_set_status $1
19714  exit $1
19715} # as_fn_exit
19716
19717# as_fn_unset VAR
19718# ---------------
19719# Portably unset VAR.
19720as_fn_unset ()
19721{
19722  { eval $1=; unset $1;}
19723}
19724as_unset=as_fn_unset
19725
19726# as_fn_append VAR VALUE
19727# ----------------------
19728# Append the text in VALUE to the end of the definition contained in VAR. Take
19729# advantage of any shell optimizations that allow amortized linear growth over
19730# repeated appends, instead of the typical quadratic growth present in naive
19731# implementations.
19732if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19733then :
19734  eval 'as_fn_append ()
19735  {
19736    eval $1+=\$2
19737  }'
19738else $as_nop
19739  as_fn_append ()
19740  {
19741    eval $1=\$$1\$2
19742  }
19743fi # as_fn_append
19744
19745# as_fn_arith ARG...
19746# ------------------
19747# Perform arithmetic evaluation on the ARGs, and store the result in the
19748# global $as_val. Take advantage of shells that can avoid forks. The arguments
19749# must be portable across $(()) and expr.
19750if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19751then :
19752  eval 'as_fn_arith ()
19753  {
19754    as_val=$(( $* ))
19755  }'
19756else $as_nop
19757  as_fn_arith ()
19758  {
19759    as_val=`expr "$@" || test $? -eq 1`
19760  }
19761fi # as_fn_arith
19762
19763
19764if expr a : '\(a\)' >/dev/null 2>&1 &&
19765   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19766  as_expr=expr
19767else
19768  as_expr=false
19769fi
19770
19771if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19772  as_basename=basename
19773else
19774  as_basename=false
19775fi
19776
19777if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19778  as_dirname=dirname
19779else
19780  as_dirname=false
19781fi
19782
19783as_me=`$as_basename -- "$0" ||
19784$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19785	 X"$0" : 'X\(//\)$' \| \
19786	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19787printf "%s\n" X/"$0" |
19788    sed '/^.*\/\([^/][^/]*\)\/*$/{
19789	    s//\1/
19790	    q
19791	  }
19792	  /^X\/\(\/\/\)$/{
19793	    s//\1/
19794	    q
19795	  }
19796	  /^X\/\(\/\).*/{
19797	    s//\1/
19798	    q
19799	  }
19800	  s/.*/./; q'`
19801
19802# Avoid depending upon Character Ranges.
19803as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19804as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19805as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19806as_cr_digits='0123456789'
19807as_cr_alnum=$as_cr_Letters$as_cr_digits
19808
19809
19810# Determine whether it's possible to make 'echo' print without a newline.
19811# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19812# for compatibility with existing Makefiles.
19813ECHO_C= ECHO_N= ECHO_T=
19814case `echo -n x` in #(((((
19815-n*)
19816  case `echo 'xy\c'` in
19817  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19818  xy)  ECHO_C='\c';;
19819  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19820       ECHO_T='	';;
19821  esac;;
19822*)
19823  ECHO_N='-n';;
19824esac
19825
19826# For backward compatibility with old third-party macros, we provide
19827# the shell variables $as_echo and $as_echo_n.  New code should use
19828# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19829as_echo='printf %s\n'
19830as_echo_n='printf %s'
19831
19832rm -f conf$$ conf$$.exe conf$$.file
19833if test -d conf$$.dir; then
19834  rm -f conf$$.dir/conf$$.file
19835else
19836  rm -f conf$$.dir
19837  mkdir conf$$.dir 2>/dev/null
19838fi
19839if (echo >conf$$.file) 2>/dev/null; then
19840  if ln -s conf$$.file conf$$ 2>/dev/null; then
19841    as_ln_s='ln -s'
19842    # ... but there are two gotchas:
19843    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19844    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19845    # In both cases, we have to default to `cp -pR'.
19846    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19847      as_ln_s='cp -pR'
19848  elif ln conf$$.file conf$$ 2>/dev/null; then
19849    as_ln_s=ln
19850  else
19851    as_ln_s='cp -pR'
19852  fi
19853else
19854  as_ln_s='cp -pR'
19855fi
19856rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19857rmdir conf$$.dir 2>/dev/null
19858
19859
19860# as_fn_mkdir_p
19861# -------------
19862# Create "$as_dir" as a directory, including parents if necessary.
19863as_fn_mkdir_p ()
19864{
19865
19866  case $as_dir in #(
19867  -*) as_dir=./$as_dir;;
19868  esac
19869  test -d "$as_dir" || eval $as_mkdir_p || {
19870    as_dirs=
19871    while :; do
19872      case $as_dir in #(
19873      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19874      *) as_qdir=$as_dir;;
19875      esac
19876      as_dirs="'$as_qdir' $as_dirs"
19877      as_dir=`$as_dirname -- "$as_dir" ||
19878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19879	 X"$as_dir" : 'X\(//\)[^/]' \| \
19880	 X"$as_dir" : 'X\(//\)$' \| \
19881	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19882printf "%s\n" X"$as_dir" |
19883    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19884	    s//\1/
19885	    q
19886	  }
19887	  /^X\(\/\/\)[^/].*/{
19888	    s//\1/
19889	    q
19890	  }
19891	  /^X\(\/\/\)$/{
19892	    s//\1/
19893	    q
19894	  }
19895	  /^X\(\/\).*/{
19896	    s//\1/
19897	    q
19898	  }
19899	  s/.*/./; q'`
19900      test -d "$as_dir" && break
19901    done
19902    test -z "$as_dirs" || eval "mkdir $as_dirs"
19903  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19904
19905
19906} # as_fn_mkdir_p
19907if mkdir -p . 2>/dev/null; then
19908  as_mkdir_p='mkdir -p "$as_dir"'
19909else
19910  test -d ./-p && rmdir ./-p
19911  as_mkdir_p=false
19912fi
19913
19914
19915# as_fn_executable_p FILE
19916# -----------------------
19917# Test if FILE is an executable regular file.
19918as_fn_executable_p ()
19919{
19920  test -f "$1" && test -x "$1"
19921} # as_fn_executable_p
19922as_test_x='test -x'
19923as_executable_p=as_fn_executable_p
19924
19925# Sed expression to map a string onto a valid CPP name.
19926as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19927
19928# Sed expression to map a string onto a valid variable name.
19929as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19930
19931
19932exec 6>&1
19933## ----------------------------------- ##
19934## Main body of $CONFIG_STATUS script. ##
19935## ----------------------------------- ##
19936_ASEOF
19937test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19938
19939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19940# Save the log message, to keep $0 and so on meaningful, and to
19941# report actual input values of CONFIG_FILES etc. instead of their
19942# values after options handling.
19943ac_log="
19944This file was extended by libXrandr $as_me 1.5.3, which was
19945generated by GNU Autoconf 2.71.  Invocation command line was
19946
19947  CONFIG_FILES    = $CONFIG_FILES
19948  CONFIG_HEADERS  = $CONFIG_HEADERS
19949  CONFIG_LINKS    = $CONFIG_LINKS
19950  CONFIG_COMMANDS = $CONFIG_COMMANDS
19951  $ $0 $@
19952
19953on `(hostname || uname -n) 2>/dev/null | sed 1q`
19954"
19955
19956_ACEOF
19957
19958case $ac_config_files in *"
19959"*) set x $ac_config_files; shift; ac_config_files=$*;;
19960esac
19961
19962case $ac_config_headers in *"
19963"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19964esac
19965
19966
19967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19968# Files that config.status was made for.
19969config_files="$ac_config_files"
19970config_headers="$ac_config_headers"
19971config_commands="$ac_config_commands"
19972
19973_ACEOF
19974
19975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19976ac_cs_usage="\
19977\`$as_me' instantiates files and other configuration actions
19978from templates according to the current configuration.  Unless the files
19979and actions are specified as TAGs, all are instantiated by default.
19980
19981Usage: $0 [OPTION]... [TAG]...
19982
19983  -h, --help       print this help, then exit
19984  -V, --version    print version number and configuration settings, then exit
19985      --config     print configuration, then exit
19986  -q, --quiet, --silent
19987                   do not print progress messages
19988  -d, --debug      don't remove temporary files
19989      --recheck    update $as_me by reconfiguring in the same conditions
19990      --file=FILE[:TEMPLATE]
19991                   instantiate the configuration file FILE
19992      --header=FILE[:TEMPLATE]
19993                   instantiate the configuration header FILE
19994
19995Configuration files:
19996$config_files
19997
19998Configuration headers:
19999$config_headers
20000
20001Configuration commands:
20002$config_commands
20003
20004Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues>."
20005
20006_ACEOF
20007ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20008ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20010ac_cs_config='$ac_cs_config_escaped'
20011ac_cs_version="\\
20012libXrandr config.status 1.5.3
20013configured by $0, generated by GNU Autoconf 2.71,
20014  with options \\"\$ac_cs_config\\"
20015
20016Copyright (C) 2021 Free Software Foundation, Inc.
20017This config.status script is free software; the Free Software Foundation
20018gives unlimited permission to copy, distribute and modify it."
20019
20020ac_pwd='$ac_pwd'
20021srcdir='$srcdir'
20022INSTALL='$INSTALL'
20023MKDIR_P='$MKDIR_P'
20024AWK='$AWK'
20025test -n "\$AWK" || AWK=awk
20026_ACEOF
20027
20028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20029# The default lists apply if the user does not specify any file.
20030ac_need_defaults=:
20031while test $# != 0
20032do
20033  case $1 in
20034  --*=?*)
20035    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20036    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20037    ac_shift=:
20038    ;;
20039  --*=)
20040    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20041    ac_optarg=
20042    ac_shift=:
20043    ;;
20044  *)
20045    ac_option=$1
20046    ac_optarg=$2
20047    ac_shift=shift
20048    ;;
20049  esac
20050
20051  case $ac_option in
20052  # Handling of the options.
20053  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20054    ac_cs_recheck=: ;;
20055  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20056    printf "%s\n" "$ac_cs_version"; exit ;;
20057  --config | --confi | --conf | --con | --co | --c )
20058    printf "%s\n" "$ac_cs_config"; exit ;;
20059  --debug | --debu | --deb | --de | --d | -d )
20060    debug=: ;;
20061  --file | --fil | --fi | --f )
20062    $ac_shift
20063    case $ac_optarg in
20064    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20065    '') as_fn_error $? "missing file argument" ;;
20066    esac
20067    as_fn_append CONFIG_FILES " '$ac_optarg'"
20068    ac_need_defaults=false;;
20069  --header | --heade | --head | --hea )
20070    $ac_shift
20071    case $ac_optarg in
20072    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20073    esac
20074    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20075    ac_need_defaults=false;;
20076  --he | --h)
20077    # Conflict between --help and --header
20078    as_fn_error $? "ambiguous option: \`$1'
20079Try \`$0 --help' for more information.";;
20080  --help | --hel | -h )
20081    printf "%s\n" "$ac_cs_usage"; exit ;;
20082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20083  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20084    ac_cs_silent=: ;;
20085
20086  # This is an error.
20087  -*) as_fn_error $? "unrecognized option: \`$1'
20088Try \`$0 --help' for more information." ;;
20089
20090  *) as_fn_append ac_config_targets " $1"
20091     ac_need_defaults=false ;;
20092
20093  esac
20094  shift
20095done
20096
20097ac_configure_extra_args=
20098
20099if $ac_cs_silent; then
20100  exec 6>/dev/null
20101  ac_configure_extra_args="$ac_configure_extra_args --silent"
20102fi
20103
20104_ACEOF
20105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20106if \$ac_cs_recheck; then
20107  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20108  shift
20109  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20110  CONFIG_SHELL='$SHELL'
20111  export CONFIG_SHELL
20112  exec "\$@"
20113fi
20114
20115_ACEOF
20116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20117exec 5>>config.log
20118{
20119  echo
20120  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20121## Running $as_me. ##
20122_ASBOX
20123  printf "%s\n" "$ac_log"
20124} >&5
20125
20126_ACEOF
20127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20128#
20129# INIT-COMMANDS
20130#
20131AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20132
20133
20134# The HP-UX ksh and POSIX shell print the target directory to stdout
20135# if CDPATH is set.
20136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20137
20138sed_quote_subst='$sed_quote_subst'
20139double_quote_subst='$double_quote_subst'
20140delay_variable_subst='$delay_variable_subst'
20141macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20142macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20143enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20144enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20145pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20146enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20147shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20148SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20149ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20150PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20151host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20152host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20153host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20154build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20155build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20156build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20157SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20158Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20159GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20160EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20161FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20162LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20163NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20164LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20165max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20166ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20167exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20168lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20169lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20170lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20171lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20172lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20173reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20174reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20175FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20176OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20177deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20178file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20179file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20180want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20181DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20182sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20183AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20184lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20185AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20186archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20187STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20188RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20189old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20190old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20191old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20192lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20193CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20194CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20195compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20196GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20197lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20198lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20199lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20200lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20201lt_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"`'
20202lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20203nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20204lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20205lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20206objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20207MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20208lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20209lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20210lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20211lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20212lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20213need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20214MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20215DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20216NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20217LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20218OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20219OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20220libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20221shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20222extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20223archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20224enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20225export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20226whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20227compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20228old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20229old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20230archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20231archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20232module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20233module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20234with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20235allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20236no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20237hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20238hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20239hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20240hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20241hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20242hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20243hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20244inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20245link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20246always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20247export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20248exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20249include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20250prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20251postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20252file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20253variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20254need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20255need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20256version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20257runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20258shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20259shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20260libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20261library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20262soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20263install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20264postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20265postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20266finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20267finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20268hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20269sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20270configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20271configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20272hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20273enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20274enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20275enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20276old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20277striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20278
20279LTCC='$LTCC'
20280LTCFLAGS='$LTCFLAGS'
20281compiler='$compiler_DEFAULT'
20282
20283# A function that is used when there is no print builtin or printf.
20284func_fallback_echo ()
20285{
20286  eval 'cat <<_LTECHO_EOF
20287\$1
20288_LTECHO_EOF'
20289}
20290
20291# Quote evaled strings.
20292for var in SHELL \
20293ECHO \
20294PATH_SEPARATOR \
20295SED \
20296GREP \
20297EGREP \
20298FGREP \
20299LD \
20300NM \
20301LN_S \
20302lt_SP2NL \
20303lt_NL2SP \
20304reload_flag \
20305FILECMD \
20306OBJDUMP \
20307deplibs_check_method \
20308file_magic_cmd \
20309file_magic_glob \
20310want_nocaseglob \
20311DLLTOOL \
20312sharedlib_from_linklib_cmd \
20313AR \
20314archiver_list_spec \
20315STRIP \
20316RANLIB \
20317CC \
20318CFLAGS \
20319compiler \
20320lt_cv_sys_global_symbol_pipe \
20321lt_cv_sys_global_symbol_to_cdecl \
20322lt_cv_sys_global_symbol_to_import \
20323lt_cv_sys_global_symbol_to_c_name_address \
20324lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20325lt_cv_nm_interface \
20326nm_file_list_spec \
20327lt_cv_truncate_bin \
20328lt_prog_compiler_no_builtin_flag \
20329lt_prog_compiler_pic \
20330lt_prog_compiler_wl \
20331lt_prog_compiler_static \
20332lt_cv_prog_compiler_c_o \
20333need_locks \
20334MANIFEST_TOOL \
20335DSYMUTIL \
20336NMEDIT \
20337LIPO \
20338OTOOL \
20339OTOOL64 \
20340shrext_cmds \
20341export_dynamic_flag_spec \
20342whole_archive_flag_spec \
20343compiler_needs_object \
20344with_gnu_ld \
20345allow_undefined_flag \
20346no_undefined_flag \
20347hardcode_libdir_flag_spec \
20348hardcode_libdir_separator \
20349exclude_expsyms \
20350include_expsyms \
20351file_list_spec \
20352variables_saved_for_relink \
20353libname_spec \
20354library_names_spec \
20355soname_spec \
20356install_override_mode \
20357finish_eval \
20358old_striplib \
20359striplib; do
20360    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20361    *[\\\\\\\`\\"\\\$]*)
20362      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20363      ;;
20364    *)
20365      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20366      ;;
20367    esac
20368done
20369
20370# Double-quote double-evaled strings.
20371for var in reload_cmds \
20372old_postinstall_cmds \
20373old_postuninstall_cmds \
20374old_archive_cmds \
20375extract_expsyms_cmds \
20376old_archive_from_new_cmds \
20377old_archive_from_expsyms_cmds \
20378archive_cmds \
20379archive_expsym_cmds \
20380module_cmds \
20381module_expsym_cmds \
20382export_symbols_cmds \
20383prelink_cmds \
20384postlink_cmds \
20385postinstall_cmds \
20386postuninstall_cmds \
20387finish_cmds \
20388sys_lib_search_path_spec \
20389configure_time_dlsearch_path \
20390configure_time_lt_sys_library_path; do
20391    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20392    *[\\\\\\\`\\"\\\$]*)
20393      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20394      ;;
20395    *)
20396      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20397      ;;
20398    esac
20399done
20400
20401ac_aux_dir='$ac_aux_dir'
20402
20403# See if we are running on zsh, and set the options that allow our
20404# commands through without removal of \ escapes INIT.
20405if test -n "\${ZSH_VERSION+set}"; then
20406   setopt NO_GLOB_SUBST
20407fi
20408
20409
20410    PACKAGE='$PACKAGE'
20411    VERSION='$VERSION'
20412    RM='$RM'
20413    ofile='$ofile'
20414
20415
20416
20417
20418_ACEOF
20419
20420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20421
20422# Handling of arguments.
20423for ac_config_target in $ac_config_targets
20424do
20425  case $ac_config_target in
20426    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20427    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20428    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20429    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20430    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20431    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20432    "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;;
20433
20434  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20435  esac
20436done
20437
20438
20439# If the user did not use the arguments to specify the items to instantiate,
20440# then the envvar interface is used.  Set only those that are not.
20441# We use the long form for the default assignment because of an extremely
20442# bizarre bug on SunOS 4.1.3.
20443if $ac_need_defaults; then
20444  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20445  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20446  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20447fi
20448
20449# Have a temporary directory for convenience.  Make it in the build tree
20450# simply because there is no reason against having it here, and in addition,
20451# creating and moving files from /tmp can sometimes cause problems.
20452# Hook for its removal unless debugging.
20453# Note that there is a small window in which the directory will not be cleaned:
20454# after its creation but before its name has been assigned to `$tmp'.
20455$debug ||
20456{
20457  tmp= ac_tmp=
20458  trap 'exit_status=$?
20459  : "${ac_tmp:=$tmp}"
20460  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20461' 0
20462  trap 'as_fn_exit 1' 1 2 13 15
20463}
20464# Create a (secure) tmp directory for tmp files.
20465
20466{
20467  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20468  test -d "$tmp"
20469}  ||
20470{
20471  tmp=./conf$$-$RANDOM
20472  (umask 077 && mkdir "$tmp")
20473} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20474ac_tmp=$tmp
20475
20476# Set up the scripts for CONFIG_FILES section.
20477# No need to generate them if there are no CONFIG_FILES.
20478# This happens for instance with `./config.status config.h'.
20479if test -n "$CONFIG_FILES"; then
20480
20481
20482ac_cr=`echo X | tr X '\015'`
20483# On cygwin, bash can eat \r inside `` if the user requested igncr.
20484# But we know of no other shell where ac_cr would be empty at this
20485# point, so we can use a bashism as a fallback.
20486if test "x$ac_cr" = x; then
20487  eval ac_cr=\$\'\\r\'
20488fi
20489ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20490if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20491  ac_cs_awk_cr='\\r'
20492else
20493  ac_cs_awk_cr=$ac_cr
20494fi
20495
20496echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20497_ACEOF
20498
20499
20500{
20501  echo "cat >conf$$subs.awk <<_ACEOF" &&
20502  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20503  echo "_ACEOF"
20504} >conf$$subs.sh ||
20505  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20506ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20507ac_delim='%!_!# '
20508for ac_last_try in false false false false false :; do
20509  . ./conf$$subs.sh ||
20510    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20511
20512  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20513  if test $ac_delim_n = $ac_delim_num; then
20514    break
20515  elif $ac_last_try; then
20516    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20517  else
20518    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20519  fi
20520done
20521rm -f conf$$subs.sh
20522
20523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20524cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20525_ACEOF
20526sed -n '
20527h
20528s/^/S["/; s/!.*/"]=/
20529p
20530g
20531s/^[^!]*!//
20532:repl
20533t repl
20534s/'"$ac_delim"'$//
20535t delim
20536:nl
20537h
20538s/\(.\{148\}\)..*/\1/
20539t more1
20540s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20541p
20542n
20543b repl
20544:more1
20545s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20546p
20547g
20548s/.\{148\}//
20549t nl
20550:delim
20551h
20552s/\(.\{148\}\)..*/\1/
20553t more2
20554s/["\\]/\\&/g; s/^/"/; s/$/"/
20555p
20556b
20557:more2
20558s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20559p
20560g
20561s/.\{148\}//
20562t delim
20563' <conf$$subs.awk | sed '
20564/^[^""]/{
20565  N
20566  s/\n//
20567}
20568' >>$CONFIG_STATUS || ac_write_fail=1
20569rm -f conf$$subs.awk
20570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20571_ACAWK
20572cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20573  for (key in S) S_is_set[key] = 1
20574  FS = ""
20575
20576}
20577{
20578  line = $ 0
20579  nfields = split(line, field, "@")
20580  substed = 0
20581  len = length(field[1])
20582  for (i = 2; i < nfields; i++) {
20583    key = field[i]
20584    keylen = length(key)
20585    if (S_is_set[key]) {
20586      value = S[key]
20587      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20588      len += length(value) + length(field[++i])
20589      substed = 1
20590    } else
20591      len += 1 + keylen
20592  }
20593
20594  print line
20595}
20596
20597_ACAWK
20598_ACEOF
20599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20600if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20601  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20602else
20603  cat
20604fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20605  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20606_ACEOF
20607
20608# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20609# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20610# trailing colons and then remove the whole line if VPATH becomes empty
20611# (actually we leave an empty line to preserve line numbers).
20612if test "x$srcdir" = x.; then
20613  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20614h
20615s///
20616s/^/:/
20617s/[	 ]*$/:/
20618s/:\$(srcdir):/:/g
20619s/:\${srcdir}:/:/g
20620s/:@srcdir@:/:/g
20621s/^:*//
20622s/:*$//
20623x
20624s/\(=[	 ]*\).*/\1/
20625G
20626s/\n//
20627s/^[^=]*=[	 ]*$//
20628}'
20629fi
20630
20631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632fi # test -n "$CONFIG_FILES"
20633
20634# Set up the scripts for CONFIG_HEADERS section.
20635# No need to generate them if there are no CONFIG_HEADERS.
20636# This happens for instance with `./config.status Makefile'.
20637if test -n "$CONFIG_HEADERS"; then
20638cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20639BEGIN {
20640_ACEOF
20641
20642# Transform confdefs.h into an awk script `defines.awk', embedded as
20643# here-document in config.status, that substitutes the proper values into
20644# config.h.in to produce config.h.
20645
20646# Create a delimiter string that does not exist in confdefs.h, to ease
20647# handling of long lines.
20648ac_delim='%!_!# '
20649for ac_last_try in false false :; do
20650  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20651  if test -z "$ac_tt"; then
20652    break
20653  elif $ac_last_try; then
20654    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20655  else
20656    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20657  fi
20658done
20659
20660# For the awk script, D is an array of macro values keyed by name,
20661# likewise P contains macro parameters if any.  Preserve backslash
20662# newline sequences.
20663
20664ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20665sed -n '
20666s/.\{148\}/&'"$ac_delim"'/g
20667t rset
20668:rset
20669s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20670t def
20671d
20672:def
20673s/\\$//
20674t bsnl
20675s/["\\]/\\&/g
20676s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20677D["\1"]=" \3"/p
20678s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20679d
20680:bsnl
20681s/["\\]/\\&/g
20682s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20683D["\1"]=" \3\\\\\\n"\\/p
20684t cont
20685s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20686t cont
20687d
20688:cont
20689n
20690s/.\{148\}/&'"$ac_delim"'/g
20691t clear
20692:clear
20693s/\\$//
20694t bsnlc
20695s/["\\]/\\&/g; s/^/"/; s/$/"/p
20696d
20697:bsnlc
20698s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20699b cont
20700' <confdefs.h | sed '
20701s/'"$ac_delim"'/"\\\
20702"/g' >>$CONFIG_STATUS || ac_write_fail=1
20703
20704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20705  for (key in D) D_is_set[key] = 1
20706  FS = ""
20707}
20708/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20709  line = \$ 0
20710  split(line, arg, " ")
20711  if (arg[1] == "#") {
20712    defundef = arg[2]
20713    mac1 = arg[3]
20714  } else {
20715    defundef = substr(arg[1], 2)
20716    mac1 = arg[2]
20717  }
20718  split(mac1, mac2, "(") #)
20719  macro = mac2[1]
20720  prefix = substr(line, 1, index(line, defundef) - 1)
20721  if (D_is_set[macro]) {
20722    # Preserve the white space surrounding the "#".
20723    print prefix "define", macro P[macro] D[macro]
20724    next
20725  } else {
20726    # Replace #undef with comments.  This is necessary, for example,
20727    # in the case of _POSIX_SOURCE, which is predefined and required
20728    # on some systems where configure will not decide to define it.
20729    if (defundef == "undef") {
20730      print "/*", prefix defundef, macro, "*/"
20731      next
20732    }
20733  }
20734}
20735{ print }
20736_ACAWK
20737_ACEOF
20738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20739  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20740fi # test -n "$CONFIG_HEADERS"
20741
20742
20743eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20744shift
20745for ac_tag
20746do
20747  case $ac_tag in
20748  :[FHLC]) ac_mode=$ac_tag; continue;;
20749  esac
20750  case $ac_mode$ac_tag in
20751  :[FHL]*:*);;
20752  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20753  :[FH]-) ac_tag=-:-;;
20754  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20755  esac
20756  ac_save_IFS=$IFS
20757  IFS=:
20758  set x $ac_tag
20759  IFS=$ac_save_IFS
20760  shift
20761  ac_file=$1
20762  shift
20763
20764  case $ac_mode in
20765  :L) ac_source=$1;;
20766  :[FH])
20767    ac_file_inputs=
20768    for ac_f
20769    do
20770      case $ac_f in
20771      -) ac_f="$ac_tmp/stdin";;
20772      *) # Look for the file first in the build tree, then in the source tree
20773	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20774	 # because $ac_f cannot contain `:'.
20775	 test -f "$ac_f" ||
20776	   case $ac_f in
20777	   [\\/$]*) false;;
20778	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20779	   esac ||
20780	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20781      esac
20782      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20783      as_fn_append ac_file_inputs " '$ac_f'"
20784    done
20785
20786    # Let's still pretend it is `configure' which instantiates (i.e., don't
20787    # use $as_me), people would be surprised to read:
20788    #    /* config.h.  Generated by config.status.  */
20789    configure_input='Generated from '`
20790	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20791	`' by configure.'
20792    if test x"$ac_file" != x-; then
20793      configure_input="$ac_file.  $configure_input"
20794      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20795printf "%s\n" "$as_me: creating $ac_file" >&6;}
20796    fi
20797    # Neutralize special characters interpreted by sed in replacement strings.
20798    case $configure_input in #(
20799    *\&* | *\|* | *\\* )
20800       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20801       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20802    *) ac_sed_conf_input=$configure_input;;
20803    esac
20804
20805    case $ac_tag in
20806    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20807      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20808    esac
20809    ;;
20810  esac
20811
20812  ac_dir=`$as_dirname -- "$ac_file" ||
20813$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20814	 X"$ac_file" : 'X\(//\)[^/]' \| \
20815	 X"$ac_file" : 'X\(//\)$' \| \
20816	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20817printf "%s\n" X"$ac_file" |
20818    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20819	    s//\1/
20820	    q
20821	  }
20822	  /^X\(\/\/\)[^/].*/{
20823	    s//\1/
20824	    q
20825	  }
20826	  /^X\(\/\/\)$/{
20827	    s//\1/
20828	    q
20829	  }
20830	  /^X\(\/\).*/{
20831	    s//\1/
20832	    q
20833	  }
20834	  s/.*/./; q'`
20835  as_dir="$ac_dir"; as_fn_mkdir_p
20836  ac_builddir=.
20837
20838case "$ac_dir" in
20839.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20840*)
20841  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20842  # A ".." for each directory in $ac_dir_suffix.
20843  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20844  case $ac_top_builddir_sub in
20845  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20846  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20847  esac ;;
20848esac
20849ac_abs_top_builddir=$ac_pwd
20850ac_abs_builddir=$ac_pwd$ac_dir_suffix
20851# for backward compatibility:
20852ac_top_builddir=$ac_top_build_prefix
20853
20854case $srcdir in
20855  .)  # We are building in place.
20856    ac_srcdir=.
20857    ac_top_srcdir=$ac_top_builddir_sub
20858    ac_abs_top_srcdir=$ac_pwd ;;
20859  [\\/]* | ?:[\\/]* )  # Absolute name.
20860    ac_srcdir=$srcdir$ac_dir_suffix;
20861    ac_top_srcdir=$srcdir
20862    ac_abs_top_srcdir=$srcdir ;;
20863  *) # Relative name.
20864    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20865    ac_top_srcdir=$ac_top_build_prefix$srcdir
20866    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20867esac
20868ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20869
20870
20871  case $ac_mode in
20872  :F)
20873  #
20874  # CONFIG_FILE
20875  #
20876
20877  case $INSTALL in
20878  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20879  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20880  esac
20881  ac_MKDIR_P=$MKDIR_P
20882  case $MKDIR_P in
20883  [\\/$]* | ?:[\\/]* ) ;;
20884  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20885  esac
20886_ACEOF
20887
20888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20889# If the template does not know about datarootdir, expand it.
20890# FIXME: This hack should be removed a few years after 2.60.
20891ac_datarootdir_hack=; ac_datarootdir_seen=
20892ac_sed_dataroot='
20893/datarootdir/ {
20894  p
20895  q
20896}
20897/@datadir@/p
20898/@docdir@/p
20899/@infodir@/p
20900/@localedir@/p
20901/@mandir@/p'
20902case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20903*datarootdir*) ac_datarootdir_seen=yes;;
20904*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20906printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20907_ACEOF
20908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20909  ac_datarootdir_hack='
20910  s&@datadir@&$datadir&g
20911  s&@docdir@&$docdir&g
20912  s&@infodir@&$infodir&g
20913  s&@localedir@&$localedir&g
20914  s&@mandir@&$mandir&g
20915  s&\\\${datarootdir}&$datarootdir&g' ;;
20916esac
20917_ACEOF
20918
20919# Neutralize VPATH when `$srcdir' = `.'.
20920# Shell code in configure.ac might set extrasub.
20921# FIXME: do we really want to maintain this feature?
20922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20923ac_sed_extra="$ac_vpsub
20924$extrasub
20925_ACEOF
20926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20927:t
20928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20929s|@configure_input@|$ac_sed_conf_input|;t t
20930s&@top_builddir@&$ac_top_builddir_sub&;t t
20931s&@top_build_prefix@&$ac_top_build_prefix&;t t
20932s&@srcdir@&$ac_srcdir&;t t
20933s&@abs_srcdir@&$ac_abs_srcdir&;t t
20934s&@top_srcdir@&$ac_top_srcdir&;t t
20935s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20936s&@builddir@&$ac_builddir&;t t
20937s&@abs_builddir@&$ac_abs_builddir&;t t
20938s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20939s&@INSTALL@&$ac_INSTALL&;t t
20940s&@MKDIR_P@&$ac_MKDIR_P&;t t
20941$ac_datarootdir_hack
20942"
20943eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20944  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20945
20946test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20947  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20948  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20949      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20951which seems to be undefined.  Please make sure it is defined" >&5
20952printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20953which seems to be undefined.  Please make sure it is defined" >&2;}
20954
20955  rm -f "$ac_tmp/stdin"
20956  case $ac_file in
20957  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20958  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20959  esac \
20960  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20961 ;;
20962  :H)
20963  #
20964  # CONFIG_HEADER
20965  #
20966  if test x"$ac_file" != x-; then
20967    {
20968      printf "%s\n" "/* $configure_input  */" >&1 \
20969      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20970    } >"$ac_tmp/config.h" \
20971      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20972    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20973      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20974printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20975    else
20976      rm -f "$ac_file"
20977      mv "$ac_tmp/config.h" "$ac_file" \
20978	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20979    fi
20980  else
20981    printf "%s\n" "/* $configure_input  */" >&1 \
20982      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20983      || as_fn_error $? "could not create -" "$LINENO" 5
20984  fi
20985# Compute "$ac_file"'s index in $config_headers.
20986_am_arg="$ac_file"
20987_am_stamp_count=1
20988for _am_header in $config_headers :; do
20989  case $_am_header in
20990    $_am_arg | $_am_arg:* )
20991      break ;;
20992    * )
20993      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20994  esac
20995done
20996echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20997$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20998	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20999	 X"$_am_arg" : 'X\(//\)$' \| \
21000	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21001printf "%s\n" X"$_am_arg" |
21002    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21003	    s//\1/
21004	    q
21005	  }
21006	  /^X\(\/\/\)[^/].*/{
21007	    s//\1/
21008	    q
21009	  }
21010	  /^X\(\/\/\)$/{
21011	    s//\1/
21012	    q
21013	  }
21014	  /^X\(\/\).*/{
21015	    s//\1/
21016	    q
21017	  }
21018	  s/.*/./; q'`/stamp-h$_am_stamp_count
21019 ;;
21020
21021  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21022printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21023 ;;
21024  esac
21025
21026
21027  case $ac_file$ac_mode in
21028    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21029  # Older Autoconf quotes --file arguments for eval, but not when files
21030  # are listed without --file.  Let's play safe and only enable the eval
21031  # if we detect the quoting.
21032  # TODO: see whether this extra hack can be removed once we start
21033  # requiring Autoconf 2.70 or later.
21034  case $CONFIG_FILES in #(
21035  *\'*) :
21036    eval set x "$CONFIG_FILES" ;; #(
21037  *) :
21038    set x $CONFIG_FILES ;; #(
21039  *) :
21040     ;;
21041esac
21042  shift
21043  # Used to flag and report bootstrapping failures.
21044  am_rc=0
21045  for am_mf
21046  do
21047    # Strip MF so we end up with the name of the file.
21048    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21049    # Check whether this is an Automake generated Makefile which includes
21050    # dependency-tracking related rules and includes.
21051    # Grep'ing the whole file directly is not great: AIX grep has a line
21052    # limit of 2048, but all sed's we know have understand at least 4000.
21053    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21054      || continue
21055    am_dirpart=`$as_dirname -- "$am_mf" ||
21056$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21057	 X"$am_mf" : 'X\(//\)[^/]' \| \
21058	 X"$am_mf" : 'X\(//\)$' \| \
21059	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21060printf "%s\n" X"$am_mf" |
21061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21062	    s//\1/
21063	    q
21064	  }
21065	  /^X\(\/\/\)[^/].*/{
21066	    s//\1/
21067	    q
21068	  }
21069	  /^X\(\/\/\)$/{
21070	    s//\1/
21071	    q
21072	  }
21073	  /^X\(\/\).*/{
21074	    s//\1/
21075	    q
21076	  }
21077	  s/.*/./; q'`
21078    am_filepart=`$as_basename -- "$am_mf" ||
21079$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21080	 X"$am_mf" : 'X\(//\)$' \| \
21081	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21082printf "%s\n" X/"$am_mf" |
21083    sed '/^.*\/\([^/][^/]*\)\/*$/{
21084	    s//\1/
21085	    q
21086	  }
21087	  /^X\/\(\/\/\)$/{
21088	    s//\1/
21089	    q
21090	  }
21091	  /^X\/\(\/\).*/{
21092	    s//\1/
21093	    q
21094	  }
21095	  s/.*/./; q'`
21096    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21097      && sed -e '/# am--include-marker/d' "$am_filepart" \
21098        | $MAKE -f - am--depfiles" >&5
21099   (cd "$am_dirpart" \
21100      && sed -e '/# am--include-marker/d' "$am_filepart" \
21101        | $MAKE -f - am--depfiles) >&5 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); } || am_rc=$?
21105  done
21106  if test $am_rc -ne 0; then
21107    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21108printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21109as_fn_error $? "Something went wrong bootstrapping makefile fragments
21110    for automatic dependency tracking.  If GNU make was not used, consider
21111    re-running the configure script with MAKE=\"gmake\" (or whatever is
21112    necessary).  You can also try re-running configure with the
21113    '--disable-dependency-tracking' option to at least be able to build
21114    the package (albeit without support for automatic dependency tracking).
21115See \`config.log' for more details" "$LINENO" 5; }
21116  fi
21117  { am_dirpart=; unset am_dirpart;}
21118  { am_filepart=; unset am_filepart;}
21119  { am_mf=; unset am_mf;}
21120  { am_rc=; unset am_rc;}
21121  rm -f conftest-deps.mk
21122}
21123 ;;
21124    "libtool":C)
21125
21126    # See if we are running on zsh, and set the options that allow our
21127    # commands through without removal of \ escapes.
21128    if test -n "${ZSH_VERSION+set}"; then
21129      setopt NO_GLOB_SUBST
21130    fi
21131
21132    cfgfile=${ofile}T
21133    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21134    $RM "$cfgfile"
21135
21136    cat <<_LT_EOF >> "$cfgfile"
21137#! $SHELL
21138# Generated automatically by $as_me ($PACKAGE) $VERSION
21139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21140# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21141
21142# Provide generalized library-building support services.
21143# Written by Gordon Matzigkeit, 1996
21144
21145# Copyright (C) 2014 Free Software Foundation, Inc.
21146# This is free software; see the source for copying conditions.  There is NO
21147# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21148
21149# GNU Libtool is free software; you can redistribute it and/or modify
21150# it under the terms of the GNU General Public License as published by
21151# the Free Software Foundation; either version 2 of of the License, or
21152# (at your option) any later version.
21153#
21154# As a special exception to the GNU General Public License, if you
21155# distribute this file as part of a program or library that is built
21156# using GNU Libtool, you may include this file under the  same
21157# distribution terms that you use for the rest of that program.
21158#
21159# GNU Libtool is distributed in the hope that it will be useful, but
21160# WITHOUT ANY WARRANTY; without even the implied warranty of
21161# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21162# GNU General Public License for more details.
21163#
21164# You should have received a copy of the GNU General Public License
21165# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21166
21167
21168# The names of the tagged configurations supported by this script.
21169available_tags=''
21170
21171# Configured defaults for sys_lib_dlsearch_path munging.
21172: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21173
21174# ### BEGIN LIBTOOL CONFIG
21175
21176# Which release of libtool.m4 was used?
21177macro_version=$macro_version
21178macro_revision=$macro_revision
21179
21180# Whether or not to build shared libraries.
21181build_libtool_libs=$enable_shared
21182
21183# Whether or not to build static libraries.
21184build_old_libs=$enable_static
21185
21186# What type of objects to build.
21187pic_mode=$pic_mode
21188
21189# Whether or not to optimize for fast installation.
21190fast_install=$enable_fast_install
21191
21192# Shared archive member basename,for filename based shared library versioning on AIX.
21193shared_archive_member_spec=$shared_archive_member_spec
21194
21195# Shell to use when invoking shell scripts.
21196SHELL=$lt_SHELL
21197
21198# An echo program that protects backslashes.
21199ECHO=$lt_ECHO
21200
21201# The PATH separator for the build system.
21202PATH_SEPARATOR=$lt_PATH_SEPARATOR
21203
21204# The host system.
21205host_alias=$host_alias
21206host=$host
21207host_os=$host_os
21208
21209# The build system.
21210build_alias=$build_alias
21211build=$build
21212build_os=$build_os
21213
21214# A sed program that does not truncate output.
21215SED=$lt_SED
21216
21217# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21218Xsed="\$SED -e 1s/^X//"
21219
21220# A grep program that handles long lines.
21221GREP=$lt_GREP
21222
21223# An ERE matcher.
21224EGREP=$lt_EGREP
21225
21226# A literal string matcher.
21227FGREP=$lt_FGREP
21228
21229# A BSD- or MS-compatible name lister.
21230NM=$lt_NM
21231
21232# Whether we need soft or hard links.
21233LN_S=$lt_LN_S
21234
21235# What is the maximum length of a command?
21236max_cmd_len=$max_cmd_len
21237
21238# Object file suffix (normally "o").
21239objext=$ac_objext
21240
21241# Executable file suffix (normally "").
21242exeext=$exeext
21243
21244# whether the shell understands "unset".
21245lt_unset=$lt_unset
21246
21247# turn spaces into newlines.
21248SP2NL=$lt_lt_SP2NL
21249
21250# turn newlines into spaces.
21251NL2SP=$lt_lt_NL2SP
21252
21253# convert \$build file names to \$host format.
21254to_host_file_cmd=$lt_cv_to_host_file_cmd
21255
21256# convert \$build files to toolchain format.
21257to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21258
21259# A file(cmd) program that detects file types.
21260FILECMD=$lt_FILECMD
21261
21262# An object symbol dumper.
21263OBJDUMP=$lt_OBJDUMP
21264
21265# Method to check whether dependent libraries are shared objects.
21266deplibs_check_method=$lt_deplibs_check_method
21267
21268# Command to use when deplibs_check_method = "file_magic".
21269file_magic_cmd=$lt_file_magic_cmd
21270
21271# How to find potential files when deplibs_check_method = "file_magic".
21272file_magic_glob=$lt_file_magic_glob
21273
21274# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21275want_nocaseglob=$lt_want_nocaseglob
21276
21277# DLL creation program.
21278DLLTOOL=$lt_DLLTOOL
21279
21280# Command to associate shared and link libraries.
21281sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21282
21283# The archiver.
21284AR=$lt_AR
21285
21286# Flags to create an archive (by configure).
21287lt_ar_flags=$lt_ar_flags
21288
21289# Flags to create an archive.
21290AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21291
21292# How to feed a file listing to the archiver.
21293archiver_list_spec=$lt_archiver_list_spec
21294
21295# A symbol stripping program.
21296STRIP=$lt_STRIP
21297
21298# Commands used to install an old-style archive.
21299RANLIB=$lt_RANLIB
21300old_postinstall_cmds=$lt_old_postinstall_cmds
21301old_postuninstall_cmds=$lt_old_postuninstall_cmds
21302
21303# Whether to use a lock for old archive extraction.
21304lock_old_archive_extraction=$lock_old_archive_extraction
21305
21306# A C compiler.
21307LTCC=$lt_CC
21308
21309# LTCC compiler flags.
21310LTCFLAGS=$lt_CFLAGS
21311
21312# Take the output of nm and produce a listing of raw symbols and C names.
21313global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21314
21315# Transform the output of nm in a proper C declaration.
21316global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21317
21318# Transform the output of nm into a list of symbols to manually relocate.
21319global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21320
21321# Transform the output of nm in a C name address pair.
21322global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21323
21324# Transform the output of nm in a C name address pair when lib prefix is needed.
21325global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21326
21327# The name lister interface.
21328nm_interface=$lt_lt_cv_nm_interface
21329
21330# Specify filename containing input files for \$NM.
21331nm_file_list_spec=$lt_nm_file_list_spec
21332
21333# The root where to search for dependent libraries,and where our libraries should be installed.
21334lt_sysroot=$lt_sysroot
21335
21336# Command to truncate a binary pipe.
21337lt_truncate_bin=$lt_lt_cv_truncate_bin
21338
21339# The name of the directory that contains temporary libtool files.
21340objdir=$objdir
21341
21342# Used to examine libraries when file_magic_cmd begins with "file".
21343MAGIC_CMD=$MAGIC_CMD
21344
21345# Must we lock files when doing compilation?
21346need_locks=$lt_need_locks
21347
21348# Manifest tool.
21349MANIFEST_TOOL=$lt_MANIFEST_TOOL
21350
21351# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21352DSYMUTIL=$lt_DSYMUTIL
21353
21354# Tool to change global to local symbols on Mac OS X.
21355NMEDIT=$lt_NMEDIT
21356
21357# Tool to manipulate fat objects and archives on Mac OS X.
21358LIPO=$lt_LIPO
21359
21360# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21361OTOOL=$lt_OTOOL
21362
21363# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21364OTOOL64=$lt_OTOOL64
21365
21366# Old archive suffix (normally "a").
21367libext=$libext
21368
21369# Shared library suffix (normally ".so").
21370shrext_cmds=$lt_shrext_cmds
21371
21372# The commands to extract the exported symbol list from a shared archive.
21373extract_expsyms_cmds=$lt_extract_expsyms_cmds
21374
21375# Variables whose values should be saved in libtool wrapper scripts and
21376# restored at link time.
21377variables_saved_for_relink=$lt_variables_saved_for_relink
21378
21379# Do we need the "lib" prefix for modules?
21380need_lib_prefix=$need_lib_prefix
21381
21382# Do we need a version for libraries?
21383need_version=$need_version
21384
21385# Library versioning type.
21386version_type=$version_type
21387
21388# Shared library runtime path variable.
21389runpath_var=$runpath_var
21390
21391# Shared library path variable.
21392shlibpath_var=$shlibpath_var
21393
21394# Is shlibpath searched before the hard-coded library search path?
21395shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21396
21397# Format of library name prefix.
21398libname_spec=$lt_libname_spec
21399
21400# List of archive names.  First name is the real one, the rest are links.
21401# The last name is the one that the linker finds with -lNAME
21402library_names_spec=$lt_library_names_spec
21403
21404# The coded name of the library, if different from the real name.
21405soname_spec=$lt_soname_spec
21406
21407# Permission mode override for installation of shared libraries.
21408install_override_mode=$lt_install_override_mode
21409
21410# Command to use after installation of a shared archive.
21411postinstall_cmds=$lt_postinstall_cmds
21412
21413# Command to use after uninstallation of a shared archive.
21414postuninstall_cmds=$lt_postuninstall_cmds
21415
21416# Commands used to finish a libtool library installation in a directory.
21417finish_cmds=$lt_finish_cmds
21418
21419# As "finish_cmds", except a single script fragment to be evaled but
21420# not shown.
21421finish_eval=$lt_finish_eval
21422
21423# Whether we should hardcode library paths into libraries.
21424hardcode_into_libs=$hardcode_into_libs
21425
21426# Compile-time system search path for libraries.
21427sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21428
21429# Detected run-time system search path for libraries.
21430sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21431
21432# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21433configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21434
21435# Whether dlopen is supported.
21436dlopen_support=$enable_dlopen
21437
21438# Whether dlopen of programs is supported.
21439dlopen_self=$enable_dlopen_self
21440
21441# Whether dlopen of statically linked programs is supported.
21442dlopen_self_static=$enable_dlopen_self_static
21443
21444# Commands to strip libraries.
21445old_striplib=$lt_old_striplib
21446striplib=$lt_striplib
21447
21448
21449# The linker used to build libraries.
21450LD=$lt_LD
21451
21452# How to create reloadable object files.
21453reload_flag=$lt_reload_flag
21454reload_cmds=$lt_reload_cmds
21455
21456# Commands used to build an old-style archive.
21457old_archive_cmds=$lt_old_archive_cmds
21458
21459# A language specific compiler.
21460CC=$lt_compiler
21461
21462# Is the compiler the GNU compiler?
21463with_gcc=$GCC
21464
21465# Compiler flag to turn off builtin functions.
21466no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21467
21468# Additional compiler flags for building library objects.
21469pic_flag=$lt_lt_prog_compiler_pic
21470
21471# How to pass a linker flag through the compiler.
21472wl=$lt_lt_prog_compiler_wl
21473
21474# Compiler flag to prevent dynamic linking.
21475link_static_flag=$lt_lt_prog_compiler_static
21476
21477# Does compiler simultaneously support -c and -o options?
21478compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21479
21480# Whether or not to add -lc for building shared libraries.
21481build_libtool_need_lc=$archive_cmds_need_lc
21482
21483# Whether or not to disallow shared libs when runtime libs are static.
21484allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21485
21486# Compiler flag to allow reflexive dlopens.
21487export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21488
21489# Compiler flag to generate shared objects directly from archives.
21490whole_archive_flag_spec=$lt_whole_archive_flag_spec
21491
21492# Whether the compiler copes with passing no objects directly.
21493compiler_needs_object=$lt_compiler_needs_object
21494
21495# Create an old-style archive from a shared archive.
21496old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21497
21498# Create a temporary old-style archive to link instead of a shared archive.
21499old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21500
21501# Commands used to build a shared archive.
21502archive_cmds=$lt_archive_cmds
21503archive_expsym_cmds=$lt_archive_expsym_cmds
21504
21505# Commands used to build a loadable module if different from building
21506# a shared archive.
21507module_cmds=$lt_module_cmds
21508module_expsym_cmds=$lt_module_expsym_cmds
21509
21510# Whether we are building with GNU ld or not.
21511with_gnu_ld=$lt_with_gnu_ld
21512
21513# Flag that allows shared libraries with undefined symbols to be built.
21514allow_undefined_flag=$lt_allow_undefined_flag
21515
21516# Flag that enforces no undefined symbols.
21517no_undefined_flag=$lt_no_undefined_flag
21518
21519# Flag to hardcode \$libdir into a binary during linking.
21520# This must work even if \$libdir does not exist
21521hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21522
21523# Whether we need a single "-rpath" flag with a separated argument.
21524hardcode_libdir_separator=$lt_hardcode_libdir_separator
21525
21526# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21527# DIR into the resulting binary.
21528hardcode_direct=$hardcode_direct
21529
21530# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21531# DIR into the resulting binary and the resulting library dependency is
21532# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21533# library is relocated.
21534hardcode_direct_absolute=$hardcode_direct_absolute
21535
21536# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21537# into the resulting binary.
21538hardcode_minus_L=$hardcode_minus_L
21539
21540# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21541# into the resulting binary.
21542hardcode_shlibpath_var=$hardcode_shlibpath_var
21543
21544# Set to "yes" if building a shared library automatically hardcodes DIR
21545# into the library and all subsequent libraries and executables linked
21546# against it.
21547hardcode_automatic=$hardcode_automatic
21548
21549# Set to yes if linker adds runtime paths of dependent libraries
21550# to runtime path list.
21551inherit_rpath=$inherit_rpath
21552
21553# Whether libtool must link a program against all its dependency libraries.
21554link_all_deplibs=$link_all_deplibs
21555
21556# Set to "yes" if exported symbols are required.
21557always_export_symbols=$always_export_symbols
21558
21559# The commands to list exported symbols.
21560export_symbols_cmds=$lt_export_symbols_cmds
21561
21562# Symbols that should not be listed in the preloaded symbols.
21563exclude_expsyms=$lt_exclude_expsyms
21564
21565# Symbols that must always be exported.
21566include_expsyms=$lt_include_expsyms
21567
21568# Commands necessary for linking programs (against libraries) with templates.
21569prelink_cmds=$lt_prelink_cmds
21570
21571# Commands necessary for finishing linking programs.
21572postlink_cmds=$lt_postlink_cmds
21573
21574# Specify filename containing input files.
21575file_list_spec=$lt_file_list_spec
21576
21577# How to hardcode a shared library path into an executable.
21578hardcode_action=$hardcode_action
21579
21580# ### END LIBTOOL CONFIG
21581
21582_LT_EOF
21583
21584    cat <<'_LT_EOF' >> "$cfgfile"
21585
21586# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21587
21588# func_munge_path_list VARIABLE PATH
21589# -----------------------------------
21590# VARIABLE is name of variable containing _space_ separated list of
21591# directories to be munged by the contents of PATH, which is string
21592# having a format:
21593# "DIR[:DIR]:"
21594#       string "DIR[ DIR]" will be prepended to VARIABLE
21595# ":DIR[:DIR]"
21596#       string "DIR[ DIR]" will be appended to VARIABLE
21597# "DIRP[:DIRP]::[DIRA:]DIRA"
21598#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21599#       "DIRA[ DIRA]" will be appended to VARIABLE
21600# "DIR[:DIR]"
21601#       VARIABLE will be replaced by "DIR[ DIR]"
21602func_munge_path_list ()
21603{
21604    case x$2 in
21605    x)
21606        ;;
21607    *:)
21608        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21609        ;;
21610    x:*)
21611        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21612        ;;
21613    *::*)
21614        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21615        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21616        ;;
21617    *)
21618        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21619        ;;
21620    esac
21621}
21622
21623
21624# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21625func_cc_basename ()
21626{
21627    for cc_temp in $*""; do
21628      case $cc_temp in
21629        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21630        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21631        \-*) ;;
21632        *) break;;
21633      esac
21634    done
21635    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21636}
21637
21638
21639# ### END FUNCTIONS SHARED WITH CONFIGURE
21640
21641_LT_EOF
21642
21643  case $host_os in
21644  aix3*)
21645    cat <<\_LT_EOF >> "$cfgfile"
21646# AIX sometimes has problems with the GCC collect2 program.  For some
21647# reason, if we set the COLLECT_NAMES environment variable, the problems
21648# vanish in a puff of smoke.
21649if test set != "${COLLECT_NAMES+set}"; then
21650  COLLECT_NAMES=
21651  export COLLECT_NAMES
21652fi
21653_LT_EOF
21654    ;;
21655  esac
21656
21657
21658
21659ltmain=$ac_aux_dir/ltmain.sh
21660
21661
21662  # We use sed instead of cat because bash on DJGPP gets confused if
21663  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21664  # text mode, it properly converts lines to CR/LF.  This bash problem
21665  # is reportedly fixed, but why not run on old versions too?
21666  $SED '$q' "$ltmain" >> "$cfgfile" \
21667     || (rm -f "$cfgfile"; exit 1)
21668
21669   mv -f "$cfgfile" "$ofile" ||
21670    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21671  chmod +x "$ofile"
21672
21673 ;;
21674
21675  esac
21676done # for ac_tag
21677
21678
21679as_fn_exit 0
21680_ACEOF
21681ac_clean_files=$ac_clean_files_save
21682
21683test $ac_write_fail = 0 ||
21684  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21685
21686
21687# configure is writing to config.log, and then calls config.status.
21688# config.status does its own redirection, appending to config.log.
21689# Unfortunately, on DOS this fails, as config.log is still kept open
21690# by configure, so config.status won't be able to write to it; its
21691# output is simply discarded.  So we exec the FD to /dev/null,
21692# effectively closing config.log, so it can be properly (re)opened and
21693# appended to by config.status.  When coming back to configure, we
21694# need to make the FD available again.
21695if test "$no_create" != yes; then
21696  ac_cs_success=:
21697  ac_config_status_args=
21698  test "$silent" = yes &&
21699    ac_config_status_args="$ac_config_status_args --quiet"
21700  exec 5>/dev/null
21701  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21702  exec 5>>config.log
21703  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21704  # would make configure fail if this is the last instruction.
21705  $ac_cs_success || as_fn_exit 1
21706fi
21707if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21709printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21710fi
21711
21712
21713