1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libXinerama 1.1.5.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/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/libxinerama/-/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='libXinerama'
624PACKAGE_TARNAME='libXinerama'
625PACKAGE_VERSION='1.1.5'
626PACKAGE_STRING='libXinerama 1.1.5'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/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
667LINT_FALSE
668LINT_TRUE
669LINT_FLAGS
670LINT
671XINERAMA_LIBS
672XINERAMA_CFLAGS
673XTMALLOC_ZERO_CFLAGS
674XMALLOC_ZERO_CFLAGS
675MALLOC_ZERO_CFLAGS
676MAN_SUBSTS
677XORG_MAN_PAGE
678ADMIN_MAN_DIR
679DRIVER_MAN_DIR
680MISC_MAN_DIR
681FILE_MAN_DIR
682LIB_MAN_DIR
683APP_MAN_DIR
684ADMIN_MAN_SUFFIX
685DRIVER_MAN_SUFFIX
686MISC_MAN_SUFFIX
687FILE_MAN_SUFFIX
688LIB_MAN_SUFFIX
689APP_MAN_SUFFIX
690INSTALL_CMD
691PKG_CONFIG_LIBDIR
692PKG_CONFIG_PATH
693PKG_CONFIG
694CHANGELOG_CMD
695STRICT_CFLAGS
696CWARNFLAGS
697BASE_CFLAGS
698LT_SYS_LIBRARY_PATH
699OTOOL64
700OTOOL
701LIPO
702NMEDIT
703DSYMUTIL
704MANIFEST_TOOL
705RANLIB
706ac_ct_AR
707AR
708DLLTOOL
709OBJDUMP
710FILECMD
711LN_S
712NM
713ac_ct_DUMPBIN
714DUMPBIN
715LD
716FGREP
717EGREP
718GREP
719SED
720am__fastdepCC_FALSE
721am__fastdepCC_TRUE
722CCDEPMODE
723am__nodep
724AMDEPBACKSLASH
725AMDEP_FALSE
726AMDEP_TRUE
727am__include
728DEPDIR
729OBJEXT
730EXEEXT
731ac_ct_CC
732CPPFLAGS
733LDFLAGS
734CFLAGS
735CC
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744LIBTOOL
745AM_BACKSLASH
746AM_DEFAULT_VERBOSITY
747AM_DEFAULT_V
748AM_V
749CSCOPE
750ETAGS
751CTAGS
752am__untar
753am__tar
754AMTAR
755am__leading_dot
756SET_MAKE
757AWK
758mkdir_p
759MKDIR_P
760INSTALL_STRIP_PROGRAM
761STRIP
762install_sh
763MAKEINFO
764AUTOHEADER
765AUTOMAKE
766AUTOCONF
767ACLOCAL
768VERSION
769PACKAGE
770CYGPATH_W
771am__isrc
772INSTALL_DATA
773INSTALL_SCRIPT
774INSTALL_PROGRAM
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794runstatedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_URL
807PACKAGE_BUGREPORT
808PACKAGE_STRING
809PACKAGE_VERSION
810PACKAGE_TARNAME
811PACKAGE_NAME
812PATH_SEPARATOR
813SHELL
814am__quote'
815ac_subst_files=''
816ac_user_opts='
817enable_option_checking
818enable_silent_rules
819enable_shared
820enable_static
821with_pic
822enable_fast_install
823with_aix_soname
824enable_dependency_tracking
825with_gnu_ld
826with_sysroot
827enable_libtool_lock
828enable_selective_werror
829enable_strict_compilation
830enable_malloc0returnsnull
831with_lint
832'
833      ac_precious_vars='build_alias
834host_alias
835target_alias
836CC
837CFLAGS
838LDFLAGS
839LIBS
840CPPFLAGS
841LT_SYS_LIBRARY_PATH
842PKG_CONFIG
843PKG_CONFIG_PATH
844PKG_CONFIG_LIBDIR
845XINERAMA_CFLAGS
846XINERAMA_LIBS
847LINT
848LINT_FLAGS'
849
850
851# Initialize some variables set by options.
852ac_init_help=
853ac_init_version=false
854ac_unrecognized_opts=
855ac_unrecognized_sep=
856# The variables have the same names as the options, with
857# dashes changed to underlines.
858cache_file=/dev/null
859exec_prefix=NONE
860no_create=
861no_recursion=
862prefix=NONE
863program_prefix=NONE
864program_suffix=NONE
865program_transform_name=s,x,x,
866silent=
867site=
868srcdir=
869verbose=
870x_includes=NONE
871x_libraries=NONE
872
873# Installation directory options.
874# These are left unexpanded so users can "make install exec_prefix=/foo"
875# and all the variables that are supposed to be based on exec_prefix
876# by default will actually change.
877# Use braces instead of parens because sh, perl, etc. also accept them.
878# (The list follows the same order as the GNU Coding Standards.)
879bindir='${exec_prefix}/bin'
880sbindir='${exec_prefix}/sbin'
881libexecdir='${exec_prefix}/libexec'
882datarootdir='${prefix}/share'
883datadir='${datarootdir}'
884sysconfdir='${prefix}/etc'
885sharedstatedir='${prefix}/com'
886localstatedir='${prefix}/var'
887runstatedir='${localstatedir}/run'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904  # If the previous option needs an argument, assign it.
905  if test -n "$ac_prev"; then
906    eval $ac_prev=\$ac_option
907    ac_prev=
908    continue
909  fi
910
911  case $ac_option in
912  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913  *=)   ac_optarg= ;;
914  *)    ac_optarg=yes ;;
915  esac
916
917  case $ac_dashdash$ac_option in
918  --)
919    ac_dashdash=yes ;;
920
921  -bindir | --bindir | --bindi | --bind | --bin | --bi)
922    ac_prev=bindir ;;
923  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924    bindir=$ac_optarg ;;
925
926  -build | --build | --buil | --bui | --bu)
927    ac_prev=build_alias ;;
928  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929    build_alias=$ac_optarg ;;
930
931  -cache-file | --cache-file | --cache-fil | --cache-fi \
932  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933    ac_prev=cache_file ;;
934  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936    cache_file=$ac_optarg ;;
937
938  --config-cache | -C)
939    cache_file=config.cache ;;
940
941  -datadir | --datadir | --datadi | --datad)
942    ac_prev=datadir ;;
943  -datadir=* | --datadir=* | --datadi=* | --datad=*)
944    datadir=$ac_optarg ;;
945
946  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947  | --dataroo | --dataro | --datar)
948    ac_prev=datarootdir ;;
949  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951    datarootdir=$ac_optarg ;;
952
953  -disable-* | --disable-*)
954    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955    # Reject names that are not valid shell variable names.
956    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957      as_fn_error $? "invalid feature name: \`$ac_useropt'"
958    ac_useropt_orig=$ac_useropt
959    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960    case $ac_user_opts in
961      *"
962"enable_$ac_useropt"
963"*) ;;
964      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965	 ac_unrecognized_sep=', ';;
966    esac
967    eval enable_$ac_useropt=no ;;
968
969  -docdir | --docdir | --docdi | --doc | --do)
970    ac_prev=docdir ;;
971  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972    docdir=$ac_optarg ;;
973
974  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975    ac_prev=dvidir ;;
976  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977    dvidir=$ac_optarg ;;
978
979  -enable-* | --enable-*)
980    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981    # Reject names that are not valid shell variable names.
982    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983      as_fn_error $? "invalid feature name: \`$ac_useropt'"
984    ac_useropt_orig=$ac_useropt
985    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986    case $ac_user_opts in
987      *"
988"enable_$ac_useropt"
989"*) ;;
990      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991	 ac_unrecognized_sep=', ';;
992    esac
993    eval enable_$ac_useropt=\$ac_optarg ;;
994
995  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997  | --exec | --exe | --ex)
998    ac_prev=exec_prefix ;;
999  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001  | --exec=* | --exe=* | --ex=*)
1002    exec_prefix=$ac_optarg ;;
1003
1004  -gas | --gas | --ga | --g)
1005    # Obsolete; use --with-gas.
1006    with_gas=yes ;;
1007
1008  -help | --help | --hel | --he | -h)
1009    ac_init_help=long ;;
1010  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011    ac_init_help=recursive ;;
1012  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013    ac_init_help=short ;;
1014
1015  -host | --host | --hos | --ho)
1016    ac_prev=host_alias ;;
1017  -host=* | --host=* | --hos=* | --ho=*)
1018    host_alias=$ac_optarg ;;
1019
1020  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021    ac_prev=htmldir ;;
1022  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023  | --ht=*)
1024    htmldir=$ac_optarg ;;
1025
1026  -includedir | --includedir | --includedi | --included | --include \
1027  | --includ | --inclu | --incl | --inc)
1028    ac_prev=includedir ;;
1029  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030  | --includ=* | --inclu=* | --incl=* | --inc=*)
1031    includedir=$ac_optarg ;;
1032
1033  -infodir | --infodir | --infodi | --infod | --info | --inf)
1034    ac_prev=infodir ;;
1035  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036    infodir=$ac_optarg ;;
1037
1038  -libdir | --libdir | --libdi | --libd)
1039    ac_prev=libdir ;;
1040  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041    libdir=$ac_optarg ;;
1042
1043  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044  | --libexe | --libex | --libe)
1045    ac_prev=libexecdir ;;
1046  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047  | --libexe=* | --libex=* | --libe=*)
1048    libexecdir=$ac_optarg ;;
1049
1050  -localedir | --localedir | --localedi | --localed | --locale)
1051    ac_prev=localedir ;;
1052  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053    localedir=$ac_optarg ;;
1054
1055  -localstatedir | --localstatedir | --localstatedi | --localstated \
1056  | --localstate | --localstat | --localsta | --localst | --locals)
1057    ac_prev=localstatedir ;;
1058  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060    localstatedir=$ac_optarg ;;
1061
1062  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063    ac_prev=mandir ;;
1064  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065    mandir=$ac_optarg ;;
1066
1067  -nfp | --nfp | --nf)
1068    # Obsolete; use --without-fp.
1069    with_fp=no ;;
1070
1071  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072  | --no-cr | --no-c | -n)
1073    no_create=yes ;;
1074
1075  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077    no_recursion=yes ;;
1078
1079  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081  | --oldin | --oldi | --old | --ol | --o)
1082    ac_prev=oldincludedir ;;
1083  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086    oldincludedir=$ac_optarg ;;
1087
1088  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089    ac_prev=prefix ;;
1090  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091    prefix=$ac_optarg ;;
1092
1093  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094  | --program-pre | --program-pr | --program-p)
1095    ac_prev=program_prefix ;;
1096  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098    program_prefix=$ac_optarg ;;
1099
1100  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101  | --program-suf | --program-su | --program-s)
1102    ac_prev=program_suffix ;;
1103  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105    program_suffix=$ac_optarg ;;
1106
1107  -program-transform-name | --program-transform-name \
1108  | --program-transform-nam | --program-transform-na \
1109  | --program-transform-n | --program-transform- \
1110  | --program-transform | --program-transfor \
1111  | --program-transfo | --program-transf \
1112  | --program-trans | --program-tran \
1113  | --progr-tra | --program-tr | --program-t)
1114    ac_prev=program_transform_name ;;
1115  -program-transform-name=* | --program-transform-name=* \
1116  | --program-transform-nam=* | --program-transform-na=* \
1117  | --program-transform-n=* | --program-transform-=* \
1118  | --program-transform=* | --program-transfor=* \
1119  | --program-transfo=* | --program-transf=* \
1120  | --program-trans=* | --program-tran=* \
1121  | --progr-tra=* | --program-tr=* | --program-t=*)
1122    program_transform_name=$ac_optarg ;;
1123
1124  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125    ac_prev=pdfdir ;;
1126  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127    pdfdir=$ac_optarg ;;
1128
1129  -psdir | --psdir | --psdi | --psd | --ps)
1130    ac_prev=psdir ;;
1131  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132    psdir=$ac_optarg ;;
1133
1134  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135  | -silent | --silent | --silen | --sile | --sil)
1136    silent=yes ;;
1137
1138  -runstatedir | --runstatedir | --runstatedi | --runstated \
1139  | --runstate | --runstat | --runsta | --runst | --runs \
1140  | --run | --ru | --r)
1141    ac_prev=runstatedir ;;
1142  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144  | --run=* | --ru=* | --r=*)
1145    runstatedir=$ac_optarg ;;
1146
1147  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148    ac_prev=sbindir ;;
1149  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150  | --sbi=* | --sb=*)
1151    sbindir=$ac_optarg ;;
1152
1153  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155  | --sharedst | --shareds | --shared | --share | --shar \
1156  | --sha | --sh)
1157    ac_prev=sharedstatedir ;;
1158  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161  | --sha=* | --sh=*)
1162    sharedstatedir=$ac_optarg ;;
1163
1164  -site | --site | --sit)
1165    ac_prev=site ;;
1166  -site=* | --site=* | --sit=*)
1167    site=$ac_optarg ;;
1168
1169  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170    ac_prev=srcdir ;;
1171  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172    srcdir=$ac_optarg ;;
1173
1174  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175  | --syscon | --sysco | --sysc | --sys | --sy)
1176    ac_prev=sysconfdir ;;
1177  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179    sysconfdir=$ac_optarg ;;
1180
1181  -target | --target | --targe | --targ | --tar | --ta | --t)
1182    ac_prev=target_alias ;;
1183  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184    target_alias=$ac_optarg ;;
1185
1186  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187    verbose=yes ;;
1188
1189  -version | --version | --versio | --versi | --vers | -V)
1190    ac_init_version=: ;;
1191
1192  -with-* | --with-*)
1193    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194    # Reject names that are not valid shell variable names.
1195    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196      as_fn_error $? "invalid package name: \`$ac_useropt'"
1197    ac_useropt_orig=$ac_useropt
1198    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199    case $ac_user_opts in
1200      *"
1201"with_$ac_useropt"
1202"*) ;;
1203      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204	 ac_unrecognized_sep=', ';;
1205    esac
1206    eval with_$ac_useropt=\$ac_optarg ;;
1207
1208  -without-* | --without-*)
1209    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210    # Reject names that are not valid shell variable names.
1211    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212      as_fn_error $? "invalid package name: \`$ac_useropt'"
1213    ac_useropt_orig=$ac_useropt
1214    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215    case $ac_user_opts in
1216      *"
1217"with_$ac_useropt"
1218"*) ;;
1219      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220	 ac_unrecognized_sep=', ';;
1221    esac
1222    eval with_$ac_useropt=no ;;
1223
1224  --x)
1225    # Obsolete; use --with-x.
1226    with_x=yes ;;
1227
1228  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229  | --x-incl | --x-inc | --x-in | --x-i)
1230    ac_prev=x_includes ;;
1231  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233    x_includes=$ac_optarg ;;
1234
1235  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237    ac_prev=x_libraries ;;
1238  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240    x_libraries=$ac_optarg ;;
1241
1242  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244    ;;
1245
1246  *=*)
1247    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248    # Reject names that are not valid shell variable names.
1249    case $ac_envvar in #(
1250      '' | [0-9]* | *[!_$as_cr_alnum]* )
1251      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252    esac
1253    eval $ac_envvar=\$ac_optarg
1254    export $ac_envvar ;;
1255
1256  *)
1257    # FIXME: should be removed in autoconf 3.0.
1258    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262    ;;
1263
1264  esac
1265done
1266
1267if test -n "$ac_prev"; then
1268  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269  as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273  case $enable_option_checking in
1274    no) ;;
1275    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277  esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282		datadir sysconfdir sharedstatedir localstatedir includedir \
1283		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284		libdir localedir mandir runstatedir
1285do
1286  eval ac_val=\$$ac_var
1287  # Remove trailing slashes.
1288  case $ac_val in
1289    */ )
1290      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291      eval $ac_var=\$ac_val;;
1292  esac
1293  # Be sure to have absolute directory names.
1294  case $ac_val in
1295    [\\/$]* | ?:[\\/]* )  continue;;
1296    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297  esac
1298  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310  if test "x$build_alias" = x; then
1311    cross_compiling=maybe
1312  elif test "x$build_alias" != "x$host_alias"; then
1313    cross_compiling=yes
1314  fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326  as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328  as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333  ac_srcdir_defaulted=yes
1334  # Try the directory containing this script, then the parent directory.
1335  ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337	 X"$as_myself" : 'X\(//\)[^/]' \| \
1338	 X"$as_myself" : 'X\(//\)$' \| \
1339	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340printf "%s\n" X"$as_myself" |
1341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)[^/].*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)$/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\).*/{
1354	    s//\1/
1355	    q
1356	  }
1357	  s/.*/./; q'`
1358  srcdir=$ac_confdir
1359  if test ! -r "$srcdir/$ac_unique_file"; then
1360    srcdir=..
1361  fi
1362else
1363  ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372	pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375  srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_env_${ac_var}_value=\$${ac_var}
1386  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394  # Omit some internal or obsolete options to make the list less imposing.
1395  # This message is too long to be a string in the A/UX 3.1 sh.
1396  cat <<_ACEOF
1397\`configure' configures libXinerama 1.1.5 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407  -h, --help              display this help and exit
1408      --help=short        display options specific to this package
1409      --help=recursive    display the short help of all the included packages
1410  -V, --version           display version information and exit
1411  -q, --quiet, --silent   do not print \`checking ...' messages
1412      --cache-file=FILE   cache test results in FILE [disabled]
1413  -C, --config-cache      alias for \`--cache-file=config.cache'
1414  -n, --no-create         do not create output files
1415      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418  --prefix=PREFIX         install architecture-independent files in PREFIX
1419                          [$ac_default_prefix]
1420  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                          [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431  --bindir=DIR            user executables [EPREFIX/bin]
1432  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1433  --libexecdir=DIR        program executables [EPREFIX/libexec]
1434  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1435  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1436  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1437  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1438  --libdir=DIR            object code libraries [EPREFIX/lib]
1439  --includedir=DIR        C header files [PREFIX/include]
1440  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443  --infodir=DIR           info documentation [DATAROOTDIR/info]
1444  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445  --mandir=DIR            man documentation [DATAROOTDIR/man]
1446  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXinerama]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455Program names:
1456  --program-prefix=PREFIX            prepend PREFIX to installed program names
1457  --program-suffix=SUFFIX            append SUFFIX to installed program names
1458  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460System types:
1461  --build=BUILD     configure for building on BUILD [guessed]
1462  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467  case $ac_init_help in
1468     short | recursive ) echo "Configuration of libXinerama 1.1.5:";;
1469   esac
1470  cat <<\_ACEOF
1471
1472Optional Features:
1473  --disable-option-checking  ignore unrecognized --enable/--with options
1474  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476  --enable-silent-rules   less verbose build output (undo: "make V=1")
1477  --disable-silent-rules  verbose build output (undo: "make V=0")
1478  --enable-shared[=PKGS]  build shared libraries [default=yes]
1479  --enable-static[=PKGS]  build static libraries [default=yes]
1480  --enable-fast-install[=PKGS]
1481                          optimize for fast installation [default=yes]
1482  --enable-dependency-tracking
1483                          do not reject slow dependency extractors
1484  --disable-dependency-tracking
1485                          speeds up one-time build
1486  --disable-libtool-lock  avoid locking (might break parallel builds)
1487  --disable-selective-werror
1488                          Turn off selective compiler errors. (default:
1489                          enabled)
1490  --enable-strict-compilation
1491                          Enable all warnings from compiler and make them
1492                          errors (default: disabled)
1493  --enable-malloc0returnsnull
1494                          malloc(0) returns NULL (default: auto)
1495
1496Optional Packages:
1497  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1500                          both]
1501  --with-aix-soname=aix|svr4|both
1502                          shared library versioning (aka "SONAME") variant to
1503                          provide on AIX, [default=aix].
1504  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1505  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1506                          compiler's sysroot if not specified).
1507  --with-lint             Use a lint-style source code checker (default:
1508                          disabled)
1509
1510Some influential environment variables:
1511  CC          C compiler command
1512  CFLAGS      C compiler flags
1513  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1514              nonstandard directory <lib dir>
1515  LIBS        libraries to pass to the linker, e.g. -l<library>
1516  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517              you have headers in a nonstandard directory <include dir>
1518  LT_SYS_LIBRARY_PATH
1519              User-defined run-time library search path.
1520  PKG_CONFIG  path to pkg-config utility
1521  PKG_CONFIG_PATH
1522              directories to add to pkg-config's search path
1523  PKG_CONFIG_LIBDIR
1524              path overriding pkg-config's built-in search path
1525  XINERAMA_CFLAGS
1526              C compiler flags for XINERAMA, overriding pkg-config
1527  XINERAMA_LIBS
1528              linker flags for XINERAMA, overriding pkg-config
1529  LINT        Path to a lint-style command
1530  LINT_FLAGS  Flags for the lint-style command
1531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
1535Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/issues>.
1536_ACEOF
1537ac_status=$?
1538fi
1539
1540if test "$ac_init_help" = "recursive"; then
1541  # If there are subdirs, report their specific --help.
1542  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543    test -d "$ac_dir" ||
1544      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545      continue
1546    ac_builddir=.
1547
1548case "$ac_dir" in
1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550*)
1551  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552  # A ".." for each directory in $ac_dir_suffix.
1553  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554  case $ac_top_builddir_sub in
1555  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557  esac ;;
1558esac
1559ac_abs_top_builddir=$ac_pwd
1560ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561# for backward compatibility:
1562ac_top_builddir=$ac_top_build_prefix
1563
1564case $srcdir in
1565  .)  # We are building in place.
1566    ac_srcdir=.
1567    ac_top_srcdir=$ac_top_builddir_sub
1568    ac_abs_top_srcdir=$ac_pwd ;;
1569  [\\/]* | ?:[\\/]* )  # Absolute name.
1570    ac_srcdir=$srcdir$ac_dir_suffix;
1571    ac_top_srcdir=$srcdir
1572    ac_abs_top_srcdir=$srcdir ;;
1573  *) # Relative name.
1574    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575    ac_top_srcdir=$ac_top_build_prefix$srcdir
1576    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577esac
1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580    cd "$ac_dir" || { ac_status=$?; continue; }
1581    # Check for configure.gnu first; this name is used for a wrapper for
1582    # Metaconfig's "Configure" on case-insensitive file systems.
1583    if test -f "$ac_srcdir/configure.gnu"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586    elif test -f "$ac_srcdir/configure"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure" --help=recursive
1589    else
1590      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591    fi || ac_status=$?
1592    cd "$ac_pwd" || { ac_status=$?; break; }
1593  done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598  cat <<\_ACEOF
1599libXinerama configure 1.1.5
1600generated by GNU Autoconf 2.71
1601
1602Copyright (C) 2021 Free Software Foundation, Inc.
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606  exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
1612
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  rm -f conftest.$ac_objext conftest.beam
1620  if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626printf "%s\n" "$ac_try_echo"; } >&5
1627  (eval "$ac_compile") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && {
1636	 test -z "$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       } && test -s conftest.$ac_objext
1639then :
1640  ac_retval=0
1641else $as_nop
1642  printf "%s\n" "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645	ac_retval=1
1646fi
1647  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648  as_fn_set_status $ac_retval
1649
1650} # ac_fn_c_try_compile
1651
1652# ac_fn_c_try_link LINENO
1653# -----------------------
1654# Try to link conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_link ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1659  if { { ac_try="$ac_link"
1660case "(($ac_try" in
1661  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662  *) ac_try_echo=$ac_try;;
1663esac
1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665printf "%s\n" "$ac_try_echo"; } >&5
1666  (eval "$ac_link") 2>conftest.err
1667  ac_status=$?
1668  if test -s conftest.err; then
1669    grep -v '^ *+' conftest.err >conftest.er1
1670    cat conftest.er1 >&5
1671    mv -f conftest.er1 conftest.err
1672  fi
1673  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674  test $ac_status = 0; } && {
1675	 test -z "$ac_c_werror_flag" ||
1676	 test ! -s conftest.err
1677       } && test -s conftest$ac_exeext && {
1678	 test "$cross_compiling" = yes ||
1679	 test -x conftest$ac_exeext
1680       }
1681then :
1682  ac_retval=0
1683else $as_nop
1684  printf "%s\n" "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687	ac_retval=1
1688fi
1689  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691  # interfere with the next link command; also delete a directory that is
1692  # left behind by Apple's compiler.  We do this before executing the actions.
1693  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695  as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_link
1698
1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700# -------------------------------------------------------
1701# Tests whether HEADER exists and can be compiled using the include files in
1702# INCLUDES, setting the cache variable VAR accordingly.
1703ac_fn_c_check_header_compile ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707printf %s "checking for $2... " >&6; }
1708if eval test \${$3+y}
1709then :
1710  printf %s "(cached) " >&6
1711else $as_nop
1712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713/* end confdefs.h.  */
1714$4
1715#include <$2>
1716_ACEOF
1717if ac_fn_c_try_compile "$LINENO"
1718then :
1719  eval "$3=yes"
1720else $as_nop
1721  eval "$3=no"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1724fi
1725eval ac_res=\$$3
1726	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727printf "%s\n" "$ac_res" >&6; }
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730} # ac_fn_c_check_header_compile
1731
1732# ac_fn_c_check_func LINENO FUNC VAR
1733# ----------------------------------
1734# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735ac_fn_c_check_func ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739printf %s "checking for $2... " >&6; }
1740if eval test \${$3+y}
1741then :
1742  printf %s "(cached) " >&6
1743else $as_nop
1744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745/* end confdefs.h.  */
1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1748#define $2 innocuous_$2
1749
1750/* System header to define __stub macros and hopefully few prototypes,
1751   which can conflict with char $2 (); below.  */
1752
1753#include <limits.h>
1754#undef $2
1755
1756/* Override any GCC internal prototype to avoid an error.
1757   Use char because int might match the return type of a GCC
1758   builtin and then its argument prototype would still apply.  */
1759#ifdef __cplusplus
1760extern "C"
1761#endif
1762char $2 ();
1763/* The GNU C library defines this for functions which it implements
1764    to always fail with ENOSYS.  Some functions are actually named
1765    something starting with __ and the normal name is an alias.  */
1766#if defined __stub_$2 || defined __stub___$2
1767choke me
1768#endif
1769
1770int
1771main (void)
1772{
1773return $2 ();
1774  ;
1775  return 0;
1776}
1777_ACEOF
1778if ac_fn_c_try_link "$LINENO"
1779then :
1780  eval "$3=yes"
1781else $as_nop
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789printf "%s\n" "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1795# ------------------------------------------------------------------
1796# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1797# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1798ac_fn_check_decl ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  as_decl_name=`echo $2|sed 's/ *(.*//'`
1802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1803printf %s "checking whether $as_decl_name is declared... " >&6; }
1804if eval test \${$3+y}
1805then :
1806  printf %s "(cached) " >&6
1807else $as_nop
1808  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1809  eval ac_save_FLAGS=\$$6
1810  as_fn_append $6 " $5"
1811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h.  */
1813$4
1814int
1815main (void)
1816{
1817#ifndef $as_decl_name
1818#ifdef __cplusplus
1819  (void) $as_decl_use;
1820#else
1821  (void) $as_decl_name;
1822#endif
1823#endif
1824
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_compile "$LINENO"
1830then :
1831  eval "$3=yes"
1832else $as_nop
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836  eval $6=\$ac_save_FLAGS
1837
1838fi
1839eval ac_res=\$$3
1840	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841printf "%s\n" "$ac_res" >&6; }
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_check_decl
1845
1846# ac_fn_c_try_run LINENO
1847# ----------------------
1848# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1849# executables *can* be run.
1850ac_fn_c_try_run ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859printf "%s\n" "$ac_try_echo"; } >&5
1860  (eval "$ac_link") 2>&5
1861  ac_status=$?
1862  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864  { { case "(($ac_try" in
1865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866  *) ac_try_echo=$ac_try;;
1867esac
1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869printf "%s\n" "$ac_try_echo"; } >&5
1870  (eval "$ac_try") 2>&5
1871  ac_status=$?
1872  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873  test $ac_status = 0; }; }
1874then :
1875  ac_retval=0
1876else $as_nop
1877  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1878       printf "%s\n" "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881       ac_retval=$ac_status
1882fi
1883  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885  as_fn_set_status $ac_retval
1886
1887} # ac_fn_c_try_run
1888ac_configure_args_raw=
1889for ac_arg
1890do
1891  case $ac_arg in
1892  *\'*)
1893    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894  esac
1895  as_fn_append ac_configure_args_raw " '$ac_arg'"
1896done
1897
1898case $ac_configure_args_raw in
1899  *$as_nl*)
1900    ac_safe_unquote= ;;
1901  *)
1902    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1903    ac_unsafe_a="$ac_unsafe_z#~"
1904    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1905    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1906esac
1907
1908cat >config.log <<_ACEOF
1909This file contains any messages produced by compilers while
1910running configure, to aid debugging if configure makes a mistake.
1911
1912It was created by libXinerama $as_me 1.1.5, which was
1913generated by GNU Autoconf 2.71.  Invocation command line was
1914
1915  $ $0$ac_configure_args_raw
1916
1917_ACEOF
1918exec 5>>config.log
1919{
1920cat <<_ASUNAME
1921## --------- ##
1922## Platform. ##
1923## --------- ##
1924
1925hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930
1931/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1933
1934/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1935/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1936/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1938/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1939/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1940/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1941
1942_ASUNAME
1943
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947  IFS=$as_save_IFS
1948  case $as_dir in #(((
1949    '') as_dir=./ ;;
1950    */) ;;
1951    *) as_dir=$as_dir/ ;;
1952  esac
1953    printf "%s\n" "PATH: $as_dir"
1954  done
1955IFS=$as_save_IFS
1956
1957} >&5
1958
1959cat >&5 <<_ACEOF
1960
1961
1962## ----------- ##
1963## Core tests. ##
1964## ----------- ##
1965
1966_ACEOF
1967
1968
1969# Keep a trace of the command line.
1970# Strip out --no-create and --no-recursion so they do not pile up.
1971# Strip out --silent because we don't want to record it for future runs.
1972# Also quote any args containing shell meta-characters.
1973# Make two passes to allow for proper duplicate-argument suppression.
1974ac_configure_args=
1975ac_configure_args0=
1976ac_configure_args1=
1977ac_must_keep_next=false
1978for ac_pass in 1 2
1979do
1980  for ac_arg
1981  do
1982    case $ac_arg in
1983    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985    | -silent | --silent | --silen | --sile | --sil)
1986      continue ;;
1987    *\'*)
1988      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989    esac
1990    case $ac_pass in
1991    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992    2)
1993      as_fn_append ac_configure_args1 " '$ac_arg'"
1994      if test $ac_must_keep_next = true; then
1995	ac_must_keep_next=false # Got value, back to normal.
1996      else
1997	case $ac_arg in
1998	  *=* | --config-cache | -C | -disable-* | --disable-* \
1999	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001	  | -with-* | --with-* | -without-* | --without-* | --x)
2002	    case "$ac_configure_args0 " in
2003	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004	    esac
2005	    ;;
2006	  -* ) ac_must_keep_next=true ;;
2007	esac
2008      fi
2009      as_fn_append ac_configure_args " '$ac_arg'"
2010      ;;
2011    esac
2012  done
2013done
2014{ ac_configure_args0=; unset ac_configure_args0;}
2015{ ac_configure_args1=; unset ac_configure_args1;}
2016
2017# When interrupted or exit'd, cleanup temporary files, and complete
2018# config.log.  We remove comments because anyway the quotes in there
2019# would cause problems or look ugly.
2020# WARNING: Use '\'' to represent an apostrophe within the trap.
2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022trap 'exit_status=$?
2023  # Sanitize IFS.
2024  IFS=" ""	$as_nl"
2025  # Save into config.log some information that might help in debugging.
2026  {
2027    echo
2028
2029    printf "%s\n" "## ---------------- ##
2030## Cache variables. ##
2031## ---------------- ##"
2032    echo
2033    # The following way of writing the cache mishandles newlines in values,
2034(
2035  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036    eval ac_val=\$$ac_var
2037    case $ac_val in #(
2038    *${as_nl}*)
2039      case $ac_var in #(
2040      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042      esac
2043      case $ac_var in #(
2044      _ | IFS | as_nl) ;; #(
2045      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046      *) { eval $ac_var=; unset $ac_var;} ;;
2047      esac ;;
2048    esac
2049  done
2050  (set) 2>&1 |
2051    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052    *${as_nl}ac_space=\ *)
2053      sed -n \
2054	"s/'\''/'\''\\\\'\'''\''/g;
2055	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056      ;; #(
2057    *)
2058      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059      ;;
2060    esac |
2061    sort
2062)
2063    echo
2064
2065    printf "%s\n" "## ----------------- ##
2066## Output variables. ##
2067## ----------------- ##"
2068    echo
2069    for ac_var in $ac_subst_vars
2070    do
2071      eval ac_val=\$$ac_var
2072      case $ac_val in
2073      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074      esac
2075      printf "%s\n" "$ac_var='\''$ac_val'\''"
2076    done | sort
2077    echo
2078
2079    if test -n "$ac_subst_files"; then
2080      printf "%s\n" "## ------------------- ##
2081## File substitutions. ##
2082## ------------------- ##"
2083      echo
2084      for ac_var in $ac_subst_files
2085      do
2086	eval ac_val=\$$ac_var
2087	case $ac_val in
2088	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089	esac
2090	printf "%s\n" "$ac_var='\''$ac_val'\''"
2091      done | sort
2092      echo
2093    fi
2094
2095    if test -s confdefs.h; then
2096      printf "%s\n" "## ----------- ##
2097## confdefs.h. ##
2098## ----------- ##"
2099      echo
2100      cat confdefs.h
2101      echo
2102    fi
2103    test "$ac_signal" != 0 &&
2104      printf "%s\n" "$as_me: caught signal $ac_signal"
2105    printf "%s\n" "$as_me: exit $exit_status"
2106  } >&5
2107  rm -f core *.core core.conftest.* &&
2108    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109    exit $exit_status
2110' 0
2111for ac_signal in 1 2 13 15; do
2112  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
2117rm -f -r conftest* confdefs.h
2118
2119printf "%s\n" "/* confdefs.h */" > confdefs.h
2120
2121# Predefined preprocessor variables.
2122
2123printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2124
2125printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2126
2127printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2128
2129printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2130
2131printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2132
2133printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2134
2135
2136# Let the site file select an alternate cache file if it wants to.
2137# Prefer an explicitly selected file to automatically selected ones.
2138if test -n "$CONFIG_SITE"; then
2139  ac_site_files="$CONFIG_SITE"
2140elif test "x$prefix" != xNONE; then
2141  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2142else
2143  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2144fi
2145
2146for ac_site_file in $ac_site_files
2147do
2148  case $ac_site_file in #(
2149  */*) :
2150     ;; #(
2151  *) :
2152    ac_site_file=./$ac_site_file ;;
2153esac
2154  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2155    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2157    sed 's/^/| /' "$ac_site_file" >&5
2158    . "$ac_site_file" \
2159      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2161as_fn_error $? "failed to load site script $ac_site_file
2162See \`config.log' for more details" "$LINENO" 5; }
2163  fi
2164done
2165
2166if test -r "$cache_file"; then
2167  # Some versions of bash will fail to source /dev/null (special files
2168  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2169  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2172    case $cache_file in
2173      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174      *)                      . "./$cache_file";;
2175    esac
2176  fi
2177else
2178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2180  >$cache_file
2181fi
2182
2183# Test code for whether the C compiler supports C89 (global declarations)
2184ac_c_conftest_c89_globals='
2185/* Does the compiler advertise C89 conformance?
2186   Do not test the value of __STDC__, because some compilers set it to 0
2187   while being otherwise adequately conformant. */
2188#if !defined __STDC__
2189# error "Compiler does not advertise C89 conformance"
2190#endif
2191
2192#include <stddef.h>
2193#include <stdarg.h>
2194struct stat;
2195/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2196struct buf { int x; };
2197struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2198static char *e (p, i)
2199     char **p;
2200     int i;
2201{
2202  return p[i];
2203}
2204static char *f (char * (*g) (char **, int), char **p, ...)
2205{
2206  char *s;
2207  va_list v;
2208  va_start (v,p);
2209  s = g (p, va_arg (v,int));
2210  va_end (v);
2211  return s;
2212}
2213
2214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2215   function prototypes and stuff, but not \xHH hex character constants.
2216   These do not provoke an error unfortunately, instead are silently treated
2217   as an "x".  The following induces an error, until -std is added to get
2218   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2219   array size at least.  It is necessary to write \x00 == 0 to get something
2220   that is true only with -std.  */
2221int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2222
2223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2224   inside strings and character constants.  */
2225#define FOO(x) '\''x'\''
2226int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2227
2228int test (int i, double x);
2229struct s1 {int (*f) (int a);};
2230struct s2 {int (*f) (double a);};
2231int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2232               int, int);'
2233
2234# Test code for whether the C compiler supports C89 (body of main).
2235ac_c_conftest_c89_main='
2236ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2237'
2238
2239# Test code for whether the C compiler supports C99 (global declarations)
2240ac_c_conftest_c99_globals='
2241// Does the compiler advertise C99 conformance?
2242#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2243# error "Compiler does not advertise C99 conformance"
2244#endif
2245
2246#include <stdbool.h>
2247extern int puts (const char *);
2248extern int printf (const char *, ...);
2249extern int dprintf (int, const char *, ...);
2250extern void *malloc (size_t);
2251
2252// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2253// dprintf is used instead of fprintf to avoid needing to declare
2254// FILE and stderr.
2255#define debug(...) dprintf (2, __VA_ARGS__)
2256#define showlist(...) puts (#__VA_ARGS__)
2257#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2258static void
2259test_varargs_macros (void)
2260{
2261  int x = 1234;
2262  int y = 5678;
2263  debug ("Flag");
2264  debug ("X = %d\n", x);
2265  showlist (The first, second, and third items.);
2266  report (x>y, "x is %d but y is %d", x, y);
2267}
2268
2269// Check long long types.
2270#define BIG64 18446744073709551615ull
2271#define BIG32 4294967295ul
2272#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2273#if !BIG_OK
2274  #error "your preprocessor is broken"
2275#endif
2276#if BIG_OK
2277#else
2278  #error "your preprocessor is broken"
2279#endif
2280static long long int bignum = -9223372036854775807LL;
2281static unsigned long long int ubignum = BIG64;
2282
2283struct incomplete_array
2284{
2285  int datasize;
2286  double data[];
2287};
2288
2289struct named_init {
2290  int number;
2291  const wchar_t *name;
2292  double average;
2293};
2294
2295typedef const char *ccp;
2296
2297static inline int
2298test_restrict (ccp restrict text)
2299{
2300  // See if C++-style comments work.
2301  // Iterate through items via the restricted pointer.
2302  // Also check for declarations in for loops.
2303  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2304    continue;
2305  return 0;
2306}
2307
2308// Check varargs and va_copy.
2309static bool
2310test_varargs (const char *format, ...)
2311{
2312  va_list args;
2313  va_start (args, format);
2314  va_list args_copy;
2315  va_copy (args_copy, args);
2316
2317  const char *str = "";
2318  int number = 0;
2319  float fnumber = 0;
2320
2321  while (*format)
2322    {
2323      switch (*format++)
2324	{
2325	case '\''s'\'': // string
2326	  str = va_arg (args_copy, const char *);
2327	  break;
2328	case '\''d'\'': // int
2329	  number = va_arg (args_copy, int);
2330	  break;
2331	case '\''f'\'': // float
2332	  fnumber = va_arg (args_copy, double);
2333	  break;
2334	default:
2335	  break;
2336	}
2337    }
2338  va_end (args_copy);
2339  va_end (args);
2340
2341  return *str && number && fnumber;
2342}
2343'
2344
2345# Test code for whether the C compiler supports C99 (body of main).
2346ac_c_conftest_c99_main='
2347  // Check bool.
2348  _Bool success = false;
2349  success |= (argc != 0);
2350
2351  // Check restrict.
2352  if (test_restrict ("String literal") == 0)
2353    success = true;
2354  char *restrict newvar = "Another string";
2355
2356  // Check varargs.
2357  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2358  test_varargs_macros ();
2359
2360  // Check flexible array members.
2361  struct incomplete_array *ia =
2362    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2363  ia->datasize = 10;
2364  for (int i = 0; i < ia->datasize; ++i)
2365    ia->data[i] = i * 1.234;
2366
2367  // Check named initializers.
2368  struct named_init ni = {
2369    .number = 34,
2370    .name = L"Test wide string",
2371    .average = 543.34343,
2372  };
2373
2374  ni.number = 58;
2375
2376  int dynamic_array[ni.number];
2377  dynamic_array[0] = argv[0][0];
2378  dynamic_array[ni.number - 1] = 543;
2379
2380  // work around unused variable warnings
2381  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2382	 || dynamic_array[ni.number - 1] != 543);
2383'
2384
2385# Test code for whether the C compiler supports C11 (global declarations)
2386ac_c_conftest_c11_globals='
2387// Does the compiler advertise C11 conformance?
2388#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2389# error "Compiler does not advertise C11 conformance"
2390#endif
2391
2392// Check _Alignas.
2393char _Alignas (double) aligned_as_double;
2394char _Alignas (0) no_special_alignment;
2395extern char aligned_as_int;
2396char _Alignas (0) _Alignas (int) aligned_as_int;
2397
2398// Check _Alignof.
2399enum
2400{
2401  int_alignment = _Alignof (int),
2402  int_array_alignment = _Alignof (int[100]),
2403  char_alignment = _Alignof (char)
2404};
2405_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2406
2407// Check _Noreturn.
2408int _Noreturn does_not_return (void) { for (;;) continue; }
2409
2410// Check _Static_assert.
2411struct test_static_assert
2412{
2413  int x;
2414  _Static_assert (sizeof (int) <= sizeof (long int),
2415                  "_Static_assert does not work in struct");
2416  long int y;
2417};
2418
2419// Check UTF-8 literals.
2420#define u8 syntax error!
2421char const utf8_literal[] = u8"happens to be ASCII" "another string";
2422
2423// Check duplicate typedefs.
2424typedef long *long_ptr;
2425typedef long int *long_ptr;
2426typedef long_ptr long_ptr;
2427
2428// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2429struct anonymous
2430{
2431  union {
2432    struct { int i; int j; };
2433    struct { int k; long int l; } w;
2434  };
2435  int m;
2436} v1;
2437'
2438
2439# Test code for whether the C compiler supports C11 (body of main).
2440ac_c_conftest_c11_main='
2441  _Static_assert ((offsetof (struct anonymous, i)
2442		   == offsetof (struct anonymous, w.k)),
2443		  "Anonymous union alignment botch");
2444  v1.i = 2;
2445  v1.w.k = 5;
2446  ok |= v1.i != 5;
2447'
2448
2449# Test code for whether the C compiler supports C11 (complete).
2450ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2451${ac_c_conftest_c99_globals}
2452${ac_c_conftest_c11_globals}
2453
2454int
2455main (int argc, char **argv)
2456{
2457  int ok = 0;
2458  ${ac_c_conftest_c89_main}
2459  ${ac_c_conftest_c99_main}
2460  ${ac_c_conftest_c11_main}
2461  return ok;
2462}
2463"
2464
2465# Test code for whether the C compiler supports C99 (complete).
2466ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2467${ac_c_conftest_c99_globals}
2468
2469int
2470main (int argc, char **argv)
2471{
2472  int ok = 0;
2473  ${ac_c_conftest_c89_main}
2474  ${ac_c_conftest_c99_main}
2475  return ok;
2476}
2477"
2478
2479# Test code for whether the C compiler supports C89 (complete).
2480ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2481
2482int
2483main (int argc, char **argv)
2484{
2485  int ok = 0;
2486  ${ac_c_conftest_c89_main}
2487  return ok;
2488}
2489"
2490
2491as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2492as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2493as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2494as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2495as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2496as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2497as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2498as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2499as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2500
2501# Auxiliary files required by this configure script.
2502ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2503
2504# Locations in which to look for auxiliary files.
2505ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2506
2507# Search for a directory containing all of the required auxiliary files,
2508# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2509# If we don't find one directory that contains all the files we need,
2510# we report the set of missing files from the *first* directory in
2511# $ac_aux_dir_candidates and give up.
2512ac_missing_aux_files=""
2513ac_first_candidate=:
2514printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516as_found=false
2517for as_dir in $ac_aux_dir_candidates
2518do
2519  IFS=$as_save_IFS
2520  case $as_dir in #(((
2521    '') as_dir=./ ;;
2522    */) ;;
2523    *) as_dir=$as_dir/ ;;
2524  esac
2525  as_found=:
2526
2527  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2528  ac_aux_dir_found=yes
2529  ac_install_sh=
2530  for ac_aux in $ac_aux_files
2531  do
2532    # As a special case, if "install-sh" is required, that requirement
2533    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2534    # and $ac_install_sh is set appropriately for whichever one is found.
2535    if test x"$ac_aux" = x"install-sh"
2536    then
2537      if test -f "${as_dir}install-sh"; then
2538        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2539        ac_install_sh="${as_dir}install-sh -c"
2540      elif test -f "${as_dir}install.sh"; then
2541        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2542        ac_install_sh="${as_dir}install.sh -c"
2543      elif test -f "${as_dir}shtool"; then
2544        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2545        ac_install_sh="${as_dir}shtool install -c"
2546      else
2547        ac_aux_dir_found=no
2548        if $ac_first_candidate; then
2549          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2550        else
2551          break
2552        fi
2553      fi
2554    else
2555      if test -f "${as_dir}${ac_aux}"; then
2556        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2557      else
2558        ac_aux_dir_found=no
2559        if $ac_first_candidate; then
2560          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2561        else
2562          break
2563        fi
2564      fi
2565    fi
2566  done
2567  if test "$ac_aux_dir_found" = yes; then
2568    ac_aux_dir="$as_dir"
2569    break
2570  fi
2571  ac_first_candidate=false
2572
2573  as_found=false
2574done
2575IFS=$as_save_IFS
2576if $as_found
2577then :
2578
2579else $as_nop
2580  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2581fi
2582
2583
2584# These three variables are undocumented and unsupported,
2585# and are intended to be withdrawn in a future Autoconf release.
2586# They can cause serious problems if a builder's source tree is in a directory
2587# whose full name contains unusual characters.
2588if test -f "${ac_aux_dir}config.guess"; then
2589  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2590fi
2591if test -f "${ac_aux_dir}config.sub"; then
2592  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2593fi
2594if test -f "$ac_aux_dir/configure"; then
2595  ac_configure="$SHELL ${ac_aux_dir}configure"
2596fi
2597
2598# Check that the precious variables saved in the cache have kept the same
2599# value.
2600ac_cache_corrupted=false
2601for ac_var in $ac_precious_vars; do
2602  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603  eval ac_new_set=\$ac_env_${ac_var}_set
2604  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605  eval ac_new_val=\$ac_env_${ac_var}_value
2606  case $ac_old_set,$ac_new_set in
2607    set,)
2608      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610      ac_cache_corrupted=: ;;
2611    ,set)
2612      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614      ac_cache_corrupted=: ;;
2615    ,);;
2616    *)
2617      if test "x$ac_old_val" != "x$ac_new_val"; then
2618	# differences in whitespace do not lead to failure.
2619	ac_old_val_w=`echo x $ac_old_val`
2620	ac_new_val_w=`echo x $ac_new_val`
2621	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624	  ac_cache_corrupted=:
2625	else
2626	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628	  eval $ac_var=\$ac_old_val
2629	fi
2630	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2631printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2632	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2633printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2634      fi;;
2635  esac
2636  # Pass precious variables to config.status.
2637  if test "$ac_new_set" = set; then
2638    case $ac_new_val in
2639    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640    *) ac_arg=$ac_var=$ac_new_val ;;
2641    esac
2642    case " $ac_configure_args " in
2643      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2644      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645    esac
2646  fi
2647done
2648if $ac_cache_corrupted; then
2649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2653  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2654	    and start over" "$LINENO" 5
2655fi
2656## -------------------- ##
2657## Main body of script. ##
2658## -------------------- ##
2659
2660ac_ext=c
2661ac_cpp='$CPP $CPPFLAGS'
2662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666
2667
2668ac_config_headers="$ac_config_headers config.h"
2669
2670
2671# Initialize Automake
2672am__api_version='1.16'
2673
2674
2675
2676  # Find a good install program.  We prefer a C program (faster),
2677# so one script is as good as another.  But avoid the broken or
2678# incompatible versions:
2679# SysV /etc/install, /usr/sbin/install
2680# SunOS /usr/etc/install
2681# IRIX /sbin/install
2682# AIX /bin/install
2683# AmigaOS /C/install, which installs bootblocks on floppy discs
2684# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2685# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2686# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2687# OS/2's system install, which has a completely different semantic
2688# ./install, which can be erroneously created by make from ./install.sh.
2689# Reject install programs that cannot install multiple files.
2690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2691printf %s "checking for a BSD-compatible install... " >&6; }
2692if test -z "$INSTALL"; then
2693if test ${ac_cv_path_install+y}
2694then :
2695  printf %s "(cached) " >&6
2696else $as_nop
2697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698for as_dir in $PATH
2699do
2700  IFS=$as_save_IFS
2701  case $as_dir in #(((
2702    '') as_dir=./ ;;
2703    */) ;;
2704    *) as_dir=$as_dir/ ;;
2705  esac
2706    # Account for fact that we put trailing slashes in our PATH walk.
2707case $as_dir in #((
2708  ./ | /[cC]/* | \
2709  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2710  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2711  /usr/ucb/* ) ;;
2712  *)
2713    # OSF1 and SCO ODT 3.0 have their own names for install.
2714    # Don't use installbsd from OSF since it installs stuff as root
2715    # by default.
2716    for ac_prog in ginstall scoinst install; do
2717      for ac_exec_ext in '' $ac_executable_extensions; do
2718	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2719	  if test $ac_prog = install &&
2720	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721	    # AIX install.  It has an incompatible calling convention.
2722	    :
2723	  elif test $ac_prog = install &&
2724	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725	    # program-specific install script used by HP pwplus--don't use.
2726	    :
2727	  else
2728	    rm -rf conftest.one conftest.two conftest.dir
2729	    echo one > conftest.one
2730	    echo two > conftest.two
2731	    mkdir conftest.dir
2732	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2733	      test -s conftest.one && test -s conftest.two &&
2734	      test -s conftest.dir/conftest.one &&
2735	      test -s conftest.dir/conftest.two
2736	    then
2737	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2738	      break 3
2739	    fi
2740	  fi
2741	fi
2742      done
2743    done
2744    ;;
2745esac
2746
2747  done
2748IFS=$as_save_IFS
2749
2750rm -rf conftest.one conftest.two conftest.dir
2751
2752fi
2753  if test ${ac_cv_path_install+y}; then
2754    INSTALL=$ac_cv_path_install
2755  else
2756    # As a last resort, use the slow shell script.  Don't cache a
2757    # value for INSTALL within a source directory, because that will
2758    # break other packages using the cache if that directory is
2759    # removed, or if the value is a relative name.
2760    INSTALL=$ac_install_sh
2761  fi
2762fi
2763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2764printf "%s\n" "$INSTALL" >&6; }
2765
2766# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2767# It thinks the first close brace ends the variable substitution.
2768test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2769
2770test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2771
2772test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2773
2774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2775printf %s "checking whether build environment is sane... " >&6; }
2776# Reject unsafe characters in $srcdir or the absolute working directory
2777# name.  Accept space and tab only in the latter.
2778am_lf='
2779'
2780case `pwd` in
2781  *[\\\"\#\$\&\'\`$am_lf]*)
2782    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2783esac
2784case $srcdir in
2785  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2786    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2787esac
2788
2789# Do 'set' in a subshell so we don't clobber the current shell's
2790# arguments.  Must try -L first in case configure is actually a
2791# symlink; some systems play weird games with the mod time of symlinks
2792# (eg FreeBSD returns the mod time of the symlink's containing
2793# directory).
2794if (
2795   am_has_slept=no
2796   for am_try in 1 2; do
2797     echo "timestamp, slept: $am_has_slept" > conftest.file
2798     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2799     if test "$*" = "X"; then
2800	# -L didn't work.
2801	set X `ls -t "$srcdir/configure" conftest.file`
2802     fi
2803     if test "$*" != "X $srcdir/configure conftest.file" \
2804	&& test "$*" != "X conftest.file $srcdir/configure"; then
2805
2806	# If neither matched, then we have a broken ls.  This can happen
2807	# if, for instance, CONFIG_SHELL is bash and it inherits a
2808	# broken ls alias from the environment.  This has actually
2809	# happened.  Such a system could not be considered "sane".
2810	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2811  alias in your environment" "$LINENO" 5
2812     fi
2813     if test "$2" = conftest.file || test $am_try -eq 2; then
2814       break
2815     fi
2816     # Just in case.
2817     sleep 1
2818     am_has_slept=yes
2819   done
2820   test "$2" = conftest.file
2821   )
2822then
2823   # Ok.
2824   :
2825else
2826   as_fn_error $? "newly created file is older than distributed files!
2827Check your system clock" "$LINENO" 5
2828fi
2829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2830printf "%s\n" "yes" >&6; }
2831# If we didn't sleep, we still need to ensure time stamps of config.status and
2832# generated files are strictly newer.
2833am_sleep_pid=
2834if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2835  ( sleep 1 ) &
2836  am_sleep_pid=$!
2837fi
2838
2839rm -f conftest.file
2840
2841test "$program_prefix" != NONE &&
2842  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2843# Use a double $ so make ignores it.
2844test "$program_suffix" != NONE &&
2845  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2846# Double any \ or $.
2847# By default was `s,x,x', remove it if useless.
2848ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2849program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2850
2851
2852# Expand $ac_aux_dir to an absolute path.
2853am_aux_dir=`cd "$ac_aux_dir" && pwd`
2854
2855
2856  if test x"${MISSING+set}" != xset; then
2857  MISSING="\${SHELL} '$am_aux_dir/missing'"
2858fi
2859# Use eval to expand $SHELL
2860if eval "$MISSING --is-lightweight"; then
2861  am_missing_run="$MISSING "
2862else
2863  am_missing_run=
2864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2865printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2866fi
2867
2868if test x"${install_sh+set}" != xset; then
2869  case $am_aux_dir in
2870  *\ * | *\	*)
2871    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2872  *)
2873    install_sh="\${SHELL} $am_aux_dir/install-sh"
2874  esac
2875fi
2876
2877# Installed binaries are usually stripped using 'strip' when the user
2878# run "make install-strip".  However 'strip' might not be the right
2879# tool to use in cross-compilation environments, therefore Automake
2880# will honor the 'STRIP' environment variable to overrule this program.
2881if test "$cross_compiling" != no; then
2882  if test -n "$ac_tool_prefix"; then
2883  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2884set dummy ${ac_tool_prefix}strip; ac_word=$2
2885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886printf %s "checking for $ac_word... " >&6; }
2887if test ${ac_cv_prog_STRIP+y}
2888then :
2889  printf %s "(cached) " >&6
2890else $as_nop
2891  if test -n "$STRIP"; then
2892  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  case $as_dir in #(((
2899    '') as_dir=./ ;;
2900    */) ;;
2901    *) as_dir=$as_dir/ ;;
2902  esac
2903    for ac_exec_ext in '' $ac_executable_extensions; do
2904  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2905    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2906    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2907    break 2
2908  fi
2909done
2910  done
2911IFS=$as_save_IFS
2912
2913fi
2914fi
2915STRIP=$ac_cv_prog_STRIP
2916if test -n "$STRIP"; then
2917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2918printf "%s\n" "$STRIP" >&6; }
2919else
2920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921printf "%s\n" "no" >&6; }
2922fi
2923
2924
2925fi
2926if test -z "$ac_cv_prog_STRIP"; then
2927  ac_ct_STRIP=$STRIP
2928  # Extract the first word of "strip", so it can be a program name with args.
2929set dummy strip; ac_word=$2
2930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931printf %s "checking for $ac_word... " >&6; }
2932if test ${ac_cv_prog_ac_ct_STRIP+y}
2933then :
2934  printf %s "(cached) " >&6
2935else $as_nop
2936  if test -n "$ac_ct_STRIP"; then
2937  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  case $as_dir in #(((
2944    '') as_dir=./ ;;
2945    */) ;;
2946    *) as_dir=$as_dir/ ;;
2947  esac
2948    for ac_exec_ext in '' $ac_executable_extensions; do
2949  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2950    ac_cv_prog_ac_ct_STRIP="strip"
2951    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2952    break 2
2953  fi
2954done
2955  done
2956IFS=$as_save_IFS
2957
2958fi
2959fi
2960ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2961if test -n "$ac_ct_STRIP"; then
2962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2963printf "%s\n" "$ac_ct_STRIP" >&6; }
2964else
2965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966printf "%s\n" "no" >&6; }
2967fi
2968
2969  if test "x$ac_ct_STRIP" = x; then
2970    STRIP=":"
2971  else
2972    case $cross_compiling:$ac_tool_warned in
2973yes:)
2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976ac_tool_warned=yes ;;
2977esac
2978    STRIP=$ac_ct_STRIP
2979  fi
2980else
2981  STRIP="$ac_cv_prog_STRIP"
2982fi
2983
2984fi
2985INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2986
2987
2988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2989printf %s "checking for a race-free mkdir -p... " >&6; }
2990if test -z "$MKDIR_P"; then
2991  if test ${ac_cv_path_mkdir+y}
2992then :
2993  printf %s "(cached) " >&6
2994else $as_nop
2995  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2997do
2998  IFS=$as_save_IFS
2999  case $as_dir in #(((
3000    '') as_dir=./ ;;
3001    */) ;;
3002    *) as_dir=$as_dir/ ;;
3003  esac
3004    for ac_prog in mkdir gmkdir; do
3005	 for ac_exec_ext in '' $ac_executable_extensions; do
3006	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3007	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3008	     'mkdir ('*'coreutils) '* | \
3009	     'BusyBox '* | \
3010	     'mkdir (fileutils) '4.1*)
3011	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3012	       break 3;;
3013	   esac
3014	 done
3015       done
3016  done
3017IFS=$as_save_IFS
3018
3019fi
3020
3021  test -d ./--version && rmdir ./--version
3022  if test ${ac_cv_path_mkdir+y}; then
3023    MKDIR_P="$ac_cv_path_mkdir -p"
3024  else
3025    # As a last resort, use the slow shell script.  Don't cache a
3026    # value for MKDIR_P within a source directory, because that will
3027    # break other packages using the cache if that directory is
3028    # removed, or if the value is a relative name.
3029    MKDIR_P="$ac_install_sh -d"
3030  fi
3031fi
3032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3033printf "%s\n" "$MKDIR_P" >&6; }
3034
3035for ac_prog in gawk mawk nawk awk
3036do
3037  # Extract the first word of "$ac_prog", so it can be a program name with args.
3038set dummy $ac_prog; ac_word=$2
3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040printf %s "checking for $ac_word... " >&6; }
3041if test ${ac_cv_prog_AWK+y}
3042then :
3043  printf %s "(cached) " >&6
3044else $as_nop
3045  if test -n "$AWK"; then
3046  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3047else
3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051  IFS=$as_save_IFS
3052  case $as_dir in #(((
3053    '') as_dir=./ ;;
3054    */) ;;
3055    *) as_dir=$as_dir/ ;;
3056  esac
3057    for ac_exec_ext in '' $ac_executable_extensions; do
3058  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_AWK="$ac_prog"
3060    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064  done
3065IFS=$as_save_IFS
3066
3067fi
3068fi
3069AWK=$ac_cv_prog_AWK
3070if test -n "$AWK"; then
3071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3072printf "%s\n" "$AWK" >&6; }
3073else
3074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075printf "%s\n" "no" >&6; }
3076fi
3077
3078
3079  test -n "$AWK" && break
3080done
3081
3082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3083printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3084set x ${MAKE-make}
3085ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3086if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3087then :
3088  printf %s "(cached) " >&6
3089else $as_nop
3090  cat >conftest.make <<\_ACEOF
3091SHELL = /bin/sh
3092all:
3093	@echo '@@@%%%=$(MAKE)=@@@%%%'
3094_ACEOF
3095# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3096case `${MAKE-make} -f conftest.make 2>/dev/null` in
3097  *@@@%%%=?*=@@@%%%*)
3098    eval ac_cv_prog_make_${ac_make}_set=yes;;
3099  *)
3100    eval ac_cv_prog_make_${ac_make}_set=no;;
3101esac
3102rm -f conftest.make
3103fi
3104if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106printf "%s\n" "yes" >&6; }
3107  SET_MAKE=
3108else
3109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110printf "%s\n" "no" >&6; }
3111  SET_MAKE="MAKE=${MAKE-make}"
3112fi
3113
3114rm -rf .tst 2>/dev/null
3115mkdir .tst 2>/dev/null
3116if test -d .tst; then
3117  am__leading_dot=.
3118else
3119  am__leading_dot=_
3120fi
3121rmdir .tst 2>/dev/null
3122
3123# Check whether --enable-silent-rules was given.
3124if test ${enable_silent_rules+y}
3125then :
3126  enableval=$enable_silent_rules;
3127fi
3128
3129case $enable_silent_rules in # (((
3130  yes) AM_DEFAULT_VERBOSITY=0;;
3131   no) AM_DEFAULT_VERBOSITY=1;;
3132    *) AM_DEFAULT_VERBOSITY=1;;
3133esac
3134am_make=${MAKE-make}
3135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3136printf %s "checking whether $am_make supports nested variables... " >&6; }
3137if test ${am_cv_make_support_nested_variables+y}
3138then :
3139  printf %s "(cached) " >&6
3140else $as_nop
3141  if printf "%s\n" 'TRUE=$(BAR$(V))
3142BAR0=false
3143BAR1=true
3144V=1
3145am__doit:
3146	@$(TRUE)
3147.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3148  am_cv_make_support_nested_variables=yes
3149else
3150  am_cv_make_support_nested_variables=no
3151fi
3152fi
3153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3154printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3155if test $am_cv_make_support_nested_variables = yes; then
3156    AM_V='$(V)'
3157  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3158else
3159  AM_V=$AM_DEFAULT_VERBOSITY
3160  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3161fi
3162AM_BACKSLASH='\'
3163
3164if test "`cd $srcdir && pwd`" != "`pwd`"; then
3165  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3166  # is not polluted with repeated "-I."
3167  am__isrc=' -I$(srcdir)'
3168  # test to see if srcdir already configured
3169  if test -f $srcdir/config.status; then
3170    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3171  fi
3172fi
3173
3174# test whether we have cygpath
3175if test -z "$CYGPATH_W"; then
3176  if (cygpath --version) >/dev/null 2>/dev/null; then
3177    CYGPATH_W='cygpath -w'
3178  else
3179    CYGPATH_W=echo
3180  fi
3181fi
3182
3183
3184# Define the identity of the package.
3185 PACKAGE='libXinerama'
3186 VERSION='1.1.5'
3187
3188
3189printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3190
3191
3192printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3193
3194# Some tools Automake needs.
3195
3196ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3197
3198
3199AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3200
3201
3202AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3203
3204
3205AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3206
3207
3208MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3209
3210# For better backward compatibility.  To be removed once Automake 1.9.x
3211# dies out for good.  For more background, see:
3212# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3213# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3214mkdir_p='$(MKDIR_P)'
3215
3216# We need awk for the "check" target (and possibly the TAP driver).  The
3217# system "awk" is bad on some platforms.
3218# Always define AMTAR for backward compatibility.  Yes, it's still used
3219# in the wild :-(  We should find a proper way to deprecate it ...
3220AMTAR='$${TAR-tar}'
3221
3222
3223# We'll loop over all known methods to create a tar archive until one works.
3224_am_tools='gnutar  pax cpio none'
3225
3226am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3227
3228
3229
3230
3231
3232# Variables for tags utilities; see am/tags.am
3233if test -z "$CTAGS"; then
3234  CTAGS=ctags
3235fi
3236
3237if test -z "$ETAGS"; then
3238  ETAGS=etags
3239fi
3240
3241if test -z "$CSCOPE"; then
3242  CSCOPE=cscope
3243fi
3244
3245
3246
3247# POSIX will say in a future version that running "rm -f" with no argument
3248# is OK; and we want to be able to make that assumption in our Makefile
3249# recipes.  So use an aggressive probe to check that the usage we want is
3250# actually supported "in the wild" to an acceptable degree.
3251# See automake bug#10828.
3252# To make any issue more visible, cause the running configure to be aborted
3253# by default if the 'rm' program in use doesn't match our expectations; the
3254# user can still override this though.
3255if rm -f && rm -fr && rm -rf; then : OK; else
3256  cat >&2 <<'END'
3257Oops!
3258
3259Your 'rm' program seems unable to run without file operands specified
3260on the command line, even when the '-f' option is present.  This is contrary
3261to the behaviour of most rm programs out there, and not conforming with
3262the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3263
3264Please tell bug-automake@gnu.org about your system, including the value
3265of your $PATH and any error possibly output before this message.  This
3266can help us improve future automake versions.
3267
3268END
3269  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3270    echo 'Configuration will proceed anyway, since you have set the' >&2
3271    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3272    echo >&2
3273  else
3274    cat >&2 <<'END'
3275Aborting the configuration process, to ensure you take notice of the issue.
3276
3277You can download and install GNU coreutils to get an 'rm' implementation
3278that behaves properly: <https://www.gnu.org/software/coreutils/>.
3279
3280If you want to complete the configuration process using your problematic
3281'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3282to "yes", and re-run configure.
3283
3284END
3285    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3286  fi
3287fi
3288
3289
3290# Initialize libtool
3291case `pwd` in
3292  *\ * | *\	*)
3293    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3294printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3295esac
3296
3297
3298
3299macro_version='2.4.7'
3300macro_revision='2.4.7'
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315ltmain=$ac_aux_dir/ltmain.sh
3316
3317
3318
3319  # Make sure we can run config.sub.
3320$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3321  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3322
3323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3324printf %s "checking build system type... " >&6; }
3325if test ${ac_cv_build+y}
3326then :
3327  printf %s "(cached) " >&6
3328else $as_nop
3329  ac_build_alias=$build_alias
3330test "x$ac_build_alias" = x &&
3331  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3332test "x$ac_build_alias" = x &&
3333  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3334ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3335  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3336
3337fi
3338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3339printf "%s\n" "$ac_cv_build" >&6; }
3340case $ac_cv_build in
3341*-*-*) ;;
3342*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3343esac
3344build=$ac_cv_build
3345ac_save_IFS=$IFS; IFS='-'
3346set x $ac_cv_build
3347shift
3348build_cpu=$1
3349build_vendor=$2
3350shift; shift
3351# Remember, the first character of IFS is used to create $*,
3352# except with old shells:
3353build_os=$*
3354IFS=$ac_save_IFS
3355case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3356
3357
3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3359printf %s "checking host system type... " >&6; }
3360if test ${ac_cv_host+y}
3361then :
3362  printf %s "(cached) " >&6
3363else $as_nop
3364  if test "x$host_alias" = x; then
3365  ac_cv_host=$ac_cv_build
3366else
3367  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3368    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3369fi
3370
3371fi
3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3373printf "%s\n" "$ac_cv_host" >&6; }
3374case $ac_cv_host in
3375*-*-*) ;;
3376*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3377esac
3378host=$ac_cv_host
3379ac_save_IFS=$IFS; IFS='-'
3380set x $ac_cv_host
3381shift
3382host_cpu=$1
3383host_vendor=$2
3384shift; shift
3385# Remember, the first character of IFS is used to create $*,
3386# except with old shells:
3387host_os=$*
3388IFS=$ac_save_IFS
3389case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3390
3391
3392# Backslashify metacharacters that are still active within
3393# double-quoted strings.
3394sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3395
3396# Same as above, but do not quote variable references.
3397double_quote_subst='s/\(["`\\]\)/\\\1/g'
3398
3399# Sed substitution to delay expansion of an escaped shell variable in a
3400# double_quote_subst'ed string.
3401delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3402
3403# Sed substitution to delay expansion of an escaped single quote.
3404delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3405
3406# Sed substitution to avoid accidental globbing in evaled expressions
3407no_glob_subst='s/\*/\\\*/g'
3408
3409ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3410ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3411ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3412
3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3414printf %s "checking how to print strings... " >&6; }
3415# Test print first, because it will be a builtin if present.
3416if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3417   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3418  ECHO='print -r --'
3419elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3420  ECHO='printf %s\n'
3421else
3422  # Use this function as a fallback that always works.
3423  func_fallback_echo ()
3424  {
3425    eval 'cat <<_LTECHO_EOF
3426$1
3427_LTECHO_EOF'
3428  }
3429  ECHO='func_fallback_echo'
3430fi
3431
3432# func_echo_all arg...
3433# Invoke $ECHO with all args, space-separated.
3434func_echo_all ()
3435{
3436    $ECHO ""
3437}
3438
3439case $ECHO in
3440  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3441printf "%s\n" "printf" >&6; } ;;
3442  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3443printf "%s\n" "print -r" >&6; } ;;
3444  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3445printf "%s\n" "cat" >&6; } ;;
3446esac
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470DEPDIR="${am__leading_dot}deps"
3471
3472ac_config_commands="$ac_config_commands depfiles"
3473
3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3475printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3476cat > confinc.mk << 'END'
3477am__doit:
3478	@echo this is the am__doit target >confinc.out
3479.PHONY: am__doit
3480END
3481am__include="#"
3482am__quote=
3483# BSD make does it like this.
3484echo '.include "confinc.mk" # ignored' > confmf.BSD
3485# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3486echo 'include confinc.mk # ignored' > confmf.GNU
3487_am_result=no
3488for s in GNU BSD; do
3489  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3490   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }
3494  case $?:`cat confinc.out 2>/dev/null` in #(
3495  '0:this is the am__doit target') :
3496    case $s in #(
3497  BSD) :
3498    am__include='.include' am__quote='"' ;; #(
3499  *) :
3500    am__include='include' am__quote='' ;;
3501esac ;; #(
3502  *) :
3503     ;;
3504esac
3505  if test "$am__include" != "#"; then
3506    _am_result="yes ($s style)"
3507    break
3508  fi
3509done
3510rm -f confinc.* confmf.*
3511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3512printf "%s\n" "${_am_result}" >&6; }
3513
3514# Check whether --enable-dependency-tracking was given.
3515if test ${enable_dependency_tracking+y}
3516then :
3517  enableval=$enable_dependency_tracking;
3518fi
3519
3520if test "x$enable_dependency_tracking" != xno; then
3521  am_depcomp="$ac_aux_dir/depcomp"
3522  AMDEPBACKSLASH='\'
3523  am__nodep='_no'
3524fi
3525 if test "x$enable_dependency_tracking" != xno; then
3526  AMDEP_TRUE=
3527  AMDEP_FALSE='#'
3528else
3529  AMDEP_TRUE='#'
3530  AMDEP_FALSE=
3531fi
3532
3533
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539if test -n "$ac_tool_prefix"; then
3540  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543printf %s "checking for $ac_word... " >&6; }
3544if test ${ac_cv_prog_CC+y}
3545then :
3546  printf %s "(cached) " >&6
3547else $as_nop
3548  if test -n "$CC"; then
3549  ac_cv_prog_CC="$CC" # Let the user override the test.
3550else
3551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552for as_dir in $PATH
3553do
3554  IFS=$as_save_IFS
3555  case $as_dir in #(((
3556    '') as_dir=./ ;;
3557    */) ;;
3558    *) as_dir=$as_dir/ ;;
3559  esac
3560    for ac_exec_ext in '' $ac_executable_extensions; do
3561  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3562    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3563    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3564    break 2
3565  fi
3566done
3567  done
3568IFS=$as_save_IFS
3569
3570fi
3571fi
3572CC=$ac_cv_prog_CC
3573if test -n "$CC"; then
3574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575printf "%s\n" "$CC" >&6; }
3576else
3577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578printf "%s\n" "no" >&6; }
3579fi
3580
3581
3582fi
3583if test -z "$ac_cv_prog_CC"; then
3584  ac_ct_CC=$CC
3585  # Extract the first word of "gcc", so it can be a program name with args.
3586set dummy gcc; ac_word=$2
3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588printf %s "checking for $ac_word... " >&6; }
3589if test ${ac_cv_prog_ac_ct_CC+y}
3590then :
3591  printf %s "(cached) " >&6
3592else $as_nop
3593  if test -n "$ac_ct_CC"; then
3594  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3595else
3596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597for as_dir in $PATH
3598do
3599  IFS=$as_save_IFS
3600  case $as_dir in #(((
3601    '') as_dir=./ ;;
3602    */) ;;
3603    *) as_dir=$as_dir/ ;;
3604  esac
3605    for ac_exec_ext in '' $ac_executable_extensions; do
3606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3607    ac_cv_prog_ac_ct_CC="gcc"
3608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3609    break 2
3610  fi
3611done
3612  done
3613IFS=$as_save_IFS
3614
3615fi
3616fi
3617ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618if test -n "$ac_ct_CC"; then
3619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3620printf "%s\n" "$ac_ct_CC" >&6; }
3621else
3622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623printf "%s\n" "no" >&6; }
3624fi
3625
3626  if test "x$ac_ct_CC" = x; then
3627    CC=""
3628  else
3629    case $cross_compiling:$ac_tool_warned in
3630yes:)
3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633ac_tool_warned=yes ;;
3634esac
3635    CC=$ac_ct_CC
3636  fi
3637else
3638  CC="$ac_cv_prog_CC"
3639fi
3640
3641if test -z "$CC"; then
3642          if test -n "$ac_tool_prefix"; then
3643    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3644set dummy ${ac_tool_prefix}cc; ac_word=$2
3645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646printf %s "checking for $ac_word... " >&6; }
3647if test ${ac_cv_prog_CC+y}
3648then :
3649  printf %s "(cached) " >&6
3650else $as_nop
3651  if test -n "$CC"; then
3652  ac_cv_prog_CC="$CC" # Let the user override the test.
3653else
3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655for as_dir in $PATH
3656do
3657  IFS=$as_save_IFS
3658  case $as_dir in #(((
3659    '') as_dir=./ ;;
3660    */) ;;
3661    *) as_dir=$as_dir/ ;;
3662  esac
3663    for ac_exec_ext in '' $ac_executable_extensions; do
3664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3665    ac_cv_prog_CC="${ac_tool_prefix}cc"
3666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3667    break 2
3668  fi
3669done
3670  done
3671IFS=$as_save_IFS
3672
3673fi
3674fi
3675CC=$ac_cv_prog_CC
3676if test -n "$CC"; then
3677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678printf "%s\n" "$CC" >&6; }
3679else
3680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681printf "%s\n" "no" >&6; }
3682fi
3683
3684
3685  fi
3686fi
3687if test -z "$CC"; then
3688  # Extract the first word of "cc", so it can be a program name with args.
3689set dummy cc; ac_word=$2
3690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691printf %s "checking for $ac_word... " >&6; }
3692if test ${ac_cv_prog_CC+y}
3693then :
3694  printf %s "(cached) " >&6
3695else $as_nop
3696  if test -n "$CC"; then
3697  ac_cv_prog_CC="$CC" # Let the user override the test.
3698else
3699  ac_prog_rejected=no
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703  IFS=$as_save_IFS
3704  case $as_dir in #(((
3705    '') as_dir=./ ;;
3706    */) ;;
3707    *) as_dir=$as_dir/ ;;
3708  esac
3709    for ac_exec_ext in '' $ac_executable_extensions; do
3710  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3711    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3712       ac_prog_rejected=yes
3713       continue
3714     fi
3715    ac_cv_prog_CC="cc"
3716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3717    break 2
3718  fi
3719done
3720  done
3721IFS=$as_save_IFS
3722
3723if test $ac_prog_rejected = yes; then
3724  # We found a bogon in the path, so make sure we never use it.
3725  set dummy $ac_cv_prog_CC
3726  shift
3727  if test $# != 0; then
3728    # We chose a different compiler from the bogus one.
3729    # However, it has the same basename, so the bogon will be chosen
3730    # first if we set CC to just the basename; use the full file name.
3731    shift
3732    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3733  fi
3734fi
3735fi
3736fi
3737CC=$ac_cv_prog_CC
3738if test -n "$CC"; then
3739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740printf "%s\n" "$CC" >&6; }
3741else
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743printf "%s\n" "no" >&6; }
3744fi
3745
3746
3747fi
3748if test -z "$CC"; then
3749  if test -n "$ac_tool_prefix"; then
3750  for ac_prog in cl.exe
3751  do
3752    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755printf %s "checking for $ac_word... " >&6; }
3756if test ${ac_cv_prog_CC+y}
3757then :
3758  printf %s "(cached) " >&6
3759else $as_nop
3760  if test -n "$CC"; then
3761  ac_cv_prog_CC="$CC" # Let the user override the test.
3762else
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766  IFS=$as_save_IFS
3767  case $as_dir in #(((
3768    '') as_dir=./ ;;
3769    */) ;;
3770    *) as_dir=$as_dir/ ;;
3771  esac
3772    for ac_exec_ext in '' $ac_executable_extensions; do
3773  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3774    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3775    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3776    break 2
3777  fi
3778done
3779  done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784CC=$ac_cv_prog_CC
3785if test -n "$CC"; then
3786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787printf "%s\n" "$CC" >&6; }
3788else
3789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790printf "%s\n" "no" >&6; }
3791fi
3792
3793
3794    test -n "$CC" && break
3795  done
3796fi
3797if test -z "$CC"; then
3798  ac_ct_CC=$CC
3799  for ac_prog in cl.exe
3800do
3801  # Extract the first word of "$ac_prog", so it can be a program name with args.
3802set dummy $ac_prog; ac_word=$2
3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804printf %s "checking for $ac_word... " >&6; }
3805if test ${ac_cv_prog_ac_ct_CC+y}
3806then :
3807  printf %s "(cached) " >&6
3808else $as_nop
3809  if test -n "$ac_ct_CC"; then
3810  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815  IFS=$as_save_IFS
3816  case $as_dir in #(((
3817    '') as_dir=./ ;;
3818    */) ;;
3819    *) as_dir=$as_dir/ ;;
3820  esac
3821    for ac_exec_ext in '' $ac_executable_extensions; do
3822  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823    ac_cv_prog_ac_ct_CC="$ac_prog"
3824    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3825    break 2
3826  fi
3827done
3828  done
3829IFS=$as_save_IFS
3830
3831fi
3832fi
3833ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834if test -n "$ac_ct_CC"; then
3835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836printf "%s\n" "$ac_ct_CC" >&6; }
3837else
3838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839printf "%s\n" "no" >&6; }
3840fi
3841
3842
3843  test -n "$ac_ct_CC" && break
3844done
3845
3846  if test "x$ac_ct_CC" = x; then
3847    CC=""
3848  else
3849    case $cross_compiling:$ac_tool_warned in
3850yes:)
3851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853ac_tool_warned=yes ;;
3854esac
3855    CC=$ac_ct_CC
3856  fi
3857fi
3858
3859fi
3860if test -z "$CC"; then
3861  if test -n "$ac_tool_prefix"; then
3862  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3863set dummy ${ac_tool_prefix}clang; ac_word=$2
3864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865printf %s "checking for $ac_word... " >&6; }
3866if test ${ac_cv_prog_CC+y}
3867then :
3868  printf %s "(cached) " >&6
3869else $as_nop
3870  if test -n "$CC"; then
3871  ac_cv_prog_CC="$CC" # Let the user override the test.
3872else
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876  IFS=$as_save_IFS
3877  case $as_dir in #(((
3878    '') as_dir=./ ;;
3879    */) ;;
3880    *) as_dir=$as_dir/ ;;
3881  esac
3882    for ac_exec_ext in '' $ac_executable_extensions; do
3883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3884    ac_cv_prog_CC="${ac_tool_prefix}clang"
3885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889  done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894CC=$ac_cv_prog_CC
3895if test -n "$CC"; then
3896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897printf "%s\n" "$CC" >&6; }
3898else
3899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900printf "%s\n" "no" >&6; }
3901fi
3902
3903
3904fi
3905if test -z "$ac_cv_prog_CC"; then
3906  ac_ct_CC=$CC
3907  # Extract the first word of "clang", so it can be a program name with args.
3908set dummy clang; ac_word=$2
3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910printf %s "checking for $ac_word... " >&6; }
3911if test ${ac_cv_prog_ac_ct_CC+y}
3912then :
3913  printf %s "(cached) " >&6
3914else $as_nop
3915  if test -n "$ac_ct_CC"; then
3916  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921  IFS=$as_save_IFS
3922  case $as_dir in #(((
3923    '') as_dir=./ ;;
3924    */) ;;
3925    *) as_dir=$as_dir/ ;;
3926  esac
3927    for ac_exec_ext in '' $ac_executable_extensions; do
3928  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3929    ac_cv_prog_ac_ct_CC="clang"
3930    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3931    break 2
3932  fi
3933done
3934  done
3935IFS=$as_save_IFS
3936
3937fi
3938fi
3939ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940if test -n "$ac_ct_CC"; then
3941  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3942printf "%s\n" "$ac_ct_CC" >&6; }
3943else
3944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945printf "%s\n" "no" >&6; }
3946fi
3947
3948  if test "x$ac_ct_CC" = x; then
3949    CC=""
3950  else
3951    case $cross_compiling:$ac_tool_warned in
3952yes:)
3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955ac_tool_warned=yes ;;
3956esac
3957    CC=$ac_ct_CC
3958  fi
3959else
3960  CC="$ac_cv_prog_CC"
3961fi
3962
3963fi
3964
3965
3966test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3968as_fn_error $? "no acceptable C compiler found in \$PATH
3969See \`config.log' for more details" "$LINENO" 5; }
3970
3971# Provide some information about the compiler.
3972printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3973set X $ac_compile
3974ac_compiler=$2
3975for ac_option in --version -v -V -qversion -version; do
3976  { { ac_try="$ac_compiler $ac_option >&5"
3977case "(($ac_try" in
3978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979  *) ac_try_echo=$ac_try;;
3980esac
3981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982printf "%s\n" "$ac_try_echo"; } >&5
3983  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3984  ac_status=$?
3985  if test -s conftest.err; then
3986    sed '10a\
3987... rest of stderr output deleted ...
3988         10q' conftest.err >conftest.er1
3989    cat conftest.er1 >&5
3990  fi
3991  rm -f conftest.er1 conftest.err
3992  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993  test $ac_status = 0; }
3994done
3995
3996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h.  */
3998
3999int
4000main (void)
4001{
4002
4003  ;
4004  return 0;
4005}
4006_ACEOF
4007ac_clean_files_save=$ac_clean_files
4008ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4009# Try to create an executable without -o first, disregard a.out.
4010# It will help us diagnose broken compilers, and finding out an intuition
4011# of exeext.
4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4013printf %s "checking whether the C compiler works... " >&6; }
4014ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4015
4016# The possible output files:
4017ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4018
4019ac_rmfiles=
4020for ac_file in $ac_files
4021do
4022  case $ac_file in
4023    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4024    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4025  esac
4026done
4027rm -f $ac_rmfiles
4028
4029if { { ac_try="$ac_link_default"
4030case "(($ac_try" in
4031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032  *) ac_try_echo=$ac_try;;
4033esac
4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035printf "%s\n" "$ac_try_echo"; } >&5
4036  (eval "$ac_link_default") 2>&5
4037  ac_status=$?
4038  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039  test $ac_status = 0; }
4040then :
4041  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4042# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4043# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4044# so that the user can short-circuit this test for compilers unknown to
4045# Autoconf.
4046for ac_file in $ac_files ''
4047do
4048  test -f "$ac_file" || continue
4049  case $ac_file in
4050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4051	;;
4052    [ab].out )
4053	# We found the default executable, but exeext='' is most
4054	# certainly right.
4055	break;;
4056    *.* )
4057	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4058	then :; else
4059	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4060	fi
4061	# We set ac_cv_exeext here because the later test for it is not
4062	# safe: cross compilers may not add the suffix if given an `-o'
4063	# argument, so we may need to know it at that point already.
4064	# Even if this section looks crufty: it has the advantage of
4065	# actually working.
4066	break;;
4067    * )
4068	break;;
4069  esac
4070done
4071test "$ac_cv_exeext" = no && ac_cv_exeext=
4072
4073else $as_nop
4074  ac_file=''
4075fi
4076if test -z "$ac_file"
4077then :
4078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079printf "%s\n" "no" >&6; }
4080printf "%s\n" "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085as_fn_error 77 "C compiler cannot create executables
4086See \`config.log' for more details" "$LINENO" 5; }
4087else $as_nop
4088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089printf "%s\n" "yes" >&6; }
4090fi
4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4092printf %s "checking for C compiler default output file name... " >&6; }
4093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4094printf "%s\n" "$ac_file" >&6; }
4095ac_exeext=$ac_cv_exeext
4096
4097rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4098ac_clean_files=$ac_clean_files_save
4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4100printf %s "checking for suffix of executables... " >&6; }
4101if { { ac_try="$ac_link"
4102case "(($ac_try" in
4103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104  *) ac_try_echo=$ac_try;;
4105esac
4106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107printf "%s\n" "$ac_try_echo"; } >&5
4108  (eval "$ac_link") 2>&5
4109  ac_status=$?
4110  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111  test $ac_status = 0; }
4112then :
4113  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4114# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4115# work properly (i.e., refer to `conftest.exe'), while it won't with
4116# `rm'.
4117for ac_file in conftest.exe conftest conftest.*; do
4118  test -f "$ac_file" || continue
4119  case $ac_file in
4120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4121    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4122	  break;;
4123    * ) break;;
4124  esac
4125done
4126else $as_nop
4127  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4129as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4130See \`config.log' for more details" "$LINENO" 5; }
4131fi
4132rm -f conftest conftest$ac_cv_exeext
4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4134printf "%s\n" "$ac_cv_exeext" >&6; }
4135
4136rm -f conftest.$ac_ext
4137EXEEXT=$ac_cv_exeext
4138ac_exeext=$EXEEXT
4139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141#include <stdio.h>
4142int
4143main (void)
4144{
4145FILE *f = fopen ("conftest.out", "w");
4146 return ferror (f) || fclose (f) != 0;
4147
4148  ;
4149  return 0;
4150}
4151_ACEOF
4152ac_clean_files="$ac_clean_files conftest.out"
4153# Check that the compiler produces executables we can run.  If not, either
4154# the compiler is broken, or we cross compile.
4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4156printf %s "checking whether we are cross compiling... " >&6; }
4157if test "$cross_compiling" != yes; then
4158  { { ac_try="$ac_link"
4159case "(($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_link") 2>&5
4166  ac_status=$?
4167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168  test $ac_status = 0; }
4169  if { ac_try='./conftest$ac_cv_exeext'
4170  { { case "(($ac_try" in
4171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172  *) ac_try_echo=$ac_try;;
4173esac
4174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175printf "%s\n" "$ac_try_echo"; } >&5
4176  (eval "$ac_try") 2>&5
4177  ac_status=$?
4178  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179  test $ac_status = 0; }; }; then
4180    cross_compiling=no
4181  else
4182    if test "$cross_compiling" = maybe; then
4183	cross_compiling=yes
4184    else
4185	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4187as_fn_error 77 "cannot run C compiled programs.
4188If you meant to cross compile, use \`--host'.
4189See \`config.log' for more details" "$LINENO" 5; }
4190    fi
4191  fi
4192fi
4193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4194printf "%s\n" "$cross_compiling" >&6; }
4195
4196rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4197ac_clean_files=$ac_clean_files_save
4198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4199printf %s "checking for suffix of object files... " >&6; }
4200if test ${ac_cv_objext+y}
4201then :
4202  printf %s "(cached) " >&6
4203else $as_nop
4204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h.  */
4206
4207int
4208main (void)
4209{
4210
4211  ;
4212  return 0;
4213}
4214_ACEOF
4215rm -f conftest.o conftest.obj
4216if { { ac_try="$ac_compile"
4217case "(($ac_try" in
4218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219  *) ac_try_echo=$ac_try;;
4220esac
4221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222printf "%s\n" "$ac_try_echo"; } >&5
4223  (eval "$ac_compile") 2>&5
4224  ac_status=$?
4225  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226  test $ac_status = 0; }
4227then :
4228  for ac_file in conftest.o conftest.obj conftest.*; do
4229  test -f "$ac_file" || continue;
4230  case $ac_file in
4231    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4232    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4233       break;;
4234  esac
4235done
4236else $as_nop
4237  printf "%s\n" "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4241printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4242as_fn_error $? "cannot compute suffix of object files: cannot compile
4243See \`config.log' for more details" "$LINENO" 5; }
4244fi
4245rm -f conftest.$ac_cv_objext conftest.$ac_ext
4246fi
4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4248printf "%s\n" "$ac_cv_objext" >&6; }
4249OBJEXT=$ac_cv_objext
4250ac_objext=$OBJEXT
4251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4252printf %s "checking whether the compiler supports GNU C... " >&6; }
4253if test ${ac_cv_c_compiler_gnu+y}
4254then :
4255  printf %s "(cached) " >&6
4256else $as_nop
4257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h.  */
4259
4260int
4261main (void)
4262{
4263#ifndef __GNUC__
4264       choke me
4265#endif
4266
4267  ;
4268  return 0;
4269}
4270_ACEOF
4271if ac_fn_c_try_compile "$LINENO"
4272then :
4273  ac_compiler_gnu=yes
4274else $as_nop
4275  ac_compiler_gnu=no
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4278ac_cv_c_compiler_gnu=$ac_compiler_gnu
4279
4280fi
4281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4282printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4283ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284
4285if test $ac_compiler_gnu = yes; then
4286  GCC=yes
4287else
4288  GCC=
4289fi
4290ac_test_CFLAGS=${CFLAGS+y}
4291ac_save_CFLAGS=$CFLAGS
4292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4293printf %s "checking whether $CC accepts -g... " >&6; }
4294if test ${ac_cv_prog_cc_g+y}
4295then :
4296  printf %s "(cached) " >&6
4297else $as_nop
4298  ac_save_c_werror_flag=$ac_c_werror_flag
4299   ac_c_werror_flag=yes
4300   ac_cv_prog_cc_g=no
4301   CFLAGS="-g"
4302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304
4305int
4306main (void)
4307{
4308
4309  ;
4310  return 0;
4311}
4312_ACEOF
4313if ac_fn_c_try_compile "$LINENO"
4314then :
4315  ac_cv_prog_cc_g=yes
4316else $as_nop
4317  CFLAGS=""
4318      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h.  */
4320
4321int
4322main (void)
4323{
4324
4325  ;
4326  return 0;
4327}
4328_ACEOF
4329if ac_fn_c_try_compile "$LINENO"
4330then :
4331
4332else $as_nop
4333  ac_c_werror_flag=$ac_save_c_werror_flag
4334	 CFLAGS="-g"
4335	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336/* end confdefs.h.  */
4337
4338int
4339main (void)
4340{
4341
4342  ;
4343  return 0;
4344}
4345_ACEOF
4346if ac_fn_c_try_compile "$LINENO"
4347then :
4348  ac_cv_prog_cc_g=yes
4349fi
4350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4351fi
4352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4353fi
4354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4355   ac_c_werror_flag=$ac_save_c_werror_flag
4356fi
4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4358printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4359if test $ac_test_CFLAGS; then
4360  CFLAGS=$ac_save_CFLAGS
4361elif test $ac_cv_prog_cc_g = yes; then
4362  if test "$GCC" = yes; then
4363    CFLAGS="-g -O2"
4364  else
4365    CFLAGS="-g"
4366  fi
4367else
4368  if test "$GCC" = yes; then
4369    CFLAGS="-O2"
4370  else
4371    CFLAGS=
4372  fi
4373fi
4374ac_prog_cc_stdc=no
4375if test x$ac_prog_cc_stdc = xno
4376then :
4377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4378printf %s "checking for $CC option to enable C11 features... " >&6; }
4379if test ${ac_cv_prog_cc_c11+y}
4380then :
4381  printf %s "(cached) " >&6
4382else $as_nop
4383  ac_cv_prog_cc_c11=no
4384ac_save_CC=$CC
4385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h.  */
4387$ac_c_conftest_c11_program
4388_ACEOF
4389for ac_arg in '' -std=gnu11
4390do
4391  CC="$ac_save_CC $ac_arg"
4392  if ac_fn_c_try_compile "$LINENO"
4393then :
4394  ac_cv_prog_cc_c11=$ac_arg
4395fi
4396rm -f core conftest.err conftest.$ac_objext conftest.beam
4397  test "x$ac_cv_prog_cc_c11" != "xno" && break
4398done
4399rm -f conftest.$ac_ext
4400CC=$ac_save_CC
4401fi
4402
4403if test "x$ac_cv_prog_cc_c11" = xno
4404then :
4405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4406printf "%s\n" "unsupported" >&6; }
4407else $as_nop
4408  if test "x$ac_cv_prog_cc_c11" = x
4409then :
4410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4411printf "%s\n" "none needed" >&6; }
4412else $as_nop
4413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4414printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4415     CC="$CC $ac_cv_prog_cc_c11"
4416fi
4417  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4418  ac_prog_cc_stdc=c11
4419fi
4420fi
4421if test x$ac_prog_cc_stdc = xno
4422then :
4423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4424printf %s "checking for $CC option to enable C99 features... " >&6; }
4425if test ${ac_cv_prog_cc_c99+y}
4426then :
4427  printf %s "(cached) " >&6
4428else $as_nop
4429  ac_cv_prog_cc_c99=no
4430ac_save_CC=$CC
4431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433$ac_c_conftest_c99_program
4434_ACEOF
4435for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4436do
4437  CC="$ac_save_CC $ac_arg"
4438  if ac_fn_c_try_compile "$LINENO"
4439then :
4440  ac_cv_prog_cc_c99=$ac_arg
4441fi
4442rm -f core conftest.err conftest.$ac_objext conftest.beam
4443  test "x$ac_cv_prog_cc_c99" != "xno" && break
4444done
4445rm -f conftest.$ac_ext
4446CC=$ac_save_CC
4447fi
4448
4449if test "x$ac_cv_prog_cc_c99" = xno
4450then :
4451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4452printf "%s\n" "unsupported" >&6; }
4453else $as_nop
4454  if test "x$ac_cv_prog_cc_c99" = x
4455then :
4456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4457printf "%s\n" "none needed" >&6; }
4458else $as_nop
4459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4460printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4461     CC="$CC $ac_cv_prog_cc_c99"
4462fi
4463  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4464  ac_prog_cc_stdc=c99
4465fi
4466fi
4467if test x$ac_prog_cc_stdc = xno
4468then :
4469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4470printf %s "checking for $CC option to enable C89 features... " >&6; }
4471if test ${ac_cv_prog_cc_c89+y}
4472then :
4473  printf %s "(cached) " >&6
4474else $as_nop
4475  ac_cv_prog_cc_c89=no
4476ac_save_CC=$CC
4477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479$ac_c_conftest_c89_program
4480_ACEOF
4481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4482do
4483  CC="$ac_save_CC $ac_arg"
4484  if ac_fn_c_try_compile "$LINENO"
4485then :
4486  ac_cv_prog_cc_c89=$ac_arg
4487fi
4488rm -f core conftest.err conftest.$ac_objext conftest.beam
4489  test "x$ac_cv_prog_cc_c89" != "xno" && break
4490done
4491rm -f conftest.$ac_ext
4492CC=$ac_save_CC
4493fi
4494
4495if test "x$ac_cv_prog_cc_c89" = xno
4496then :
4497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498printf "%s\n" "unsupported" >&6; }
4499else $as_nop
4500  if test "x$ac_cv_prog_cc_c89" = x
4501then :
4502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4503printf "%s\n" "none needed" >&6; }
4504else $as_nop
4505  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4506printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4507     CC="$CC $ac_cv_prog_cc_c89"
4508fi
4509  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4510  ac_prog_cc_stdc=c89
4511fi
4512fi
4513
4514ac_ext=c
4515ac_cpp='$CPP $CPPFLAGS'
4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520
4521  ac_ext=c
4522ac_cpp='$CPP $CPPFLAGS'
4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4527printf %s "checking whether $CC understands -c and -o together... " >&6; }
4528if test ${am_cv_prog_cc_c_o+y}
4529then :
4530  printf %s "(cached) " >&6
4531else $as_nop
4532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534
4535int
4536main (void)
4537{
4538
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543  # Make sure it works both with $CC and with simple cc.
4544  # Following AC_PROG_CC_C_O, we do the test twice because some
4545  # compilers refuse to overwrite an existing .o file with -o,
4546  # though they will create one.
4547  am_cv_prog_cc_c_o=yes
4548  for am_i in 1 2; do
4549    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4550   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } \
4554         && test -f conftest2.$ac_objext; then
4555      : OK
4556    else
4557      am_cv_prog_cc_c_o=no
4558      break
4559    fi
4560  done
4561  rm -f core conftest*
4562  unset am_i
4563fi
4564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4565printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4566if test "$am_cv_prog_cc_c_o" != yes; then
4567   # Losing compiler, so override with the script.
4568   # FIXME: It is wrong to rewrite CC.
4569   # But if we don't then we get into trouble of one sort or another.
4570   # A longer-term fix would be to have automake use am__CC in this case,
4571   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4572   CC="$am_aux_dir/compile $CC"
4573fi
4574ac_ext=c
4575ac_cpp='$CPP $CPPFLAGS'
4576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579
4580
4581depcc="$CC"   am_compiler_list=
4582
4583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4584printf %s "checking dependency style of $depcc... " >&6; }
4585if test ${am_cv_CC_dependencies_compiler_type+y}
4586then :
4587  printf %s "(cached) " >&6
4588else $as_nop
4589  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4590  # We make a subdir and do the tests there.  Otherwise we can end up
4591  # making bogus files that we don't know about and never remove.  For
4592  # instance it was reported that on HP-UX the gcc test will end up
4593  # making a dummy file named 'D' -- because '-MD' means "put the output
4594  # in D".
4595  rm -rf conftest.dir
4596  mkdir conftest.dir
4597  # Copy depcomp to subdir because otherwise we won't find it if we're
4598  # using a relative directory.
4599  cp "$am_depcomp" conftest.dir
4600  cd conftest.dir
4601  # We will build objects and dependencies in a subdirectory because
4602  # it helps to detect inapplicable dependency modes.  For instance
4603  # both Tru64's cc and ICC support -MD to output dependencies as a
4604  # side effect of compilation, but ICC will put the dependencies in
4605  # the current directory while Tru64 will put them in the object
4606  # directory.
4607  mkdir sub
4608
4609  am_cv_CC_dependencies_compiler_type=none
4610  if test "$am_compiler_list" = ""; then
4611     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4612  fi
4613  am__universal=false
4614  case " $depcc " in #(
4615     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4616     esac
4617
4618  for depmode in $am_compiler_list; do
4619    # Setup a source with many dependencies, because some compilers
4620    # like to wrap large dependency lists on column 80 (with \), and
4621    # we should not choose a depcomp mode which is confused by this.
4622    #
4623    # We need to recreate these files for each test, as the compiler may
4624    # overwrite some of them when testing with obscure command lines.
4625    # This happens at least with the AIX C compiler.
4626    : > sub/conftest.c
4627    for i in 1 2 3 4 5 6; do
4628      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4630      # Solaris 10 /bin/sh.
4631      echo '/* dummy */' > sub/conftst$i.h
4632    done
4633    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4634
4635    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4636    # mode.  It turns out that the SunPro C++ compiler does not properly
4637    # handle '-M -o', and we need to detect this.  Also, some Intel
4638    # versions had trouble with output in subdirs.
4639    am__obj=sub/conftest.${OBJEXT-o}
4640    am__minus_obj="-o $am__obj"
4641    case $depmode in
4642    gcc)
4643      # This depmode causes a compiler race in universal mode.
4644      test "$am__universal" = false || continue
4645      ;;
4646    nosideeffect)
4647      # After this tag, mechanisms are not by side-effect, so they'll
4648      # only be used when explicitly requested.
4649      if test "x$enable_dependency_tracking" = xyes; then
4650	continue
4651      else
4652	break
4653      fi
4654      ;;
4655    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4656      # This compiler won't grok '-c -o', but also, the minuso test has
4657      # not run yet.  These depmodes are late enough in the game, and
4658      # so weak that their functioning should not be impacted.
4659      am__obj=conftest.${OBJEXT-o}
4660      am__minus_obj=
4661      ;;
4662    none) break ;;
4663    esac
4664    if depmode=$depmode \
4665       source=sub/conftest.c object=$am__obj \
4666       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4667       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4668         >/dev/null 2>conftest.err &&
4669       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4670       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4671       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4672       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4673      # icc doesn't choke on unknown options, it will just issue warnings
4674      # or remarks (even with -Werror).  So we grep stderr for any message
4675      # that says an option was ignored or not supported.
4676      # When given -MP, icc 7.0 and 7.1 complain thusly:
4677      #   icc: Command line warning: ignoring option '-M'; no argument required
4678      # The diagnosis changed in icc 8.0:
4679      #   icc: Command line remark: option '-MP' not supported
4680      if (grep 'ignoring option' conftest.err ||
4681          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4682        am_cv_CC_dependencies_compiler_type=$depmode
4683        break
4684      fi
4685    fi
4686  done
4687
4688  cd ..
4689  rm -rf conftest.dir
4690else
4691  am_cv_CC_dependencies_compiler_type=none
4692fi
4693
4694fi
4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4696printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4697CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4698
4699 if
4700  test "x$enable_dependency_tracking" != xno \
4701  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4702  am__fastdepCC_TRUE=
4703  am__fastdepCC_FALSE='#'
4704else
4705  am__fastdepCC_TRUE='#'
4706  am__fastdepCC_FALSE=
4707fi
4708
4709
4710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4711printf %s "checking for a sed that does not truncate output... " >&6; }
4712if test ${ac_cv_path_SED+y}
4713then :
4714  printf %s "(cached) " >&6
4715else $as_nop
4716            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4717     for ac_i in 1 2 3 4 5 6 7; do
4718       ac_script="$ac_script$as_nl$ac_script"
4719     done
4720     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4721     { ac_script=; unset ac_script;}
4722     if test -z "$SED"; then
4723  ac_path_SED_found=false
4724  # Loop through the user's path and test for each of PROGNAME-LIST
4725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  case $as_dir in #(((
4730    '') as_dir=./ ;;
4731    */) ;;
4732    *) as_dir=$as_dir/ ;;
4733  esac
4734    for ac_prog in sed gsed
4735   do
4736    for ac_exec_ext in '' $ac_executable_extensions; do
4737      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4738      as_fn_executable_p "$ac_path_SED" || continue
4739# Check for GNU ac_path_SED and select it if it is found.
4740  # Check for GNU $ac_path_SED
4741case `"$ac_path_SED" --version 2>&1` in
4742*GNU*)
4743  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4744*)
4745  ac_count=0
4746  printf %s 0123456789 >"conftest.in"
4747  while :
4748  do
4749    cat "conftest.in" "conftest.in" >"conftest.tmp"
4750    mv "conftest.tmp" "conftest.in"
4751    cp "conftest.in" "conftest.nl"
4752    printf "%s\n" '' >> "conftest.nl"
4753    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755    as_fn_arith $ac_count + 1 && ac_count=$as_val
4756    if test $ac_count -gt ${ac_path_SED_max-0}; then
4757      # Best one so far, save it but keep looking for a better one
4758      ac_cv_path_SED="$ac_path_SED"
4759      ac_path_SED_max=$ac_count
4760    fi
4761    # 10*(2^10) chars as input seems more than enough
4762    test $ac_count -gt 10 && break
4763  done
4764  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765esac
4766
4767      $ac_path_SED_found && break 3
4768    done
4769  done
4770  done
4771IFS=$as_save_IFS
4772  if test -z "$ac_cv_path_SED"; then
4773    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4774  fi
4775else
4776  ac_cv_path_SED=$SED
4777fi
4778
4779fi
4780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4781printf "%s\n" "$ac_cv_path_SED" >&6; }
4782 SED="$ac_cv_path_SED"
4783  rm -f conftest.sed
4784
4785test -z "$SED" && SED=sed
4786Xsed="$SED -e 1s/^X//"
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4799printf %s "checking for grep that handles long lines and -e... " >&6; }
4800if test ${ac_cv_path_GREP+y}
4801then :
4802  printf %s "(cached) " >&6
4803else $as_nop
4804  if test -z "$GREP"; then
4805  ac_path_GREP_found=false
4806  # Loop through the user's path and test for each of PROGNAME-LIST
4807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4809do
4810  IFS=$as_save_IFS
4811  case $as_dir in #(((
4812    '') as_dir=./ ;;
4813    */) ;;
4814    *) as_dir=$as_dir/ ;;
4815  esac
4816    for ac_prog in grep ggrep
4817   do
4818    for ac_exec_ext in '' $ac_executable_extensions; do
4819      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4820      as_fn_executable_p "$ac_path_GREP" || continue
4821# Check for GNU ac_path_GREP and select it if it is found.
4822  # Check for GNU $ac_path_GREP
4823case `"$ac_path_GREP" --version 2>&1` in
4824*GNU*)
4825  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4826*)
4827  ac_count=0
4828  printf %s 0123456789 >"conftest.in"
4829  while :
4830  do
4831    cat "conftest.in" "conftest.in" >"conftest.tmp"
4832    mv "conftest.tmp" "conftest.in"
4833    cp "conftest.in" "conftest.nl"
4834    printf "%s\n" 'GREP' >> "conftest.nl"
4835    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4836    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4837    as_fn_arith $ac_count + 1 && ac_count=$as_val
4838    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4839      # Best one so far, save it but keep looking for a better one
4840      ac_cv_path_GREP="$ac_path_GREP"
4841      ac_path_GREP_max=$ac_count
4842    fi
4843    # 10*(2^10) chars as input seems more than enough
4844    test $ac_count -gt 10 && break
4845  done
4846  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847esac
4848
4849      $ac_path_GREP_found && break 3
4850    done
4851  done
4852  done
4853IFS=$as_save_IFS
4854  if test -z "$ac_cv_path_GREP"; then
4855    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4856  fi
4857else
4858  ac_cv_path_GREP=$GREP
4859fi
4860
4861fi
4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4863printf "%s\n" "$ac_cv_path_GREP" >&6; }
4864 GREP="$ac_cv_path_GREP"
4865
4866
4867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4868printf %s "checking for egrep... " >&6; }
4869if test ${ac_cv_path_EGREP+y}
4870then :
4871  printf %s "(cached) " >&6
4872else $as_nop
4873  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4874   then ac_cv_path_EGREP="$GREP -E"
4875   else
4876     if test -z "$EGREP"; then
4877  ac_path_EGREP_found=false
4878  # Loop through the user's path and test for each of PROGNAME-LIST
4879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4881do
4882  IFS=$as_save_IFS
4883  case $as_dir in #(((
4884    '') as_dir=./ ;;
4885    */) ;;
4886    *) as_dir=$as_dir/ ;;
4887  esac
4888    for ac_prog in egrep
4889   do
4890    for ac_exec_ext in '' $ac_executable_extensions; do
4891      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4892      as_fn_executable_p "$ac_path_EGREP" || continue
4893# Check for GNU ac_path_EGREP and select it if it is found.
4894  # Check for GNU $ac_path_EGREP
4895case `"$ac_path_EGREP" --version 2>&1` in
4896*GNU*)
4897  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4898*)
4899  ac_count=0
4900  printf %s 0123456789 >"conftest.in"
4901  while :
4902  do
4903    cat "conftest.in" "conftest.in" >"conftest.tmp"
4904    mv "conftest.tmp" "conftest.in"
4905    cp "conftest.in" "conftest.nl"
4906    printf "%s\n" 'EGREP' >> "conftest.nl"
4907    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909    as_fn_arith $ac_count + 1 && ac_count=$as_val
4910    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4911      # Best one so far, save it but keep looking for a better one
4912      ac_cv_path_EGREP="$ac_path_EGREP"
4913      ac_path_EGREP_max=$ac_count
4914    fi
4915    # 10*(2^10) chars as input seems more than enough
4916    test $ac_count -gt 10 && break
4917  done
4918  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919esac
4920
4921      $ac_path_EGREP_found && break 3
4922    done
4923  done
4924  done
4925IFS=$as_save_IFS
4926  if test -z "$ac_cv_path_EGREP"; then
4927    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928  fi
4929else
4930  ac_cv_path_EGREP=$EGREP
4931fi
4932
4933   fi
4934fi
4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4936printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4937 EGREP="$ac_cv_path_EGREP"
4938
4939
4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4941printf %s "checking for fgrep... " >&6; }
4942if test ${ac_cv_path_FGREP+y}
4943then :
4944  printf %s "(cached) " >&6
4945else $as_nop
4946  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4947   then ac_cv_path_FGREP="$GREP -F"
4948   else
4949     if test -z "$FGREP"; then
4950  ac_path_FGREP_found=false
4951  # Loop through the user's path and test for each of PROGNAME-LIST
4952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4954do
4955  IFS=$as_save_IFS
4956  case $as_dir in #(((
4957    '') as_dir=./ ;;
4958    */) ;;
4959    *) as_dir=$as_dir/ ;;
4960  esac
4961    for ac_prog in fgrep
4962   do
4963    for ac_exec_ext in '' $ac_executable_extensions; do
4964      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4965      as_fn_executable_p "$ac_path_FGREP" || continue
4966# Check for GNU ac_path_FGREP and select it if it is found.
4967  # Check for GNU $ac_path_FGREP
4968case `"$ac_path_FGREP" --version 2>&1` in
4969*GNU*)
4970  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4971*)
4972  ac_count=0
4973  printf %s 0123456789 >"conftest.in"
4974  while :
4975  do
4976    cat "conftest.in" "conftest.in" >"conftest.tmp"
4977    mv "conftest.tmp" "conftest.in"
4978    cp "conftest.in" "conftest.nl"
4979    printf "%s\n" 'FGREP' >> "conftest.nl"
4980    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4981    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4982    as_fn_arith $ac_count + 1 && ac_count=$as_val
4983    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4984      # Best one so far, save it but keep looking for a better one
4985      ac_cv_path_FGREP="$ac_path_FGREP"
4986      ac_path_FGREP_max=$ac_count
4987    fi
4988    # 10*(2^10) chars as input seems more than enough
4989    test $ac_count -gt 10 && break
4990  done
4991  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4992esac
4993
4994      $ac_path_FGREP_found && break 3
4995    done
4996  done
4997  done
4998IFS=$as_save_IFS
4999  if test -z "$ac_cv_path_FGREP"; then
5000    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5001  fi
5002else
5003  ac_cv_path_FGREP=$FGREP
5004fi
5005
5006   fi
5007fi
5008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5009printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5010 FGREP="$ac_cv_path_FGREP"
5011
5012
5013test -z "$GREP" && GREP=grep
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033# Check whether --with-gnu-ld was given.
5034if test ${with_gnu_ld+y}
5035then :
5036  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5037else $as_nop
5038  with_gnu_ld=no
5039fi
5040
5041ac_prog=ld
5042if test yes = "$GCC"; then
5043  # Check if gcc -print-prog-name=ld gives a path.
5044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5045printf %s "checking for ld used by $CC... " >&6; }
5046  case $host in
5047  *-*-mingw*)
5048    # gcc leaves a trailing carriage return, which upsets mingw
5049    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5050  *)
5051    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5052  esac
5053  case $ac_prog in
5054    # Accept absolute paths.
5055    [\\/]* | ?:[\\/]*)
5056      re_direlt='/[^/][^/]*/\.\./'
5057      # Canonicalize the pathname of ld
5058      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5059      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5060	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5061      done
5062      test -z "$LD" && LD=$ac_prog
5063      ;;
5064  "")
5065    # If it fails, then pretend we aren't using GCC.
5066    ac_prog=ld
5067    ;;
5068  *)
5069    # If it is relative, then search for the first ld in PATH.
5070    with_gnu_ld=unknown
5071    ;;
5072  esac
5073elif test yes = "$with_gnu_ld"; then
5074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5075printf %s "checking for GNU ld... " >&6; }
5076else
5077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5078printf %s "checking for non-GNU ld... " >&6; }
5079fi
5080if test ${lt_cv_path_LD+y}
5081then :
5082  printf %s "(cached) " >&6
5083else $as_nop
5084  if test -z "$LD"; then
5085  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5086  for ac_dir in $PATH; do
5087    IFS=$lt_save_ifs
5088    test -z "$ac_dir" && ac_dir=.
5089    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5090      lt_cv_path_LD=$ac_dir/$ac_prog
5091      # Check to see if the program is GNU ld.  I'd rather use --version,
5092      # but apparently some variants of GNU ld only accept -v.
5093      # Break only if it was the GNU/non-GNU ld that we prefer.
5094      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5095      *GNU* | *'with BFD'*)
5096	test no != "$with_gnu_ld" && break
5097	;;
5098      *)
5099	test yes != "$with_gnu_ld" && break
5100	;;
5101      esac
5102    fi
5103  done
5104  IFS=$lt_save_ifs
5105else
5106  lt_cv_path_LD=$LD # Let the user override the test with a path.
5107fi
5108fi
5109
5110LD=$lt_cv_path_LD
5111if test -n "$LD"; then
5112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5113printf "%s\n" "$LD" >&6; }
5114else
5115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116printf "%s\n" "no" >&6; }
5117fi
5118test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5120printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5121if test ${lt_cv_prog_gnu_ld+y}
5122then :
5123  printf %s "(cached) " >&6
5124else $as_nop
5125  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5126case `$LD -v 2>&1 </dev/null` in
5127*GNU* | *'with BFD'*)
5128  lt_cv_prog_gnu_ld=yes
5129  ;;
5130*)
5131  lt_cv_prog_gnu_ld=no
5132  ;;
5133esac
5134fi
5135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5136printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5137with_gnu_ld=$lt_cv_prog_gnu_ld
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5148printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5149if test ${lt_cv_path_NM+y}
5150then :
5151  printf %s "(cached) " >&6
5152else $as_nop
5153  if test -n "$NM"; then
5154  # Let the user override the test.
5155  lt_cv_path_NM=$NM
5156else
5157  lt_nm_to_check=${ac_tool_prefix}nm
5158  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5159    lt_nm_to_check="$lt_nm_to_check nm"
5160  fi
5161  for lt_tmp_nm in $lt_nm_to_check; do
5162    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5163    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5164      IFS=$lt_save_ifs
5165      test -z "$ac_dir" && ac_dir=.
5166      tmp_nm=$ac_dir/$lt_tmp_nm
5167      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5168	# Check to see if the nm accepts a BSD-compat flag.
5169	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5170	#   nm: unknown option "B" ignored
5171	# Tru64's nm complains that /dev/null is an invalid object file
5172	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5173	case $build_os in
5174	mingw*) lt_bad_file=conftest.nm/nofile ;;
5175	*) lt_bad_file=/dev/null ;;
5176	esac
5177	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5178	*$lt_bad_file* | *'Invalid file or object type'*)
5179	  lt_cv_path_NM="$tmp_nm -B"
5180	  break 2
5181	  ;;
5182	*)
5183	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5184	  */dev/null*)
5185	    lt_cv_path_NM="$tmp_nm -p"
5186	    break 2
5187	    ;;
5188	  *)
5189	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5190	    continue # so that we can try to find one that supports BSD flags
5191	    ;;
5192	  esac
5193	  ;;
5194	esac
5195      fi
5196    done
5197    IFS=$lt_save_ifs
5198  done
5199  : ${lt_cv_path_NM=no}
5200fi
5201fi
5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5203printf "%s\n" "$lt_cv_path_NM" >&6; }
5204if test no != "$lt_cv_path_NM"; then
5205  NM=$lt_cv_path_NM
5206else
5207  # Didn't find any BSD compatible name lister, look for dumpbin.
5208  if test -n "$DUMPBIN"; then :
5209    # Let the user override the test.
5210  else
5211    if test -n "$ac_tool_prefix"; then
5212  for ac_prog in dumpbin "link -dump"
5213  do
5214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217printf %s "checking for $ac_word... " >&6; }
5218if test ${ac_cv_prog_DUMPBIN+y}
5219then :
5220  printf %s "(cached) " >&6
5221else $as_nop
5222  if test -n "$DUMPBIN"; then
5223  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  case $as_dir in #(((
5230    '') as_dir=./ ;;
5231    */) ;;
5232    *) as_dir=$as_dir/ ;;
5233  esac
5234    for ac_exec_ext in '' $ac_executable_extensions; do
5235  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5236    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5237    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5238    break 2
5239  fi
5240done
5241  done
5242IFS=$as_save_IFS
5243
5244fi
5245fi
5246DUMPBIN=$ac_cv_prog_DUMPBIN
5247if test -n "$DUMPBIN"; then
5248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5249printf "%s\n" "$DUMPBIN" >&6; }
5250else
5251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252printf "%s\n" "no" >&6; }
5253fi
5254
5255
5256    test -n "$DUMPBIN" && break
5257  done
5258fi
5259if test -z "$DUMPBIN"; then
5260  ac_ct_DUMPBIN=$DUMPBIN
5261  for ac_prog in dumpbin "link -dump"
5262do
5263  # Extract the first word of "$ac_prog", so it can be a program name with args.
5264set dummy $ac_prog; ac_word=$2
5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266printf %s "checking for $ac_word... " >&6; }
5267if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5268then :
5269  printf %s "(cached) " >&6
5270else $as_nop
5271  if test -n "$ac_ct_DUMPBIN"; then
5272  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5273else
5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275for as_dir in $PATH
5276do
5277  IFS=$as_save_IFS
5278  case $as_dir in #(((
5279    '') as_dir=./ ;;
5280    */) ;;
5281    *) as_dir=$as_dir/ ;;
5282  esac
5283    for ac_exec_ext in '' $ac_executable_extensions; do
5284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5285    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5287    break 2
5288  fi
5289done
5290  done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5296if test -n "$ac_ct_DUMPBIN"; then
5297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5298printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5299else
5300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301printf "%s\n" "no" >&6; }
5302fi
5303
5304
5305  test -n "$ac_ct_DUMPBIN" && break
5306done
5307
5308  if test "x$ac_ct_DUMPBIN" = x; then
5309    DUMPBIN=":"
5310  else
5311    case $cross_compiling:$ac_tool_warned in
5312yes:)
5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315ac_tool_warned=yes ;;
5316esac
5317    DUMPBIN=$ac_ct_DUMPBIN
5318  fi
5319fi
5320
5321    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5322    *COFF*)
5323      DUMPBIN="$DUMPBIN -symbols -headers"
5324      ;;
5325    *)
5326      DUMPBIN=:
5327      ;;
5328    esac
5329  fi
5330
5331  if test : != "$DUMPBIN"; then
5332    NM=$DUMPBIN
5333  fi
5334fi
5335test -z "$NM" && NM=nm
5336
5337
5338
5339
5340
5341
5342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5343printf %s "checking the name lister ($NM) interface... " >&6; }
5344if test ${lt_cv_nm_interface+y}
5345then :
5346  printf %s "(cached) " >&6
5347else $as_nop
5348  lt_cv_nm_interface="BSD nm"
5349  echo "int some_variable = 0;" > conftest.$ac_ext
5350  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5351  (eval "$ac_compile" 2>conftest.err)
5352  cat conftest.err >&5
5353  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5354  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5355  cat conftest.err >&5
5356  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5357  cat conftest.out >&5
5358  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5359    lt_cv_nm_interface="MS dumpbin"
5360  fi
5361  rm -f conftest*
5362fi
5363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5364printf "%s\n" "$lt_cv_nm_interface" >&6; }
5365
5366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5367printf %s "checking whether ln -s works... " >&6; }
5368LN_S=$as_ln_s
5369if test "$LN_S" = "ln -s"; then
5370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371printf "%s\n" "yes" >&6; }
5372else
5373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5374printf "%s\n" "no, using $LN_S" >&6; }
5375fi
5376
5377# find the maximum length of command line arguments
5378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5379printf %s "checking the maximum length of command line arguments... " >&6; }
5380if test ${lt_cv_sys_max_cmd_len+y}
5381then :
5382  printf %s "(cached) " >&6
5383else $as_nop
5384    i=0
5385  teststring=ABCD
5386
5387  case $build_os in
5388  msdosdjgpp*)
5389    # On DJGPP, this test can blow up pretty badly due to problems in libc
5390    # (any single argument exceeding 2000 bytes causes a buffer overrun
5391    # during glob expansion).  Even if it were fixed, the result of this
5392    # check would be larger than it should be.
5393    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5394    ;;
5395
5396  gnu*)
5397    # Under GNU Hurd, this test is not required because there is
5398    # no limit to the length of command line arguments.
5399    # Libtool will interpret -1 as no limit whatsoever
5400    lt_cv_sys_max_cmd_len=-1;
5401    ;;
5402
5403  cygwin* | mingw* | cegcc*)
5404    # On Win9x/ME, this test blows up -- it succeeds, but takes
5405    # about 5 minutes as the teststring grows exponentially.
5406    # Worse, since 9x/ME are not pre-emptively multitasking,
5407    # you end up with a "frozen" computer, even though with patience
5408    # the test eventually succeeds (with a max line length of 256k).
5409    # Instead, let's just punt: use the minimum linelength reported by
5410    # all of the supported platforms: 8192 (on NT/2K/XP).
5411    lt_cv_sys_max_cmd_len=8192;
5412    ;;
5413
5414  mint*)
5415    # On MiNT this can take a long time and run out of memory.
5416    lt_cv_sys_max_cmd_len=8192;
5417    ;;
5418
5419  amigaos*)
5420    # On AmigaOS with pdksh, this test takes hours, literally.
5421    # So we just punt and use a minimum line length of 8192.
5422    lt_cv_sys_max_cmd_len=8192;
5423    ;;
5424
5425  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5426    # This has been around since 386BSD, at least.  Likely further.
5427    if test -x /sbin/sysctl; then
5428      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5429    elif test -x /usr/sbin/sysctl; then
5430      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5431    else
5432      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5433    fi
5434    # And add a safety zone
5435    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5437    ;;
5438
5439  interix*)
5440    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5441    lt_cv_sys_max_cmd_len=196608
5442    ;;
5443
5444  os2*)
5445    # The test takes a long time on OS/2.
5446    lt_cv_sys_max_cmd_len=8192
5447    ;;
5448
5449  osf*)
5450    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5451    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5452    # nice to cause kernel panics so lets avoid the loop below.
5453    # First set a reasonable default.
5454    lt_cv_sys_max_cmd_len=16384
5455    #
5456    if test -x /sbin/sysconfig; then
5457      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5458        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5459      esac
5460    fi
5461    ;;
5462  sco3.2v5*)
5463    lt_cv_sys_max_cmd_len=102400
5464    ;;
5465  sysv5* | sco5v6* | sysv4.2uw2*)
5466    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5467    if test -n "$kargmax"; then
5468      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5469    else
5470      lt_cv_sys_max_cmd_len=32768
5471    fi
5472    ;;
5473  *)
5474    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5475    if test -n "$lt_cv_sys_max_cmd_len" && \
5476       test undefined != "$lt_cv_sys_max_cmd_len"; then
5477      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5478      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5479    else
5480      # Make teststring a little bigger before we do anything with it.
5481      # a 1K string should be a reasonable start.
5482      for i in 1 2 3 4 5 6 7 8; do
5483        teststring=$teststring$teststring
5484      done
5485      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5486      # If test is not a shell built-in, we'll probably end up computing a
5487      # maximum length that is only half of the actual maximum length, but
5488      # we can't tell.
5489      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5490	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5491	      test 17 != "$i" # 1/2 MB should be enough
5492      do
5493        i=`expr $i + 1`
5494        teststring=$teststring$teststring
5495      done
5496      # Only check the string length outside the loop.
5497      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5498      teststring=
5499      # Add a significant safety factor because C++ compilers can tack on
5500      # massive amounts of additional arguments before passing them to the
5501      # linker.  It appears as though 1/2 is a usable value.
5502      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5503    fi
5504    ;;
5505  esac
5506
5507fi
5508
5509if test -n "$lt_cv_sys_max_cmd_len"; then
5510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5511printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5512else
5513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5514printf "%s\n" "none" >&6; }
5515fi
5516max_cmd_len=$lt_cv_sys_max_cmd_len
5517
5518
5519
5520
5521
5522
5523: ${CP="cp -f"}
5524: ${MV="mv -f"}
5525: ${RM="rm -f"}
5526
5527if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5528  lt_unset=unset
5529else
5530  lt_unset=false
5531fi
5532
5533
5534
5535
5536
5537# test EBCDIC or ASCII
5538case `echo X|tr X '\101'` in
5539 A) # ASCII based system
5540    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5541  lt_SP2NL='tr \040 \012'
5542  lt_NL2SP='tr \015\012 \040\040'
5543  ;;
5544 *) # EBCDIC based system
5545  lt_SP2NL='tr \100 \n'
5546  lt_NL2SP='tr \r\n \100\100'
5547  ;;
5548esac
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5559printf %s "checking how to convert $build file names to $host format... " >&6; }
5560if test ${lt_cv_to_host_file_cmd+y}
5561then :
5562  printf %s "(cached) " >&6
5563else $as_nop
5564  case $host in
5565  *-*-mingw* )
5566    case $build in
5567      *-*-mingw* ) # actually msys
5568        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5569        ;;
5570      *-*-cygwin* )
5571        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5572        ;;
5573      * ) # otherwise, assume *nix
5574        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5575        ;;
5576    esac
5577    ;;
5578  *-*-cygwin* )
5579    case $build in
5580      *-*-mingw* ) # actually msys
5581        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5582        ;;
5583      *-*-cygwin* )
5584        lt_cv_to_host_file_cmd=func_convert_file_noop
5585        ;;
5586      * ) # otherwise, assume *nix
5587        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5588        ;;
5589    esac
5590    ;;
5591  * ) # unhandled hosts (and "normal" native builds)
5592    lt_cv_to_host_file_cmd=func_convert_file_noop
5593    ;;
5594esac
5595
5596fi
5597
5598to_host_file_cmd=$lt_cv_to_host_file_cmd
5599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5600printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5601
5602
5603
5604
5605
5606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5607printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5608if test ${lt_cv_to_tool_file_cmd+y}
5609then :
5610  printf %s "(cached) " >&6
5611else $as_nop
5612  #assume ordinary cross tools, or native build.
5613lt_cv_to_tool_file_cmd=func_convert_file_noop
5614case $host in
5615  *-*-mingw* )
5616    case $build in
5617      *-*-mingw* ) # actually msys
5618        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5619        ;;
5620    esac
5621    ;;
5622esac
5623
5624fi
5625
5626to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5628printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5629
5630
5631
5632
5633
5634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5635printf %s "checking for $LD option to reload object files... " >&6; }
5636if test ${lt_cv_ld_reload_flag+y}
5637then :
5638  printf %s "(cached) " >&6
5639else $as_nop
5640  lt_cv_ld_reload_flag='-r'
5641fi
5642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5643printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5644reload_flag=$lt_cv_ld_reload_flag
5645case $reload_flag in
5646"" | " "*) ;;
5647*) reload_flag=" $reload_flag" ;;
5648esac
5649reload_cmds='$LD$reload_flag -o $output$reload_objs'
5650case $host_os in
5651  cygwin* | mingw* | pw32* | cegcc*)
5652    if test yes != "$GCC"; then
5653      reload_cmds=false
5654    fi
5655    ;;
5656  darwin*)
5657    if test yes = "$GCC"; then
5658      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5659    else
5660      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5661    fi
5662    ;;
5663esac
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673if test -n "$ac_tool_prefix"; then
5674  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5675set dummy ${ac_tool_prefix}file; ac_word=$2
5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677printf %s "checking for $ac_word... " >&6; }
5678if test ${ac_cv_prog_FILECMD+y}
5679then :
5680  printf %s "(cached) " >&6
5681else $as_nop
5682  if test -n "$FILECMD"; then
5683  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688  IFS=$as_save_IFS
5689  case $as_dir in #(((
5690    '') as_dir=./ ;;
5691    */) ;;
5692    *) as_dir=$as_dir/ ;;
5693  esac
5694    for ac_exec_ext in '' $ac_executable_extensions; do
5695  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5696    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5697    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5698    break 2
5699  fi
5700done
5701  done
5702IFS=$as_save_IFS
5703
5704fi
5705fi
5706FILECMD=$ac_cv_prog_FILECMD
5707if test -n "$FILECMD"; then
5708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5709printf "%s\n" "$FILECMD" >&6; }
5710else
5711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712printf "%s\n" "no" >&6; }
5713fi
5714
5715
5716fi
5717if test -z "$ac_cv_prog_FILECMD"; then
5718  ac_ct_FILECMD=$FILECMD
5719  # Extract the first word of "file", so it can be a program name with args.
5720set dummy file; ac_word=$2
5721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722printf %s "checking for $ac_word... " >&6; }
5723if test ${ac_cv_prog_ac_ct_FILECMD+y}
5724then :
5725  printf %s "(cached) " >&6
5726else $as_nop
5727  if test -n "$ac_ct_FILECMD"; then
5728  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5729else
5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731for as_dir in $PATH
5732do
5733  IFS=$as_save_IFS
5734  case $as_dir in #(((
5735    '') as_dir=./ ;;
5736    */) ;;
5737    *) as_dir=$as_dir/ ;;
5738  esac
5739    for ac_exec_ext in '' $ac_executable_extensions; do
5740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5741    ac_cv_prog_ac_ct_FILECMD="file"
5742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5743    break 2
5744  fi
5745done
5746  done
5747IFS=$as_save_IFS
5748
5749fi
5750fi
5751ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5752if test -n "$ac_ct_FILECMD"; then
5753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5754printf "%s\n" "$ac_ct_FILECMD" >&6; }
5755else
5756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757printf "%s\n" "no" >&6; }
5758fi
5759
5760  if test "x$ac_ct_FILECMD" = x; then
5761    FILECMD=":"
5762  else
5763    case $cross_compiling:$ac_tool_warned in
5764yes:)
5765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767ac_tool_warned=yes ;;
5768esac
5769    FILECMD=$ac_ct_FILECMD
5770  fi
5771else
5772  FILECMD="$ac_cv_prog_FILECMD"
5773fi
5774
5775
5776
5777
5778
5779
5780
5781if test -n "$ac_tool_prefix"; then
5782  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5783set dummy ${ac_tool_prefix}objdump; ac_word=$2
5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785printf %s "checking for $ac_word... " >&6; }
5786if test ${ac_cv_prog_OBJDUMP+y}
5787then :
5788  printf %s "(cached) " >&6
5789else $as_nop
5790  if test -n "$OBJDUMP"; then
5791  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5792else
5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796  IFS=$as_save_IFS
5797  case $as_dir in #(((
5798    '') as_dir=./ ;;
5799    */) ;;
5800    *) as_dir=$as_dir/ ;;
5801  esac
5802    for ac_exec_ext in '' $ac_executable_extensions; do
5803  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5804    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5805    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5806    break 2
5807  fi
5808done
5809  done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814OBJDUMP=$ac_cv_prog_OBJDUMP
5815if test -n "$OBJDUMP"; then
5816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5817printf "%s\n" "$OBJDUMP" >&6; }
5818else
5819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820printf "%s\n" "no" >&6; }
5821fi
5822
5823
5824fi
5825if test -z "$ac_cv_prog_OBJDUMP"; then
5826  ac_ct_OBJDUMP=$OBJDUMP
5827  # Extract the first word of "objdump", so it can be a program name with args.
5828set dummy objdump; ac_word=$2
5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830printf %s "checking for $ac_word... " >&6; }
5831if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5832then :
5833  printf %s "(cached) " >&6
5834else $as_nop
5835  if test -n "$ac_ct_OBJDUMP"; then
5836  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841  IFS=$as_save_IFS
5842  case $as_dir in #(((
5843    '') as_dir=./ ;;
5844    */) ;;
5845    *) as_dir=$as_dir/ ;;
5846  esac
5847    for ac_exec_ext in '' $ac_executable_extensions; do
5848  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5849    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5850    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5851    break 2
5852  fi
5853done
5854  done
5855IFS=$as_save_IFS
5856
5857fi
5858fi
5859ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5860if test -n "$ac_ct_OBJDUMP"; then
5861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5862printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5863else
5864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865printf "%s\n" "no" >&6; }
5866fi
5867
5868  if test "x$ac_ct_OBJDUMP" = x; then
5869    OBJDUMP="false"
5870  else
5871    case $cross_compiling:$ac_tool_warned in
5872yes:)
5873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875ac_tool_warned=yes ;;
5876esac
5877    OBJDUMP=$ac_ct_OBJDUMP
5878  fi
5879else
5880  OBJDUMP="$ac_cv_prog_OBJDUMP"
5881fi
5882
5883test -z "$OBJDUMP" && OBJDUMP=objdump
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5894printf %s "checking how to recognize dependent libraries... " >&6; }
5895if test ${lt_cv_deplibs_check_method+y}
5896then :
5897  printf %s "(cached) " >&6
5898else $as_nop
5899  lt_cv_file_magic_cmd='$MAGIC_CMD'
5900lt_cv_file_magic_test_file=
5901lt_cv_deplibs_check_method='unknown'
5902# Need to set the preceding variable on all platforms that support
5903# interlibrary dependencies.
5904# 'none' -- dependencies not supported.
5905# 'unknown' -- same as none, but documents that we really don't know.
5906# 'pass_all' -- all dependencies passed with no checks.
5907# 'test_compile' -- check by making test program.
5908# 'file_magic [[regex]]' -- check by looking for files in library path
5909# that responds to the $file_magic_cmd with a given extended regex.
5910# If you have 'file' or equivalent on your system and you're not sure
5911# whether 'pass_all' will *always* work, you probably want this one.
5912
5913case $host_os in
5914aix[4-9]*)
5915  lt_cv_deplibs_check_method=pass_all
5916  ;;
5917
5918beos*)
5919  lt_cv_deplibs_check_method=pass_all
5920  ;;
5921
5922bsdi[45]*)
5923  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5924  lt_cv_file_magic_cmd='$FILECMD -L'
5925  lt_cv_file_magic_test_file=/shlib/libc.so
5926  ;;
5927
5928cygwin*)
5929  # func_win32_libid is a shell function defined in ltmain.sh
5930  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5931  lt_cv_file_magic_cmd='func_win32_libid'
5932  ;;
5933
5934mingw* | pw32*)
5935  # Base MSYS/MinGW do not provide the 'file' command needed by
5936  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5937  # unless we find 'file', for example because we are cross-compiling.
5938  if ( file / ) >/dev/null 2>&1; then
5939    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5940    lt_cv_file_magic_cmd='func_win32_libid'
5941  else
5942    # Keep this pattern in sync with the one in func_win32_libid.
5943    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5944    lt_cv_file_magic_cmd='$OBJDUMP -f'
5945  fi
5946  ;;
5947
5948cegcc*)
5949  # use the weaker test based on 'objdump'. See mingw*.
5950  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5951  lt_cv_file_magic_cmd='$OBJDUMP -f'
5952  ;;
5953
5954darwin* | rhapsody*)
5955  lt_cv_deplibs_check_method=pass_all
5956  ;;
5957
5958freebsd* | dragonfly* | midnightbsd*)
5959  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960    case $host_cpu in
5961    i*86 )
5962      # Not sure whether the presence of OpenBSD here was a mistake.
5963      # Let's accept both of them until this is cleared up.
5964      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5965      lt_cv_file_magic_cmd=$FILECMD
5966      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5967      ;;
5968    esac
5969  else
5970    lt_cv_deplibs_check_method=pass_all
5971  fi
5972  ;;
5973
5974haiku*)
5975  lt_cv_deplibs_check_method=pass_all
5976  ;;
5977
5978hpux10.20* | hpux11*)
5979  lt_cv_file_magic_cmd=$FILECMD
5980  case $host_cpu in
5981  ia64*)
5982    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5983    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5984    ;;
5985  hppa*64*)
5986    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]'
5987    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5988    ;;
5989  *)
5990    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5991    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5992    ;;
5993  esac
5994  ;;
5995
5996interix[3-9]*)
5997  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5998  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5999  ;;
6000
6001irix5* | irix6* | nonstopux*)
6002  case $LD in
6003  *-32|*"-32 ") libmagic=32-bit;;
6004  *-n32|*"-n32 ") libmagic=N32;;
6005  *-64|*"-64 ") libmagic=64-bit;;
6006  *) libmagic=never-match;;
6007  esac
6008  lt_cv_deplibs_check_method=pass_all
6009  ;;
6010
6011# This must be glibc/ELF.
6012linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6013  lt_cv_deplibs_check_method=pass_all
6014  ;;
6015
6016netbsd*)
6017  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6018    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6019  else
6020    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6021  fi
6022  ;;
6023
6024newos6*)
6025  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6026  lt_cv_file_magic_cmd=$FILECMD
6027  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6028  ;;
6029
6030*nto* | *qnx*)
6031  lt_cv_deplibs_check_method=pass_all
6032  ;;
6033
6034openbsd* | bitrig*)
6035  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6036    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6037  else
6038    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6039  fi
6040  ;;
6041
6042osf3* | osf4* | osf5*)
6043  lt_cv_deplibs_check_method=pass_all
6044  ;;
6045
6046rdos*)
6047  lt_cv_deplibs_check_method=pass_all
6048  ;;
6049
6050solaris*)
6051  lt_cv_deplibs_check_method=pass_all
6052  ;;
6053
6054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6055  lt_cv_deplibs_check_method=pass_all
6056  ;;
6057
6058sysv4 | sysv4.3*)
6059  case $host_vendor in
6060  motorola)
6061    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]'
6062    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6063    ;;
6064  ncr)
6065    lt_cv_deplibs_check_method=pass_all
6066    ;;
6067  sequent)
6068    lt_cv_file_magic_cmd='/bin/file'
6069    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6070    ;;
6071  sni)
6072    lt_cv_file_magic_cmd='/bin/file'
6073    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6074    lt_cv_file_magic_test_file=/lib/libc.so
6075    ;;
6076  siemens)
6077    lt_cv_deplibs_check_method=pass_all
6078    ;;
6079  pc)
6080    lt_cv_deplibs_check_method=pass_all
6081    ;;
6082  esac
6083  ;;
6084
6085tpf*)
6086  lt_cv_deplibs_check_method=pass_all
6087  ;;
6088os2*)
6089  lt_cv_deplibs_check_method=pass_all
6090  ;;
6091esac
6092
6093fi
6094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6095printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6096
6097file_magic_glob=
6098want_nocaseglob=no
6099if test "$build" = "$host"; then
6100  case $host_os in
6101  mingw* | pw32*)
6102    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6103      want_nocaseglob=yes
6104    else
6105      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6106    fi
6107    ;;
6108  esac
6109fi
6110
6111file_magic_cmd=$lt_cv_file_magic_cmd
6112deplibs_check_method=$lt_cv_deplibs_check_method
6113test -z "$deplibs_check_method" && deplibs_check_method=unknown
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136if test -n "$ac_tool_prefix"; then
6137  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6138set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140printf %s "checking for $ac_word... " >&6; }
6141if test ${ac_cv_prog_DLLTOOL+y}
6142then :
6143  printf %s "(cached) " >&6
6144else $as_nop
6145  if test -n "$DLLTOOL"; then
6146  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6147else
6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149for as_dir in $PATH
6150do
6151  IFS=$as_save_IFS
6152  case $as_dir in #(((
6153    '') as_dir=./ ;;
6154    */) ;;
6155    *) as_dir=$as_dir/ ;;
6156  esac
6157    for ac_exec_ext in '' $ac_executable_extensions; do
6158  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6159    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6160    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6161    break 2
6162  fi
6163done
6164  done
6165IFS=$as_save_IFS
6166
6167fi
6168fi
6169DLLTOOL=$ac_cv_prog_DLLTOOL
6170if test -n "$DLLTOOL"; then
6171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6172printf "%s\n" "$DLLTOOL" >&6; }
6173else
6174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175printf "%s\n" "no" >&6; }
6176fi
6177
6178
6179fi
6180if test -z "$ac_cv_prog_DLLTOOL"; then
6181  ac_ct_DLLTOOL=$DLLTOOL
6182  # Extract the first word of "dlltool", so it can be a program name with args.
6183set dummy dlltool; ac_word=$2
6184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185printf %s "checking for $ac_word... " >&6; }
6186if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6187then :
6188  printf %s "(cached) " >&6
6189else $as_nop
6190  if test -n "$ac_ct_DLLTOOL"; then
6191  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  case $as_dir in #(((
6198    '') as_dir=./ ;;
6199    */) ;;
6200    *) as_dir=$as_dir/ ;;
6201  esac
6202    for ac_exec_ext in '' $ac_executable_extensions; do
6203  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6204    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6205    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6206    break 2
6207  fi
6208done
6209  done
6210IFS=$as_save_IFS
6211
6212fi
6213fi
6214ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6215if test -n "$ac_ct_DLLTOOL"; then
6216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6217printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6218else
6219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220printf "%s\n" "no" >&6; }
6221fi
6222
6223  if test "x$ac_ct_DLLTOOL" = x; then
6224    DLLTOOL="false"
6225  else
6226    case $cross_compiling:$ac_tool_warned in
6227yes:)
6228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230ac_tool_warned=yes ;;
6231esac
6232    DLLTOOL=$ac_ct_DLLTOOL
6233  fi
6234else
6235  DLLTOOL="$ac_cv_prog_DLLTOOL"
6236fi
6237
6238test -z "$DLLTOOL" && DLLTOOL=dlltool
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6250printf %s "checking how to associate runtime and link libraries... " >&6; }
6251if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6252then :
6253  printf %s "(cached) " >&6
6254else $as_nop
6255  lt_cv_sharedlib_from_linklib_cmd='unknown'
6256
6257case $host_os in
6258cygwin* | mingw* | pw32* | cegcc*)
6259  # two different shell functions defined in ltmain.sh;
6260  # decide which one to use based on capabilities of $DLLTOOL
6261  case `$DLLTOOL --help 2>&1` in
6262  *--identify-strict*)
6263    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6264    ;;
6265  *)
6266    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6267    ;;
6268  esac
6269  ;;
6270*)
6271  # fallback: assume linklib IS sharedlib
6272  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6273  ;;
6274esac
6275
6276fi
6277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6278printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6279sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6280test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6281
6282
6283
6284
6285
6286
6287
6288
6289if test -n "$ac_tool_prefix"; then
6290  for ac_prog in ar
6291  do
6292    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295printf %s "checking for $ac_word... " >&6; }
6296if test ${ac_cv_prog_AR+y}
6297then :
6298  printf %s "(cached) " >&6
6299else $as_nop
6300  if test -n "$AR"; then
6301  ac_cv_prog_AR="$AR" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  case $as_dir in #(((
6308    '') as_dir=./ ;;
6309    */) ;;
6310    *) as_dir=$as_dir/ ;;
6311  esac
6312    for ac_exec_ext in '' $ac_executable_extensions; do
6313  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6314    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6315    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6316    break 2
6317  fi
6318done
6319  done
6320IFS=$as_save_IFS
6321
6322fi
6323fi
6324AR=$ac_cv_prog_AR
6325if test -n "$AR"; then
6326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6327printf "%s\n" "$AR" >&6; }
6328else
6329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330printf "%s\n" "no" >&6; }
6331fi
6332
6333
6334    test -n "$AR" && break
6335  done
6336fi
6337if test -z "$AR"; then
6338  ac_ct_AR=$AR
6339  for ac_prog in ar
6340do
6341  # Extract the first word of "$ac_prog", so it can be a program name with args.
6342set dummy $ac_prog; ac_word=$2
6343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344printf %s "checking for $ac_word... " >&6; }
6345if test ${ac_cv_prog_ac_ct_AR+y}
6346then :
6347  printf %s "(cached) " >&6
6348else $as_nop
6349  if test -n "$ac_ct_AR"; then
6350  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6351else
6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355  IFS=$as_save_IFS
6356  case $as_dir in #(((
6357    '') as_dir=./ ;;
6358    */) ;;
6359    *) as_dir=$as_dir/ ;;
6360  esac
6361    for ac_exec_ext in '' $ac_executable_extensions; do
6362  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6363    ac_cv_prog_ac_ct_AR="$ac_prog"
6364    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6365    break 2
6366  fi
6367done
6368  done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373ac_ct_AR=$ac_cv_prog_ac_ct_AR
6374if test -n "$ac_ct_AR"; then
6375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6376printf "%s\n" "$ac_ct_AR" >&6; }
6377else
6378  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379printf "%s\n" "no" >&6; }
6380fi
6381
6382
6383  test -n "$ac_ct_AR" && break
6384done
6385
6386  if test "x$ac_ct_AR" = x; then
6387    AR="false"
6388  else
6389    case $cross_compiling:$ac_tool_warned in
6390yes:)
6391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6392printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393ac_tool_warned=yes ;;
6394esac
6395    AR=$ac_ct_AR
6396  fi
6397fi
6398
6399: ${AR=ar}
6400
6401
6402
6403
6404
6405
6406# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6407# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6408# higher priority because thats what people were doing historically (setting
6409# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6410# variable obsoleted/removed.
6411
6412test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6413lt_ar_flags=$AR_FLAGS
6414
6415
6416
6417
6418
6419
6420# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6421# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6422
6423
6424
6425
6426
6427
6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6429printf %s "checking for archiver @FILE support... " >&6; }
6430if test ${lt_cv_ar_at_file+y}
6431then :
6432  printf %s "(cached) " >&6
6433else $as_nop
6434  lt_cv_ar_at_file=no
6435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h.  */
6437
6438int
6439main (void)
6440{
6441
6442  ;
6443  return 0;
6444}
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"
6447then :
6448  echo conftest.$ac_objext > conftest.lst
6449      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6450      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6451  (eval $lt_ar_try) 2>&5
6452  ac_status=$?
6453  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454  test $ac_status = 0; }
6455      if test 0 -eq "$ac_status"; then
6456	# Ensure the archiver fails upon bogus file names.
6457	rm -f conftest.$ac_objext libconftest.a
6458	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6459  (eval $lt_ar_try) 2>&5
6460  ac_status=$?
6461  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462  test $ac_status = 0; }
6463	if test 0 -ne "$ac_status"; then
6464          lt_cv_ar_at_file=@
6465        fi
6466      fi
6467      rm -f conftest.* libconftest.a
6468
6469fi
6470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6471
6472fi
6473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6474printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6475
6476if test no = "$lt_cv_ar_at_file"; then
6477  archiver_list_spec=
6478else
6479  archiver_list_spec=$lt_cv_ar_at_file
6480fi
6481
6482
6483
6484
6485
6486
6487
6488if test -n "$ac_tool_prefix"; then
6489  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6490set dummy ${ac_tool_prefix}strip; ac_word=$2
6491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492printf %s "checking for $ac_word... " >&6; }
6493if test ${ac_cv_prog_STRIP+y}
6494then :
6495  printf %s "(cached) " >&6
6496else $as_nop
6497  if test -n "$STRIP"; then
6498  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503  IFS=$as_save_IFS
6504  case $as_dir in #(((
6505    '') as_dir=./ ;;
6506    */) ;;
6507    *) as_dir=$as_dir/ ;;
6508  esac
6509    for ac_exec_ext in '' $ac_executable_extensions; do
6510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6511    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6513    break 2
6514  fi
6515done
6516  done
6517IFS=$as_save_IFS
6518
6519fi
6520fi
6521STRIP=$ac_cv_prog_STRIP
6522if test -n "$STRIP"; then
6523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6524printf "%s\n" "$STRIP" >&6; }
6525else
6526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527printf "%s\n" "no" >&6; }
6528fi
6529
6530
6531fi
6532if test -z "$ac_cv_prog_STRIP"; then
6533  ac_ct_STRIP=$STRIP
6534  # Extract the first word of "strip", so it can be a program name with args.
6535set dummy strip; ac_word=$2
6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537printf %s "checking for $ac_word... " >&6; }
6538if test ${ac_cv_prog_ac_ct_STRIP+y}
6539then :
6540  printf %s "(cached) " >&6
6541else $as_nop
6542  if test -n "$ac_ct_STRIP"; then
6543  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6544else
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH
6547do
6548  IFS=$as_save_IFS
6549  case $as_dir in #(((
6550    '') as_dir=./ ;;
6551    */) ;;
6552    *) as_dir=$as_dir/ ;;
6553  esac
6554    for ac_exec_ext in '' $ac_executable_extensions; do
6555  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6556    ac_cv_prog_ac_ct_STRIP="strip"
6557    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6558    break 2
6559  fi
6560done
6561  done
6562IFS=$as_save_IFS
6563
6564fi
6565fi
6566ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6567if test -n "$ac_ct_STRIP"; then
6568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6569printf "%s\n" "$ac_ct_STRIP" >&6; }
6570else
6571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572printf "%s\n" "no" >&6; }
6573fi
6574
6575  if test "x$ac_ct_STRIP" = x; then
6576    STRIP=":"
6577  else
6578    case $cross_compiling:$ac_tool_warned in
6579yes:)
6580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582ac_tool_warned=yes ;;
6583esac
6584    STRIP=$ac_ct_STRIP
6585  fi
6586else
6587  STRIP="$ac_cv_prog_STRIP"
6588fi
6589
6590test -z "$STRIP" && STRIP=:
6591
6592
6593
6594
6595
6596
6597if test -n "$ac_tool_prefix"; then
6598  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6599set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601printf %s "checking for $ac_word... " >&6; }
6602if test ${ac_cv_prog_RANLIB+y}
6603then :
6604  printf %s "(cached) " >&6
6605else $as_nop
6606  if test -n "$RANLIB"; then
6607  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6608else
6609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610for as_dir in $PATH
6611do
6612  IFS=$as_save_IFS
6613  case $as_dir in #(((
6614    '') as_dir=./ ;;
6615    */) ;;
6616    *) as_dir=$as_dir/ ;;
6617  esac
6618    for ac_exec_ext in '' $ac_executable_extensions; do
6619  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6620    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6621    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6622    break 2
6623  fi
6624done
6625  done
6626IFS=$as_save_IFS
6627
6628fi
6629fi
6630RANLIB=$ac_cv_prog_RANLIB
6631if test -n "$RANLIB"; then
6632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6633printf "%s\n" "$RANLIB" >&6; }
6634else
6635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636printf "%s\n" "no" >&6; }
6637fi
6638
6639
6640fi
6641if test -z "$ac_cv_prog_RANLIB"; then
6642  ac_ct_RANLIB=$RANLIB
6643  # Extract the first word of "ranlib", so it can be a program name with args.
6644set dummy ranlib; ac_word=$2
6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646printf %s "checking for $ac_word... " >&6; }
6647if test ${ac_cv_prog_ac_ct_RANLIB+y}
6648then :
6649  printf %s "(cached) " >&6
6650else $as_nop
6651  if test -n "$ac_ct_RANLIB"; then
6652  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657  IFS=$as_save_IFS
6658  case $as_dir in #(((
6659    '') as_dir=./ ;;
6660    */) ;;
6661    *) as_dir=$as_dir/ ;;
6662  esac
6663    for ac_exec_ext in '' $ac_executable_extensions; do
6664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6665    ac_cv_prog_ac_ct_RANLIB="ranlib"
6666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6667    break 2
6668  fi
6669done
6670  done
6671IFS=$as_save_IFS
6672
6673fi
6674fi
6675ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6676if test -n "$ac_ct_RANLIB"; then
6677  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6678printf "%s\n" "$ac_ct_RANLIB" >&6; }
6679else
6680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681printf "%s\n" "no" >&6; }
6682fi
6683
6684  if test "x$ac_ct_RANLIB" = x; then
6685    RANLIB=":"
6686  else
6687    case $cross_compiling:$ac_tool_warned in
6688yes:)
6689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691ac_tool_warned=yes ;;
6692esac
6693    RANLIB=$ac_ct_RANLIB
6694  fi
6695else
6696  RANLIB="$ac_cv_prog_RANLIB"
6697fi
6698
6699test -z "$RANLIB" && RANLIB=:
6700
6701
6702
6703
6704
6705
6706# Determine commands to create old-style static archives.
6707old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6708old_postinstall_cmds='chmod 644 $oldlib'
6709old_postuninstall_cmds=
6710
6711if test -n "$RANLIB"; then
6712  case $host_os in
6713  bitrig* | openbsd*)
6714    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6715    ;;
6716  *)
6717    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6718    ;;
6719  esac
6720  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6721fi
6722
6723case $host_os in
6724  darwin*)
6725    lock_old_archive_extraction=yes ;;
6726  *)
6727    lock_old_archive_extraction=no ;;
6728esac
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
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768# If no C compiler was specified, use CC.
6769LTCC=${LTCC-"$CC"}
6770
6771# If no C compiler flags were specified, use CFLAGS.
6772LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6773
6774# Allow CC to be a program name with arguments.
6775compiler=$CC
6776
6777
6778# Check for command to grab the raw symbol name followed by C symbol from nm.
6779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6780printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6781if test ${lt_cv_sys_global_symbol_pipe+y}
6782then :
6783  printf %s "(cached) " >&6
6784else $as_nop
6785
6786# These are sane defaults that work on at least a few old systems.
6787# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6788
6789# Character class describing NM global symbol codes.
6790symcode='[BCDEGRST]'
6791
6792# Regexp to match symbols that can be accessed directly from C.
6793sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6794
6795# Define system-specific variables.
6796case $host_os in
6797aix*)
6798  symcode='[BCDT]'
6799  ;;
6800cygwin* | mingw* | pw32* | cegcc*)
6801  symcode='[ABCDGISTW]'
6802  ;;
6803hpux*)
6804  if test ia64 = "$host_cpu"; then
6805    symcode='[ABCDEGRST]'
6806  fi
6807  ;;
6808irix* | nonstopux*)
6809  symcode='[BCDEGRST]'
6810  ;;
6811osf*)
6812  symcode='[BCDEGQRST]'
6813  ;;
6814solaris*)
6815  symcode='[BDRT]'
6816  ;;
6817sco3.2v5*)
6818  symcode='[DT]'
6819  ;;
6820sysv4.2uw2*)
6821  symcode='[DT]'
6822  ;;
6823sysv5* | sco5v6* | unixware* | OpenUNIX*)
6824  symcode='[ABDT]'
6825  ;;
6826sysv4)
6827  symcode='[DFNSTU]'
6828  ;;
6829esac
6830
6831# If we're using GNU nm, then use its standard symbol codes.
6832case `$NM -V 2>&1` in
6833*GNU* | *'with BFD'*)
6834  symcode='[ABCDGIRSTW]' ;;
6835esac
6836
6837if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6838  # Gets list of data symbols to import.
6839  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6840  # Adjust the below global symbol transforms to fixup imported variables.
6841  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6842  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6843  lt_c_name_lib_hook="\
6844  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6845  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6846else
6847  # Disable hooks by default.
6848  lt_cv_sys_global_symbol_to_import=
6849  lt_cdecl_hook=
6850  lt_c_name_hook=
6851  lt_c_name_lib_hook=
6852fi
6853
6854# Transform an extracted symbol line into a proper C declaration.
6855# Some systems (esp. on ia64) link data and code symbols differently,
6856# so use this general approach.
6857lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6858$lt_cdecl_hook\
6859" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6860" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6861
6862# Transform an extracted symbol line into symbol name and symbol address
6863lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6864$lt_c_name_hook\
6865" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6866" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6867
6868# Transform an extracted symbol line into symbol name with lib prefix and
6869# symbol address.
6870lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6871$lt_c_name_lib_hook\
6872" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6873" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6874" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6875
6876# Handle CRLF in mingw tool chain
6877opt_cr=
6878case $build_os in
6879mingw*)
6880  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6881  ;;
6882esac
6883
6884# Try without a prefix underscore, then with it.
6885for ac_symprfx in "" "_"; do
6886
6887  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6888  symxfrm="\\1 $ac_symprfx\\2 \\2"
6889
6890  # Write the raw and C identifiers.
6891  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892    # Fake it for dumpbin and say T for any non-static function,
6893    # D for any global variable and I for any imported variable.
6894    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6895    # which start with @ or ?.
6896    lt_cv_sys_global_symbol_pipe="$AWK '"\
6897"     {last_section=section; section=\$ 3};"\
6898"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6899"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6900"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6901"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6902"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6903"     \$ 0!~/External *\|/{next};"\
6904"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6905"     {if(hide[section]) next};"\
6906"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6907"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6908"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6909"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6910"     ' prfx=^$ac_symprfx"
6911  else
6912    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6913  fi
6914  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6915
6916  # Check to see that the pipe works correctly.
6917  pipe_works=no
6918
6919  rm -f conftest*
6920  cat > conftest.$ac_ext <<_LT_EOF
6921#ifdef __cplusplus
6922extern "C" {
6923#endif
6924char nm_test_var;
6925void nm_test_func(void);
6926void nm_test_func(void){}
6927#ifdef __cplusplus
6928}
6929#endif
6930int main(){nm_test_var='a';nm_test_func();return(0);}
6931_LT_EOF
6932
6933  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6934  (eval $ac_compile) 2>&5
6935  ac_status=$?
6936  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937  test $ac_status = 0; }; then
6938    # Now try to grab the symbols.
6939    nlist=conftest.nm
6940    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6941  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6942  ac_status=$?
6943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944  test $ac_status = 0; } && test -s "$nlist"; then
6945      # Try sorting and uniquifying the output.
6946      if sort "$nlist" | uniq > "$nlist"T; then
6947	mv -f "$nlist"T "$nlist"
6948      else
6949	rm -f "$nlist"T
6950      fi
6951
6952      # Make sure that we snagged all the symbols we need.
6953      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6954	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6955	  cat <<_LT_EOF > conftest.$ac_ext
6956/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6957#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6958/* DATA imports from DLLs on WIN32 can't be const, because runtime
6959   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6960# define LT_DLSYM_CONST
6961#elif defined __osf__
6962/* This system does not cope well with relocations in const data.  */
6963# define LT_DLSYM_CONST
6964#else
6965# define LT_DLSYM_CONST const
6966#endif
6967
6968#ifdef __cplusplus
6969extern "C" {
6970#endif
6971
6972_LT_EOF
6973	  # Now generate the symbol file.
6974	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6975
6976	  cat <<_LT_EOF >> conftest.$ac_ext
6977
6978/* The mapping between symbol names and symbols.  */
6979LT_DLSYM_CONST struct {
6980  const char *name;
6981  void       *address;
6982}
6983lt__PROGRAM__LTX_preloaded_symbols[] =
6984{
6985  { "@PROGRAM@", (void *) 0 },
6986_LT_EOF
6987	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6988	  cat <<\_LT_EOF >> conftest.$ac_ext
6989  {0, (void *) 0}
6990};
6991
6992/* This works around a problem in FreeBSD linker */
6993#ifdef FREEBSD_WORKAROUND
6994static const void *lt_preloaded_setup() {
6995  return lt__PROGRAM__LTX_preloaded_symbols;
6996}
6997#endif
6998
6999#ifdef __cplusplus
7000}
7001#endif
7002_LT_EOF
7003	  # Now try linking the two files.
7004	  mv conftest.$ac_objext conftstm.$ac_objext
7005	  lt_globsym_save_LIBS=$LIBS
7006	  lt_globsym_save_CFLAGS=$CFLAGS
7007	  LIBS=conftstm.$ac_objext
7008	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7009	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7010  (eval $ac_link) 2>&5
7011  ac_status=$?
7012  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7014	    pipe_works=yes
7015	  fi
7016	  LIBS=$lt_globsym_save_LIBS
7017	  CFLAGS=$lt_globsym_save_CFLAGS
7018	else
7019	  echo "cannot find nm_test_func in $nlist" >&5
7020	fi
7021      else
7022	echo "cannot find nm_test_var in $nlist" >&5
7023      fi
7024    else
7025      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7026    fi
7027  else
7028    echo "$progname: failed program was:" >&5
7029    cat conftest.$ac_ext >&5
7030  fi
7031  rm -rf conftest* conftst*
7032
7033  # Do not use the global_symbol_pipe unless it works.
7034  if test yes = "$pipe_works"; then
7035    break
7036  else
7037    lt_cv_sys_global_symbol_pipe=
7038  fi
7039done
7040
7041fi
7042
7043if test -z "$lt_cv_sys_global_symbol_pipe"; then
7044  lt_cv_sys_global_symbol_to_cdecl=
7045fi
7046if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7048printf "%s\n" "failed" >&6; }
7049else
7050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7051printf "%s\n" "ok" >&6; }
7052fi
7053
7054# Response file support.
7055if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7056  nm_file_list_spec='@'
7057elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7058  nm_file_list_spec='@'
7059fi
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
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7098printf %s "checking for sysroot... " >&6; }
7099
7100# Check whether --with-sysroot was given.
7101if test ${with_sysroot+y}
7102then :
7103  withval=$with_sysroot;
7104else $as_nop
7105  with_sysroot=no
7106fi
7107
7108
7109lt_sysroot=
7110case $with_sysroot in #(
7111 yes)
7112   if test yes = "$GCC"; then
7113     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7114   fi
7115   ;; #(
7116 /*)
7117   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7118   ;; #(
7119 no|'')
7120   ;; #(
7121 *)
7122   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7123printf "%s\n" "$with_sysroot" >&6; }
7124   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7125   ;;
7126esac
7127
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7129printf "%s\n" "${lt_sysroot:-no}" >&6; }
7130
7131
7132
7133
7134
7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7136printf %s "checking for a working dd... " >&6; }
7137if test ${ac_cv_path_lt_DD+y}
7138then :
7139  printf %s "(cached) " >&6
7140else $as_nop
7141  printf 0123456789abcdef0123456789abcdef >conftest.i
7142cat conftest.i conftest.i >conftest2.i
7143: ${lt_DD:=$DD}
7144if test -z "$lt_DD"; then
7145  ac_path_lt_DD_found=false
7146  # Loop through the user's path and test for each of PROGNAME-LIST
7147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150  IFS=$as_save_IFS
7151  case $as_dir in #(((
7152    '') as_dir=./ ;;
7153    */) ;;
7154    *) as_dir=$as_dir/ ;;
7155  esac
7156    for ac_prog in dd
7157   do
7158    for ac_exec_ext in '' $ac_executable_extensions; do
7159      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7160      as_fn_executable_p "$ac_path_lt_DD" || continue
7161if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7162  cmp -s conftest.i conftest.out \
7163  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7164fi
7165      $ac_path_lt_DD_found && break 3
7166    done
7167  done
7168  done
7169IFS=$as_save_IFS
7170  if test -z "$ac_cv_path_lt_DD"; then
7171    :
7172  fi
7173else
7174  ac_cv_path_lt_DD=$lt_DD
7175fi
7176
7177rm -f conftest.i conftest2.i conftest.out
7178fi
7179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7180printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7181
7182
7183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7184printf %s "checking how to truncate binary pipes... " >&6; }
7185if test ${lt_cv_truncate_bin+y}
7186then :
7187  printf %s "(cached) " >&6
7188else $as_nop
7189  printf 0123456789abcdef0123456789abcdef >conftest.i
7190cat conftest.i conftest.i >conftest2.i
7191lt_cv_truncate_bin=
7192if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7193  cmp -s conftest.i conftest.out \
7194  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7195fi
7196rm -f conftest.i conftest2.i conftest.out
7197test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7198fi
7199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7200printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7201
7202
7203
7204
7205
7206
7207
7208# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7209func_cc_basename ()
7210{
7211    for cc_temp in $*""; do
7212      case $cc_temp in
7213        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7214        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7215        \-*) ;;
7216        *) break;;
7217      esac
7218    done
7219    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7220}
7221
7222# Check whether --enable-libtool-lock was given.
7223if test ${enable_libtool_lock+y}
7224then :
7225  enableval=$enable_libtool_lock;
7226fi
7227
7228test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7229
7230# Some flags need to be propagated to the compiler or linker for good
7231# libtool support.
7232case $host in
7233ia64-*-hpux*)
7234  # Find out what ABI is being produced by ac_compile, and set mode
7235  # options accordingly.
7236  echo 'int i;' > conftest.$ac_ext
7237  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238  (eval $ac_compile) 2>&5
7239  ac_status=$?
7240  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241  test $ac_status = 0; }; then
7242    case `$FILECMD conftest.$ac_objext` in
7243      *ELF-32*)
7244	HPUX_IA64_MODE=32
7245	;;
7246      *ELF-64*)
7247	HPUX_IA64_MODE=64
7248	;;
7249    esac
7250  fi
7251  rm -rf conftest*
7252  ;;
7253*-*-irix6*)
7254  # Find out what ABI is being produced by ac_compile, and set linker
7255  # options accordingly.
7256  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7257  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7258  (eval $ac_compile) 2>&5
7259  ac_status=$?
7260  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7261  test $ac_status = 0; }; then
7262    if test yes = "$lt_cv_prog_gnu_ld"; then
7263      case `$FILECMD conftest.$ac_objext` in
7264	*32-bit*)
7265	  LD="${LD-ld} -melf32bsmip"
7266	  ;;
7267	*N32*)
7268	  LD="${LD-ld} -melf32bmipn32"
7269	  ;;
7270	*64-bit*)
7271	  LD="${LD-ld} -melf64bmip"
7272	;;
7273      esac
7274    else
7275      case `$FILECMD conftest.$ac_objext` in
7276	*32-bit*)
7277	  LD="${LD-ld} -32"
7278	  ;;
7279	*N32*)
7280	  LD="${LD-ld} -n32"
7281	  ;;
7282	*64-bit*)
7283	  LD="${LD-ld} -64"
7284	  ;;
7285      esac
7286    fi
7287  fi
7288  rm -rf conftest*
7289  ;;
7290
7291mips64*-*linux*)
7292  # Find out what ABI is being produced by ac_compile, and set linker
7293  # options accordingly.
7294  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7295  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296  (eval $ac_compile) 2>&5
7297  ac_status=$?
7298  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7299  test $ac_status = 0; }; then
7300    emul=elf
7301    case `$FILECMD conftest.$ac_objext` in
7302      *32-bit*)
7303	emul="${emul}32"
7304	;;
7305      *64-bit*)
7306	emul="${emul}64"
7307	;;
7308    esac
7309    case `$FILECMD conftest.$ac_objext` in
7310      *MSB*)
7311	emul="${emul}btsmip"
7312	;;
7313      *LSB*)
7314	emul="${emul}ltsmip"
7315	;;
7316    esac
7317    case `$FILECMD conftest.$ac_objext` in
7318      *N32*)
7319	emul="${emul}n32"
7320	;;
7321    esac
7322    LD="${LD-ld} -m $emul"
7323  fi
7324  rm -rf conftest*
7325  ;;
7326
7327x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7328s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7329  # Find out what ABI is being produced by ac_compile, and set linker
7330  # options accordingly.  Note that the listed cases only cover the
7331  # situations where additional linker options are needed (such as when
7332  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7333  # vice versa); the common cases where no linker options are needed do
7334  # not appear in the list.
7335  echo 'int i;' > conftest.$ac_ext
7336  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337  (eval $ac_compile) 2>&5
7338  ac_status=$?
7339  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340  test $ac_status = 0; }; then
7341    case `$FILECMD conftest.o` in
7342      *32-bit*)
7343	case $host in
7344	  x86_64-*kfreebsd*-gnu)
7345	    LD="${LD-ld} -m elf_i386_fbsd"
7346	    ;;
7347	  x86_64-*linux*)
7348	    case `$FILECMD conftest.o` in
7349	      *x86-64*)
7350		LD="${LD-ld} -m elf32_x86_64"
7351		;;
7352	      *)
7353		LD="${LD-ld} -m elf_i386"
7354		;;
7355	    esac
7356	    ;;
7357	  powerpc64le-*linux*)
7358	    LD="${LD-ld} -m elf32lppclinux"
7359	    ;;
7360	  powerpc64-*linux*)
7361	    LD="${LD-ld} -m elf32ppclinux"
7362	    ;;
7363	  s390x-*linux*)
7364	    LD="${LD-ld} -m elf_s390"
7365	    ;;
7366	  sparc64-*linux*)
7367	    LD="${LD-ld} -m elf32_sparc"
7368	    ;;
7369	esac
7370	;;
7371      *64-bit*)
7372	case $host in
7373	  x86_64-*kfreebsd*-gnu)
7374	    LD="${LD-ld} -m elf_x86_64_fbsd"
7375	    ;;
7376	  x86_64-*linux*)
7377	    LD="${LD-ld} -m elf_x86_64"
7378	    ;;
7379	  powerpcle-*linux*)
7380	    LD="${LD-ld} -m elf64lppc"
7381	    ;;
7382	  powerpc-*linux*)
7383	    LD="${LD-ld} -m elf64ppc"
7384	    ;;
7385	  s390*-*linux*|s390*-*tpf*)
7386	    LD="${LD-ld} -m elf64_s390"
7387	    ;;
7388	  sparc*-*linux*)
7389	    LD="${LD-ld} -m elf64_sparc"
7390	    ;;
7391	esac
7392	;;
7393    esac
7394  fi
7395  rm -rf conftest*
7396  ;;
7397
7398*-*-sco3.2v5*)
7399  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7400  SAVE_CFLAGS=$CFLAGS
7401  CFLAGS="$CFLAGS -belf"
7402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7403printf %s "checking whether the C compiler needs -belf... " >&6; }
7404if test ${lt_cv_cc_needs_belf+y}
7405then :
7406  printf %s "(cached) " >&6
7407else $as_nop
7408  ac_ext=c
7409ac_cpp='$CPP $CPPFLAGS'
7410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412ac_compiler_gnu=$ac_cv_c_compiler_gnu
7413
7414     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416
7417int
7418main (void)
7419{
7420
7421  ;
7422  return 0;
7423}
7424_ACEOF
7425if ac_fn_c_try_link "$LINENO"
7426then :
7427  lt_cv_cc_needs_belf=yes
7428else $as_nop
7429  lt_cv_cc_needs_belf=no
7430fi
7431rm -f core conftest.err conftest.$ac_objext conftest.beam \
7432    conftest$ac_exeext conftest.$ac_ext
7433     ac_ext=c
7434ac_cpp='$CPP $CPPFLAGS'
7435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438
7439fi
7440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7441printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7442  if test yes != "$lt_cv_cc_needs_belf"; then
7443    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7444    CFLAGS=$SAVE_CFLAGS
7445  fi
7446  ;;
7447*-*solaris*)
7448  # Find out what ABI is being produced by ac_compile, and set linker
7449  # options accordingly.
7450  echo 'int i;' > conftest.$ac_ext
7451  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7452  (eval $ac_compile) 2>&5
7453  ac_status=$?
7454  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455  test $ac_status = 0; }; then
7456    case `$FILECMD conftest.o` in
7457    *64-bit*)
7458      case $lt_cv_prog_gnu_ld in
7459      yes*)
7460        case $host in
7461        i?86-*-solaris*|x86_64-*-solaris*)
7462          LD="${LD-ld} -m elf_x86_64"
7463          ;;
7464        sparc*-*-solaris*)
7465          LD="${LD-ld} -m elf64_sparc"
7466          ;;
7467        esac
7468        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7469        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7470          LD=${LD-ld}_sol2
7471        fi
7472        ;;
7473      *)
7474	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7475	  LD="${LD-ld} -64"
7476	fi
7477	;;
7478      esac
7479      ;;
7480    esac
7481  fi
7482  rm -rf conftest*
7483  ;;
7484esac
7485
7486need_locks=$enable_libtool_lock
7487
7488if test -n "$ac_tool_prefix"; then
7489  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7490set dummy ${ac_tool_prefix}mt; ac_word=$2
7491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492printf %s "checking for $ac_word... " >&6; }
7493if test ${ac_cv_prog_MANIFEST_TOOL+y}
7494then :
7495  printf %s "(cached) " >&6
7496else $as_nop
7497  if test -n "$MANIFEST_TOOL"; then
7498  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7499else
7500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503  IFS=$as_save_IFS
7504  case $as_dir in #(((
7505    '') as_dir=./ ;;
7506    */) ;;
7507    *) as_dir=$as_dir/ ;;
7508  esac
7509    for ac_exec_ext in '' $ac_executable_extensions; do
7510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7511    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7513    break 2
7514  fi
7515done
7516  done
7517IFS=$as_save_IFS
7518
7519fi
7520fi
7521MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7522if test -n "$MANIFEST_TOOL"; then
7523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7524printf "%s\n" "$MANIFEST_TOOL" >&6; }
7525else
7526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527printf "%s\n" "no" >&6; }
7528fi
7529
7530
7531fi
7532if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7533  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7534  # Extract the first word of "mt", so it can be a program name with args.
7535set dummy mt; ac_word=$2
7536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537printf %s "checking for $ac_word... " >&6; }
7538if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7539then :
7540  printf %s "(cached) " >&6
7541else $as_nop
7542  if test -n "$ac_ct_MANIFEST_TOOL"; then
7543  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7544else
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548  IFS=$as_save_IFS
7549  case $as_dir in #(((
7550    '') as_dir=./ ;;
7551    */) ;;
7552    *) as_dir=$as_dir/ ;;
7553  esac
7554    for ac_exec_ext in '' $ac_executable_extensions; do
7555  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7556    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7557    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7558    break 2
7559  fi
7560done
7561  done
7562IFS=$as_save_IFS
7563
7564fi
7565fi
7566ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7567if test -n "$ac_ct_MANIFEST_TOOL"; then
7568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7569printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7570else
7571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572printf "%s\n" "no" >&6; }
7573fi
7574
7575  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7576    MANIFEST_TOOL=":"
7577  else
7578    case $cross_compiling:$ac_tool_warned in
7579yes:)
7580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582ac_tool_warned=yes ;;
7583esac
7584    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7585  fi
7586else
7587  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7588fi
7589
7590test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7592printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7593if test ${lt_cv_path_mainfest_tool+y}
7594then :
7595  printf %s "(cached) " >&6
7596else $as_nop
7597  lt_cv_path_mainfest_tool=no
7598  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7599  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7600  cat conftest.err >&5
7601  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7602    lt_cv_path_mainfest_tool=yes
7603  fi
7604  rm -f conftest*
7605fi
7606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7607printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7608if test yes != "$lt_cv_path_mainfest_tool"; then
7609  MANIFEST_TOOL=:
7610fi
7611
7612
7613
7614
7615
7616
7617  case $host_os in
7618    rhapsody* | darwin*)
7619    if test -n "$ac_tool_prefix"; then
7620  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7621set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623printf %s "checking for $ac_word... " >&6; }
7624if test ${ac_cv_prog_DSYMUTIL+y}
7625then :
7626  printf %s "(cached) " >&6
7627else $as_nop
7628  if test -n "$DSYMUTIL"; then
7629  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7630else
7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634  IFS=$as_save_IFS
7635  case $as_dir in #(((
7636    '') as_dir=./ ;;
7637    */) ;;
7638    *) as_dir=$as_dir/ ;;
7639  esac
7640    for ac_exec_ext in '' $ac_executable_extensions; do
7641  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7642    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7643    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7644    break 2
7645  fi
7646done
7647  done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
7652DSYMUTIL=$ac_cv_prog_DSYMUTIL
7653if test -n "$DSYMUTIL"; then
7654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7655printf "%s\n" "$DSYMUTIL" >&6; }
7656else
7657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658printf "%s\n" "no" >&6; }
7659fi
7660
7661
7662fi
7663if test -z "$ac_cv_prog_DSYMUTIL"; then
7664  ac_ct_DSYMUTIL=$DSYMUTIL
7665  # Extract the first word of "dsymutil", so it can be a program name with args.
7666set dummy dsymutil; ac_word=$2
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668printf %s "checking for $ac_word... " >&6; }
7669if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7670then :
7671  printf %s "(cached) " >&6
7672else $as_nop
7673  if test -n "$ac_ct_DSYMUTIL"; then
7674  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7675else
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679  IFS=$as_save_IFS
7680  case $as_dir in #(((
7681    '') as_dir=./ ;;
7682    */) ;;
7683    *) as_dir=$as_dir/ ;;
7684  esac
7685    for ac_exec_ext in '' $ac_executable_extensions; do
7686  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7687    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7688    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7689    break 2
7690  fi
7691done
7692  done
7693IFS=$as_save_IFS
7694
7695fi
7696fi
7697ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7698if test -n "$ac_ct_DSYMUTIL"; then
7699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7700printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7701else
7702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703printf "%s\n" "no" >&6; }
7704fi
7705
7706  if test "x$ac_ct_DSYMUTIL" = x; then
7707    DSYMUTIL=":"
7708  else
7709    case $cross_compiling:$ac_tool_warned in
7710yes:)
7711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7712printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7713ac_tool_warned=yes ;;
7714esac
7715    DSYMUTIL=$ac_ct_DSYMUTIL
7716  fi
7717else
7718  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7719fi
7720
7721    if test -n "$ac_tool_prefix"; then
7722  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7723set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725printf %s "checking for $ac_word... " >&6; }
7726if test ${ac_cv_prog_NMEDIT+y}
7727then :
7728  printf %s "(cached) " >&6
7729else $as_nop
7730  if test -n "$NMEDIT"; then
7731  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7732else
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736  IFS=$as_save_IFS
7737  case $as_dir in #(((
7738    '') as_dir=./ ;;
7739    */) ;;
7740    *) as_dir=$as_dir/ ;;
7741  esac
7742    for ac_exec_ext in '' $ac_executable_extensions; do
7743  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7744    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7745    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7746    break 2
7747  fi
7748done
7749  done
7750IFS=$as_save_IFS
7751
7752fi
7753fi
7754NMEDIT=$ac_cv_prog_NMEDIT
7755if test -n "$NMEDIT"; then
7756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7757printf "%s\n" "$NMEDIT" >&6; }
7758else
7759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760printf "%s\n" "no" >&6; }
7761fi
7762
7763
7764fi
7765if test -z "$ac_cv_prog_NMEDIT"; then
7766  ac_ct_NMEDIT=$NMEDIT
7767  # Extract the first word of "nmedit", so it can be a program name with args.
7768set dummy nmedit; ac_word=$2
7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770printf %s "checking for $ac_word... " >&6; }
7771if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7772then :
7773  printf %s "(cached) " >&6
7774else $as_nop
7775  if test -n "$ac_ct_NMEDIT"; then
7776  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781  IFS=$as_save_IFS
7782  case $as_dir in #(((
7783    '') as_dir=./ ;;
7784    */) ;;
7785    *) as_dir=$as_dir/ ;;
7786  esac
7787    for ac_exec_ext in '' $ac_executable_extensions; do
7788  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7789    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7790    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7791    break 2
7792  fi
7793done
7794  done
7795IFS=$as_save_IFS
7796
7797fi
7798fi
7799ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7800if test -n "$ac_ct_NMEDIT"; then
7801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7802printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7803else
7804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805printf "%s\n" "no" >&6; }
7806fi
7807
7808  if test "x$ac_ct_NMEDIT" = x; then
7809    NMEDIT=":"
7810  else
7811    case $cross_compiling:$ac_tool_warned in
7812yes:)
7813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7814printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7815ac_tool_warned=yes ;;
7816esac
7817    NMEDIT=$ac_ct_NMEDIT
7818  fi
7819else
7820  NMEDIT="$ac_cv_prog_NMEDIT"
7821fi
7822
7823    if test -n "$ac_tool_prefix"; then
7824  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7825set dummy ${ac_tool_prefix}lipo; ac_word=$2
7826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827printf %s "checking for $ac_word... " >&6; }
7828if test ${ac_cv_prog_LIPO+y}
7829then :
7830  printf %s "(cached) " >&6
7831else $as_nop
7832  if test -n "$LIPO"; then
7833  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7834else
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838  IFS=$as_save_IFS
7839  case $as_dir in #(((
7840    '') as_dir=./ ;;
7841    */) ;;
7842    *) as_dir=$as_dir/ ;;
7843  esac
7844    for ac_exec_ext in '' $ac_executable_extensions; do
7845  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7846    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7847    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7848    break 2
7849  fi
7850done
7851  done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856LIPO=$ac_cv_prog_LIPO
7857if test -n "$LIPO"; then
7858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7859printf "%s\n" "$LIPO" >&6; }
7860else
7861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862printf "%s\n" "no" >&6; }
7863fi
7864
7865
7866fi
7867if test -z "$ac_cv_prog_LIPO"; then
7868  ac_ct_LIPO=$LIPO
7869  # Extract the first word of "lipo", so it can be a program name with args.
7870set dummy lipo; ac_word=$2
7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872printf %s "checking for $ac_word... " >&6; }
7873if test ${ac_cv_prog_ac_ct_LIPO+y}
7874then :
7875  printf %s "(cached) " >&6
7876else $as_nop
7877  if test -n "$ac_ct_LIPO"; then
7878  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7879else
7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $PATH
7882do
7883  IFS=$as_save_IFS
7884  case $as_dir in #(((
7885    '') as_dir=./ ;;
7886    */) ;;
7887    *) as_dir=$as_dir/ ;;
7888  esac
7889    for ac_exec_ext in '' $ac_executable_extensions; do
7890  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_ac_ct_LIPO="lipo"
7892    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896  done
7897IFS=$as_save_IFS
7898
7899fi
7900fi
7901ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7902if test -n "$ac_ct_LIPO"; then
7903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7904printf "%s\n" "$ac_ct_LIPO" >&6; }
7905else
7906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907printf "%s\n" "no" >&6; }
7908fi
7909
7910  if test "x$ac_ct_LIPO" = x; then
7911    LIPO=":"
7912  else
7913    case $cross_compiling:$ac_tool_warned in
7914yes:)
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917ac_tool_warned=yes ;;
7918esac
7919    LIPO=$ac_ct_LIPO
7920  fi
7921else
7922  LIPO="$ac_cv_prog_LIPO"
7923fi
7924
7925    if test -n "$ac_tool_prefix"; then
7926  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7927set dummy ${ac_tool_prefix}otool; ac_word=$2
7928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929printf %s "checking for $ac_word... " >&6; }
7930if test ${ac_cv_prog_OTOOL+y}
7931then :
7932  printf %s "(cached) " >&6
7933else $as_nop
7934  if test -n "$OTOOL"; then
7935  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7936else
7937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940  IFS=$as_save_IFS
7941  case $as_dir in #(((
7942    '') as_dir=./ ;;
7943    */) ;;
7944    *) as_dir=$as_dir/ ;;
7945  esac
7946    for ac_exec_ext in '' $ac_executable_extensions; do
7947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7948    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7950    break 2
7951  fi
7952done
7953  done
7954IFS=$as_save_IFS
7955
7956fi
7957fi
7958OTOOL=$ac_cv_prog_OTOOL
7959if test -n "$OTOOL"; then
7960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7961printf "%s\n" "$OTOOL" >&6; }
7962else
7963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964printf "%s\n" "no" >&6; }
7965fi
7966
7967
7968fi
7969if test -z "$ac_cv_prog_OTOOL"; then
7970  ac_ct_OTOOL=$OTOOL
7971  # Extract the first word of "otool", so it can be a program name with args.
7972set dummy otool; ac_word=$2
7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974printf %s "checking for $ac_word... " >&6; }
7975if test ${ac_cv_prog_ac_ct_OTOOL+y}
7976then :
7977  printf %s "(cached) " >&6
7978else $as_nop
7979  if test -n "$ac_ct_OTOOL"; then
7980  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985  IFS=$as_save_IFS
7986  case $as_dir in #(((
7987    '') as_dir=./ ;;
7988    */) ;;
7989    *) as_dir=$as_dir/ ;;
7990  esac
7991    for ac_exec_ext in '' $ac_executable_extensions; do
7992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7993    ac_cv_prog_ac_ct_OTOOL="otool"
7994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7995    break 2
7996  fi
7997done
7998  done
7999IFS=$as_save_IFS
8000
8001fi
8002fi
8003ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8004if test -n "$ac_ct_OTOOL"; then
8005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8006printf "%s\n" "$ac_ct_OTOOL" >&6; }
8007else
8008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009printf "%s\n" "no" >&6; }
8010fi
8011
8012  if test "x$ac_ct_OTOOL" = x; then
8013    OTOOL=":"
8014  else
8015    case $cross_compiling:$ac_tool_warned in
8016yes:)
8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8018printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8019ac_tool_warned=yes ;;
8020esac
8021    OTOOL=$ac_ct_OTOOL
8022  fi
8023else
8024  OTOOL="$ac_cv_prog_OTOOL"
8025fi
8026
8027    if test -n "$ac_tool_prefix"; then
8028  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8029set dummy ${ac_tool_prefix}otool64; ac_word=$2
8030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031printf %s "checking for $ac_word... " >&6; }
8032if test ${ac_cv_prog_OTOOL64+y}
8033then :
8034  printf %s "(cached) " >&6
8035else $as_nop
8036  if test -n "$OTOOL64"; then
8037  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8038else
8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042  IFS=$as_save_IFS
8043  case $as_dir in #(((
8044    '') as_dir=./ ;;
8045    */) ;;
8046    *) as_dir=$as_dir/ ;;
8047  esac
8048    for ac_exec_ext in '' $ac_executable_extensions; do
8049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8050    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8052    break 2
8053  fi
8054done
8055  done
8056IFS=$as_save_IFS
8057
8058fi
8059fi
8060OTOOL64=$ac_cv_prog_OTOOL64
8061if test -n "$OTOOL64"; then
8062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8063printf "%s\n" "$OTOOL64" >&6; }
8064else
8065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066printf "%s\n" "no" >&6; }
8067fi
8068
8069
8070fi
8071if test -z "$ac_cv_prog_OTOOL64"; then
8072  ac_ct_OTOOL64=$OTOOL64
8073  # Extract the first word of "otool64", so it can be a program name with args.
8074set dummy otool64; ac_word=$2
8075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076printf %s "checking for $ac_word... " >&6; }
8077if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8078then :
8079  printf %s "(cached) " >&6
8080else $as_nop
8081  if test -n "$ac_ct_OTOOL64"; then
8082  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087  IFS=$as_save_IFS
8088  case $as_dir in #(((
8089    '') as_dir=./ ;;
8090    */) ;;
8091    *) as_dir=$as_dir/ ;;
8092  esac
8093    for ac_exec_ext in '' $ac_executable_extensions; do
8094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8095    ac_cv_prog_ac_ct_OTOOL64="otool64"
8096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8097    break 2
8098  fi
8099done
8100  done
8101IFS=$as_save_IFS
8102
8103fi
8104fi
8105ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8106if test -n "$ac_ct_OTOOL64"; then
8107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8108printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8109else
8110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111printf "%s\n" "no" >&6; }
8112fi
8113
8114  if test "x$ac_ct_OTOOL64" = x; then
8115    OTOOL64=":"
8116  else
8117    case $cross_compiling:$ac_tool_warned in
8118yes:)
8119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8120printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8121ac_tool_warned=yes ;;
8122esac
8123    OTOOL64=$ac_ct_OTOOL64
8124  fi
8125else
8126  OTOOL64="$ac_cv_prog_OTOOL64"
8127fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8156printf %s "checking for -single_module linker flag... " >&6; }
8157if test ${lt_cv_apple_cc_single_mod+y}
8158then :
8159  printf %s "(cached) " >&6
8160else $as_nop
8161  lt_cv_apple_cc_single_mod=no
8162      if test -z "$LT_MULTI_MODULE"; then
8163	# By default we will add the -single_module flag. You can override
8164	# by either setting the environment variable LT_MULTI_MODULE
8165	# non-empty at configure time, or by adding -multi_module to the
8166	# link flags.
8167	rm -rf libconftest.dylib*
8168	echo "int foo(void){return 1;}" > conftest.c
8169	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8170-dynamiclib -Wl,-single_module conftest.c" >&5
8171	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8172	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8173        _lt_result=$?
8174	# If there is a non-empty error log, and "single_module"
8175	# appears in it, assume the flag caused a linker warning
8176        if test -s conftest.err && $GREP single_module conftest.err; then
8177	  cat conftest.err >&5
8178	# Otherwise, if the output was created with a 0 exit code from
8179	# the compiler, it worked.
8180	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8181	  lt_cv_apple_cc_single_mod=yes
8182	else
8183	  cat conftest.err >&5
8184	fi
8185	rm -rf libconftest.dylib*
8186	rm -f conftest.*
8187      fi
8188fi
8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8190printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8191
8192    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8193printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8194if test ${lt_cv_ld_exported_symbols_list+y}
8195then :
8196  printf %s "(cached) " >&6
8197else $as_nop
8198  lt_cv_ld_exported_symbols_list=no
8199      save_LDFLAGS=$LDFLAGS
8200      echo "_main" > conftest.sym
8201      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8202      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204
8205int
8206main (void)
8207{
8208
8209  ;
8210  return 0;
8211}
8212_ACEOF
8213if ac_fn_c_try_link "$LINENO"
8214then :
8215  lt_cv_ld_exported_symbols_list=yes
8216else $as_nop
8217  lt_cv_ld_exported_symbols_list=no
8218fi
8219rm -f core conftest.err conftest.$ac_objext conftest.beam \
8220    conftest$ac_exeext conftest.$ac_ext
8221	LDFLAGS=$save_LDFLAGS
8222
8223fi
8224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8225printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8226
8227    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8228printf %s "checking for -force_load linker flag... " >&6; }
8229if test ${lt_cv_ld_force_load+y}
8230then :
8231  printf %s "(cached) " >&6
8232else $as_nop
8233  lt_cv_ld_force_load=no
8234      cat > conftest.c << _LT_EOF
8235int forced_loaded() { return 2;}
8236_LT_EOF
8237      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8238      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8239      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8240      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8241      echo "$RANLIB libconftest.a" >&5
8242      $RANLIB libconftest.a 2>&5
8243      cat > conftest.c << _LT_EOF
8244int main() { return 0;}
8245_LT_EOF
8246      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8247      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8248      _lt_result=$?
8249      if test -s conftest.err && $GREP force_load conftest.err; then
8250	cat conftest.err >&5
8251      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8252	lt_cv_ld_force_load=yes
8253      else
8254	cat conftest.err >&5
8255      fi
8256        rm -f conftest.err libconftest.a conftest conftest.c
8257        rm -rf conftest.dSYM
8258
8259fi
8260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8261printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8262    case $host_os in
8263    rhapsody* | darwin1.[012])
8264      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8265    darwin1.*)
8266      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8267    darwin*)
8268      case $MACOSX_DEPLOYMENT_TARGET,$host in
8269        10.[012],*|,*powerpc*-darwin[5-8]*)
8270          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8271        *)
8272          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8273      esac
8274    ;;
8275  esac
8276    if test yes = "$lt_cv_apple_cc_single_mod"; then
8277      _lt_dar_single_mod='$single_module'
8278    fi
8279    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8280      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8281    else
8282      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8283    fi
8284    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8285      _lt_dsymutil='~$DSYMUTIL $lib || :'
8286    else
8287      _lt_dsymutil=
8288    fi
8289    ;;
8290  esac
8291
8292# func_munge_path_list VARIABLE PATH
8293# -----------------------------------
8294# VARIABLE is name of variable containing _space_ separated list of
8295# directories to be munged by the contents of PATH, which is string
8296# having a format:
8297# "DIR[:DIR]:"
8298#       string "DIR[ DIR]" will be prepended to VARIABLE
8299# ":DIR[:DIR]"
8300#       string "DIR[ DIR]" will be appended to VARIABLE
8301# "DIRP[:DIRP]::[DIRA:]DIRA"
8302#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8303#       "DIRA[ DIRA]" will be appended to VARIABLE
8304# "DIR[:DIR]"
8305#       VARIABLE will be replaced by "DIR[ DIR]"
8306func_munge_path_list ()
8307{
8308    case x$2 in
8309    x)
8310        ;;
8311    *:)
8312        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8313        ;;
8314    x:*)
8315        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8316        ;;
8317    *::*)
8318        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8319        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8320        ;;
8321    *)
8322        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8323        ;;
8324    esac
8325}
8326
8327ac_header= ac_cache=
8328for ac_item in $ac_header_c_list
8329do
8330  if test $ac_cache; then
8331    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8332    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8333      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8334    fi
8335    ac_header= ac_cache=
8336  elif test $ac_header; then
8337    ac_cache=$ac_item
8338  else
8339    ac_header=$ac_item
8340  fi
8341done
8342
8343
8344
8345
8346
8347
8348
8349
8350if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8351then :
8352
8353printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8354
8355fi
8356ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8357"
8358if test "x$ac_cv_header_dlfcn_h" = xyes
8359then :
8360  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8361
8362fi
8363
8364
8365
8366
8367
8368# Set options
8369
8370
8371
8372        enable_dlopen=no
8373
8374
8375  enable_win32_dll=no
8376
8377
8378            # Check whether --enable-shared was given.
8379if test ${enable_shared+y}
8380then :
8381  enableval=$enable_shared; p=${PACKAGE-default}
8382    case $enableval in
8383    yes) enable_shared=yes ;;
8384    no) enable_shared=no ;;
8385    *)
8386      enable_shared=no
8387      # Look at the argument we got.  We use all the common list separators.
8388      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8389      for pkg in $enableval; do
8390	IFS=$lt_save_ifs
8391	if test "X$pkg" = "X$p"; then
8392	  enable_shared=yes
8393	fi
8394      done
8395      IFS=$lt_save_ifs
8396      ;;
8397    esac
8398else $as_nop
8399  enable_shared=yes
8400fi
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410  # Check whether --enable-static was given.
8411if test ${enable_static+y}
8412then :
8413  enableval=$enable_static; p=${PACKAGE-default}
8414    case $enableval in
8415    yes) enable_static=yes ;;
8416    no) enable_static=no ;;
8417    *)
8418     enable_static=no
8419      # Look at the argument we got.  We use all the common list separators.
8420      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8421      for pkg in $enableval; do
8422	IFS=$lt_save_ifs
8423	if test "X$pkg" = "X$p"; then
8424	  enable_static=yes
8425	fi
8426      done
8427      IFS=$lt_save_ifs
8428      ;;
8429    esac
8430else $as_nop
8431  enable_static=yes
8432fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443# Check whether --with-pic was given.
8444if test ${with_pic+y}
8445then :
8446  withval=$with_pic; lt_p=${PACKAGE-default}
8447    case $withval in
8448    yes|no) pic_mode=$withval ;;
8449    *)
8450      pic_mode=default
8451      # Look at the argument we got.  We use all the common list separators.
8452      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8453      for lt_pkg in $withval; do
8454	IFS=$lt_save_ifs
8455	if test "X$lt_pkg" = "X$lt_p"; then
8456	  pic_mode=yes
8457	fi
8458      done
8459      IFS=$lt_save_ifs
8460      ;;
8461    esac
8462else $as_nop
8463  pic_mode=default
8464fi
8465
8466
8467
8468
8469
8470
8471
8472
8473  # Check whether --enable-fast-install was given.
8474if test ${enable_fast_install+y}
8475then :
8476  enableval=$enable_fast_install; p=${PACKAGE-default}
8477    case $enableval in
8478    yes) enable_fast_install=yes ;;
8479    no) enable_fast_install=no ;;
8480    *)
8481      enable_fast_install=no
8482      # Look at the argument we got.  We use all the common list separators.
8483      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8484      for pkg in $enableval; do
8485	IFS=$lt_save_ifs
8486	if test "X$pkg" = "X$p"; then
8487	  enable_fast_install=yes
8488	fi
8489      done
8490      IFS=$lt_save_ifs
8491      ;;
8492    esac
8493else $as_nop
8494  enable_fast_install=yes
8495fi
8496
8497
8498
8499
8500
8501
8502
8503
8504  shared_archive_member_spec=
8505case $host,$enable_shared in
8506power*-*-aix[5-9]*,yes)
8507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8508printf %s "checking which variant of shared library versioning to provide... " >&6; }
8509
8510# Check whether --with-aix-soname was given.
8511if test ${with_aix_soname+y}
8512then :
8513  withval=$with_aix_soname; case $withval in
8514    aix|svr4|both)
8515      ;;
8516    *)
8517      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8518      ;;
8519    esac
8520    lt_cv_with_aix_soname=$with_aix_soname
8521else $as_nop
8522  if test ${lt_cv_with_aix_soname+y}
8523then :
8524  printf %s "(cached) " >&6
8525else $as_nop
8526  lt_cv_with_aix_soname=aix
8527fi
8528
8529    with_aix_soname=$lt_cv_with_aix_soname
8530fi
8531
8532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8533printf "%s\n" "$with_aix_soname" >&6; }
8534  if test aix != "$with_aix_soname"; then
8535    # For the AIX way of multilib, we name the shared archive member
8536    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8537    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8538    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8539    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8540    if test 64 = "${OBJECT_MODE-32}"; then
8541      shared_archive_member_spec=shr_64
8542    else
8543      shared_archive_member_spec=shr
8544    fi
8545  fi
8546  ;;
8547*)
8548  with_aix_soname=aix
8549  ;;
8550esac
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561# This can be used to rebuild libtool when needed
8562LIBTOOL_DEPS=$ltmain
8563
8564# Always use our own libtool.
8565LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596test -z "$LN_S" && LN_S="ln -s"
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611if test -n "${ZSH_VERSION+set}"; then
8612   setopt NO_GLOB_SUBST
8613fi
8614
8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8616printf %s "checking for objdir... " >&6; }
8617if test ${lt_cv_objdir+y}
8618then :
8619  printf %s "(cached) " >&6
8620else $as_nop
8621  rm -f .libs 2>/dev/null
8622mkdir .libs 2>/dev/null
8623if test -d .libs; then
8624  lt_cv_objdir=.libs
8625else
8626  # MS-DOS does not allow filenames that begin with a dot.
8627  lt_cv_objdir=_libs
8628fi
8629rmdir .libs 2>/dev/null
8630fi
8631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8632printf "%s\n" "$lt_cv_objdir" >&6; }
8633objdir=$lt_cv_objdir
8634
8635
8636
8637
8638
8639printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8640
8641
8642
8643
8644case $host_os in
8645aix3*)
8646  # AIX sometimes has problems with the GCC collect2 program.  For some
8647  # reason, if we set the COLLECT_NAMES environment variable, the problems
8648  # vanish in a puff of smoke.
8649  if test set != "${COLLECT_NAMES+set}"; then
8650    COLLECT_NAMES=
8651    export COLLECT_NAMES
8652  fi
8653  ;;
8654esac
8655
8656# Global variables:
8657ofile=libtool
8658can_build_shared=yes
8659
8660# All known linkers require a '.a' archive for static linking (except MSVC and
8661# ICC, which need '.lib').
8662libext=a
8663
8664with_gnu_ld=$lt_cv_prog_gnu_ld
8665
8666old_CC=$CC
8667old_CFLAGS=$CFLAGS
8668
8669# Set sane defaults for various variables
8670test -z "$CC" && CC=cc
8671test -z "$LTCC" && LTCC=$CC
8672test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8673test -z "$LD" && LD=ld
8674test -z "$ac_objext" && ac_objext=o
8675
8676func_cc_basename $compiler
8677cc_basename=$func_cc_basename_result
8678
8679
8680# Only perform the check for file, if the check method requires it
8681test -z "$MAGIC_CMD" && MAGIC_CMD=file
8682case $deplibs_check_method in
8683file_magic*)
8684  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8685    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8686printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8687if test ${lt_cv_path_MAGIC_CMD+y}
8688then :
8689  printf %s "(cached) " >&6
8690else $as_nop
8691  case $MAGIC_CMD in
8692[\\/*] |  ?:[\\/]*)
8693  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8694  ;;
8695*)
8696  lt_save_MAGIC_CMD=$MAGIC_CMD
8697  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8698  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8699  for ac_dir in $ac_dummy; do
8700    IFS=$lt_save_ifs
8701    test -z "$ac_dir" && ac_dir=.
8702    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8703      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8704      if test -n "$file_magic_test_file"; then
8705	case $deplibs_check_method in
8706	"file_magic "*)
8707	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8708	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8709	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8710	    $EGREP "$file_magic_regex" > /dev/null; then
8711	    :
8712	  else
8713	    cat <<_LT_EOF 1>&2
8714
8715*** Warning: the command libtool uses to detect shared libraries,
8716*** $file_magic_cmd, produces output that libtool cannot recognize.
8717*** The result is that libtool may fail to recognize shared libraries
8718*** as such.  This will affect the creation of libtool libraries that
8719*** depend on shared libraries, but programs linked with such libtool
8720*** libraries will work regardless of this problem.  Nevertheless, you
8721*** may want to report the problem to your system manager and/or to
8722*** bug-libtool@gnu.org
8723
8724_LT_EOF
8725	  fi ;;
8726	esac
8727      fi
8728      break
8729    fi
8730  done
8731  IFS=$lt_save_ifs
8732  MAGIC_CMD=$lt_save_MAGIC_CMD
8733  ;;
8734esac
8735fi
8736
8737MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8738if test -n "$MAGIC_CMD"; then
8739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8740printf "%s\n" "$MAGIC_CMD" >&6; }
8741else
8742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743printf "%s\n" "no" >&6; }
8744fi
8745
8746
8747
8748
8749
8750if test -z "$lt_cv_path_MAGIC_CMD"; then
8751  if test -n "$ac_tool_prefix"; then
8752    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8753printf %s "checking for file... " >&6; }
8754if test ${lt_cv_path_MAGIC_CMD+y}
8755then :
8756  printf %s "(cached) " >&6
8757else $as_nop
8758  case $MAGIC_CMD in
8759[\\/*] |  ?:[\\/]*)
8760  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8761  ;;
8762*)
8763  lt_save_MAGIC_CMD=$MAGIC_CMD
8764  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8765  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8766  for ac_dir in $ac_dummy; do
8767    IFS=$lt_save_ifs
8768    test -z "$ac_dir" && ac_dir=.
8769    if test -f "$ac_dir/file"; then
8770      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8771      if test -n "$file_magic_test_file"; then
8772	case $deplibs_check_method in
8773	"file_magic "*)
8774	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8775	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8776	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8777	    $EGREP "$file_magic_regex" > /dev/null; then
8778	    :
8779	  else
8780	    cat <<_LT_EOF 1>&2
8781
8782*** Warning: the command libtool uses to detect shared libraries,
8783*** $file_magic_cmd, produces output that libtool cannot recognize.
8784*** The result is that libtool may fail to recognize shared libraries
8785*** as such.  This will affect the creation of libtool libraries that
8786*** depend on shared libraries, but programs linked with such libtool
8787*** libraries will work regardless of this problem.  Nevertheless, you
8788*** may want to report the problem to your system manager and/or to
8789*** bug-libtool@gnu.org
8790
8791_LT_EOF
8792	  fi ;;
8793	esac
8794      fi
8795      break
8796    fi
8797  done
8798  IFS=$lt_save_ifs
8799  MAGIC_CMD=$lt_save_MAGIC_CMD
8800  ;;
8801esac
8802fi
8803
8804MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8805if test -n "$MAGIC_CMD"; then
8806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8807printf "%s\n" "$MAGIC_CMD" >&6; }
8808else
8809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810printf "%s\n" "no" >&6; }
8811fi
8812
8813
8814  else
8815    MAGIC_CMD=:
8816  fi
8817fi
8818
8819  fi
8820  ;;
8821esac
8822
8823# Use C for the default configuration in the libtool script
8824
8825lt_save_CC=$CC
8826ac_ext=c
8827ac_cpp='$CPP $CPPFLAGS'
8828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830ac_compiler_gnu=$ac_cv_c_compiler_gnu
8831
8832
8833# Source file extension for C test sources.
8834ac_ext=c
8835
8836# Object file extension for compiled C test sources.
8837objext=o
8838objext=$objext
8839
8840# Code to be used in simple compile tests
8841lt_simple_compile_test_code="int some_variable = 0;"
8842
8843# Code to be used in simple link tests
8844lt_simple_link_test_code='int main(){return(0);}'
8845
8846
8847
8848
8849
8850
8851
8852# If no C compiler was specified, use CC.
8853LTCC=${LTCC-"$CC"}
8854
8855# If no C compiler flags were specified, use CFLAGS.
8856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8857
8858# Allow CC to be a program name with arguments.
8859compiler=$CC
8860
8861# Save the default compiler, since it gets overwritten when the other
8862# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8863compiler_DEFAULT=$CC
8864
8865# save warnings/boilerplate of simple test code
8866ac_outfile=conftest.$ac_objext
8867echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8868eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8869_lt_compiler_boilerplate=`cat conftest.err`
8870$RM conftest*
8871
8872ac_outfile=conftest.$ac_objext
8873echo "$lt_simple_link_test_code" >conftest.$ac_ext
8874eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8875_lt_linker_boilerplate=`cat conftest.err`
8876$RM -r conftest*
8877
8878
8879if test -n "$compiler"; then
8880
8881lt_prog_compiler_no_builtin_flag=
8882
8883if test yes = "$GCC"; then
8884  case $cc_basename in
8885  nvcc*)
8886    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8887  *)
8888    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8889  esac
8890
8891  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8892printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8893if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8894then :
8895  printf %s "(cached) " >&6
8896else $as_nop
8897  lt_cv_prog_compiler_rtti_exceptions=no
8898   ac_outfile=conftest.$ac_objext
8899   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8901   # Insert the option either (1) after the last *FLAGS variable, or
8902   # (2) before a word containing "conftest.", or (3) at the end.
8903   # Note that $ac_compile itself does not contain backslashes and begins
8904   # with a dollar sign (not a hyphen), so the echo should work correctly.
8905   # The option is referenced via a variable to avoid confusing sed.
8906   lt_compile=`echo "$ac_compile" | $SED \
8907   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909   -e 's:$: $lt_compiler_flag:'`
8910   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8911   (eval "$lt_compile" 2>conftest.err)
8912   ac_status=$?
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   if (exit $ac_status) && test -s "$ac_outfile"; then
8916     # The compiler can only warn and ignore the option if not recognized
8917     # So say no if there are warnings other than the usual output.
8918     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8919     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8920     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8921       lt_cv_prog_compiler_rtti_exceptions=yes
8922     fi
8923   fi
8924   $RM conftest*
8925
8926fi
8927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8928printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8929
8930if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8931    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8932else
8933    :
8934fi
8935
8936fi
8937
8938
8939
8940
8941
8942
8943  lt_prog_compiler_wl=
8944lt_prog_compiler_pic=
8945lt_prog_compiler_static=
8946
8947
8948  if test yes = "$GCC"; then
8949    lt_prog_compiler_wl='-Wl,'
8950    lt_prog_compiler_static='-static'
8951
8952    case $host_os in
8953      aix*)
8954      # All AIX code is PIC.
8955      if test ia64 = "$host_cpu"; then
8956	# AIX 5 now supports IA64 processor
8957	lt_prog_compiler_static='-Bstatic'
8958      fi
8959      lt_prog_compiler_pic='-fPIC'
8960      ;;
8961
8962    amigaos*)
8963      case $host_cpu in
8964      powerpc)
8965            # see comment about AmigaOS4 .so support
8966            lt_prog_compiler_pic='-fPIC'
8967        ;;
8968      m68k)
8969            # FIXME: we need at least 68020 code to build shared libraries, but
8970            # adding the '-m68020' flag to GCC prevents building anything better,
8971            # like '-m68040'.
8972            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8973        ;;
8974      esac
8975      ;;
8976
8977    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8978      # PIC is the default for these OSes.
8979      ;;
8980
8981    mingw* | cygwin* | pw32* | os2* | cegcc*)
8982      # This hack is so that the source file can tell whether it is being
8983      # built for inclusion in a dll (and should export symbols for example).
8984      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8985      # (--disable-auto-import) libraries
8986      lt_prog_compiler_pic='-DDLL_EXPORT'
8987      case $host_os in
8988      os2*)
8989	lt_prog_compiler_static='$wl-static'
8990	;;
8991      esac
8992      ;;
8993
8994    darwin* | rhapsody*)
8995      # PIC is the default on this platform
8996      # Common symbols not allowed in MH_DYLIB files
8997      lt_prog_compiler_pic='-fno-common'
8998      ;;
8999
9000    haiku*)
9001      # PIC is the default for Haiku.
9002      # The "-static" flag exists, but is broken.
9003      lt_prog_compiler_static=
9004      ;;
9005
9006    hpux*)
9007      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9008      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9009      # sets the default TLS model and affects inlining.
9010      case $host_cpu in
9011      hppa*64*)
9012	# +Z the default
9013	;;
9014      *)
9015	lt_prog_compiler_pic='-fPIC'
9016	;;
9017      esac
9018      ;;
9019
9020    interix[3-9]*)
9021      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9022      # Instead, we relocate shared libraries at runtime.
9023      ;;
9024
9025    msdosdjgpp*)
9026      # Just because we use GCC doesn't mean we suddenly get shared libraries
9027      # on systems that don't support them.
9028      lt_prog_compiler_can_build_shared=no
9029      enable_shared=no
9030      ;;
9031
9032    *nto* | *qnx*)
9033      # QNX uses GNU C++, but need to define -shared option too, otherwise
9034      # it will coredump.
9035      lt_prog_compiler_pic='-fPIC -shared'
9036      ;;
9037
9038    sysv4*MP*)
9039      if test -d /usr/nec; then
9040	lt_prog_compiler_pic=-Kconform_pic
9041      fi
9042      ;;
9043
9044    *)
9045      lt_prog_compiler_pic='-fPIC'
9046      ;;
9047    esac
9048
9049    case $cc_basename in
9050    nvcc*) # Cuda Compiler Driver 2.2
9051      lt_prog_compiler_wl='-Xlinker '
9052      if test -n "$lt_prog_compiler_pic"; then
9053        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9054      fi
9055      ;;
9056    esac
9057  else
9058    # PORTME Check for flag to pass linker flags through the system compiler.
9059    case $host_os in
9060    aix*)
9061      lt_prog_compiler_wl='-Wl,'
9062      if test ia64 = "$host_cpu"; then
9063	# AIX 5 now supports IA64 processor
9064	lt_prog_compiler_static='-Bstatic'
9065      else
9066	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9067      fi
9068      ;;
9069
9070    darwin* | rhapsody*)
9071      # PIC is the default on this platform
9072      # Common symbols not allowed in MH_DYLIB files
9073      lt_prog_compiler_pic='-fno-common'
9074      case $cc_basename in
9075      nagfor*)
9076        # NAG Fortran compiler
9077        lt_prog_compiler_wl='-Wl,-Wl,,'
9078        lt_prog_compiler_pic='-PIC'
9079        lt_prog_compiler_static='-Bstatic'
9080        ;;
9081      esac
9082      ;;
9083
9084    mingw* | cygwin* | pw32* | os2* | cegcc*)
9085      # This hack is so that the source file can tell whether it is being
9086      # built for inclusion in a dll (and should export symbols for example).
9087      lt_prog_compiler_pic='-DDLL_EXPORT'
9088      case $host_os in
9089      os2*)
9090	lt_prog_compiler_static='$wl-static'
9091	;;
9092      esac
9093      ;;
9094
9095    hpux9* | hpux10* | hpux11*)
9096      lt_prog_compiler_wl='-Wl,'
9097      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9098      # not for PA HP-UX.
9099      case $host_cpu in
9100      hppa*64*|ia64*)
9101	# +Z the default
9102	;;
9103      *)
9104	lt_prog_compiler_pic='+Z'
9105	;;
9106      esac
9107      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9108      lt_prog_compiler_static='$wl-a ${wl}archive'
9109      ;;
9110
9111    irix5* | irix6* | nonstopux*)
9112      lt_prog_compiler_wl='-Wl,'
9113      # PIC (with -KPIC) is the default.
9114      lt_prog_compiler_static='-non_shared'
9115      ;;
9116
9117    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9118      case $cc_basename in
9119      # old Intel for x86_64, which still supported -KPIC.
9120      ecc*)
9121	lt_prog_compiler_wl='-Wl,'
9122	lt_prog_compiler_pic='-KPIC'
9123	lt_prog_compiler_static='-static'
9124        ;;
9125      # icc used to be incompatible with GCC.
9126      # ICC 10 doesn't accept -KPIC any more.
9127      icc* | ifort*)
9128	lt_prog_compiler_wl='-Wl,'
9129	lt_prog_compiler_pic='-fPIC'
9130	lt_prog_compiler_static='-static'
9131        ;;
9132      # Lahey Fortran 8.1.
9133      lf95*)
9134	lt_prog_compiler_wl='-Wl,'
9135	lt_prog_compiler_pic='--shared'
9136	lt_prog_compiler_static='--static'
9137	;;
9138      nagfor*)
9139	# NAG Fortran compiler
9140	lt_prog_compiler_wl='-Wl,-Wl,,'
9141	lt_prog_compiler_pic='-PIC'
9142	lt_prog_compiler_static='-Bstatic'
9143	;;
9144      tcc*)
9145	# Fabrice Bellard et al's Tiny C Compiler
9146	lt_prog_compiler_wl='-Wl,'
9147	lt_prog_compiler_pic='-fPIC'
9148	lt_prog_compiler_static='-static'
9149	;;
9150      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9151        # Portland Group compilers (*not* the Pentium gcc compiler,
9152	# which looks to be a dead project)
9153	lt_prog_compiler_wl='-Wl,'
9154	lt_prog_compiler_pic='-fpic'
9155	lt_prog_compiler_static='-Bstatic'
9156        ;;
9157      ccc*)
9158        lt_prog_compiler_wl='-Wl,'
9159        # All Alpha code is PIC.
9160        lt_prog_compiler_static='-non_shared'
9161        ;;
9162      xl* | bgxl* | bgf* | mpixl*)
9163	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9164	lt_prog_compiler_wl='-Wl,'
9165	lt_prog_compiler_pic='-qpic'
9166	lt_prog_compiler_static='-qstaticlink'
9167	;;
9168      *)
9169	case `$CC -V 2>&1 | $SED 5q` in
9170	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9171	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9172	  lt_prog_compiler_pic='-KPIC'
9173	  lt_prog_compiler_static='-Bstatic'
9174	  lt_prog_compiler_wl=''
9175	  ;;
9176	*Sun\ F* | *Sun*Fortran*)
9177	  lt_prog_compiler_pic='-KPIC'
9178	  lt_prog_compiler_static='-Bstatic'
9179	  lt_prog_compiler_wl='-Qoption ld '
9180	  ;;
9181	*Sun\ C*)
9182	  # Sun C 5.9
9183	  lt_prog_compiler_pic='-KPIC'
9184	  lt_prog_compiler_static='-Bstatic'
9185	  lt_prog_compiler_wl='-Wl,'
9186	  ;;
9187        *Intel*\ [CF]*Compiler*)
9188	  lt_prog_compiler_wl='-Wl,'
9189	  lt_prog_compiler_pic='-fPIC'
9190	  lt_prog_compiler_static='-static'
9191	  ;;
9192	*Portland\ Group*)
9193	  lt_prog_compiler_wl='-Wl,'
9194	  lt_prog_compiler_pic='-fpic'
9195	  lt_prog_compiler_static='-Bstatic'
9196	  ;;
9197	esac
9198	;;
9199      esac
9200      ;;
9201
9202    newsos6)
9203      lt_prog_compiler_pic='-KPIC'
9204      lt_prog_compiler_static='-Bstatic'
9205      ;;
9206
9207    *nto* | *qnx*)
9208      # QNX uses GNU C++, but need to define -shared option too, otherwise
9209      # it will coredump.
9210      lt_prog_compiler_pic='-fPIC -shared'
9211      ;;
9212
9213    osf3* | osf4* | osf5*)
9214      lt_prog_compiler_wl='-Wl,'
9215      # All OSF/1 code is PIC.
9216      lt_prog_compiler_static='-non_shared'
9217      ;;
9218
9219    rdos*)
9220      lt_prog_compiler_static='-non_shared'
9221      ;;
9222
9223    solaris*)
9224      lt_prog_compiler_pic='-KPIC'
9225      lt_prog_compiler_static='-Bstatic'
9226      case $cc_basename in
9227      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9228	lt_prog_compiler_wl='-Qoption ld ';;
9229      *)
9230	lt_prog_compiler_wl='-Wl,';;
9231      esac
9232      ;;
9233
9234    sunos4*)
9235      lt_prog_compiler_wl='-Qoption ld '
9236      lt_prog_compiler_pic='-PIC'
9237      lt_prog_compiler_static='-Bstatic'
9238      ;;
9239
9240    sysv4 | sysv4.2uw2* | sysv4.3*)
9241      lt_prog_compiler_wl='-Wl,'
9242      lt_prog_compiler_pic='-KPIC'
9243      lt_prog_compiler_static='-Bstatic'
9244      ;;
9245
9246    sysv4*MP*)
9247      if test -d /usr/nec; then
9248	lt_prog_compiler_pic='-Kconform_pic'
9249	lt_prog_compiler_static='-Bstatic'
9250      fi
9251      ;;
9252
9253    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9254      lt_prog_compiler_wl='-Wl,'
9255      lt_prog_compiler_pic='-KPIC'
9256      lt_prog_compiler_static='-Bstatic'
9257      ;;
9258
9259    unicos*)
9260      lt_prog_compiler_wl='-Wl,'
9261      lt_prog_compiler_can_build_shared=no
9262      ;;
9263
9264    uts4*)
9265      lt_prog_compiler_pic='-pic'
9266      lt_prog_compiler_static='-Bstatic'
9267      ;;
9268
9269    *)
9270      lt_prog_compiler_can_build_shared=no
9271      ;;
9272    esac
9273  fi
9274
9275case $host_os in
9276  # For platforms that do not support PIC, -DPIC is meaningless:
9277  *djgpp*)
9278    lt_prog_compiler_pic=
9279    ;;
9280  *)
9281    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9282    ;;
9283esac
9284
9285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9286printf %s "checking for $compiler option to produce PIC... " >&6; }
9287if test ${lt_cv_prog_compiler_pic+y}
9288then :
9289  printf %s "(cached) " >&6
9290else $as_nop
9291  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9292fi
9293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9294printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9295lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9296
9297#
9298# Check to make sure the PIC flag actually works.
9299#
9300if test -n "$lt_prog_compiler_pic"; then
9301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9302printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9303if test ${lt_cv_prog_compiler_pic_works+y}
9304then :
9305  printf %s "(cached) " >&6
9306else $as_nop
9307  lt_cv_prog_compiler_pic_works=no
9308   ac_outfile=conftest.$ac_objext
9309   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9310   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9311   # Insert the option either (1) after the last *FLAGS variable, or
9312   # (2) before a word containing "conftest.", or (3) at the end.
9313   # Note that $ac_compile itself does not contain backslashes and begins
9314   # with a dollar sign (not a hyphen), so the echo should work correctly.
9315   # The option is referenced via a variable to avoid confusing sed.
9316   lt_compile=`echo "$ac_compile" | $SED \
9317   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9319   -e 's:$: $lt_compiler_flag:'`
9320   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9321   (eval "$lt_compile" 2>conftest.err)
9322   ac_status=$?
9323   cat conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   if (exit $ac_status) && test -s "$ac_outfile"; then
9326     # The compiler can only warn and ignore the option if not recognized
9327     # So say no if there are warnings other than the usual output.
9328     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9329     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9330     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9331       lt_cv_prog_compiler_pic_works=yes
9332     fi
9333   fi
9334   $RM conftest*
9335
9336fi
9337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9338printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9339
9340if test yes = "$lt_cv_prog_compiler_pic_works"; then
9341    case $lt_prog_compiler_pic in
9342     "" | " "*) ;;
9343     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9344     esac
9345else
9346    lt_prog_compiler_pic=
9347     lt_prog_compiler_can_build_shared=no
9348fi
9349
9350fi
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362#
9363# Check to make sure the static flag actually works.
9364#
9365wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9367printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9368if test ${lt_cv_prog_compiler_static_works+y}
9369then :
9370  printf %s "(cached) " >&6
9371else $as_nop
9372  lt_cv_prog_compiler_static_works=no
9373   save_LDFLAGS=$LDFLAGS
9374   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9375   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9376   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9377     # The linker can only warn and ignore the option if not recognized
9378     # So say no if there are warnings
9379     if test -s conftest.err; then
9380       # Append any errors to the config.log.
9381       cat conftest.err 1>&5
9382       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9383       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384       if diff conftest.exp conftest.er2 >/dev/null; then
9385         lt_cv_prog_compiler_static_works=yes
9386       fi
9387     else
9388       lt_cv_prog_compiler_static_works=yes
9389     fi
9390   fi
9391   $RM -r conftest*
9392   LDFLAGS=$save_LDFLAGS
9393
9394fi
9395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9396printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9397
9398if test yes = "$lt_cv_prog_compiler_static_works"; then
9399    :
9400else
9401    lt_prog_compiler_static=
9402fi
9403
9404
9405
9406
9407
9408
9409
9410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9411printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9412if test ${lt_cv_prog_compiler_c_o+y}
9413then :
9414  printf %s "(cached) " >&6
9415else $as_nop
9416  lt_cv_prog_compiler_c_o=no
9417   $RM -r conftest 2>/dev/null
9418   mkdir conftest
9419   cd conftest
9420   mkdir out
9421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422
9423   lt_compiler_flag="-o out/conftest2.$ac_objext"
9424   # Insert the option either (1) after the last *FLAGS variable, or
9425   # (2) before a word containing "conftest.", or (3) at the end.
9426   # Note that $ac_compile itself does not contain backslashes and begins
9427   # with a dollar sign (not a hyphen), so the echo should work correctly.
9428   lt_compile=`echo "$ac_compile" | $SED \
9429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9431   -e 's:$: $lt_compiler_flag:'`
9432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9433   (eval "$lt_compile" 2>out/conftest.err)
9434   ac_status=$?
9435   cat out/conftest.err >&5
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9438   then
9439     # The compiler can only warn and ignore the option if not recognized
9440     # So say no if there are warnings
9441     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9442     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9443     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9444       lt_cv_prog_compiler_c_o=yes
9445     fi
9446   fi
9447   chmod u+w . 2>&5
9448   $RM conftest*
9449   # SGI C++ compiler will create directory out/ii_files/ for
9450   # template instantiation
9451   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9452   $RM out/* && rmdir out
9453   cd ..
9454   $RM -r conftest
9455   $RM conftest*
9456
9457fi
9458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9459printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9460
9461
9462
9463
9464
9465
9466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9467printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9468if test ${lt_cv_prog_compiler_c_o+y}
9469then :
9470  printf %s "(cached) " >&6
9471else $as_nop
9472  lt_cv_prog_compiler_c_o=no
9473   $RM -r conftest 2>/dev/null
9474   mkdir conftest
9475   cd conftest
9476   mkdir out
9477   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9478
9479   lt_compiler_flag="-o out/conftest2.$ac_objext"
9480   # Insert the option either (1) after the last *FLAGS variable, or
9481   # (2) before a word containing "conftest.", or (3) at the end.
9482   # Note that $ac_compile itself does not contain backslashes and begins
9483   # with a dollar sign (not a hyphen), so the echo should work correctly.
9484   lt_compile=`echo "$ac_compile" | $SED \
9485   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9486   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9487   -e 's:$: $lt_compiler_flag:'`
9488   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9489   (eval "$lt_compile" 2>out/conftest.err)
9490   ac_status=$?
9491   cat out/conftest.err >&5
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9494   then
9495     # The compiler can only warn and ignore the option if not recognized
9496     # So say no if there are warnings
9497     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9498     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9499     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9500       lt_cv_prog_compiler_c_o=yes
9501     fi
9502   fi
9503   chmod u+w . 2>&5
9504   $RM conftest*
9505   # SGI C++ compiler will create directory out/ii_files/ for
9506   # template instantiation
9507   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9508   $RM out/* && rmdir out
9509   cd ..
9510   $RM -r conftest
9511   $RM conftest*
9512
9513fi
9514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9515printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9516
9517
9518
9519
9520hard_links=nottested
9521if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9522  # do not overwrite the value of need_locks provided by the user
9523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9524printf %s "checking if we can lock with hard links... " >&6; }
9525  hard_links=yes
9526  $RM conftest*
9527  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9528  touch conftest.a
9529  ln conftest.a conftest.b 2>&5 || hard_links=no
9530  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9532printf "%s\n" "$hard_links" >&6; }
9533  if test no = "$hard_links"; then
9534    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9535printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9536    need_locks=warn
9537  fi
9538else
9539  need_locks=no
9540fi
9541
9542
9543
9544
9545
9546
9547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9548printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9549
9550  runpath_var=
9551  allow_undefined_flag=
9552  always_export_symbols=no
9553  archive_cmds=
9554  archive_expsym_cmds=
9555  compiler_needs_object=no
9556  enable_shared_with_static_runtimes=no
9557  export_dynamic_flag_spec=
9558  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9559  hardcode_automatic=no
9560  hardcode_direct=no
9561  hardcode_direct_absolute=no
9562  hardcode_libdir_flag_spec=
9563  hardcode_libdir_separator=
9564  hardcode_minus_L=no
9565  hardcode_shlibpath_var=unsupported
9566  inherit_rpath=no
9567  link_all_deplibs=unknown
9568  module_cmds=
9569  module_expsym_cmds=
9570  old_archive_from_new_cmds=
9571  old_archive_from_expsyms_cmds=
9572  thread_safe_flag_spec=
9573  whole_archive_flag_spec=
9574  # include_expsyms should be a list of space-separated symbols to be *always*
9575  # included in the symbol list
9576  include_expsyms=
9577  # exclude_expsyms can be an extended regexp of symbols to exclude
9578  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9579  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9580  # as well as any symbol that contains 'd'.
9581  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9582  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9583  # platforms (ab)use it in PIC code, but their linkers get confused if
9584  # the symbol is explicitly referenced.  Since portable code cannot
9585  # rely on this symbol name, it's probably fine to never include it in
9586  # preloaded symbol tables.
9587  # Exclude shared library initialization/finalization symbols.
9588  extract_expsyms_cmds=
9589
9590  case $host_os in
9591  cygwin* | mingw* | pw32* | cegcc*)
9592    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9593    # When not using gcc, we currently assume that we are using
9594    # Microsoft Visual C++ or Intel C++ Compiler.
9595    if test yes != "$GCC"; then
9596      with_gnu_ld=no
9597    fi
9598    ;;
9599  interix*)
9600    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9601    with_gnu_ld=yes
9602    ;;
9603  openbsd* | bitrig*)
9604    with_gnu_ld=no
9605    ;;
9606  esac
9607
9608  ld_shlibs=yes
9609
9610  # On some targets, GNU ld is compatible enough with the native linker
9611  # that we're better off using the native interface for both.
9612  lt_use_gnu_ld_interface=no
9613  if test yes = "$with_gnu_ld"; then
9614    case $host_os in
9615      aix*)
9616	# The AIX port of GNU ld has always aspired to compatibility
9617	# with the native linker.  However, as the warning in the GNU ld
9618	# block says, versions before 2.19.5* couldn't really create working
9619	# shared libraries, regardless of the interface used.
9620	case `$LD -v 2>&1` in
9621	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9622	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9623	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9624	  *)
9625	    lt_use_gnu_ld_interface=yes
9626	    ;;
9627	esac
9628	;;
9629      *)
9630	lt_use_gnu_ld_interface=yes
9631	;;
9632    esac
9633  fi
9634
9635  if test yes = "$lt_use_gnu_ld_interface"; then
9636    # If archive_cmds runs LD, not CC, wlarc should be empty
9637    wlarc='$wl'
9638
9639    # Set some defaults for GNU ld with shared library support. These
9640    # are reset later if shared libraries are not supported. Putting them
9641    # here allows them to be overridden if necessary.
9642    runpath_var=LD_RUN_PATH
9643    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9644    export_dynamic_flag_spec='$wl--export-dynamic'
9645    # ancient GNU ld didn't support --whole-archive et. al.
9646    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9647      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9648    else
9649      whole_archive_flag_spec=
9650    fi
9651    supports_anon_versioning=no
9652    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9653      *GNU\ gold*) supports_anon_versioning=yes ;;
9654      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9655      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9656      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9657      *\ 2.11.*) ;; # other 2.11 versions
9658      *) supports_anon_versioning=yes ;;
9659    esac
9660
9661    # See if GNU ld supports shared libraries.
9662    case $host_os in
9663    aix[3-9]*)
9664      # On AIX/PPC, the GNU linker is very broken
9665      if test ia64 != "$host_cpu"; then
9666	ld_shlibs=no
9667	cat <<_LT_EOF 1>&2
9668
9669*** Warning: the GNU linker, at least up to release 2.19, is reported
9670*** to be unable to reliably create shared libraries on AIX.
9671*** Therefore, libtool is disabling shared libraries support.  If you
9672*** really care for shared libraries, you may want to install binutils
9673*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9674*** You will then need to restart the configuration process.
9675
9676_LT_EOF
9677      fi
9678      ;;
9679
9680    amigaos*)
9681      case $host_cpu in
9682      powerpc)
9683            # see comment about AmigaOS4 .so support
9684            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9685            archive_expsym_cmds=''
9686        ;;
9687      m68k)
9688            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)'
9689            hardcode_libdir_flag_spec='-L$libdir'
9690            hardcode_minus_L=yes
9691        ;;
9692      esac
9693      ;;
9694
9695    beos*)
9696      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9697	allow_undefined_flag=unsupported
9698	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9699	# support --undefined.  This deserves some investigation.  FIXME
9700	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9701      else
9702	ld_shlibs=no
9703      fi
9704      ;;
9705
9706    cygwin* | mingw* | pw32* | cegcc*)
9707      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9708      # as there is no search path for DLLs.
9709      hardcode_libdir_flag_spec='-L$libdir'
9710      export_dynamic_flag_spec='$wl--export-all-symbols'
9711      allow_undefined_flag=unsupported
9712      always_export_symbols=no
9713      enable_shared_with_static_runtimes=yes
9714      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'
9715      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9716
9717      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9718        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9719	# If the export-symbols file already is a .def file, use it as
9720	# is; otherwise, prepend EXPORTS...
9721	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9722          cp $export_symbols $output_objdir/$soname.def;
9723        else
9724          echo EXPORTS > $output_objdir/$soname.def;
9725          cat $export_symbols >> $output_objdir/$soname.def;
9726        fi~
9727        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9728      else
9729	ld_shlibs=no
9730      fi
9731      ;;
9732
9733    haiku*)
9734      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9735      link_all_deplibs=yes
9736      ;;
9737
9738    os2*)
9739      hardcode_libdir_flag_spec='-L$libdir'
9740      hardcode_minus_L=yes
9741      allow_undefined_flag=unsupported
9742      shrext_cmds=.dll
9743      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9744	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9745	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9746	$ECHO EXPORTS >> $output_objdir/$libname.def~
9747	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9748	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9749	emximp -o $lib $output_objdir/$libname.def'
9750      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9751	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9752	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9753	$ECHO EXPORTS >> $output_objdir/$libname.def~
9754	prefix_cmds="$SED"~
9755	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9756	  prefix_cmds="$prefix_cmds -e 1d";
9757	fi~
9758	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9759	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9760	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9761	emximp -o $lib $output_objdir/$libname.def'
9762      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9763      enable_shared_with_static_runtimes=yes
9764      file_list_spec='@'
9765      ;;
9766
9767    interix[3-9]*)
9768      hardcode_direct=no
9769      hardcode_shlibpath_var=no
9770      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9771      export_dynamic_flag_spec='$wl-E'
9772      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9773      # Instead, shared libraries are loaded at an image base (0x10000000 by
9774      # default) and relocated if they conflict, which is a slow very memory
9775      # consuming and fragmenting process.  To avoid this, we pick a random,
9776      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9777      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9778      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9779      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'
9780      ;;
9781
9782    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9783      tmp_diet=no
9784      if test linux-dietlibc = "$host_os"; then
9785	case $cc_basename in
9786	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9787	esac
9788      fi
9789      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9790	 && test no = "$tmp_diet"
9791      then
9792	tmp_addflag=' $pic_flag'
9793	tmp_sharedflag='-shared'
9794	case $cc_basename,$host_cpu in
9795        pgcc*)				# Portland Group C compiler
9796	  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'
9797	  tmp_addflag=' $pic_flag'
9798	  ;;
9799	pgf77* | pgf90* | pgf95* | pgfortran*)
9800					# Portland Group f77 and f90 compilers
9801	  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'
9802	  tmp_addflag=' $pic_flag -Mnomain' ;;
9803	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9804	  tmp_addflag=' -i_dynamic' ;;
9805	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9806	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9807	ifc* | ifort*)			# Intel Fortran compiler
9808	  tmp_addflag=' -nofor_main' ;;
9809	lf95*)				# Lahey Fortran 8.1
9810	  whole_archive_flag_spec=
9811	  tmp_sharedflag='--shared' ;;
9812        nagfor*)                        # NAGFOR 5.3
9813          tmp_sharedflag='-Wl,-shared' ;;
9814	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9815	  tmp_sharedflag='-qmkshrobj'
9816	  tmp_addflag= ;;
9817	nvcc*)	# Cuda Compiler Driver 2.2
9818	  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'
9819	  compiler_needs_object=yes
9820	  ;;
9821	esac
9822	case `$CC -V 2>&1 | $SED 5q` in
9823	*Sun\ C*)			# Sun C 5.9
9824	  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'
9825	  compiler_needs_object=yes
9826	  tmp_sharedflag='-G' ;;
9827	*Sun\ F*)			# Sun Fortran 8.3
9828	  tmp_sharedflag='-G' ;;
9829	esac
9830	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9831
9832        if test yes = "$supports_anon_versioning"; then
9833          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9834            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9835            echo "local: *; };" >> $output_objdir/$libname.ver~
9836            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9837        fi
9838
9839	case $cc_basename in
9840	tcc*)
9841	  export_dynamic_flag_spec='-rdynamic'
9842	  ;;
9843	xlf* | bgf* | bgxlf* | mpixlf*)
9844	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9845	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9846	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9847	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9848	  if test yes = "$supports_anon_versioning"; then
9849	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9850              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9851              echo "local: *; };" >> $output_objdir/$libname.ver~
9852              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9853	  fi
9854	  ;;
9855	esac
9856      else
9857        ld_shlibs=no
9858      fi
9859      ;;
9860
9861    netbsd*)
9862      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9863	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9864	wlarc=
9865      else
9866	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9867	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9868      fi
9869      ;;
9870
9871    solaris*)
9872      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9873	ld_shlibs=no
9874	cat <<_LT_EOF 1>&2
9875
9876*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9877*** create shared libraries on Solaris systems.  Therefore, libtool
9878*** is disabling shared libraries support.  We urge you to upgrade GNU
9879*** binutils to release 2.9.1 or newer.  Another option is to modify
9880*** your PATH or compiler configuration so that the native linker is
9881*** used, and then restart.
9882
9883_LT_EOF
9884      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9885	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9886	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9887      else
9888	ld_shlibs=no
9889      fi
9890      ;;
9891
9892    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9893      case `$LD -v 2>&1` in
9894        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9895	ld_shlibs=no
9896	cat <<_LT_EOF 1>&2
9897
9898*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9899*** reliably create shared libraries on SCO systems.  Therefore, libtool
9900*** is disabling shared libraries support.  We urge you to upgrade GNU
9901*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9902*** your PATH or compiler configuration so that the native linker is
9903*** used, and then restart.
9904
9905_LT_EOF
9906	;;
9907	*)
9908	  # For security reasons, it is highly recommended that you always
9909	  # use absolute paths for naming shared libraries, and exclude the
9910	  # DT_RUNPATH tag from executables and libraries.  But doing so
9911	  # requires that you compile everything twice, which is a pain.
9912	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9913	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9914	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9915	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9916	  else
9917	    ld_shlibs=no
9918	  fi
9919	;;
9920      esac
9921      ;;
9922
9923    sunos4*)
9924      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9925      wlarc=
9926      hardcode_direct=yes
9927      hardcode_shlibpath_var=no
9928      ;;
9929
9930    *)
9931      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9932	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9933	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9934      else
9935	ld_shlibs=no
9936      fi
9937      ;;
9938    esac
9939
9940    if test no = "$ld_shlibs"; then
9941      runpath_var=
9942      hardcode_libdir_flag_spec=
9943      export_dynamic_flag_spec=
9944      whole_archive_flag_spec=
9945    fi
9946  else
9947    # PORTME fill in a description of your system's linker (not GNU ld)
9948    case $host_os in
9949    aix3*)
9950      allow_undefined_flag=unsupported
9951      always_export_symbols=yes
9952      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'
9953      # Note: this linker hardcodes the directories in LIBPATH if there
9954      # are no directories specified by -L.
9955      hardcode_minus_L=yes
9956      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9957	# Neither direct hardcoding nor static linking is supported with a
9958	# broken collect2.
9959	hardcode_direct=unsupported
9960      fi
9961      ;;
9962
9963    aix[4-9]*)
9964      if test ia64 = "$host_cpu"; then
9965	# On IA64, the linker does run time linking by default, so we don't
9966	# have to do anything special.
9967	aix_use_runtimelinking=no
9968	exp_sym_flag='-Bexport'
9969	no_entry_flag=
9970      else
9971	# If we're using GNU nm, then we don't want the "-C" option.
9972	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9973	# Without the "-l" option, or with the "-B" option, AIX nm treats
9974	# weak defined symbols like other global defined symbols, whereas
9975	# GNU nm marks them as "W".
9976	# While the 'weak' keyword is ignored in the Export File, we need
9977	# it in the Import File for the 'aix-soname' feature, so we have
9978	# to replace the "-B" option with "-P" for AIX nm.
9979	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9980	  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'
9981	else
9982	  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'
9983	fi
9984	aix_use_runtimelinking=no
9985
9986	# Test if we are trying to use run time linking or normal
9987	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9988	# have runtime linking enabled, and use it for executables.
9989	# For shared libraries, we enable/disable runtime linking
9990	# depending on the kind of the shared library created -
9991	# when "with_aix_soname,aix_use_runtimelinking" is:
9992	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9993	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9994	#            lib.a           static archive
9995	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9996	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9997	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9998	#            lib.a(lib.so.V) shared, rtl:no
9999	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10000	#            lib.a           static archive
10001	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10002	  for ld_flag in $LDFLAGS; do
10003	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10004	    aix_use_runtimelinking=yes
10005	    break
10006	  fi
10007	  done
10008	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10009	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10010	    # so we don't have lib.a shared libs to link our executables.
10011	    # We have to force runtime linking in this case.
10012	    aix_use_runtimelinking=yes
10013	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10014	  fi
10015	  ;;
10016	esac
10017
10018	exp_sym_flag='-bexport'
10019	no_entry_flag='-bnoentry'
10020      fi
10021
10022      # When large executables or shared objects are built, AIX ld can
10023      # have problems creating the table of contents.  If linking a library
10024      # or program results in "error TOC overflow" add -mminimal-toc to
10025      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10026      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10027
10028      archive_cmds=''
10029      hardcode_direct=yes
10030      hardcode_direct_absolute=yes
10031      hardcode_libdir_separator=':'
10032      link_all_deplibs=yes
10033      file_list_spec='$wl-f,'
10034      case $with_aix_soname,$aix_use_runtimelinking in
10035      aix,*) ;; # traditional, no import file
10036      svr4,* | *,yes) # use import file
10037	# The Import File defines what to hardcode.
10038	hardcode_direct=no
10039	hardcode_direct_absolute=no
10040	;;
10041      esac
10042
10043      if test yes = "$GCC"; then
10044	case $host_os in aix4.[012]|aix4.[012].*)
10045	# We only want to do this on AIX 4.2 and lower, the check
10046	# below for broken collect2 doesn't work under 4.3+
10047	  collect2name=`$CC -print-prog-name=collect2`
10048	  if test -f "$collect2name" &&
10049	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10050	  then
10051	  # We have reworked collect2
10052	  :
10053	  else
10054	  # We have old collect2
10055	  hardcode_direct=unsupported
10056	  # It fails to find uninstalled libraries when the uninstalled
10057	  # path is not listed in the libpath.  Setting hardcode_minus_L
10058	  # to unsupported forces relinking
10059	  hardcode_minus_L=yes
10060	  hardcode_libdir_flag_spec='-L$libdir'
10061	  hardcode_libdir_separator=
10062	  fi
10063	  ;;
10064	esac
10065	shared_flag='-shared'
10066	if test yes = "$aix_use_runtimelinking"; then
10067	  shared_flag="$shared_flag "'$wl-G'
10068	fi
10069	# Need to ensure runtime linking is disabled for the traditional
10070	# shared library, or the linker may eventually find shared libraries
10071	# /with/ Import File - we do not want to mix them.
10072	shared_flag_aix='-shared'
10073	shared_flag_svr4='-shared $wl-G'
10074      else
10075	# not using gcc
10076	if test ia64 = "$host_cpu"; then
10077	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10078	# chokes on -Wl,-G. The following line is correct:
10079	  shared_flag='-G'
10080	else
10081	  if test yes = "$aix_use_runtimelinking"; then
10082	    shared_flag='$wl-G'
10083	  else
10084	    shared_flag='$wl-bM:SRE'
10085	  fi
10086	  shared_flag_aix='$wl-bM:SRE'
10087	  shared_flag_svr4='$wl-G'
10088	fi
10089      fi
10090
10091      export_dynamic_flag_spec='$wl-bexpall'
10092      # It seems that -bexpall does not export symbols beginning with
10093      # underscore (_), so it is better to generate a list of symbols to export.
10094      always_export_symbols=yes
10095      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10096	# Warning - without using the other runtime loading flags (-brtl),
10097	# -berok will link without error, but may produce a broken library.
10098	allow_undefined_flag='-berok'
10099        # Determine the default libpath from the value encoded in an
10100        # empty executable.
10101        if test set = "${lt_cv_aix_libpath+set}"; then
10102  aix_libpath=$lt_cv_aix_libpath
10103else
10104  if test ${lt_cv_aix_libpath_+y}
10105then :
10106  printf %s "(cached) " >&6
10107else $as_nop
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110
10111int
10112main (void)
10113{
10114
10115  ;
10116  return 0;
10117}
10118_ACEOF
10119if ac_fn_c_try_link "$LINENO"
10120then :
10121
10122  lt_aix_libpath_sed='
10123      /Import File Strings/,/^$/ {
10124	  /^0/ {
10125	      s/^0  *\([^ ]*\) *$/\1/
10126	      p
10127	  }
10128      }'
10129  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130  # Check for a 64-bit object if we didn't find anything.
10131  if test -z "$lt_cv_aix_libpath_"; then
10132    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10133  fi
10134fi
10135rm -f core conftest.err conftest.$ac_objext conftest.beam \
10136    conftest$ac_exeext conftest.$ac_ext
10137  if test -z "$lt_cv_aix_libpath_"; then
10138    lt_cv_aix_libpath_=/usr/lib:/lib
10139  fi
10140
10141fi
10142
10143  aix_libpath=$lt_cv_aix_libpath_
10144fi
10145
10146        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10147        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
10148      else
10149	if test ia64 = "$host_cpu"; then
10150	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10151	  allow_undefined_flag="-z nodefs"
10152	  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"
10153	else
10154	 # Determine the default libpath from the value encoded in an
10155	 # empty executable.
10156	 if test set = "${lt_cv_aix_libpath+set}"; then
10157  aix_libpath=$lt_cv_aix_libpath
10158else
10159  if test ${lt_cv_aix_libpath_+y}
10160then :
10161  printf %s "(cached) " >&6
10162else $as_nop
10163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164/* end confdefs.h.  */
10165
10166int
10167main (void)
10168{
10169
10170  ;
10171  return 0;
10172}
10173_ACEOF
10174if ac_fn_c_try_link "$LINENO"
10175then :
10176
10177  lt_aix_libpath_sed='
10178      /Import File Strings/,/^$/ {
10179	  /^0/ {
10180	      s/^0  *\([^ ]*\) *$/\1/
10181	      p
10182	  }
10183      }'
10184  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10185  # Check for a 64-bit object if we didn't find anything.
10186  if test -z "$lt_cv_aix_libpath_"; then
10187    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10188  fi
10189fi
10190rm -f core conftest.err conftest.$ac_objext conftest.beam \
10191    conftest$ac_exeext conftest.$ac_ext
10192  if test -z "$lt_cv_aix_libpath_"; then
10193    lt_cv_aix_libpath_=/usr/lib:/lib
10194  fi
10195
10196fi
10197
10198  aix_libpath=$lt_cv_aix_libpath_
10199fi
10200
10201	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10202	  # Warning - without using the other run time loading flags,
10203	  # -berok will link without error, but may produce a broken library.
10204	  no_undefined_flag=' $wl-bernotok'
10205	  allow_undefined_flag=' $wl-berok'
10206	  if test yes = "$with_gnu_ld"; then
10207	    # We only use this code for GNU lds that support --whole-archive.
10208	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10209	  else
10210	    # Exported symbols can be pulled into shared objects from archives
10211	    whole_archive_flag_spec='$convenience'
10212	  fi
10213	  archive_cmds_need_lc=yes
10214	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10215	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10216	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10217	  if test svr4 != "$with_aix_soname"; then
10218	    # This is similar to how AIX traditionally builds its shared libraries.
10219	    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'
10220	  fi
10221	  if test aix != "$with_aix_soname"; then
10222	    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'
10223	  else
10224	    # used by -dlpreopen to get the symbols
10225	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10226	  fi
10227	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10228	fi
10229      fi
10230      ;;
10231
10232    amigaos*)
10233      case $host_cpu in
10234      powerpc)
10235            # see comment about AmigaOS4 .so support
10236            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10237            archive_expsym_cmds=''
10238        ;;
10239      m68k)
10240            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)'
10241            hardcode_libdir_flag_spec='-L$libdir'
10242            hardcode_minus_L=yes
10243        ;;
10244      esac
10245      ;;
10246
10247    bsdi[45]*)
10248      export_dynamic_flag_spec=-rdynamic
10249      ;;
10250
10251    cygwin* | mingw* | pw32* | cegcc*)
10252      # When not using gcc, we currently assume that we are using
10253      # Microsoft Visual C++ or Intel C++ Compiler.
10254      # hardcode_libdir_flag_spec is actually meaningless, as there is
10255      # no search path for DLLs.
10256      case $cc_basename in
10257      cl* | icl*)
10258	# Native MSVC or ICC
10259	hardcode_libdir_flag_spec=' '
10260	allow_undefined_flag=unsupported
10261	always_export_symbols=yes
10262	file_list_spec='@'
10263	# Tell ltmain to make .lib files, not .a files.
10264	libext=lib
10265	# Tell ltmain to make .dll files, not .so files.
10266	shrext_cmds=.dll
10267	# FIXME: Setting linknames here is a bad hack.
10268	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10269	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10270            cp "$export_symbols" "$output_objdir/$soname.def";
10271            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10272          else
10273            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10274          fi~
10275          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10276          linknames='
10277	# The linker will not automatically build a static lib if we build a DLL.
10278	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10279	enable_shared_with_static_runtimes=yes
10280	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10281	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10282	# Don't use ranlib
10283	old_postinstall_cmds='chmod 644 $oldlib'
10284	postlink_cmds='lt_outputfile="@OUTPUT@"~
10285          lt_tool_outputfile="@TOOL_OUTPUT@"~
10286          case $lt_outputfile in
10287            *.exe|*.EXE) ;;
10288            *)
10289              lt_outputfile=$lt_outputfile.exe
10290              lt_tool_outputfile=$lt_tool_outputfile.exe
10291              ;;
10292          esac~
10293          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10294            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10295            $RM "$lt_outputfile.manifest";
10296          fi'
10297	;;
10298      *)
10299	# Assume MSVC and ICC wrapper
10300	hardcode_libdir_flag_spec=' '
10301	allow_undefined_flag=unsupported
10302	# Tell ltmain to make .lib files, not .a files.
10303	libext=lib
10304	# Tell ltmain to make .dll files, not .so files.
10305	shrext_cmds=.dll
10306	# FIXME: Setting linknames here is a bad hack.
10307	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10308	# The linker will automatically build a .lib file if we build a DLL.
10309	old_archive_from_new_cmds='true'
10310	# FIXME: Should let the user specify the lib program.
10311	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10312	enable_shared_with_static_runtimes=yes
10313	;;
10314      esac
10315      ;;
10316
10317    darwin* | rhapsody*)
10318
10319
10320  archive_cmds_need_lc=no
10321  hardcode_direct=no
10322  hardcode_automatic=yes
10323  hardcode_shlibpath_var=unsupported
10324  if test yes = "$lt_cv_ld_force_load"; then
10325    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\"`'
10326
10327  else
10328    whole_archive_flag_spec=''
10329  fi
10330  link_all_deplibs=yes
10331  allow_undefined_flag=$_lt_dar_allow_undefined
10332  case $cc_basename in
10333     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10334     *) _lt_dar_can_shared=$GCC ;;
10335  esac
10336  if test yes = "$_lt_dar_can_shared"; then
10337    output_verbose_link_cmd=func_echo_all
10338    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10339    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10340    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"
10341    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"
10342
10343  else
10344  ld_shlibs=no
10345  fi
10346
10347      ;;
10348
10349    dgux*)
10350      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351      hardcode_libdir_flag_spec='-L$libdir'
10352      hardcode_shlibpath_var=no
10353      ;;
10354
10355    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10356    # support.  Future versions do this automatically, but an explicit c++rt0.o
10357    # does not break anything, and helps significantly (at the cost of a little
10358    # extra space).
10359    freebsd2.2*)
10360      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10361      hardcode_libdir_flag_spec='-R$libdir'
10362      hardcode_direct=yes
10363      hardcode_shlibpath_var=no
10364      ;;
10365
10366    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10367    freebsd2.*)
10368      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10369      hardcode_direct=yes
10370      hardcode_minus_L=yes
10371      hardcode_shlibpath_var=no
10372      ;;
10373
10374    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10375    freebsd* | dragonfly* | midnightbsd*)
10376      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10377      hardcode_libdir_flag_spec='-R$libdir'
10378      hardcode_direct=yes
10379      hardcode_shlibpath_var=no
10380      ;;
10381
10382    hpux9*)
10383      if test yes = "$GCC"; then
10384	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'
10385      else
10386	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'
10387      fi
10388      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10389      hardcode_libdir_separator=:
10390      hardcode_direct=yes
10391
10392      # hardcode_minus_L: Not really in the search PATH,
10393      # but as the default location of the library.
10394      hardcode_minus_L=yes
10395      export_dynamic_flag_spec='$wl-E'
10396      ;;
10397
10398    hpux10*)
10399      if test yes,no = "$GCC,$with_gnu_ld"; then
10400	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10401      else
10402	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10403      fi
10404      if test no = "$with_gnu_ld"; then
10405	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10406	hardcode_libdir_separator=:
10407	hardcode_direct=yes
10408	hardcode_direct_absolute=yes
10409	export_dynamic_flag_spec='$wl-E'
10410	# hardcode_minus_L: Not really in the search PATH,
10411	# but as the default location of the library.
10412	hardcode_minus_L=yes
10413      fi
10414      ;;
10415
10416    hpux11*)
10417      if test yes,no = "$GCC,$with_gnu_ld"; then
10418	case $host_cpu in
10419	hppa*64*)
10420	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10421	  ;;
10422	ia64*)
10423	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10424	  ;;
10425	*)
10426	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10427	  ;;
10428	esac
10429      else
10430	case $host_cpu in
10431	hppa*64*)
10432	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10433	  ;;
10434	ia64*)
10435	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10436	  ;;
10437	*)
10438
10439	  # Older versions of the 11.00 compiler do not understand -b yet
10440	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10441	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10442printf %s "checking if $CC understands -b... " >&6; }
10443if test ${lt_cv_prog_compiler__b+y}
10444then :
10445  printf %s "(cached) " >&6
10446else $as_nop
10447  lt_cv_prog_compiler__b=no
10448   save_LDFLAGS=$LDFLAGS
10449   LDFLAGS="$LDFLAGS -b"
10450   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10451   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10452     # The linker can only warn and ignore the option if not recognized
10453     # So say no if there are warnings
10454     if test -s conftest.err; then
10455       # Append any errors to the config.log.
10456       cat conftest.err 1>&5
10457       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10458       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10459       if diff conftest.exp conftest.er2 >/dev/null; then
10460         lt_cv_prog_compiler__b=yes
10461       fi
10462     else
10463       lt_cv_prog_compiler__b=yes
10464     fi
10465   fi
10466   $RM -r conftest*
10467   LDFLAGS=$save_LDFLAGS
10468
10469fi
10470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10471printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10472
10473if test yes = "$lt_cv_prog_compiler__b"; then
10474    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10475else
10476    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10477fi
10478
10479	  ;;
10480	esac
10481      fi
10482      if test no = "$with_gnu_ld"; then
10483	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10484	hardcode_libdir_separator=:
10485
10486	case $host_cpu in
10487	hppa*64*|ia64*)
10488	  hardcode_direct=no
10489	  hardcode_shlibpath_var=no
10490	  ;;
10491	*)
10492	  hardcode_direct=yes
10493	  hardcode_direct_absolute=yes
10494	  export_dynamic_flag_spec='$wl-E'
10495
10496	  # hardcode_minus_L: Not really in the search PATH,
10497	  # but as the default location of the library.
10498	  hardcode_minus_L=yes
10499	  ;;
10500	esac
10501      fi
10502      ;;
10503
10504    irix5* | irix6* | nonstopux*)
10505      if test yes = "$GCC"; then
10506	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'
10507	# Try to use the -exported_symbol ld option, if it does not
10508	# work, assume that -exports_file does not work either and
10509	# implicitly export all symbols.
10510	# This should be the same for all languages, so no per-tag cache variable.
10511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10512printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10513if test ${lt_cv_irix_exported_symbol+y}
10514then :
10515  printf %s "(cached) " >&6
10516else $as_nop
10517  save_LDFLAGS=$LDFLAGS
10518	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10519	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h.  */
10521int foo (void) { return 0; }
10522_ACEOF
10523if ac_fn_c_try_link "$LINENO"
10524then :
10525  lt_cv_irix_exported_symbol=yes
10526else $as_nop
10527  lt_cv_irix_exported_symbol=no
10528fi
10529rm -f core conftest.err conftest.$ac_objext conftest.beam \
10530    conftest$ac_exeext conftest.$ac_ext
10531           LDFLAGS=$save_LDFLAGS
10532fi
10533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10534printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10535	if test yes = "$lt_cv_irix_exported_symbol"; then
10536          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'
10537	fi
10538      else
10539	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'
10540	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'
10541      fi
10542      archive_cmds_need_lc='no'
10543      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10544      hardcode_libdir_separator=:
10545      inherit_rpath=yes
10546      link_all_deplibs=yes
10547      ;;
10548
10549    linux*)
10550      case $cc_basename in
10551      tcc*)
10552	# Fabrice Bellard et al's Tiny C Compiler
10553	ld_shlibs=yes
10554	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10555	;;
10556      esac
10557      ;;
10558
10559    netbsd*)
10560      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10561	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10562      else
10563	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10564      fi
10565      hardcode_libdir_flag_spec='-R$libdir'
10566      hardcode_direct=yes
10567      hardcode_shlibpath_var=no
10568      ;;
10569
10570    newsos6)
10571      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572      hardcode_direct=yes
10573      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10574      hardcode_libdir_separator=:
10575      hardcode_shlibpath_var=no
10576      ;;
10577
10578    *nto* | *qnx*)
10579      ;;
10580
10581    openbsd* | bitrig*)
10582      if test -f /usr/libexec/ld.so; then
10583	hardcode_direct=yes
10584	hardcode_shlibpath_var=no
10585	hardcode_direct_absolute=yes
10586	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10587	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10588	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10589	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10590	  export_dynamic_flag_spec='$wl-E'
10591	else
10592	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10593	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10594	fi
10595      else
10596	ld_shlibs=no
10597      fi
10598      ;;
10599
10600    os2*)
10601      hardcode_libdir_flag_spec='-L$libdir'
10602      hardcode_minus_L=yes
10603      allow_undefined_flag=unsupported
10604      shrext_cmds=.dll
10605      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10606	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10607	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10608	$ECHO EXPORTS >> $output_objdir/$libname.def~
10609	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10610	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10611	emximp -o $lib $output_objdir/$libname.def'
10612      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10613	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10614	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10615	$ECHO EXPORTS >> $output_objdir/$libname.def~
10616	prefix_cmds="$SED"~
10617	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10618	  prefix_cmds="$prefix_cmds -e 1d";
10619	fi~
10620	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10621	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10622	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10623	emximp -o $lib $output_objdir/$libname.def'
10624      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10625      enable_shared_with_static_runtimes=yes
10626      file_list_spec='@'
10627      ;;
10628
10629    osf3*)
10630      if test yes = "$GCC"; then
10631	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10632	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'
10633      else
10634	allow_undefined_flag=' -expect_unresolved \*'
10635	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'
10636      fi
10637      archive_cmds_need_lc='no'
10638      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10639      hardcode_libdir_separator=:
10640      ;;
10641
10642    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10643      if test yes = "$GCC"; then
10644	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10645	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'
10646	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10647      else
10648	allow_undefined_flag=' -expect_unresolved \*'
10649	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'
10650	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~
10651          $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'
10652
10653	# Both c and cxx compiler support -rpath directly
10654	hardcode_libdir_flag_spec='-rpath $libdir'
10655      fi
10656      archive_cmds_need_lc='no'
10657      hardcode_libdir_separator=:
10658      ;;
10659
10660    solaris*)
10661      no_undefined_flag=' -z defs'
10662      if test yes = "$GCC"; then
10663	wlarc='$wl'
10664	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10665	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10666          $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'
10667      else
10668	case `$CC -V 2>&1` in
10669	*"Compilers 5.0"*)
10670	  wlarc=''
10671	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10672	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10673            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10674	  ;;
10675	*)
10676	  wlarc='$wl'
10677	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10678	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10679            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10680	  ;;
10681	esac
10682      fi
10683      hardcode_libdir_flag_spec='-R$libdir'
10684      hardcode_shlibpath_var=no
10685      case $host_os in
10686      solaris2.[0-5] | solaris2.[0-5].*) ;;
10687      *)
10688	# The compiler driver will combine and reorder linker options,
10689	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10690	# but is careful enough not to reorder.
10691	# Supported since Solaris 2.6 (maybe 2.5.1?)
10692	if test yes = "$GCC"; then
10693	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10694	else
10695	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10696	fi
10697	;;
10698      esac
10699      link_all_deplibs=yes
10700      ;;
10701
10702    sunos4*)
10703      if test sequent = "$host_vendor"; then
10704	# Use $CC to link under sequent, because it throws in some extra .o
10705	# files that make .init and .fini sections work.
10706	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10707      else
10708	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10709      fi
10710      hardcode_libdir_flag_spec='-L$libdir'
10711      hardcode_direct=yes
10712      hardcode_minus_L=yes
10713      hardcode_shlibpath_var=no
10714      ;;
10715
10716    sysv4)
10717      case $host_vendor in
10718	sni)
10719	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720	  hardcode_direct=yes # is this really true???
10721	;;
10722	siemens)
10723	  ## LD is ld it makes a PLAMLIB
10724	  ## CC just makes a GrossModule.
10725	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10726	  reload_cmds='$CC -r -o $output$reload_objs'
10727	  hardcode_direct=no
10728        ;;
10729	motorola)
10730	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10732	;;
10733      esac
10734      runpath_var='LD_RUN_PATH'
10735      hardcode_shlibpath_var=no
10736      ;;
10737
10738    sysv4.3*)
10739      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740      hardcode_shlibpath_var=no
10741      export_dynamic_flag_spec='-Bexport'
10742      ;;
10743
10744    sysv4*MP*)
10745      if test -d /usr/nec; then
10746	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747	hardcode_shlibpath_var=no
10748	runpath_var=LD_RUN_PATH
10749	hardcode_runpath_var=yes
10750	ld_shlibs=yes
10751      fi
10752      ;;
10753
10754    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10755      no_undefined_flag='$wl-z,text'
10756      archive_cmds_need_lc=no
10757      hardcode_shlibpath_var=no
10758      runpath_var='LD_RUN_PATH'
10759
10760      if test yes = "$GCC"; then
10761	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763      else
10764	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10765	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766      fi
10767      ;;
10768
10769    sysv5* | sco3.2v5* | sco5v6*)
10770      # Note: We CANNOT use -z defs as we might desire, because we do not
10771      # link with -lc, and that would cause any symbols used from libc to
10772      # always be unresolved, which means just about no library would
10773      # ever link correctly.  If we're not using GNU ld we use -z text
10774      # though, which does catch some bad symbols but isn't as heavy-handed
10775      # as -z defs.
10776      no_undefined_flag='$wl-z,text'
10777      allow_undefined_flag='$wl-z,nodefs'
10778      archive_cmds_need_lc=no
10779      hardcode_shlibpath_var=no
10780      hardcode_libdir_flag_spec='$wl-R,$libdir'
10781      hardcode_libdir_separator=':'
10782      link_all_deplibs=yes
10783      export_dynamic_flag_spec='$wl-Bexport'
10784      runpath_var='LD_RUN_PATH'
10785
10786      if test yes = "$GCC"; then
10787	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789      else
10790	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792      fi
10793      ;;
10794
10795    uts4*)
10796      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10797      hardcode_libdir_flag_spec='-L$libdir'
10798      hardcode_shlibpath_var=no
10799      ;;
10800
10801    *)
10802      ld_shlibs=no
10803      ;;
10804    esac
10805
10806    if test sni = "$host_vendor"; then
10807      case $host in
10808      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10809	export_dynamic_flag_spec='$wl-Blargedynsym'
10810	;;
10811      esac
10812    fi
10813  fi
10814
10815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10816printf "%s\n" "$ld_shlibs" >&6; }
10817test no = "$ld_shlibs" && can_build_shared=no
10818
10819with_gnu_ld=$with_gnu_ld
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835#
10836# Do we need to explicitly link libc?
10837#
10838case "x$archive_cmds_need_lc" in
10839x|xyes)
10840  # Assume -lc should be added
10841  archive_cmds_need_lc=yes
10842
10843  if test yes,yes = "$GCC,$enable_shared"; then
10844    case $archive_cmds in
10845    *'~'*)
10846      # FIXME: we may have to deal with multi-command sequences.
10847      ;;
10848    '$CC '*)
10849      # Test whether the compiler implicitly links with -lc since on some
10850      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10851      # to ld, don't add -lc before -lgcc.
10852      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10853printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10854if test ${lt_cv_archive_cmds_need_lc+y}
10855then :
10856  printf %s "(cached) " >&6
10857else $as_nop
10858  $RM conftest*
10859	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10860
10861	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10862  (eval $ac_compile) 2>&5
10863  ac_status=$?
10864  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10865  test $ac_status = 0; } 2>conftest.err; then
10866	  soname=conftest
10867	  lib=conftest
10868	  libobjs=conftest.$ac_objext
10869	  deplibs=
10870	  wl=$lt_prog_compiler_wl
10871	  pic_flag=$lt_prog_compiler_pic
10872	  compiler_flags=-v
10873	  linker_flags=-v
10874	  verstring=
10875	  output_objdir=.
10876	  libname=conftest
10877	  lt_save_allow_undefined_flag=$allow_undefined_flag
10878	  allow_undefined_flag=
10879	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10880  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10881  ac_status=$?
10882  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883  test $ac_status = 0; }
10884	  then
10885	    lt_cv_archive_cmds_need_lc=no
10886	  else
10887	    lt_cv_archive_cmds_need_lc=yes
10888	  fi
10889	  allow_undefined_flag=$lt_save_allow_undefined_flag
10890	else
10891	  cat conftest.err 1>&5
10892	fi
10893	$RM conftest*
10894
10895fi
10896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10897printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10898      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10899      ;;
10900    esac
10901  fi
10902  ;;
10903esac
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
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11057printf %s "checking dynamic linker characteristics... " >&6; }
11058
11059if test yes = "$GCC"; then
11060  case $host_os in
11061    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11062    *) lt_awk_arg='/^libraries:/' ;;
11063  esac
11064  case $host_os in
11065    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11066    *) lt_sed_strip_eq='s|=/|/|g' ;;
11067  esac
11068  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11069  case $lt_search_path_spec in
11070  *\;*)
11071    # if the path contains ";" then we assume it to be the separator
11072    # otherwise default to the standard path separator (i.e. ":") - it is
11073    # assumed that no part of a normal pathname contains ";" but that should
11074    # okay in the real world where ";" in dirpaths is itself problematic.
11075    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11076    ;;
11077  *)
11078    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11079    ;;
11080  esac
11081  # Ok, now we have the path, separated by spaces, we can step through it
11082  # and add multilib dir if necessary...
11083  lt_tmp_lt_search_path_spec=
11084  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11085  # ...but if some path component already ends with the multilib dir we assume
11086  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11087  case "$lt_multi_os_dir; $lt_search_path_spec " in
11088  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11089    lt_multi_os_dir=
11090    ;;
11091  esac
11092  for lt_sys_path in $lt_search_path_spec; do
11093    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11094      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11095    elif test -n "$lt_multi_os_dir"; then
11096      test -d "$lt_sys_path" && \
11097	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11098    fi
11099  done
11100  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11101BEGIN {RS = " "; FS = "/|\n";} {
11102  lt_foo = "";
11103  lt_count = 0;
11104  for (lt_i = NF; lt_i > 0; lt_i--) {
11105    if ($lt_i != "" && $lt_i != ".") {
11106      if ($lt_i == "..") {
11107        lt_count++;
11108      } else {
11109        if (lt_count == 0) {
11110          lt_foo = "/" $lt_i lt_foo;
11111        } else {
11112          lt_count--;
11113        }
11114      }
11115    }
11116  }
11117  if (lt_foo != "") { lt_freq[lt_foo]++; }
11118  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11119}'`
11120  # AWK program above erroneously prepends '/' to C:/dos/paths
11121  # for these hosts.
11122  case $host_os in
11123    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11124      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11125  esac
11126  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11127else
11128  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11129fi
11130library_names_spec=
11131libname_spec='lib$name'
11132soname_spec=
11133shrext_cmds=.so
11134postinstall_cmds=
11135postuninstall_cmds=
11136finish_cmds=
11137finish_eval=
11138shlibpath_var=
11139shlibpath_overrides_runpath=unknown
11140version_type=none
11141dynamic_linker="$host_os ld.so"
11142sys_lib_dlsearch_path_spec="/lib /usr/lib"
11143need_lib_prefix=unknown
11144hardcode_into_libs=no
11145
11146# when you set need_version to no, make sure it does not cause -set_version
11147# flags to be left without arguments
11148need_version=unknown
11149
11150
11151
11152case $host_os in
11153aix3*)
11154  version_type=linux # correct to gnu/linux during the next big refactor
11155  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11156  shlibpath_var=LIBPATH
11157
11158  # AIX 3 has no versioning support, so we append a major version to the name.
11159  soname_spec='$libname$release$shared_ext$major'
11160  ;;
11161
11162aix[4-9]*)
11163  version_type=linux # correct to gnu/linux during the next big refactor
11164  need_lib_prefix=no
11165  need_version=no
11166  hardcode_into_libs=yes
11167  if test ia64 = "$host_cpu"; then
11168    # AIX 5 supports IA64
11169    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11170    shlibpath_var=LD_LIBRARY_PATH
11171  else
11172    # With GCC up to 2.95.x, collect2 would create an import file
11173    # for dependence libraries.  The import file would start with
11174    # the line '#! .'.  This would cause the generated library to
11175    # depend on '.', always an invalid library.  This was fixed in
11176    # development snapshots of GCC prior to 3.0.
11177    case $host_os in
11178      aix4 | aix4.[01] | aix4.[01].*)
11179      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11180	   echo ' yes '
11181	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11182	:
11183      else
11184	can_build_shared=no
11185      fi
11186      ;;
11187    esac
11188    # Using Import Files as archive members, it is possible to support
11189    # filename-based versioning of shared library archives on AIX. While
11190    # this would work for both with and without runtime linking, it will
11191    # prevent static linking of such archives. So we do filename-based
11192    # shared library versioning with .so extension only, which is used
11193    # when both runtime linking and shared linking is enabled.
11194    # Unfortunately, runtime linking may impact performance, so we do
11195    # not want this to be the default eventually. Also, we use the
11196    # versioned .so libs for executables only if there is the -brtl
11197    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11198    # To allow for filename-based versioning support, we need to create
11199    # libNAME.so.V as an archive file, containing:
11200    # *) an Import File, referring to the versioned filename of the
11201    #    archive as well as the shared archive member, telling the
11202    #    bitwidth (32 or 64) of that shared object, and providing the
11203    #    list of exported symbols of that shared object, eventually
11204    #    decorated with the 'weak' keyword
11205    # *) the shared object with the F_LOADONLY flag set, to really avoid
11206    #    it being seen by the linker.
11207    # At run time we better use the real file rather than another symlink,
11208    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11209
11210    case $with_aix_soname,$aix_use_runtimelinking in
11211    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11212    # soname into executable. Probably we can add versioning support to
11213    # collect2, so additional links can be useful in future.
11214    aix,yes) # traditional libtool
11215      dynamic_linker='AIX unversionable lib.so'
11216      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11217      # instead of lib<name>.a to let people know that these are not
11218      # typical AIX shared libraries.
11219      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220      ;;
11221    aix,no) # traditional AIX only
11222      dynamic_linker='AIX lib.a(lib.so.V)'
11223      # We preserve .a as extension for shared libraries through AIX4.2
11224      # and later when we are not doing run time linking.
11225      library_names_spec='$libname$release.a $libname.a'
11226      soname_spec='$libname$release$shared_ext$major'
11227      ;;
11228    svr4,*) # full svr4 only
11229      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11230      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11231      # We do not specify a path in Import Files, so LIBPATH fires.
11232      shlibpath_overrides_runpath=yes
11233      ;;
11234    *,yes) # both, prefer svr4
11235      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11236      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11237      # unpreferred sharedlib libNAME.a needs extra handling
11238      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"'
11239      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"'
11240      # We do not specify a path in Import Files, so LIBPATH fires.
11241      shlibpath_overrides_runpath=yes
11242      ;;
11243    *,no) # both, prefer aix
11244      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11245      library_names_spec='$libname$release.a $libname.a'
11246      soname_spec='$libname$release$shared_ext$major'
11247      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11248      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)'
11249      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"'
11250      ;;
11251    esac
11252    shlibpath_var=LIBPATH
11253  fi
11254  ;;
11255
11256amigaos*)
11257  case $host_cpu in
11258  powerpc)
11259    # Since July 2007 AmigaOS4 officially supports .so libraries.
11260    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11261    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262    ;;
11263  m68k)
11264    library_names_spec='$libname.ixlibrary $libname.a'
11265    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11266    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'
11267    ;;
11268  esac
11269  ;;
11270
11271beos*)
11272  library_names_spec='$libname$shared_ext'
11273  dynamic_linker="$host_os ld.so"
11274  shlibpath_var=LIBRARY_PATH
11275  ;;
11276
11277bsdi[45]*)
11278  version_type=linux # correct to gnu/linux during the next big refactor
11279  need_version=no
11280  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281  soname_spec='$libname$release$shared_ext$major'
11282  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11283  shlibpath_var=LD_LIBRARY_PATH
11284  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11285  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11286  # the default ld.so.conf also contains /usr/contrib/lib and
11287  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11288  # libtool to hard-code these into programs
11289  ;;
11290
11291cygwin* | mingw* | pw32* | cegcc*)
11292  version_type=windows
11293  shrext_cmds=.dll
11294  need_version=no
11295  need_lib_prefix=no
11296
11297  case $GCC,$cc_basename in
11298  yes,*)
11299    # gcc
11300    library_names_spec='$libname.dll.a'
11301    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11302    postinstall_cmds='base_file=`basename \$file`~
11303      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11304      dldir=$destdir/`dirname \$dlpath`~
11305      test -d \$dldir || mkdir -p \$dldir~
11306      $install_prog $dir/$dlname \$dldir/$dlname~
11307      chmod a+x \$dldir/$dlname~
11308      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11309        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11310      fi'
11311    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11312      dlpath=$dir/\$dldll~
11313       $RM \$dlpath'
11314    shlibpath_overrides_runpath=yes
11315
11316    case $host_os in
11317    cygwin*)
11318      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11319      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11320
11321      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11322      ;;
11323    mingw* | cegcc*)
11324      # MinGW DLLs use traditional 'lib' prefix
11325      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11326      ;;
11327    pw32*)
11328      # pw32 DLLs use 'pw' prefix rather than 'lib'
11329      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11330      ;;
11331    esac
11332    dynamic_linker='Win32 ld.exe'
11333    ;;
11334
11335  *,cl* | *,icl*)
11336    # Native MSVC or ICC
11337    libname_spec='$name'
11338    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11339    library_names_spec='$libname.dll.lib'
11340
11341    case $build_os in
11342    mingw*)
11343      sys_lib_search_path_spec=
11344      lt_save_ifs=$IFS
11345      IFS=';'
11346      for lt_path in $LIB
11347      do
11348        IFS=$lt_save_ifs
11349        # Let DOS variable expansion print the short 8.3 style file name.
11350        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11351        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11352      done
11353      IFS=$lt_save_ifs
11354      # Convert to MSYS style.
11355      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11356      ;;
11357    cygwin*)
11358      # Convert to unix form, then to dos form, then back to unix form
11359      # but this time dos style (no spaces!) so that the unix form looks
11360      # like /cygdrive/c/PROGRA~1:/cygdr...
11361      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11362      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11363      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11364      ;;
11365    *)
11366      sys_lib_search_path_spec=$LIB
11367      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11368        # It is most probably a Windows format PATH.
11369        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11370      else
11371        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11372      fi
11373      # FIXME: find the short name or the path components, as spaces are
11374      # common. (e.g. "Program Files" -> "PROGRA~1")
11375      ;;
11376    esac
11377
11378    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11379    postinstall_cmds='base_file=`basename \$file`~
11380      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11381      dldir=$destdir/`dirname \$dlpath`~
11382      test -d \$dldir || mkdir -p \$dldir~
11383      $install_prog $dir/$dlname \$dldir/$dlname'
11384    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11385      dlpath=$dir/\$dldll~
11386       $RM \$dlpath'
11387    shlibpath_overrides_runpath=yes
11388    dynamic_linker='Win32 link.exe'
11389    ;;
11390
11391  *)
11392    # Assume MSVC and ICC wrapper
11393    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11394    dynamic_linker='Win32 ld.exe'
11395    ;;
11396  esac
11397  # FIXME: first we should search . and the directory the executable is in
11398  shlibpath_var=PATH
11399  ;;
11400
11401darwin* | rhapsody*)
11402  dynamic_linker="$host_os dyld"
11403  version_type=darwin
11404  need_lib_prefix=no
11405  need_version=no
11406  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11407  soname_spec='$libname$release$major$shared_ext'
11408  shlibpath_overrides_runpath=yes
11409  shlibpath_var=DYLD_LIBRARY_PATH
11410  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11411
11412  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11413  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11414  ;;
11415
11416dgux*)
11417  version_type=linux # correct to gnu/linux during the next big refactor
11418  need_lib_prefix=no
11419  need_version=no
11420  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11421  soname_spec='$libname$release$shared_ext$major'
11422  shlibpath_var=LD_LIBRARY_PATH
11423  ;;
11424
11425freebsd* | dragonfly* | midnightbsd*)
11426  # DragonFly does not have aout.  When/if they implement a new
11427  # versioning mechanism, adjust this.
11428  if test -x /usr/bin/objformat; then
11429    objformat=`/usr/bin/objformat`
11430  else
11431    case $host_os in
11432    freebsd[23].*) objformat=aout ;;
11433    *) objformat=elf ;;
11434    esac
11435  fi
11436  version_type=freebsd-$objformat
11437  case $version_type in
11438    freebsd-elf*)
11439      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11440      soname_spec='$libname$release$shared_ext$major'
11441      need_version=no
11442      need_lib_prefix=no
11443      ;;
11444    freebsd-*)
11445      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11446      need_version=yes
11447      ;;
11448  esac
11449  shlibpath_var=LD_LIBRARY_PATH
11450  case $host_os in
11451  freebsd2.*)
11452    shlibpath_overrides_runpath=yes
11453    ;;
11454  freebsd3.[01]* | freebsdelf3.[01]*)
11455    shlibpath_overrides_runpath=yes
11456    hardcode_into_libs=yes
11457    ;;
11458  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11459  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11460    shlibpath_overrides_runpath=no
11461    hardcode_into_libs=yes
11462    ;;
11463  *) # from 4.6 on, and DragonFly
11464    shlibpath_overrides_runpath=yes
11465    hardcode_into_libs=yes
11466    ;;
11467  esac
11468  ;;
11469
11470haiku*)
11471  version_type=linux # correct to gnu/linux during the next big refactor
11472  need_lib_prefix=no
11473  need_version=no
11474  dynamic_linker="$host_os runtime_loader"
11475  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476  soname_spec='$libname$release$shared_ext$major'
11477  shlibpath_var=LIBRARY_PATH
11478  shlibpath_overrides_runpath=no
11479  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11480  hardcode_into_libs=yes
11481  ;;
11482
11483hpux9* | hpux10* | hpux11*)
11484  # Give a soname corresponding to the major version so that dld.sl refuses to
11485  # link against other versions.
11486  version_type=sunos
11487  need_lib_prefix=no
11488  need_version=no
11489  case $host_cpu in
11490  ia64*)
11491    shrext_cmds='.so'
11492    hardcode_into_libs=yes
11493    dynamic_linker="$host_os dld.so"
11494    shlibpath_var=LD_LIBRARY_PATH
11495    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11496    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11497    soname_spec='$libname$release$shared_ext$major'
11498    if test 32 = "$HPUX_IA64_MODE"; then
11499      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11500      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11501    else
11502      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11503      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11504    fi
11505    ;;
11506  hppa*64*)
11507    shrext_cmds='.sl'
11508    hardcode_into_libs=yes
11509    dynamic_linker="$host_os dld.sl"
11510    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11511    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11512    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11513    soname_spec='$libname$release$shared_ext$major'
11514    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11515    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11516    ;;
11517  *)
11518    shrext_cmds='.sl'
11519    dynamic_linker="$host_os dld.sl"
11520    shlibpath_var=SHLIB_PATH
11521    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11522    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523    soname_spec='$libname$release$shared_ext$major'
11524    ;;
11525  esac
11526  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11527  postinstall_cmds='chmod 555 $lib'
11528  # or fails outright, so override atomically:
11529  install_override_mode=555
11530  ;;
11531
11532interix[3-9]*)
11533  version_type=linux # correct to gnu/linux during the next big refactor
11534  need_lib_prefix=no
11535  need_version=no
11536  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537  soname_spec='$libname$release$shared_ext$major'
11538  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  shlibpath_overrides_runpath=no
11541  hardcode_into_libs=yes
11542  ;;
11543
11544irix5* | irix6* | nonstopux*)
11545  case $host_os in
11546    nonstopux*) version_type=nonstopux ;;
11547    *)
11548	if test yes = "$lt_cv_prog_gnu_ld"; then
11549		version_type=linux # correct to gnu/linux during the next big refactor
11550	else
11551		version_type=irix
11552	fi ;;
11553  esac
11554  need_lib_prefix=no
11555  need_version=no
11556  soname_spec='$libname$release$shared_ext$major'
11557  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11558  case $host_os in
11559  irix5* | nonstopux*)
11560    libsuff= shlibsuff=
11561    ;;
11562  *)
11563    case $LD in # libtool.m4 will add one of these switches to LD
11564    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11565      libsuff= shlibsuff= libmagic=32-bit;;
11566    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11567      libsuff=32 shlibsuff=N32 libmagic=N32;;
11568    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11569      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11570    *) libsuff= shlibsuff= libmagic=never-match;;
11571    esac
11572    ;;
11573  esac
11574  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11575  shlibpath_overrides_runpath=no
11576  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11577  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11578  hardcode_into_libs=yes
11579  ;;
11580
11581# No shared lib support for Linux oldld, aout, or coff.
11582linux*oldld* | linux*aout* | linux*coff*)
11583  dynamic_linker=no
11584  ;;
11585
11586linux*android*)
11587  version_type=none # Android doesn't support versioned libraries.
11588  need_lib_prefix=no
11589  need_version=no
11590  library_names_spec='$libname$release$shared_ext'
11591  soname_spec='$libname$release$shared_ext'
11592  finish_cmds=
11593  shlibpath_var=LD_LIBRARY_PATH
11594  shlibpath_overrides_runpath=yes
11595
11596  # This implies no fast_install, which is unacceptable.
11597  # Some rework will be needed to allow for fast_install
11598  # before this can be enabled.
11599  hardcode_into_libs=yes
11600
11601  dynamic_linker='Android linker'
11602  # Don't embed -rpath directories since the linker doesn't support them.
11603  hardcode_libdir_flag_spec='-L$libdir'
11604  ;;
11605
11606# This must be glibc/ELF.
11607linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11608  version_type=linux # correct to gnu/linux during the next big refactor
11609  need_lib_prefix=no
11610  need_version=no
11611  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11612  soname_spec='$libname$release$shared_ext$major'
11613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11614  shlibpath_var=LD_LIBRARY_PATH
11615  shlibpath_overrides_runpath=no
11616
11617  # Some binutils ld are patched to set DT_RUNPATH
11618  if test ${lt_cv_shlibpath_overrides_runpath+y}
11619then :
11620  printf %s "(cached) " >&6
11621else $as_nop
11622  lt_cv_shlibpath_overrides_runpath=no
11623    save_LDFLAGS=$LDFLAGS
11624    save_libdir=$libdir
11625    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11626	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11627    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h.  */
11629
11630int
11631main (void)
11632{
11633
11634  ;
11635  return 0;
11636}
11637_ACEOF
11638if ac_fn_c_try_link "$LINENO"
11639then :
11640  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11641then :
11642  lt_cv_shlibpath_overrides_runpath=yes
11643fi
11644fi
11645rm -f core conftest.err conftest.$ac_objext conftest.beam \
11646    conftest$ac_exeext conftest.$ac_ext
11647    LDFLAGS=$save_LDFLAGS
11648    libdir=$save_libdir
11649
11650fi
11651
11652  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11653
11654  # This implies no fast_install, which is unacceptable.
11655  # Some rework will be needed to allow for fast_install
11656  # before this can be enabled.
11657  hardcode_into_libs=yes
11658
11659  # Ideally, we could use ldconfig to report *all* directores which are
11660  # searched for libraries, however this is still not possible.  Aside from not
11661  # being certain /sbin/ldconfig is available, command
11662  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11663  # even though it is searched at run-time.  Try to do the best guess by
11664  # appending ld.so.conf contents (and includes) to the search path.
11665  if test -f /etc/ld.so.conf; then
11666    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' ' '`
11667    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11668  fi
11669
11670  # We used to test for /lib/ld.so.1 and disable shared libraries on
11671  # powerpc, because MkLinux only supported shared libraries with the
11672  # GNU dynamic linker.  Since this was broken with cross compilers,
11673  # most powerpc-linux boxes support dynamic linking these days and
11674  # people can always --disable-shared, the test was removed, and we
11675  # assume the GNU/Linux dynamic linker is in use.
11676  dynamic_linker='GNU/Linux ld.so'
11677  ;;
11678
11679netbsd*)
11680  version_type=sunos
11681  need_lib_prefix=no
11682  need_version=no
11683  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11684    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11685    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11686    dynamic_linker='NetBSD (a.out) ld.so'
11687  else
11688    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689    soname_spec='$libname$release$shared_ext$major'
11690    dynamic_linker='NetBSD ld.elf_so'
11691  fi
11692  shlibpath_var=LD_LIBRARY_PATH
11693  shlibpath_overrides_runpath=yes
11694  hardcode_into_libs=yes
11695  ;;
11696
11697newsos6)
11698  version_type=linux # correct to gnu/linux during the next big refactor
11699  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11700  shlibpath_var=LD_LIBRARY_PATH
11701  shlibpath_overrides_runpath=yes
11702  ;;
11703
11704*nto* | *qnx*)
11705  version_type=qnx
11706  need_lib_prefix=no
11707  need_version=no
11708  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709  soname_spec='$libname$release$shared_ext$major'
11710  shlibpath_var=LD_LIBRARY_PATH
11711  shlibpath_overrides_runpath=no
11712  hardcode_into_libs=yes
11713  dynamic_linker='ldqnx.so'
11714  ;;
11715
11716openbsd* | bitrig*)
11717  version_type=sunos
11718  sys_lib_dlsearch_path_spec=/usr/lib
11719  need_lib_prefix=no
11720  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11721    need_version=no
11722  else
11723    need_version=yes
11724  fi
11725  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11726  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11727  shlibpath_var=LD_LIBRARY_PATH
11728  shlibpath_overrides_runpath=yes
11729  ;;
11730
11731os2*)
11732  libname_spec='$name'
11733  version_type=windows
11734  shrext_cmds=.dll
11735  need_version=no
11736  need_lib_prefix=no
11737  # OS/2 can only load a DLL with a base name of 8 characters or less.
11738  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11739    v=$($ECHO $release$versuffix | tr -d .-);
11740    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11741    $ECHO $n$v`$shared_ext'
11742  library_names_spec='${libname}_dll.$libext'
11743  dynamic_linker='OS/2 ld.exe'
11744  shlibpath_var=BEGINLIBPATH
11745  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11746  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11747  postinstall_cmds='base_file=`basename \$file`~
11748    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11749    dldir=$destdir/`dirname \$dlpath`~
11750    test -d \$dldir || mkdir -p \$dldir~
11751    $install_prog $dir/$dlname \$dldir/$dlname~
11752    chmod a+x \$dldir/$dlname~
11753    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11754      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11755    fi'
11756  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11757    dlpath=$dir/\$dldll~
11758    $RM \$dlpath'
11759  ;;
11760
11761osf3* | osf4* | osf5*)
11762  version_type=osf
11763  need_lib_prefix=no
11764  need_version=no
11765  soname_spec='$libname$release$shared_ext$major'
11766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767  shlibpath_var=LD_LIBRARY_PATH
11768  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11769  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11770  ;;
11771
11772rdos*)
11773  dynamic_linker=no
11774  ;;
11775
11776solaris*)
11777  version_type=linux # correct to gnu/linux during the next big refactor
11778  need_lib_prefix=no
11779  need_version=no
11780  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781  soname_spec='$libname$release$shared_ext$major'
11782  shlibpath_var=LD_LIBRARY_PATH
11783  shlibpath_overrides_runpath=yes
11784  hardcode_into_libs=yes
11785  # ldd complains unless libraries are executable
11786  postinstall_cmds='chmod +x $lib'
11787  ;;
11788
11789sunos4*)
11790  version_type=sunos
11791  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11792  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11793  shlibpath_var=LD_LIBRARY_PATH
11794  shlibpath_overrides_runpath=yes
11795  if test yes = "$with_gnu_ld"; then
11796    need_lib_prefix=no
11797  fi
11798  need_version=yes
11799  ;;
11800
11801sysv4 | sysv4.3*)
11802  version_type=linux # correct to gnu/linux during the next big refactor
11803  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11804  soname_spec='$libname$release$shared_ext$major'
11805  shlibpath_var=LD_LIBRARY_PATH
11806  case $host_vendor in
11807    sni)
11808      shlibpath_overrides_runpath=no
11809      need_lib_prefix=no
11810      runpath_var=LD_RUN_PATH
11811      ;;
11812    siemens)
11813      need_lib_prefix=no
11814      ;;
11815    motorola)
11816      need_lib_prefix=no
11817      need_version=no
11818      shlibpath_overrides_runpath=no
11819      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11820      ;;
11821  esac
11822  ;;
11823
11824sysv4*MP*)
11825  if test -d /usr/nec; then
11826    version_type=linux # correct to gnu/linux during the next big refactor
11827    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11828    soname_spec='$libname$shared_ext.$major'
11829    shlibpath_var=LD_LIBRARY_PATH
11830  fi
11831  ;;
11832
11833sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11834  version_type=sco
11835  need_lib_prefix=no
11836  need_version=no
11837  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11838  soname_spec='$libname$release$shared_ext$major'
11839  shlibpath_var=LD_LIBRARY_PATH
11840  shlibpath_overrides_runpath=yes
11841  hardcode_into_libs=yes
11842  if test yes = "$with_gnu_ld"; then
11843    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11844  else
11845    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11846    case $host_os in
11847      sco3.2v5*)
11848        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11849	;;
11850    esac
11851  fi
11852  sys_lib_dlsearch_path_spec='/usr/lib'
11853  ;;
11854
11855tpf*)
11856  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11857  version_type=linux # correct to gnu/linux during the next big refactor
11858  need_lib_prefix=no
11859  need_version=no
11860  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861  shlibpath_var=LD_LIBRARY_PATH
11862  shlibpath_overrides_runpath=no
11863  hardcode_into_libs=yes
11864  ;;
11865
11866uts4*)
11867  version_type=linux # correct to gnu/linux during the next big refactor
11868  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11869  soname_spec='$libname$release$shared_ext$major'
11870  shlibpath_var=LD_LIBRARY_PATH
11871  ;;
11872
11873*)
11874  dynamic_linker=no
11875  ;;
11876esac
11877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11878printf "%s\n" "$dynamic_linker" >&6; }
11879test no = "$dynamic_linker" && can_build_shared=no
11880
11881variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11882if test yes = "$GCC"; then
11883  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11884fi
11885
11886if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11887  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11888fi
11889
11890if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11891  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11892fi
11893
11894# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11895configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11896
11897# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11898func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11899
11900# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11901configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12000printf %s "checking how to hardcode library paths into programs... " >&6; }
12001hardcode_action=
12002if test -n "$hardcode_libdir_flag_spec" ||
12003   test -n "$runpath_var" ||
12004   test yes = "$hardcode_automatic"; then
12005
12006  # We can hardcode non-existent directories.
12007  if test no != "$hardcode_direct" &&
12008     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12009     # have to relink, otherwise we might link with an installed library
12010     # when we should be linking with a yet-to-be-installed one
12011     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12012     test no != "$hardcode_minus_L"; then
12013    # Linking always hardcodes the temporary library directory.
12014    hardcode_action=relink
12015  else
12016    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12017    hardcode_action=immediate
12018  fi
12019else
12020  # We cannot hardcode anything, or else we can only hardcode existing
12021  # directories.
12022  hardcode_action=unsupported
12023fi
12024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12025printf "%s\n" "$hardcode_action" >&6; }
12026
12027if test relink = "$hardcode_action" ||
12028   test yes = "$inherit_rpath"; then
12029  # Fast installation is not supported
12030  enable_fast_install=no
12031elif test yes = "$shlibpath_overrides_runpath" ||
12032     test no = "$enable_shared"; then
12033  # Fast installation is not necessary
12034  enable_fast_install=needless
12035fi
12036
12037
12038
12039
12040
12041
12042  if test yes != "$enable_dlopen"; then
12043  enable_dlopen=unknown
12044  enable_dlopen_self=unknown
12045  enable_dlopen_self_static=unknown
12046else
12047  lt_cv_dlopen=no
12048  lt_cv_dlopen_libs=
12049
12050  case $host_os in
12051  beos*)
12052    lt_cv_dlopen=load_add_on
12053    lt_cv_dlopen_libs=
12054    lt_cv_dlopen_self=yes
12055    ;;
12056
12057  mingw* | pw32* | cegcc*)
12058    lt_cv_dlopen=LoadLibrary
12059    lt_cv_dlopen_libs=
12060    ;;
12061
12062  cygwin*)
12063    lt_cv_dlopen=dlopen
12064    lt_cv_dlopen_libs=
12065    ;;
12066
12067  darwin*)
12068    # if libdl is installed we need to link against it
12069    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12070printf %s "checking for dlopen in -ldl... " >&6; }
12071if test ${ac_cv_lib_dl_dlopen+y}
12072then :
12073  printf %s "(cached) " >&6
12074else $as_nop
12075  ac_check_lib_save_LIBS=$LIBS
12076LIBS="-ldl  $LIBS"
12077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078/* end confdefs.h.  */
12079
12080/* Override any GCC internal prototype to avoid an error.
12081   Use char because int might match the return type of a GCC
12082   builtin and then its argument prototype would still apply.  */
12083char dlopen ();
12084int
12085main (void)
12086{
12087return dlopen ();
12088  ;
12089  return 0;
12090}
12091_ACEOF
12092if ac_fn_c_try_link "$LINENO"
12093then :
12094  ac_cv_lib_dl_dlopen=yes
12095else $as_nop
12096  ac_cv_lib_dl_dlopen=no
12097fi
12098rm -f core conftest.err conftest.$ac_objext conftest.beam \
12099    conftest$ac_exeext conftest.$ac_ext
12100LIBS=$ac_check_lib_save_LIBS
12101fi
12102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12103printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12104if test "x$ac_cv_lib_dl_dlopen" = xyes
12105then :
12106  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12107else $as_nop
12108
12109    lt_cv_dlopen=dyld
12110    lt_cv_dlopen_libs=
12111    lt_cv_dlopen_self=yes
12112
12113fi
12114
12115    ;;
12116
12117  tpf*)
12118    # Don't try to run any link tests for TPF.  We know it's impossible
12119    # because TPF is a cross-compiler, and we know how we open DSOs.
12120    lt_cv_dlopen=dlopen
12121    lt_cv_dlopen_libs=
12122    lt_cv_dlopen_self=no
12123    ;;
12124
12125  *)
12126    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12127if test "x$ac_cv_func_shl_load" = xyes
12128then :
12129  lt_cv_dlopen=shl_load
12130else $as_nop
12131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12132printf %s "checking for shl_load in -ldld... " >&6; }
12133if test ${ac_cv_lib_dld_shl_load+y}
12134then :
12135  printf %s "(cached) " >&6
12136else $as_nop
12137  ac_check_lib_save_LIBS=$LIBS
12138LIBS="-ldld  $LIBS"
12139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h.  */
12141
12142/* Override any GCC internal prototype to avoid an error.
12143   Use char because int might match the return type of a GCC
12144   builtin and then its argument prototype would still apply.  */
12145char shl_load ();
12146int
12147main (void)
12148{
12149return shl_load ();
12150  ;
12151  return 0;
12152}
12153_ACEOF
12154if ac_fn_c_try_link "$LINENO"
12155then :
12156  ac_cv_lib_dld_shl_load=yes
12157else $as_nop
12158  ac_cv_lib_dld_shl_load=no
12159fi
12160rm -f core conftest.err conftest.$ac_objext conftest.beam \
12161    conftest$ac_exeext conftest.$ac_ext
12162LIBS=$ac_check_lib_save_LIBS
12163fi
12164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12165printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12166if test "x$ac_cv_lib_dld_shl_load" = xyes
12167then :
12168  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12169else $as_nop
12170  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12171if test "x$ac_cv_func_dlopen" = xyes
12172then :
12173  lt_cv_dlopen=dlopen
12174else $as_nop
12175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12176printf %s "checking for dlopen in -ldl... " >&6; }
12177if test ${ac_cv_lib_dl_dlopen+y}
12178then :
12179  printf %s "(cached) " >&6
12180else $as_nop
12181  ac_check_lib_save_LIBS=$LIBS
12182LIBS="-ldl  $LIBS"
12183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184/* end confdefs.h.  */
12185
12186/* Override any GCC internal prototype to avoid an error.
12187   Use char because int might match the return type of a GCC
12188   builtin and then its argument prototype would still apply.  */
12189char dlopen ();
12190int
12191main (void)
12192{
12193return dlopen ();
12194  ;
12195  return 0;
12196}
12197_ACEOF
12198if ac_fn_c_try_link "$LINENO"
12199then :
12200  ac_cv_lib_dl_dlopen=yes
12201else $as_nop
12202  ac_cv_lib_dl_dlopen=no
12203fi
12204rm -f core conftest.err conftest.$ac_objext conftest.beam \
12205    conftest$ac_exeext conftest.$ac_ext
12206LIBS=$ac_check_lib_save_LIBS
12207fi
12208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12209printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12210if test "x$ac_cv_lib_dl_dlopen" = xyes
12211then :
12212  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12213else $as_nop
12214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12215printf %s "checking for dlopen in -lsvld... " >&6; }
12216if test ${ac_cv_lib_svld_dlopen+y}
12217then :
12218  printf %s "(cached) " >&6
12219else $as_nop
12220  ac_check_lib_save_LIBS=$LIBS
12221LIBS="-lsvld  $LIBS"
12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h.  */
12224
12225/* Override any GCC internal prototype to avoid an error.
12226   Use char because int might match the return type of a GCC
12227   builtin and then its argument prototype would still apply.  */
12228char dlopen ();
12229int
12230main (void)
12231{
12232return dlopen ();
12233  ;
12234  return 0;
12235}
12236_ACEOF
12237if ac_fn_c_try_link "$LINENO"
12238then :
12239  ac_cv_lib_svld_dlopen=yes
12240else $as_nop
12241  ac_cv_lib_svld_dlopen=no
12242fi
12243rm -f core conftest.err conftest.$ac_objext conftest.beam \
12244    conftest$ac_exeext conftest.$ac_ext
12245LIBS=$ac_check_lib_save_LIBS
12246fi
12247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12248printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12249if test "x$ac_cv_lib_svld_dlopen" = xyes
12250then :
12251  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12252else $as_nop
12253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12254printf %s "checking for dld_link in -ldld... " >&6; }
12255if test ${ac_cv_lib_dld_dld_link+y}
12256then :
12257  printf %s "(cached) " >&6
12258else $as_nop
12259  ac_check_lib_save_LIBS=$LIBS
12260LIBS="-ldld  $LIBS"
12261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262/* end confdefs.h.  */
12263
12264/* Override any GCC internal prototype to avoid an error.
12265   Use char because int might match the return type of a GCC
12266   builtin and then its argument prototype would still apply.  */
12267char dld_link ();
12268int
12269main (void)
12270{
12271return dld_link ();
12272  ;
12273  return 0;
12274}
12275_ACEOF
12276if ac_fn_c_try_link "$LINENO"
12277then :
12278  ac_cv_lib_dld_dld_link=yes
12279else $as_nop
12280  ac_cv_lib_dld_dld_link=no
12281fi
12282rm -f core conftest.err conftest.$ac_objext conftest.beam \
12283    conftest$ac_exeext conftest.$ac_ext
12284LIBS=$ac_check_lib_save_LIBS
12285fi
12286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12287printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12288if test "x$ac_cv_lib_dld_dld_link" = xyes
12289then :
12290  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12291fi
12292
12293
12294fi
12295
12296
12297fi
12298
12299
12300fi
12301
12302
12303fi
12304
12305
12306fi
12307
12308    ;;
12309  esac
12310
12311  if test no = "$lt_cv_dlopen"; then
12312    enable_dlopen=no
12313  else
12314    enable_dlopen=yes
12315  fi
12316
12317  case $lt_cv_dlopen in
12318  dlopen)
12319    save_CPPFLAGS=$CPPFLAGS
12320    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12321
12322    save_LDFLAGS=$LDFLAGS
12323    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12324
12325    save_LIBS=$LIBS
12326    LIBS="$lt_cv_dlopen_libs $LIBS"
12327
12328    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12329printf %s "checking whether a program can dlopen itself... " >&6; }
12330if test ${lt_cv_dlopen_self+y}
12331then :
12332  printf %s "(cached) " >&6
12333else $as_nop
12334  	  if test yes = "$cross_compiling"; then :
12335  lt_cv_dlopen_self=cross
12336else
12337  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12338  lt_status=$lt_dlunknown
12339  cat > conftest.$ac_ext <<_LT_EOF
12340#line $LINENO "configure"
12341#include "confdefs.h"
12342
12343#if HAVE_DLFCN_H
12344#include <dlfcn.h>
12345#endif
12346
12347#include <stdio.h>
12348
12349#ifdef RTLD_GLOBAL
12350#  define LT_DLGLOBAL		RTLD_GLOBAL
12351#else
12352#  ifdef DL_GLOBAL
12353#    define LT_DLGLOBAL		DL_GLOBAL
12354#  else
12355#    define LT_DLGLOBAL		0
12356#  endif
12357#endif
12358
12359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12360   find out it does not work in some platform. */
12361#ifndef LT_DLLAZY_OR_NOW
12362#  ifdef RTLD_LAZY
12363#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12364#  else
12365#    ifdef DL_LAZY
12366#      define LT_DLLAZY_OR_NOW		DL_LAZY
12367#    else
12368#      ifdef RTLD_NOW
12369#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12370#      else
12371#        ifdef DL_NOW
12372#          define LT_DLLAZY_OR_NOW	DL_NOW
12373#        else
12374#          define LT_DLLAZY_OR_NOW	0
12375#        endif
12376#      endif
12377#    endif
12378#  endif
12379#endif
12380
12381/* When -fvisibility=hidden is used, assume the code has been annotated
12382   correspondingly for the symbols needed.  */
12383#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12384int fnord () __attribute__((visibility("default")));
12385#endif
12386
12387int fnord () { return 42; }
12388int main ()
12389{
12390  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12391  int status = $lt_dlunknown;
12392
12393  if (self)
12394    {
12395      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12396      else
12397        {
12398	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12399          else puts (dlerror ());
12400	}
12401      /* dlclose (self); */
12402    }
12403  else
12404    puts (dlerror ());
12405
12406  return status;
12407}
12408_LT_EOF
12409  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12410  (eval $ac_link) 2>&5
12411  ac_status=$?
12412  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12413  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12414    (./conftest; exit; ) >&5 2>/dev/null
12415    lt_status=$?
12416    case x$lt_status in
12417      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12418      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12419      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12420    esac
12421  else :
12422    # compilation failed
12423    lt_cv_dlopen_self=no
12424  fi
12425fi
12426rm -fr conftest*
12427
12428
12429fi
12430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12431printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12432
12433    if test yes = "$lt_cv_dlopen_self"; then
12434      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12435      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12436printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12437if test ${lt_cv_dlopen_self_static+y}
12438then :
12439  printf %s "(cached) " >&6
12440else $as_nop
12441  	  if test yes = "$cross_compiling"; then :
12442  lt_cv_dlopen_self_static=cross
12443else
12444  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12445  lt_status=$lt_dlunknown
12446  cat > conftest.$ac_ext <<_LT_EOF
12447#line $LINENO "configure"
12448#include "confdefs.h"
12449
12450#if HAVE_DLFCN_H
12451#include <dlfcn.h>
12452#endif
12453
12454#include <stdio.h>
12455
12456#ifdef RTLD_GLOBAL
12457#  define LT_DLGLOBAL		RTLD_GLOBAL
12458#else
12459#  ifdef DL_GLOBAL
12460#    define LT_DLGLOBAL		DL_GLOBAL
12461#  else
12462#    define LT_DLGLOBAL		0
12463#  endif
12464#endif
12465
12466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12467   find out it does not work in some platform. */
12468#ifndef LT_DLLAZY_OR_NOW
12469#  ifdef RTLD_LAZY
12470#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12471#  else
12472#    ifdef DL_LAZY
12473#      define LT_DLLAZY_OR_NOW		DL_LAZY
12474#    else
12475#      ifdef RTLD_NOW
12476#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12477#      else
12478#        ifdef DL_NOW
12479#          define LT_DLLAZY_OR_NOW	DL_NOW
12480#        else
12481#          define LT_DLLAZY_OR_NOW	0
12482#        endif
12483#      endif
12484#    endif
12485#  endif
12486#endif
12487
12488/* When -fvisibility=hidden is used, assume the code has been annotated
12489   correspondingly for the symbols needed.  */
12490#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12491int fnord () __attribute__((visibility("default")));
12492#endif
12493
12494int fnord () { return 42; }
12495int main ()
12496{
12497  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12498  int status = $lt_dlunknown;
12499
12500  if (self)
12501    {
12502      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12503      else
12504        {
12505	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12506          else puts (dlerror ());
12507	}
12508      /* dlclose (self); */
12509    }
12510  else
12511    puts (dlerror ());
12512
12513  return status;
12514}
12515_LT_EOF
12516  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12517  (eval $ac_link) 2>&5
12518  ac_status=$?
12519  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12521    (./conftest; exit; ) >&5 2>/dev/null
12522    lt_status=$?
12523    case x$lt_status in
12524      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12525      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12526      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12527    esac
12528  else :
12529    # compilation failed
12530    lt_cv_dlopen_self_static=no
12531  fi
12532fi
12533rm -fr conftest*
12534
12535
12536fi
12537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12538printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12539    fi
12540
12541    CPPFLAGS=$save_CPPFLAGS
12542    LDFLAGS=$save_LDFLAGS
12543    LIBS=$save_LIBS
12544    ;;
12545  esac
12546
12547  case $lt_cv_dlopen_self in
12548  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12549  *) enable_dlopen_self=unknown ;;
12550  esac
12551
12552  case $lt_cv_dlopen_self_static in
12553  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12554  *) enable_dlopen_self_static=unknown ;;
12555  esac
12556fi
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574striplib=
12575old_striplib=
12576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12577printf %s "checking whether stripping libraries is possible... " >&6; }
12578if test -z "$STRIP"; then
12579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580printf "%s\n" "no" >&6; }
12581else
12582  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12583    old_striplib="$STRIP --strip-debug"
12584    striplib="$STRIP --strip-unneeded"
12585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12586printf "%s\n" "yes" >&6; }
12587  else
12588    case $host_os in
12589    darwin*)
12590      # FIXME - insert some real tests, host_os isn't really good enough
12591      striplib="$STRIP -x"
12592      old_striplib="$STRIP -S"
12593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594printf "%s\n" "yes" >&6; }
12595      ;;
12596    freebsd*)
12597      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12598        old_striplib="$STRIP --strip-debug"
12599        striplib="$STRIP --strip-unneeded"
12600        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601printf "%s\n" "yes" >&6; }
12602      else
12603        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604printf "%s\n" "no" >&6; }
12605      fi
12606      ;;
12607    *)
12608      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609printf "%s\n" "no" >&6; }
12610      ;;
12611    esac
12612  fi
12613fi
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626  # Report what library types will actually be built
12627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12628printf %s "checking if libtool supports shared libraries... " >&6; }
12629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12630printf "%s\n" "$can_build_shared" >&6; }
12631
12632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12633printf %s "checking whether to build shared libraries... " >&6; }
12634  test no = "$can_build_shared" && enable_shared=no
12635
12636  # On AIX, shared libraries and static libraries use the same namespace, and
12637  # are all built from PIC.
12638  case $host_os in
12639  aix3*)
12640    test yes = "$enable_shared" && enable_static=no
12641    if test -n "$RANLIB"; then
12642      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12643      postinstall_cmds='$RANLIB $lib'
12644    fi
12645    ;;
12646
12647  aix[4-9]*)
12648    if test ia64 != "$host_cpu"; then
12649      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12650      yes,aix,yes) ;;			# shared object as lib.so file only
12651      yes,svr4,*) ;;			# shared object as lib.so archive member only
12652      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12653      esac
12654    fi
12655    ;;
12656  esac
12657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12658printf "%s\n" "$enable_shared" >&6; }
12659
12660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12661printf %s "checking whether to build static libraries... " >&6; }
12662  # Make sure either enable_shared or enable_static is yes.
12663  test yes = "$enable_shared" || enable_static=yes
12664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12665printf "%s\n" "$enable_static" >&6; }
12666
12667
12668
12669
12670fi
12671ac_ext=c
12672ac_cpp='$CPP $CPPFLAGS'
12673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
12677CC=$lt_save_CC
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693        ac_config_commands="$ac_config_commands libtool"
12694
12695
12696
12697
12698# Only expand once:
12699
12700
12701
12702# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12716printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12717if test ${ac_cv_c_undeclared_builtin_options+y}
12718then :
12719  printf %s "(cached) " >&6
12720else $as_nop
12721  ac_save_CFLAGS=$CFLAGS
12722   ac_cv_c_undeclared_builtin_options='cannot detect'
12723   for ac_arg in '' -fno-builtin; do
12724     CFLAGS="$ac_save_CFLAGS $ac_arg"
12725     # This test program should *not* compile successfully.
12726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727/* end confdefs.h.  */
12728
12729int
12730main (void)
12731{
12732(void) strchr;
12733  ;
12734  return 0;
12735}
12736_ACEOF
12737if ac_fn_c_try_compile "$LINENO"
12738then :
12739
12740else $as_nop
12741  # This test program should compile successfully.
12742        # No library function is consistently available on
12743        # freestanding implementations, so test against a dummy
12744        # declaration.  Include always-available headers on the
12745        # off chance that they somehow elicit warnings.
12746        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747/* end confdefs.h.  */
12748#include <float.h>
12749#include <limits.h>
12750#include <stdarg.h>
12751#include <stddef.h>
12752extern void ac_decl (int, char *);
12753
12754int
12755main (void)
12756{
12757(void) ac_decl (0, (char *) 0);
12758  (void) ac_decl;
12759
12760  ;
12761  return 0;
12762}
12763_ACEOF
12764if ac_fn_c_try_compile "$LINENO"
12765then :
12766  if test x"$ac_arg" = x
12767then :
12768  ac_cv_c_undeclared_builtin_options='none needed'
12769else $as_nop
12770  ac_cv_c_undeclared_builtin_options=$ac_arg
12771fi
12772          break
12773fi
12774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12775fi
12776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12777    done
12778    CFLAGS=$ac_save_CFLAGS
12779
12780fi
12781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12782printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12783  case $ac_cv_c_undeclared_builtin_options in #(
12784  'cannot detect') :
12785    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12786printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12787as_fn_error $? "cannot make $CC report undeclared builtins
12788See \`config.log' for more details" "$LINENO" 5; } ;; #(
12789  'none needed') :
12790    ac_c_undeclared_builtin_options='' ;; #(
12791  *) :
12792    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12793esac
12794
12795
12796
12797
12798
12799ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12800if test "x$ac_cv_have_decl___clang__" = xyes
12801then :
12802  CLANGCC="yes"
12803else $as_nop
12804  CLANGCC="no"
12805fi
12806ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12807if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12808then :
12809  INTELCC="yes"
12810else $as_nop
12811  INTELCC="no"
12812fi
12813ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12814if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12815then :
12816  SUNCC="yes"
12817else $as_nop
12818  SUNCC="no"
12819fi
12820
12821
12822
12823
12824
12825
12826
12827
12828if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12829	if test -n "$ac_tool_prefix"; then
12830  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12831set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833printf %s "checking for $ac_word... " >&6; }
12834if test ${ac_cv_path_PKG_CONFIG+y}
12835then :
12836  printf %s "(cached) " >&6
12837else $as_nop
12838  case $PKG_CONFIG in
12839  [\\/]* | ?:[\\/]*)
12840  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12841  ;;
12842  *)
12843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844for as_dir in $PATH
12845do
12846  IFS=$as_save_IFS
12847  case $as_dir in #(((
12848    '') as_dir=./ ;;
12849    */) ;;
12850    *) as_dir=$as_dir/ ;;
12851  esac
12852    for ac_exec_ext in '' $ac_executable_extensions; do
12853  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12854    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12855    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12856    break 2
12857  fi
12858done
12859  done
12860IFS=$as_save_IFS
12861
12862  ;;
12863esac
12864fi
12865PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12866if test -n "$PKG_CONFIG"; then
12867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12868printf "%s\n" "$PKG_CONFIG" >&6; }
12869else
12870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871printf "%s\n" "no" >&6; }
12872fi
12873
12874
12875fi
12876if test -z "$ac_cv_path_PKG_CONFIG"; then
12877  ac_pt_PKG_CONFIG=$PKG_CONFIG
12878  # Extract the first word of "pkg-config", so it can be a program name with args.
12879set dummy pkg-config; ac_word=$2
12880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881printf %s "checking for $ac_word... " >&6; }
12882if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12883then :
12884  printf %s "(cached) " >&6
12885else $as_nop
12886  case $ac_pt_PKG_CONFIG in
12887  [\\/]* | ?:[\\/]*)
12888  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12889  ;;
12890  *)
12891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892for as_dir in $PATH
12893do
12894  IFS=$as_save_IFS
12895  case $as_dir in #(((
12896    '') as_dir=./ ;;
12897    */) ;;
12898    *) as_dir=$as_dir/ ;;
12899  esac
12900    for ac_exec_ext in '' $ac_executable_extensions; do
12901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12902    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12904    break 2
12905  fi
12906done
12907  done
12908IFS=$as_save_IFS
12909
12910  ;;
12911esac
12912fi
12913ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12914if test -n "$ac_pt_PKG_CONFIG"; then
12915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12916printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12917else
12918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919printf "%s\n" "no" >&6; }
12920fi
12921
12922  if test "x$ac_pt_PKG_CONFIG" = x; then
12923    PKG_CONFIG=""
12924  else
12925    case $cross_compiling:$ac_tool_warned in
12926yes:)
12927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12929ac_tool_warned=yes ;;
12930esac
12931    PKG_CONFIG=$ac_pt_PKG_CONFIG
12932  fi
12933else
12934  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12935fi
12936
12937fi
12938if test -n "$PKG_CONFIG"; then
12939	_pkg_min_version=0.9.0
12940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12941printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12942	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944printf "%s\n" "yes" >&6; }
12945	else
12946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947printf "%s\n" "no" >&6; }
12948		PKG_CONFIG=""
12949	fi
12950fi
12951
12952
12953
12954
12955
12956# Check whether --enable-selective-werror was given.
12957if test ${enable_selective_werror+y}
12958then :
12959  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12960else $as_nop
12961  SELECTIVE_WERROR=yes
12962fi
12963
12964
12965
12966
12967
12968# -v is too short to test reliably with XORG_TESTSET_CFLAG
12969if test "x$SUNCC" = "xyes"; then
12970    BASE_CFLAGS="-v"
12971else
12972    BASE_CFLAGS=""
12973fi
12974
12975# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989xorg_testset_save_CFLAGS="$CFLAGS"
12990
12991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12995if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12996then :
12997  printf %s "(cached) " >&6
12998else $as_nop
12999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001int i;
13002_ACEOF
13003if ac_fn_c_try_compile "$LINENO"
13004then :
13005  xorg_cv_cc_flag_unknown_warning_option=yes
13006else $as_nop
13007  xorg_cv_cc_flag_unknown_warning_option=no
13008fi
13009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13010fi
13011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13014	CFLAGS="$xorg_testset_save_CFLAGS"
13015fi
13016
13017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13020	fi
13021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13024if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13025then :
13026  printf %s "(cached) " >&6
13027else $as_nop
13028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029/* end confdefs.h.  */
13030int i;
13031_ACEOF
13032if ac_fn_c_try_compile "$LINENO"
13033then :
13034  xorg_cv_cc_flag_unused_command_line_argument=yes
13035else $as_nop
13036  xorg_cv_cc_flag_unused_command_line_argument=no
13037fi
13038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13039fi
13040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13042	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13043	CFLAGS="$xorg_testset_save_CFLAGS"
13044fi
13045
13046found="no"
13047
13048	if test $found = "no" ; then
13049		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13050			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13051		fi
13052
13053		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13054			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13055		fi
13056
13057		CFLAGS="$CFLAGS -Wall"
13058
13059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13060printf %s "checking if $CC supports -Wall... " >&6; }
13061		cacheid=xorg_cv_cc_flag__Wall
13062		if eval test \${$cacheid+y}
13063then :
13064  printf %s "(cached) " >&6
13065else $as_nop
13066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067/* end confdefs.h.  */
13068int i;
13069int
13070main (void)
13071{
13072
13073  ;
13074  return 0;
13075}
13076_ACEOF
13077if ac_fn_c_try_link "$LINENO"
13078then :
13079  eval $cacheid=yes
13080else $as_nop
13081  eval $cacheid=no
13082fi
13083rm -f core conftest.err conftest.$ac_objext conftest.beam \
13084    conftest$ac_exeext conftest.$ac_ext
13085fi
13086
13087
13088		CFLAGS="$xorg_testset_save_CFLAGS"
13089
13090		eval supported=\$$cacheid
13091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13092printf "%s\n" "$supported" >&6; }
13093		if test "$supported" = "yes" ; then
13094			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13095			found="yes"
13096		fi
13097	fi
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113xorg_testset_save_CFLAGS="$CFLAGS"
13114
13115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13116	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13117	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13118printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13119if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13120then :
13121  printf %s "(cached) " >&6
13122else $as_nop
13123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124/* end confdefs.h.  */
13125int i;
13126_ACEOF
13127if ac_fn_c_try_compile "$LINENO"
13128then :
13129  xorg_cv_cc_flag_unknown_warning_option=yes
13130else $as_nop
13131  xorg_cv_cc_flag_unknown_warning_option=no
13132fi
13133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13134fi
13135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13136printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13137	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13138	CFLAGS="$xorg_testset_save_CFLAGS"
13139fi
13140
13141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13142	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13143		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13144	fi
13145	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13146	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13147printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13148if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13149then :
13150  printf %s "(cached) " >&6
13151else $as_nop
13152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153/* end confdefs.h.  */
13154int i;
13155_ACEOF
13156if ac_fn_c_try_compile "$LINENO"
13157then :
13158  xorg_cv_cc_flag_unused_command_line_argument=yes
13159else $as_nop
13160  xorg_cv_cc_flag_unused_command_line_argument=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13163fi
13164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13167	CFLAGS="$xorg_testset_save_CFLAGS"
13168fi
13169
13170found="no"
13171
13172	if test $found = "no" ; then
13173		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13175		fi
13176
13177		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13179		fi
13180
13181		CFLAGS="$CFLAGS -Wpointer-arith"
13182
13183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13184printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13185		cacheid=xorg_cv_cc_flag__Wpointer_arith
13186		if eval test \${$cacheid+y}
13187then :
13188  printf %s "(cached) " >&6
13189else $as_nop
13190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191/* end confdefs.h.  */
13192int i;
13193int
13194main (void)
13195{
13196
13197  ;
13198  return 0;
13199}
13200_ACEOF
13201if ac_fn_c_try_link "$LINENO"
13202then :
13203  eval $cacheid=yes
13204else $as_nop
13205  eval $cacheid=no
13206fi
13207rm -f core conftest.err conftest.$ac_objext conftest.beam \
13208    conftest$ac_exeext conftest.$ac_ext
13209fi
13210
13211
13212		CFLAGS="$xorg_testset_save_CFLAGS"
13213
13214		eval supported=\$$cacheid
13215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13216printf "%s\n" "$supported" >&6; }
13217		if test "$supported" = "yes" ; then
13218			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13219			found="yes"
13220		fi
13221	fi
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237xorg_testset_save_CFLAGS="$CFLAGS"
13238
13239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13241	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13242printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13243if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13244then :
13245  printf %s "(cached) " >&6
13246else $as_nop
13247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h.  */
13249int i;
13250_ACEOF
13251if ac_fn_c_try_compile "$LINENO"
13252then :
13253  xorg_cv_cc_flag_unknown_warning_option=yes
13254else $as_nop
13255  xorg_cv_cc_flag_unknown_warning_option=no
13256fi
13257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13258fi
13259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13262	CFLAGS="$xorg_testset_save_CFLAGS"
13263fi
13264
13265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13268	fi
13269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13272if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13273then :
13274  printf %s "(cached) " >&6
13275else $as_nop
13276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277/* end confdefs.h.  */
13278int i;
13279_ACEOF
13280if ac_fn_c_try_compile "$LINENO"
13281then :
13282  xorg_cv_cc_flag_unused_command_line_argument=yes
13283else $as_nop
13284  xorg_cv_cc_flag_unused_command_line_argument=no
13285fi
13286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13287fi
13288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13291	CFLAGS="$xorg_testset_save_CFLAGS"
13292fi
13293
13294found="no"
13295
13296	if test $found = "no" ; then
13297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13299		fi
13300
13301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13303		fi
13304
13305		CFLAGS="$CFLAGS -Wmissing-declarations"
13306
13307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13308printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13309		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13310		if eval test \${$cacheid+y}
13311then :
13312  printf %s "(cached) " >&6
13313else $as_nop
13314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315/* end confdefs.h.  */
13316int i;
13317int
13318main (void)
13319{
13320
13321  ;
13322  return 0;
13323}
13324_ACEOF
13325if ac_fn_c_try_link "$LINENO"
13326then :
13327  eval $cacheid=yes
13328else $as_nop
13329  eval $cacheid=no
13330fi
13331rm -f core conftest.err conftest.$ac_objext conftest.beam \
13332    conftest$ac_exeext conftest.$ac_ext
13333fi
13334
13335
13336		CFLAGS="$xorg_testset_save_CFLAGS"
13337
13338		eval supported=\$$cacheid
13339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13340printf "%s\n" "$supported" >&6; }
13341		if test "$supported" = "yes" ; then
13342			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13343			found="yes"
13344		fi
13345	fi
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361xorg_testset_save_CFLAGS="$CFLAGS"
13362
13363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13367if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13368then :
13369  printf %s "(cached) " >&6
13370else $as_nop
13371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h.  */
13373int i;
13374_ACEOF
13375if ac_fn_c_try_compile "$LINENO"
13376then :
13377  xorg_cv_cc_flag_unknown_warning_option=yes
13378else $as_nop
13379  xorg_cv_cc_flag_unknown_warning_option=no
13380fi
13381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13382fi
13383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13386	CFLAGS="$xorg_testset_save_CFLAGS"
13387fi
13388
13389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13392	fi
13393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13396if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13397then :
13398  printf %s "(cached) " >&6
13399else $as_nop
13400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401/* end confdefs.h.  */
13402int i;
13403_ACEOF
13404if ac_fn_c_try_compile "$LINENO"
13405then :
13406  xorg_cv_cc_flag_unused_command_line_argument=yes
13407else $as_nop
13408  xorg_cv_cc_flag_unused_command_line_argument=no
13409fi
13410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13411fi
13412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13413printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13415	CFLAGS="$xorg_testset_save_CFLAGS"
13416fi
13417
13418found="no"
13419
13420	if test $found = "no" ; then
13421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13423		fi
13424
13425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13427		fi
13428
13429		CFLAGS="$CFLAGS -Wformat=2"
13430
13431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13432printf %s "checking if $CC supports -Wformat=2... " >&6; }
13433		cacheid=xorg_cv_cc_flag__Wformat_2
13434		if eval test \${$cacheid+y}
13435then :
13436  printf %s "(cached) " >&6
13437else $as_nop
13438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439/* end confdefs.h.  */
13440int i;
13441int
13442main (void)
13443{
13444
13445  ;
13446  return 0;
13447}
13448_ACEOF
13449if ac_fn_c_try_link "$LINENO"
13450then :
13451  eval $cacheid=yes
13452else $as_nop
13453  eval $cacheid=no
13454fi
13455rm -f core conftest.err conftest.$ac_objext conftest.beam \
13456    conftest$ac_exeext conftest.$ac_ext
13457fi
13458
13459
13460		CFLAGS="$xorg_testset_save_CFLAGS"
13461
13462		eval supported=\$$cacheid
13463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13464printf "%s\n" "$supported" >&6; }
13465		if test "$supported" = "yes" ; then
13466			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13467			found="yes"
13468		fi
13469	fi
13470
13471	if test $found = "no" ; then
13472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13474		fi
13475
13476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13478		fi
13479
13480		CFLAGS="$CFLAGS -Wformat"
13481
13482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13483printf %s "checking if $CC supports -Wformat... " >&6; }
13484		cacheid=xorg_cv_cc_flag__Wformat
13485		if eval test \${$cacheid+y}
13486then :
13487  printf %s "(cached) " >&6
13488else $as_nop
13489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h.  */
13491int i;
13492int
13493main (void)
13494{
13495
13496  ;
13497  return 0;
13498}
13499_ACEOF
13500if ac_fn_c_try_link "$LINENO"
13501then :
13502  eval $cacheid=yes
13503else $as_nop
13504  eval $cacheid=no
13505fi
13506rm -f core conftest.err conftest.$ac_objext conftest.beam \
13507    conftest$ac_exeext conftest.$ac_ext
13508fi
13509
13510
13511		CFLAGS="$xorg_testset_save_CFLAGS"
13512
13513		eval supported=\$$cacheid
13514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13515printf "%s\n" "$supported" >&6; }
13516		if test "$supported" = "yes" ; then
13517			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13518			found="yes"
13519		fi
13520	fi
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538xorg_testset_save_CFLAGS="$CFLAGS"
13539
13540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13541	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13542	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13543printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13544if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13545then :
13546  printf %s "(cached) " >&6
13547else $as_nop
13548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549/* end confdefs.h.  */
13550int i;
13551_ACEOF
13552if ac_fn_c_try_compile "$LINENO"
13553then :
13554  xorg_cv_cc_flag_unknown_warning_option=yes
13555else $as_nop
13556  xorg_cv_cc_flag_unknown_warning_option=no
13557fi
13558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13559fi
13560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13563	CFLAGS="$xorg_testset_save_CFLAGS"
13564fi
13565
13566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13569	fi
13570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13571	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13573if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13574then :
13575  printf %s "(cached) " >&6
13576else $as_nop
13577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578/* end confdefs.h.  */
13579int i;
13580_ACEOF
13581if ac_fn_c_try_compile "$LINENO"
13582then :
13583  xorg_cv_cc_flag_unused_command_line_argument=yes
13584else $as_nop
13585  xorg_cv_cc_flag_unused_command_line_argument=no
13586fi
13587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13588fi
13589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13590printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13592	CFLAGS="$xorg_testset_save_CFLAGS"
13593fi
13594
13595found="no"
13596
13597	if test $found = "no" ; then
13598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13600		fi
13601
13602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13604		fi
13605
13606		CFLAGS="$CFLAGS -Wstrict-prototypes"
13607
13608		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13609printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13610		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13611		if eval test \${$cacheid+y}
13612then :
13613  printf %s "(cached) " >&6
13614else $as_nop
13615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616/* end confdefs.h.  */
13617int i;
13618int
13619main (void)
13620{
13621
13622  ;
13623  return 0;
13624}
13625_ACEOF
13626if ac_fn_c_try_link "$LINENO"
13627then :
13628  eval $cacheid=yes
13629else $as_nop
13630  eval $cacheid=no
13631fi
13632rm -f core conftest.err conftest.$ac_objext conftest.beam \
13633    conftest$ac_exeext conftest.$ac_ext
13634fi
13635
13636
13637		CFLAGS="$xorg_testset_save_CFLAGS"
13638
13639		eval supported=\$$cacheid
13640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13641printf "%s\n" "$supported" >&6; }
13642		if test "$supported" = "yes" ; then
13643			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13644			found="yes"
13645		fi
13646	fi
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662xorg_testset_save_CFLAGS="$CFLAGS"
13663
13664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13666	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13668if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13669then :
13670  printf %s "(cached) " >&6
13671else $as_nop
13672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673/* end confdefs.h.  */
13674int i;
13675_ACEOF
13676if ac_fn_c_try_compile "$LINENO"
13677then :
13678  xorg_cv_cc_flag_unknown_warning_option=yes
13679else $as_nop
13680  xorg_cv_cc_flag_unknown_warning_option=no
13681fi
13682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13683fi
13684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13687	CFLAGS="$xorg_testset_save_CFLAGS"
13688fi
13689
13690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693	fi
13694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13698then :
13699  printf %s "(cached) " >&6
13700else $as_nop
13701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702/* end confdefs.h.  */
13703int i;
13704_ACEOF
13705if ac_fn_c_try_compile "$LINENO"
13706then :
13707  xorg_cv_cc_flag_unused_command_line_argument=yes
13708else $as_nop
13709  xorg_cv_cc_flag_unused_command_line_argument=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13712fi
13713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13716	CFLAGS="$xorg_testset_save_CFLAGS"
13717fi
13718
13719found="no"
13720
13721	if test $found = "no" ; then
13722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13724		fi
13725
13726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13728		fi
13729
13730		CFLAGS="$CFLAGS -Wmissing-prototypes"
13731
13732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13733printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13734		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13735		if eval test \${$cacheid+y}
13736then :
13737  printf %s "(cached) " >&6
13738else $as_nop
13739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740/* end confdefs.h.  */
13741int i;
13742int
13743main (void)
13744{
13745
13746  ;
13747  return 0;
13748}
13749_ACEOF
13750if ac_fn_c_try_link "$LINENO"
13751then :
13752  eval $cacheid=yes
13753else $as_nop
13754  eval $cacheid=no
13755fi
13756rm -f core conftest.err conftest.$ac_objext conftest.beam \
13757    conftest$ac_exeext conftest.$ac_ext
13758fi
13759
13760
13761		CFLAGS="$xorg_testset_save_CFLAGS"
13762
13763		eval supported=\$$cacheid
13764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13765printf "%s\n" "$supported" >&6; }
13766		if test "$supported" = "yes" ; then
13767			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13768			found="yes"
13769		fi
13770	fi
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786xorg_testset_save_CFLAGS="$CFLAGS"
13787
13788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13792if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13793then :
13794  printf %s "(cached) " >&6
13795else $as_nop
13796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797/* end confdefs.h.  */
13798int i;
13799_ACEOF
13800if ac_fn_c_try_compile "$LINENO"
13801then :
13802  xorg_cv_cc_flag_unknown_warning_option=yes
13803else $as_nop
13804  xorg_cv_cc_flag_unknown_warning_option=no
13805fi
13806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13807fi
13808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13809printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13811	CFLAGS="$xorg_testset_save_CFLAGS"
13812fi
13813
13814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13817	fi
13818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13819	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13820printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13821if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13822then :
13823  printf %s "(cached) " >&6
13824else $as_nop
13825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826/* end confdefs.h.  */
13827int i;
13828_ACEOF
13829if ac_fn_c_try_compile "$LINENO"
13830then :
13831  xorg_cv_cc_flag_unused_command_line_argument=yes
13832else $as_nop
13833  xorg_cv_cc_flag_unused_command_line_argument=no
13834fi
13835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13836fi
13837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13840	CFLAGS="$xorg_testset_save_CFLAGS"
13841fi
13842
13843found="no"
13844
13845	if test $found = "no" ; then
13846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13848		fi
13849
13850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13852		fi
13853
13854		CFLAGS="$CFLAGS -Wnested-externs"
13855
13856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13857printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13858		cacheid=xorg_cv_cc_flag__Wnested_externs
13859		if eval test \${$cacheid+y}
13860then :
13861  printf %s "(cached) " >&6
13862else $as_nop
13863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864/* end confdefs.h.  */
13865int i;
13866int
13867main (void)
13868{
13869
13870  ;
13871  return 0;
13872}
13873_ACEOF
13874if ac_fn_c_try_link "$LINENO"
13875then :
13876  eval $cacheid=yes
13877else $as_nop
13878  eval $cacheid=no
13879fi
13880rm -f core conftest.err conftest.$ac_objext conftest.beam \
13881    conftest$ac_exeext conftest.$ac_ext
13882fi
13883
13884
13885		CFLAGS="$xorg_testset_save_CFLAGS"
13886
13887		eval supported=\$$cacheid
13888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13889printf "%s\n" "$supported" >&6; }
13890		if test "$supported" = "yes" ; then
13891			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13892			found="yes"
13893		fi
13894	fi
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910xorg_testset_save_CFLAGS="$CFLAGS"
13911
13912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13914	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13916if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13917then :
13918  printf %s "(cached) " >&6
13919else $as_nop
13920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921/* end confdefs.h.  */
13922int i;
13923_ACEOF
13924if ac_fn_c_try_compile "$LINENO"
13925then :
13926  xorg_cv_cc_flag_unknown_warning_option=yes
13927else $as_nop
13928  xorg_cv_cc_flag_unknown_warning_option=no
13929fi
13930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13931fi
13932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13935	CFLAGS="$xorg_testset_save_CFLAGS"
13936fi
13937
13938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13941	fi
13942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13945if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13946then :
13947  printf %s "(cached) " >&6
13948else $as_nop
13949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950/* end confdefs.h.  */
13951int i;
13952_ACEOF
13953if ac_fn_c_try_compile "$LINENO"
13954then :
13955  xorg_cv_cc_flag_unused_command_line_argument=yes
13956else $as_nop
13957  xorg_cv_cc_flag_unused_command_line_argument=no
13958fi
13959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13960fi
13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13964	CFLAGS="$xorg_testset_save_CFLAGS"
13965fi
13966
13967found="no"
13968
13969	if test $found = "no" ; then
13970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13972		fi
13973
13974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13976		fi
13977
13978		CFLAGS="$CFLAGS -Wbad-function-cast"
13979
13980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13981printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13982		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13983		if eval test \${$cacheid+y}
13984then :
13985  printf %s "(cached) " >&6
13986else $as_nop
13987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988/* end confdefs.h.  */
13989int i;
13990int
13991main (void)
13992{
13993
13994  ;
13995  return 0;
13996}
13997_ACEOF
13998if ac_fn_c_try_link "$LINENO"
13999then :
14000  eval $cacheid=yes
14001else $as_nop
14002  eval $cacheid=no
14003fi
14004rm -f core conftest.err conftest.$ac_objext conftest.beam \
14005    conftest$ac_exeext conftest.$ac_ext
14006fi
14007
14008
14009		CFLAGS="$xorg_testset_save_CFLAGS"
14010
14011		eval supported=\$$cacheid
14012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14013printf "%s\n" "$supported" >&6; }
14014		if test "$supported" = "yes" ; then
14015			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14016			found="yes"
14017		fi
14018	fi
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034xorg_testset_save_CFLAGS="$CFLAGS"
14035
14036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14039printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14040if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14041then :
14042  printf %s "(cached) " >&6
14043else $as_nop
14044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045/* end confdefs.h.  */
14046int i;
14047_ACEOF
14048if ac_fn_c_try_compile "$LINENO"
14049then :
14050  xorg_cv_cc_flag_unknown_warning_option=yes
14051else $as_nop
14052  xorg_cv_cc_flag_unknown_warning_option=no
14053fi
14054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14055fi
14056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14059	CFLAGS="$xorg_testset_save_CFLAGS"
14060fi
14061
14062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14065	fi
14066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14069if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14070then :
14071  printf %s "(cached) " >&6
14072else $as_nop
14073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074/* end confdefs.h.  */
14075int i;
14076_ACEOF
14077if ac_fn_c_try_compile "$LINENO"
14078then :
14079  xorg_cv_cc_flag_unused_command_line_argument=yes
14080else $as_nop
14081  xorg_cv_cc_flag_unused_command_line_argument=no
14082fi
14083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14084fi
14085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14088	CFLAGS="$xorg_testset_save_CFLAGS"
14089fi
14090
14091found="no"
14092
14093	if test $found = "no" ; then
14094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14096		fi
14097
14098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14100		fi
14101
14102		CFLAGS="$CFLAGS -Wold-style-definition"
14103
14104		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14105printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14106		cacheid=xorg_cv_cc_flag__Wold_style_definition
14107		if eval test \${$cacheid+y}
14108then :
14109  printf %s "(cached) " >&6
14110else $as_nop
14111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112/* end confdefs.h.  */
14113int i;
14114int
14115main (void)
14116{
14117
14118  ;
14119  return 0;
14120}
14121_ACEOF
14122if ac_fn_c_try_link "$LINENO"
14123then :
14124  eval $cacheid=yes
14125else $as_nop
14126  eval $cacheid=no
14127fi
14128rm -f core conftest.err conftest.$ac_objext conftest.beam \
14129    conftest$ac_exeext conftest.$ac_ext
14130fi
14131
14132
14133		CFLAGS="$xorg_testset_save_CFLAGS"
14134
14135		eval supported=\$$cacheid
14136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14137printf "%s\n" "$supported" >&6; }
14138		if test "$supported" = "yes" ; then
14139			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14140			found="yes"
14141		fi
14142	fi
14143
14144	if test $found = "no" ; then
14145		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14147		fi
14148
14149		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14151		fi
14152
14153		CFLAGS="$CFLAGS -fd"
14154
14155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14156printf %s "checking if $CC supports -fd... " >&6; }
14157		cacheid=xorg_cv_cc_flag__fd
14158		if eval test \${$cacheid+y}
14159then :
14160  printf %s "(cached) " >&6
14161else $as_nop
14162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163/* end confdefs.h.  */
14164int i;
14165int
14166main (void)
14167{
14168
14169  ;
14170  return 0;
14171}
14172_ACEOF
14173if ac_fn_c_try_link "$LINENO"
14174then :
14175  eval $cacheid=yes
14176else $as_nop
14177  eval $cacheid=no
14178fi
14179rm -f core conftest.err conftest.$ac_objext conftest.beam \
14180    conftest$ac_exeext conftest.$ac_ext
14181fi
14182
14183
14184		CFLAGS="$xorg_testset_save_CFLAGS"
14185
14186		eval supported=\$$cacheid
14187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14188printf "%s\n" "$supported" >&6; }
14189		if test "$supported" = "yes" ; then
14190			BASE_CFLAGS="$BASE_CFLAGS -fd"
14191			found="yes"
14192		fi
14193	fi
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209xorg_testset_save_CFLAGS="$CFLAGS"
14210
14211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14215if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14216then :
14217  printf %s "(cached) " >&6
14218else $as_nop
14219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220/* end confdefs.h.  */
14221int i;
14222_ACEOF
14223if ac_fn_c_try_compile "$LINENO"
14224then :
14225  xorg_cv_cc_flag_unknown_warning_option=yes
14226else $as_nop
14227  xorg_cv_cc_flag_unknown_warning_option=no
14228fi
14229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14230fi
14231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14234	CFLAGS="$xorg_testset_save_CFLAGS"
14235fi
14236
14237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14240	fi
14241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14244if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14245then :
14246  printf %s "(cached) " >&6
14247else $as_nop
14248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249/* end confdefs.h.  */
14250int i;
14251_ACEOF
14252if ac_fn_c_try_compile "$LINENO"
14253then :
14254  xorg_cv_cc_flag_unused_command_line_argument=yes
14255else $as_nop
14256  xorg_cv_cc_flag_unused_command_line_argument=no
14257fi
14258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14259fi
14260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14262	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14263	CFLAGS="$xorg_testset_save_CFLAGS"
14264fi
14265
14266found="no"
14267
14268	if test $found = "no" ; then
14269		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14270			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14271		fi
14272
14273		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14274			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14275		fi
14276
14277		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14278
14279		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14280printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14281		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14282		if eval test \${$cacheid+y}
14283then :
14284  printf %s "(cached) " >&6
14285else $as_nop
14286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287/* end confdefs.h.  */
14288int i;
14289int
14290main (void)
14291{
14292
14293  ;
14294  return 0;
14295}
14296_ACEOF
14297if ac_fn_c_try_link "$LINENO"
14298then :
14299  eval $cacheid=yes
14300else $as_nop
14301  eval $cacheid=no
14302fi
14303rm -f core conftest.err conftest.$ac_objext conftest.beam \
14304    conftest$ac_exeext conftest.$ac_ext
14305fi
14306
14307
14308		CFLAGS="$xorg_testset_save_CFLAGS"
14309
14310		eval supported=\$$cacheid
14311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14312printf "%s\n" "$supported" >&6; }
14313		if test "$supported" = "yes" ; then
14314			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14315			found="yes"
14316		fi
14317	fi
14318
14319
14320
14321
14322
14323# This chunk adds additional warnings that could catch undesired effects.
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337xorg_testset_save_CFLAGS="$CFLAGS"
14338
14339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14341	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14342printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14343if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14344then :
14345  printf %s "(cached) " >&6
14346else $as_nop
14347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348/* end confdefs.h.  */
14349int i;
14350_ACEOF
14351if ac_fn_c_try_compile "$LINENO"
14352then :
14353  xorg_cv_cc_flag_unknown_warning_option=yes
14354else $as_nop
14355  xorg_cv_cc_flag_unknown_warning_option=no
14356fi
14357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14358fi
14359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14360printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14362	CFLAGS="$xorg_testset_save_CFLAGS"
14363fi
14364
14365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14368	fi
14369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14371printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14372if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14373then :
14374  printf %s "(cached) " >&6
14375else $as_nop
14376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377/* end confdefs.h.  */
14378int i;
14379_ACEOF
14380if ac_fn_c_try_compile "$LINENO"
14381then :
14382  xorg_cv_cc_flag_unused_command_line_argument=yes
14383else $as_nop
14384  xorg_cv_cc_flag_unused_command_line_argument=no
14385fi
14386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14387fi
14388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14389printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14391	CFLAGS="$xorg_testset_save_CFLAGS"
14392fi
14393
14394found="no"
14395
14396	if test $found = "no" ; then
14397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14399		fi
14400
14401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14403		fi
14404
14405		CFLAGS="$CFLAGS -Wunused"
14406
14407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14408printf %s "checking if $CC supports -Wunused... " >&6; }
14409		cacheid=xorg_cv_cc_flag__Wunused
14410		if eval test \${$cacheid+y}
14411then :
14412  printf %s "(cached) " >&6
14413else $as_nop
14414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415/* end confdefs.h.  */
14416int i;
14417int
14418main (void)
14419{
14420
14421  ;
14422  return 0;
14423}
14424_ACEOF
14425if ac_fn_c_try_link "$LINENO"
14426then :
14427  eval $cacheid=yes
14428else $as_nop
14429  eval $cacheid=no
14430fi
14431rm -f core conftest.err conftest.$ac_objext conftest.beam \
14432    conftest$ac_exeext conftest.$ac_ext
14433fi
14434
14435
14436		CFLAGS="$xorg_testset_save_CFLAGS"
14437
14438		eval supported=\$$cacheid
14439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14440printf "%s\n" "$supported" >&6; }
14441		if test "$supported" = "yes" ; then
14442			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14443			found="yes"
14444		fi
14445	fi
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461xorg_testset_save_CFLAGS="$CFLAGS"
14462
14463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14465	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14467if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14468then :
14469  printf %s "(cached) " >&6
14470else $as_nop
14471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472/* end confdefs.h.  */
14473int i;
14474_ACEOF
14475if ac_fn_c_try_compile "$LINENO"
14476then :
14477  xorg_cv_cc_flag_unknown_warning_option=yes
14478else $as_nop
14479  xorg_cv_cc_flag_unknown_warning_option=no
14480fi
14481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14482fi
14483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14484printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14485	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14486	CFLAGS="$xorg_testset_save_CFLAGS"
14487fi
14488
14489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14490	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14491		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14492	fi
14493	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14495printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14496if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14497then :
14498  printf %s "(cached) " >&6
14499else $as_nop
14500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501/* end confdefs.h.  */
14502int i;
14503_ACEOF
14504if ac_fn_c_try_compile "$LINENO"
14505then :
14506  xorg_cv_cc_flag_unused_command_line_argument=yes
14507else $as_nop
14508  xorg_cv_cc_flag_unused_command_line_argument=no
14509fi
14510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14511fi
14512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14513printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14515	CFLAGS="$xorg_testset_save_CFLAGS"
14516fi
14517
14518found="no"
14519
14520	if test $found = "no" ; then
14521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14523		fi
14524
14525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14527		fi
14528
14529		CFLAGS="$CFLAGS -Wuninitialized"
14530
14531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14532printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14533		cacheid=xorg_cv_cc_flag__Wuninitialized
14534		if eval test \${$cacheid+y}
14535then :
14536  printf %s "(cached) " >&6
14537else $as_nop
14538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539/* end confdefs.h.  */
14540int i;
14541int
14542main (void)
14543{
14544
14545  ;
14546  return 0;
14547}
14548_ACEOF
14549if ac_fn_c_try_link "$LINENO"
14550then :
14551  eval $cacheid=yes
14552else $as_nop
14553  eval $cacheid=no
14554fi
14555rm -f core conftest.err conftest.$ac_objext conftest.beam \
14556    conftest$ac_exeext conftest.$ac_ext
14557fi
14558
14559
14560		CFLAGS="$xorg_testset_save_CFLAGS"
14561
14562		eval supported=\$$cacheid
14563		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14564printf "%s\n" "$supported" >&6; }
14565		if test "$supported" = "yes" ; then
14566			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14567			found="yes"
14568		fi
14569	fi
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585xorg_testset_save_CFLAGS="$CFLAGS"
14586
14587if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14588	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14590printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14591if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14592then :
14593  printf %s "(cached) " >&6
14594else $as_nop
14595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596/* end confdefs.h.  */
14597int i;
14598_ACEOF
14599if ac_fn_c_try_compile "$LINENO"
14600then :
14601  xorg_cv_cc_flag_unknown_warning_option=yes
14602else $as_nop
14603  xorg_cv_cc_flag_unknown_warning_option=no
14604fi
14605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14606fi
14607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14610	CFLAGS="$xorg_testset_save_CFLAGS"
14611fi
14612
14613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14616	fi
14617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14621then :
14622  printf %s "(cached) " >&6
14623else $as_nop
14624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625/* end confdefs.h.  */
14626int i;
14627_ACEOF
14628if ac_fn_c_try_compile "$LINENO"
14629then :
14630  xorg_cv_cc_flag_unused_command_line_argument=yes
14631else $as_nop
14632  xorg_cv_cc_flag_unused_command_line_argument=no
14633fi
14634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14635fi
14636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14637printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14638	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14639	CFLAGS="$xorg_testset_save_CFLAGS"
14640fi
14641
14642found="no"
14643
14644	if test $found = "no" ; then
14645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14647		fi
14648
14649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14651		fi
14652
14653		CFLAGS="$CFLAGS -Wshadow"
14654
14655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14656printf %s "checking if $CC supports -Wshadow... " >&6; }
14657		cacheid=xorg_cv_cc_flag__Wshadow
14658		if eval test \${$cacheid+y}
14659then :
14660  printf %s "(cached) " >&6
14661else $as_nop
14662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663/* end confdefs.h.  */
14664int i;
14665int
14666main (void)
14667{
14668
14669  ;
14670  return 0;
14671}
14672_ACEOF
14673if ac_fn_c_try_link "$LINENO"
14674then :
14675  eval $cacheid=yes
14676else $as_nop
14677  eval $cacheid=no
14678fi
14679rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680    conftest$ac_exeext conftest.$ac_ext
14681fi
14682
14683
14684		CFLAGS="$xorg_testset_save_CFLAGS"
14685
14686		eval supported=\$$cacheid
14687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14688printf "%s\n" "$supported" >&6; }
14689		if test "$supported" = "yes" ; then
14690			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14691			found="yes"
14692		fi
14693	fi
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709xorg_testset_save_CFLAGS="$CFLAGS"
14710
14711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14715if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14716then :
14717  printf %s "(cached) " >&6
14718else $as_nop
14719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720/* end confdefs.h.  */
14721int i;
14722_ACEOF
14723if ac_fn_c_try_compile "$LINENO"
14724then :
14725  xorg_cv_cc_flag_unknown_warning_option=yes
14726else $as_nop
14727  xorg_cv_cc_flag_unknown_warning_option=no
14728fi
14729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14730fi
14731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14732printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14734	CFLAGS="$xorg_testset_save_CFLAGS"
14735fi
14736
14737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14740	fi
14741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14743printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14744if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14745then :
14746  printf %s "(cached) " >&6
14747else $as_nop
14748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749/* end confdefs.h.  */
14750int i;
14751_ACEOF
14752if ac_fn_c_try_compile "$LINENO"
14753then :
14754  xorg_cv_cc_flag_unused_command_line_argument=yes
14755else $as_nop
14756  xorg_cv_cc_flag_unused_command_line_argument=no
14757fi
14758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14759fi
14760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14761printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14763	CFLAGS="$xorg_testset_save_CFLAGS"
14764fi
14765
14766found="no"
14767
14768	if test $found = "no" ; then
14769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14771		fi
14772
14773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14775		fi
14776
14777		CFLAGS="$CFLAGS -Wmissing-noreturn"
14778
14779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14780printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14781		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14782		if eval test \${$cacheid+y}
14783then :
14784  printf %s "(cached) " >&6
14785else $as_nop
14786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787/* end confdefs.h.  */
14788int i;
14789int
14790main (void)
14791{
14792
14793  ;
14794  return 0;
14795}
14796_ACEOF
14797if ac_fn_c_try_link "$LINENO"
14798then :
14799  eval $cacheid=yes
14800else $as_nop
14801  eval $cacheid=no
14802fi
14803rm -f core conftest.err conftest.$ac_objext conftest.beam \
14804    conftest$ac_exeext conftest.$ac_ext
14805fi
14806
14807
14808		CFLAGS="$xorg_testset_save_CFLAGS"
14809
14810		eval supported=\$$cacheid
14811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14812printf "%s\n" "$supported" >&6; }
14813		if test "$supported" = "yes" ; then
14814			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14815			found="yes"
14816		fi
14817	fi
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833xorg_testset_save_CFLAGS="$CFLAGS"
14834
14835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14840then :
14841  printf %s "(cached) " >&6
14842else $as_nop
14843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844/* end confdefs.h.  */
14845int i;
14846_ACEOF
14847if ac_fn_c_try_compile "$LINENO"
14848then :
14849  xorg_cv_cc_flag_unknown_warning_option=yes
14850else $as_nop
14851  xorg_cv_cc_flag_unknown_warning_option=no
14852fi
14853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14854fi
14855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14857	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14858	CFLAGS="$xorg_testset_save_CFLAGS"
14859fi
14860
14861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14862	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14863		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14864	fi
14865	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14868if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14869then :
14870  printf %s "(cached) " >&6
14871else $as_nop
14872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873/* end confdefs.h.  */
14874int i;
14875_ACEOF
14876if ac_fn_c_try_compile "$LINENO"
14877then :
14878  xorg_cv_cc_flag_unused_command_line_argument=yes
14879else $as_nop
14880  xorg_cv_cc_flag_unused_command_line_argument=no
14881fi
14882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14883fi
14884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14885printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14886	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14887	CFLAGS="$xorg_testset_save_CFLAGS"
14888fi
14889
14890found="no"
14891
14892	if test $found = "no" ; then
14893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14895		fi
14896
14897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14899		fi
14900
14901		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14902
14903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14904printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14905		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14906		if eval test \${$cacheid+y}
14907then :
14908  printf %s "(cached) " >&6
14909else $as_nop
14910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911/* end confdefs.h.  */
14912int i;
14913int
14914main (void)
14915{
14916
14917  ;
14918  return 0;
14919}
14920_ACEOF
14921if ac_fn_c_try_link "$LINENO"
14922then :
14923  eval $cacheid=yes
14924else $as_nop
14925  eval $cacheid=no
14926fi
14927rm -f core conftest.err conftest.$ac_objext conftest.beam \
14928    conftest$ac_exeext conftest.$ac_ext
14929fi
14930
14931
14932		CFLAGS="$xorg_testset_save_CFLAGS"
14933
14934		eval supported=\$$cacheid
14935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14936printf "%s\n" "$supported" >&6; }
14937		if test "$supported" = "yes" ; then
14938			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14939			found="yes"
14940		fi
14941	fi
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957xorg_testset_save_CFLAGS="$CFLAGS"
14958
14959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14964then :
14965  printf %s "(cached) " >&6
14966else $as_nop
14967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968/* end confdefs.h.  */
14969int i;
14970_ACEOF
14971if ac_fn_c_try_compile "$LINENO"
14972then :
14973  xorg_cv_cc_flag_unknown_warning_option=yes
14974else $as_nop
14975  xorg_cv_cc_flag_unknown_warning_option=no
14976fi
14977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14978fi
14979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14982	CFLAGS="$xorg_testset_save_CFLAGS"
14983fi
14984
14985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14988	fi
14989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14993then :
14994  printf %s "(cached) " >&6
14995else $as_nop
14996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997/* end confdefs.h.  */
14998int i;
14999_ACEOF
15000if ac_fn_c_try_compile "$LINENO"
15001then :
15002  xorg_cv_cc_flag_unused_command_line_argument=yes
15003else $as_nop
15004  xorg_cv_cc_flag_unused_command_line_argument=no
15005fi
15006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15007fi
15008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15011	CFLAGS="$xorg_testset_save_CFLAGS"
15012fi
15013
15014found="no"
15015
15016	if test $found = "no" ; then
15017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15019		fi
15020
15021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15023		fi
15024
15025		CFLAGS="$CFLAGS -Wredundant-decls"
15026
15027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15028printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15029		cacheid=xorg_cv_cc_flag__Wredundant_decls
15030		if eval test \${$cacheid+y}
15031then :
15032  printf %s "(cached) " >&6
15033else $as_nop
15034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h.  */
15036int i;
15037int
15038main (void)
15039{
15040
15041  ;
15042  return 0;
15043}
15044_ACEOF
15045if ac_fn_c_try_link "$LINENO"
15046then :
15047  eval $cacheid=yes
15048else $as_nop
15049  eval $cacheid=no
15050fi
15051rm -f core conftest.err conftest.$ac_objext conftest.beam \
15052    conftest$ac_exeext conftest.$ac_ext
15053fi
15054
15055
15056		CFLAGS="$xorg_testset_save_CFLAGS"
15057
15058		eval supported=\$$cacheid
15059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15060printf "%s\n" "$supported" >&6; }
15061		if test "$supported" = "yes" ; then
15062			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15063			found="yes"
15064		fi
15065	fi
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081xorg_testset_save_CFLAGS="$CFLAGS"
15082
15083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15085	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15086printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15087if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15088then :
15089  printf %s "(cached) " >&6
15090else $as_nop
15091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092/* end confdefs.h.  */
15093int i;
15094_ACEOF
15095if ac_fn_c_try_compile "$LINENO"
15096then :
15097  xorg_cv_cc_flag_unknown_warning_option=yes
15098else $as_nop
15099  xorg_cv_cc_flag_unknown_warning_option=no
15100fi
15101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15102fi
15103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15106	CFLAGS="$xorg_testset_save_CFLAGS"
15107fi
15108
15109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15112	fi
15113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15114	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15116if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15117then :
15118  printf %s "(cached) " >&6
15119else $as_nop
15120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121/* end confdefs.h.  */
15122int i;
15123_ACEOF
15124if ac_fn_c_try_compile "$LINENO"
15125then :
15126  xorg_cv_cc_flag_unused_command_line_argument=yes
15127else $as_nop
15128  xorg_cv_cc_flag_unused_command_line_argument=no
15129fi
15130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15131fi
15132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15133printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15135	CFLAGS="$xorg_testset_save_CFLAGS"
15136fi
15137
15138found="no"
15139
15140	if test $found = "no" ; then
15141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15143		fi
15144
15145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147		fi
15148
15149		CFLAGS="$CFLAGS -Wlogical-op"
15150
15151		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15152printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15153		cacheid=xorg_cv_cc_flag__Wlogical_op
15154		if eval test \${$cacheid+y}
15155then :
15156  printf %s "(cached) " >&6
15157else $as_nop
15158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159/* end confdefs.h.  */
15160int i;
15161int
15162main (void)
15163{
15164
15165  ;
15166  return 0;
15167}
15168_ACEOF
15169if ac_fn_c_try_link "$LINENO"
15170then :
15171  eval $cacheid=yes
15172else $as_nop
15173  eval $cacheid=no
15174fi
15175rm -f core conftest.err conftest.$ac_objext conftest.beam \
15176    conftest$ac_exeext conftest.$ac_ext
15177fi
15178
15179
15180		CFLAGS="$xorg_testset_save_CFLAGS"
15181
15182		eval supported=\$$cacheid
15183		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15184printf "%s\n" "$supported" >&6; }
15185		if test "$supported" = "yes" ; then
15186			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15187			found="yes"
15188		fi
15189	fi
15190
15191
15192
15193# These are currently disabled because they are noisy.  They will be enabled
15194# in the future once the codebase is sufficiently modernized to silence
15195# them.  For now, I don't want them to drown out the other warnings.
15196# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15197# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15198# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15199
15200# Turn some warnings into errors, so we don't accidently get successful builds
15201# when there are problems that should be fixed.
15202
15203if test "x$SELECTIVE_WERROR" = "xyes" ; then
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217xorg_testset_save_CFLAGS="$CFLAGS"
15218
15219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15223if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15224then :
15225  printf %s "(cached) " >&6
15226else $as_nop
15227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228/* end confdefs.h.  */
15229int i;
15230_ACEOF
15231if ac_fn_c_try_compile "$LINENO"
15232then :
15233  xorg_cv_cc_flag_unknown_warning_option=yes
15234else $as_nop
15235  xorg_cv_cc_flag_unknown_warning_option=no
15236fi
15237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15238fi
15239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15242	CFLAGS="$xorg_testset_save_CFLAGS"
15243fi
15244
15245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15248	fi
15249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15252if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15253then :
15254  printf %s "(cached) " >&6
15255else $as_nop
15256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15257/* end confdefs.h.  */
15258int i;
15259_ACEOF
15260if ac_fn_c_try_compile "$LINENO"
15261then :
15262  xorg_cv_cc_flag_unused_command_line_argument=yes
15263else $as_nop
15264  xorg_cv_cc_flag_unused_command_line_argument=no
15265fi
15266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15267fi
15268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15270	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15271	CFLAGS="$xorg_testset_save_CFLAGS"
15272fi
15273
15274found="no"
15275
15276	if test $found = "no" ; then
15277		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15279		fi
15280
15281		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15283		fi
15284
15285		CFLAGS="$CFLAGS -Werror=implicit"
15286
15287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15288printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15289		cacheid=xorg_cv_cc_flag__Werror_implicit
15290		if eval test \${$cacheid+y}
15291then :
15292  printf %s "(cached) " >&6
15293else $as_nop
15294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295/* end confdefs.h.  */
15296int i;
15297int
15298main (void)
15299{
15300
15301  ;
15302  return 0;
15303}
15304_ACEOF
15305if ac_fn_c_try_link "$LINENO"
15306then :
15307  eval $cacheid=yes
15308else $as_nop
15309  eval $cacheid=no
15310fi
15311rm -f core conftest.err conftest.$ac_objext conftest.beam \
15312    conftest$ac_exeext conftest.$ac_ext
15313fi
15314
15315
15316		CFLAGS="$xorg_testset_save_CFLAGS"
15317
15318		eval supported=\$$cacheid
15319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15320printf "%s\n" "$supported" >&6; }
15321		if test "$supported" = "yes" ; then
15322			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15323			found="yes"
15324		fi
15325	fi
15326
15327	if test $found = "no" ; then
15328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15330		fi
15331
15332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15334		fi
15335
15336		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15337
15338		{ 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
15339printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15340		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15341		if eval test \${$cacheid+y}
15342then :
15343  printf %s "(cached) " >&6
15344else $as_nop
15345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346/* end confdefs.h.  */
15347int i;
15348int
15349main (void)
15350{
15351
15352  ;
15353  return 0;
15354}
15355_ACEOF
15356if ac_fn_c_try_link "$LINENO"
15357then :
15358  eval $cacheid=yes
15359else $as_nop
15360  eval $cacheid=no
15361fi
15362rm -f core conftest.err conftest.$ac_objext conftest.beam \
15363    conftest$ac_exeext conftest.$ac_ext
15364fi
15365
15366
15367		CFLAGS="$xorg_testset_save_CFLAGS"
15368
15369		eval supported=\$$cacheid
15370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15371printf "%s\n" "$supported" >&6; }
15372		if test "$supported" = "yes" ; then
15373			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15374			found="yes"
15375		fi
15376	fi
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392xorg_testset_save_CFLAGS="$CFLAGS"
15393
15394if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15395	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15397printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15398if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15399then :
15400  printf %s "(cached) " >&6
15401else $as_nop
15402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403/* end confdefs.h.  */
15404int i;
15405_ACEOF
15406if ac_fn_c_try_compile "$LINENO"
15407then :
15408  xorg_cv_cc_flag_unknown_warning_option=yes
15409else $as_nop
15410  xorg_cv_cc_flag_unknown_warning_option=no
15411fi
15412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15413fi
15414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15417	CFLAGS="$xorg_testset_save_CFLAGS"
15418fi
15419
15420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15423	fi
15424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15427if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15428then :
15429  printf %s "(cached) " >&6
15430else $as_nop
15431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432/* end confdefs.h.  */
15433int i;
15434_ACEOF
15435if ac_fn_c_try_compile "$LINENO"
15436then :
15437  xorg_cv_cc_flag_unused_command_line_argument=yes
15438else $as_nop
15439  xorg_cv_cc_flag_unused_command_line_argument=no
15440fi
15441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15442fi
15443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15446	CFLAGS="$xorg_testset_save_CFLAGS"
15447fi
15448
15449found="no"
15450
15451	if test $found = "no" ; then
15452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15454		fi
15455
15456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15458		fi
15459
15460		CFLAGS="$CFLAGS -Werror=nonnull"
15461
15462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15463printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15464		cacheid=xorg_cv_cc_flag__Werror_nonnull
15465		if eval test \${$cacheid+y}
15466then :
15467  printf %s "(cached) " >&6
15468else $as_nop
15469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470/* end confdefs.h.  */
15471int i;
15472int
15473main (void)
15474{
15475
15476  ;
15477  return 0;
15478}
15479_ACEOF
15480if ac_fn_c_try_link "$LINENO"
15481then :
15482  eval $cacheid=yes
15483else $as_nop
15484  eval $cacheid=no
15485fi
15486rm -f core conftest.err conftest.$ac_objext conftest.beam \
15487    conftest$ac_exeext conftest.$ac_ext
15488fi
15489
15490
15491		CFLAGS="$xorg_testset_save_CFLAGS"
15492
15493		eval supported=\$$cacheid
15494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15495printf "%s\n" "$supported" >&6; }
15496		if test "$supported" = "yes" ; then
15497			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15498			found="yes"
15499		fi
15500	fi
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516xorg_testset_save_CFLAGS="$CFLAGS"
15517
15518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15522if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15523then :
15524  printf %s "(cached) " >&6
15525else $as_nop
15526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527/* end confdefs.h.  */
15528int i;
15529_ACEOF
15530if ac_fn_c_try_compile "$LINENO"
15531then :
15532  xorg_cv_cc_flag_unknown_warning_option=yes
15533else $as_nop
15534  xorg_cv_cc_flag_unknown_warning_option=no
15535fi
15536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15537fi
15538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15539printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15541	CFLAGS="$xorg_testset_save_CFLAGS"
15542fi
15543
15544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15547	fi
15548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15550printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15551if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15552then :
15553  printf %s "(cached) " >&6
15554else $as_nop
15555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556/* end confdefs.h.  */
15557int i;
15558_ACEOF
15559if ac_fn_c_try_compile "$LINENO"
15560then :
15561  xorg_cv_cc_flag_unused_command_line_argument=yes
15562else $as_nop
15563  xorg_cv_cc_flag_unused_command_line_argument=no
15564fi
15565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15566fi
15567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15568printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15570	CFLAGS="$xorg_testset_save_CFLAGS"
15571fi
15572
15573found="no"
15574
15575	if test $found = "no" ; then
15576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15578		fi
15579
15580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15582		fi
15583
15584		CFLAGS="$CFLAGS -Werror=init-self"
15585
15586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15587printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15588		cacheid=xorg_cv_cc_flag__Werror_init_self
15589		if eval test \${$cacheid+y}
15590then :
15591  printf %s "(cached) " >&6
15592else $as_nop
15593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15594/* end confdefs.h.  */
15595int i;
15596int
15597main (void)
15598{
15599
15600  ;
15601  return 0;
15602}
15603_ACEOF
15604if ac_fn_c_try_link "$LINENO"
15605then :
15606  eval $cacheid=yes
15607else $as_nop
15608  eval $cacheid=no
15609fi
15610rm -f core conftest.err conftest.$ac_objext conftest.beam \
15611    conftest$ac_exeext conftest.$ac_ext
15612fi
15613
15614
15615		CFLAGS="$xorg_testset_save_CFLAGS"
15616
15617		eval supported=\$$cacheid
15618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15619printf "%s\n" "$supported" >&6; }
15620		if test "$supported" = "yes" ; then
15621			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15622			found="yes"
15623		fi
15624	fi
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640xorg_testset_save_CFLAGS="$CFLAGS"
15641
15642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15644	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15645printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15646if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15647then :
15648  printf %s "(cached) " >&6
15649else $as_nop
15650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651/* end confdefs.h.  */
15652int i;
15653_ACEOF
15654if ac_fn_c_try_compile "$LINENO"
15655then :
15656  xorg_cv_cc_flag_unknown_warning_option=yes
15657else $as_nop
15658  xorg_cv_cc_flag_unknown_warning_option=no
15659fi
15660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15661fi
15662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15663printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15665	CFLAGS="$xorg_testset_save_CFLAGS"
15666fi
15667
15668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15671	fi
15672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15674printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15675if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15676then :
15677  printf %s "(cached) " >&6
15678else $as_nop
15679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h.  */
15681int i;
15682_ACEOF
15683if ac_fn_c_try_compile "$LINENO"
15684then :
15685  xorg_cv_cc_flag_unused_command_line_argument=yes
15686else $as_nop
15687  xorg_cv_cc_flag_unused_command_line_argument=no
15688fi
15689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15690fi
15691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15694	CFLAGS="$xorg_testset_save_CFLAGS"
15695fi
15696
15697found="no"
15698
15699	if test $found = "no" ; then
15700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15702		fi
15703
15704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15706		fi
15707
15708		CFLAGS="$CFLAGS -Werror=main"
15709
15710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15711printf %s "checking if $CC supports -Werror=main... " >&6; }
15712		cacheid=xorg_cv_cc_flag__Werror_main
15713		if eval test \${$cacheid+y}
15714then :
15715  printf %s "(cached) " >&6
15716else $as_nop
15717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h.  */
15719int i;
15720int
15721main (void)
15722{
15723
15724  ;
15725  return 0;
15726}
15727_ACEOF
15728if ac_fn_c_try_link "$LINENO"
15729then :
15730  eval $cacheid=yes
15731else $as_nop
15732  eval $cacheid=no
15733fi
15734rm -f core conftest.err conftest.$ac_objext conftest.beam \
15735    conftest$ac_exeext conftest.$ac_ext
15736fi
15737
15738
15739		CFLAGS="$xorg_testset_save_CFLAGS"
15740
15741		eval supported=\$$cacheid
15742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15743printf "%s\n" "$supported" >&6; }
15744		if test "$supported" = "yes" ; then
15745			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15746			found="yes"
15747		fi
15748	fi
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764xorg_testset_save_CFLAGS="$CFLAGS"
15765
15766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15768	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15769printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15770if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15771then :
15772  printf %s "(cached) " >&6
15773else $as_nop
15774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h.  */
15776int i;
15777_ACEOF
15778if ac_fn_c_try_compile "$LINENO"
15779then :
15780  xorg_cv_cc_flag_unknown_warning_option=yes
15781else $as_nop
15782  xorg_cv_cc_flag_unknown_warning_option=no
15783fi
15784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15785fi
15786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15787printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15789	CFLAGS="$xorg_testset_save_CFLAGS"
15790fi
15791
15792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795	fi
15796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15798printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15799if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15800then :
15801  printf %s "(cached) " >&6
15802else $as_nop
15803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804/* end confdefs.h.  */
15805int i;
15806_ACEOF
15807if ac_fn_c_try_compile "$LINENO"
15808then :
15809  xorg_cv_cc_flag_unused_command_line_argument=yes
15810else $as_nop
15811  xorg_cv_cc_flag_unused_command_line_argument=no
15812fi
15813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15814fi
15815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15816printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15818	CFLAGS="$xorg_testset_save_CFLAGS"
15819fi
15820
15821found="no"
15822
15823	if test $found = "no" ; then
15824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15826		fi
15827
15828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15830		fi
15831
15832		CFLAGS="$CFLAGS -Werror=missing-braces"
15833
15834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15835printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15836		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15837		if eval test \${$cacheid+y}
15838then :
15839  printf %s "(cached) " >&6
15840else $as_nop
15841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h.  */
15843int i;
15844int
15845main (void)
15846{
15847
15848  ;
15849  return 0;
15850}
15851_ACEOF
15852if ac_fn_c_try_link "$LINENO"
15853then :
15854  eval $cacheid=yes
15855else $as_nop
15856  eval $cacheid=no
15857fi
15858rm -f core conftest.err conftest.$ac_objext conftest.beam \
15859    conftest$ac_exeext conftest.$ac_ext
15860fi
15861
15862
15863		CFLAGS="$xorg_testset_save_CFLAGS"
15864
15865		eval supported=\$$cacheid
15866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15867printf "%s\n" "$supported" >&6; }
15868		if test "$supported" = "yes" ; then
15869			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15870			found="yes"
15871		fi
15872	fi
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888xorg_testset_save_CFLAGS="$CFLAGS"
15889
15890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15892	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15893printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15894if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15895then :
15896  printf %s "(cached) " >&6
15897else $as_nop
15898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h.  */
15900int i;
15901_ACEOF
15902if ac_fn_c_try_compile "$LINENO"
15903then :
15904  xorg_cv_cc_flag_unknown_warning_option=yes
15905else $as_nop
15906  xorg_cv_cc_flag_unknown_warning_option=no
15907fi
15908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15909fi
15910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15911printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15913	CFLAGS="$xorg_testset_save_CFLAGS"
15914fi
15915
15916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15919	fi
15920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15922printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15923if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15924then :
15925  printf %s "(cached) " >&6
15926else $as_nop
15927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928/* end confdefs.h.  */
15929int i;
15930_ACEOF
15931if ac_fn_c_try_compile "$LINENO"
15932then :
15933  xorg_cv_cc_flag_unused_command_line_argument=yes
15934else $as_nop
15935  xorg_cv_cc_flag_unused_command_line_argument=no
15936fi
15937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15938fi
15939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15940printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15942	CFLAGS="$xorg_testset_save_CFLAGS"
15943fi
15944
15945found="no"
15946
15947	if test $found = "no" ; then
15948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15950		fi
15951
15952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15954		fi
15955
15956		CFLAGS="$CFLAGS -Werror=sequence-point"
15957
15958		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15959printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15960		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15961		if eval test \${$cacheid+y}
15962then :
15963  printf %s "(cached) " >&6
15964else $as_nop
15965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966/* end confdefs.h.  */
15967int i;
15968int
15969main (void)
15970{
15971
15972  ;
15973  return 0;
15974}
15975_ACEOF
15976if ac_fn_c_try_link "$LINENO"
15977then :
15978  eval $cacheid=yes
15979else $as_nop
15980  eval $cacheid=no
15981fi
15982rm -f core conftest.err conftest.$ac_objext conftest.beam \
15983    conftest$ac_exeext conftest.$ac_ext
15984fi
15985
15986
15987		CFLAGS="$xorg_testset_save_CFLAGS"
15988
15989		eval supported=\$$cacheid
15990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15991printf "%s\n" "$supported" >&6; }
15992		if test "$supported" = "yes" ; then
15993			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15994			found="yes"
15995		fi
15996	fi
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012xorg_testset_save_CFLAGS="$CFLAGS"
16013
16014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16016	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16018if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16019then :
16020  printf %s "(cached) " >&6
16021else $as_nop
16022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023/* end confdefs.h.  */
16024int i;
16025_ACEOF
16026if ac_fn_c_try_compile "$LINENO"
16027then :
16028  xorg_cv_cc_flag_unknown_warning_option=yes
16029else $as_nop
16030  xorg_cv_cc_flag_unknown_warning_option=no
16031fi
16032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16033fi
16034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16037	CFLAGS="$xorg_testset_save_CFLAGS"
16038fi
16039
16040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16043	fi
16044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16047if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16048then :
16049  printf %s "(cached) " >&6
16050else $as_nop
16051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052/* end confdefs.h.  */
16053int i;
16054_ACEOF
16055if ac_fn_c_try_compile "$LINENO"
16056then :
16057  xorg_cv_cc_flag_unused_command_line_argument=yes
16058else $as_nop
16059  xorg_cv_cc_flag_unused_command_line_argument=no
16060fi
16061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16062fi
16063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16066	CFLAGS="$xorg_testset_save_CFLAGS"
16067fi
16068
16069found="no"
16070
16071	if test $found = "no" ; then
16072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16074		fi
16075
16076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16078		fi
16079
16080		CFLAGS="$CFLAGS -Werror=return-type"
16081
16082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16083printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16084		cacheid=xorg_cv_cc_flag__Werror_return_type
16085		if eval test \${$cacheid+y}
16086then :
16087  printf %s "(cached) " >&6
16088else $as_nop
16089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091int i;
16092int
16093main (void)
16094{
16095
16096  ;
16097  return 0;
16098}
16099_ACEOF
16100if ac_fn_c_try_link "$LINENO"
16101then :
16102  eval $cacheid=yes
16103else $as_nop
16104  eval $cacheid=no
16105fi
16106rm -f core conftest.err conftest.$ac_objext conftest.beam \
16107    conftest$ac_exeext conftest.$ac_ext
16108fi
16109
16110
16111		CFLAGS="$xorg_testset_save_CFLAGS"
16112
16113		eval supported=\$$cacheid
16114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16115printf "%s\n" "$supported" >&6; }
16116		if test "$supported" = "yes" ; then
16117			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16118			found="yes"
16119		fi
16120	fi
16121
16122	if test $found = "no" ; then
16123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16125		fi
16126
16127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16129		fi
16130
16131		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16132
16133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16134printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16135		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16136		if eval test \${$cacheid+y}
16137then :
16138  printf %s "(cached) " >&6
16139else $as_nop
16140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141/* end confdefs.h.  */
16142int i;
16143int
16144main (void)
16145{
16146
16147  ;
16148  return 0;
16149}
16150_ACEOF
16151if ac_fn_c_try_link "$LINENO"
16152then :
16153  eval $cacheid=yes
16154else $as_nop
16155  eval $cacheid=no
16156fi
16157rm -f core conftest.err conftest.$ac_objext conftest.beam \
16158    conftest$ac_exeext conftest.$ac_ext
16159fi
16160
16161
16162		CFLAGS="$xorg_testset_save_CFLAGS"
16163
16164		eval supported=\$$cacheid
16165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16166printf "%s\n" "$supported" >&6; }
16167		if test "$supported" = "yes" ; then
16168			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16169			found="yes"
16170		fi
16171	fi
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187xorg_testset_save_CFLAGS="$CFLAGS"
16188
16189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16194then :
16195  printf %s "(cached) " >&6
16196else $as_nop
16197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198/* end confdefs.h.  */
16199int i;
16200_ACEOF
16201if ac_fn_c_try_compile "$LINENO"
16202then :
16203  xorg_cv_cc_flag_unknown_warning_option=yes
16204else $as_nop
16205  xorg_cv_cc_flag_unknown_warning_option=no
16206fi
16207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16208fi
16209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16212	CFLAGS="$xorg_testset_save_CFLAGS"
16213fi
16214
16215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16218	fi
16219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16223then :
16224  printf %s "(cached) " >&6
16225else $as_nop
16226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227/* end confdefs.h.  */
16228int i;
16229_ACEOF
16230if ac_fn_c_try_compile "$LINENO"
16231then :
16232  xorg_cv_cc_flag_unused_command_line_argument=yes
16233else $as_nop
16234  xorg_cv_cc_flag_unused_command_line_argument=no
16235fi
16236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16237fi
16238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16241	CFLAGS="$xorg_testset_save_CFLAGS"
16242fi
16243
16244found="no"
16245
16246	if test $found = "no" ; then
16247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16249		fi
16250
16251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16253		fi
16254
16255		CFLAGS="$CFLAGS -Werror=trigraphs"
16256
16257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16258printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16259		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16260		if eval test \${$cacheid+y}
16261then :
16262  printf %s "(cached) " >&6
16263else $as_nop
16264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265/* end confdefs.h.  */
16266int i;
16267int
16268main (void)
16269{
16270
16271  ;
16272  return 0;
16273}
16274_ACEOF
16275if ac_fn_c_try_link "$LINENO"
16276then :
16277  eval $cacheid=yes
16278else $as_nop
16279  eval $cacheid=no
16280fi
16281rm -f core conftest.err conftest.$ac_objext conftest.beam \
16282    conftest$ac_exeext conftest.$ac_ext
16283fi
16284
16285
16286		CFLAGS="$xorg_testset_save_CFLAGS"
16287
16288		eval supported=\$$cacheid
16289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16290printf "%s\n" "$supported" >&6; }
16291		if test "$supported" = "yes" ; then
16292			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16293			found="yes"
16294		fi
16295	fi
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311xorg_testset_save_CFLAGS="$CFLAGS"
16312
16313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16318then :
16319  printf %s "(cached) " >&6
16320else $as_nop
16321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322/* end confdefs.h.  */
16323int i;
16324_ACEOF
16325if ac_fn_c_try_compile "$LINENO"
16326then :
16327  xorg_cv_cc_flag_unknown_warning_option=yes
16328else $as_nop
16329  xorg_cv_cc_flag_unknown_warning_option=no
16330fi
16331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16332fi
16333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16336	CFLAGS="$xorg_testset_save_CFLAGS"
16337fi
16338
16339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16342	fi
16343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16347then :
16348  printf %s "(cached) " >&6
16349else $as_nop
16350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351/* end confdefs.h.  */
16352int i;
16353_ACEOF
16354if ac_fn_c_try_compile "$LINENO"
16355then :
16356  xorg_cv_cc_flag_unused_command_line_argument=yes
16357else $as_nop
16358  xorg_cv_cc_flag_unused_command_line_argument=no
16359fi
16360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16361fi
16362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16365	CFLAGS="$xorg_testset_save_CFLAGS"
16366fi
16367
16368found="no"
16369
16370	if test $found = "no" ; then
16371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16373		fi
16374
16375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16377		fi
16378
16379		CFLAGS="$CFLAGS -Werror=array-bounds"
16380
16381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16382printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16383		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16384		if eval test \${$cacheid+y}
16385then :
16386  printf %s "(cached) " >&6
16387else $as_nop
16388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389/* end confdefs.h.  */
16390int i;
16391int
16392main (void)
16393{
16394
16395  ;
16396  return 0;
16397}
16398_ACEOF
16399if ac_fn_c_try_link "$LINENO"
16400then :
16401  eval $cacheid=yes
16402else $as_nop
16403  eval $cacheid=no
16404fi
16405rm -f core conftest.err conftest.$ac_objext conftest.beam \
16406    conftest$ac_exeext conftest.$ac_ext
16407fi
16408
16409
16410		CFLAGS="$xorg_testset_save_CFLAGS"
16411
16412		eval supported=\$$cacheid
16413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16414printf "%s\n" "$supported" >&6; }
16415		if test "$supported" = "yes" ; then
16416			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16417			found="yes"
16418		fi
16419	fi
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435xorg_testset_save_CFLAGS="$CFLAGS"
16436
16437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16442then :
16443  printf %s "(cached) " >&6
16444else $as_nop
16445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446/* end confdefs.h.  */
16447int i;
16448_ACEOF
16449if ac_fn_c_try_compile "$LINENO"
16450then :
16451  xorg_cv_cc_flag_unknown_warning_option=yes
16452else $as_nop
16453  xorg_cv_cc_flag_unknown_warning_option=no
16454fi
16455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16456fi
16457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16460	CFLAGS="$xorg_testset_save_CFLAGS"
16461fi
16462
16463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466	fi
16467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16471then :
16472  printf %s "(cached) " >&6
16473else $as_nop
16474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475/* end confdefs.h.  */
16476int i;
16477_ACEOF
16478if ac_fn_c_try_compile "$LINENO"
16479then :
16480  xorg_cv_cc_flag_unused_command_line_argument=yes
16481else $as_nop
16482  xorg_cv_cc_flag_unused_command_line_argument=no
16483fi
16484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16485fi
16486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16489	CFLAGS="$xorg_testset_save_CFLAGS"
16490fi
16491
16492found="no"
16493
16494	if test $found = "no" ; then
16495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16497		fi
16498
16499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16501		fi
16502
16503		CFLAGS="$CFLAGS -Werror=write-strings"
16504
16505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16506printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16507		cacheid=xorg_cv_cc_flag__Werror_write_strings
16508		if eval test \${$cacheid+y}
16509then :
16510  printf %s "(cached) " >&6
16511else $as_nop
16512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513/* end confdefs.h.  */
16514int i;
16515int
16516main (void)
16517{
16518
16519  ;
16520  return 0;
16521}
16522_ACEOF
16523if ac_fn_c_try_link "$LINENO"
16524then :
16525  eval $cacheid=yes
16526else $as_nop
16527  eval $cacheid=no
16528fi
16529rm -f core conftest.err conftest.$ac_objext conftest.beam \
16530    conftest$ac_exeext conftest.$ac_ext
16531fi
16532
16533
16534		CFLAGS="$xorg_testset_save_CFLAGS"
16535
16536		eval supported=\$$cacheid
16537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16538printf "%s\n" "$supported" >&6; }
16539		if test "$supported" = "yes" ; then
16540			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16541			found="yes"
16542		fi
16543	fi
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559xorg_testset_save_CFLAGS="$CFLAGS"
16560
16561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16565if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16566then :
16567  printf %s "(cached) " >&6
16568else $as_nop
16569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570/* end confdefs.h.  */
16571int i;
16572_ACEOF
16573if ac_fn_c_try_compile "$LINENO"
16574then :
16575  xorg_cv_cc_flag_unknown_warning_option=yes
16576else $as_nop
16577  xorg_cv_cc_flag_unknown_warning_option=no
16578fi
16579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16580fi
16581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16584	CFLAGS="$xorg_testset_save_CFLAGS"
16585fi
16586
16587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16590	fi
16591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16594if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16595then :
16596  printf %s "(cached) " >&6
16597else $as_nop
16598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599/* end confdefs.h.  */
16600int i;
16601_ACEOF
16602if ac_fn_c_try_compile "$LINENO"
16603then :
16604  xorg_cv_cc_flag_unused_command_line_argument=yes
16605else $as_nop
16606  xorg_cv_cc_flag_unused_command_line_argument=no
16607fi
16608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16609fi
16610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16613	CFLAGS="$xorg_testset_save_CFLAGS"
16614fi
16615
16616found="no"
16617
16618	if test $found = "no" ; then
16619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16621		fi
16622
16623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16625		fi
16626
16627		CFLAGS="$CFLAGS -Werror=address"
16628
16629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16630printf %s "checking if $CC supports -Werror=address... " >&6; }
16631		cacheid=xorg_cv_cc_flag__Werror_address
16632		if eval test \${$cacheid+y}
16633then :
16634  printf %s "(cached) " >&6
16635else $as_nop
16636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637/* end confdefs.h.  */
16638int i;
16639int
16640main (void)
16641{
16642
16643  ;
16644  return 0;
16645}
16646_ACEOF
16647if ac_fn_c_try_link "$LINENO"
16648then :
16649  eval $cacheid=yes
16650else $as_nop
16651  eval $cacheid=no
16652fi
16653rm -f core conftest.err conftest.$ac_objext conftest.beam \
16654    conftest$ac_exeext conftest.$ac_ext
16655fi
16656
16657
16658		CFLAGS="$xorg_testset_save_CFLAGS"
16659
16660		eval supported=\$$cacheid
16661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16662printf "%s\n" "$supported" >&6; }
16663		if test "$supported" = "yes" ; then
16664			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16665			found="yes"
16666		fi
16667	fi
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683xorg_testset_save_CFLAGS="$CFLAGS"
16684
16685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16689if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16690then :
16691  printf %s "(cached) " >&6
16692else $as_nop
16693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h.  */
16695int i;
16696_ACEOF
16697if ac_fn_c_try_compile "$LINENO"
16698then :
16699  xorg_cv_cc_flag_unknown_warning_option=yes
16700else $as_nop
16701  xorg_cv_cc_flag_unknown_warning_option=no
16702fi
16703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16704fi
16705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16708	CFLAGS="$xorg_testset_save_CFLAGS"
16709fi
16710
16711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16714	fi
16715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16718if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16719then :
16720  printf %s "(cached) " >&6
16721else $as_nop
16722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723/* end confdefs.h.  */
16724int i;
16725_ACEOF
16726if ac_fn_c_try_compile "$LINENO"
16727then :
16728  xorg_cv_cc_flag_unused_command_line_argument=yes
16729else $as_nop
16730  xorg_cv_cc_flag_unused_command_line_argument=no
16731fi
16732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16733fi
16734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16737	CFLAGS="$xorg_testset_save_CFLAGS"
16738fi
16739
16740found="no"
16741
16742	if test $found = "no" ; then
16743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16745		fi
16746
16747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16749		fi
16750
16751		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16752
16753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16754printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16755		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16756		if eval test \${$cacheid+y}
16757then :
16758  printf %s "(cached) " >&6
16759else $as_nop
16760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761/* end confdefs.h.  */
16762int i;
16763int
16764main (void)
16765{
16766
16767  ;
16768  return 0;
16769}
16770_ACEOF
16771if ac_fn_c_try_link "$LINENO"
16772then :
16773  eval $cacheid=yes
16774else $as_nop
16775  eval $cacheid=no
16776fi
16777rm -f core conftest.err conftest.$ac_objext conftest.beam \
16778    conftest$ac_exeext conftest.$ac_ext
16779fi
16780
16781
16782		CFLAGS="$xorg_testset_save_CFLAGS"
16783
16784		eval supported=\$$cacheid
16785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16786printf "%s\n" "$supported" >&6; }
16787		if test "$supported" = "yes" ; then
16788			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16789			found="yes"
16790		fi
16791	fi
16792
16793	if test $found = "no" ; then
16794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16796		fi
16797
16798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16800		fi
16801
16802		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16803
16804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16805printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16806		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16807		if eval test \${$cacheid+y}
16808then :
16809  printf %s "(cached) " >&6
16810else $as_nop
16811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812/* end confdefs.h.  */
16813int i;
16814int
16815main (void)
16816{
16817
16818  ;
16819  return 0;
16820}
16821_ACEOF
16822if ac_fn_c_try_link "$LINENO"
16823then :
16824  eval $cacheid=yes
16825else $as_nop
16826  eval $cacheid=no
16827fi
16828rm -f core conftest.err conftest.$ac_objext conftest.beam \
16829    conftest$ac_exeext conftest.$ac_ext
16830fi
16831
16832
16833		CFLAGS="$xorg_testset_save_CFLAGS"
16834
16835		eval supported=\$$cacheid
16836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16837printf "%s\n" "$supported" >&6; }
16838		if test "$supported" = "yes" ; then
16839			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16840			found="yes"
16841		fi
16842	fi
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858xorg_testset_save_CFLAGS="$CFLAGS"
16859
16860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16865then :
16866  printf %s "(cached) " >&6
16867else $as_nop
16868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h.  */
16870int i;
16871_ACEOF
16872if ac_fn_c_try_compile "$LINENO"
16873then :
16874  xorg_cv_cc_flag_unknown_warning_option=yes
16875else $as_nop
16876  xorg_cv_cc_flag_unknown_warning_option=no
16877fi
16878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16879fi
16880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16883	CFLAGS="$xorg_testset_save_CFLAGS"
16884fi
16885
16886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16889	fi
16890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16894then :
16895  printf %s "(cached) " >&6
16896else $as_nop
16897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898/* end confdefs.h.  */
16899int i;
16900_ACEOF
16901if ac_fn_c_try_compile "$LINENO"
16902then :
16903  xorg_cv_cc_flag_unused_command_line_argument=yes
16904else $as_nop
16905  xorg_cv_cc_flag_unused_command_line_argument=no
16906fi
16907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16908fi
16909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16912	CFLAGS="$xorg_testset_save_CFLAGS"
16913fi
16914
16915found="no"
16916
16917	if test $found = "no" ; then
16918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16920		fi
16921
16922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16924		fi
16925
16926		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16927
16928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16929printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16930		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16931		if eval test \${$cacheid+y}
16932then :
16933  printf %s "(cached) " >&6
16934else $as_nop
16935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16936/* end confdefs.h.  */
16937int i;
16938int
16939main (void)
16940{
16941
16942  ;
16943  return 0;
16944}
16945_ACEOF
16946if ac_fn_c_try_link "$LINENO"
16947then :
16948  eval $cacheid=yes
16949else $as_nop
16950  eval $cacheid=no
16951fi
16952rm -f core conftest.err conftest.$ac_objext conftest.beam \
16953    conftest$ac_exeext conftest.$ac_ext
16954fi
16955
16956
16957		CFLAGS="$xorg_testset_save_CFLAGS"
16958
16959		eval supported=\$$cacheid
16960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16961printf "%s\n" "$supported" >&6; }
16962		if test "$supported" = "yes" ; then
16963			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16964			found="yes"
16965		fi
16966	fi
16967
16968 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16969else
16970{ 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
16971printf "%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;}
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985xorg_testset_save_CFLAGS="$CFLAGS"
16986
16987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16991if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16992then :
16993  printf %s "(cached) " >&6
16994else $as_nop
16995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16996/* end confdefs.h.  */
16997int i;
16998_ACEOF
16999if ac_fn_c_try_compile "$LINENO"
17000then :
17001  xorg_cv_cc_flag_unknown_warning_option=yes
17002else $as_nop
17003  xorg_cv_cc_flag_unknown_warning_option=no
17004fi
17005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17006fi
17007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17010	CFLAGS="$xorg_testset_save_CFLAGS"
17011fi
17012
17013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17016	fi
17017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17020if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17021then :
17022  printf %s "(cached) " >&6
17023else $as_nop
17024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025/* end confdefs.h.  */
17026int i;
17027_ACEOF
17028if ac_fn_c_try_compile "$LINENO"
17029then :
17030  xorg_cv_cc_flag_unused_command_line_argument=yes
17031else $as_nop
17032  xorg_cv_cc_flag_unused_command_line_argument=no
17033fi
17034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17035fi
17036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17038	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17039	CFLAGS="$xorg_testset_save_CFLAGS"
17040fi
17041
17042found="no"
17043
17044	if test $found = "no" ; then
17045		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17046			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17047		fi
17048
17049		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17050			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17051		fi
17052
17053		CFLAGS="$CFLAGS -Wimplicit"
17054
17055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17056printf %s "checking if $CC supports -Wimplicit... " >&6; }
17057		cacheid=xorg_cv_cc_flag__Wimplicit
17058		if eval test \${$cacheid+y}
17059then :
17060  printf %s "(cached) " >&6
17061else $as_nop
17062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063/* end confdefs.h.  */
17064int i;
17065int
17066main (void)
17067{
17068
17069  ;
17070  return 0;
17071}
17072_ACEOF
17073if ac_fn_c_try_link "$LINENO"
17074then :
17075  eval $cacheid=yes
17076else $as_nop
17077  eval $cacheid=no
17078fi
17079rm -f core conftest.err conftest.$ac_objext conftest.beam \
17080    conftest$ac_exeext conftest.$ac_ext
17081fi
17082
17083
17084		CFLAGS="$xorg_testset_save_CFLAGS"
17085
17086		eval supported=\$$cacheid
17087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17088printf "%s\n" "$supported" >&6; }
17089		if test "$supported" = "yes" ; then
17090			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17091			found="yes"
17092		fi
17093	fi
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109xorg_testset_save_CFLAGS="$CFLAGS"
17110
17111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17115if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17116then :
17117  printf %s "(cached) " >&6
17118else $as_nop
17119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120/* end confdefs.h.  */
17121int i;
17122_ACEOF
17123if ac_fn_c_try_compile "$LINENO"
17124then :
17125  xorg_cv_cc_flag_unknown_warning_option=yes
17126else $as_nop
17127  xorg_cv_cc_flag_unknown_warning_option=no
17128fi
17129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17130fi
17131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17133	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17134	CFLAGS="$xorg_testset_save_CFLAGS"
17135fi
17136
17137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17138	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17139		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17140	fi
17141	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17144if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17145then :
17146  printf %s "(cached) " >&6
17147else $as_nop
17148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149/* end confdefs.h.  */
17150int i;
17151_ACEOF
17152if ac_fn_c_try_compile "$LINENO"
17153then :
17154  xorg_cv_cc_flag_unused_command_line_argument=yes
17155else $as_nop
17156  xorg_cv_cc_flag_unused_command_line_argument=no
17157fi
17158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17159fi
17160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17162	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17163	CFLAGS="$xorg_testset_save_CFLAGS"
17164fi
17165
17166found="no"
17167
17168	if test $found = "no" ; then
17169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17171		fi
17172
17173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17175		fi
17176
17177		CFLAGS="$CFLAGS -Wnonnull"
17178
17179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17180printf %s "checking if $CC supports -Wnonnull... " >&6; }
17181		cacheid=xorg_cv_cc_flag__Wnonnull
17182		if eval test \${$cacheid+y}
17183then :
17184  printf %s "(cached) " >&6
17185else $as_nop
17186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187/* end confdefs.h.  */
17188int i;
17189int
17190main (void)
17191{
17192
17193  ;
17194  return 0;
17195}
17196_ACEOF
17197if ac_fn_c_try_link "$LINENO"
17198then :
17199  eval $cacheid=yes
17200else $as_nop
17201  eval $cacheid=no
17202fi
17203rm -f core conftest.err conftest.$ac_objext conftest.beam \
17204    conftest$ac_exeext conftest.$ac_ext
17205fi
17206
17207
17208		CFLAGS="$xorg_testset_save_CFLAGS"
17209
17210		eval supported=\$$cacheid
17211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17212printf "%s\n" "$supported" >&6; }
17213		if test "$supported" = "yes" ; then
17214			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17215			found="yes"
17216		fi
17217	fi
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233xorg_testset_save_CFLAGS="$CFLAGS"
17234
17235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17240then :
17241  printf %s "(cached) " >&6
17242else $as_nop
17243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244/* end confdefs.h.  */
17245int i;
17246_ACEOF
17247if ac_fn_c_try_compile "$LINENO"
17248then :
17249  xorg_cv_cc_flag_unknown_warning_option=yes
17250else $as_nop
17251  xorg_cv_cc_flag_unknown_warning_option=no
17252fi
17253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17254fi
17255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17258	CFLAGS="$xorg_testset_save_CFLAGS"
17259fi
17260
17261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17264	fi
17265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17269then :
17270  printf %s "(cached) " >&6
17271else $as_nop
17272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273/* end confdefs.h.  */
17274int i;
17275_ACEOF
17276if ac_fn_c_try_compile "$LINENO"
17277then :
17278  xorg_cv_cc_flag_unused_command_line_argument=yes
17279else $as_nop
17280  xorg_cv_cc_flag_unused_command_line_argument=no
17281fi
17282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17283fi
17284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17287	CFLAGS="$xorg_testset_save_CFLAGS"
17288fi
17289
17290found="no"
17291
17292	if test $found = "no" ; then
17293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17295		fi
17296
17297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17299		fi
17300
17301		CFLAGS="$CFLAGS -Winit-self"
17302
17303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17304printf %s "checking if $CC supports -Winit-self... " >&6; }
17305		cacheid=xorg_cv_cc_flag__Winit_self
17306		if eval test \${$cacheid+y}
17307then :
17308  printf %s "(cached) " >&6
17309else $as_nop
17310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h.  */
17312int i;
17313int
17314main (void)
17315{
17316
17317  ;
17318  return 0;
17319}
17320_ACEOF
17321if ac_fn_c_try_link "$LINENO"
17322then :
17323  eval $cacheid=yes
17324else $as_nop
17325  eval $cacheid=no
17326fi
17327rm -f core conftest.err conftest.$ac_objext conftest.beam \
17328    conftest$ac_exeext conftest.$ac_ext
17329fi
17330
17331
17332		CFLAGS="$xorg_testset_save_CFLAGS"
17333
17334		eval supported=\$$cacheid
17335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17336printf "%s\n" "$supported" >&6; }
17337		if test "$supported" = "yes" ; then
17338			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17339			found="yes"
17340		fi
17341	fi
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357xorg_testset_save_CFLAGS="$CFLAGS"
17358
17359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17363if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17364then :
17365  printf %s "(cached) " >&6
17366else $as_nop
17367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17368/* end confdefs.h.  */
17369int i;
17370_ACEOF
17371if ac_fn_c_try_compile "$LINENO"
17372then :
17373  xorg_cv_cc_flag_unknown_warning_option=yes
17374else $as_nop
17375  xorg_cv_cc_flag_unknown_warning_option=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17378fi
17379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17382	CFLAGS="$xorg_testset_save_CFLAGS"
17383fi
17384
17385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17388	fi
17389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17393then :
17394  printf %s "(cached) " >&6
17395else $as_nop
17396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h.  */
17398int i;
17399_ACEOF
17400if ac_fn_c_try_compile "$LINENO"
17401then :
17402  xorg_cv_cc_flag_unused_command_line_argument=yes
17403else $as_nop
17404  xorg_cv_cc_flag_unused_command_line_argument=no
17405fi
17406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17407fi
17408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17411	CFLAGS="$xorg_testset_save_CFLAGS"
17412fi
17413
17414found="no"
17415
17416	if test $found = "no" ; then
17417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17419		fi
17420
17421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17423		fi
17424
17425		CFLAGS="$CFLAGS -Wmain"
17426
17427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17428printf %s "checking if $CC supports -Wmain... " >&6; }
17429		cacheid=xorg_cv_cc_flag__Wmain
17430		if eval test \${$cacheid+y}
17431then :
17432  printf %s "(cached) " >&6
17433else $as_nop
17434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435/* end confdefs.h.  */
17436int i;
17437int
17438main (void)
17439{
17440
17441  ;
17442  return 0;
17443}
17444_ACEOF
17445if ac_fn_c_try_link "$LINENO"
17446then :
17447  eval $cacheid=yes
17448else $as_nop
17449  eval $cacheid=no
17450fi
17451rm -f core conftest.err conftest.$ac_objext conftest.beam \
17452    conftest$ac_exeext conftest.$ac_ext
17453fi
17454
17455
17456		CFLAGS="$xorg_testset_save_CFLAGS"
17457
17458		eval supported=\$$cacheid
17459		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17460printf "%s\n" "$supported" >&6; }
17461		if test "$supported" = "yes" ; then
17462			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17463			found="yes"
17464		fi
17465	fi
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481xorg_testset_save_CFLAGS="$CFLAGS"
17482
17483if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17484	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17486printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17487if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17488then :
17489  printf %s "(cached) " >&6
17490else $as_nop
17491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h.  */
17493int i;
17494_ACEOF
17495if ac_fn_c_try_compile "$LINENO"
17496then :
17497  xorg_cv_cc_flag_unknown_warning_option=yes
17498else $as_nop
17499  xorg_cv_cc_flag_unknown_warning_option=no
17500fi
17501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17502fi
17503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17504printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17505	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17506	CFLAGS="$xorg_testset_save_CFLAGS"
17507fi
17508
17509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17510	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17511		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17512	fi
17513	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17514	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17515printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17516if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17517then :
17518  printf %s "(cached) " >&6
17519else $as_nop
17520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521/* end confdefs.h.  */
17522int i;
17523_ACEOF
17524if ac_fn_c_try_compile "$LINENO"
17525then :
17526  xorg_cv_cc_flag_unused_command_line_argument=yes
17527else $as_nop
17528  xorg_cv_cc_flag_unused_command_line_argument=no
17529fi
17530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17531fi
17532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17535	CFLAGS="$xorg_testset_save_CFLAGS"
17536fi
17537
17538found="no"
17539
17540	if test $found = "no" ; then
17541		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17543		fi
17544
17545		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17547		fi
17548
17549		CFLAGS="$CFLAGS -Wmissing-braces"
17550
17551		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17552printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17553		cacheid=xorg_cv_cc_flag__Wmissing_braces
17554		if eval test \${$cacheid+y}
17555then :
17556  printf %s "(cached) " >&6
17557else $as_nop
17558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559/* end confdefs.h.  */
17560int i;
17561int
17562main (void)
17563{
17564
17565  ;
17566  return 0;
17567}
17568_ACEOF
17569if ac_fn_c_try_link "$LINENO"
17570then :
17571  eval $cacheid=yes
17572else $as_nop
17573  eval $cacheid=no
17574fi
17575rm -f core conftest.err conftest.$ac_objext conftest.beam \
17576    conftest$ac_exeext conftest.$ac_ext
17577fi
17578
17579
17580		CFLAGS="$xorg_testset_save_CFLAGS"
17581
17582		eval supported=\$$cacheid
17583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17584printf "%s\n" "$supported" >&6; }
17585		if test "$supported" = "yes" ; then
17586			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17587			found="yes"
17588		fi
17589	fi
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605xorg_testset_save_CFLAGS="$CFLAGS"
17606
17607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17611if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17612then :
17613  printf %s "(cached) " >&6
17614else $as_nop
17615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616/* end confdefs.h.  */
17617int i;
17618_ACEOF
17619if ac_fn_c_try_compile "$LINENO"
17620then :
17621  xorg_cv_cc_flag_unknown_warning_option=yes
17622else $as_nop
17623  xorg_cv_cc_flag_unknown_warning_option=no
17624fi
17625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17626fi
17627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17630	CFLAGS="$xorg_testset_save_CFLAGS"
17631fi
17632
17633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17636	fi
17637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17640if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17641then :
17642  printf %s "(cached) " >&6
17643else $as_nop
17644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645/* end confdefs.h.  */
17646int i;
17647_ACEOF
17648if ac_fn_c_try_compile "$LINENO"
17649then :
17650  xorg_cv_cc_flag_unused_command_line_argument=yes
17651else $as_nop
17652  xorg_cv_cc_flag_unused_command_line_argument=no
17653fi
17654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17655fi
17656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17659	CFLAGS="$xorg_testset_save_CFLAGS"
17660fi
17661
17662found="no"
17663
17664	if test $found = "no" ; then
17665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17667		fi
17668
17669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17671		fi
17672
17673		CFLAGS="$CFLAGS -Wsequence-point"
17674
17675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17676printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17677		cacheid=xorg_cv_cc_flag__Wsequence_point
17678		if eval test \${$cacheid+y}
17679then :
17680  printf %s "(cached) " >&6
17681else $as_nop
17682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683/* end confdefs.h.  */
17684int i;
17685int
17686main (void)
17687{
17688
17689  ;
17690  return 0;
17691}
17692_ACEOF
17693if ac_fn_c_try_link "$LINENO"
17694then :
17695  eval $cacheid=yes
17696else $as_nop
17697  eval $cacheid=no
17698fi
17699rm -f core conftest.err conftest.$ac_objext conftest.beam \
17700    conftest$ac_exeext conftest.$ac_ext
17701fi
17702
17703
17704		CFLAGS="$xorg_testset_save_CFLAGS"
17705
17706		eval supported=\$$cacheid
17707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17708printf "%s\n" "$supported" >&6; }
17709		if test "$supported" = "yes" ; then
17710			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17711			found="yes"
17712		fi
17713	fi
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729xorg_testset_save_CFLAGS="$CFLAGS"
17730
17731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17735if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17736then :
17737  printf %s "(cached) " >&6
17738else $as_nop
17739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740/* end confdefs.h.  */
17741int i;
17742_ACEOF
17743if ac_fn_c_try_compile "$LINENO"
17744then :
17745  xorg_cv_cc_flag_unknown_warning_option=yes
17746else $as_nop
17747  xorg_cv_cc_flag_unknown_warning_option=no
17748fi
17749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17750fi
17751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17752printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17754	CFLAGS="$xorg_testset_save_CFLAGS"
17755fi
17756
17757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17760	fi
17761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17763printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17764if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17765then :
17766  printf %s "(cached) " >&6
17767else $as_nop
17768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769/* end confdefs.h.  */
17770int i;
17771_ACEOF
17772if ac_fn_c_try_compile "$LINENO"
17773then :
17774  xorg_cv_cc_flag_unused_command_line_argument=yes
17775else $as_nop
17776  xorg_cv_cc_flag_unused_command_line_argument=no
17777fi
17778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17779fi
17780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17783	CFLAGS="$xorg_testset_save_CFLAGS"
17784fi
17785
17786found="no"
17787
17788	if test $found = "no" ; then
17789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17791		fi
17792
17793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17795		fi
17796
17797		CFLAGS="$CFLAGS -Wreturn-type"
17798
17799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17800printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17801		cacheid=xorg_cv_cc_flag__Wreturn_type
17802		if eval test \${$cacheid+y}
17803then :
17804  printf %s "(cached) " >&6
17805else $as_nop
17806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807/* end confdefs.h.  */
17808int i;
17809int
17810main (void)
17811{
17812
17813  ;
17814  return 0;
17815}
17816_ACEOF
17817if ac_fn_c_try_link "$LINENO"
17818then :
17819  eval $cacheid=yes
17820else $as_nop
17821  eval $cacheid=no
17822fi
17823rm -f core conftest.err conftest.$ac_objext conftest.beam \
17824    conftest$ac_exeext conftest.$ac_ext
17825fi
17826
17827
17828		CFLAGS="$xorg_testset_save_CFLAGS"
17829
17830		eval supported=\$$cacheid
17831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17832printf "%s\n" "$supported" >&6; }
17833		if test "$supported" = "yes" ; then
17834			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17835			found="yes"
17836		fi
17837	fi
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853xorg_testset_save_CFLAGS="$CFLAGS"
17854
17855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17858printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17859if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17860then :
17861  printf %s "(cached) " >&6
17862else $as_nop
17863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864/* end confdefs.h.  */
17865int i;
17866_ACEOF
17867if ac_fn_c_try_compile "$LINENO"
17868then :
17869  xorg_cv_cc_flag_unknown_warning_option=yes
17870else $as_nop
17871  xorg_cv_cc_flag_unknown_warning_option=no
17872fi
17873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17874fi
17875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17878	CFLAGS="$xorg_testset_save_CFLAGS"
17879fi
17880
17881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17884	fi
17885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17888if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17889then :
17890  printf %s "(cached) " >&6
17891else $as_nop
17892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893/* end confdefs.h.  */
17894int i;
17895_ACEOF
17896if ac_fn_c_try_compile "$LINENO"
17897then :
17898  xorg_cv_cc_flag_unused_command_line_argument=yes
17899else $as_nop
17900  xorg_cv_cc_flag_unused_command_line_argument=no
17901fi
17902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17903fi
17904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17905printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17906	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17907	CFLAGS="$xorg_testset_save_CFLAGS"
17908fi
17909
17910found="no"
17911
17912	if test $found = "no" ; then
17913		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17914			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17915		fi
17916
17917		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17918			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17919		fi
17920
17921		CFLAGS="$CFLAGS -Wtrigraphs"
17922
17923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17924printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17925		cacheid=xorg_cv_cc_flag__Wtrigraphs
17926		if eval test \${$cacheid+y}
17927then :
17928  printf %s "(cached) " >&6
17929else $as_nop
17930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931/* end confdefs.h.  */
17932int i;
17933int
17934main (void)
17935{
17936
17937  ;
17938  return 0;
17939}
17940_ACEOF
17941if ac_fn_c_try_link "$LINENO"
17942then :
17943  eval $cacheid=yes
17944else $as_nop
17945  eval $cacheid=no
17946fi
17947rm -f core conftest.err conftest.$ac_objext conftest.beam \
17948    conftest$ac_exeext conftest.$ac_ext
17949fi
17950
17951
17952		CFLAGS="$xorg_testset_save_CFLAGS"
17953
17954		eval supported=\$$cacheid
17955		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17956printf "%s\n" "$supported" >&6; }
17957		if test "$supported" = "yes" ; then
17958			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17959			found="yes"
17960		fi
17961	fi
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977xorg_testset_save_CFLAGS="$CFLAGS"
17978
17979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17982printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17983if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17984then :
17985  printf %s "(cached) " >&6
17986else $as_nop
17987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988/* end confdefs.h.  */
17989int i;
17990_ACEOF
17991if ac_fn_c_try_compile "$LINENO"
17992then :
17993  xorg_cv_cc_flag_unknown_warning_option=yes
17994else $as_nop
17995  xorg_cv_cc_flag_unknown_warning_option=no
17996fi
17997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17998fi
17999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18000printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18001	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18002	CFLAGS="$xorg_testset_save_CFLAGS"
18003fi
18004
18005if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18006	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18007		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18008	fi
18009	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18011printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18012if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18013then :
18014  printf %s "(cached) " >&6
18015else $as_nop
18016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017/* end confdefs.h.  */
18018int i;
18019_ACEOF
18020if ac_fn_c_try_compile "$LINENO"
18021then :
18022  xorg_cv_cc_flag_unused_command_line_argument=yes
18023else $as_nop
18024  xorg_cv_cc_flag_unused_command_line_argument=no
18025fi
18026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18027fi
18028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18031	CFLAGS="$xorg_testset_save_CFLAGS"
18032fi
18033
18034found="no"
18035
18036	if test $found = "no" ; then
18037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18039		fi
18040
18041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18043		fi
18044
18045		CFLAGS="$CFLAGS -Warray-bounds"
18046
18047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18048printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18049		cacheid=xorg_cv_cc_flag__Warray_bounds
18050		if eval test \${$cacheid+y}
18051then :
18052  printf %s "(cached) " >&6
18053else $as_nop
18054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055/* end confdefs.h.  */
18056int i;
18057int
18058main (void)
18059{
18060
18061  ;
18062  return 0;
18063}
18064_ACEOF
18065if ac_fn_c_try_link "$LINENO"
18066then :
18067  eval $cacheid=yes
18068else $as_nop
18069  eval $cacheid=no
18070fi
18071rm -f core conftest.err conftest.$ac_objext conftest.beam \
18072    conftest$ac_exeext conftest.$ac_ext
18073fi
18074
18075
18076		CFLAGS="$xorg_testset_save_CFLAGS"
18077
18078		eval supported=\$$cacheid
18079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18080printf "%s\n" "$supported" >&6; }
18081		if test "$supported" = "yes" ; then
18082			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18083			found="yes"
18084		fi
18085	fi
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101xorg_testset_save_CFLAGS="$CFLAGS"
18102
18103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18106printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18107if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18108then :
18109  printf %s "(cached) " >&6
18110else $as_nop
18111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112/* end confdefs.h.  */
18113int i;
18114_ACEOF
18115if ac_fn_c_try_compile "$LINENO"
18116then :
18117  xorg_cv_cc_flag_unknown_warning_option=yes
18118else $as_nop
18119  xorg_cv_cc_flag_unknown_warning_option=no
18120fi
18121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18122fi
18123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18126	CFLAGS="$xorg_testset_save_CFLAGS"
18127fi
18128
18129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18132	fi
18133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18136if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18137then :
18138  printf %s "(cached) " >&6
18139else $as_nop
18140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141/* end confdefs.h.  */
18142int i;
18143_ACEOF
18144if ac_fn_c_try_compile "$LINENO"
18145then :
18146  xorg_cv_cc_flag_unused_command_line_argument=yes
18147else $as_nop
18148  xorg_cv_cc_flag_unused_command_line_argument=no
18149fi
18150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18151fi
18152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18155	CFLAGS="$xorg_testset_save_CFLAGS"
18156fi
18157
18158found="no"
18159
18160	if test $found = "no" ; then
18161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18163		fi
18164
18165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18167		fi
18168
18169		CFLAGS="$CFLAGS -Wwrite-strings"
18170
18171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18172printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18173		cacheid=xorg_cv_cc_flag__Wwrite_strings
18174		if eval test \${$cacheid+y}
18175then :
18176  printf %s "(cached) " >&6
18177else $as_nop
18178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179/* end confdefs.h.  */
18180int i;
18181int
18182main (void)
18183{
18184
18185  ;
18186  return 0;
18187}
18188_ACEOF
18189if ac_fn_c_try_link "$LINENO"
18190then :
18191  eval $cacheid=yes
18192else $as_nop
18193  eval $cacheid=no
18194fi
18195rm -f core conftest.err conftest.$ac_objext conftest.beam \
18196    conftest$ac_exeext conftest.$ac_ext
18197fi
18198
18199
18200		CFLAGS="$xorg_testset_save_CFLAGS"
18201
18202		eval supported=\$$cacheid
18203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18204printf "%s\n" "$supported" >&6; }
18205		if test "$supported" = "yes" ; then
18206			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18207			found="yes"
18208		fi
18209	fi
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225xorg_testset_save_CFLAGS="$CFLAGS"
18226
18227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18230printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18231if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18232then :
18233  printf %s "(cached) " >&6
18234else $as_nop
18235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236/* end confdefs.h.  */
18237int i;
18238_ACEOF
18239if ac_fn_c_try_compile "$LINENO"
18240then :
18241  xorg_cv_cc_flag_unknown_warning_option=yes
18242else $as_nop
18243  xorg_cv_cc_flag_unknown_warning_option=no
18244fi
18245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18246fi
18247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18250	CFLAGS="$xorg_testset_save_CFLAGS"
18251fi
18252
18253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18256	fi
18257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18260if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18261then :
18262  printf %s "(cached) " >&6
18263else $as_nop
18264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265/* end confdefs.h.  */
18266int i;
18267_ACEOF
18268if ac_fn_c_try_compile "$LINENO"
18269then :
18270  xorg_cv_cc_flag_unused_command_line_argument=yes
18271else $as_nop
18272  xorg_cv_cc_flag_unused_command_line_argument=no
18273fi
18274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18275fi
18276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18277printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18278	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18279	CFLAGS="$xorg_testset_save_CFLAGS"
18280fi
18281
18282found="no"
18283
18284	if test $found = "no" ; then
18285		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18287		fi
18288
18289		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18291		fi
18292
18293		CFLAGS="$CFLAGS -Waddress"
18294
18295		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18296printf %s "checking if $CC supports -Waddress... " >&6; }
18297		cacheid=xorg_cv_cc_flag__Waddress
18298		if eval test \${$cacheid+y}
18299then :
18300  printf %s "(cached) " >&6
18301else $as_nop
18302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303/* end confdefs.h.  */
18304int i;
18305int
18306main (void)
18307{
18308
18309  ;
18310  return 0;
18311}
18312_ACEOF
18313if ac_fn_c_try_link "$LINENO"
18314then :
18315  eval $cacheid=yes
18316else $as_nop
18317  eval $cacheid=no
18318fi
18319rm -f core conftest.err conftest.$ac_objext conftest.beam \
18320    conftest$ac_exeext conftest.$ac_ext
18321fi
18322
18323
18324		CFLAGS="$xorg_testset_save_CFLAGS"
18325
18326		eval supported=\$$cacheid
18327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18328printf "%s\n" "$supported" >&6; }
18329		if test "$supported" = "yes" ; then
18330			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18331			found="yes"
18332		fi
18333	fi
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349xorg_testset_save_CFLAGS="$CFLAGS"
18350
18351if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18352	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18354printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18355if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18356then :
18357  printf %s "(cached) " >&6
18358else $as_nop
18359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360/* end confdefs.h.  */
18361int i;
18362_ACEOF
18363if ac_fn_c_try_compile "$LINENO"
18364then :
18365  xorg_cv_cc_flag_unknown_warning_option=yes
18366else $as_nop
18367  xorg_cv_cc_flag_unknown_warning_option=no
18368fi
18369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18370fi
18371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18374	CFLAGS="$xorg_testset_save_CFLAGS"
18375fi
18376
18377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18380	fi
18381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18382	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18384if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18385then :
18386  printf %s "(cached) " >&6
18387else $as_nop
18388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389/* end confdefs.h.  */
18390int i;
18391_ACEOF
18392if ac_fn_c_try_compile "$LINENO"
18393then :
18394  xorg_cv_cc_flag_unused_command_line_argument=yes
18395else $as_nop
18396  xorg_cv_cc_flag_unused_command_line_argument=no
18397fi
18398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18399fi
18400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18403	CFLAGS="$xorg_testset_save_CFLAGS"
18404fi
18405
18406found="no"
18407
18408	if test $found = "no" ; then
18409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18411		fi
18412
18413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18415		fi
18416
18417		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18418
18419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18420printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18421		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18422		if eval test \${$cacheid+y}
18423then :
18424  printf %s "(cached) " >&6
18425else $as_nop
18426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427/* end confdefs.h.  */
18428int i;
18429int
18430main (void)
18431{
18432
18433  ;
18434  return 0;
18435}
18436_ACEOF
18437if ac_fn_c_try_link "$LINENO"
18438then :
18439  eval $cacheid=yes
18440else $as_nop
18441  eval $cacheid=no
18442fi
18443rm -f core conftest.err conftest.$ac_objext conftest.beam \
18444    conftest$ac_exeext conftest.$ac_ext
18445fi
18446
18447
18448		CFLAGS="$xorg_testset_save_CFLAGS"
18449
18450		eval supported=\$$cacheid
18451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18452printf "%s\n" "$supported" >&6; }
18453		if test "$supported" = "yes" ; then
18454			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18455			found="yes"
18456		fi
18457	fi
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473xorg_testset_save_CFLAGS="$CFLAGS"
18474
18475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18479if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18480then :
18481  printf %s "(cached) " >&6
18482else $as_nop
18483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484/* end confdefs.h.  */
18485int i;
18486_ACEOF
18487if ac_fn_c_try_compile "$LINENO"
18488then :
18489  xorg_cv_cc_flag_unknown_warning_option=yes
18490else $as_nop
18491  xorg_cv_cc_flag_unknown_warning_option=no
18492fi
18493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18494fi
18495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18496printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18498	CFLAGS="$xorg_testset_save_CFLAGS"
18499fi
18500
18501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18504	fi
18505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18506	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18507printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18508if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18509then :
18510  printf %s "(cached) " >&6
18511else $as_nop
18512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513/* end confdefs.h.  */
18514int i;
18515_ACEOF
18516if ac_fn_c_try_compile "$LINENO"
18517then :
18518  xorg_cv_cc_flag_unused_command_line_argument=yes
18519else $as_nop
18520  xorg_cv_cc_flag_unused_command_line_argument=no
18521fi
18522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18523fi
18524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18527	CFLAGS="$xorg_testset_save_CFLAGS"
18528fi
18529
18530found="no"
18531
18532	if test $found = "no" ; then
18533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18535		fi
18536
18537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18539		fi
18540
18541		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18542
18543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18544printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18545		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18546		if eval test \${$cacheid+y}
18547then :
18548  printf %s "(cached) " >&6
18549else $as_nop
18550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18551/* end confdefs.h.  */
18552int i;
18553int
18554main (void)
18555{
18556
18557  ;
18558  return 0;
18559}
18560_ACEOF
18561if ac_fn_c_try_link "$LINENO"
18562then :
18563  eval $cacheid=yes
18564else $as_nop
18565  eval $cacheid=no
18566fi
18567rm -f core conftest.err conftest.$ac_objext conftest.beam \
18568    conftest$ac_exeext conftest.$ac_ext
18569fi
18570
18571
18572		CFLAGS="$xorg_testset_save_CFLAGS"
18573
18574		eval supported=\$$cacheid
18575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18576printf "%s\n" "$supported" >&6; }
18577		if test "$supported" = "yes" ; then
18578			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18579			found="yes"
18580		fi
18581	fi
18582
18583
18584fi
18585
18586
18587
18588
18589
18590
18591
18592		CWARNFLAGS="$BASE_CFLAGS"
18593		if  test "x$GCC" = xyes ; then
18594		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18595		fi
18596
18597
18598
18599
18600
18601
18602
18603
18604# Check whether --enable-strict-compilation was given.
18605if test ${enable_strict_compilation+y}
18606then :
18607  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18608else $as_nop
18609  STRICT_COMPILE=no
18610fi
18611
18612
18613
18614
18615
18616
18617STRICT_CFLAGS=""
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631xorg_testset_save_CFLAGS="$CFLAGS"
18632
18633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18636printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18637if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18638then :
18639  printf %s "(cached) " >&6
18640else $as_nop
18641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642/* end confdefs.h.  */
18643int i;
18644_ACEOF
18645if ac_fn_c_try_compile "$LINENO"
18646then :
18647  xorg_cv_cc_flag_unknown_warning_option=yes
18648else $as_nop
18649  xorg_cv_cc_flag_unknown_warning_option=no
18650fi
18651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18652fi
18653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18655	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18656	CFLAGS="$xorg_testset_save_CFLAGS"
18657fi
18658
18659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18660	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18661		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18662	fi
18663	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18666if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18667then :
18668  printf %s "(cached) " >&6
18669else $as_nop
18670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671/* end confdefs.h.  */
18672int i;
18673_ACEOF
18674if ac_fn_c_try_compile "$LINENO"
18675then :
18676  xorg_cv_cc_flag_unused_command_line_argument=yes
18677else $as_nop
18678  xorg_cv_cc_flag_unused_command_line_argument=no
18679fi
18680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18681fi
18682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18683printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18684	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18685	CFLAGS="$xorg_testset_save_CFLAGS"
18686fi
18687
18688found="no"
18689
18690	if test $found = "no" ; then
18691		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18692			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18693		fi
18694
18695		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18696			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18697		fi
18698
18699		CFLAGS="$CFLAGS -pedantic"
18700
18701		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18702printf %s "checking if $CC supports -pedantic... " >&6; }
18703		cacheid=xorg_cv_cc_flag__pedantic
18704		if eval test \${$cacheid+y}
18705then :
18706  printf %s "(cached) " >&6
18707else $as_nop
18708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18709/* end confdefs.h.  */
18710int i;
18711int
18712main (void)
18713{
18714
18715  ;
18716  return 0;
18717}
18718_ACEOF
18719if ac_fn_c_try_link "$LINENO"
18720then :
18721  eval $cacheid=yes
18722else $as_nop
18723  eval $cacheid=no
18724fi
18725rm -f core conftest.err conftest.$ac_objext conftest.beam \
18726    conftest$ac_exeext conftest.$ac_ext
18727fi
18728
18729
18730		CFLAGS="$xorg_testset_save_CFLAGS"
18731
18732		eval supported=\$$cacheid
18733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18734printf "%s\n" "$supported" >&6; }
18735		if test "$supported" = "yes" ; then
18736			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18737			found="yes"
18738		fi
18739	fi
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755xorg_testset_save_CFLAGS="$CFLAGS"
18756
18757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18761if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18762then :
18763  printf %s "(cached) " >&6
18764else $as_nop
18765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766/* end confdefs.h.  */
18767int i;
18768_ACEOF
18769if ac_fn_c_try_compile "$LINENO"
18770then :
18771  xorg_cv_cc_flag_unknown_warning_option=yes
18772else $as_nop
18773  xorg_cv_cc_flag_unknown_warning_option=no
18774fi
18775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18776fi
18777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18778printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18779	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18780	CFLAGS="$xorg_testset_save_CFLAGS"
18781fi
18782
18783if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18784	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18785		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18786	fi
18787	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18788	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18789printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18790if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18791then :
18792  printf %s "(cached) " >&6
18793else $as_nop
18794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795/* end confdefs.h.  */
18796int i;
18797_ACEOF
18798if ac_fn_c_try_compile "$LINENO"
18799then :
18800  xorg_cv_cc_flag_unused_command_line_argument=yes
18801else $as_nop
18802  xorg_cv_cc_flag_unused_command_line_argument=no
18803fi
18804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18805fi
18806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18809	CFLAGS="$xorg_testset_save_CFLAGS"
18810fi
18811
18812found="no"
18813
18814	if test $found = "no" ; then
18815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18817		fi
18818
18819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18821		fi
18822
18823		CFLAGS="$CFLAGS -Werror"
18824
18825		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18826printf %s "checking if $CC supports -Werror... " >&6; }
18827		cacheid=xorg_cv_cc_flag__Werror
18828		if eval test \${$cacheid+y}
18829then :
18830  printf %s "(cached) " >&6
18831else $as_nop
18832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833/* end confdefs.h.  */
18834int i;
18835int
18836main (void)
18837{
18838
18839  ;
18840  return 0;
18841}
18842_ACEOF
18843if ac_fn_c_try_link "$LINENO"
18844then :
18845  eval $cacheid=yes
18846else $as_nop
18847  eval $cacheid=no
18848fi
18849rm -f core conftest.err conftest.$ac_objext conftest.beam \
18850    conftest$ac_exeext conftest.$ac_ext
18851fi
18852
18853
18854		CFLAGS="$xorg_testset_save_CFLAGS"
18855
18856		eval supported=\$$cacheid
18857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18858printf "%s\n" "$supported" >&6; }
18859		if test "$supported" = "yes" ; then
18860			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18861			found="yes"
18862		fi
18863	fi
18864
18865	if test $found = "no" ; then
18866		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18867			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18868		fi
18869
18870		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18871			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18872		fi
18873
18874		CFLAGS="$CFLAGS -errwarn"
18875
18876		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18877printf %s "checking if $CC supports -errwarn... " >&6; }
18878		cacheid=xorg_cv_cc_flag__errwarn
18879		if eval test \${$cacheid+y}
18880then :
18881  printf %s "(cached) " >&6
18882else $as_nop
18883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884/* end confdefs.h.  */
18885int i;
18886int
18887main (void)
18888{
18889
18890  ;
18891  return 0;
18892}
18893_ACEOF
18894if ac_fn_c_try_link "$LINENO"
18895then :
18896  eval $cacheid=yes
18897else $as_nop
18898  eval $cacheid=no
18899fi
18900rm -f core conftest.err conftest.$ac_objext conftest.beam \
18901    conftest$ac_exeext conftest.$ac_ext
18902fi
18903
18904
18905		CFLAGS="$xorg_testset_save_CFLAGS"
18906
18907		eval supported=\$$cacheid
18908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18909printf "%s\n" "$supported" >&6; }
18910		if test "$supported" = "yes" ; then
18911			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18912			found="yes"
18913		fi
18914	fi
18915
18916
18917
18918# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18919# activate it with -Werror, so we add it here explicitly.
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933xorg_testset_save_CFLAGS="$CFLAGS"
18934
18935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18939if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18940then :
18941  printf %s "(cached) " >&6
18942else $as_nop
18943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944/* end confdefs.h.  */
18945int i;
18946_ACEOF
18947if ac_fn_c_try_compile "$LINENO"
18948then :
18949  xorg_cv_cc_flag_unknown_warning_option=yes
18950else $as_nop
18951  xorg_cv_cc_flag_unknown_warning_option=no
18952fi
18953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18954fi
18955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18957	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18958	CFLAGS="$xorg_testset_save_CFLAGS"
18959fi
18960
18961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18962	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18963		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18964	fi
18965	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18968if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18969then :
18970  printf %s "(cached) " >&6
18971else $as_nop
18972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973/* end confdefs.h.  */
18974int i;
18975_ACEOF
18976if ac_fn_c_try_compile "$LINENO"
18977then :
18978  xorg_cv_cc_flag_unused_command_line_argument=yes
18979else $as_nop
18980  xorg_cv_cc_flag_unused_command_line_argument=no
18981fi
18982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18983fi
18984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18987	CFLAGS="$xorg_testset_save_CFLAGS"
18988fi
18989
18990found="no"
18991
18992	if test $found = "no" ; then
18993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18995		fi
18996
18997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18999		fi
19000
19001		CFLAGS="$CFLAGS -Werror=attributes"
19002
19003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19004printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19005		cacheid=xorg_cv_cc_flag__Werror_attributes
19006		if eval test \${$cacheid+y}
19007then :
19008  printf %s "(cached) " >&6
19009else $as_nop
19010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19011/* end confdefs.h.  */
19012int i;
19013int
19014main (void)
19015{
19016
19017  ;
19018  return 0;
19019}
19020_ACEOF
19021if ac_fn_c_try_link "$LINENO"
19022then :
19023  eval $cacheid=yes
19024else $as_nop
19025  eval $cacheid=no
19026fi
19027rm -f core conftest.err conftest.$ac_objext conftest.beam \
19028    conftest$ac_exeext conftest.$ac_ext
19029fi
19030
19031
19032		CFLAGS="$xorg_testset_save_CFLAGS"
19033
19034		eval supported=\$$cacheid
19035		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19036printf "%s\n" "$supported" >&6; }
19037		if test "$supported" = "yes" ; then
19038			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19039			found="yes"
19040		fi
19041	fi
19042
19043
19044
19045if test "x$STRICT_COMPILE" = "xyes"; then
19046    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19047    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19048fi
19049
19050
19051
19052
19053
19054
19055cat >>confdefs.h <<_ACEOF
19056#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19057_ACEOF
19058
19059	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19060	if test "x$PVM" = "x"; then
19061		PVM="0"
19062	fi
19063
19064printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19065
19066	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19067	if test "x$PVP" = "x"; then
19068		PVP="0"
19069	fi
19070
19071printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19072
19073
19074
19075CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19076mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19077|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19078touch \$(top_srcdir)/ChangeLog; \
19079echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19080
19081
19082
19083
19084macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19085INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19086mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19087|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19088touch \$(top_srcdir)/INSTALL; \
19089echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19090
19091
19092
19093
19094
19095
19096case $host_os in
19097    solaris*)
19098        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19099        # check for a man page file found in later versions that use
19100        # traditional section numbers instead
19101        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19102printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19103if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19104then :
19105  printf %s "(cached) " >&6
19106else $as_nop
19107  test "$cross_compiling" = yes &&
19108  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19109if test -r "/usr/share/man/man7/attributes.7"; then
19110  ac_cv_file__usr_share_man_man7_attributes_7=yes
19111else
19112  ac_cv_file__usr_share_man_man7_attributes_7=no
19113fi
19114fi
19115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19116printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19117if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19118then :
19119  SYSV_MAN_SECTIONS=false
19120else $as_nop
19121  SYSV_MAN_SECTIONS=true
19122fi
19123
19124        ;;
19125    *) SYSV_MAN_SECTIONS=false ;;
19126esac
19127
19128if test x$APP_MAN_SUFFIX = x    ; then
19129    APP_MAN_SUFFIX=1
19130fi
19131if test x$APP_MAN_DIR = x    ; then
19132    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19133fi
19134
19135if test x$LIB_MAN_SUFFIX = x    ; then
19136    LIB_MAN_SUFFIX=3
19137fi
19138if test x$LIB_MAN_DIR = x    ; then
19139    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19140fi
19141
19142if test x$FILE_MAN_SUFFIX = x    ; then
19143    case $SYSV_MAN_SECTIONS in
19144	true)				FILE_MAN_SUFFIX=4  ;;
19145	*)				FILE_MAN_SUFFIX=5  ;;
19146    esac
19147fi
19148if test x$FILE_MAN_DIR = x    ; then
19149    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19150fi
19151
19152if test x$MISC_MAN_SUFFIX = x    ; then
19153    case $SYSV_MAN_SECTIONS in
19154	true)				MISC_MAN_SUFFIX=5  ;;
19155	*)				MISC_MAN_SUFFIX=7  ;;
19156    esac
19157fi
19158if test x$MISC_MAN_DIR = x    ; then
19159    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19160fi
19161
19162if test x$DRIVER_MAN_SUFFIX = x    ; then
19163    case $SYSV_MAN_SECTIONS in
19164	true)				DRIVER_MAN_SUFFIX=7  ;;
19165	*)				DRIVER_MAN_SUFFIX=4  ;;
19166    esac
19167fi
19168if test x$DRIVER_MAN_DIR = x    ; then
19169    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19170fi
19171
19172if test x$ADMIN_MAN_SUFFIX = x    ; then
19173    case $SYSV_MAN_SECTIONS in
19174	true)				ADMIN_MAN_SUFFIX=1m ;;
19175	*)				ADMIN_MAN_SUFFIX=8  ;;
19176    esac
19177fi
19178if test x$ADMIN_MAN_DIR = x    ; then
19179    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19180fi
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196XORG_MAN_PAGE="X Version 11"
19197
19198MAN_SUBSTS="\
19199	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19200	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19201	-e 's|__xservername__|Xorg|g' \
19202	-e 's|__xconfigfile__|xorg.conf|g' \
19203	-e 's|__projectroot__|\$(prefix)|g' \
19204	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19205	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19206	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19207	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19208	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19209	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19210	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19211
19212
19213
19214# Check whether --enable-silent-rules was given.
19215if test ${enable_silent_rules+y}
19216then :
19217  enableval=$enable_silent_rules;
19218fi
19219
19220case $enable_silent_rules in # (((
19221  yes) AM_DEFAULT_VERBOSITY=0;;
19222   no) AM_DEFAULT_VERBOSITY=1;;
19223    *) AM_DEFAULT_VERBOSITY=0;;
19224esac
19225am_make=${MAKE-make}
19226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19227printf %s "checking whether $am_make supports nested variables... " >&6; }
19228if test ${am_cv_make_support_nested_variables+y}
19229then :
19230  printf %s "(cached) " >&6
19231else $as_nop
19232  if printf "%s\n" 'TRUE=$(BAR$(V))
19233BAR0=false
19234BAR1=true
19235V=1
19236am__doit:
19237	@$(TRUE)
19238.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19239  am_cv_make_support_nested_variables=yes
19240else
19241  am_cv_make_support_nested_variables=no
19242fi
19243fi
19244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19245printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19246if test $am_cv_make_support_nested_variables = yes; then
19247    AM_V='$(V)'
19248  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19249else
19250  AM_V=$AM_DEFAULT_VERBOSITY
19251  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19252fi
19253AM_BACKSLASH='\'
19254
19255
19256
19257# Check whether --enable-malloc0returnsnull was given.
19258if test ${enable_malloc0returnsnull+y}
19259then :
19260  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19261else $as_nop
19262  MALLOC_ZERO_RETURNS_NULL=auto
19263fi
19264
19265
19266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19267printf %s "checking whether malloc(0) returns NULL... " >&6; }
19268if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19269if test ${xorg_cv_malloc0_returns_null+y}
19270then :
19271  printf %s "(cached) " >&6
19272else $as_nop
19273  if test "$cross_compiling" = yes
19274then :
19275  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19276printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19277as_fn_error $? "cannot run test program while cross compiling
19278See \`config.log' for more details" "$LINENO" 5; }
19279else $as_nop
19280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281/* end confdefs.h.  */
19282
19283#include <stdlib.h>
19284
19285int
19286main (void)
19287{
19288
19289    char *m0, *r0, *c0, *p;
19290    m0 = malloc(0);
19291    p = malloc(10);
19292    r0 = realloc(p,0);
19293    c0 = calloc(0,10);
19294    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19295
19296  ;
19297  return 0;
19298}
19299_ACEOF
19300if ac_fn_c_try_run "$LINENO"
19301then :
19302  xorg_cv_malloc0_returns_null=yes
19303else $as_nop
19304  xorg_cv_malloc0_returns_null=no
19305fi
19306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19307  conftest.$ac_objext conftest.beam conftest.$ac_ext
19308fi
19309
19310fi
19311
19312MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19313fi
19314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19315printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19316
19317if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19318	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19319	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19320	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19321else
19322	MALLOC_ZERO_CFLAGS=""
19323	XMALLOC_ZERO_CFLAGS=""
19324	XTMALLOC_ZERO_CFLAGS=""
19325fi
19326
19327
19328
19329
19330
19331
19332# Obtain compiler/linker options for dependencies
19333
19334pkg_failed=no
19335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5
19336printf %s "checking for XINERAMA... " >&6; }
19337
19338if test -n "$XINERAMA_CFLAGS"; then
19339    pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
19340 elif test -n "$PKG_CONFIG"; then
19341    if test -n "$PKG_CONFIG" && \
19342    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
19343  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
19344  ac_status=$?
19345  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19346  test $ac_status = 0; }; then
19347  pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
19348		      test "x$?" != "x0" && pkg_failed=yes
19349else
19350  pkg_failed=yes
19351fi
19352 else
19353    pkg_failed=untried
19354fi
19355if test -n "$XINERAMA_LIBS"; then
19356    pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
19357 elif test -n "$PKG_CONFIG"; then
19358    if test -n "$PKG_CONFIG" && \
19359    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1\""; } >&5
19360  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1") 2>&5
19361  ac_status=$?
19362  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19363  test $ac_status = 0; }; then
19364  pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>/dev/null`
19365		      test "x$?" != "x0" && pkg_failed=yes
19366else
19367  pkg_failed=yes
19368fi
19369 else
19370    pkg_failed=untried
19371fi
19372
19373
19374
19375if test $pkg_failed = yes; then
19376   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19377printf "%s\n" "no" >&6; }
19378
19379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19380        _pkg_short_errors_supported=yes
19381else
19382        _pkg_short_errors_supported=no
19383fi
19384        if test $_pkg_short_errors_supported = yes; then
19385	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
19386        else
19387	        XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1" 2>&1`
19388        fi
19389	# Put the nasty error message in config.log where it belongs
19390	echo "$XINERAMA_PKG_ERRORS" >&5
19391
19392	as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto xineramaproto >= 1.1.99.1) were not met:
19393
19394$XINERAMA_PKG_ERRORS
19395
19396Consider adjusting the PKG_CONFIG_PATH environment variable if you
19397installed software in a non-standard prefix.
19398
19399Alternatively, you may set the environment variables XINERAMA_CFLAGS
19400and XINERAMA_LIBS to avoid the need to call pkg-config.
19401See the pkg-config man page for more details." "$LINENO" 5
19402elif test $pkg_failed = untried; then
19403     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404printf "%s\n" "no" >&6; }
19405	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19406printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19407as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19408is in your PATH or set the PKG_CONFIG environment variable to the full
19409path to pkg-config.
19410
19411Alternatively, you may set the environment variables XINERAMA_CFLAGS
19412and XINERAMA_LIBS to avoid the need to call pkg-config.
19413See the pkg-config man page for more details.
19414
19415To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19416See \`config.log' for more details" "$LINENO" 5; }
19417else
19418	XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
19419	XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
19420        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19421printf "%s\n" "yes" >&6; }
19422
19423fi
19424
19425# Allow checking code with lint, sparse, etc.
19426
19427
19428
19429
19430
19431# Check whether --with-lint was given.
19432if test ${with_lint+y}
19433then :
19434  withval=$with_lint; use_lint=$withval
19435else $as_nop
19436  use_lint=no
19437fi
19438
19439
19440# Obtain platform specific info like program name and options
19441# The lint program on FreeBSD and NetBSD is different from the one on Solaris
19442case $host_os in
19443  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19444	lint_name=splint
19445	lint_options="-badflag"
19446	;;
19447  *freebsd* | *netbsd*)
19448	lint_name=lint
19449	lint_options="-u -b"
19450	;;
19451  *solaris*)
19452	lint_name=lint
19453	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19454	;;
19455esac
19456
19457# Test for the presence of the program (either guessed by the code or spelled out by the user)
19458if test "x$use_lint" = x"yes" ; then
19459   # Extract the first word of "$lint_name", so it can be a program name with args.
19460set dummy $lint_name; ac_word=$2
19461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19462printf %s "checking for $ac_word... " >&6; }
19463if test ${ac_cv_path_LINT+y}
19464then :
19465  printf %s "(cached) " >&6
19466else $as_nop
19467  case $LINT in
19468  [\\/]* | ?:[\\/]*)
19469  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19470  ;;
19471  *)
19472  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19473for as_dir in $PATH
19474do
19475  IFS=$as_save_IFS
19476  case $as_dir in #(((
19477    '') as_dir=./ ;;
19478    */) ;;
19479    *) as_dir=$as_dir/ ;;
19480  esac
19481    for ac_exec_ext in '' $ac_executable_extensions; do
19482  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19483    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
19484    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19485    break 2
19486  fi
19487done
19488  done
19489IFS=$as_save_IFS
19490
19491  ;;
19492esac
19493fi
19494LINT=$ac_cv_path_LINT
19495if test -n "$LINT"; then
19496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19497printf "%s\n" "$LINT" >&6; }
19498else
19499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19500printf "%s\n" "no" >&6; }
19501fi
19502
19503
19504   if test "x$LINT" = "x"; then
19505        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19506   fi
19507elif test "x$use_lint" = x"no" ; then
19508   if test "x$LINT" != "x"; then
19509      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19510printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19511   fi
19512else
19513   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19514fi
19515
19516# User supplied flags override default flags
19517if test "x$LINT_FLAGS" != "x"; then
19518   lint_options=$LINT_FLAGS
19519fi
19520
19521LINT_FLAGS=$lint_options
19522
19523 if test "x$LINT" != x; then
19524  LINT_TRUE=
19525  LINT_FALSE='#'
19526else
19527  LINT_TRUE='#'
19528  LINT_FALSE=
19529fi
19530
19531
19532
19533LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
19534
19535ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc"
19536
19537cat >confcache <<\_ACEOF
19538# This file is a shell script that caches the results of configure
19539# tests run on this system so they can be shared between configure
19540# scripts and configure runs, see configure's option --config-cache.
19541# It is not useful on other systems.  If it contains results you don't
19542# want to keep, you may remove or edit it.
19543#
19544# config.status only pays attention to the cache file if you give it
19545# the --recheck option to rerun configure.
19546#
19547# `ac_cv_env_foo' variables (set or unset) will be overridden when
19548# loading this file, other *unset* `ac_cv_foo' will be assigned the
19549# following values.
19550
19551_ACEOF
19552
19553# The following way of writing the cache mishandles newlines in values,
19554# but we know of no workaround that is simple, portable, and efficient.
19555# So, we kill variables containing newlines.
19556# Ultrix sh set writes to stderr and can't be redirected directly,
19557# and sets the high bit in the cache file unless we assign to the vars.
19558(
19559  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19560    eval ac_val=\$$ac_var
19561    case $ac_val in #(
19562    *${as_nl}*)
19563      case $ac_var in #(
19564      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19565printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19566      esac
19567      case $ac_var in #(
19568      _ | IFS | as_nl) ;; #(
19569      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19570      *) { eval $ac_var=; unset $ac_var;} ;;
19571      esac ;;
19572    esac
19573  done
19574
19575  (set) 2>&1 |
19576    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19577    *${as_nl}ac_space=\ *)
19578      # `set' does not quote correctly, so add quotes: double-quote
19579      # substitution turns \\\\ into \\, and sed turns \\ into \.
19580      sed -n \
19581	"s/'/'\\\\''/g;
19582	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19583      ;; #(
19584    *)
19585      # `set' quotes correctly as required by POSIX, so do not add quotes.
19586      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19587      ;;
19588    esac |
19589    sort
19590) |
19591  sed '
19592     /^ac_cv_env_/b end
19593     t clear
19594     :clear
19595     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19596     t end
19597     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19598     :end' >>confcache
19599if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19600  if test -w "$cache_file"; then
19601    if test "x$cache_file" != "x/dev/null"; then
19602      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19603printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19604      if test ! -f "$cache_file" || test -h "$cache_file"; then
19605	cat confcache >"$cache_file"
19606      else
19607        case $cache_file in #(
19608        */* | ?:*)
19609	  mv -f confcache "$cache_file"$$ &&
19610	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19611        *)
19612	  mv -f confcache "$cache_file" ;;
19613	esac
19614      fi
19615    fi
19616  else
19617    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19618printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19619  fi
19620fi
19621rm -f confcache
19622
19623test "x$prefix" = xNONE && prefix=$ac_default_prefix
19624# Let make expand exec_prefix.
19625test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19626
19627DEFS=-DHAVE_CONFIG_H
19628
19629ac_libobjs=
19630ac_ltlibobjs=
19631U=
19632for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19633  # 1. Remove the extension, and $U if already installed.
19634  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19635  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19636  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19637  #    will be set to the directory where LIBOBJS objects are built.
19638  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19639  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19640done
19641LIBOBJS=$ac_libobjs
19642
19643LTLIBOBJS=$ac_ltlibobjs
19644
19645
19646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19647printf %s "checking that generated files are newer than configure... " >&6; }
19648   if test -n "$am_sleep_pid"; then
19649     # Hide warnings about reused PIDs.
19650     wait $am_sleep_pid 2>/dev/null
19651   fi
19652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19653printf "%s\n" "done" >&6; }
19654 if test -n "$EXEEXT"; then
19655  am__EXEEXT_TRUE=
19656  am__EXEEXT_FALSE='#'
19657else
19658  am__EXEEXT_TRUE='#'
19659  am__EXEEXT_FALSE=
19660fi
19661
19662if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19663  as_fn_error $? "conditional \"AMDEP\" was never defined.
19664Usually this means the macro was only invoked conditionally." "$LINENO" 5
19665fi
19666if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19667  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19668Usually this means the macro was only invoked conditionally." "$LINENO" 5
19669fi
19670if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19671  as_fn_error $? "conditional \"LINT\" was never defined.
19672Usually this means the macro was only invoked conditionally." "$LINENO" 5
19673fi
19674
19675: "${CONFIG_STATUS=./config.status}"
19676ac_write_fail=0
19677ac_clean_files_save=$ac_clean_files
19678ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19680printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19681as_write_fail=0
19682cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19683#! $SHELL
19684# Generated by $as_me.
19685# Run this file to recreate the current configuration.
19686# Compiler output produced by configure, useful for debugging
19687# configure, is in config.log if it exists.
19688
19689debug=false
19690ac_cs_recheck=false
19691ac_cs_silent=false
19692
19693SHELL=\${CONFIG_SHELL-$SHELL}
19694export SHELL
19695_ASEOF
19696cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19697## -------------------- ##
19698## M4sh Initialization. ##
19699## -------------------- ##
19700
19701# Be more Bourne compatible
19702DUALCASE=1; export DUALCASE # for MKS sh
19703as_nop=:
19704if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19705then :
19706  emulate sh
19707  NULLCMD=:
19708  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19709  # is contrary to our usage.  Disable this feature.
19710  alias -g '${1+"$@"}'='"$@"'
19711  setopt NO_GLOB_SUBST
19712else $as_nop
19713  case `(set -o) 2>/dev/null` in #(
19714  *posix*) :
19715    set -o posix ;; #(
19716  *) :
19717     ;;
19718esac
19719fi
19720
19721
19722
19723# Reset variables that may have inherited troublesome values from
19724# the environment.
19725
19726# IFS needs to be set, to space, tab, and newline, in precisely that order.
19727# (If _AS_PATH_WALK were called with IFS unset, it would have the
19728# side effect of setting IFS to empty, thus disabling word splitting.)
19729# Quoting is to prevent editors from complaining about space-tab.
19730as_nl='
19731'
19732export as_nl
19733IFS=" ""	$as_nl"
19734
19735PS1='$ '
19736PS2='> '
19737PS4='+ '
19738
19739# Ensure predictable behavior from utilities with locale-dependent output.
19740LC_ALL=C
19741export LC_ALL
19742LANGUAGE=C
19743export LANGUAGE
19744
19745# We cannot yet rely on "unset" to work, but we need these variables
19746# to be unset--not just set to an empty or harmless value--now, to
19747# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19748# also avoids known problems related to "unset" and subshell syntax
19749# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19750for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19751do eval test \${$as_var+y} \
19752  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19753done
19754
19755# Ensure that fds 0, 1, and 2 are open.
19756if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19757if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19758if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19759
19760# The user is always right.
19761if ${PATH_SEPARATOR+false} :; then
19762  PATH_SEPARATOR=:
19763  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19764    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19765      PATH_SEPARATOR=';'
19766  }
19767fi
19768
19769
19770# Find who we are.  Look in the path if we contain no directory separator.
19771as_myself=
19772case $0 in #((
19773  *[\\/]* ) as_myself=$0 ;;
19774  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19775for as_dir in $PATH
19776do
19777  IFS=$as_save_IFS
19778  case $as_dir in #(((
19779    '') as_dir=./ ;;
19780    */) ;;
19781    *) as_dir=$as_dir/ ;;
19782  esac
19783    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19784  done
19785IFS=$as_save_IFS
19786
19787     ;;
19788esac
19789# We did not find ourselves, most probably we were run as `sh COMMAND'
19790# in which case we are not to be found in the path.
19791if test "x$as_myself" = x; then
19792  as_myself=$0
19793fi
19794if test ! -f "$as_myself"; then
19795  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19796  exit 1
19797fi
19798
19799
19800
19801# as_fn_error STATUS ERROR [LINENO LOG_FD]
19802# ----------------------------------------
19803# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19804# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19805# script with STATUS, using 1 if that was 0.
19806as_fn_error ()
19807{
19808  as_status=$1; test $as_status -eq 0 && as_status=1
19809  if test "$4"; then
19810    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19811    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19812  fi
19813  printf "%s\n" "$as_me: error: $2" >&2
19814  as_fn_exit $as_status
19815} # as_fn_error
19816
19817
19818
19819# as_fn_set_status STATUS
19820# -----------------------
19821# Set $? to STATUS, without forking.
19822as_fn_set_status ()
19823{
19824  return $1
19825} # as_fn_set_status
19826
19827# as_fn_exit STATUS
19828# -----------------
19829# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19830as_fn_exit ()
19831{
19832  set +e
19833  as_fn_set_status $1
19834  exit $1
19835} # as_fn_exit
19836
19837# as_fn_unset VAR
19838# ---------------
19839# Portably unset VAR.
19840as_fn_unset ()
19841{
19842  { eval $1=; unset $1;}
19843}
19844as_unset=as_fn_unset
19845
19846# as_fn_append VAR VALUE
19847# ----------------------
19848# Append the text in VALUE to the end of the definition contained in VAR. Take
19849# advantage of any shell optimizations that allow amortized linear growth over
19850# repeated appends, instead of the typical quadratic growth present in naive
19851# implementations.
19852if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19853then :
19854  eval 'as_fn_append ()
19855  {
19856    eval $1+=\$2
19857  }'
19858else $as_nop
19859  as_fn_append ()
19860  {
19861    eval $1=\$$1\$2
19862  }
19863fi # as_fn_append
19864
19865# as_fn_arith ARG...
19866# ------------------
19867# Perform arithmetic evaluation on the ARGs, and store the result in the
19868# global $as_val. Take advantage of shells that can avoid forks. The arguments
19869# must be portable across $(()) and expr.
19870if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19871then :
19872  eval 'as_fn_arith ()
19873  {
19874    as_val=$(( $* ))
19875  }'
19876else $as_nop
19877  as_fn_arith ()
19878  {
19879    as_val=`expr "$@" || test $? -eq 1`
19880  }
19881fi # as_fn_arith
19882
19883
19884if expr a : '\(a\)' >/dev/null 2>&1 &&
19885   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19886  as_expr=expr
19887else
19888  as_expr=false
19889fi
19890
19891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19892  as_basename=basename
19893else
19894  as_basename=false
19895fi
19896
19897if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19898  as_dirname=dirname
19899else
19900  as_dirname=false
19901fi
19902
19903as_me=`$as_basename -- "$0" ||
19904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19905	 X"$0" : 'X\(//\)$' \| \
19906	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19907printf "%s\n" X/"$0" |
19908    sed '/^.*\/\([^/][^/]*\)\/*$/{
19909	    s//\1/
19910	    q
19911	  }
19912	  /^X\/\(\/\/\)$/{
19913	    s//\1/
19914	    q
19915	  }
19916	  /^X\/\(\/\).*/{
19917	    s//\1/
19918	    q
19919	  }
19920	  s/.*/./; q'`
19921
19922# Avoid depending upon Character Ranges.
19923as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19925as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19926as_cr_digits='0123456789'
19927as_cr_alnum=$as_cr_Letters$as_cr_digits
19928
19929
19930# Determine whether it's possible to make 'echo' print without a newline.
19931# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19932# for compatibility with existing Makefiles.
19933ECHO_C= ECHO_N= ECHO_T=
19934case `echo -n x` in #(((((
19935-n*)
19936  case `echo 'xy\c'` in
19937  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19938  xy)  ECHO_C='\c';;
19939  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19940       ECHO_T='	';;
19941  esac;;
19942*)
19943  ECHO_N='-n';;
19944esac
19945
19946# For backward compatibility with old third-party macros, we provide
19947# the shell variables $as_echo and $as_echo_n.  New code should use
19948# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19949as_echo='printf %s\n'
19950as_echo_n='printf %s'
19951
19952rm -f conf$$ conf$$.exe conf$$.file
19953if test -d conf$$.dir; then
19954  rm -f conf$$.dir/conf$$.file
19955else
19956  rm -f conf$$.dir
19957  mkdir conf$$.dir 2>/dev/null
19958fi
19959if (echo >conf$$.file) 2>/dev/null; then
19960  if ln -s conf$$.file conf$$ 2>/dev/null; then
19961    as_ln_s='ln -s'
19962    # ... but there are two gotchas:
19963    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19964    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19965    # In both cases, we have to default to `cp -pR'.
19966    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19967      as_ln_s='cp -pR'
19968  elif ln conf$$.file conf$$ 2>/dev/null; then
19969    as_ln_s=ln
19970  else
19971    as_ln_s='cp -pR'
19972  fi
19973else
19974  as_ln_s='cp -pR'
19975fi
19976rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19977rmdir conf$$.dir 2>/dev/null
19978
19979
19980# as_fn_mkdir_p
19981# -------------
19982# Create "$as_dir" as a directory, including parents if necessary.
19983as_fn_mkdir_p ()
19984{
19985
19986  case $as_dir in #(
19987  -*) as_dir=./$as_dir;;
19988  esac
19989  test -d "$as_dir" || eval $as_mkdir_p || {
19990    as_dirs=
19991    while :; do
19992      case $as_dir in #(
19993      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19994      *) as_qdir=$as_dir;;
19995      esac
19996      as_dirs="'$as_qdir' $as_dirs"
19997      as_dir=`$as_dirname -- "$as_dir" ||
19998$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19999	 X"$as_dir" : 'X\(//\)[^/]' \| \
20000	 X"$as_dir" : 'X\(//\)$' \| \
20001	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20002printf "%s\n" X"$as_dir" |
20003    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20004	    s//\1/
20005	    q
20006	  }
20007	  /^X\(\/\/\)[^/].*/{
20008	    s//\1/
20009	    q
20010	  }
20011	  /^X\(\/\/\)$/{
20012	    s//\1/
20013	    q
20014	  }
20015	  /^X\(\/\).*/{
20016	    s//\1/
20017	    q
20018	  }
20019	  s/.*/./; q'`
20020      test -d "$as_dir" && break
20021    done
20022    test -z "$as_dirs" || eval "mkdir $as_dirs"
20023  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20024
20025
20026} # as_fn_mkdir_p
20027if mkdir -p . 2>/dev/null; then
20028  as_mkdir_p='mkdir -p "$as_dir"'
20029else
20030  test -d ./-p && rmdir ./-p
20031  as_mkdir_p=false
20032fi
20033
20034
20035# as_fn_executable_p FILE
20036# -----------------------
20037# Test if FILE is an executable regular file.
20038as_fn_executable_p ()
20039{
20040  test -f "$1" && test -x "$1"
20041} # as_fn_executable_p
20042as_test_x='test -x'
20043as_executable_p=as_fn_executable_p
20044
20045# Sed expression to map a string onto a valid CPP name.
20046as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20047
20048# Sed expression to map a string onto a valid variable name.
20049as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20050
20051
20052exec 6>&1
20053## ----------------------------------- ##
20054## Main body of $CONFIG_STATUS script. ##
20055## ----------------------------------- ##
20056_ASEOF
20057test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20058
20059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20060# Save the log message, to keep $0 and so on meaningful, and to
20061# report actual input values of CONFIG_FILES etc. instead of their
20062# values after options handling.
20063ac_log="
20064This file was extended by libXinerama $as_me 1.1.5, which was
20065generated by GNU Autoconf 2.71.  Invocation command line was
20066
20067  CONFIG_FILES    = $CONFIG_FILES
20068  CONFIG_HEADERS  = $CONFIG_HEADERS
20069  CONFIG_LINKS    = $CONFIG_LINKS
20070  CONFIG_COMMANDS = $CONFIG_COMMANDS
20071  $ $0 $@
20072
20073on `(hostname || uname -n) 2>/dev/null | sed 1q`
20074"
20075
20076_ACEOF
20077
20078case $ac_config_files in *"
20079"*) set x $ac_config_files; shift; ac_config_files=$*;;
20080esac
20081
20082case $ac_config_headers in *"
20083"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20084esac
20085
20086
20087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20088# Files that config.status was made for.
20089config_files="$ac_config_files"
20090config_headers="$ac_config_headers"
20091config_commands="$ac_config_commands"
20092
20093_ACEOF
20094
20095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20096ac_cs_usage="\
20097\`$as_me' instantiates files and other configuration actions
20098from templates according to the current configuration.  Unless the files
20099and actions are specified as TAGs, all are instantiated by default.
20100
20101Usage: $0 [OPTION]... [TAG]...
20102
20103  -h, --help       print this help, then exit
20104  -V, --version    print version number and configuration settings, then exit
20105      --config     print configuration, then exit
20106  -q, --quiet, --silent
20107                   do not print progress messages
20108  -d, --debug      don't remove temporary files
20109      --recheck    update $as_me by reconfiguring in the same conditions
20110      --file=FILE[:TEMPLATE]
20111                   instantiate the configuration file FILE
20112      --header=FILE[:TEMPLATE]
20113                   instantiate the configuration header FILE
20114
20115Configuration files:
20116$config_files
20117
20118Configuration headers:
20119$config_headers
20120
20121Configuration commands:
20122$config_commands
20123
20124Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/issues>."
20125
20126_ACEOF
20127ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20128ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20130ac_cs_config='$ac_cs_config_escaped'
20131ac_cs_version="\\
20132libXinerama config.status 1.1.5
20133configured by $0, generated by GNU Autoconf 2.71,
20134  with options \\"\$ac_cs_config\\"
20135
20136Copyright (C) 2021 Free Software Foundation, Inc.
20137This config.status script is free software; the Free Software Foundation
20138gives unlimited permission to copy, distribute and modify it."
20139
20140ac_pwd='$ac_pwd'
20141srcdir='$srcdir'
20142INSTALL='$INSTALL'
20143MKDIR_P='$MKDIR_P'
20144AWK='$AWK'
20145test -n "\$AWK" || AWK=awk
20146_ACEOF
20147
20148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20149# The default lists apply if the user does not specify any file.
20150ac_need_defaults=:
20151while test $# != 0
20152do
20153  case $1 in
20154  --*=?*)
20155    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20156    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20157    ac_shift=:
20158    ;;
20159  --*=)
20160    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20161    ac_optarg=
20162    ac_shift=:
20163    ;;
20164  *)
20165    ac_option=$1
20166    ac_optarg=$2
20167    ac_shift=shift
20168    ;;
20169  esac
20170
20171  case $ac_option in
20172  # Handling of the options.
20173  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20174    ac_cs_recheck=: ;;
20175  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20176    printf "%s\n" "$ac_cs_version"; exit ;;
20177  --config | --confi | --conf | --con | --co | --c )
20178    printf "%s\n" "$ac_cs_config"; exit ;;
20179  --debug | --debu | --deb | --de | --d | -d )
20180    debug=: ;;
20181  --file | --fil | --fi | --f )
20182    $ac_shift
20183    case $ac_optarg in
20184    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20185    '') as_fn_error $? "missing file argument" ;;
20186    esac
20187    as_fn_append CONFIG_FILES " '$ac_optarg'"
20188    ac_need_defaults=false;;
20189  --header | --heade | --head | --hea )
20190    $ac_shift
20191    case $ac_optarg in
20192    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20193    esac
20194    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20195    ac_need_defaults=false;;
20196  --he | --h)
20197    # Conflict between --help and --header
20198    as_fn_error $? "ambiguous option: \`$1'
20199Try \`$0 --help' for more information.";;
20200  --help | --hel | -h )
20201    printf "%s\n" "$ac_cs_usage"; exit ;;
20202  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20203  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20204    ac_cs_silent=: ;;
20205
20206  # This is an error.
20207  -*) as_fn_error $? "unrecognized option: \`$1'
20208Try \`$0 --help' for more information." ;;
20209
20210  *) as_fn_append ac_config_targets " $1"
20211     ac_need_defaults=false ;;
20212
20213  esac
20214  shift
20215done
20216
20217ac_configure_extra_args=
20218
20219if $ac_cs_silent; then
20220  exec 6>/dev/null
20221  ac_configure_extra_args="$ac_configure_extra_args --silent"
20222fi
20223
20224_ACEOF
20225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20226if \$ac_cs_recheck; then
20227  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20228  shift
20229  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20230  CONFIG_SHELL='$SHELL'
20231  export CONFIG_SHELL
20232  exec "\$@"
20233fi
20234
20235_ACEOF
20236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20237exec 5>>config.log
20238{
20239  echo
20240  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20241## Running $as_me. ##
20242_ASBOX
20243  printf "%s\n" "$ac_log"
20244} >&5
20245
20246_ACEOF
20247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20248#
20249# INIT-COMMANDS
20250#
20251AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20252
20253
20254# The HP-UX ksh and POSIX shell print the target directory to stdout
20255# if CDPATH is set.
20256(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20257
20258sed_quote_subst='$sed_quote_subst'
20259double_quote_subst='$double_quote_subst'
20260delay_variable_subst='$delay_variable_subst'
20261macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20262macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20263enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20264enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20265pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20266enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20267shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20268SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20269ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20270PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20271host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20272host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20273host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20274build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20275build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20276build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20277SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20278Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20279GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20280EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20281FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20282LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20283NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20284LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20285max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20286ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20287exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20288lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20289lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20290lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20291lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20292lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20293reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20294reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20295FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20296OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20297deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20298file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20299file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20300want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20301DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20302sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20303AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20304lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20305AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20306archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20307STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20308RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20309old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20310old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20311old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20312lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20313CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20314CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20315compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20316GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20317lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20318lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20319lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20320lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20321lt_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"`'
20322lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20323nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20324lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20325lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20326objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20327MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20328lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20329lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20330lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20331lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20332lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20333need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20334MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20335DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20336NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20337LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20338OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20339OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20340libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20341shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20342extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20343archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20344enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20345export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20346whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20347compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20348old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20349old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20350archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20351archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20352module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20353module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20354with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20355allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20356no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20357hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20358hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20359hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20360hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20361hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20362hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20363hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20364inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20365link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20366always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20367export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20368exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20369include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20370prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20371postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20372file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20373variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20374need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20375need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20376version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20377runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20378shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20379shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20380libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20381library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20382soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20383install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20384postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20385postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20386finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20387finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20388hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20389sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20390configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20391configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20392hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20393enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20394enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20395enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20396old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20397striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20398
20399LTCC='$LTCC'
20400LTCFLAGS='$LTCFLAGS'
20401compiler='$compiler_DEFAULT'
20402
20403# A function that is used when there is no print builtin or printf.
20404func_fallback_echo ()
20405{
20406  eval 'cat <<_LTECHO_EOF
20407\$1
20408_LTECHO_EOF'
20409}
20410
20411# Quote evaled strings.
20412for var in SHELL \
20413ECHO \
20414PATH_SEPARATOR \
20415SED \
20416GREP \
20417EGREP \
20418FGREP \
20419LD \
20420NM \
20421LN_S \
20422lt_SP2NL \
20423lt_NL2SP \
20424reload_flag \
20425FILECMD \
20426OBJDUMP \
20427deplibs_check_method \
20428file_magic_cmd \
20429file_magic_glob \
20430want_nocaseglob \
20431DLLTOOL \
20432sharedlib_from_linklib_cmd \
20433AR \
20434archiver_list_spec \
20435STRIP \
20436RANLIB \
20437CC \
20438CFLAGS \
20439compiler \
20440lt_cv_sys_global_symbol_pipe \
20441lt_cv_sys_global_symbol_to_cdecl \
20442lt_cv_sys_global_symbol_to_import \
20443lt_cv_sys_global_symbol_to_c_name_address \
20444lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20445lt_cv_nm_interface \
20446nm_file_list_spec \
20447lt_cv_truncate_bin \
20448lt_prog_compiler_no_builtin_flag \
20449lt_prog_compiler_pic \
20450lt_prog_compiler_wl \
20451lt_prog_compiler_static \
20452lt_cv_prog_compiler_c_o \
20453need_locks \
20454MANIFEST_TOOL \
20455DSYMUTIL \
20456NMEDIT \
20457LIPO \
20458OTOOL \
20459OTOOL64 \
20460shrext_cmds \
20461export_dynamic_flag_spec \
20462whole_archive_flag_spec \
20463compiler_needs_object \
20464with_gnu_ld \
20465allow_undefined_flag \
20466no_undefined_flag \
20467hardcode_libdir_flag_spec \
20468hardcode_libdir_separator \
20469exclude_expsyms \
20470include_expsyms \
20471file_list_spec \
20472variables_saved_for_relink \
20473libname_spec \
20474library_names_spec \
20475soname_spec \
20476install_override_mode \
20477finish_eval \
20478old_striplib \
20479striplib; do
20480    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20481    *[\\\\\\\`\\"\\\$]*)
20482      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20483      ;;
20484    *)
20485      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20486      ;;
20487    esac
20488done
20489
20490# Double-quote double-evaled strings.
20491for var in reload_cmds \
20492old_postinstall_cmds \
20493old_postuninstall_cmds \
20494old_archive_cmds \
20495extract_expsyms_cmds \
20496old_archive_from_new_cmds \
20497old_archive_from_expsyms_cmds \
20498archive_cmds \
20499archive_expsym_cmds \
20500module_cmds \
20501module_expsym_cmds \
20502export_symbols_cmds \
20503prelink_cmds \
20504postlink_cmds \
20505postinstall_cmds \
20506postuninstall_cmds \
20507finish_cmds \
20508sys_lib_search_path_spec \
20509configure_time_dlsearch_path \
20510configure_time_lt_sys_library_path; do
20511    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20512    *[\\\\\\\`\\"\\\$]*)
20513      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20514      ;;
20515    *)
20516      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20517      ;;
20518    esac
20519done
20520
20521ac_aux_dir='$ac_aux_dir'
20522
20523# See if we are running on zsh, and set the options that allow our
20524# commands through without removal of \ escapes INIT.
20525if test -n "\${ZSH_VERSION+set}"; then
20526   setopt NO_GLOB_SUBST
20527fi
20528
20529
20530    PACKAGE='$PACKAGE'
20531    VERSION='$VERSION'
20532    RM='$RM'
20533    ofile='$ofile'
20534
20535
20536
20537
20538_ACEOF
20539
20540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20541
20542# Handling of arguments.
20543for ac_config_target in $ac_config_targets
20544do
20545  case $ac_config_target in
20546    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20547    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20548    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20549    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20550    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20551    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20552    "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;;
20553
20554  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20555  esac
20556done
20557
20558
20559# If the user did not use the arguments to specify the items to instantiate,
20560# then the envvar interface is used.  Set only those that are not.
20561# We use the long form for the default assignment because of an extremely
20562# bizarre bug on SunOS 4.1.3.
20563if $ac_need_defaults; then
20564  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20565  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20566  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20567fi
20568
20569# Have a temporary directory for convenience.  Make it in the build tree
20570# simply because there is no reason against having it here, and in addition,
20571# creating and moving files from /tmp can sometimes cause problems.
20572# Hook for its removal unless debugging.
20573# Note that there is a small window in which the directory will not be cleaned:
20574# after its creation but before its name has been assigned to `$tmp'.
20575$debug ||
20576{
20577  tmp= ac_tmp=
20578  trap 'exit_status=$?
20579  : "${ac_tmp:=$tmp}"
20580  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20581' 0
20582  trap 'as_fn_exit 1' 1 2 13 15
20583}
20584# Create a (secure) tmp directory for tmp files.
20585
20586{
20587  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20588  test -d "$tmp"
20589}  ||
20590{
20591  tmp=./conf$$-$RANDOM
20592  (umask 077 && mkdir "$tmp")
20593} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20594ac_tmp=$tmp
20595
20596# Set up the scripts for CONFIG_FILES section.
20597# No need to generate them if there are no CONFIG_FILES.
20598# This happens for instance with `./config.status config.h'.
20599if test -n "$CONFIG_FILES"; then
20600
20601
20602ac_cr=`echo X | tr X '\015'`
20603# On cygwin, bash can eat \r inside `` if the user requested igncr.
20604# But we know of no other shell where ac_cr would be empty at this
20605# point, so we can use a bashism as a fallback.
20606if test "x$ac_cr" = x; then
20607  eval ac_cr=\$\'\\r\'
20608fi
20609ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20610if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20611  ac_cs_awk_cr='\\r'
20612else
20613  ac_cs_awk_cr=$ac_cr
20614fi
20615
20616echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20617_ACEOF
20618
20619
20620{
20621  echo "cat >conf$$subs.awk <<_ACEOF" &&
20622  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20623  echo "_ACEOF"
20624} >conf$$subs.sh ||
20625  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20626ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20627ac_delim='%!_!# '
20628for ac_last_try in false false false false false :; do
20629  . ./conf$$subs.sh ||
20630    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20631
20632  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20633  if test $ac_delim_n = $ac_delim_num; then
20634    break
20635  elif $ac_last_try; then
20636    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20637  else
20638    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20639  fi
20640done
20641rm -f conf$$subs.sh
20642
20643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20644cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20645_ACEOF
20646sed -n '
20647h
20648s/^/S["/; s/!.*/"]=/
20649p
20650g
20651s/^[^!]*!//
20652:repl
20653t repl
20654s/'"$ac_delim"'$//
20655t delim
20656:nl
20657h
20658s/\(.\{148\}\)..*/\1/
20659t more1
20660s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20661p
20662n
20663b repl
20664:more1
20665s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20666p
20667g
20668s/.\{148\}//
20669t nl
20670:delim
20671h
20672s/\(.\{148\}\)..*/\1/
20673t more2
20674s/["\\]/\\&/g; s/^/"/; s/$/"/
20675p
20676b
20677:more2
20678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20679p
20680g
20681s/.\{148\}//
20682t delim
20683' <conf$$subs.awk | sed '
20684/^[^""]/{
20685  N
20686  s/\n//
20687}
20688' >>$CONFIG_STATUS || ac_write_fail=1
20689rm -f conf$$subs.awk
20690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20691_ACAWK
20692cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20693  for (key in S) S_is_set[key] = 1
20694  FS = ""
20695
20696}
20697{
20698  line = $ 0
20699  nfields = split(line, field, "@")
20700  substed = 0
20701  len = length(field[1])
20702  for (i = 2; i < nfields; i++) {
20703    key = field[i]
20704    keylen = length(key)
20705    if (S_is_set[key]) {
20706      value = S[key]
20707      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20708      len += length(value) + length(field[++i])
20709      substed = 1
20710    } else
20711      len += 1 + keylen
20712  }
20713
20714  print line
20715}
20716
20717_ACAWK
20718_ACEOF
20719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20721  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20722else
20723  cat
20724fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20725  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20726_ACEOF
20727
20728# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20729# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20730# trailing colons and then remove the whole line if VPATH becomes empty
20731# (actually we leave an empty line to preserve line numbers).
20732if test "x$srcdir" = x.; then
20733  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20734h
20735s///
20736s/^/:/
20737s/[	 ]*$/:/
20738s/:\$(srcdir):/:/g
20739s/:\${srcdir}:/:/g
20740s/:@srcdir@:/:/g
20741s/^:*//
20742s/:*$//
20743x
20744s/\(=[	 ]*\).*/\1/
20745G
20746s/\n//
20747s/^[^=]*=[	 ]*$//
20748}'
20749fi
20750
20751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20752fi # test -n "$CONFIG_FILES"
20753
20754# Set up the scripts for CONFIG_HEADERS section.
20755# No need to generate them if there are no CONFIG_HEADERS.
20756# This happens for instance with `./config.status Makefile'.
20757if test -n "$CONFIG_HEADERS"; then
20758cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20759BEGIN {
20760_ACEOF
20761
20762# Transform confdefs.h into an awk script `defines.awk', embedded as
20763# here-document in config.status, that substitutes the proper values into
20764# config.h.in to produce config.h.
20765
20766# Create a delimiter string that does not exist in confdefs.h, to ease
20767# handling of long lines.
20768ac_delim='%!_!# '
20769for ac_last_try in false false :; do
20770  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20771  if test -z "$ac_tt"; then
20772    break
20773  elif $ac_last_try; then
20774    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20775  else
20776    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20777  fi
20778done
20779
20780# For the awk script, D is an array of macro values keyed by name,
20781# likewise P contains macro parameters if any.  Preserve backslash
20782# newline sequences.
20783
20784ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20785sed -n '
20786s/.\{148\}/&'"$ac_delim"'/g
20787t rset
20788:rset
20789s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20790t def
20791d
20792:def
20793s/\\$//
20794t bsnl
20795s/["\\]/\\&/g
20796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20797D["\1"]=" \3"/p
20798s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20799d
20800:bsnl
20801s/["\\]/\\&/g
20802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20803D["\1"]=" \3\\\\\\n"\\/p
20804t cont
20805s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20806t cont
20807d
20808:cont
20809n
20810s/.\{148\}/&'"$ac_delim"'/g
20811t clear
20812:clear
20813s/\\$//
20814t bsnlc
20815s/["\\]/\\&/g; s/^/"/; s/$/"/p
20816d
20817:bsnlc
20818s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20819b cont
20820' <confdefs.h | sed '
20821s/'"$ac_delim"'/"\\\
20822"/g' >>$CONFIG_STATUS || ac_write_fail=1
20823
20824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20825  for (key in D) D_is_set[key] = 1
20826  FS = ""
20827}
20828/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20829  line = \$ 0
20830  split(line, arg, " ")
20831  if (arg[1] == "#") {
20832    defundef = arg[2]
20833    mac1 = arg[3]
20834  } else {
20835    defundef = substr(arg[1], 2)
20836    mac1 = arg[2]
20837  }
20838  split(mac1, mac2, "(") #)
20839  macro = mac2[1]
20840  prefix = substr(line, 1, index(line, defundef) - 1)
20841  if (D_is_set[macro]) {
20842    # Preserve the white space surrounding the "#".
20843    print prefix "define", macro P[macro] D[macro]
20844    next
20845  } else {
20846    # Replace #undef with comments.  This is necessary, for example,
20847    # in the case of _POSIX_SOURCE, which is predefined and required
20848    # on some systems where configure will not decide to define it.
20849    if (defundef == "undef") {
20850      print "/*", prefix defundef, macro, "*/"
20851      next
20852    }
20853  }
20854}
20855{ print }
20856_ACAWK
20857_ACEOF
20858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20859  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20860fi # test -n "$CONFIG_HEADERS"
20861
20862
20863eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20864shift
20865for ac_tag
20866do
20867  case $ac_tag in
20868  :[FHLC]) ac_mode=$ac_tag; continue;;
20869  esac
20870  case $ac_mode$ac_tag in
20871  :[FHL]*:*);;
20872  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20873  :[FH]-) ac_tag=-:-;;
20874  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20875  esac
20876  ac_save_IFS=$IFS
20877  IFS=:
20878  set x $ac_tag
20879  IFS=$ac_save_IFS
20880  shift
20881  ac_file=$1
20882  shift
20883
20884  case $ac_mode in
20885  :L) ac_source=$1;;
20886  :[FH])
20887    ac_file_inputs=
20888    for ac_f
20889    do
20890      case $ac_f in
20891      -) ac_f="$ac_tmp/stdin";;
20892      *) # Look for the file first in the build tree, then in the source tree
20893	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20894	 # because $ac_f cannot contain `:'.
20895	 test -f "$ac_f" ||
20896	   case $ac_f in
20897	   [\\/$]*) false;;
20898	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20899	   esac ||
20900	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20901      esac
20902      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20903      as_fn_append ac_file_inputs " '$ac_f'"
20904    done
20905
20906    # Let's still pretend it is `configure' which instantiates (i.e., don't
20907    # use $as_me), people would be surprised to read:
20908    #    /* config.h.  Generated by config.status.  */
20909    configure_input='Generated from '`
20910	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20911	`' by configure.'
20912    if test x"$ac_file" != x-; then
20913      configure_input="$ac_file.  $configure_input"
20914      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20915printf "%s\n" "$as_me: creating $ac_file" >&6;}
20916    fi
20917    # Neutralize special characters interpreted by sed in replacement strings.
20918    case $configure_input in #(
20919    *\&* | *\|* | *\\* )
20920       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20921       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20922    *) ac_sed_conf_input=$configure_input;;
20923    esac
20924
20925    case $ac_tag in
20926    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20927      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20928    esac
20929    ;;
20930  esac
20931
20932  ac_dir=`$as_dirname -- "$ac_file" ||
20933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20934	 X"$ac_file" : 'X\(//\)[^/]' \| \
20935	 X"$ac_file" : 'X\(//\)$' \| \
20936	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20937printf "%s\n" X"$ac_file" |
20938    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20939	    s//\1/
20940	    q
20941	  }
20942	  /^X\(\/\/\)[^/].*/{
20943	    s//\1/
20944	    q
20945	  }
20946	  /^X\(\/\/\)$/{
20947	    s//\1/
20948	    q
20949	  }
20950	  /^X\(\/\).*/{
20951	    s//\1/
20952	    q
20953	  }
20954	  s/.*/./; q'`
20955  as_dir="$ac_dir"; as_fn_mkdir_p
20956  ac_builddir=.
20957
20958case "$ac_dir" in
20959.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20960*)
20961  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20962  # A ".." for each directory in $ac_dir_suffix.
20963  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20964  case $ac_top_builddir_sub in
20965  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20966  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20967  esac ;;
20968esac
20969ac_abs_top_builddir=$ac_pwd
20970ac_abs_builddir=$ac_pwd$ac_dir_suffix
20971# for backward compatibility:
20972ac_top_builddir=$ac_top_build_prefix
20973
20974case $srcdir in
20975  .)  # We are building in place.
20976    ac_srcdir=.
20977    ac_top_srcdir=$ac_top_builddir_sub
20978    ac_abs_top_srcdir=$ac_pwd ;;
20979  [\\/]* | ?:[\\/]* )  # Absolute name.
20980    ac_srcdir=$srcdir$ac_dir_suffix;
20981    ac_top_srcdir=$srcdir
20982    ac_abs_top_srcdir=$srcdir ;;
20983  *) # Relative name.
20984    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20985    ac_top_srcdir=$ac_top_build_prefix$srcdir
20986    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20987esac
20988ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20989
20990
20991  case $ac_mode in
20992  :F)
20993  #
20994  # CONFIG_FILE
20995  #
20996
20997  case $INSTALL in
20998  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20999  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21000  esac
21001  ac_MKDIR_P=$MKDIR_P
21002  case $MKDIR_P in
21003  [\\/$]* | ?:[\\/]* ) ;;
21004  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21005  esac
21006_ACEOF
21007
21008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21009# If the template does not know about datarootdir, expand it.
21010# FIXME: This hack should be removed a few years after 2.60.
21011ac_datarootdir_hack=; ac_datarootdir_seen=
21012ac_sed_dataroot='
21013/datarootdir/ {
21014  p
21015  q
21016}
21017/@datadir@/p
21018/@docdir@/p
21019/@infodir@/p
21020/@localedir@/p
21021/@mandir@/p'
21022case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21023*datarootdir*) ac_datarootdir_seen=yes;;
21024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21025  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21026printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21027_ACEOF
21028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21029  ac_datarootdir_hack='
21030  s&@datadir@&$datadir&g
21031  s&@docdir@&$docdir&g
21032  s&@infodir@&$infodir&g
21033  s&@localedir@&$localedir&g
21034  s&@mandir@&$mandir&g
21035  s&\\\${datarootdir}&$datarootdir&g' ;;
21036esac
21037_ACEOF
21038
21039# Neutralize VPATH when `$srcdir' = `.'.
21040# Shell code in configure.ac might set extrasub.
21041# FIXME: do we really want to maintain this feature?
21042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21043ac_sed_extra="$ac_vpsub
21044$extrasub
21045_ACEOF
21046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21047:t
21048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21049s|@configure_input@|$ac_sed_conf_input|;t t
21050s&@top_builddir@&$ac_top_builddir_sub&;t t
21051s&@top_build_prefix@&$ac_top_build_prefix&;t t
21052s&@srcdir@&$ac_srcdir&;t t
21053s&@abs_srcdir@&$ac_abs_srcdir&;t t
21054s&@top_srcdir@&$ac_top_srcdir&;t t
21055s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21056s&@builddir@&$ac_builddir&;t t
21057s&@abs_builddir@&$ac_abs_builddir&;t t
21058s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21059s&@INSTALL@&$ac_INSTALL&;t t
21060s&@MKDIR_P@&$ac_MKDIR_P&;t t
21061$ac_datarootdir_hack
21062"
21063eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21064  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21065
21066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21067  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21068  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21069      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21071which seems to be undefined.  Please make sure it is defined" >&5
21072printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21073which seems to be undefined.  Please make sure it is defined" >&2;}
21074
21075  rm -f "$ac_tmp/stdin"
21076  case $ac_file in
21077  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21078  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21079  esac \
21080  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21081 ;;
21082  :H)
21083  #
21084  # CONFIG_HEADER
21085  #
21086  if test x"$ac_file" != x-; then
21087    {
21088      printf "%s\n" "/* $configure_input  */" >&1 \
21089      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21090    } >"$ac_tmp/config.h" \
21091      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21092    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21093      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21094printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21095    else
21096      rm -f "$ac_file"
21097      mv "$ac_tmp/config.h" "$ac_file" \
21098	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21099    fi
21100  else
21101    printf "%s\n" "/* $configure_input  */" >&1 \
21102      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21103      || as_fn_error $? "could not create -" "$LINENO" 5
21104  fi
21105# Compute "$ac_file"'s index in $config_headers.
21106_am_arg="$ac_file"
21107_am_stamp_count=1
21108for _am_header in $config_headers :; do
21109  case $_am_header in
21110    $_am_arg | $_am_arg:* )
21111      break ;;
21112    * )
21113      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21114  esac
21115done
21116echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21117$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21118	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21119	 X"$_am_arg" : 'X\(//\)$' \| \
21120	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21121printf "%s\n" X"$_am_arg" |
21122    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21123	    s//\1/
21124	    q
21125	  }
21126	  /^X\(\/\/\)[^/].*/{
21127	    s//\1/
21128	    q
21129	  }
21130	  /^X\(\/\/\)$/{
21131	    s//\1/
21132	    q
21133	  }
21134	  /^X\(\/\).*/{
21135	    s//\1/
21136	    q
21137	  }
21138	  s/.*/./; q'`/stamp-h$_am_stamp_count
21139 ;;
21140
21141  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21142printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21143 ;;
21144  esac
21145
21146
21147  case $ac_file$ac_mode in
21148    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21149  # Older Autoconf quotes --file arguments for eval, but not when files
21150  # are listed without --file.  Let's play safe and only enable the eval
21151  # if we detect the quoting.
21152  # TODO: see whether this extra hack can be removed once we start
21153  # requiring Autoconf 2.70 or later.
21154  case $CONFIG_FILES in #(
21155  *\'*) :
21156    eval set x "$CONFIG_FILES" ;; #(
21157  *) :
21158    set x $CONFIG_FILES ;; #(
21159  *) :
21160     ;;
21161esac
21162  shift
21163  # Used to flag and report bootstrapping failures.
21164  am_rc=0
21165  for am_mf
21166  do
21167    # Strip MF so we end up with the name of the file.
21168    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21169    # Check whether this is an Automake generated Makefile which includes
21170    # dependency-tracking related rules and includes.
21171    # Grep'ing the whole file directly is not great: AIX grep has a line
21172    # limit of 2048, but all sed's we know have understand at least 4000.
21173    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21174      || continue
21175    am_dirpart=`$as_dirname -- "$am_mf" ||
21176$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21177	 X"$am_mf" : 'X\(//\)[^/]' \| \
21178	 X"$am_mf" : 'X\(//\)$' \| \
21179	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21180printf "%s\n" X"$am_mf" |
21181    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21182	    s//\1/
21183	    q
21184	  }
21185	  /^X\(\/\/\)[^/].*/{
21186	    s//\1/
21187	    q
21188	  }
21189	  /^X\(\/\/\)$/{
21190	    s//\1/
21191	    q
21192	  }
21193	  /^X\(\/\).*/{
21194	    s//\1/
21195	    q
21196	  }
21197	  s/.*/./; q'`
21198    am_filepart=`$as_basename -- "$am_mf" ||
21199$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21200	 X"$am_mf" : 'X\(//\)$' \| \
21201	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21202printf "%s\n" X/"$am_mf" |
21203    sed '/^.*\/\([^/][^/]*\)\/*$/{
21204	    s//\1/
21205	    q
21206	  }
21207	  /^X\/\(\/\/\)$/{
21208	    s//\1/
21209	    q
21210	  }
21211	  /^X\/\(\/\).*/{
21212	    s//\1/
21213	    q
21214	  }
21215	  s/.*/./; q'`
21216    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21217      && sed -e '/# am--include-marker/d' "$am_filepart" \
21218        | $MAKE -f - am--depfiles" >&5
21219   (cd "$am_dirpart" \
21220      && sed -e '/# am--include-marker/d' "$am_filepart" \
21221        | $MAKE -f - am--depfiles) >&5 2>&5
21222   ac_status=$?
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); } || am_rc=$?
21225  done
21226  if test $am_rc -ne 0; then
21227    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21228printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21229as_fn_error $? "Something went wrong bootstrapping makefile fragments
21230    for automatic dependency tracking.  If GNU make was not used, consider
21231    re-running the configure script with MAKE=\"gmake\" (or whatever is
21232    necessary).  You can also try re-running configure with the
21233    '--disable-dependency-tracking' option to at least be able to build
21234    the package (albeit without support for automatic dependency tracking).
21235See \`config.log' for more details" "$LINENO" 5; }
21236  fi
21237  { am_dirpart=; unset am_dirpart;}
21238  { am_filepart=; unset am_filepart;}
21239  { am_mf=; unset am_mf;}
21240  { am_rc=; unset am_rc;}
21241  rm -f conftest-deps.mk
21242}
21243 ;;
21244    "libtool":C)
21245
21246    # See if we are running on zsh, and set the options that allow our
21247    # commands through without removal of \ escapes.
21248    if test -n "${ZSH_VERSION+set}"; then
21249      setopt NO_GLOB_SUBST
21250    fi
21251
21252    cfgfile=${ofile}T
21253    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21254    $RM "$cfgfile"
21255
21256    cat <<_LT_EOF >> "$cfgfile"
21257#! $SHELL
21258# Generated automatically by $as_me ($PACKAGE) $VERSION
21259# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21260# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21261
21262# Provide generalized library-building support services.
21263# Written by Gordon Matzigkeit, 1996
21264
21265# Copyright (C) 2014 Free Software Foundation, Inc.
21266# This is free software; see the source for copying conditions.  There is NO
21267# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21268
21269# GNU Libtool is free software; you can redistribute it and/or modify
21270# it under the terms of the GNU General Public License as published by
21271# the Free Software Foundation; either version 2 of of the License, or
21272# (at your option) any later version.
21273#
21274# As a special exception to the GNU General Public License, if you
21275# distribute this file as part of a program or library that is built
21276# using GNU Libtool, you may include this file under the  same
21277# distribution terms that you use for the rest of that program.
21278#
21279# GNU Libtool is distributed in the hope that it will be useful, but
21280# WITHOUT ANY WARRANTY; without even the implied warranty of
21281# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21282# GNU General Public License for more details.
21283#
21284# You should have received a copy of the GNU General Public License
21285# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21286
21287
21288# The names of the tagged configurations supported by this script.
21289available_tags=''
21290
21291# Configured defaults for sys_lib_dlsearch_path munging.
21292: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21293
21294# ### BEGIN LIBTOOL CONFIG
21295
21296# Which release of libtool.m4 was used?
21297macro_version=$macro_version
21298macro_revision=$macro_revision
21299
21300# Whether or not to build shared libraries.
21301build_libtool_libs=$enable_shared
21302
21303# Whether or not to build static libraries.
21304build_old_libs=$enable_static
21305
21306# What type of objects to build.
21307pic_mode=$pic_mode
21308
21309# Whether or not to optimize for fast installation.
21310fast_install=$enable_fast_install
21311
21312# Shared archive member basename,for filename based shared library versioning on AIX.
21313shared_archive_member_spec=$shared_archive_member_spec
21314
21315# Shell to use when invoking shell scripts.
21316SHELL=$lt_SHELL
21317
21318# An echo program that protects backslashes.
21319ECHO=$lt_ECHO
21320
21321# The PATH separator for the build system.
21322PATH_SEPARATOR=$lt_PATH_SEPARATOR
21323
21324# The host system.
21325host_alias=$host_alias
21326host=$host
21327host_os=$host_os
21328
21329# The build system.
21330build_alias=$build_alias
21331build=$build
21332build_os=$build_os
21333
21334# A sed program that does not truncate output.
21335SED=$lt_SED
21336
21337# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21338Xsed="\$SED -e 1s/^X//"
21339
21340# A grep program that handles long lines.
21341GREP=$lt_GREP
21342
21343# An ERE matcher.
21344EGREP=$lt_EGREP
21345
21346# A literal string matcher.
21347FGREP=$lt_FGREP
21348
21349# A BSD- or MS-compatible name lister.
21350NM=$lt_NM
21351
21352# Whether we need soft or hard links.
21353LN_S=$lt_LN_S
21354
21355# What is the maximum length of a command?
21356max_cmd_len=$max_cmd_len
21357
21358# Object file suffix (normally "o").
21359objext=$ac_objext
21360
21361# Executable file suffix (normally "").
21362exeext=$exeext
21363
21364# whether the shell understands "unset".
21365lt_unset=$lt_unset
21366
21367# turn spaces into newlines.
21368SP2NL=$lt_lt_SP2NL
21369
21370# turn newlines into spaces.
21371NL2SP=$lt_lt_NL2SP
21372
21373# convert \$build file names to \$host format.
21374to_host_file_cmd=$lt_cv_to_host_file_cmd
21375
21376# convert \$build files to toolchain format.
21377to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21378
21379# A file(cmd) program that detects file types.
21380FILECMD=$lt_FILECMD
21381
21382# An object symbol dumper.
21383OBJDUMP=$lt_OBJDUMP
21384
21385# Method to check whether dependent libraries are shared objects.
21386deplibs_check_method=$lt_deplibs_check_method
21387
21388# Command to use when deplibs_check_method = "file_magic".
21389file_magic_cmd=$lt_file_magic_cmd
21390
21391# How to find potential files when deplibs_check_method = "file_magic".
21392file_magic_glob=$lt_file_magic_glob
21393
21394# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21395want_nocaseglob=$lt_want_nocaseglob
21396
21397# DLL creation program.
21398DLLTOOL=$lt_DLLTOOL
21399
21400# Command to associate shared and link libraries.
21401sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21402
21403# The archiver.
21404AR=$lt_AR
21405
21406# Flags to create an archive (by configure).
21407lt_ar_flags=$lt_ar_flags
21408
21409# Flags to create an archive.
21410AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21411
21412# How to feed a file listing to the archiver.
21413archiver_list_spec=$lt_archiver_list_spec
21414
21415# A symbol stripping program.
21416STRIP=$lt_STRIP
21417
21418# Commands used to install an old-style archive.
21419RANLIB=$lt_RANLIB
21420old_postinstall_cmds=$lt_old_postinstall_cmds
21421old_postuninstall_cmds=$lt_old_postuninstall_cmds
21422
21423# Whether to use a lock for old archive extraction.
21424lock_old_archive_extraction=$lock_old_archive_extraction
21425
21426# A C compiler.
21427LTCC=$lt_CC
21428
21429# LTCC compiler flags.
21430LTCFLAGS=$lt_CFLAGS
21431
21432# Take the output of nm and produce a listing of raw symbols and C names.
21433global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21434
21435# Transform the output of nm in a proper C declaration.
21436global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21437
21438# Transform the output of nm into a list of symbols to manually relocate.
21439global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21440
21441# Transform the output of nm in a C name address pair.
21442global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21443
21444# Transform the output of nm in a C name address pair when lib prefix is needed.
21445global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21446
21447# The name lister interface.
21448nm_interface=$lt_lt_cv_nm_interface
21449
21450# Specify filename containing input files for \$NM.
21451nm_file_list_spec=$lt_nm_file_list_spec
21452
21453# The root where to search for dependent libraries,and where our libraries should be installed.
21454lt_sysroot=$lt_sysroot
21455
21456# Command to truncate a binary pipe.
21457lt_truncate_bin=$lt_lt_cv_truncate_bin
21458
21459# The name of the directory that contains temporary libtool files.
21460objdir=$objdir
21461
21462# Used to examine libraries when file_magic_cmd begins with "file".
21463MAGIC_CMD=$MAGIC_CMD
21464
21465# Must we lock files when doing compilation?
21466need_locks=$lt_need_locks
21467
21468# Manifest tool.
21469MANIFEST_TOOL=$lt_MANIFEST_TOOL
21470
21471# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21472DSYMUTIL=$lt_DSYMUTIL
21473
21474# Tool to change global to local symbols on Mac OS X.
21475NMEDIT=$lt_NMEDIT
21476
21477# Tool to manipulate fat objects and archives on Mac OS X.
21478LIPO=$lt_LIPO
21479
21480# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21481OTOOL=$lt_OTOOL
21482
21483# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21484OTOOL64=$lt_OTOOL64
21485
21486# Old archive suffix (normally "a").
21487libext=$libext
21488
21489# Shared library suffix (normally ".so").
21490shrext_cmds=$lt_shrext_cmds
21491
21492# The commands to extract the exported symbol list from a shared archive.
21493extract_expsyms_cmds=$lt_extract_expsyms_cmds
21494
21495# Variables whose values should be saved in libtool wrapper scripts and
21496# restored at link time.
21497variables_saved_for_relink=$lt_variables_saved_for_relink
21498
21499# Do we need the "lib" prefix for modules?
21500need_lib_prefix=$need_lib_prefix
21501
21502# Do we need a version for libraries?
21503need_version=$need_version
21504
21505# Library versioning type.
21506version_type=$version_type
21507
21508# Shared library runtime path variable.
21509runpath_var=$runpath_var
21510
21511# Shared library path variable.
21512shlibpath_var=$shlibpath_var
21513
21514# Is shlibpath searched before the hard-coded library search path?
21515shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21516
21517# Format of library name prefix.
21518libname_spec=$lt_libname_spec
21519
21520# List of archive names.  First name is the real one, the rest are links.
21521# The last name is the one that the linker finds with -lNAME
21522library_names_spec=$lt_library_names_spec
21523
21524# The coded name of the library, if different from the real name.
21525soname_spec=$lt_soname_spec
21526
21527# Permission mode override for installation of shared libraries.
21528install_override_mode=$lt_install_override_mode
21529
21530# Command to use after installation of a shared archive.
21531postinstall_cmds=$lt_postinstall_cmds
21532
21533# Command to use after uninstallation of a shared archive.
21534postuninstall_cmds=$lt_postuninstall_cmds
21535
21536# Commands used to finish a libtool library installation in a directory.
21537finish_cmds=$lt_finish_cmds
21538
21539# As "finish_cmds", except a single script fragment to be evaled but
21540# not shown.
21541finish_eval=$lt_finish_eval
21542
21543# Whether we should hardcode library paths into libraries.
21544hardcode_into_libs=$hardcode_into_libs
21545
21546# Compile-time system search path for libraries.
21547sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21548
21549# Detected run-time system search path for libraries.
21550sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21551
21552# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21553configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21554
21555# Whether dlopen is supported.
21556dlopen_support=$enable_dlopen
21557
21558# Whether dlopen of programs is supported.
21559dlopen_self=$enable_dlopen_self
21560
21561# Whether dlopen of statically linked programs is supported.
21562dlopen_self_static=$enable_dlopen_self_static
21563
21564# Commands to strip libraries.
21565old_striplib=$lt_old_striplib
21566striplib=$lt_striplib
21567
21568
21569# The linker used to build libraries.
21570LD=$lt_LD
21571
21572# How to create reloadable object files.
21573reload_flag=$lt_reload_flag
21574reload_cmds=$lt_reload_cmds
21575
21576# Commands used to build an old-style archive.
21577old_archive_cmds=$lt_old_archive_cmds
21578
21579# A language specific compiler.
21580CC=$lt_compiler
21581
21582# Is the compiler the GNU compiler?
21583with_gcc=$GCC
21584
21585# Compiler flag to turn off builtin functions.
21586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21587
21588# Additional compiler flags for building library objects.
21589pic_flag=$lt_lt_prog_compiler_pic
21590
21591# How to pass a linker flag through the compiler.
21592wl=$lt_lt_prog_compiler_wl
21593
21594# Compiler flag to prevent dynamic linking.
21595link_static_flag=$lt_lt_prog_compiler_static
21596
21597# Does compiler simultaneously support -c and -o options?
21598compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21599
21600# Whether or not to add -lc for building shared libraries.
21601build_libtool_need_lc=$archive_cmds_need_lc
21602
21603# Whether or not to disallow shared libs when runtime libs are static.
21604allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21605
21606# Compiler flag to allow reflexive dlopens.
21607export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21608
21609# Compiler flag to generate shared objects directly from archives.
21610whole_archive_flag_spec=$lt_whole_archive_flag_spec
21611
21612# Whether the compiler copes with passing no objects directly.
21613compiler_needs_object=$lt_compiler_needs_object
21614
21615# Create an old-style archive from a shared archive.
21616old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21617
21618# Create a temporary old-style archive to link instead of a shared archive.
21619old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21620
21621# Commands used to build a shared archive.
21622archive_cmds=$lt_archive_cmds
21623archive_expsym_cmds=$lt_archive_expsym_cmds
21624
21625# Commands used to build a loadable module if different from building
21626# a shared archive.
21627module_cmds=$lt_module_cmds
21628module_expsym_cmds=$lt_module_expsym_cmds
21629
21630# Whether we are building with GNU ld or not.
21631with_gnu_ld=$lt_with_gnu_ld
21632
21633# Flag that allows shared libraries with undefined symbols to be built.
21634allow_undefined_flag=$lt_allow_undefined_flag
21635
21636# Flag that enforces no undefined symbols.
21637no_undefined_flag=$lt_no_undefined_flag
21638
21639# Flag to hardcode \$libdir into a binary during linking.
21640# This must work even if \$libdir does not exist
21641hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21642
21643# Whether we need a single "-rpath" flag with a separated argument.
21644hardcode_libdir_separator=$lt_hardcode_libdir_separator
21645
21646# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21647# DIR into the resulting binary.
21648hardcode_direct=$hardcode_direct
21649
21650# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21651# DIR into the resulting binary and the resulting library dependency is
21652# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21653# library is relocated.
21654hardcode_direct_absolute=$hardcode_direct_absolute
21655
21656# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21657# into the resulting binary.
21658hardcode_minus_L=$hardcode_minus_L
21659
21660# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21661# into the resulting binary.
21662hardcode_shlibpath_var=$hardcode_shlibpath_var
21663
21664# Set to "yes" if building a shared library automatically hardcodes DIR
21665# into the library and all subsequent libraries and executables linked
21666# against it.
21667hardcode_automatic=$hardcode_automatic
21668
21669# Set to yes if linker adds runtime paths of dependent libraries
21670# to runtime path list.
21671inherit_rpath=$inherit_rpath
21672
21673# Whether libtool must link a program against all its dependency libraries.
21674link_all_deplibs=$link_all_deplibs
21675
21676# Set to "yes" if exported symbols are required.
21677always_export_symbols=$always_export_symbols
21678
21679# The commands to list exported symbols.
21680export_symbols_cmds=$lt_export_symbols_cmds
21681
21682# Symbols that should not be listed in the preloaded symbols.
21683exclude_expsyms=$lt_exclude_expsyms
21684
21685# Symbols that must always be exported.
21686include_expsyms=$lt_include_expsyms
21687
21688# Commands necessary for linking programs (against libraries) with templates.
21689prelink_cmds=$lt_prelink_cmds
21690
21691# Commands necessary for finishing linking programs.
21692postlink_cmds=$lt_postlink_cmds
21693
21694# Specify filename containing input files.
21695file_list_spec=$lt_file_list_spec
21696
21697# How to hardcode a shared library path into an executable.
21698hardcode_action=$hardcode_action
21699
21700# ### END LIBTOOL CONFIG
21701
21702_LT_EOF
21703
21704    cat <<'_LT_EOF' >> "$cfgfile"
21705
21706# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21707
21708# func_munge_path_list VARIABLE PATH
21709# -----------------------------------
21710# VARIABLE is name of variable containing _space_ separated list of
21711# directories to be munged by the contents of PATH, which is string
21712# having a format:
21713# "DIR[:DIR]:"
21714#       string "DIR[ DIR]" will be prepended to VARIABLE
21715# ":DIR[:DIR]"
21716#       string "DIR[ DIR]" will be appended to VARIABLE
21717# "DIRP[:DIRP]::[DIRA:]DIRA"
21718#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21719#       "DIRA[ DIRA]" will be appended to VARIABLE
21720# "DIR[:DIR]"
21721#       VARIABLE will be replaced by "DIR[ DIR]"
21722func_munge_path_list ()
21723{
21724    case x$2 in
21725    x)
21726        ;;
21727    *:)
21728        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21729        ;;
21730    x:*)
21731        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21732        ;;
21733    *::*)
21734        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21735        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21736        ;;
21737    *)
21738        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21739        ;;
21740    esac
21741}
21742
21743
21744# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21745func_cc_basename ()
21746{
21747    for cc_temp in $*""; do
21748      case $cc_temp in
21749        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21750        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21751        \-*) ;;
21752        *) break;;
21753      esac
21754    done
21755    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21756}
21757
21758
21759# ### END FUNCTIONS SHARED WITH CONFIGURE
21760
21761_LT_EOF
21762
21763  case $host_os in
21764  aix3*)
21765    cat <<\_LT_EOF >> "$cfgfile"
21766# AIX sometimes has problems with the GCC collect2 program.  For some
21767# reason, if we set the COLLECT_NAMES environment variable, the problems
21768# vanish in a puff of smoke.
21769if test set != "${COLLECT_NAMES+set}"; then
21770  COLLECT_NAMES=
21771  export COLLECT_NAMES
21772fi
21773_LT_EOF
21774    ;;
21775  esac
21776
21777
21778
21779ltmain=$ac_aux_dir/ltmain.sh
21780
21781
21782  # We use sed instead of cat because bash on DJGPP gets confused if
21783  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21784  # text mode, it properly converts lines to CR/LF.  This bash problem
21785  # is reportedly fixed, but why not run on old versions too?
21786  $SED '$q' "$ltmain" >> "$cfgfile" \
21787     || (rm -f "$cfgfile"; exit 1)
21788
21789   mv -f "$cfgfile" "$ofile" ||
21790    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21791  chmod +x "$ofile"
21792
21793 ;;
21794
21795  esac
21796done # for ac_tag
21797
21798
21799as_fn_exit 0
21800_ACEOF
21801ac_clean_files=$ac_clean_files_save
21802
21803test $ac_write_fail = 0 ||
21804  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21805
21806
21807# configure is writing to config.log, and then calls config.status.
21808# config.status does its own redirection, appending to config.log.
21809# Unfortunately, on DOS this fails, as config.log is still kept open
21810# by configure, so config.status won't be able to write to it; its
21811# output is simply discarded.  So we exec the FD to /dev/null,
21812# effectively closing config.log, so it can be properly (re)opened and
21813# appended to by config.status.  When coming back to configure, we
21814# need to make the FD available again.
21815if test "$no_create" != yes; then
21816  ac_cs_success=:
21817  ac_config_status_args=
21818  test "$silent" = yes &&
21819    ac_config_status_args="$ac_config_status_args --quiet"
21820  exec 5>/dev/null
21821  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21822  exec 5>>config.log
21823  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21824  # would make configure fail if this is the last instruction.
21825  $ac_cs_success || as_fn_exit 1
21826fi
21827if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21829printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21830fi
21831
21832
21833