1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libXrender 0.9.12.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
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 case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195test \$(( 1 + 1 )) = 2 || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='libXrender'
617PACKAGE_TARNAME='libXrender'
618PACKAGE_VERSION='0.9.12'
619PACKAGE_STRING='libXrender 0.9.12'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues'
621PACKAGE_URL=''
622
623ac_unique_file="Makefile.am"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656ac_subst_vars='am__EXEEXT_FALSE
657am__EXEEXT_TRUE
658LTLIBOBJS
659LIBOBJS
660RENDER_LIBS
661RENDER_CFLAGS
662RENDER_VERSION
663XTMALLOC_ZERO_CFLAGS
664XMALLOC_ZERO_CFLAGS
665MALLOC_ZERO_CFLAGS
666MAN_SUBSTS
667XORG_MAN_PAGE
668ADMIN_MAN_DIR
669DRIVER_MAN_DIR
670MISC_MAN_DIR
671FILE_MAN_DIR
672LIB_MAN_DIR
673APP_MAN_DIR
674ADMIN_MAN_SUFFIX
675DRIVER_MAN_SUFFIX
676MISC_MAN_SUFFIX
677FILE_MAN_SUFFIX
678LIB_MAN_SUFFIX
679APP_MAN_SUFFIX
680INSTALL_CMD
681PKG_CONFIG_LIBDIR
682PKG_CONFIG_PATH
683PKG_CONFIG
684CHANGELOG_CMD
685STRICT_CFLAGS
686CWARNFLAGS
687BASE_CFLAGS
688LT_SYS_LIBRARY_PATH
689OTOOL64
690OTOOL
691LIPO
692NMEDIT
693DSYMUTIL
694MANIFEST_TOOL
695RANLIB
696ac_ct_AR
697AR
698DLLTOOL
699OBJDUMP
700FILECMD
701LN_S
702NM
703ac_ct_DUMPBIN
704DUMPBIN
705LD
706FGREP
707EGREP
708GREP
709SED
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
713am__nodep
714AMDEPBACKSLASH
715AMDEP_FALSE
716AMDEP_TRUE
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726host_os
727host_vendor
728host_cpu
729host
730build_os
731build_vendor
732build_cpu
733build
734LIBTOOL
735am__xargs_n
736am__rm_f_notfound
737AM_BACKSLASH
738AM_DEFAULT_VERBOSITY
739AM_DEFAULT_V
740AM_V
741CSCOPE
742ETAGS
743CTAGS
744am__untar
745am__tar
746AMTAR
747am__leading_dot
748SET_MAKE
749AWK
750mkdir_p
751MKDIR_P
752INSTALL_STRIP_PROGRAM
753STRIP
754install_sh
755MAKEINFO
756AUTOHEADER
757AUTOMAKE
758AUTOCONF
759ACLOCAL
760VERSION
761PACKAGE
762CYGPATH_W
763am__isrc
764INSTALL_DATA
765INSTALL_SCRIPT
766INSTALL_PROGRAM
767PACKAGE_BRIEF
768target_alias
769host_alias
770build_alias
771LIBS
772ECHO_T
773ECHO_N
774ECHO_C
775DEFS
776mandir
777localedir
778libdir
779psdir
780pdfdir
781dvidir
782htmldir
783infodir
784docdir
785oldincludedir
786includedir
787runstatedir
788localstatedir
789sharedstatedir
790sysconfdir
791datadir
792datarootdir
793libexecdir
794sbindir
795bindir
796program_transform_name
797prefix
798exec_prefix
799PACKAGE_URL
800PACKAGE_BUGREPORT
801PACKAGE_STRING
802PACKAGE_VERSION
803PACKAGE_TARNAME
804PACKAGE_NAME
805PATH_SEPARATOR
806SHELL
807am__quote'
808ac_subst_files=''
809ac_user_opts='
810enable_option_checking
811enable_silent_rules
812enable_shared
813enable_static
814enable_pic
815with_pic
816enable_fast_install
817enable_aix_soname
818with_aix_soname
819enable_dependency_tracking
820with_gnu_ld
821with_sysroot
822enable_libtool_lock
823enable_selective_werror
824enable_strict_compilation
825enable_malloc0returnsnull
826'
827      ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
835LT_SYS_LIBRARY_PATH
836PKG_CONFIG
837PKG_CONFIG_PATH
838PKG_CONFIG_LIBDIR
839RENDER_CFLAGS
840RENDER_LIBS'
841
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
846ac_unrecognized_opts=
847ac_unrecognized_sep=
848# The variables have the same names as the options, with
849# dashes changed to underlines.
850cache_file=/dev/null
851exec_prefix=NONE
852no_create=
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
861verbose=
862x_includes=NONE
863x_libraries=NONE
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
870# (The list follows the same order as the GNU Coding Standards.)
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
879runstatedir='${localstatedir}/run'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896  # If the previous option needs an argument, assign it.
897  if test -n "$ac_prev"; then
898    eval $ac_prev=\$ac_option
899    ac_prev=
900    continue
901  fi
902
903  case $ac_option in
904  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905  *=)   ac_optarg= ;;
906  *)    ac_optarg=yes ;;
907  esac
908
909  case $ac_dashdash$ac_option in
910  --)
911    ac_dashdash=yes ;;
912
913  -bindir | --bindir | --bindi | --bind | --bin | --bi)
914    ac_prev=bindir ;;
915  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916    bindir=$ac_optarg ;;
917
918  -build | --build | --buil | --bui | --bu)
919    ac_prev=build_alias ;;
920  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921    build_alias=$ac_optarg ;;
922
923  -cache-file | --cache-file | --cache-fil | --cache-fi \
924  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925    ac_prev=cache_file ;;
926  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928    cache_file=$ac_optarg ;;
929
930  --config-cache | -C)
931    cache_file=config.cache ;;
932
933  -datadir | --datadir | --datadi | --datad)
934    ac_prev=datadir ;;
935  -datadir=* | --datadir=* | --datadi=* | --datad=*)
936    datadir=$ac_optarg ;;
937
938  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939  | --dataroo | --dataro | --datar)
940    ac_prev=datarootdir ;;
941  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943    datarootdir=$ac_optarg ;;
944
945  -disable-* | --disable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error $? "invalid feature name: '$ac_useropt'"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=no ;;
960
961  -docdir | --docdir | --docdi | --doc | --do)
962    ac_prev=docdir ;;
963  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964    docdir=$ac_optarg ;;
965
966  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967    ac_prev=dvidir ;;
968  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969    dvidir=$ac_optarg ;;
970
971  -enable-* | --enable-*)
972    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973    # Reject names that are not valid shell variable names.
974    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975      as_fn_error $? "invalid feature name: '$ac_useropt'"
976    ac_useropt_orig=$ac_useropt
977    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978    case $ac_user_opts in
979      *"
980"enable_$ac_useropt"
981"*) ;;
982      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983	 ac_unrecognized_sep=', ';;
984    esac
985    eval enable_$ac_useropt=\$ac_optarg ;;
986
987  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989  | --exec | --exe | --ex)
990    ac_prev=exec_prefix ;;
991  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993  | --exec=* | --exe=* | --ex=*)
994    exec_prefix=$ac_optarg ;;
995
996  -gas | --gas | --ga | --g)
997    # Obsolete; use --with-gas.
998    with_gas=yes ;;
999
1000  -help | --help | --hel | --he | -h)
1001    ac_init_help=long ;;
1002  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003    ac_init_help=recursive ;;
1004  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005    ac_init_help=short ;;
1006
1007  -host | --host | --hos | --ho)
1008    ac_prev=host_alias ;;
1009  -host=* | --host=* | --hos=* | --ho=*)
1010    host_alias=$ac_optarg ;;
1011
1012  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013    ac_prev=htmldir ;;
1014  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015  | --ht=*)
1016    htmldir=$ac_optarg ;;
1017
1018  -includedir | --includedir | --includedi | --included | --include \
1019  | --includ | --inclu | --incl | --inc)
1020    ac_prev=includedir ;;
1021  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022  | --includ=* | --inclu=* | --incl=* | --inc=*)
1023    includedir=$ac_optarg ;;
1024
1025  -infodir | --infodir | --infodi | --infod | --info | --inf)
1026    ac_prev=infodir ;;
1027  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028    infodir=$ac_optarg ;;
1029
1030  -libdir | --libdir | --libdi | --libd)
1031    ac_prev=libdir ;;
1032  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033    libdir=$ac_optarg ;;
1034
1035  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036  | --libexe | --libex | --libe)
1037    ac_prev=libexecdir ;;
1038  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039  | --libexe=* | --libex=* | --libe=*)
1040    libexecdir=$ac_optarg ;;
1041
1042  -localedir | --localedir | --localedi | --localed | --locale)
1043    ac_prev=localedir ;;
1044  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045    localedir=$ac_optarg ;;
1046
1047  -localstatedir | --localstatedir | --localstatedi | --localstated \
1048  | --localstate | --localstat | --localsta | --localst | --locals)
1049    ac_prev=localstatedir ;;
1050  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052    localstatedir=$ac_optarg ;;
1053
1054  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055    ac_prev=mandir ;;
1056  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057    mandir=$ac_optarg ;;
1058
1059  -nfp | --nfp | --nf)
1060    # Obsolete; use --without-fp.
1061    with_fp=no ;;
1062
1063  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064  | --no-cr | --no-c | -n)
1065    no_create=yes ;;
1066
1067  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069    no_recursion=yes ;;
1070
1071  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073  | --oldin | --oldi | --old | --ol | --o)
1074    ac_prev=oldincludedir ;;
1075  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078    oldincludedir=$ac_optarg ;;
1079
1080  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081    ac_prev=prefix ;;
1082  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083    prefix=$ac_optarg ;;
1084
1085  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086  | --program-pre | --program-pr | --program-p)
1087    ac_prev=program_prefix ;;
1088  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090    program_prefix=$ac_optarg ;;
1091
1092  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093  | --program-suf | --program-su | --program-s)
1094    ac_prev=program_suffix ;;
1095  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097    program_suffix=$ac_optarg ;;
1098
1099  -program-transform-name | --program-transform-name \
1100  | --program-transform-nam | --program-transform-na \
1101  | --program-transform-n | --program-transform- \
1102  | --program-transform | --program-transfor \
1103  | --program-transfo | --program-transf \
1104  | --program-trans | --program-tran \
1105  | --progr-tra | --program-tr | --program-t)
1106    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1115
1116  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117    ac_prev=pdfdir ;;
1118  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119    pdfdir=$ac_optarg ;;
1120
1121  -psdir | --psdir | --psdi | --psd | --ps)
1122    ac_prev=psdir ;;
1123  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124    psdir=$ac_optarg ;;
1125
1126  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127  | -silent | --silent | --silen | --sile | --sil)
1128    silent=yes ;;
1129
1130  -runstatedir | --runstatedir | --runstatedi | --runstated \
1131  | --runstate | --runstat | --runsta | --runst | --runs \
1132  | --run | --ru | --r)
1133    ac_prev=runstatedir ;;
1134  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1135  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1136  | --run=* | --ru=* | --r=*)
1137    runstatedir=$ac_optarg ;;
1138
1139  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140    ac_prev=sbindir ;;
1141  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142  | --sbi=* | --sb=*)
1143    sbindir=$ac_optarg ;;
1144
1145  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147  | --sharedst | --shareds | --shared | --share | --shar \
1148  | --sha | --sh)
1149    ac_prev=sharedstatedir ;;
1150  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153  | --sha=* | --sh=*)
1154    sharedstatedir=$ac_optarg ;;
1155
1156  -site | --site | --sit)
1157    ac_prev=site ;;
1158  -site=* | --site=* | --sit=*)
1159    site=$ac_optarg ;;
1160
1161  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162    ac_prev=srcdir ;;
1163  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164    srcdir=$ac_optarg ;;
1165
1166  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167  | --syscon | --sysco | --sysc | --sys | --sy)
1168    ac_prev=sysconfdir ;;
1169  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171    sysconfdir=$ac_optarg ;;
1172
1173  -target | --target | --targe | --targ | --tar | --ta | --t)
1174    ac_prev=target_alias ;;
1175  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176    target_alias=$ac_optarg ;;
1177
1178  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179    verbose=yes ;;
1180
1181  -version | --version | --versio | --versi | --vers | -V)
1182    ac_init_version=: ;;
1183
1184  -with-* | --with-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid package name: '$ac_useropt'"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"with_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval with_$ac_useropt=\$ac_optarg ;;
1199
1200  -without-* | --without-*)
1201    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202    # Reject names that are not valid shell variable names.
1203    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204      as_fn_error $? "invalid package name: '$ac_useropt'"
1205    ac_useropt_orig=$ac_useropt
1206    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207    case $ac_user_opts in
1208      *"
1209"with_$ac_useropt"
1210"*) ;;
1211      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212	 ac_unrecognized_sep=', ';;
1213    esac
1214    eval with_$ac_useropt=no ;;
1215
1216  --x)
1217    # Obsolete; use --with-x.
1218    with_x=yes ;;
1219
1220  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221  | --x-incl | --x-inc | --x-in | --x-i)
1222    ac_prev=x_includes ;;
1223  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225    x_includes=$ac_optarg ;;
1226
1227  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229    ac_prev=x_libraries ;;
1230  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232    x_libraries=$ac_optarg ;;
1233
1234  -*) as_fn_error $? "unrecognized option: '$ac_option'
1235Try '$0 --help' for more information"
1236    ;;
1237
1238  *=*)
1239    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240    # Reject names that are not valid shell variable names.
1241    case $ac_envvar in #(
1242      '' | [0-9]* | *[!_$as_cr_alnum]* )
1243      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1244    esac
1245    eval $ac_envvar=\$ac_optarg
1246    export $ac_envvar ;;
1247
1248  *)
1249    # FIXME: should be removed in autoconf 3.0.
1250    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1251    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1253    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254    ;;
1255
1256  esac
1257done
1258
1259if test -n "$ac_prev"; then
1260  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261  as_fn_error $? "missing argument to $ac_option"
1262fi
1263
1264if test -n "$ac_unrecognized_opts"; then
1265  case $enable_option_checking in
1266    no) ;;
1267    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269  esac
1270fi
1271
1272# Check all directory arguments for consistency.
1273for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274		datadir sysconfdir sharedstatedir localstatedir includedir \
1275		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276		libdir localedir mandir runstatedir
1277do
1278  eval ac_val=\$$ac_var
1279  # Remove trailing slashes.
1280  case $ac_val in
1281    */ )
1282      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283      eval $ac_var=\$ac_val;;
1284  esac
1285  # Be sure to have absolute directory names.
1286  case $ac_val in
1287    [\\/$]* | ?:[\\/]* )  continue;;
1288    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289  esac
1290  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291done
1292
1293# There might be people who depend on the old broken behavior: '$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304  elif test "x$build_alias" != "x$host_alias"; then
1305    cross_compiling=yes
1306  fi
1307fi
1308
1309ac_tool_prefix=
1310test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312test "$silent" = yes && exec 6>/dev/null
1313
1314
1315ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316ac_ls_di=`ls -di .` &&
1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318  as_fn_error $? "working directory cannot be determined"
1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320  as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323# Find the source files, if location was not specified.
1324if test -z "$srcdir"; then
1325  ac_srcdir_defaulted=yes
1326  # Try the directory containing this script, then the parent directory.
1327  ac_confdir=`$as_dirname -- "$as_myself" ||
1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329	 X"$as_myself" : 'X\(//\)[^/]' \| \
1330	 X"$as_myself" : 'X\(//\)$' \| \
1331	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332printf "%s\n" X"$as_myself" |
1333    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)[^/].*/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\).*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  s/.*/./; q'`
1350  srcdir=$ac_confdir
1351  if test ! -r "$srcdir/$ac_unique_file"; then
1352    srcdir=..
1353  fi
1354else
1355  ac_srcdir_defaulted=no
1356fi
1357if test ! -r "$srcdir/$ac_unique_file"; then
1358  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360fi
1361ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1362ac_abs_confdir=`(
1363	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364	pwd)`
1365# When building in place, set srcdir=.
1366if test "$ac_abs_confdir" = "$ac_pwd"; then
1367  srcdir=.
1368fi
1369# Remove unnecessary trailing slashes from srcdir.
1370# Double slashes in file names in object file debugging info
1371# mess up M-x gdb in Emacs.
1372case $srcdir in
1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374esac
1375for ac_var in $ac_precious_vars; do
1376  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_env_${ac_var}_value=\$${ac_var}
1378  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386  # Omit some internal or obsolete options to make the list less imposing.
1387  # This message is too long to be a string in the A/UX 3.1 sh.
1388  cat <<_ACEOF
1389'configure' configures libXrender 0.9.12 to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399  -h, --help              display this help and exit
1400      --help=short        display options specific to this package
1401      --help=recursive    display the short help of all the included packages
1402  -V, --version           display version information and exit
1403  -q, --quiet, --silent   do not print 'checking ...' messages
1404      --cache-file=FILE   cache test results in FILE [disabled]
1405  -C, --config-cache      alias for '--cache-file=config.cache'
1406  -n, --no-create         do not create output files
1407      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1408
1409Installation directories:
1410  --prefix=PREFIX         install architecture-independent files in PREFIX
1411                          [$ac_default_prefix]
1412  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1413                          [PREFIX]
1414
1415By default, 'make install' will install all the files in
1416'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1417an installation prefix other than '$ac_default_prefix' using '--prefix',
1418for instance '--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
1423  --bindir=DIR            user executables [EPREFIX/bin]
1424  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1425  --libexecdir=DIR        program executables [EPREFIX/libexec]
1426  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1427  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1428  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1429  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1430  --libdir=DIR            object code libraries [EPREFIX/lib]
1431  --includedir=DIR        C header files [PREFIX/include]
1432  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1433  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1434  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1435  --infodir=DIR           info documentation [DATAROOTDIR/info]
1436  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1437  --mandir=DIR            man documentation [DATAROOTDIR/man]
1438  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXrender]
1439  --htmldir=DIR           html documentation [DOCDIR]
1440  --dvidir=DIR            dvi documentation [DOCDIR]
1441  --pdfdir=DIR            pdf documentation [DOCDIR]
1442  --psdir=DIR             ps documentation [DOCDIR]
1443_ACEOF
1444
1445  cat <<\_ACEOF
1446
1447Program names:
1448  --program-prefix=PREFIX            prepend PREFIX to installed program names
1449  --program-suffix=SUFFIX            append SUFFIX to installed program names
1450  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1451
1452System types:
1453  --build=BUILD     configure for building on BUILD [guessed]
1454  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455_ACEOF
1456fi
1457
1458if test -n "$ac_init_help"; then
1459  case $ac_init_help in
1460     short | recursive ) echo "Configuration of libXrender 0.9.12:";;
1461   esac
1462  cat <<\_ACEOF
1463
1464Optional Features:
1465  --disable-option-checking  ignore unrecognized --enable/--with options
1466  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1467  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1468  --enable-silent-rules   less verbose build output (undo: "make V=1")
1469  --disable-silent-rules  verbose build output (undo: "make V=0")
1470  --enable-shared[=PKGS]  build shared libraries [default=yes]
1471  --enable-static[=PKGS]  build static libraries [default=yes]
1472  --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
1473                          both]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --enable-aix-soname=aix|svr4|both
1477                          shared library versioning (aka "SONAME") variant to
1478                          provide on AIX, [default=aix].
1479  --enable-dependency-tracking
1480                          do not reject slow dependency extractors
1481  --disable-dependency-tracking
1482                          speeds up one-time build
1483  --disable-libtool-lock  avoid locking (might break parallel builds)
1484  --disable-selective-werror
1485                          Turn off selective compiler errors. (default:
1486                          enabled)
1487  --enable-strict-compilation
1488                          Enable all warnings from compiler and make them
1489                          errors (default: disabled)
1490  --enable-malloc0returnsnull
1491                          assume malloc(0) can return NULL (default: yes)
1492
1493Optional Packages:
1494  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1495  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1496  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1497  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1498                          compiler's sysroot if not specified).
1499
1500Some influential environment variables:
1501  CC          C compiler command
1502  CFLAGS      C compiler flags
1503  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1504              nonstandard directory <lib dir>
1505  LIBS        libraries to pass to the linker, e.g. -l<library>
1506  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1507              you have headers in a nonstandard directory <include dir>
1508  LT_SYS_LIBRARY_PATH
1509              User-defined run-time library search path.
1510  PKG_CONFIG  path to pkg-config utility
1511  PKG_CONFIG_PATH
1512              directories to add to pkg-config's search path
1513  PKG_CONFIG_LIBDIR
1514              path overriding pkg-config's built-in search path
1515  RENDER_CFLAGS
1516              C compiler flags for RENDER, overriding pkg-config
1517  RENDER_LIBS linker flags for RENDER, overriding pkg-config
1518
1519Use these variables to override the choices made by 'configure' or to help
1520it to find libraries and programs with nonstandard names/locations.
1521
1522Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>.
1523_ACEOF
1524ac_status=$?
1525fi
1526
1527if test "$ac_init_help" = "recursive"; then
1528  # If there are subdirs, report their specific --help.
1529  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530    test -d "$ac_dir" ||
1531      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532      continue
1533    ac_builddir=.
1534
1535case "$ac_dir" in
1536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537*)
1538  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1539  # A ".." for each directory in $ac_dir_suffix.
1540  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541  case $ac_top_builddir_sub in
1542  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544  esac ;;
1545esac
1546ac_abs_top_builddir=$ac_pwd
1547ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548# for backward compatibility:
1549ac_top_builddir=$ac_top_build_prefix
1550
1551case $srcdir in
1552  .)  # We are building in place.
1553    ac_srcdir=.
1554    ac_top_srcdir=$ac_top_builddir_sub
1555    ac_abs_top_srcdir=$ac_pwd ;;
1556  [\\/]* | ?:[\\/]* )  # Absolute name.
1557    ac_srcdir=$srcdir$ac_dir_suffix;
1558    ac_top_srcdir=$srcdir
1559    ac_abs_top_srcdir=$srcdir ;;
1560  *) # Relative name.
1561    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562    ac_top_srcdir=$ac_top_build_prefix$srcdir
1563    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564esac
1565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567    cd "$ac_dir" || { ac_status=$?; continue; }
1568    # Check for configure.gnu first; this name is used for a wrapper for
1569    # Metaconfig's "Configure" on case-insensitive file systems.
1570    if test -f "$ac_srcdir/configure.gnu"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573    elif test -f "$ac_srcdir/configure"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure" --help=recursive
1576    else
1577      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578    fi || ac_status=$?
1579    cd "$ac_pwd" || { ac_status=$?; break; }
1580  done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585  cat <<\_ACEOF
1586libXrender configure 0.9.12
1587generated by GNU Autoconf 2.72
1588
1589Copyright (C) 2023 Free Software Foundation, Inc.
1590This configure script is free software; the Free Software Foundation
1591gives unlimited permission to copy, distribute and modify it.
1592_ACEOF
1593  exit
1594fi
1595
1596## ------------------------ ##
1597## Autoconf initialization. ##
1598## ------------------------ ##
1599
1600# ac_fn_c_try_compile LINENO
1601# --------------------------
1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_compile ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  rm -f conftest.$ac_objext conftest.beam
1607  if { { ac_try="$ac_compile"
1608case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613printf "%s\n" "$ac_try_echo"; } >&5
1614  (eval "$ac_compile") 2>conftest.err
1615  ac_status=$?
1616  if test -s conftest.err; then
1617    grep -v '^ *+' conftest.err >conftest.er1
1618    cat conftest.er1 >&5
1619    mv -f conftest.er1 conftest.err
1620  fi
1621  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && {
1623	 test -z "$ac_c_werror_flag" ||
1624	 test ! -s conftest.err
1625       } && test -s conftest.$ac_objext
1626then :
1627  ac_retval=0
1628else case e in #(
1629  e) printf "%s\n" "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632	ac_retval=1 ;;
1633esac
1634fi
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636  as_fn_set_status $ac_retval
1637
1638} # ac_fn_c_try_compile
1639
1640# ac_fn_c_try_link LINENO
1641# -----------------------
1642# Try to link conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_c_try_link ()
1644{
1645  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1647  if { { ac_try="$ac_link"
1648case "(($ac_try" in
1649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650  *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653printf "%s\n" "$ac_try_echo"; } >&5
1654  (eval "$ac_link") 2>conftest.err
1655  ac_status=$?
1656  if test -s conftest.err; then
1657    grep -v '^ *+' conftest.err >conftest.er1
1658    cat conftest.er1 >&5
1659    mv -f conftest.er1 conftest.err
1660  fi
1661  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; } && {
1663	 test -z "$ac_c_werror_flag" ||
1664	 test ! -s conftest.err
1665       } && test -s conftest$ac_exeext && {
1666	 test "$cross_compiling" = yes ||
1667	 test -x conftest$ac_exeext
1668       }
1669then :
1670  ac_retval=0
1671else case e in #(
1672  e) printf "%s\n" "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675	ac_retval=1 ;;
1676esac
1677fi
1678  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680  # interfere with the next link command; also delete a directory that is
1681  # left behind by Apple's compiler.  We do this before executing the actions.
1682  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684  as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_link
1687
1688# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689# -------------------------------------------------------
1690# Tests whether HEADER exists and can be compiled using the include files in
1691# INCLUDES, setting the cache variable VAR accordingly.
1692ac_fn_c_check_header_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696printf %s "checking for $2... " >&6; }
1697if eval test \${$3+y}
1698then :
1699  printf %s "(cached) " >&6
1700else case e in #(
1701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h.  */
1703$4
1704#include <$2>
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"
1707then :
1708  eval "$3=yes"
1709else case e in #(
1710  e) eval "$3=no" ;;
1711esac
1712fi
1713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1714esac
1715fi
1716eval ac_res=\$$3
1717	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718printf "%s\n" "$ac_res" >&6; }
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721} # ac_fn_c_check_header_compile
1722
1723# ac_fn_c_check_func LINENO FUNC VAR
1724# ----------------------------------
1725# Tests whether FUNC exists, setting the cache variable VAR accordingly
1726ac_fn_c_check_func ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730printf %s "checking for $2... " >&6; }
1731if eval test \${$3+y}
1732then :
1733  printf %s "(cached) " >&6
1734else case e in #(
1735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1739#define $2 innocuous_$2
1740
1741/* System header to define __stub macros and hopefully few prototypes,
1742   which can conflict with char $2 (void); below.  */
1743
1744#include <limits.h>
1745#undef $2
1746
1747/* Override any GCC internal prototype to avoid an error.
1748   Use char because int might match the return type of a GCC
1749   builtin and then its argument prototype would still apply.  */
1750#ifdef __cplusplus
1751extern "C"
1752#endif
1753char $2 (void);
1754/* The GNU C library defines this for functions which it implements
1755    to always fail with ENOSYS.  Some functions are actually named
1756    something starting with __ and the normal name is an alias.  */
1757#if defined __stub_$2 || defined __stub___$2
1758choke me
1759#endif
1760
1761int
1762main (void)
1763{
1764return $2 ();
1765  ;
1766  return 0;
1767}
1768_ACEOF
1769if ac_fn_c_try_link "$LINENO"
1770then :
1771  eval "$3=yes"
1772else case e in #(
1773  e) eval "$3=no" ;;
1774esac
1775fi
1776rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777    conftest$ac_exeext conftest.$ac_ext ;;
1778esac
1779fi
1780eval ac_res=\$$3
1781	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782printf "%s\n" "$ac_res" >&6; }
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_func
1786
1787# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1788# ------------------------------------------------------------------
1789# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1790# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1791ac_fn_check_decl ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  as_decl_name=`echo $2|sed 's/ *(.*//'`
1795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1796printf %s "checking whether $as_decl_name is declared... " >&6; }
1797if eval test \${$3+y}
1798then :
1799  printf %s "(cached) " >&6
1800else case e in #(
1801  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1802  eval ac_save_FLAGS=\$$6
1803  as_fn_append $6 " $5"
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$4
1807int
1808main (void)
1809{
1810#ifndef $as_decl_name
1811#ifdef __cplusplus
1812  (void) $as_decl_use;
1813#else
1814  (void) $as_decl_name;
1815#endif
1816#endif
1817
1818  ;
1819  return 0;
1820}
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"
1823then :
1824  eval "$3=yes"
1825else case e in #(
1826  e) eval "$3=no" ;;
1827esac
1828fi
1829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1830  eval $6=\$ac_save_FLAGS
1831 ;;
1832esac
1833fi
1834eval ac_res=\$$3
1835	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836printf "%s\n" "$ac_res" >&6; }
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_check_decl
1840ac_configure_args_raw=
1841for ac_arg
1842do
1843  case $ac_arg in
1844  *\'*)
1845    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1846  esac
1847  as_fn_append ac_configure_args_raw " '$ac_arg'"
1848done
1849
1850case $ac_configure_args_raw in
1851  *$as_nl*)
1852    ac_safe_unquote= ;;
1853  *)
1854    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1855    ac_unsafe_a="$ac_unsafe_z#~"
1856    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1857    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1858esac
1859
1860cat >config.log <<_ACEOF
1861This file contains any messages produced by compilers while
1862running configure, to aid debugging if configure makes a mistake.
1863
1864It was created by libXrender $as_me 0.9.12, which was
1865generated by GNU Autoconf 2.72.  Invocation command line was
1866
1867  $ $0$ac_configure_args_raw
1868
1869_ACEOF
1870exec 5>>config.log
1871{
1872cat <<_ASUNAME
1873## --------- ##
1874## Platform. ##
1875## --------- ##
1876
1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
1886/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
1894_ASUNAME
1895
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  case $as_dir in #(((
1901    '') as_dir=./ ;;
1902    */) ;;
1903    *) as_dir=$as_dir/ ;;
1904  esac
1905    printf "%s\n" "PATH: $as_dir"
1906  done
1907IFS=$as_save_IFS
1908
1909} >&5
1910
1911cat >&5 <<_ACEOF
1912
1913
1914## ----------- ##
1915## Core tests. ##
1916## ----------- ##
1917
1918_ACEOF
1919
1920
1921# Keep a trace of the command line.
1922# Strip out --no-create and --no-recursion so they do not pile up.
1923# Strip out --silent because we don't want to record it for future runs.
1924# Also quote any args containing shell meta-characters.
1925# Make two passes to allow for proper duplicate-argument suppression.
1926ac_configure_args=
1927ac_configure_args0=
1928ac_configure_args1=
1929ac_must_keep_next=false
1930for ac_pass in 1 2
1931do
1932  for ac_arg
1933  do
1934    case $ac_arg in
1935    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937    | -silent | --silent | --silen | --sile | --sil)
1938      continue ;;
1939    *\'*)
1940      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941    esac
1942    case $ac_pass in
1943    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944    2)
1945      as_fn_append ac_configure_args1 " '$ac_arg'"
1946      if test $ac_must_keep_next = true; then
1947	ac_must_keep_next=false # Got value, back to normal.
1948      else
1949	case $ac_arg in
1950	  *=* | --config-cache | -C | -disable-* | --disable-* \
1951	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953	  | -with-* | --with-* | -without-* | --without-* | --x)
1954	    case "$ac_configure_args0 " in
1955	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956	    esac
1957	    ;;
1958	  -* ) ac_must_keep_next=true ;;
1959	esac
1960      fi
1961      as_fn_append ac_configure_args " '$ac_arg'"
1962      ;;
1963    esac
1964  done
1965done
1966{ ac_configure_args0=; unset ac_configure_args0;}
1967{ ac_configure_args1=; unset ac_configure_args1;}
1968
1969# When interrupted or exit'd, cleanup temporary files, and complete
1970# config.log.  We remove comments because anyway the quotes in there
1971# would cause problems or look ugly.
1972# WARNING: Use '\'' to represent an apostrophe within the trap.
1973# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974trap 'exit_status=$?
1975  # Sanitize IFS.
1976  IFS=" ""	$as_nl"
1977  # Save into config.log some information that might help in debugging.
1978  {
1979    echo
1980
1981    printf "%s\n" "## ---------------- ##
1982## Cache variables. ##
1983## ---------------- ##"
1984    echo
1985    # The following way of writing the cache mishandles newlines in values,
1986(
1987  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1988    eval ac_val=\$$ac_var
1989    case $ac_val in #(
1990    *${as_nl}*)
1991      case $ac_var in #(
1992      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1993printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1994      esac
1995      case $ac_var in #(
1996      _ | IFS | as_nl) ;; #(
1997      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1998      *) { eval $ac_var=; unset $ac_var;} ;;
1999      esac ;;
2000    esac
2001  done
2002  (set) 2>&1 |
2003    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2004    *${as_nl}ac_space=\ *)
2005      sed -n \
2006	"s/'\''/'\''\\\\'\'''\''/g;
2007	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2008      ;; #(
2009    *)
2010      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011      ;;
2012    esac |
2013    sort
2014)
2015    echo
2016
2017    printf "%s\n" "## ----------------- ##
2018## Output variables. ##
2019## ----------------- ##"
2020    echo
2021    for ac_var in $ac_subst_vars
2022    do
2023      eval ac_val=\$$ac_var
2024      case $ac_val in
2025      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026      esac
2027      printf "%s\n" "$ac_var='\''$ac_val'\''"
2028    done | sort
2029    echo
2030
2031    if test -n "$ac_subst_files"; then
2032      printf "%s\n" "## ------------------- ##
2033## File substitutions. ##
2034## ------------------- ##"
2035      echo
2036      for ac_var in $ac_subst_files
2037      do
2038	eval ac_val=\$$ac_var
2039	case $ac_val in
2040	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041	esac
2042	printf "%s\n" "$ac_var='\''$ac_val'\''"
2043      done | sort
2044      echo
2045    fi
2046
2047    if test -s confdefs.h; then
2048      printf "%s\n" "## ----------- ##
2049## confdefs.h. ##
2050## ----------- ##"
2051      echo
2052      cat confdefs.h
2053      echo
2054    fi
2055    test "$ac_signal" != 0 &&
2056      printf "%s\n" "$as_me: caught signal $ac_signal"
2057    printf "%s\n" "$as_me: exit $exit_status"
2058  } >&5
2059  rm -f core *.core core.conftest.* &&
2060    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2061    exit $exit_status
2062' 0
2063for ac_signal in 1 2 13 15; do
2064  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2065done
2066ac_signal=0
2067
2068# confdefs.h avoids OS command line length limits that DEFS can exceed.
2069rm -f -r conftest* confdefs.h
2070
2071printf "%s\n" "/* confdefs.h */" > confdefs.h
2072
2073# Predefined preprocessor variables.
2074
2075printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2076
2077printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2078
2079printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2080
2081printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2082
2083printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2086
2087
2088# Let the site file select an alternate cache file if it wants to.
2089# Prefer an explicitly selected file to automatically selected ones.
2090if test -n "$CONFIG_SITE"; then
2091  ac_site_files="$CONFIG_SITE"
2092elif test "x$prefix" != xNONE; then
2093  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2094else
2095  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2096fi
2097
2098for ac_site_file in $ac_site_files
2099do
2100  case $ac_site_file in #(
2101  */*) :
2102     ;; #(
2103  *) :
2104    ac_site_file=./$ac_site_file ;;
2105esac
2106  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2107    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2108printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2109    sed 's/^/| /' "$ac_site_file" >&5
2110    . "$ac_site_file" \
2111      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2112printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2113as_fn_error $? "failed to load site script $ac_site_file
2114See 'config.log' for more details" "$LINENO" 5; }
2115  fi
2116done
2117
2118if test -r "$cache_file"; then
2119  # Some versions of bash will fail to source /dev/null (special files
2120  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2121  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2124    case $cache_file in
2125      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126      *)                      . "./$cache_file";;
2127    esac
2128  fi
2129else
2130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2132  >$cache_file
2133fi
2134
2135# Test code for whether the C compiler supports C89 (global declarations)
2136ac_c_conftest_c89_globals='
2137/* Does the compiler advertise C89 conformance?
2138   Do not test the value of __STDC__, because some compilers set it to 0
2139   while being otherwise adequately conformant. */
2140#if !defined __STDC__
2141# error "Compiler does not advertise C89 conformance"
2142#endif
2143
2144#include <stddef.h>
2145#include <stdarg.h>
2146struct stat;
2147/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2148struct buf { int x; };
2149struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2150static char *e (char **p, int i)
2151{
2152  return p[i];
2153}
2154static char *f (char * (*g) (char **, int), char **p, ...)
2155{
2156  char *s;
2157  va_list v;
2158  va_start (v,p);
2159  s = g (p, va_arg (v,int));
2160  va_end (v);
2161  return s;
2162}
2163
2164/* C89 style stringification. */
2165#define noexpand_stringify(a) #a
2166const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2167
2168/* C89 style token pasting.  Exercises some of the corner cases that
2169   e.g. old MSVC gets wrong, but not very hard. */
2170#define noexpand_concat(a,b) a##b
2171#define expand_concat(a,b) noexpand_concat(a,b)
2172extern int vA;
2173extern int vbee;
2174#define aye A
2175#define bee B
2176int *pvA = &expand_concat(v,aye);
2177int *pvbee = &noexpand_concat(v,bee);
2178
2179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2180   function prototypes and stuff, but not \xHH hex character constants.
2181   These do not provoke an error unfortunately, instead are silently treated
2182   as an "x".  The following induces an error, until -std is added to get
2183   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2184   array size at least.  It is necessary to write \x00 == 0 to get something
2185   that is true only with -std.  */
2186int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2187
2188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2189   inside strings and character constants.  */
2190#define FOO(x) '\''x'\''
2191int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2192
2193int test (int i, double x);
2194struct s1 {int (*f) (int a);};
2195struct s2 {int (*f) (double a);};
2196int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2197               int, int);'
2198
2199# Test code for whether the C compiler supports C89 (body of main).
2200ac_c_conftest_c89_main='
2201ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2202'
2203
2204# Test code for whether the C compiler supports C99 (global declarations)
2205ac_c_conftest_c99_globals='
2206/* Does the compiler advertise C99 conformance? */
2207#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2208# error "Compiler does not advertise C99 conformance"
2209#endif
2210
2211// See if C++-style comments work.
2212
2213#include <stdbool.h>
2214extern int puts (const char *);
2215extern int printf (const char *, ...);
2216extern int dprintf (int, const char *, ...);
2217extern void *malloc (size_t);
2218extern void free (void *);
2219
2220// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2221// dprintf is used instead of fprintf to avoid needing to declare
2222// FILE and stderr.
2223#define debug(...) dprintf (2, __VA_ARGS__)
2224#define showlist(...) puts (#__VA_ARGS__)
2225#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2226static void
2227test_varargs_macros (void)
2228{
2229  int x = 1234;
2230  int y = 5678;
2231  debug ("Flag");
2232  debug ("X = %d\n", x);
2233  showlist (The first, second, and third items.);
2234  report (x>y, "x is %d but y is %d", x, y);
2235}
2236
2237// Check long long types.
2238#define BIG64 18446744073709551615ull
2239#define BIG32 4294967295ul
2240#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2241#if !BIG_OK
2242  #error "your preprocessor is broken"
2243#endif
2244#if BIG_OK
2245#else
2246  #error "your preprocessor is broken"
2247#endif
2248static long long int bignum = -9223372036854775807LL;
2249static unsigned long long int ubignum = BIG64;
2250
2251struct incomplete_array
2252{
2253  int datasize;
2254  double data[];
2255};
2256
2257struct named_init {
2258  int number;
2259  const wchar_t *name;
2260  double average;
2261};
2262
2263typedef const char *ccp;
2264
2265static inline int
2266test_restrict (ccp restrict text)
2267{
2268  // Iterate through items via the restricted pointer.
2269  // Also check for declarations in for loops.
2270  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2271    continue;
2272  return 0;
2273}
2274
2275// Check varargs and va_copy.
2276static bool
2277test_varargs (const char *format, ...)
2278{
2279  va_list args;
2280  va_start (args, format);
2281  va_list args_copy;
2282  va_copy (args_copy, args);
2283
2284  const char *str = "";
2285  int number = 0;
2286  float fnumber = 0;
2287
2288  while (*format)
2289    {
2290      switch (*format++)
2291	{
2292	case '\''s'\'': // string
2293	  str = va_arg (args_copy, const char *);
2294	  break;
2295	case '\''d'\'': // int
2296	  number = va_arg (args_copy, int);
2297	  break;
2298	case '\''f'\'': // float
2299	  fnumber = va_arg (args_copy, double);
2300	  break;
2301	default:
2302	  break;
2303	}
2304    }
2305  va_end (args_copy);
2306  va_end (args);
2307
2308  return *str && number && fnumber;
2309}
2310'
2311
2312# Test code for whether the C compiler supports C99 (body of main).
2313ac_c_conftest_c99_main='
2314  // Check bool.
2315  _Bool success = false;
2316  success |= (argc != 0);
2317
2318  // Check restrict.
2319  if (test_restrict ("String literal") == 0)
2320    success = true;
2321  char *restrict newvar = "Another string";
2322
2323  // Check varargs.
2324  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2325  test_varargs_macros ();
2326
2327  // Check flexible array members.
2328  struct incomplete_array *ia =
2329    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2330  ia->datasize = 10;
2331  for (int i = 0; i < ia->datasize; ++i)
2332    ia->data[i] = i * 1.234;
2333  // Work around memory leak warnings.
2334  free (ia);
2335
2336  // Check named initializers.
2337  struct named_init ni = {
2338    .number = 34,
2339    .name = L"Test wide string",
2340    .average = 543.34343,
2341  };
2342
2343  ni.number = 58;
2344
2345  int dynamic_array[ni.number];
2346  dynamic_array[0] = argv[0][0];
2347  dynamic_array[ni.number - 1] = 543;
2348
2349  // work around unused variable warnings
2350  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2351	 || dynamic_array[ni.number - 1] != 543);
2352'
2353
2354# Test code for whether the C compiler supports C11 (global declarations)
2355ac_c_conftest_c11_globals='
2356/* Does the compiler advertise C11 conformance? */
2357#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2358# error "Compiler does not advertise C11 conformance"
2359#endif
2360
2361// Check _Alignas.
2362char _Alignas (double) aligned_as_double;
2363char _Alignas (0) no_special_alignment;
2364extern char aligned_as_int;
2365char _Alignas (0) _Alignas (int) aligned_as_int;
2366
2367// Check _Alignof.
2368enum
2369{
2370  int_alignment = _Alignof (int),
2371  int_array_alignment = _Alignof (int[100]),
2372  char_alignment = _Alignof (char)
2373};
2374_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2375
2376// Check _Noreturn.
2377int _Noreturn does_not_return (void) { for (;;) continue; }
2378
2379// Check _Static_assert.
2380struct test_static_assert
2381{
2382  int x;
2383  _Static_assert (sizeof (int) <= sizeof (long int),
2384                  "_Static_assert does not work in struct");
2385  long int y;
2386};
2387
2388// Check UTF-8 literals.
2389#define u8 syntax error!
2390char const utf8_literal[] = u8"happens to be ASCII" "another string";
2391
2392// Check duplicate typedefs.
2393typedef long *long_ptr;
2394typedef long int *long_ptr;
2395typedef long_ptr long_ptr;
2396
2397// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2398struct anonymous
2399{
2400  union {
2401    struct { int i; int j; };
2402    struct { int k; long int l; } w;
2403  };
2404  int m;
2405} v1;
2406'
2407
2408# Test code for whether the C compiler supports C11 (body of main).
2409ac_c_conftest_c11_main='
2410  _Static_assert ((offsetof (struct anonymous, i)
2411		   == offsetof (struct anonymous, w.k)),
2412		  "Anonymous union alignment botch");
2413  v1.i = 2;
2414  v1.w.k = 5;
2415  ok |= v1.i != 5;
2416'
2417
2418# Test code for whether the C compiler supports C11 (complete).
2419ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2420${ac_c_conftest_c99_globals}
2421${ac_c_conftest_c11_globals}
2422
2423int
2424main (int argc, char **argv)
2425{
2426  int ok = 0;
2427  ${ac_c_conftest_c89_main}
2428  ${ac_c_conftest_c99_main}
2429  ${ac_c_conftest_c11_main}
2430  return ok;
2431}
2432"
2433
2434# Test code for whether the C compiler supports C99 (complete).
2435ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2436${ac_c_conftest_c99_globals}
2437
2438int
2439main (int argc, char **argv)
2440{
2441  int ok = 0;
2442  ${ac_c_conftest_c89_main}
2443  ${ac_c_conftest_c99_main}
2444  return ok;
2445}
2446"
2447
2448# Test code for whether the C compiler supports C89 (complete).
2449ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2450
2451int
2452main (int argc, char **argv)
2453{
2454  int ok = 0;
2455  ${ac_c_conftest_c89_main}
2456  return ok;
2457}
2458"
2459
2460as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2461as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2462as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2463as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2464as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2465as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2466as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2467as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2468as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2469
2470# Auxiliary files required by this configure script.
2471ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2472
2473# Locations in which to look for auxiliary files.
2474ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2475
2476# Search for a directory containing all of the required auxiliary files,
2477# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2478# If we don't find one directory that contains all the files we need,
2479# we report the set of missing files from the *first* directory in
2480# $ac_aux_dir_candidates and give up.
2481ac_missing_aux_files=""
2482ac_first_candidate=:
2483printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485as_found=false
2486for as_dir in $ac_aux_dir_candidates
2487do
2488  IFS=$as_save_IFS
2489  case $as_dir in #(((
2490    '') as_dir=./ ;;
2491    */) ;;
2492    *) as_dir=$as_dir/ ;;
2493  esac
2494  as_found=:
2495
2496  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2497  ac_aux_dir_found=yes
2498  ac_install_sh=
2499  for ac_aux in $ac_aux_files
2500  do
2501    # As a special case, if "install-sh" is required, that requirement
2502    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2503    # and $ac_install_sh is set appropriately for whichever one is found.
2504    if test x"$ac_aux" = x"install-sh"
2505    then
2506      if test -f "${as_dir}install-sh"; then
2507        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2508        ac_install_sh="${as_dir}install-sh -c"
2509      elif test -f "${as_dir}install.sh"; then
2510        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2511        ac_install_sh="${as_dir}install.sh -c"
2512      elif test -f "${as_dir}shtool"; then
2513        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2514        ac_install_sh="${as_dir}shtool install -c"
2515      else
2516        ac_aux_dir_found=no
2517        if $ac_first_candidate; then
2518          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2519        else
2520          break
2521        fi
2522      fi
2523    else
2524      if test -f "${as_dir}${ac_aux}"; then
2525        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2526      else
2527        ac_aux_dir_found=no
2528        if $ac_first_candidate; then
2529          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2530        else
2531          break
2532        fi
2533      fi
2534    fi
2535  done
2536  if test "$ac_aux_dir_found" = yes; then
2537    ac_aux_dir="$as_dir"
2538    break
2539  fi
2540  ac_first_candidate=false
2541
2542  as_found=false
2543done
2544IFS=$as_save_IFS
2545if $as_found
2546then :
2547
2548else case e in #(
2549  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2550esac
2551fi
2552
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558if test -f "${ac_aux_dir}config.guess"; then
2559  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2560fi
2561if test -f "${ac_aux_dir}config.sub"; then
2562  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2563fi
2564if test -f "$ac_aux_dir/configure"; then
2565  ac_configure="$SHELL ${ac_aux_dir}configure"
2566fi
2567
2568# Check that the precious variables saved in the cache have kept the same
2569# value.
2570ac_cache_corrupted=false
2571for ac_var in $ac_precious_vars; do
2572  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2573  eval ac_new_set=\$ac_env_${ac_var}_set
2574  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2575  eval ac_new_val=\$ac_env_${ac_var}_value
2576  case $ac_old_set,$ac_new_set in
2577    set,)
2578      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2579printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2580      ac_cache_corrupted=: ;;
2581    ,set)
2582      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2583printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2584      ac_cache_corrupted=: ;;
2585    ,);;
2586    *)
2587      if test "x$ac_old_val" != "x$ac_new_val"; then
2588	# differences in whitespace do not lead to failure.
2589	ac_old_val_w=`echo x $ac_old_val`
2590	ac_new_val_w=`echo x $ac_new_val`
2591	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2592	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2593printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2594	  ac_cache_corrupted=:
2595	else
2596	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2597printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2598	  eval $ac_var=\$ac_old_val
2599	fi
2600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2601printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2602	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2603printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2604      fi;;
2605  esac
2606  # Pass precious variables to config.status.
2607  if test "$ac_new_set" = set; then
2608    case $ac_new_val in
2609    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2610    *) ac_arg=$ac_var=$ac_new_val ;;
2611    esac
2612    case " $ac_configure_args " in
2613      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2614      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2615    esac
2616  fi
2617done
2618if $ac_cache_corrupted; then
2619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2620printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2622printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2623  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2624	    and start over" "$LINENO" 5
2625fi
2626## -------------------- ##
2627## Main body of script. ##
2628## -------------------- ##
2629
2630ac_ext=c
2631ac_cpp='$CPP $CPPFLAGS'
2632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
2636
2637
2638ac_config_headers="$ac_config_headers config.h"
2639
2640
2641
2642PACKAGE_BRIEF="Library for the Render Extension to the X11 protocol"
2643
2644
2645# Initialize Automake
2646am__api_version='1.17'
2647
2648
2649
2650  # Find a good install program.  We prefer a C program (faster),
2651# so one script is as good as another.  But avoid the broken or
2652# incompatible versions:
2653# SysV /etc/install, /usr/sbin/install
2654# SunOS /usr/etc/install
2655# IRIX /sbin/install
2656# AIX /bin/install
2657# AmigaOS /C/install, which installs bootblocks on floppy discs
2658# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2659# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2660# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2661# OS/2's system install, which has a completely different semantic
2662# ./install, which can be erroneously created by make from ./install.sh.
2663# Reject install programs that cannot install multiple files.
2664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2665printf %s "checking for a BSD-compatible install... " >&6; }
2666if test -z "$INSTALL"; then
2667if test ${ac_cv_path_install+y}
2668then :
2669  printf %s "(cached) " >&6
2670else case e in #(
2671  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  case $as_dir in #(((
2676    '') as_dir=./ ;;
2677    */) ;;
2678    *) as_dir=$as_dir/ ;;
2679  esac
2680    # Account for fact that we put trailing slashes in our PATH walk.
2681case $as_dir in #((
2682  ./ | /[cC]/* | \
2683  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2684  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2685  /usr/ucb/* ) ;;
2686  *)
2687    # OSF1 and SCO ODT 3.0 have their own names for install.
2688    # Don't use installbsd from OSF since it installs stuff as root
2689    # by default.
2690    for ac_prog in ginstall scoinst install; do
2691      for ac_exec_ext in '' $ac_executable_extensions; do
2692	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2693	  if test $ac_prog = install &&
2694	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695	    # AIX install.  It has an incompatible calling convention.
2696	    :
2697	  elif test $ac_prog = install &&
2698	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2699	    # program-specific install script used by HP pwplus--don't use.
2700	    :
2701	  else
2702	    rm -rf conftest.one conftest.two conftest.dir
2703	    echo one > conftest.one
2704	    echo two > conftest.two
2705	    mkdir conftest.dir
2706	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2707	      test -s conftest.one && test -s conftest.two &&
2708	      test -s conftest.dir/conftest.one &&
2709	      test -s conftest.dir/conftest.two
2710	    then
2711	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2712	      break 3
2713	    fi
2714	  fi
2715	fi
2716      done
2717    done
2718    ;;
2719esac
2720
2721  done
2722IFS=$as_save_IFS
2723
2724rm -rf conftest.one conftest.two conftest.dir
2725 ;;
2726esac
2727fi
2728  if test ${ac_cv_path_install+y}; then
2729    INSTALL=$ac_cv_path_install
2730  else
2731    # As a last resort, use the slow shell script.  Don't cache a
2732    # value for INSTALL within a source directory, because that will
2733    # break other packages using the cache if that directory is
2734    # removed, or if the value is a relative name.
2735    INSTALL=$ac_install_sh
2736  fi
2737fi
2738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2739printf "%s\n" "$INSTALL" >&6; }
2740
2741# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2742# It thinks the first close brace ends the variable substitution.
2743test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2744
2745test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2746
2747test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2748
2749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2750printf %s "checking whether sleep supports fractional seconds... " >&6; }
2751if test ${am_cv_sleep_fractional_seconds+y}
2752then :
2753  printf %s "(cached) " >&6
2754else case e in #(
2755  e) if sleep 0.001 2>/dev/null
2756then :
2757  am_cv_sleep_fractional_seconds=yes
2758else case e in #(
2759  e) am_cv_sleep_fractional_seconds=no ;;
2760esac
2761fi
2762 ;;
2763esac
2764fi
2765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2766printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2767
2768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2769printf %s "checking filesystem timestamp resolution... " >&6; }
2770if test ${am_cv_filesystem_timestamp_resolution+y}
2771then :
2772  printf %s "(cached) " >&6
2773else case e in #(
2774  e) # Default to the worst case.
2775am_cv_filesystem_timestamp_resolution=2
2776
2777# Only try to go finer than 1 sec if sleep can do it.
2778# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2779# - 1 sec is not much of a win compared to 2 sec, and
2780# - it takes 2 seconds to perform the test whether 1 sec works.
2781#
2782# Instead, just use the default 2s on platforms that have 1s resolution,
2783# accept the extra 1s delay when using $sleep in the Automake tests, in
2784# exchange for not incurring the 2s delay for running the test for all
2785# packages.
2786#
2787am_try_resolutions=
2788if test "$am_cv_sleep_fractional_seconds" = yes; then
2789  # Even a millisecond often causes a bunch of false positives,
2790  # so just try a hundredth of a second. The time saved between .001 and
2791  # .01 is not terribly consequential.
2792  am_try_resolutions="0.01 0.1 $am_try_resolutions"
2793fi
2794
2795# In order to catch current-generation FAT out, we must *modify* files
2796# that already exist; the *creation* timestamp is finer.  Use names
2797# that make ls -t sort them differently when they have equal
2798# timestamps than when they have distinct timestamps, keeping
2799# in mind that ls -t prints the *newest* file first.
2800rm -f conftest.ts?
2801: > conftest.ts1
2802: > conftest.ts2
2803: > conftest.ts3
2804
2805# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
2806# clobber the current shell's arguments. (Outer-level square brackets
2807# are removed by m4; they're present so that m4 does not expand
2808# <dollar><star>; be careful, easy to get confused.)
2809if (
2810     set X `ls -t conftest.ts[12]` &&
2811     {
2812       test "$*" != "X conftest.ts1 conftest.ts2" ||
2813       test "$*" != "X conftest.ts2 conftest.ts1";
2814     }
2815); then :; else
2816  # If neither matched, then we have a broken ls.  This can happen
2817  # if, for instance, CONFIG_SHELL is bash and it inherits a
2818  # broken ls alias from the environment.  This has actually
2819  # happened.  Such a system could not be considered "sane".
2820  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2821  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2822printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2823as_fn_error $? "ls -t produces unexpected output.
2824Make sure there is not a broken ls alias in your environment.
2825See 'config.log' for more details" "$LINENO" 5; }
2826fi
2827
2828for am_try_res in $am_try_resolutions; do
2829  # Any one fine-grained sleep might happen to cross the boundary
2830  # between two values of a coarser actual resolution, but if we do
2831  # two fine-grained sleeps in a row, at least one of them will fall
2832  # entirely within a coarse interval.
2833  echo alpha > conftest.ts1
2834  sleep $am_try_res
2835  echo beta > conftest.ts2
2836  sleep $am_try_res
2837  echo gamma > conftest.ts3
2838
2839  # We assume that 'ls -t' will make use of high-resolution
2840  # timestamps if the operating system supports them at all.
2841  if (set X `ls -t conftest.ts?` &&
2842      test "$2" = conftest.ts3 &&
2843      test "$3" = conftest.ts2 &&
2844      test "$4" = conftest.ts1); then
2845    #
2846    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2847    # because we don't need to test make.
2848    make_ok=true
2849    if test $am_try_res != 1; then
2850      # But if we've succeeded so far with a subsecond resolution, we
2851      # have one more thing to check: make. It can happen that
2852      # everything else supports the subsecond mtimes, but make doesn't;
2853      # notably on macOS, which ships make 3.81 from 2006 (the last one
2854      # released under GPLv2). https://bugs.gnu.org/68808
2855      #
2856      # We test $MAKE if it is defined in the environment, else "make".
2857      # It might get overridden later, but our hope is that in practice
2858      # it does not matter: it is the system "make" which is (by far)
2859      # the most likely to be broken, whereas if the user overrides it,
2860      # probably they did so with a better, or at least not worse, make.
2861      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2862      #
2863      # Create a Makefile (real tab character here):
2864      rm -f conftest.mk
2865      echo 'conftest.ts1: conftest.ts2' >conftest.mk
2866      echo '	touch conftest.ts2' >>conftest.mk
2867      #
2868      # Now, running
2869      #   touch conftest.ts1; touch conftest.ts2; make
2870      # should touch ts1 because ts2 is newer. This could happen by luck,
2871      # but most often, it will fail if make's support is insufficient. So
2872      # test for several consecutive successes.
2873      #
2874      # (We reuse conftest.ts[12] because we still want to modify existing
2875      # files, not create new ones, per above.)
2876      n=0
2877      make=${MAKE-make}
2878      until test $n -eq 3; do
2879        echo one > conftest.ts1
2880        sleep $am_try_res
2881        echo two > conftest.ts2 # ts2 should now be newer than ts1
2882        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2883          make_ok=false
2884          break # out of $n loop
2885        fi
2886        n=`expr $n + 1`
2887      done
2888    fi
2889    #
2890    if $make_ok; then
2891      # Everything we know to check worked out, so call this resolution good.
2892      am_cv_filesystem_timestamp_resolution=$am_try_res
2893      break # out of $am_try_res loop
2894    fi
2895    # Otherwise, we'll go on to check the next resolution.
2896  fi
2897done
2898rm -f conftest.ts?
2899# (end _am_filesystem_timestamp_resolution)
2900 ;;
2901esac
2902fi
2903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2904printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2905
2906# This check should not be cached, as it may vary across builds of
2907# different projects.
2908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2909printf %s "checking whether build environment is sane... " >&6; }
2910# Reject unsafe characters in $srcdir or the absolute working directory
2911# name.  Accept space and tab only in the latter.
2912am_lf='
2913'
2914case `pwd` in
2915  *[\\\"\#\$\&\'\`$am_lf]*)
2916    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2917esac
2918case $srcdir in
2919  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2920    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2921esac
2922
2923# Do 'set' in a subshell so we don't clobber the current shell's
2924# arguments.  Must try -L first in case configure is actually a
2925# symlink; some systems play weird games with the mod time of symlinks
2926# (eg FreeBSD returns the mod time of the symlink's containing
2927# directory).
2928am_build_env_is_sane=no
2929am_has_slept=no
2930rm -f conftest.file
2931for am_try in 1 2; do
2932  echo "timestamp, slept: $am_has_slept" > conftest.file
2933  if (
2934    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2935    if test "$*" = "X"; then
2936      # -L didn't work.
2937      set X `ls -t "$srcdir/configure" conftest.file`
2938    fi
2939    test "$2" = conftest.file
2940  ); then
2941    am_build_env_is_sane=yes
2942    break
2943  fi
2944  # Just in case.
2945  sleep "$am_cv_filesystem_timestamp_resolution"
2946  am_has_slept=yes
2947done
2948
2949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2950printf "%s\n" "$am_build_env_is_sane" >&6; }
2951if test "$am_build_env_is_sane" = no; then
2952  as_fn_error $? "newly created file is older than distributed files!
2953Check your system clock" "$LINENO" 5
2954fi
2955
2956# If we didn't sleep, we still need to ensure time stamps of config.status and
2957# generated files are strictly newer.
2958am_sleep_pid=
2959if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2960then :
2961
2962else case e in #(
2963  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2964  am_sleep_pid=$!
2965 ;;
2966esac
2967fi
2968
2969rm -f conftest.file
2970
2971test "$program_prefix" != NONE &&
2972  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2973# Use a double $ so make ignores it.
2974test "$program_suffix" != NONE &&
2975  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2976# Double any \ or $.
2977# By default was 's,x,x', remove it if useless.
2978ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2979program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2980
2981
2982# Expand $ac_aux_dir to an absolute path.
2983am_aux_dir=`cd "$ac_aux_dir" && pwd`
2984
2985
2986  if test x"${MISSING+set}" != xset; then
2987  MISSING="\${SHELL} '$am_aux_dir/missing'"
2988fi
2989# Use eval to expand $SHELL
2990if eval "$MISSING --is-lightweight"; then
2991  am_missing_run="$MISSING "
2992else
2993  am_missing_run=
2994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2995printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2996fi
2997
2998if test x"${install_sh+set}" != xset; then
2999  case $am_aux_dir in
3000  *\ * | *\	*)
3001    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3002  *)
3003    install_sh="\${SHELL} $am_aux_dir/install-sh"
3004  esac
3005fi
3006
3007# Installed binaries are usually stripped using 'strip' when the user
3008# run "make install-strip".  However 'strip' might not be the right
3009# tool to use in cross-compilation environments, therefore Automake
3010# will honor the 'STRIP' environment variable to overrule this program.
3011if test "$cross_compiling" != no; then
3012  if test -n "$ac_tool_prefix"; then
3013  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3014set dummy ${ac_tool_prefix}strip; ac_word=$2
3015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016printf %s "checking for $ac_word... " >&6; }
3017if test ${ac_cv_prog_STRIP+y}
3018then :
3019  printf %s "(cached) " >&6
3020else case e in #(
3021  e) if test -n "$STRIP"; then
3022  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027  IFS=$as_save_IFS
3028  case $as_dir in #(((
3029    '') as_dir=./ ;;
3030    */) ;;
3031    *) as_dir=$as_dir/ ;;
3032  esac
3033    for ac_exec_ext in '' $ac_executable_extensions; do
3034  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3035    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3036    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3037    break 2
3038  fi
3039done
3040  done
3041IFS=$as_save_IFS
3042
3043fi ;;
3044esac
3045fi
3046STRIP=$ac_cv_prog_STRIP
3047if test -n "$STRIP"; then
3048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049printf "%s\n" "$STRIP" >&6; }
3050else
3051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052printf "%s\n" "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$ac_cv_prog_STRIP"; then
3058  ac_ct_STRIP=$STRIP
3059  # Extract the first word of "strip", so it can be a program name with args.
3060set dummy strip; ac_word=$2
3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062printf %s "checking for $ac_word... " >&6; }
3063if test ${ac_cv_prog_ac_ct_STRIP+y}
3064then :
3065  printf %s "(cached) " >&6
3066else case e in #(
3067  e) if test -n "$ac_ct_STRIP"; then
3068  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073  IFS=$as_save_IFS
3074  case $as_dir in #(((
3075    '') as_dir=./ ;;
3076    */) ;;
3077    *) as_dir=$as_dir/ ;;
3078  esac
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3081    ac_cv_prog_ac_ct_STRIP="strip"
3082    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089fi ;;
3090esac
3091fi
3092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093if test -n "$ac_ct_STRIP"; then
3094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3095printf "%s\n" "$ac_ct_STRIP" >&6; }
3096else
3097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098printf "%s\n" "no" >&6; }
3099fi
3100
3101  if test "x$ac_ct_STRIP" = x; then
3102    STRIP=":"
3103  else
3104    case $cross_compiling:$ac_tool_warned in
3105yes:)
3106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108ac_tool_warned=yes ;;
3109esac
3110    STRIP=$ac_ct_STRIP
3111  fi
3112else
3113  STRIP="$ac_cv_prog_STRIP"
3114fi
3115
3116fi
3117INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3118
3119
3120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3121printf %s "checking for a race-free mkdir -p... " >&6; }
3122if test -z "$MKDIR_P"; then
3123  if test ${ac_cv_path_mkdir+y}
3124then :
3125  printf %s "(cached) " >&6
3126else case e in #(
3127  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3129do
3130  IFS=$as_save_IFS
3131  case $as_dir in #(((
3132    '') as_dir=./ ;;
3133    */) ;;
3134    *) as_dir=$as_dir/ ;;
3135  esac
3136    for ac_prog in mkdir gmkdir; do
3137	 for ac_exec_ext in '' $ac_executable_extensions; do
3138	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3139	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3140	     'mkdir ('*'coreutils) '* | \
3141	     *'BusyBox '* | \
3142	     'mkdir (fileutils) '4.1*)
3143	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3144	       break 3;;
3145	   esac
3146	 done
3147       done
3148  done
3149IFS=$as_save_IFS
3150 ;;
3151esac
3152fi
3153
3154  test -d ./--version && rmdir ./--version
3155  if test ${ac_cv_path_mkdir+y}; then
3156    MKDIR_P="$ac_cv_path_mkdir -p"
3157  else
3158    # As a last resort, use plain mkdir -p,
3159    # in the hope it doesn't have the bugs of ancient mkdir.
3160    MKDIR_P='mkdir -p'
3161  fi
3162fi
3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3164printf "%s\n" "$MKDIR_P" >&6; }
3165
3166for ac_prog in gawk mawk nawk awk
3167do
3168  # Extract the first word of "$ac_prog", so it can be a program name with args.
3169set dummy $ac_prog; ac_word=$2
3170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171printf %s "checking for $ac_word... " >&6; }
3172if test ${ac_cv_prog_AWK+y}
3173then :
3174  printf %s "(cached) " >&6
3175else case e in #(
3176  e) if test -n "$AWK"; then
3177  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182  IFS=$as_save_IFS
3183  case $as_dir in #(((
3184    '') as_dir=./ ;;
3185    */) ;;
3186    *) as_dir=$as_dir/ ;;
3187  esac
3188    for ac_exec_ext in '' $ac_executable_extensions; do
3189  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_AWK="$ac_prog"
3191    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195  done
3196IFS=$as_save_IFS
3197
3198fi ;;
3199esac
3200fi
3201AWK=$ac_cv_prog_AWK
3202if test -n "$AWK"; then
3203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3204printf "%s\n" "$AWK" >&6; }
3205else
3206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207printf "%s\n" "no" >&6; }
3208fi
3209
3210
3211  test -n "$AWK" && break
3212done
3213
3214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3215printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3216set x ${MAKE-make}
3217ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3218if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3219then :
3220  printf %s "(cached) " >&6
3221else case e in #(
3222  e) cat >conftest.make <<\_ACEOF
3223SHELL = /bin/sh
3224all:
3225	@echo '@@@%%%=$(MAKE)=@@@%%%'
3226_ACEOF
3227# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3228case `${MAKE-make} -f conftest.make 2>/dev/null` in
3229  *@@@%%%=?*=@@@%%%*)
3230    eval ac_cv_prog_make_${ac_make}_set=yes;;
3231  *)
3232    eval ac_cv_prog_make_${ac_make}_set=no;;
3233esac
3234rm -f conftest.make ;;
3235esac
3236fi
3237if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239printf "%s\n" "yes" >&6; }
3240  SET_MAKE=
3241else
3242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243printf "%s\n" "no" >&6; }
3244  SET_MAKE="MAKE=${MAKE-make}"
3245fi
3246
3247rm -rf .tst 2>/dev/null
3248mkdir .tst 2>/dev/null
3249if test -d .tst; then
3250  am__leading_dot=.
3251else
3252  am__leading_dot=_
3253fi
3254rmdir .tst 2>/dev/null
3255
3256AM_DEFAULT_VERBOSITY=1
3257# Check whether --enable-silent-rules was given.
3258if test ${enable_silent_rules+y}
3259then :
3260  enableval=$enable_silent_rules;
3261fi
3262
3263am_make=${MAKE-make}
3264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3265printf %s "checking whether $am_make supports nested variables... " >&6; }
3266if test ${am_cv_make_support_nested_variables+y}
3267then :
3268  printf %s "(cached) " >&6
3269else case e in #(
3270  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3271BAR0=false
3272BAR1=true
3273V=1
3274am__doit:
3275	@$(TRUE)
3276.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3277  am_cv_make_support_nested_variables=yes
3278else
3279  am_cv_make_support_nested_variables=no
3280fi ;;
3281esac
3282fi
3283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3284printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3285AM_BACKSLASH='\'
3286
3287am__rm_f_notfound=
3288if (rm -f && rm -fr && rm -rf) 2>/dev/null
3289then :
3290
3291else case e in #(
3292  e) am__rm_f_notfound='""' ;;
3293esac
3294fi
3295
3296
3297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3298printf %s "checking xargs -n works... " >&6; }
3299if test ${am_cv_xargs_n_works+y}
3300then :
3301  printf %s "(cached) " >&6
3302else case e in #(
3303  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
33043"
3305then :
3306  am_cv_xargs_n_works=yes
3307else case e in #(
3308  e) am_cv_xargs_n_works=no ;;
3309esac
3310fi ;;
3311esac
3312fi
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3314printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3315if test "$am_cv_xargs_n_works" = yes
3316then :
3317  am__xargs_n='xargs -n'
3318else case e in #(
3319  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3320 ;;
3321esac
3322fi
3323
3324if test "`cd $srcdir && pwd`" != "`pwd`"; then
3325  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3326  # is not polluted with repeated "-I."
3327  am__isrc=' -I$(srcdir)'
3328  # test to see if srcdir already configured
3329  if test -f $srcdir/config.status; then
3330    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3331  fi
3332fi
3333
3334# test whether we have cygpath
3335if test -z "$CYGPATH_W"; then
3336  if (cygpath --version) >/dev/null 2>/dev/null; then
3337    CYGPATH_W='cygpath -w'
3338  else
3339    CYGPATH_W=echo
3340  fi
3341fi
3342
3343
3344# Define the identity of the package.
3345 PACKAGE='libXrender'
3346 VERSION='0.9.12'
3347
3348
3349printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3350
3351
3352printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3353
3354# Some tools Automake needs.
3355
3356ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3357
3358
3359AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3360
3361
3362AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3363
3364
3365AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3366
3367
3368MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3369
3370# For better backward compatibility.  To be removed once Automake 1.9.x
3371# dies out for good.  For more background, see:
3372# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3373# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3374mkdir_p='$(MKDIR_P)'
3375
3376# We need awk for the "check" target (and possibly the TAP driver).  The
3377# system "awk" is bad on some platforms.
3378# Always define AMTAR for backward compatibility.  Yes, it's still used
3379# in the wild :-(  We should find a proper way to deprecate it ...
3380AMTAR='$${TAR-tar}'
3381
3382
3383# We'll loop over all known methods to create a tar archive until one works.
3384_am_tools='gnutar  pax cpio none'
3385
3386am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3387
3388
3389
3390
3391
3392# Variables for tags utilities; see am/tags.am
3393if test -z "$CTAGS"; then
3394  CTAGS=ctags
3395fi
3396
3397if test -z "$ETAGS"; then
3398  ETAGS=etags
3399fi
3400
3401if test -z "$CSCOPE"; then
3402  CSCOPE=cscope
3403fi
3404
3405
3406
3407
3408
3409
3410
3411
3412# Initialize libtool
3413case `pwd` in
3414  *\ * | *\	*)
3415    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3416printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3417esac
3418
3419
3420
3421macro_version='2.5.4'
3422macro_revision='2.5.4'
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437ltmain=$ac_aux_dir/ltmain.sh
3438
3439
3440
3441  # Make sure we can run config.sub.
3442$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3443  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3444
3445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3446printf %s "checking build system type... " >&6; }
3447if test ${ac_cv_build+y}
3448then :
3449  printf %s "(cached) " >&6
3450else case e in #(
3451  e) ac_build_alias=$build_alias
3452test "x$ac_build_alias" = x &&
3453  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3454test "x$ac_build_alias" = x &&
3455  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3456ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3457  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3458 ;;
3459esac
3460fi
3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3462printf "%s\n" "$ac_cv_build" >&6; }
3463case $ac_cv_build in
3464*-*-*) ;;
3465*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3466esac
3467build=$ac_cv_build
3468ac_save_IFS=$IFS; IFS='-'
3469set x $ac_cv_build
3470shift
3471build_cpu=$1
3472build_vendor=$2
3473shift; shift
3474# Remember, the first character of IFS is used to create $*,
3475# except with old shells:
3476build_os=$*
3477IFS=$ac_save_IFS
3478case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3479
3480
3481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3482printf %s "checking host system type... " >&6; }
3483if test ${ac_cv_host+y}
3484then :
3485  printf %s "(cached) " >&6
3486else case e in #(
3487  e) if test "x$host_alias" = x; then
3488  ac_cv_host=$ac_cv_build
3489else
3490  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3491    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3492fi
3493 ;;
3494esac
3495fi
3496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3497printf "%s\n" "$ac_cv_host" >&6; }
3498case $ac_cv_host in
3499*-*-*) ;;
3500*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3501esac
3502host=$ac_cv_host
3503ac_save_IFS=$IFS; IFS='-'
3504set x $ac_cv_host
3505shift
3506host_cpu=$1
3507host_vendor=$2
3508shift; shift
3509# Remember, the first character of IFS is used to create $*,
3510# except with old shells:
3511host_os=$*
3512IFS=$ac_save_IFS
3513case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3514
3515
3516# Backslashify metacharacters that are still active within
3517# double-quoted strings.
3518sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3519
3520# Same as above, but do not quote variable references.
3521double_quote_subst='s/\(["`\\]\)/\\\1/g'
3522
3523# Sed substitution to delay expansion of an escaped shell variable in a
3524# double_quote_subst'ed string.
3525delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3526
3527# Sed substitution to delay expansion of an escaped single quote.
3528delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3529
3530# Sed substitution to avoid accidental globbing in evaled expressions
3531no_glob_subst='s/\*/\\\*/g'
3532
3533ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3534ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3535ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3536
3537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3538printf %s "checking how to print strings... " >&6; }
3539# Test print first, because it will be a builtin if present.
3540if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3541   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3542  ECHO='print -r --'
3543elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3544  ECHO='printf %s\n'
3545else
3546  # Use this function as a fallback that always works.
3547  func_fallback_echo ()
3548  {
3549    eval 'cat <<_LTECHO_EOF
3550$1
3551_LTECHO_EOF'
3552  }
3553  ECHO='func_fallback_echo'
3554fi
3555
3556# func_echo_all arg...
3557# Invoke $ECHO with all args, space-separated.
3558func_echo_all ()
3559{
3560    $ECHO ""
3561}
3562
3563case $ECHO in
3564  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3565printf "%s\n" "printf" >&6; } ;;
3566  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3567printf "%s\n" "print -r" >&6; } ;;
3568  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3569printf "%s\n" "cat" >&6; } ;;
3570esac
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594DEPDIR="${am__leading_dot}deps"
3595
3596ac_config_commands="$ac_config_commands depfiles"
3597
3598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3599printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3600cat > confinc.mk << 'END'
3601am__doit:
3602	@echo this is the am__doit target >confinc.out
3603.PHONY: am__doit
3604END
3605am__include="#"
3606am__quote=
3607# BSD make does it like this.
3608echo '.include "confinc.mk" # ignored' > confmf.BSD
3609# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3610echo 'include confinc.mk # ignored' > confmf.GNU
3611_am_result=no
3612for s in GNU BSD; do
3613  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3614   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }
3618  case $?:`cat confinc.out 2>/dev/null` in #(
3619  '0:this is the am__doit target') :
3620    case $s in #(
3621  BSD) :
3622    am__include='.include' am__quote='"' ;; #(
3623  *) :
3624    am__include='include' am__quote='' ;;
3625esac ;; #(
3626  *) :
3627     ;;
3628esac
3629  if test "$am__include" != "#"; then
3630    _am_result="yes ($s style)"
3631    break
3632  fi
3633done
3634rm -f confinc.* confmf.*
3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3636printf "%s\n" "${_am_result}" >&6; }
3637
3638# Check whether --enable-dependency-tracking was given.
3639if test ${enable_dependency_tracking+y}
3640then :
3641  enableval=$enable_dependency_tracking;
3642fi
3643
3644if test "x$enable_dependency_tracking" != xno; then
3645  am_depcomp="$ac_aux_dir/depcomp"
3646  AMDEPBACKSLASH='\'
3647  am__nodep='_no'
3648fi
3649 if test "x$enable_dependency_tracking" != xno; then
3650  AMDEP_TRUE=
3651  AMDEP_FALSE='#'
3652else
3653  AMDEP_TRUE='#'
3654  AMDEP_FALSE=
3655fi
3656
3657
3658ac_ext=c
3659ac_cpp='$CPP $CPPFLAGS'
3660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663if test -n "$ac_tool_prefix"; then
3664  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3665set dummy ${ac_tool_prefix}gcc; ac_word=$2
3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667printf %s "checking for $ac_word... " >&6; }
3668if test ${ac_cv_prog_CC+y}
3669then :
3670  printf %s "(cached) " >&6
3671else case e in #(
3672  e) if test -n "$CC"; then
3673  ac_cv_prog_CC="$CC" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678  IFS=$as_save_IFS
3679  case $as_dir in #(((
3680    '') as_dir=./ ;;
3681    */) ;;
3682    *) as_dir=$as_dir/ ;;
3683  esac
3684    for ac_exec_ext in '' $ac_executable_extensions; do
3685  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3686    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3687    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3688    break 2
3689  fi
3690done
3691  done
3692IFS=$as_save_IFS
3693
3694fi ;;
3695esac
3696fi
3697CC=$ac_cv_prog_CC
3698if test -n "$CC"; then
3699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700printf "%s\n" "$CC" >&6; }
3701else
3702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703printf "%s\n" "no" >&6; }
3704fi
3705
3706
3707fi
3708if test -z "$ac_cv_prog_CC"; then
3709  ac_ct_CC=$CC
3710  # Extract the first word of "gcc", so it can be a program name with args.
3711set dummy gcc; ac_word=$2
3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713printf %s "checking for $ac_word... " >&6; }
3714if test ${ac_cv_prog_ac_ct_CC+y}
3715then :
3716  printf %s "(cached) " >&6
3717else case e in #(
3718  e) if test -n "$ac_ct_CC"; then
3719  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3720else
3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
3723do
3724  IFS=$as_save_IFS
3725  case $as_dir in #(((
3726    '') as_dir=./ ;;
3727    */) ;;
3728    *) as_dir=$as_dir/ ;;
3729  esac
3730    for ac_exec_ext in '' $ac_executable_extensions; do
3731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3732    ac_cv_prog_ac_ct_CC="gcc"
3733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3734    break 2
3735  fi
3736done
3737  done
3738IFS=$as_save_IFS
3739
3740fi ;;
3741esac
3742fi
3743ac_ct_CC=$ac_cv_prog_ac_ct_CC
3744if test -n "$ac_ct_CC"; then
3745  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3746printf "%s\n" "$ac_ct_CC" >&6; }
3747else
3748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749printf "%s\n" "no" >&6; }
3750fi
3751
3752  if test "x$ac_ct_CC" = x; then
3753    CC=""
3754  else
3755    case $cross_compiling:$ac_tool_warned in
3756yes:)
3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759ac_tool_warned=yes ;;
3760esac
3761    CC=$ac_ct_CC
3762  fi
3763else
3764  CC="$ac_cv_prog_CC"
3765fi
3766
3767if test -z "$CC"; then
3768          if test -n "$ac_tool_prefix"; then
3769    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3770set dummy ${ac_tool_prefix}cc; ac_word=$2
3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772printf %s "checking for $ac_word... " >&6; }
3773if test ${ac_cv_prog_CC+y}
3774then :
3775  printf %s "(cached) " >&6
3776else case e in #(
3777  e) if test -n "$CC"; then
3778  ac_cv_prog_CC="$CC" # Let the user override the test.
3779else
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783  IFS=$as_save_IFS
3784  case $as_dir in #(((
3785    '') as_dir=./ ;;
3786    */) ;;
3787    *) as_dir=$as_dir/ ;;
3788  esac
3789    for ac_exec_ext in '' $ac_executable_extensions; do
3790  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3791    ac_cv_prog_CC="${ac_tool_prefix}cc"
3792    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3793    break 2
3794  fi
3795done
3796  done
3797IFS=$as_save_IFS
3798
3799fi ;;
3800esac
3801fi
3802CC=$ac_cv_prog_CC
3803if test -n "$CC"; then
3804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3805printf "%s\n" "$CC" >&6; }
3806else
3807  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808printf "%s\n" "no" >&6; }
3809fi
3810
3811
3812  fi
3813fi
3814if test -z "$CC"; then
3815  # Extract the first word of "cc", so it can be a program name with args.
3816set dummy cc; ac_word=$2
3817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818printf %s "checking for $ac_word... " >&6; }
3819if test ${ac_cv_prog_CC+y}
3820then :
3821  printf %s "(cached) " >&6
3822else case e in #(
3823  e) if test -n "$CC"; then
3824  ac_cv_prog_CC="$CC" # Let the user override the test.
3825else
3826  ac_prog_rejected=no
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830  IFS=$as_save_IFS
3831  case $as_dir in #(((
3832    '') as_dir=./ ;;
3833    */) ;;
3834    *) as_dir=$as_dir/ ;;
3835  esac
3836    for ac_exec_ext in '' $ac_executable_extensions; do
3837  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3838    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3839       ac_prog_rejected=yes
3840       continue
3841     fi
3842    ac_cv_prog_CC="cc"
3843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3844    break 2
3845  fi
3846done
3847  done
3848IFS=$as_save_IFS
3849
3850if test $ac_prog_rejected = yes; then
3851  # We found a bogon in the path, so make sure we never use it.
3852  set dummy $ac_cv_prog_CC
3853  shift
3854  if test $# != 0; then
3855    # We chose a different compiler from the bogus one.
3856    # However, it has the same basename, so the bogon will be chosen
3857    # first if we set CC to just the basename; use the full file name.
3858    shift
3859    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3860  fi
3861fi
3862fi ;;
3863esac
3864fi
3865CC=$ac_cv_prog_CC
3866if test -n "$CC"; then
3867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3868printf "%s\n" "$CC" >&6; }
3869else
3870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871printf "%s\n" "no" >&6; }
3872fi
3873
3874
3875fi
3876if test -z "$CC"; then
3877  if test -n "$ac_tool_prefix"; then
3878  for ac_prog in cl.exe
3879  do
3880    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3881set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883printf %s "checking for $ac_word... " >&6; }
3884if test ${ac_cv_prog_CC+y}
3885then :
3886  printf %s "(cached) " >&6
3887else case e in #(
3888  e) if test -n "$CC"; then
3889  ac_cv_prog_CC="$CC" # Let the user override the test.
3890else
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894  IFS=$as_save_IFS
3895  case $as_dir in #(((
3896    '') as_dir=./ ;;
3897    */) ;;
3898    *) as_dir=$as_dir/ ;;
3899  esac
3900    for ac_exec_ext in '' $ac_executable_extensions; do
3901  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3902    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3903    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3904    break 2
3905  fi
3906done
3907  done
3908IFS=$as_save_IFS
3909
3910fi ;;
3911esac
3912fi
3913CC=$ac_cv_prog_CC
3914if test -n "$CC"; then
3915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3916printf "%s\n" "$CC" >&6; }
3917else
3918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919printf "%s\n" "no" >&6; }
3920fi
3921
3922
3923    test -n "$CC" && break
3924  done
3925fi
3926if test -z "$CC"; then
3927  ac_ct_CC=$CC
3928  for ac_prog in cl.exe
3929do
3930  # Extract the first word of "$ac_prog", so it can be a program name with args.
3931set dummy $ac_prog; ac_word=$2
3932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933printf %s "checking for $ac_word... " >&6; }
3934if test ${ac_cv_prog_ac_ct_CC+y}
3935then :
3936  printf %s "(cached) " >&6
3937else case e in #(
3938  e) if test -n "$ac_ct_CC"; then
3939  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944  IFS=$as_save_IFS
3945  case $as_dir in #(((
3946    '') as_dir=./ ;;
3947    */) ;;
3948    *) as_dir=$as_dir/ ;;
3949  esac
3950    for ac_exec_ext in '' $ac_executable_extensions; do
3951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3952    ac_cv_prog_ac_ct_CC="$ac_prog"
3953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3954    break 2
3955  fi
3956done
3957  done
3958IFS=$as_save_IFS
3959
3960fi ;;
3961esac
3962fi
3963ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964if test -n "$ac_ct_CC"; then
3965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3966printf "%s\n" "$ac_ct_CC" >&6; }
3967else
3968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969printf "%s\n" "no" >&6; }
3970fi
3971
3972
3973  test -n "$ac_ct_CC" && break
3974done
3975
3976  if test "x$ac_ct_CC" = x; then
3977    CC=""
3978  else
3979    case $cross_compiling:$ac_tool_warned in
3980yes:)
3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983ac_tool_warned=yes ;;
3984esac
3985    CC=$ac_ct_CC
3986  fi
3987fi
3988
3989fi
3990if test -z "$CC"; then
3991  if test -n "$ac_tool_prefix"; then
3992  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3993set dummy ${ac_tool_prefix}clang; ac_word=$2
3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995printf %s "checking for $ac_word... " >&6; }
3996if test ${ac_cv_prog_CC+y}
3997then :
3998  printf %s "(cached) " >&6
3999else case e in #(
4000  e) if test -n "$CC"; then
4001  ac_cv_prog_CC="$CC" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006  IFS=$as_save_IFS
4007  case $as_dir in #(((
4008    '') as_dir=./ ;;
4009    */) ;;
4010    *) as_dir=$as_dir/ ;;
4011  esac
4012    for ac_exec_ext in '' $ac_executable_extensions; do
4013  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4014    ac_cv_prog_CC="${ac_tool_prefix}clang"
4015    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4016    break 2
4017  fi
4018done
4019  done
4020IFS=$as_save_IFS
4021
4022fi ;;
4023esac
4024fi
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
4027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028printf "%s\n" "$CC" >&6; }
4029else
4030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031printf "%s\n" "no" >&6; }
4032fi
4033
4034
4035fi
4036if test -z "$ac_cv_prog_CC"; then
4037  ac_ct_CC=$CC
4038  # Extract the first word of "clang", so it can be a program name with args.
4039set dummy clang; ac_word=$2
4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041printf %s "checking for $ac_word... " >&6; }
4042if test ${ac_cv_prog_ac_ct_CC+y}
4043then :
4044  printf %s "(cached) " >&6
4045else case e in #(
4046  e) if test -n "$ac_ct_CC"; then
4047  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  case $as_dir in #(((
4054    '') as_dir=./ ;;
4055    */) ;;
4056    *) as_dir=$as_dir/ ;;
4057  esac
4058    for ac_exec_ext in '' $ac_executable_extensions; do
4059  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060    ac_cv_prog_ac_ct_CC="clang"
4061    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4062    break 2
4063  fi
4064done
4065  done
4066IFS=$as_save_IFS
4067
4068fi ;;
4069esac
4070fi
4071ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072if test -n "$ac_ct_CC"; then
4073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074printf "%s\n" "$ac_ct_CC" >&6; }
4075else
4076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077printf "%s\n" "no" >&6; }
4078fi
4079
4080  if test "x$ac_ct_CC" = x; then
4081    CC=""
4082  else
4083    case $cross_compiling:$ac_tool_warned in
4084yes:)
4085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4086printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4087ac_tool_warned=yes ;;
4088esac
4089    CC=$ac_ct_CC
4090  fi
4091else
4092  CC="$ac_cv_prog_CC"
4093fi
4094
4095fi
4096
4097
4098test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4099printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4100as_fn_error $? "no acceptable C compiler found in \$PATH
4101See 'config.log' for more details" "$LINENO" 5; }
4102
4103# Provide some information about the compiler.
4104printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4105set X $ac_compile
4106ac_compiler=$2
4107for ac_option in --version -v -V -qversion -version; do
4108  { { ac_try="$ac_compiler $ac_option >&5"
4109case "(($ac_try" in
4110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111  *) ac_try_echo=$ac_try;;
4112esac
4113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114printf "%s\n" "$ac_try_echo"; } >&5
4115  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4116  ac_status=$?
4117  if test -s conftest.err; then
4118    sed '10a\
4119... rest of stderr output deleted ...
4120         10q' conftest.err >conftest.er1
4121    cat conftest.er1 >&5
4122  fi
4123  rm -f conftest.er1 conftest.err
4124  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125  test $ac_status = 0; }
4126done
4127
4128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130
4131int
4132main (void)
4133{
4134
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139ac_clean_files_save=$ac_clean_files
4140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4141# Try to create an executable without -o first, disregard a.out.
4142# It will help us diagnose broken compilers, and finding out an intuition
4143# of exeext.
4144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4145printf %s "checking whether the C compiler works... " >&6; }
4146ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4147
4148# The possible output files:
4149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4150
4151ac_rmfiles=
4152for ac_file in $ac_files
4153do
4154  case $ac_file in
4155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4156    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4157  esac
4158done
4159rm -f $ac_rmfiles
4160
4161if { { ac_try="$ac_link_default"
4162case "(($ac_try" in
4163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164  *) ac_try_echo=$ac_try;;
4165esac
4166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167printf "%s\n" "$ac_try_echo"; } >&5
4168  (eval "$ac_link_default") 2>&5
4169  ac_status=$?
4170  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171  test $ac_status = 0; }
4172then :
4173  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4174# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4175# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4176# so that the user can short-circuit this test for compilers unknown to
4177# Autoconf.
4178for ac_file in $ac_files ''
4179do
4180  test -f "$ac_file" || continue
4181  case $ac_file in
4182    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4183	;;
4184    [ab].out )
4185	# We found the default executable, but exeext='' is most
4186	# certainly right.
4187	break;;
4188    *.* )
4189	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4190	then :; else
4191	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4192	fi
4193	# We set ac_cv_exeext here because the later test for it is not
4194	# safe: cross compilers may not add the suffix if given an '-o'
4195	# argument, so we may need to know it at that point already.
4196	# Even if this section looks crufty: it has the advantage of
4197	# actually working.
4198	break;;
4199    * )
4200	break;;
4201  esac
4202done
4203test "$ac_cv_exeext" = no && ac_cv_exeext=
4204
4205else case e in #(
4206  e) ac_file='' ;;
4207esac
4208fi
4209if test -z "$ac_file"
4210then :
4211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212printf "%s\n" "no" >&6; }
4213printf "%s\n" "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4217printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4218as_fn_error 77 "C compiler cannot create executables
4219See 'config.log' for more details" "$LINENO" 5; }
4220else case e in #(
4221  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4222printf "%s\n" "yes" >&6; } ;;
4223esac
4224fi
4225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4226printf %s "checking for C compiler default output file name... " >&6; }
4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4228printf "%s\n" "$ac_file" >&6; }
4229ac_exeext=$ac_cv_exeext
4230
4231rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4232ac_clean_files=$ac_clean_files_save
4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4234printf %s "checking for suffix of executables... " >&6; }
4235if { { ac_try="$ac_link"
4236case "(($ac_try" in
4237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238  *) ac_try_echo=$ac_try;;
4239esac
4240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241printf "%s\n" "$ac_try_echo"; } >&5
4242  (eval "$ac_link") 2>&5
4243  ac_status=$?
4244  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245  test $ac_status = 0; }
4246then :
4247  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4248# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
4249# work properly (i.e., refer to 'conftest.exe'), while it won't with
4250# 'rm'.
4251for ac_file in conftest.exe conftest conftest.*; do
4252  test -f "$ac_file" || continue
4253  case $ac_file in
4254    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4255    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4256	  break;;
4257    * ) break;;
4258  esac
4259done
4260else case e in #(
4261  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4262printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4263as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4264See 'config.log' for more details" "$LINENO" 5; } ;;
4265esac
4266fi
4267rm -f conftest conftest$ac_cv_exeext
4268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4269printf "%s\n" "$ac_cv_exeext" >&6; }
4270
4271rm -f conftest.$ac_ext
4272EXEEXT=$ac_cv_exeext
4273ac_exeext=$EXEEXT
4274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276#include <stdio.h>
4277int
4278main (void)
4279{
4280FILE *f = fopen ("conftest.out", "w");
4281 if (!f)
4282  return 1;
4283 return ferror (f) || fclose (f) != 0;
4284
4285  ;
4286  return 0;
4287}
4288_ACEOF
4289ac_clean_files="$ac_clean_files conftest.out"
4290# Check that the compiler produces executables we can run.  If not, either
4291# the compiler is broken, or we cross compile.
4292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4293printf %s "checking whether we are cross compiling... " >&6; }
4294if test "$cross_compiling" != yes; then
4295  { { ac_try="$ac_link"
4296case "(($ac_try" in
4297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298  *) ac_try_echo=$ac_try;;
4299esac
4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301printf "%s\n" "$ac_try_echo"; } >&5
4302  (eval "$ac_link") 2>&5
4303  ac_status=$?
4304  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305  test $ac_status = 0; }
4306  if { ac_try='./conftest$ac_cv_exeext'
4307  { { case "(($ac_try" in
4308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309  *) ac_try_echo=$ac_try;;
4310esac
4311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312printf "%s\n" "$ac_try_echo"; } >&5
4313  (eval "$ac_try") 2>&5
4314  ac_status=$?
4315  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316  test $ac_status = 0; }; }; then
4317    cross_compiling=no
4318  else
4319    if test "$cross_compiling" = maybe; then
4320	cross_compiling=yes
4321    else
4322	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4323printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4324as_fn_error 77 "cannot run C compiled programs.
4325If you meant to cross compile, use '--host'.
4326See 'config.log' for more details" "$LINENO" 5; }
4327    fi
4328  fi
4329fi
4330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4331printf "%s\n" "$cross_compiling" >&6; }
4332
4333rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4334  conftest.o conftest.obj conftest.out
4335ac_clean_files=$ac_clean_files_save
4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4337printf %s "checking for suffix of object files... " >&6; }
4338if test ${ac_cv_objext+y}
4339then :
4340  printf %s "(cached) " >&6
4341else case e in #(
4342  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344
4345int
4346main (void)
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353rm -f conftest.o conftest.obj
4354if { { ac_try="$ac_compile"
4355case "(($ac_try" in
4356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357  *) ac_try_echo=$ac_try;;
4358esac
4359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360printf "%s\n" "$ac_try_echo"; } >&5
4361  (eval "$ac_compile") 2>&5
4362  ac_status=$?
4363  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364  test $ac_status = 0; }
4365then :
4366  for ac_file in conftest.o conftest.obj conftest.*; do
4367  test -f "$ac_file" || continue;
4368  case $ac_file in
4369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4370    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4371       break;;
4372  esac
4373done
4374else case e in #(
4375  e) printf "%s\n" "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4379printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4380as_fn_error $? "cannot compute suffix of object files: cannot compile
4381See 'config.log' for more details" "$LINENO" 5; } ;;
4382esac
4383fi
4384rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4385esac
4386fi
4387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4388printf "%s\n" "$ac_cv_objext" >&6; }
4389OBJEXT=$ac_cv_objext
4390ac_objext=$OBJEXT
4391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4392printf %s "checking whether the compiler supports GNU C... " >&6; }
4393if test ${ac_cv_c_compiler_gnu+y}
4394then :
4395  printf %s "(cached) " >&6
4396else case e in #(
4397  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399
4400int
4401main (void)
4402{
4403#ifndef __GNUC__
4404       choke me
4405#endif
4406
4407  ;
4408  return 0;
4409}
4410_ACEOF
4411if ac_fn_c_try_compile "$LINENO"
4412then :
4413  ac_compiler_gnu=yes
4414else case e in #(
4415  e) ac_compiler_gnu=no ;;
4416esac
4417fi
4418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4419ac_cv_c_compiler_gnu=$ac_compiler_gnu
4420 ;;
4421esac
4422fi
4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4424printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4425ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427if test $ac_compiler_gnu = yes; then
4428  GCC=yes
4429else
4430  GCC=
4431fi
4432ac_test_CFLAGS=${CFLAGS+y}
4433ac_save_CFLAGS=$CFLAGS
4434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4435printf %s "checking whether $CC accepts -g... " >&6; }
4436if test ${ac_cv_prog_cc_g+y}
4437then :
4438  printf %s "(cached) " >&6
4439else case e in #(
4440  e) ac_save_c_werror_flag=$ac_c_werror_flag
4441   ac_c_werror_flag=yes
4442   ac_cv_prog_cc_g=no
4443   CFLAGS="-g"
4444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h.  */
4446
4447int
4448main (void)
4449{
4450
4451  ;
4452  return 0;
4453}
4454_ACEOF
4455if ac_fn_c_try_compile "$LINENO"
4456then :
4457  ac_cv_prog_cc_g=yes
4458else case e in #(
4459  e) CFLAGS=""
4460      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462
4463int
4464main (void)
4465{
4466
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"
4472then :
4473
4474else case e in #(
4475  e) ac_c_werror_flag=$ac_save_c_werror_flag
4476	 CFLAGS="-g"
4477	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479
4480int
4481main (void)
4482{
4483
4484  ;
4485  return 0;
4486}
4487_ACEOF
4488if ac_fn_c_try_compile "$LINENO"
4489then :
4490  ac_cv_prog_cc_g=yes
4491fi
4492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4493esac
4494fi
4495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4496esac
4497fi
4498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4499   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4500esac
4501fi
4502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4503printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4504if test $ac_test_CFLAGS; then
4505  CFLAGS=$ac_save_CFLAGS
4506elif test $ac_cv_prog_cc_g = yes; then
4507  if test "$GCC" = yes; then
4508    CFLAGS="-g -O2"
4509  else
4510    CFLAGS="-g"
4511  fi
4512else
4513  if test "$GCC" = yes; then
4514    CFLAGS="-O2"
4515  else
4516    CFLAGS=
4517  fi
4518fi
4519ac_prog_cc_stdc=no
4520if test x$ac_prog_cc_stdc = xno
4521then :
4522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4523printf %s "checking for $CC option to enable C11 features... " >&6; }
4524if test ${ac_cv_prog_cc_c11+y}
4525then :
4526  printf %s "(cached) " >&6
4527else case e in #(
4528  e) ac_cv_prog_cc_c11=no
4529ac_save_CC=$CC
4530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532$ac_c_conftest_c11_program
4533_ACEOF
4534for ac_arg in '' -std=gnu11
4535do
4536  CC="$ac_save_CC $ac_arg"
4537  if ac_fn_c_try_compile "$LINENO"
4538then :
4539  ac_cv_prog_cc_c11=$ac_arg
4540fi
4541rm -f core conftest.err conftest.$ac_objext conftest.beam
4542  test "x$ac_cv_prog_cc_c11" != "xno" && break
4543done
4544rm -f conftest.$ac_ext
4545CC=$ac_save_CC ;;
4546esac
4547fi
4548
4549if test "x$ac_cv_prog_cc_c11" = xno
4550then :
4551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4552printf "%s\n" "unsupported" >&6; }
4553else case e in #(
4554  e) if test "x$ac_cv_prog_cc_c11" = x
4555then :
4556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4557printf "%s\n" "none needed" >&6; }
4558else case e in #(
4559  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4560printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4561     CC="$CC $ac_cv_prog_cc_c11" ;;
4562esac
4563fi
4564  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4565  ac_prog_cc_stdc=c11 ;;
4566esac
4567fi
4568fi
4569if test x$ac_prog_cc_stdc = xno
4570then :
4571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4572printf %s "checking for $CC option to enable C99 features... " >&6; }
4573if test ${ac_cv_prog_cc_c99+y}
4574then :
4575  printf %s "(cached) " >&6
4576else case e in #(
4577  e) ac_cv_prog_cc_c99=no
4578ac_save_CC=$CC
4579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581$ac_c_conftest_c99_program
4582_ACEOF
4583for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4584do
4585  CC="$ac_save_CC $ac_arg"
4586  if ac_fn_c_try_compile "$LINENO"
4587then :
4588  ac_cv_prog_cc_c99=$ac_arg
4589fi
4590rm -f core conftest.err conftest.$ac_objext conftest.beam
4591  test "x$ac_cv_prog_cc_c99" != "xno" && break
4592done
4593rm -f conftest.$ac_ext
4594CC=$ac_save_CC ;;
4595esac
4596fi
4597
4598if test "x$ac_cv_prog_cc_c99" = xno
4599then :
4600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4601printf "%s\n" "unsupported" >&6; }
4602else case e in #(
4603  e) if test "x$ac_cv_prog_cc_c99" = x
4604then :
4605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4606printf "%s\n" "none needed" >&6; }
4607else case e in #(
4608  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4609printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4610     CC="$CC $ac_cv_prog_cc_c99" ;;
4611esac
4612fi
4613  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4614  ac_prog_cc_stdc=c99 ;;
4615esac
4616fi
4617fi
4618if test x$ac_prog_cc_stdc = xno
4619then :
4620  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4621printf %s "checking for $CC option to enable C89 features... " >&6; }
4622if test ${ac_cv_prog_cc_c89+y}
4623then :
4624  printf %s "(cached) " >&6
4625else case e in #(
4626  e) ac_cv_prog_cc_c89=no
4627ac_save_CC=$CC
4628cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h.  */
4630$ac_c_conftest_c89_program
4631_ACEOF
4632for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4633do
4634  CC="$ac_save_CC $ac_arg"
4635  if ac_fn_c_try_compile "$LINENO"
4636then :
4637  ac_cv_prog_cc_c89=$ac_arg
4638fi
4639rm -f core conftest.err conftest.$ac_objext conftest.beam
4640  test "x$ac_cv_prog_cc_c89" != "xno" && break
4641done
4642rm -f conftest.$ac_ext
4643CC=$ac_save_CC ;;
4644esac
4645fi
4646
4647if test "x$ac_cv_prog_cc_c89" = xno
4648then :
4649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4650printf "%s\n" "unsupported" >&6; }
4651else case e in #(
4652  e) if test "x$ac_cv_prog_cc_c89" = x
4653then :
4654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4655printf "%s\n" "none needed" >&6; }
4656else case e in #(
4657  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4658printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4659     CC="$CC $ac_cv_prog_cc_c89" ;;
4660esac
4661fi
4662  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4663  ac_prog_cc_stdc=c89 ;;
4664esac
4665fi
4666fi
4667
4668ac_ext=c
4669ac_cpp='$CPP $CPPFLAGS'
4670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674
4675  ac_ext=c
4676ac_cpp='$CPP $CPPFLAGS'
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4681printf %s "checking whether $CC understands -c and -o together... " >&6; }
4682if test ${am_cv_prog_cc_c_o+y}
4683then :
4684  printf %s "(cached) " >&6
4685else case e in #(
4686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688
4689int
4690main (void)
4691{
4692
4693  ;
4694  return 0;
4695}
4696_ACEOF
4697  # Make sure it works both with $CC and with simple cc.
4698  # Following AC_PROG_CC_C_O, we do the test twice because some
4699  # compilers refuse to overwrite an existing .o file with -o,
4700  # though they will create one.
4701  am_cv_prog_cc_c_o=yes
4702  for am_i in 1 2; do
4703    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4704   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); } \
4708         && test -f conftest2.$ac_objext; then
4709      : OK
4710    else
4711      am_cv_prog_cc_c_o=no
4712      break
4713    fi
4714  done
4715  rm -f core conftest*
4716  unset am_i ;;
4717esac
4718fi
4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4720printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4721if test "$am_cv_prog_cc_c_o" != yes; then
4722   # Losing compiler, so override with the script.
4723   # FIXME: It is wrong to rewrite CC.
4724   # But if we don't then we get into trouble of one sort or another.
4725   # A longer-term fix would be to have automake use am__CC in this case,
4726   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4727   CC="$am_aux_dir/compile $CC"
4728fi
4729ac_ext=c
4730ac_cpp='$CPP $CPPFLAGS'
4731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734
4735
4736depcc="$CC"   am_compiler_list=
4737
4738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4739printf %s "checking dependency style of $depcc... " >&6; }
4740if test ${am_cv_CC_dependencies_compiler_type+y}
4741then :
4742  printf %s "(cached) " >&6
4743else case e in #(
4744  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4745  # We make a subdir and do the tests there.  Otherwise we can end up
4746  # making bogus files that we don't know about and never remove.  For
4747  # instance it was reported that on HP-UX the gcc test will end up
4748  # making a dummy file named 'D' -- because '-MD' means "put the output
4749  # in D".
4750  rm -rf conftest.dir
4751  mkdir conftest.dir
4752  # Copy depcomp to subdir because otherwise we won't find it if we're
4753  # using a relative directory.
4754  cp "$am_depcomp" conftest.dir
4755  cd conftest.dir
4756  # We will build objects and dependencies in a subdirectory because
4757  # it helps to detect inapplicable dependency modes.  For instance
4758  # both Tru64's cc and ICC support -MD to output dependencies as a
4759  # side effect of compilation, but ICC will put the dependencies in
4760  # the current directory while Tru64 will put them in the object
4761  # directory.
4762  mkdir sub
4763
4764  am_cv_CC_dependencies_compiler_type=none
4765  if test "$am_compiler_list" = ""; then
4766     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4767  fi
4768  am__universal=false
4769  case " $depcc " in #(
4770     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4771     esac
4772
4773  for depmode in $am_compiler_list; do
4774    # Setup a source with many dependencies, because some compilers
4775    # like to wrap large dependency lists on column 80 (with \), and
4776    # we should not choose a depcomp mode which is confused by this.
4777    #
4778    # We need to recreate these files for each test, as the compiler may
4779    # overwrite some of them when testing with obscure command lines.
4780    # This happens at least with the AIX C compiler.
4781    : > sub/conftest.c
4782    for i in 1 2 3 4 5 6; do
4783      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4784      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4785      # Solaris 10 /bin/sh.
4786      echo '/* dummy */' > sub/conftst$i.h
4787    done
4788    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4789
4790    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4791    # mode.  It turns out that the SunPro C++ compiler does not properly
4792    # handle '-M -o', and we need to detect this.  Also, some Intel
4793    # versions had trouble with output in subdirs.
4794    am__obj=sub/conftest.${OBJEXT-o}
4795    am__minus_obj="-o $am__obj"
4796    case $depmode in
4797    gcc)
4798      # This depmode causes a compiler race in universal mode.
4799      test "$am__universal" = false || continue
4800      ;;
4801    nosideeffect)
4802      # After this tag, mechanisms are not by side-effect, so they'll
4803      # only be used when explicitly requested.
4804      if test "x$enable_dependency_tracking" = xyes; then
4805	continue
4806      else
4807	break
4808      fi
4809      ;;
4810    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4811      # This compiler won't grok '-c -o', but also, the minuso test has
4812      # not run yet.  These depmodes are late enough in the game, and
4813      # so weak that their functioning should not be impacted.
4814      am__obj=conftest.${OBJEXT-o}
4815      am__minus_obj=
4816      ;;
4817    none) break ;;
4818    esac
4819    if depmode=$depmode \
4820       source=sub/conftest.c object=$am__obj \
4821       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4822       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4823         >/dev/null 2>conftest.err &&
4824       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4825       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4826       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4827       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4828      # icc doesn't choke on unknown options, it will just issue warnings
4829      # or remarks (even with -Werror).  So we grep stderr for any message
4830      # that says an option was ignored or not supported.
4831      # When given -MP, icc 7.0 and 7.1 complain thus:
4832      #   icc: Command line warning: ignoring option '-M'; no argument required
4833      # The diagnosis changed in icc 8.0:
4834      #   icc: Command line remark: option '-MP' not supported
4835      if (grep 'ignoring option' conftest.err ||
4836          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4837        am_cv_CC_dependencies_compiler_type=$depmode
4838        break
4839      fi
4840    fi
4841  done
4842
4843  cd ..
4844  rm -rf conftest.dir
4845else
4846  am_cv_CC_dependencies_compiler_type=none
4847fi
4848 ;;
4849esac
4850fi
4851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4852printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4853CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4854
4855 if
4856  test "x$enable_dependency_tracking" != xno \
4857  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4858  am__fastdepCC_TRUE=
4859  am__fastdepCC_FALSE='#'
4860else
4861  am__fastdepCC_TRUE='#'
4862  am__fastdepCC_FALSE=
4863fi
4864
4865
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4867printf %s "checking for a sed that does not truncate output... " >&6; }
4868if test ${ac_cv_path_SED+y}
4869then :
4870  printf %s "(cached) " >&6
4871else case e in #(
4872  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4873     for ac_i in 1 2 3 4 5 6 7; do
4874       ac_script="$ac_script$as_nl$ac_script"
4875     done
4876     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4877     { ac_script=; unset ac_script;}
4878     if test -z "$SED"; then
4879  ac_path_SED_found=false
4880  # Loop through the user's path and test for each of PROGNAME-LIST
4881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884  IFS=$as_save_IFS
4885  case $as_dir in #(((
4886    '') as_dir=./ ;;
4887    */) ;;
4888    *) as_dir=$as_dir/ ;;
4889  esac
4890    for ac_prog in sed gsed
4891   do
4892    for ac_exec_ext in '' $ac_executable_extensions; do
4893      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4894      as_fn_executable_p "$ac_path_SED" || continue
4895# Check for GNU ac_path_SED and select it if it is found.
4896  # Check for GNU $ac_path_SED
4897case `"$ac_path_SED" --version 2>&1` in #(
4898*GNU*)
4899  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4900#(
4901*)
4902  ac_count=0
4903  printf %s 0123456789 >"conftest.in"
4904  while :
4905  do
4906    cat "conftest.in" "conftest.in" >"conftest.tmp"
4907    mv "conftest.tmp" "conftest.in"
4908    cp "conftest.in" "conftest.nl"
4909    printf "%s\n" '' >> "conftest.nl"
4910    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4911    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4912    as_fn_arith $ac_count + 1 && ac_count=$as_val
4913    if test $ac_count -gt ${ac_path_SED_max-0}; then
4914      # Best one so far, save it but keep looking for a better one
4915      ac_cv_path_SED="$ac_path_SED"
4916      ac_path_SED_max=$ac_count
4917    fi
4918    # 10*(2^10) chars as input seems more than enough
4919    test $ac_count -gt 10 && break
4920  done
4921  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922esac
4923
4924      $ac_path_SED_found && break 3
4925    done
4926  done
4927  done
4928IFS=$as_save_IFS
4929  if test -z "$ac_cv_path_SED"; then
4930    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4931  fi
4932else
4933  ac_cv_path_SED=$SED
4934fi
4935 ;;
4936esac
4937fi
4938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4939printf "%s\n" "$ac_cv_path_SED" >&6; }
4940 SED="$ac_cv_path_SED"
4941  rm -f conftest.sed
4942
4943test -z "$SED" && SED=sed
4944Xsed="$SED -e 1s/^X//"
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4957printf %s "checking for grep that handles long lines and -e... " >&6; }
4958if test ${ac_cv_path_GREP+y}
4959then :
4960  printf %s "(cached) " >&6
4961else case e in #(
4962  e) if test -z "$GREP"; then
4963  ac_path_GREP_found=false
4964  # Loop through the user's path and test for each of PROGNAME-LIST
4965  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4967do
4968  IFS=$as_save_IFS
4969  case $as_dir in #(((
4970    '') as_dir=./ ;;
4971    */) ;;
4972    *) as_dir=$as_dir/ ;;
4973  esac
4974    for ac_prog in grep ggrep
4975   do
4976    for ac_exec_ext in '' $ac_executable_extensions; do
4977      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4978      as_fn_executable_p "$ac_path_GREP" || continue
4979# Check for GNU ac_path_GREP and select it if it is found.
4980  # Check for GNU $ac_path_GREP
4981case `"$ac_path_GREP" --version 2>&1` in #(
4982*GNU*)
4983  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4984#(
4985*)
4986  ac_count=0
4987  printf %s 0123456789 >"conftest.in"
4988  while :
4989  do
4990    cat "conftest.in" "conftest.in" >"conftest.tmp"
4991    mv "conftest.tmp" "conftest.in"
4992    cp "conftest.in" "conftest.nl"
4993    printf "%s\n" 'GREP' >> "conftest.nl"
4994    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4995    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996    as_fn_arith $ac_count + 1 && ac_count=$as_val
4997    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4998      # Best one so far, save it but keep looking for a better one
4999      ac_cv_path_GREP="$ac_path_GREP"
5000      ac_path_GREP_max=$ac_count
5001    fi
5002    # 10*(2^10) chars as input seems more than enough
5003    test $ac_count -gt 10 && break
5004  done
5005  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006esac
5007
5008      $ac_path_GREP_found && break 3
5009    done
5010  done
5011  done
5012IFS=$as_save_IFS
5013  if test -z "$ac_cv_path_GREP"; then
5014    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5015  fi
5016else
5017  ac_cv_path_GREP=$GREP
5018fi
5019 ;;
5020esac
5021fi
5022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5023printf "%s\n" "$ac_cv_path_GREP" >&6; }
5024 GREP="$ac_cv_path_GREP"
5025
5026
5027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5028printf %s "checking for egrep... " >&6; }
5029if test ${ac_cv_path_EGREP+y}
5030then :
5031  printf %s "(cached) " >&6
5032else case e in #(
5033  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5034   then ac_cv_path_EGREP="$GREP -E"
5035   else
5036     if test -z "$EGREP"; then
5037  ac_path_EGREP_found=false
5038  # Loop through the user's path and test for each of PROGNAME-LIST
5039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5041do
5042  IFS=$as_save_IFS
5043  case $as_dir in #(((
5044    '') as_dir=./ ;;
5045    */) ;;
5046    *) as_dir=$as_dir/ ;;
5047  esac
5048    for ac_prog in egrep
5049   do
5050    for ac_exec_ext in '' $ac_executable_extensions; do
5051      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5052      as_fn_executable_p "$ac_path_EGREP" || continue
5053# Check for GNU ac_path_EGREP and select it if it is found.
5054  # Check for GNU $ac_path_EGREP
5055case `"$ac_path_EGREP" --version 2>&1` in #(
5056*GNU*)
5057  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5058#(
5059*)
5060  ac_count=0
5061  printf %s 0123456789 >"conftest.in"
5062  while :
5063  do
5064    cat "conftest.in" "conftest.in" >"conftest.tmp"
5065    mv "conftest.tmp" "conftest.in"
5066    cp "conftest.in" "conftest.nl"
5067    printf "%s\n" 'EGREP' >> "conftest.nl"
5068    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5069    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5070    as_fn_arith $ac_count + 1 && ac_count=$as_val
5071    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5072      # Best one so far, save it but keep looking for a better one
5073      ac_cv_path_EGREP="$ac_path_EGREP"
5074      ac_path_EGREP_max=$ac_count
5075    fi
5076    # 10*(2^10) chars as input seems more than enough
5077    test $ac_count -gt 10 && break
5078  done
5079  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5080esac
5081
5082      $ac_path_EGREP_found && break 3
5083    done
5084  done
5085  done
5086IFS=$as_save_IFS
5087  if test -z "$ac_cv_path_EGREP"; then
5088    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5089  fi
5090else
5091  ac_cv_path_EGREP=$EGREP
5092fi
5093
5094   fi ;;
5095esac
5096fi
5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5098printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5099 EGREP="$ac_cv_path_EGREP"
5100
5101         EGREP_TRADITIONAL=$EGREP
5102 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5103
5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5105printf %s "checking for fgrep... " >&6; }
5106if test ${ac_cv_path_FGREP+y}
5107then :
5108  printf %s "(cached) " >&6
5109else case e in #(
5110  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5111   then ac_cv_path_FGREP="$GREP -F"
5112   else
5113     if test -z "$FGREP"; then
5114  ac_path_FGREP_found=false
5115  # Loop through the user's path and test for each of PROGNAME-LIST
5116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118do
5119  IFS=$as_save_IFS
5120  case $as_dir in #(((
5121    '') as_dir=./ ;;
5122    */) ;;
5123    *) as_dir=$as_dir/ ;;
5124  esac
5125    for ac_prog in fgrep
5126   do
5127    for ac_exec_ext in '' $ac_executable_extensions; do
5128      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5129      as_fn_executable_p "$ac_path_FGREP" || continue
5130# Check for GNU ac_path_FGREP and select it if it is found.
5131  # Check for GNU $ac_path_FGREP
5132case `"$ac_path_FGREP" --version 2>&1` in #(
5133*GNU*)
5134  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5135#(
5136*)
5137  ac_count=0
5138  printf %s 0123456789 >"conftest.in"
5139  while :
5140  do
5141    cat "conftest.in" "conftest.in" >"conftest.tmp"
5142    mv "conftest.tmp" "conftest.in"
5143    cp "conftest.in" "conftest.nl"
5144    printf "%s\n" 'FGREP' >> "conftest.nl"
5145    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5146    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5147    as_fn_arith $ac_count + 1 && ac_count=$as_val
5148    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5149      # Best one so far, save it but keep looking for a better one
5150      ac_cv_path_FGREP="$ac_path_FGREP"
5151      ac_path_FGREP_max=$ac_count
5152    fi
5153    # 10*(2^10) chars as input seems more than enough
5154    test $ac_count -gt 10 && break
5155  done
5156  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5157esac
5158
5159      $ac_path_FGREP_found && break 3
5160    done
5161  done
5162  done
5163IFS=$as_save_IFS
5164  if test -z "$ac_cv_path_FGREP"; then
5165    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5166  fi
5167else
5168  ac_cv_path_FGREP=$FGREP
5169fi
5170
5171   fi ;;
5172esac
5173fi
5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5175printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5176 FGREP="$ac_cv_path_FGREP"
5177
5178
5179test -z "$GREP" && GREP=grep
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199# Check whether --with-gnu-ld was given.
5200if test ${with_gnu_ld+y}
5201then :
5202  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5203else case e in #(
5204  e) with_gnu_ld=no ;;
5205esac
5206fi
5207
5208ac_prog=ld
5209if test yes = "$GCC"; then
5210  # Check if gcc -print-prog-name=ld gives a path.
5211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5212printf %s "checking for ld used by $CC... " >&6; }
5213  case $host in
5214  *-*-mingw* | *-*-windows*)
5215    # gcc leaves a trailing carriage return, which upsets mingw
5216    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5217  *)
5218    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5219  esac
5220  case $ac_prog in
5221    # Accept absolute paths.
5222    [\\/]* | ?:[\\/]*)
5223      re_direlt='/[^/][^/]*/\.\./'
5224      # Canonicalize the pathname of ld
5225      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5226      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5227	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5228      done
5229      test -z "$LD" && LD=$ac_prog
5230      ;;
5231  "")
5232    # If it fails, then pretend we aren't using GCC.
5233    ac_prog=ld
5234    ;;
5235  *)
5236    # If it is relative, then search for the first ld in PATH.
5237    with_gnu_ld=unknown
5238    ;;
5239  esac
5240elif test yes = "$with_gnu_ld"; then
5241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5242printf %s "checking for GNU ld... " >&6; }
5243else
5244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5245printf %s "checking for non-GNU ld... " >&6; }
5246fi
5247if test ${lt_cv_path_LD+y}
5248then :
5249  printf %s "(cached) " >&6
5250else case e in #(
5251  e) if test -z "$LD"; then
5252  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5253  for ac_dir in $PATH; do
5254    IFS=$lt_save_ifs
5255    test -z "$ac_dir" && ac_dir=.
5256    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5257      lt_cv_path_LD=$ac_dir/$ac_prog
5258      # Check to see if the program is GNU ld.  I'd rather use --version,
5259      # but apparently some variants of GNU ld only accept -v.
5260      # Break only if it was the GNU/non-GNU ld that we prefer.
5261      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5262      *GNU* | *'with BFD'*)
5263	test no != "$with_gnu_ld" && break
5264	;;
5265      *)
5266	test yes != "$with_gnu_ld" && break
5267	;;
5268      esac
5269    fi
5270  done
5271  IFS=$lt_save_ifs
5272else
5273  lt_cv_path_LD=$LD # Let the user override the test with a path.
5274fi ;;
5275esac
5276fi
5277
5278LD=$lt_cv_path_LD
5279if test -n "$LD"; then
5280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5281printf "%s\n" "$LD" >&6; }
5282else
5283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284printf "%s\n" "no" >&6; }
5285fi
5286test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5288printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5289if test ${lt_cv_prog_gnu_ld+y}
5290then :
5291  printf %s "(cached) " >&6
5292else case e in #(
5293  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5294case `$LD -v 2>&1 </dev/null` in
5295*GNU* | *'with BFD'*)
5296  lt_cv_prog_gnu_ld=yes
5297  ;;
5298*)
5299  lt_cv_prog_gnu_ld=no
5300  ;;
5301esac ;;
5302esac
5303fi
5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5305printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5306with_gnu_ld=$lt_cv_prog_gnu_ld
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5317printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5318if test ${lt_cv_path_NM+y}
5319then :
5320  printf %s "(cached) " >&6
5321else case e in #(
5322  e) if test -n "$NM"; then
5323  # Let the user override the test.
5324  lt_cv_path_NM=$NM
5325else
5326  lt_nm_to_check=${ac_tool_prefix}nm
5327  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5328    lt_nm_to_check="$lt_nm_to_check nm"
5329  fi
5330  for lt_tmp_nm in $lt_nm_to_check; do
5331    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5332    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5333      IFS=$lt_save_ifs
5334      test -z "$ac_dir" && ac_dir=.
5335      tmp_nm=$ac_dir/$lt_tmp_nm
5336      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5337	# Check to see if the nm accepts a BSD-compat flag.
5338	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5339	#   nm: unknown option "B" ignored
5340	# Tru64's nm complains that /dev/null is an invalid object file
5341	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5342	case $build_os in
5343	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5344	*) lt_bad_file=/dev/null ;;
5345	esac
5346	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5347	*$lt_bad_file* | *'Invalid file or object type'*)
5348	  lt_cv_path_NM="$tmp_nm -B"
5349	  break 2
5350	  ;;
5351	*)
5352	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5353	  */dev/null*)
5354	    lt_cv_path_NM="$tmp_nm -p"
5355	    break 2
5356	    ;;
5357	  *)
5358	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5359	    continue # so that we can try to find one that supports BSD flags
5360	    ;;
5361	  esac
5362	  ;;
5363	esac
5364      fi
5365    done
5366    IFS=$lt_save_ifs
5367  done
5368  : ${lt_cv_path_NM=no}
5369fi ;;
5370esac
5371fi
5372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5373printf "%s\n" "$lt_cv_path_NM" >&6; }
5374if test no != "$lt_cv_path_NM"; then
5375  NM=$lt_cv_path_NM
5376else
5377  # Didn't find any BSD compatible name lister, look for dumpbin.
5378  if test -n "$DUMPBIN"; then :
5379    # Let the user override the test.
5380  else
5381    if test -n "$ac_tool_prefix"; then
5382  for ac_prog in dumpbin "link -dump"
5383  do
5384    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5385set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387printf %s "checking for $ac_word... " >&6; }
5388if test ${ac_cv_prog_DUMPBIN+y}
5389then :
5390  printf %s "(cached) " >&6
5391else case e in #(
5392  e) if test -n "$DUMPBIN"; then
5393  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398  IFS=$as_save_IFS
5399  case $as_dir in #(((
5400    '') as_dir=./ ;;
5401    */) ;;
5402    *) as_dir=$as_dir/ ;;
5403  esac
5404    for ac_exec_ext in '' $ac_executable_extensions; do
5405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5406    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5408    break 2
5409  fi
5410done
5411  done
5412IFS=$as_save_IFS
5413
5414fi ;;
5415esac
5416fi
5417DUMPBIN=$ac_cv_prog_DUMPBIN
5418if test -n "$DUMPBIN"; then
5419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5420printf "%s\n" "$DUMPBIN" >&6; }
5421else
5422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423printf "%s\n" "no" >&6; }
5424fi
5425
5426
5427    test -n "$DUMPBIN" && break
5428  done
5429fi
5430if test -z "$DUMPBIN"; then
5431  ac_ct_DUMPBIN=$DUMPBIN
5432  for ac_prog in dumpbin "link -dump"
5433do
5434  # Extract the first word of "$ac_prog", so it can be a program name with args.
5435set dummy $ac_prog; ac_word=$2
5436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437printf %s "checking for $ac_word... " >&6; }
5438if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5439then :
5440  printf %s "(cached) " >&6
5441else case e in #(
5442  e) if test -n "$ac_ct_DUMPBIN"; then
5443  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448  IFS=$as_save_IFS
5449  case $as_dir in #(((
5450    '') as_dir=./ ;;
5451    */) ;;
5452    *) as_dir=$as_dir/ ;;
5453  esac
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5456    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5457    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5458    break 2
5459  fi
5460done
5461  done
5462IFS=$as_save_IFS
5463
5464fi ;;
5465esac
5466fi
5467ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5468if test -n "$ac_ct_DUMPBIN"; then
5469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5470printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5471else
5472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473printf "%s\n" "no" >&6; }
5474fi
5475
5476
5477  test -n "$ac_ct_DUMPBIN" && break
5478done
5479
5480  if test "x$ac_ct_DUMPBIN" = x; then
5481    DUMPBIN=":"
5482  else
5483    case $cross_compiling:$ac_tool_warned in
5484yes:)
5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5486printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5487ac_tool_warned=yes ;;
5488esac
5489    DUMPBIN=$ac_ct_DUMPBIN
5490  fi
5491fi
5492
5493    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5494    *COFF*)
5495      DUMPBIN="$DUMPBIN -symbols -headers"
5496      ;;
5497    *)
5498      DUMPBIN=:
5499      ;;
5500    esac
5501  fi
5502
5503  if test : != "$DUMPBIN"; then
5504    NM=$DUMPBIN
5505  fi
5506fi
5507test -z "$NM" && NM=nm
5508
5509
5510
5511
5512
5513
5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5515printf %s "checking the name lister ($NM) interface... " >&6; }
5516if test ${lt_cv_nm_interface+y}
5517then :
5518  printf %s "(cached) " >&6
5519else case e in #(
5520  e) lt_cv_nm_interface="BSD nm"
5521  echo "int some_variable = 0;" > conftest.$ac_ext
5522  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5523  (eval "$ac_compile" 2>conftest.err)
5524  cat conftest.err >&5
5525  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5526  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5527  cat conftest.err >&5
5528  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5529  cat conftest.out >&5
5530  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5531    lt_cv_nm_interface="MS dumpbin"
5532  fi
5533  rm -f conftest* ;;
5534esac
5535fi
5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5537printf "%s\n" "$lt_cv_nm_interface" >&6; }
5538
5539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5540printf %s "checking whether ln -s works... " >&6; }
5541LN_S=$as_ln_s
5542if test "$LN_S" = "ln -s"; then
5543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544printf "%s\n" "yes" >&6; }
5545else
5546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5547printf "%s\n" "no, using $LN_S" >&6; }
5548fi
5549
5550# find the maximum length of command line arguments
5551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5552printf %s "checking the maximum length of command line arguments... " >&6; }
5553if test ${lt_cv_sys_max_cmd_len+y}
5554then :
5555  printf %s "(cached) " >&6
5556else case e in #(
5557  e)   i=0
5558  teststring=ABCD
5559
5560  case $build_os in
5561  msdosdjgpp*)
5562    # On DJGPP, this test can blow up pretty badly due to problems in libc
5563    # (any single argument exceeding 2000 bytes causes a buffer overrun
5564    # during glob expansion).  Even if it were fixed, the result of this
5565    # check would be larger than it should be.
5566    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5567    ;;
5568
5569  gnu* | ironclad*)
5570    # Under GNU Hurd and Ironclad, this test is not required because there
5571    # is no limit to the length of command line arguments.
5572    # Libtool will interpret -1 as no limit whatsoever
5573    lt_cv_sys_max_cmd_len=-1;
5574    ;;
5575
5576  cygwin* | mingw* | windows* | cegcc*)
5577    # On Win9x/ME, this test blows up -- it succeeds, but takes
5578    # about 5 minutes as the teststring grows exponentially.
5579    # Worse, since 9x/ME are not pre-emptively multitasking,
5580    # you end up with a "frozen" computer, even though with patience
5581    # the test eventually succeeds (with a max line length of 256k).
5582    # Instead, let's just punt: use the minimum linelength reported by
5583    # all of the supported platforms: 8192 (on NT/2K/XP).
5584    lt_cv_sys_max_cmd_len=8192;
5585    ;;
5586
5587  mint*)
5588    # On MiNT this can take a long time and run out of memory.
5589    lt_cv_sys_max_cmd_len=8192;
5590    ;;
5591
5592  amigaos*)
5593    # On AmigaOS with pdksh, this test takes hours, literally.
5594    # So we just punt and use a minimum line length of 8192.
5595    lt_cv_sys_max_cmd_len=8192;
5596    ;;
5597
5598  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5599    # This has been around since 386BSD, at least.  Likely further.
5600    if test -x /sbin/sysctl; then
5601      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5602    elif test -x /usr/sbin/sysctl; then
5603      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5604    else
5605      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5606    fi
5607    # And add a safety zone
5608    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5609    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5610    ;;
5611
5612  interix*)
5613    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5614    lt_cv_sys_max_cmd_len=196608
5615    ;;
5616
5617  os2*)
5618    # The test takes a long time on OS/2.
5619    lt_cv_sys_max_cmd_len=8192
5620    ;;
5621
5622  osf*)
5623    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5624    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5625    # nice to cause kernel panics so lets avoid the loop below.
5626    # First set a reasonable default.
5627    lt_cv_sys_max_cmd_len=16384
5628    #
5629    if test -x /sbin/sysconfig; then
5630      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5631        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5632      esac
5633    fi
5634    ;;
5635  sco3.2v5*)
5636    lt_cv_sys_max_cmd_len=102400
5637    ;;
5638  sysv5* | sco5v6* | sysv4.2uw2*)
5639    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5640    if test -n "$kargmax"; then
5641      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5642    else
5643      lt_cv_sys_max_cmd_len=32768
5644    fi
5645    ;;
5646  *)
5647    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5648    if test -n "$lt_cv_sys_max_cmd_len" && \
5649       test undefined != "$lt_cv_sys_max_cmd_len"; then
5650      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5651      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5652    else
5653      # Make teststring a little bigger before we do anything with it.
5654      # a 1K string should be a reasonable start.
5655      for i in 1 2 3 4 5 6 7 8; do
5656        teststring=$teststring$teststring
5657      done
5658      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5659      # If test is not a shell built-in, we'll probably end up computing a
5660      # maximum length that is only half of the actual maximum length, but
5661      # we can't tell.
5662      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5663	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5664	      test 17 != "$i" # 1/2 MB should be enough
5665      do
5666        i=`expr $i + 1`
5667        teststring=$teststring$teststring
5668      done
5669      # Only check the string length outside the loop.
5670      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5671      teststring=
5672      # Add a significant safety factor because C++ compilers can tack on
5673      # massive amounts of additional arguments before passing them to the
5674      # linker.  It appears as though 1/2 is a usable value.
5675      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5676    fi
5677    ;;
5678  esac
5679 ;;
5680esac
5681fi
5682
5683if test -n "$lt_cv_sys_max_cmd_len"; then
5684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5685printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5686else
5687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5688printf "%s\n" "none" >&6; }
5689fi
5690max_cmd_len=$lt_cv_sys_max_cmd_len
5691
5692
5693
5694
5695
5696
5697: ${CP="cp -f"}
5698: ${MV="mv -f"}
5699: ${RM="rm -f"}
5700
5701if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5702  lt_unset=unset
5703else
5704  lt_unset=false
5705fi
5706
5707
5708
5709
5710
5711# test EBCDIC or ASCII
5712case `echo X|tr X '\101'` in
5713 A) # ASCII based system
5714    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5715  lt_SP2NL='tr \040 \012'
5716  lt_NL2SP='tr \015\012 \040\040'
5717  ;;
5718 *) # EBCDIC based system
5719  lt_SP2NL='tr \100 \n'
5720  lt_NL2SP='tr \r\n \100\100'
5721  ;;
5722esac
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5733printf %s "checking how to convert $build file names to $host format... " >&6; }
5734if test ${lt_cv_to_host_file_cmd+y}
5735then :
5736  printf %s "(cached) " >&6
5737else case e in #(
5738  e) case $host in
5739  *-*-mingw* )
5740    case $build in
5741      *-*-mingw* | *-*-windows* ) # actually msys
5742        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5743        ;;
5744      *-*-cygwin* )
5745        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5746        ;;
5747      * ) # otherwise, assume *nix
5748        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5749        ;;
5750    esac
5751    ;;
5752  *-*-cygwin* )
5753    case $build in
5754      *-*-mingw* | *-*-windows* ) # actually msys
5755        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5756        ;;
5757      *-*-cygwin* )
5758        lt_cv_to_host_file_cmd=func_convert_file_noop
5759        ;;
5760      * ) # otherwise, assume *nix
5761        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5762        ;;
5763    esac
5764    ;;
5765  * ) # unhandled hosts (and "normal" native builds)
5766    lt_cv_to_host_file_cmd=func_convert_file_noop
5767    ;;
5768esac
5769 ;;
5770esac
5771fi
5772
5773to_host_file_cmd=$lt_cv_to_host_file_cmd
5774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5775printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5776
5777
5778
5779
5780
5781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5782printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5783if test ${lt_cv_to_tool_file_cmd+y}
5784then :
5785  printf %s "(cached) " >&6
5786else case e in #(
5787  e) #assume ordinary cross tools, or native build.
5788lt_cv_to_tool_file_cmd=func_convert_file_noop
5789case $host in
5790  *-*-mingw* | *-*-windows* )
5791    case $build in
5792      *-*-mingw* | *-*-windows* ) # actually msys
5793        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5794        ;;
5795    esac
5796    ;;
5797esac
5798 ;;
5799esac
5800fi
5801
5802to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5804printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5805
5806
5807
5808
5809
5810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5811printf %s "checking for $LD option to reload object files... " >&6; }
5812if test ${lt_cv_ld_reload_flag+y}
5813then :
5814  printf %s "(cached) " >&6
5815else case e in #(
5816  e) lt_cv_ld_reload_flag='-r' ;;
5817esac
5818fi
5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5820printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5821reload_flag=$lt_cv_ld_reload_flag
5822case $reload_flag in
5823"" | " "*) ;;
5824*) reload_flag=" $reload_flag" ;;
5825esac
5826reload_cmds='$LD$reload_flag -o $output$reload_objs'
5827case $host_os in
5828  cygwin* | mingw* | windows* | pw32* | cegcc*)
5829    if test yes != "$GCC"; then
5830      reload_cmds=false
5831    fi
5832    ;;
5833  darwin*)
5834    if test yes = "$GCC"; then
5835      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5836    else
5837      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838    fi
5839    ;;
5840esac
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850# Extract the first word of "file", so it can be a program name with args.
5851set dummy file; ac_word=$2
5852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853printf %s "checking for $ac_word... " >&6; }
5854if test ${ac_cv_prog_FILECMD+y}
5855then :
5856  printf %s "(cached) " >&6
5857else case e in #(
5858  e) if test -n "$FILECMD"; then
5859  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5860else
5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862for as_dir in $PATH
5863do
5864  IFS=$as_save_IFS
5865  case $as_dir in #(((
5866    '') as_dir=./ ;;
5867    */) ;;
5868    *) as_dir=$as_dir/ ;;
5869  esac
5870    for ac_exec_ext in '' $ac_executable_extensions; do
5871  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5872    ac_cv_prog_FILECMD="file"
5873    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5874    break 2
5875  fi
5876done
5877  done
5878IFS=$as_save_IFS
5879
5880  test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
5881fi ;;
5882esac
5883fi
5884FILECMD=$ac_cv_prog_FILECMD
5885if test -n "$FILECMD"; then
5886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5887printf "%s\n" "$FILECMD" >&6; }
5888else
5889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890printf "%s\n" "no" >&6; }
5891fi
5892
5893
5894
5895
5896
5897
5898
5899
5900if test -n "$ac_tool_prefix"; then
5901  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5902set dummy ${ac_tool_prefix}objdump; ac_word=$2
5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904printf %s "checking for $ac_word... " >&6; }
5905if test ${ac_cv_prog_OBJDUMP+y}
5906then :
5907  printf %s "(cached) " >&6
5908else case e in #(
5909  e) if test -n "$OBJDUMP"; then
5910  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915  IFS=$as_save_IFS
5916  case $as_dir in #(((
5917    '') as_dir=./ ;;
5918    */) ;;
5919    *) as_dir=$as_dir/ ;;
5920  esac
5921    for ac_exec_ext in '' $ac_executable_extensions; do
5922  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5923    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5924    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5925    break 2
5926  fi
5927done
5928  done
5929IFS=$as_save_IFS
5930
5931fi ;;
5932esac
5933fi
5934OBJDUMP=$ac_cv_prog_OBJDUMP
5935if test -n "$OBJDUMP"; then
5936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5937printf "%s\n" "$OBJDUMP" >&6; }
5938else
5939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940printf "%s\n" "no" >&6; }
5941fi
5942
5943
5944fi
5945if test -z "$ac_cv_prog_OBJDUMP"; then
5946  ac_ct_OBJDUMP=$OBJDUMP
5947  # Extract the first word of "objdump", so it can be a program name with args.
5948set dummy objdump; ac_word=$2
5949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950printf %s "checking for $ac_word... " >&6; }
5951if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5952then :
5953  printf %s "(cached) " >&6
5954else case e in #(
5955  e) if test -n "$ac_ct_OBJDUMP"; then
5956  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961  IFS=$as_save_IFS
5962  case $as_dir in #(((
5963    '') as_dir=./ ;;
5964    */) ;;
5965    *) as_dir=$as_dir/ ;;
5966  esac
5967    for ac_exec_ext in '' $ac_executable_extensions; do
5968  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5969    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5970    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5971    break 2
5972  fi
5973done
5974  done
5975IFS=$as_save_IFS
5976
5977fi ;;
5978esac
5979fi
5980ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5981if test -n "$ac_ct_OBJDUMP"; then
5982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5983printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5984else
5985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986printf "%s\n" "no" >&6; }
5987fi
5988
5989  if test "x$ac_ct_OBJDUMP" = x; then
5990    OBJDUMP="false"
5991  else
5992    case $cross_compiling:$ac_tool_warned in
5993yes:)
5994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996ac_tool_warned=yes ;;
5997esac
5998    OBJDUMP=$ac_ct_OBJDUMP
5999  fi
6000else
6001  OBJDUMP="$ac_cv_prog_OBJDUMP"
6002fi
6003
6004test -z "$OBJDUMP" && OBJDUMP=objdump
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6015printf %s "checking how to recognize dependent libraries... " >&6; }
6016if test ${lt_cv_deplibs_check_method+y}
6017then :
6018  printf %s "(cached) " >&6
6019else case e in #(
6020  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6021lt_cv_file_magic_test_file=
6022lt_cv_deplibs_check_method='unknown'
6023# Need to set the preceding variable on all platforms that support
6024# interlibrary dependencies.
6025# 'none' -- dependencies not supported.
6026# 'unknown' -- same as none, but documents that we really don't know.
6027# 'pass_all' -- all dependencies passed with no checks.
6028# 'file_magic [[regex]]' -- check by looking for files in library path
6029# that responds to the $file_magic_cmd with a given extended regex.
6030# If you have 'file' or equivalent on your system and you're not sure
6031# whether 'pass_all' will *always* work, you probably want this one.
6032
6033case $host_os in
6034aix[4-9]*)
6035  lt_cv_deplibs_check_method=pass_all
6036  ;;
6037
6038beos*)
6039  lt_cv_deplibs_check_method=pass_all
6040  ;;
6041
6042bsdi[45]*)
6043  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6044  lt_cv_file_magic_cmd='$FILECMD -L'
6045  lt_cv_file_magic_test_file=/shlib/libc.so
6046  ;;
6047
6048cygwin*)
6049  # func_win32_libid is a shell function defined in ltmain.sh
6050  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6051  lt_cv_file_magic_cmd='func_win32_libid'
6052  ;;
6053
6054mingw* | windows* | pw32*)
6055  # Base MSYS/MinGW do not provide the 'file' command needed by
6056  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6057  # unless we find 'file', for example because we are cross-compiling.
6058  if ( file / ) >/dev/null 2>&1; then
6059    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6060    lt_cv_file_magic_cmd='func_win32_libid'
6061  else
6062    # Keep this pattern in sync with the one in func_win32_libid.
6063    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6064    lt_cv_file_magic_cmd='$OBJDUMP -f'
6065  fi
6066  ;;
6067
6068cegcc*)
6069  # use the weaker test based on 'objdump'. See mingw*.
6070  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6071  lt_cv_file_magic_cmd='$OBJDUMP -f'
6072  ;;
6073
6074darwin* | rhapsody*)
6075  lt_cv_deplibs_check_method=pass_all
6076  ;;
6077
6078freebsd* | dragonfly* | midnightbsd*)
6079  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6080    case $host_cpu in
6081    i*86 )
6082      # Not sure whether the presence of OpenBSD here was a mistake.
6083      # Let's accept both of them until this is cleared up.
6084      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6085      lt_cv_file_magic_cmd=$FILECMD
6086      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6087      ;;
6088    esac
6089  else
6090    lt_cv_deplibs_check_method=pass_all
6091  fi
6092  ;;
6093
6094haiku*)
6095  lt_cv_deplibs_check_method=pass_all
6096  ;;
6097
6098hpux10.20* | hpux11*)
6099  lt_cv_file_magic_cmd=$FILECMD
6100  case $host_cpu in
6101  ia64*)
6102    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6103    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6104    ;;
6105  hppa*64*)
6106    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]'
6107    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6108    ;;
6109  *)
6110    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6111    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6112    ;;
6113  esac
6114  ;;
6115
6116interix[3-9]*)
6117  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6118  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6119  ;;
6120
6121irix5* | irix6* | nonstopux*)
6122  case $LD in
6123  *-32|*"-32 ") libmagic=32-bit;;
6124  *-n32|*"-n32 ") libmagic=N32;;
6125  *-64|*"-64 ") libmagic=64-bit;;
6126  *) libmagic=never-match;;
6127  esac
6128  lt_cv_deplibs_check_method=pass_all
6129  ;;
6130
6131# This must be glibc/ELF.
6132linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6133  lt_cv_deplibs_check_method=pass_all
6134  ;;
6135
6136*-mlibc)
6137  lt_cv_deplibs_check_method=pass_all
6138  ;;
6139
6140netbsd* | netbsdelf*-gnu)
6141  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6142    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6143  else
6144    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6145  fi
6146  ;;
6147
6148newos6*)
6149  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6150  lt_cv_file_magic_cmd=$FILECMD
6151  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6152  ;;
6153
6154*nto* | *qnx*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157
6158openbsd*)
6159  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6160    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6161  else
6162    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6163  fi
6164  ;;
6165
6166osf3* | osf4* | osf5*)
6167  lt_cv_deplibs_check_method=pass_all
6168  ;;
6169
6170rdos*)
6171  lt_cv_deplibs_check_method=pass_all
6172  ;;
6173
6174serenity*)
6175  lt_cv_deplibs_check_method=pass_all
6176  ;;
6177
6178solaris*)
6179  lt_cv_deplibs_check_method=pass_all
6180  ;;
6181
6182sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6183  lt_cv_deplibs_check_method=pass_all
6184  ;;
6185
6186sysv4 | sysv4.3*)
6187  case $host_vendor in
6188  motorola)
6189    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]'
6190    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6191    ;;
6192  ncr)
6193    lt_cv_deplibs_check_method=pass_all
6194    ;;
6195  sequent)
6196    lt_cv_file_magic_cmd='/bin/file'
6197    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6198    ;;
6199  sni)
6200    lt_cv_file_magic_cmd='/bin/file'
6201    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6202    lt_cv_file_magic_test_file=/lib/libc.so
6203    ;;
6204  siemens)
6205    lt_cv_deplibs_check_method=pass_all
6206    ;;
6207  pc)
6208    lt_cv_deplibs_check_method=pass_all
6209    ;;
6210  esac
6211  ;;
6212
6213tpf*)
6214  lt_cv_deplibs_check_method=pass_all
6215  ;;
6216os2*)
6217  lt_cv_deplibs_check_method=pass_all
6218  ;;
6219esac
6220 ;;
6221esac
6222fi
6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6224printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6225
6226file_magic_glob=
6227want_nocaseglob=no
6228if test "$build" = "$host"; then
6229  case $host_os in
6230  mingw* | windows* | pw32*)
6231    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6232      want_nocaseglob=yes
6233    else
6234      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6235    fi
6236    ;;
6237  esac
6238fi
6239
6240file_magic_cmd=$lt_cv_file_magic_cmd
6241deplibs_check_method=$lt_cv_deplibs_check_method
6242test -z "$deplibs_check_method" && deplibs_check_method=unknown
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265if test -n "$ac_tool_prefix"; then
6266  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6267set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269printf %s "checking for $ac_word... " >&6; }
6270if test ${ac_cv_prog_DLLTOOL+y}
6271then :
6272  printf %s "(cached) " >&6
6273else case e in #(
6274  e) if test -n "$DLLTOOL"; then
6275  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  case $as_dir in #(((
6282    '') as_dir=./ ;;
6283    */) ;;
6284    *) as_dir=$as_dir/ ;;
6285  esac
6286    for ac_exec_ext in '' $ac_executable_extensions; do
6287  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6288    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6289    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6290    break 2
6291  fi
6292done
6293  done
6294IFS=$as_save_IFS
6295
6296fi ;;
6297esac
6298fi
6299DLLTOOL=$ac_cv_prog_DLLTOOL
6300if test -n "$DLLTOOL"; then
6301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6302printf "%s\n" "$DLLTOOL" >&6; }
6303else
6304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305printf "%s\n" "no" >&6; }
6306fi
6307
6308
6309fi
6310if test -z "$ac_cv_prog_DLLTOOL"; then
6311  ac_ct_DLLTOOL=$DLLTOOL
6312  # Extract the first word of "dlltool", so it can be a program name with args.
6313set dummy dlltool; ac_word=$2
6314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315printf %s "checking for $ac_word... " >&6; }
6316if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6317then :
6318  printf %s "(cached) " >&6
6319else case e in #(
6320  e) if test -n "$ac_ct_DLLTOOL"; then
6321  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6322else
6323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326  IFS=$as_save_IFS
6327  case $as_dir in #(((
6328    '') as_dir=./ ;;
6329    */) ;;
6330    *) as_dir=$as_dir/ ;;
6331  esac
6332    for ac_exec_ext in '' $ac_executable_extensions; do
6333  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6334    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6335    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6336    break 2
6337  fi
6338done
6339  done
6340IFS=$as_save_IFS
6341
6342fi ;;
6343esac
6344fi
6345ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6346if test -n "$ac_ct_DLLTOOL"; then
6347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6348printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6349else
6350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351printf "%s\n" "no" >&6; }
6352fi
6353
6354  if test "x$ac_ct_DLLTOOL" = x; then
6355    DLLTOOL="false"
6356  else
6357    case $cross_compiling:$ac_tool_warned in
6358yes:)
6359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361ac_tool_warned=yes ;;
6362esac
6363    DLLTOOL=$ac_ct_DLLTOOL
6364  fi
6365else
6366  DLLTOOL="$ac_cv_prog_DLLTOOL"
6367fi
6368
6369test -z "$DLLTOOL" && DLLTOOL=dlltool
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6381printf %s "checking how to associate runtime and link libraries... " >&6; }
6382if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6383then :
6384  printf %s "(cached) " >&6
6385else case e in #(
6386  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6387
6388case $host_os in
6389cygwin* | mingw* | windows* | pw32* | cegcc*)
6390  # two different shell functions defined in ltmain.sh;
6391  # decide which one to use based on capabilities of $DLLTOOL
6392  case `$DLLTOOL --help 2>&1` in
6393  *--identify-strict*)
6394    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6395    ;;
6396  *)
6397    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6398    ;;
6399  esac
6400  ;;
6401*)
6402  # fallback: assume linklib IS sharedlib
6403  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6404  ;;
6405esac
6406 ;;
6407esac
6408fi
6409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6410printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6411sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6412test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6413
6414
6415
6416
6417
6418
6419
6420
6421if test -n "$ac_tool_prefix"; then
6422  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6423set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425printf %s "checking for $ac_word... " >&6; }
6426if test ${ac_cv_prog_RANLIB+y}
6427then :
6428  printf %s "(cached) " >&6
6429else case e in #(
6430  e) if test -n "$RANLIB"; then
6431  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436  IFS=$as_save_IFS
6437  case $as_dir in #(((
6438    '') as_dir=./ ;;
6439    */) ;;
6440    *) as_dir=$as_dir/ ;;
6441  esac
6442    for ac_exec_ext in '' $ac_executable_extensions; do
6443  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6444    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6446    break 2
6447  fi
6448done
6449  done
6450IFS=$as_save_IFS
6451
6452fi ;;
6453esac
6454fi
6455RANLIB=$ac_cv_prog_RANLIB
6456if test -n "$RANLIB"; then
6457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6458printf "%s\n" "$RANLIB" >&6; }
6459else
6460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461printf "%s\n" "no" >&6; }
6462fi
6463
6464
6465fi
6466if test -z "$ac_cv_prog_RANLIB"; then
6467  ac_ct_RANLIB=$RANLIB
6468  # Extract the first word of "ranlib", so it can be a program name with args.
6469set dummy ranlib; ac_word=$2
6470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471printf %s "checking for $ac_word... " >&6; }
6472if test ${ac_cv_prog_ac_ct_RANLIB+y}
6473then :
6474  printf %s "(cached) " >&6
6475else case e in #(
6476  e) if test -n "$ac_ct_RANLIB"; then
6477  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482  IFS=$as_save_IFS
6483  case $as_dir in #(((
6484    '') as_dir=./ ;;
6485    */) ;;
6486    *) as_dir=$as_dir/ ;;
6487  esac
6488    for ac_exec_ext in '' $ac_executable_extensions; do
6489  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6490    ac_cv_prog_ac_ct_RANLIB="ranlib"
6491    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6492    break 2
6493  fi
6494done
6495  done
6496IFS=$as_save_IFS
6497
6498fi ;;
6499esac
6500fi
6501ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6502if test -n "$ac_ct_RANLIB"; then
6503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6504printf "%s\n" "$ac_ct_RANLIB" >&6; }
6505else
6506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507printf "%s\n" "no" >&6; }
6508fi
6509
6510  if test "x$ac_ct_RANLIB" = x; then
6511    RANLIB=":"
6512  else
6513    case $cross_compiling:$ac_tool_warned in
6514yes:)
6515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517ac_tool_warned=yes ;;
6518esac
6519    RANLIB=$ac_ct_RANLIB
6520  fi
6521else
6522  RANLIB="$ac_cv_prog_RANLIB"
6523fi
6524
6525if test -n "$ac_tool_prefix"; then
6526  for ac_prog in ar
6527  do
6528    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6529set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531printf %s "checking for $ac_word... " >&6; }
6532if test ${ac_cv_prog_AR+y}
6533then :
6534  printf %s "(cached) " >&6
6535else case e in #(
6536  e) if test -n "$AR"; then
6537  ac_cv_prog_AR="$AR" # Let the user override the test.
6538else
6539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542  IFS=$as_save_IFS
6543  case $as_dir in #(((
6544    '') as_dir=./ ;;
6545    */) ;;
6546    *) as_dir=$as_dir/ ;;
6547  esac
6548    for ac_exec_ext in '' $ac_executable_extensions; do
6549  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6550    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6551    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6552    break 2
6553  fi
6554done
6555  done
6556IFS=$as_save_IFS
6557
6558fi ;;
6559esac
6560fi
6561AR=$ac_cv_prog_AR
6562if test -n "$AR"; then
6563  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6564printf "%s\n" "$AR" >&6; }
6565else
6566  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567printf "%s\n" "no" >&6; }
6568fi
6569
6570
6571    test -n "$AR" && break
6572  done
6573fi
6574if test -z "$AR"; then
6575  ac_ct_AR=$AR
6576  for ac_prog in ar
6577do
6578  # Extract the first word of "$ac_prog", so it can be a program name with args.
6579set dummy $ac_prog; ac_word=$2
6580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581printf %s "checking for $ac_word... " >&6; }
6582if test ${ac_cv_prog_ac_ct_AR+y}
6583then :
6584  printf %s "(cached) " >&6
6585else case e in #(
6586  e) if test -n "$ac_ct_AR"; then
6587  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592  IFS=$as_save_IFS
6593  case $as_dir in #(((
6594    '') as_dir=./ ;;
6595    */) ;;
6596    *) as_dir=$as_dir/ ;;
6597  esac
6598    for ac_exec_ext in '' $ac_executable_extensions; do
6599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6600    ac_cv_prog_ac_ct_AR="$ac_prog"
6601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605  done
6606IFS=$as_save_IFS
6607
6608fi ;;
6609esac
6610fi
6611ac_ct_AR=$ac_cv_prog_ac_ct_AR
6612if test -n "$ac_ct_AR"; then
6613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6614printf "%s\n" "$ac_ct_AR" >&6; }
6615else
6616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617printf "%s\n" "no" >&6; }
6618fi
6619
6620
6621  test -n "$ac_ct_AR" && break
6622done
6623
6624  if test "x$ac_ct_AR" = x; then
6625    AR="false"
6626  else
6627    case $cross_compiling:$ac_tool_warned in
6628yes:)
6629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631ac_tool_warned=yes ;;
6632esac
6633    AR=$ac_ct_AR
6634  fi
6635fi
6636
6637: ${AR=ar}
6638
6639
6640
6641
6642
6643
6644# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6645# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6646# higher priority because that's what people were doing historically (setting
6647# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6648# variable obsoleted/removed.
6649
6650test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6651lt_ar_flags=$AR_FLAGS
6652
6653
6654
6655
6656
6657
6658# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6659# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6660
6661
6662
6663
6664
6665
6666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6667printf %s "checking for archiver @FILE support... " >&6; }
6668if test ${lt_cv_ar_at_file+y}
6669then :
6670  printf %s "(cached) " >&6
6671else case e in #(
6672  e) lt_cv_ar_at_file=no
6673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h.  */
6675
6676int
6677main (void)
6678{
6679
6680  ;
6681  return 0;
6682}
6683_ACEOF
6684if ac_fn_c_try_compile "$LINENO"
6685then :
6686  echo conftest.$ac_objext > conftest.lst
6687      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6688      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6689  (eval $lt_ar_try) 2>&5
6690  ac_status=$?
6691  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692  test $ac_status = 0; }
6693      if test 0 -eq "$ac_status"; then
6694	# Ensure the archiver fails upon bogus file names.
6695	rm -f conftest.$ac_objext libconftest.a
6696	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6697  (eval $lt_ar_try) 2>&5
6698  ac_status=$?
6699  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700  test $ac_status = 0; }
6701	if test 0 -ne "$ac_status"; then
6702          lt_cv_ar_at_file=@
6703        fi
6704      fi
6705      rm -f conftest.* libconftest.a
6706
6707fi
6708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6709   ;;
6710esac
6711fi
6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6713printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6714
6715if test no = "$lt_cv_ar_at_file"; then
6716  archiver_list_spec=
6717else
6718  archiver_list_spec=$lt_cv_ar_at_file
6719fi
6720
6721
6722
6723
6724
6725
6726
6727if test -n "$ac_tool_prefix"; then
6728  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6729set dummy ${ac_tool_prefix}strip; ac_word=$2
6730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731printf %s "checking for $ac_word... " >&6; }
6732if test ${ac_cv_prog_STRIP+y}
6733then :
6734  printf %s "(cached) " >&6
6735else case e in #(
6736  e) if test -n "$STRIP"; then
6737  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6738else
6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  case $as_dir in #(((
6744    '') as_dir=./ ;;
6745    */) ;;
6746    *) as_dir=$as_dir/ ;;
6747  esac
6748    for ac_exec_ext in '' $ac_executable_extensions; do
6749  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6750    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6751    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6752    break 2
6753  fi
6754done
6755  done
6756IFS=$as_save_IFS
6757
6758fi ;;
6759esac
6760fi
6761STRIP=$ac_cv_prog_STRIP
6762if test -n "$STRIP"; then
6763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6764printf "%s\n" "$STRIP" >&6; }
6765else
6766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767printf "%s\n" "no" >&6; }
6768fi
6769
6770
6771fi
6772if test -z "$ac_cv_prog_STRIP"; then
6773  ac_ct_STRIP=$STRIP
6774  # Extract the first word of "strip", so it can be a program name with args.
6775set dummy strip; ac_word=$2
6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777printf %s "checking for $ac_word... " >&6; }
6778if test ${ac_cv_prog_ac_ct_STRIP+y}
6779then :
6780  printf %s "(cached) " >&6
6781else case e in #(
6782  e) if test -n "$ac_ct_STRIP"; then
6783  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6784else
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788  IFS=$as_save_IFS
6789  case $as_dir in #(((
6790    '') as_dir=./ ;;
6791    */) ;;
6792    *) as_dir=$as_dir/ ;;
6793  esac
6794    for ac_exec_ext in '' $ac_executable_extensions; do
6795  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6796    ac_cv_prog_ac_ct_STRIP="strip"
6797    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6798    break 2
6799  fi
6800done
6801  done
6802IFS=$as_save_IFS
6803
6804fi ;;
6805esac
6806fi
6807ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6808if test -n "$ac_ct_STRIP"; then
6809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6810printf "%s\n" "$ac_ct_STRIP" >&6; }
6811else
6812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813printf "%s\n" "no" >&6; }
6814fi
6815
6816  if test "x$ac_ct_STRIP" = x; then
6817    STRIP=":"
6818  else
6819    case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
6825    STRIP=$ac_ct_STRIP
6826  fi
6827else
6828  STRIP="$ac_cv_prog_STRIP"
6829fi
6830
6831test -z "$STRIP" && STRIP=:
6832
6833
6834
6835
6836
6837
6838
6839test -z "$RANLIB" && RANLIB=:
6840
6841
6842
6843
6844
6845
6846# Determine commands to create old-style static archives.
6847old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6848old_postinstall_cmds='chmod 644 $oldlib'
6849old_postuninstall_cmds=
6850
6851if test -n "$RANLIB"; then
6852  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6853  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6854fi
6855
6856case $host_os in
6857  darwin*)
6858    lock_old_archive_extraction=yes ;;
6859  *)
6860    lock_old_archive_extraction=no ;;
6861esac
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901# If no C compiler was specified, use CC.
6902LTCC=${LTCC-"$CC"}
6903
6904# If no C compiler flags were specified, use CFLAGS.
6905LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6906
6907# Allow CC to be a program name with arguments.
6908compiler=$CC
6909
6910
6911# Check for command to grab the raw symbol name followed by C symbol from nm.
6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6913printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6914if test ${lt_cv_sys_global_symbol_pipe+y}
6915then :
6916  printf %s "(cached) " >&6
6917else case e in #(
6918  e)
6919# These are sane defaults that work on at least a few old systems.
6920# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6921
6922# Character class describing NM global symbol codes.
6923symcode='[BCDEGRST]'
6924
6925# Regexp to match symbols that can be accessed directly from C.
6926sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6927
6928# Define system-specific variables.
6929case $host_os in
6930aix*)
6931  symcode='[BCDT]'
6932  ;;
6933cygwin* | mingw* | windows* | pw32* | cegcc*)
6934  symcode='[ABCDGISTW]'
6935  ;;
6936hpux*)
6937  if test ia64 = "$host_cpu"; then
6938    symcode='[ABCDEGRST]'
6939  fi
6940  ;;
6941irix* | nonstopux*)
6942  symcode='[BCDEGRST]'
6943  ;;
6944osf*)
6945  symcode='[BCDEGQRST]'
6946  ;;
6947solaris*)
6948  symcode='[BCDRT]'
6949  ;;
6950sco3.2v5*)
6951  symcode='[DT]'
6952  ;;
6953sysv4.2uw2*)
6954  symcode='[DT]'
6955  ;;
6956sysv5* | sco5v6* | unixware* | OpenUNIX*)
6957  symcode='[ABDT]'
6958  ;;
6959sysv4)
6960  symcode='[DFNSTU]'
6961  ;;
6962esac
6963
6964# If we're using GNU nm, then use its standard symbol codes.
6965case `$NM -V 2>&1` in
6966*GNU* | *'with BFD'*)
6967  symcode='[ABCDGIRSTW]' ;;
6968esac
6969
6970if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6971  # Gets list of data symbols to import.
6972  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6973  # Adjust the below global symbol transforms to fixup imported variables.
6974  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6975  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6976  lt_c_name_lib_hook="\
6977  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6978  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6979else
6980  # Disable hooks by default.
6981  lt_cv_sys_global_symbol_to_import=
6982  lt_cdecl_hook=
6983  lt_c_name_hook=
6984  lt_c_name_lib_hook=
6985fi
6986
6987# Transform an extracted symbol line into a proper C declaration.
6988# Some systems (esp. on ia64) link data and code symbols differently,
6989# so use this general approach.
6990lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6991$lt_cdecl_hook\
6992" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6993" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6994
6995# Transform an extracted symbol line into symbol name and symbol address
6996lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6997$lt_c_name_hook\
6998" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6999" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7000
7001# Transform an extracted symbol line into symbol name with lib prefix and
7002# symbol address.
7003lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7004$lt_c_name_lib_hook\
7005" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7006" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7007" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7008
7009# Handle CRLF in mingw tool chain
7010opt_cr=
7011case $build_os in
7012mingw* | windows*)
7013  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014  ;;
7015esac
7016
7017# Try without a prefix underscore, then with it.
7018for ac_symprfx in "" "_"; do
7019
7020  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021  symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023  # Write the raw and C identifiers.
7024  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025    # Fake it for dumpbin and say T for any non-static function,
7026    # D for any global variable and I for any imported variable.
7027    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7028    # which start with @ or ?.
7029    lt_cv_sys_global_symbol_pipe="$AWK '"\
7030"     {last_section=section; section=\$ 3};"\
7031"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7032"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7033"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7034"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7035"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7036"     \$ 0!~/External *\|/{next};"\
7037"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7038"     {if(hide[section]) next};"\
7039"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7040"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7041"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7042"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7043"     ' prfx=^$ac_symprfx"
7044  else
7045    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7046  fi
7047  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7048
7049  # Check to see that the pipe works correctly.
7050  pipe_works=no
7051
7052  rm -f conftest*
7053  cat > conftest.$ac_ext <<_LT_EOF
7054#ifdef __cplusplus
7055extern "C" {
7056#endif
7057char nm_test_var;
7058void nm_test_func(void);
7059void nm_test_func(void){}
7060#ifdef __cplusplus
7061}
7062#endif
7063int main(void){nm_test_var='a';nm_test_func();return(0);}
7064_LT_EOF
7065
7066  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7067  (eval $ac_compile) 2>&5
7068  ac_status=$?
7069  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070  test $ac_status = 0; }; then
7071    # Now try to grab the symbols.
7072    nlist=conftest.nm
7073    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7074    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7075      # Try sorting and uniquifying the output.
7076      if sort "$nlist" | uniq > "$nlist"T; then
7077	mv -f "$nlist"T "$nlist"
7078      else
7079	rm -f "$nlist"T
7080      fi
7081
7082      # Make sure that we snagged all the symbols we need.
7083      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7084	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7085	  cat <<_LT_EOF > conftest.$ac_ext
7086/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7087#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7088/* DATA imports from DLLs on WIN32 can't be const, because runtime
7089   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7090# define LT_DLSYM_CONST
7091#elif defined __osf__
7092/* This system does not cope well with relocations in const data.  */
7093# define LT_DLSYM_CONST
7094#else
7095# define LT_DLSYM_CONST const
7096#endif
7097
7098#ifdef __cplusplus
7099extern "C" {
7100#endif
7101
7102_LT_EOF
7103	  # Now generate the symbol file.
7104	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7105
7106	  cat <<_LT_EOF >> conftest.$ac_ext
7107
7108/* The mapping between symbol names and symbols.  */
7109LT_DLSYM_CONST struct {
7110  const char *name;
7111  void       *address;
7112}
7113lt__PROGRAM__LTX_preloaded_symbols[] =
7114{
7115  { "@PROGRAM@", (void *) 0 },
7116_LT_EOF
7117	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7118	  cat <<\_LT_EOF >> conftest.$ac_ext
7119  {0, (void *) 0}
7120};
7121
7122/* This works around a problem in FreeBSD linker */
7123#ifdef FREEBSD_WORKAROUND
7124static const void *lt_preloaded_setup() {
7125  return lt__PROGRAM__LTX_preloaded_symbols;
7126}
7127#endif
7128
7129#ifdef __cplusplus
7130}
7131#endif
7132_LT_EOF
7133	  # Now try linking the two files.
7134	  mv conftest.$ac_objext conftstm.$ac_objext
7135	  lt_globsym_save_LIBS=$LIBS
7136	  lt_globsym_save_CFLAGS=$CFLAGS
7137	  LIBS=conftstm.$ac_objext
7138	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7139	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7140  (eval $ac_link) 2>&5
7141  ac_status=$?
7142  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7144	    pipe_works=yes
7145	  fi
7146	  LIBS=$lt_globsym_save_LIBS
7147	  CFLAGS=$lt_globsym_save_CFLAGS
7148	else
7149	  echo "cannot find nm_test_func in $nlist" >&5
7150	fi
7151      else
7152	echo "cannot find nm_test_var in $nlist" >&5
7153      fi
7154    else
7155      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7156    fi
7157  else
7158    echo "$progname: failed program was:" >&5
7159    cat conftest.$ac_ext >&5
7160  fi
7161  rm -rf conftest* conftst*
7162
7163  # Do not use the global_symbol_pipe unless it works.
7164  if test yes = "$pipe_works"; then
7165    break
7166  else
7167    lt_cv_sys_global_symbol_pipe=
7168  fi
7169done
7170 ;;
7171esac
7172fi
7173
7174if test -z "$lt_cv_sys_global_symbol_pipe"; then
7175  lt_cv_sys_global_symbol_to_cdecl=
7176fi
7177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7179printf "%s\n" "failed" >&6; }
7180else
7181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7182printf "%s\n" "ok" >&6; }
7183fi
7184
7185# Response file support.
7186if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7187  nm_file_list_spec='@'
7188elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7189  nm_file_list_spec='@'
7190fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7229printf %s "checking for sysroot... " >&6; }
7230
7231# Check whether --with-sysroot was given.
7232if test ${with_sysroot+y}
7233then :
7234  withval=$with_sysroot;
7235else case e in #(
7236  e) with_sysroot=no ;;
7237esac
7238fi
7239
7240
7241lt_sysroot=
7242case $with_sysroot in #(
7243 yes)
7244   if test yes = "$GCC"; then
7245     # Trim trailing / since we'll always append absolute paths and we want
7246     # to avoid //, if only for less confusing output for the user.
7247     lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7248   fi
7249   ;; #(
7250 /*)
7251   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7252   ;; #(
7253 no|'')
7254   ;; #(
7255 *)
7256   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7257printf "%s\n" "$with_sysroot" >&6; }
7258   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7259   ;;
7260esac
7261
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7263printf "%s\n" "${lt_sysroot:-no}" >&6; }
7264
7265
7266
7267
7268
7269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7270printf %s "checking for a working dd... " >&6; }
7271if test ${ac_cv_path_lt_DD+y}
7272then :
7273  printf %s "(cached) " >&6
7274else case e in #(
7275  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7276cat conftest.i conftest.i >conftest2.i
7277: ${lt_DD:=$DD}
7278if test -z "$lt_DD"; then
7279  ac_path_lt_DD_found=false
7280  # Loop through the user's path and test for each of PROGNAME-LIST
7281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284  IFS=$as_save_IFS
7285  case $as_dir in #(((
7286    '') as_dir=./ ;;
7287    */) ;;
7288    *) as_dir=$as_dir/ ;;
7289  esac
7290    for ac_prog in dd
7291   do
7292    for ac_exec_ext in '' $ac_executable_extensions; do
7293      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7294      as_fn_executable_p "$ac_path_lt_DD" || continue
7295if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7296  cmp -s conftest.i conftest.out \
7297  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7298fi
7299      $ac_path_lt_DD_found && break 3
7300    done
7301  done
7302  done
7303IFS=$as_save_IFS
7304  if test -z "$ac_cv_path_lt_DD"; then
7305    :
7306  fi
7307else
7308  ac_cv_path_lt_DD=$lt_DD
7309fi
7310
7311rm -f conftest.i conftest2.i conftest.out ;;
7312esac
7313fi
7314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7315printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7316
7317
7318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7319printf %s "checking how to truncate binary pipes... " >&6; }
7320if test ${lt_cv_truncate_bin+y}
7321then :
7322  printf %s "(cached) " >&6
7323else case e in #(
7324  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7325cat conftest.i conftest.i >conftest2.i
7326lt_cv_truncate_bin=
7327if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7328  cmp -s conftest.i conftest.out \
7329  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7330fi
7331rm -f conftest.i conftest2.i conftest.out
7332test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7333esac
7334fi
7335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7336printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7337
7338
7339
7340
7341
7342
7343
7344# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7345func_cc_basename ()
7346{
7347    for cc_temp in $*""; do
7348      case $cc_temp in
7349        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7350        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7351        \-*) ;;
7352        *) break;;
7353      esac
7354    done
7355    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7356}
7357
7358# Check whether --enable-libtool-lock was given.
7359if test ${enable_libtool_lock+y}
7360then :
7361  enableval=$enable_libtool_lock;
7362fi
7363
7364test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7365
7366# Some flags need to be propagated to the compiler or linker for good
7367# libtool support.
7368case $host in
7369ia64-*-hpux*)
7370  # Find out what ABI is being produced by ac_compile, and set mode
7371  # options accordingly.
7372  echo 'int i;' > conftest.$ac_ext
7373  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374  (eval $ac_compile) 2>&5
7375  ac_status=$?
7376  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377  test $ac_status = 0; }; then
7378    case `$FILECMD conftest.$ac_objext` in
7379      *ELF-32*)
7380	HPUX_IA64_MODE=32
7381	;;
7382      *ELF-64*)
7383	HPUX_IA64_MODE=64
7384	;;
7385    esac
7386  fi
7387  rm -rf conftest*
7388  ;;
7389*-*-irix6*)
7390  # Find out what ABI is being produced by ac_compile, and set linker
7391  # options accordingly.
7392  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7393  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7394  (eval $ac_compile) 2>&5
7395  ac_status=$?
7396  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397  test $ac_status = 0; }; then
7398    if test yes = "$lt_cv_prog_gnu_ld"; then
7399      case `$FILECMD conftest.$ac_objext` in
7400	*32-bit*)
7401	  LD="${LD-ld} -melf32bsmip"
7402	  ;;
7403	*N32*)
7404	  LD="${LD-ld} -melf32bmipn32"
7405	  ;;
7406	*64-bit*)
7407	  LD="${LD-ld} -melf64bmip"
7408	;;
7409      esac
7410    else
7411      case `$FILECMD conftest.$ac_objext` in
7412	*32-bit*)
7413	  LD="${LD-ld} -32"
7414	  ;;
7415	*N32*)
7416	  LD="${LD-ld} -n32"
7417	  ;;
7418	*64-bit*)
7419	  LD="${LD-ld} -64"
7420	  ;;
7421      esac
7422    fi
7423  fi
7424  rm -rf conftest*
7425  ;;
7426
7427mips64*-*linux*)
7428  # Find out what ABI is being produced by ac_compile, and set linker
7429  # options accordingly.
7430  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7431  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7432  (eval $ac_compile) 2>&5
7433  ac_status=$?
7434  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7435  test $ac_status = 0; }; then
7436    emul=elf
7437    case `$FILECMD conftest.$ac_objext` in
7438      *32-bit*)
7439	emul="${emul}32"
7440	;;
7441      *64-bit*)
7442	emul="${emul}64"
7443	;;
7444    esac
7445    case `$FILECMD conftest.$ac_objext` in
7446      *MSB*)
7447	emul="${emul}btsmip"
7448	;;
7449      *LSB*)
7450	emul="${emul}ltsmip"
7451	;;
7452    esac
7453    case `$FILECMD conftest.$ac_objext` in
7454      *N32*)
7455	emul="${emul}n32"
7456	;;
7457    esac
7458    LD="${LD-ld} -m $emul"
7459  fi
7460  rm -rf conftest*
7461  ;;
7462
7463x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7464s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7465  # Find out what ABI is being produced by ac_compile, and set linker
7466  # options accordingly.  Note that the listed cases only cover the
7467  # situations where additional linker options are needed (such as when
7468  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7469  # vice versa); the common cases where no linker options are needed do
7470  # not appear in the list.
7471  echo 'int i;' > conftest.$ac_ext
7472  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7473  (eval $ac_compile) 2>&5
7474  ac_status=$?
7475  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476  test $ac_status = 0; }; then
7477    case `$FILECMD conftest.o` in
7478      *32-bit*)
7479	case $host in
7480	  x86_64-*kfreebsd*-gnu)
7481	    LD="${LD-ld} -m elf_i386_fbsd"
7482	    ;;
7483	  x86_64-*linux*|x86_64-gnu*)
7484	    case `$FILECMD conftest.o` in
7485	      *x86-64*)
7486		LD="${LD-ld} -m elf32_x86_64"
7487		;;
7488	      *)
7489		LD="${LD-ld} -m elf_i386"
7490		;;
7491	    esac
7492	    ;;
7493	  powerpc64le-*linux*)
7494	    LD="${LD-ld} -m elf32lppclinux"
7495	    ;;
7496	  powerpc64-*linux*)
7497	    LD="${LD-ld} -m elf32ppclinux"
7498	    ;;
7499	  s390x-*linux*)
7500	    LD="${LD-ld} -m elf_s390"
7501	    ;;
7502	  sparc64-*linux*)
7503	    LD="${LD-ld} -m elf32_sparc"
7504	    ;;
7505	esac
7506	;;
7507      *64-bit*)
7508	case $host in
7509	  x86_64-*kfreebsd*-gnu)
7510	    LD="${LD-ld} -m elf_x86_64_fbsd"
7511	    ;;
7512	  x86_64-*linux*|x86_64-gnu*)
7513	    LD="${LD-ld} -m elf_x86_64"
7514	    ;;
7515	  powerpcle-*linux*)
7516	    LD="${LD-ld} -m elf64lppc"
7517	    ;;
7518	  powerpc-*linux*)
7519	    LD="${LD-ld} -m elf64ppc"
7520	    ;;
7521	  s390*-*linux*|s390*-*tpf*)
7522	    LD="${LD-ld} -m elf64_s390"
7523	    ;;
7524	  sparc*-*linux*)
7525	    LD="${LD-ld} -m elf64_sparc"
7526	    ;;
7527	esac
7528	;;
7529    esac
7530  fi
7531  rm -rf conftest*
7532  ;;
7533
7534*-*-sco3.2v5*)
7535  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7536  SAVE_CFLAGS=$CFLAGS
7537  CFLAGS="$CFLAGS -belf"
7538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7539printf %s "checking whether the C compiler needs -belf... " >&6; }
7540if test ${lt_cv_cc_needs_belf+y}
7541then :
7542  printf %s "(cached) " >&6
7543else case e in #(
7544  e) ac_ext=c
7545ac_cpp='$CPP $CPPFLAGS'
7546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7548ac_compiler_gnu=$ac_cv_c_compiler_gnu
7549
7550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552
7553int
7554main (void)
7555{
7556
7557  ;
7558  return 0;
7559}
7560_ACEOF
7561if ac_fn_c_try_link "$LINENO"
7562then :
7563  lt_cv_cc_needs_belf=yes
7564else case e in #(
7565  e) lt_cv_cc_needs_belf=no ;;
7566esac
7567fi
7568rm -f core conftest.err conftest.$ac_objext conftest.beam \
7569    conftest$ac_exeext conftest.$ac_ext
7570     ac_ext=c
7571ac_cpp='$CPP $CPPFLAGS'
7572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574ac_compiler_gnu=$ac_cv_c_compiler_gnu
7575 ;;
7576esac
7577fi
7578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7579printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7580  if test yes != "$lt_cv_cc_needs_belf"; then
7581    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7582    CFLAGS=$SAVE_CFLAGS
7583  fi
7584  ;;
7585*-*solaris*)
7586  # Find out what ABI is being produced by ac_compile, and set linker
7587  # options accordingly.
7588  echo 'int i;' > conftest.$ac_ext
7589  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7590  (eval $ac_compile) 2>&5
7591  ac_status=$?
7592  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593  test $ac_status = 0; }; then
7594    case `$FILECMD conftest.o` in
7595    *64-bit*)
7596      case $lt_cv_prog_gnu_ld in
7597      yes*)
7598        case $host in
7599        i?86-*-solaris*|x86_64-*-solaris*)
7600          LD="${LD-ld} -m elf_x86_64"
7601          ;;
7602        sparc*-*-solaris*)
7603          LD="${LD-ld} -m elf64_sparc"
7604          ;;
7605        esac
7606        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7607        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7608          LD=${LD-ld}_sol2
7609        fi
7610        ;;
7611      *)
7612	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7613	  LD="${LD-ld} -64"
7614	fi
7615	;;
7616      esac
7617      ;;
7618    esac
7619  fi
7620  rm -rf conftest*
7621  ;;
7622esac
7623
7624need_locks=$enable_libtool_lock
7625
7626if test -n "$ac_tool_prefix"; then
7627  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7628set dummy ${ac_tool_prefix}mt; ac_word=$2
7629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630printf %s "checking for $ac_word... " >&6; }
7631if test ${ac_cv_prog_MANIFEST_TOOL+y}
7632then :
7633  printf %s "(cached) " >&6
7634else case e in #(
7635  e) if test -n "$MANIFEST_TOOL"; then
7636  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  case $as_dir in #(((
7643    '') as_dir=./ ;;
7644    */) ;;
7645    *) as_dir=$as_dir/ ;;
7646  esac
7647    for ac_exec_ext in '' $ac_executable_extensions; do
7648  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7649    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7650    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7651    break 2
7652  fi
7653done
7654  done
7655IFS=$as_save_IFS
7656
7657fi ;;
7658esac
7659fi
7660MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7661if test -n "$MANIFEST_TOOL"; then
7662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7663printf "%s\n" "$MANIFEST_TOOL" >&6; }
7664else
7665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666printf "%s\n" "no" >&6; }
7667fi
7668
7669
7670fi
7671if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7672  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7673  # Extract the first word of "mt", so it can be a program name with args.
7674set dummy mt; ac_word=$2
7675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676printf %s "checking for $ac_word... " >&6; }
7677if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7678then :
7679  printf %s "(cached) " >&6
7680else case e in #(
7681  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7682  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7683else
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687  IFS=$as_save_IFS
7688  case $as_dir in #(((
7689    '') as_dir=./ ;;
7690    */) ;;
7691    *) as_dir=$as_dir/ ;;
7692  esac
7693    for ac_exec_ext in '' $ac_executable_extensions; do
7694  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7695    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7696    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7697    break 2
7698  fi
7699done
7700  done
7701IFS=$as_save_IFS
7702
7703fi ;;
7704esac
7705fi
7706ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7707if test -n "$ac_ct_MANIFEST_TOOL"; then
7708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7709printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7710else
7711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712printf "%s\n" "no" >&6; }
7713fi
7714
7715  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7716    MANIFEST_TOOL=":"
7717  else
7718    case $cross_compiling:$ac_tool_warned in
7719yes:)
7720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722ac_tool_warned=yes ;;
7723esac
7724    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7725  fi
7726else
7727  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7728fi
7729
7730test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7732printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7733if test ${lt_cv_path_manifest_tool+y}
7734then :
7735  printf %s "(cached) " >&6
7736else case e in #(
7737  e) lt_cv_path_manifest_tool=no
7738  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7739  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7740  cat conftest.err >&5
7741  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7742    lt_cv_path_manifest_tool=yes
7743  fi
7744  rm -f conftest* ;;
7745esac
7746fi
7747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7748printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7749if test yes != "$lt_cv_path_manifest_tool"; then
7750  MANIFEST_TOOL=:
7751fi
7752
7753
7754
7755
7756
7757
7758  case $host_os in
7759    rhapsody* | darwin*)
7760    if test -n "$ac_tool_prefix"; then
7761  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7762set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764printf %s "checking for $ac_word... " >&6; }
7765if test ${ac_cv_prog_DSYMUTIL+y}
7766then :
7767  printf %s "(cached) " >&6
7768else case e in #(
7769  e) if test -n "$DSYMUTIL"; then
7770  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7771else
7772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775  IFS=$as_save_IFS
7776  case $as_dir in #(((
7777    '') as_dir=./ ;;
7778    */) ;;
7779    *) as_dir=$as_dir/ ;;
7780  esac
7781    for ac_exec_ext in '' $ac_executable_extensions; do
7782  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7783    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7784    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7785    break 2
7786  fi
7787done
7788  done
7789IFS=$as_save_IFS
7790
7791fi ;;
7792esac
7793fi
7794DSYMUTIL=$ac_cv_prog_DSYMUTIL
7795if test -n "$DSYMUTIL"; then
7796  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7797printf "%s\n" "$DSYMUTIL" >&6; }
7798else
7799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800printf "%s\n" "no" >&6; }
7801fi
7802
7803
7804fi
7805if test -z "$ac_cv_prog_DSYMUTIL"; then
7806  ac_ct_DSYMUTIL=$DSYMUTIL
7807  # Extract the first word of "dsymutil", so it can be a program name with args.
7808set dummy dsymutil; ac_word=$2
7809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810printf %s "checking for $ac_word... " >&6; }
7811if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7812then :
7813  printf %s "(cached) " >&6
7814else case e in #(
7815  e) if test -n "$ac_ct_DSYMUTIL"; then
7816  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7817else
7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821  IFS=$as_save_IFS
7822  case $as_dir in #(((
7823    '') as_dir=./ ;;
7824    */) ;;
7825    *) as_dir=$as_dir/ ;;
7826  esac
7827    for ac_exec_ext in '' $ac_executable_extensions; do
7828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7829    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7831    break 2
7832  fi
7833done
7834  done
7835IFS=$as_save_IFS
7836
7837fi ;;
7838esac
7839fi
7840ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7841if test -n "$ac_ct_DSYMUTIL"; then
7842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7843printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7844else
7845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846printf "%s\n" "no" >&6; }
7847fi
7848
7849  if test "x$ac_ct_DSYMUTIL" = x; then
7850    DSYMUTIL=":"
7851  else
7852    case $cross_compiling:$ac_tool_warned in
7853yes:)
7854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7855printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7856ac_tool_warned=yes ;;
7857esac
7858    DSYMUTIL=$ac_ct_DSYMUTIL
7859  fi
7860else
7861  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7862fi
7863
7864    if test -n "$ac_tool_prefix"; then
7865  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7866set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868printf %s "checking for $ac_word... " >&6; }
7869if test ${ac_cv_prog_NMEDIT+y}
7870then :
7871  printf %s "(cached) " >&6
7872else case e in #(
7873  e) if test -n "$NMEDIT"; then
7874  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7875else
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879  IFS=$as_save_IFS
7880  case $as_dir in #(((
7881    '') as_dir=./ ;;
7882    */) ;;
7883    *) as_dir=$as_dir/ ;;
7884  esac
7885    for ac_exec_ext in '' $ac_executable_extensions; do
7886  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7887    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7888    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7889    break 2
7890  fi
7891done
7892  done
7893IFS=$as_save_IFS
7894
7895fi ;;
7896esac
7897fi
7898NMEDIT=$ac_cv_prog_NMEDIT
7899if test -n "$NMEDIT"; then
7900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7901printf "%s\n" "$NMEDIT" >&6; }
7902else
7903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904printf "%s\n" "no" >&6; }
7905fi
7906
7907
7908fi
7909if test -z "$ac_cv_prog_NMEDIT"; then
7910  ac_ct_NMEDIT=$NMEDIT
7911  # Extract the first word of "nmedit", so it can be a program name with args.
7912set dummy nmedit; ac_word=$2
7913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914printf %s "checking for $ac_word... " >&6; }
7915if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7916then :
7917  printf %s "(cached) " >&6
7918else case e in #(
7919  e) if test -n "$ac_ct_NMEDIT"; then
7920  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  case $as_dir in #(((
7927    '') as_dir=./ ;;
7928    */) ;;
7929    *) as_dir=$as_dir/ ;;
7930  esac
7931    for ac_exec_ext in '' $ac_executable_extensions; do
7932  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7933    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7934    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7935    break 2
7936  fi
7937done
7938  done
7939IFS=$as_save_IFS
7940
7941fi ;;
7942esac
7943fi
7944ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7945if test -n "$ac_ct_NMEDIT"; then
7946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7947printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7948else
7949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950printf "%s\n" "no" >&6; }
7951fi
7952
7953  if test "x$ac_ct_NMEDIT" = x; then
7954    NMEDIT=":"
7955  else
7956    case $cross_compiling:$ac_tool_warned in
7957yes:)
7958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960ac_tool_warned=yes ;;
7961esac
7962    NMEDIT=$ac_ct_NMEDIT
7963  fi
7964else
7965  NMEDIT="$ac_cv_prog_NMEDIT"
7966fi
7967
7968    if test -n "$ac_tool_prefix"; then
7969  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7970set dummy ${ac_tool_prefix}lipo; ac_word=$2
7971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972printf %s "checking for $ac_word... " >&6; }
7973if test ${ac_cv_prog_LIPO+y}
7974then :
7975  printf %s "(cached) " >&6
7976else case e in #(
7977  e) if test -n "$LIPO"; then
7978  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983  IFS=$as_save_IFS
7984  case $as_dir in #(((
7985    '') as_dir=./ ;;
7986    */) ;;
7987    *) as_dir=$as_dir/ ;;
7988  esac
7989    for ac_exec_ext in '' $ac_executable_extensions; do
7990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7991    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7993    break 2
7994  fi
7995done
7996  done
7997IFS=$as_save_IFS
7998
7999fi ;;
8000esac
8001fi
8002LIPO=$ac_cv_prog_LIPO
8003if test -n "$LIPO"; then
8004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8005printf "%s\n" "$LIPO" >&6; }
8006else
8007  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008printf "%s\n" "no" >&6; }
8009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_LIPO"; then
8014  ac_ct_LIPO=$LIPO
8015  # Extract the first word of "lipo", so it can be a program name with args.
8016set dummy lipo; ac_word=$2
8017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018printf %s "checking for $ac_word... " >&6; }
8019if test ${ac_cv_prog_ac_ct_LIPO+y}
8020then :
8021  printf %s "(cached) " >&6
8022else case e in #(
8023  e) if test -n "$ac_ct_LIPO"; then
8024  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8025else
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029  IFS=$as_save_IFS
8030  case $as_dir in #(((
8031    '') as_dir=./ ;;
8032    */) ;;
8033    *) as_dir=$as_dir/ ;;
8034  esac
8035    for ac_exec_ext in '' $ac_executable_extensions; do
8036  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_ac_ct_LIPO="lipo"
8038    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042  done
8043IFS=$as_save_IFS
8044
8045fi ;;
8046esac
8047fi
8048ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8049if test -n "$ac_ct_LIPO"; then
8050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8051printf "%s\n" "$ac_ct_LIPO" >&6; }
8052else
8053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054printf "%s\n" "no" >&6; }
8055fi
8056
8057  if test "x$ac_ct_LIPO" = x; then
8058    LIPO=":"
8059  else
8060    case $cross_compiling:$ac_tool_warned in
8061yes:)
8062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064ac_tool_warned=yes ;;
8065esac
8066    LIPO=$ac_ct_LIPO
8067  fi
8068else
8069  LIPO="$ac_cv_prog_LIPO"
8070fi
8071
8072    if test -n "$ac_tool_prefix"; then
8073  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8074set dummy ${ac_tool_prefix}otool; 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_OTOOL+y}
8078then :
8079  printf %s "(cached) " >&6
8080else case e in #(
8081  e) if test -n "$OTOOL"; then
8082  ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool"
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 ;;
8104esac
8105fi
8106OTOOL=$ac_cv_prog_OTOOL
8107if test -n "$OTOOL"; then
8108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8109printf "%s\n" "$OTOOL" >&6; }
8110else
8111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112printf "%s\n" "no" >&6; }
8113fi
8114
8115
8116fi
8117if test -z "$ac_cv_prog_OTOOL"; then
8118  ac_ct_OTOOL=$OTOOL
8119  # Extract the first word of "otool", so it can be a program name with args.
8120set dummy otool; ac_word=$2
8121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122printf %s "checking for $ac_word... " >&6; }
8123if test ${ac_cv_prog_ac_ct_OTOOL+y}
8124then :
8125  printf %s "(cached) " >&6
8126else case e in #(
8127  e) if test -n "$ac_ct_OTOOL"; then
8128  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8129else
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133  IFS=$as_save_IFS
8134  case $as_dir in #(((
8135    '') as_dir=./ ;;
8136    */) ;;
8137    *) as_dir=$as_dir/ ;;
8138  esac
8139    for ac_exec_ext in '' $ac_executable_extensions; do
8140  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8141    ac_cv_prog_ac_ct_OTOOL="otool"
8142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8143    break 2
8144  fi
8145done
8146  done
8147IFS=$as_save_IFS
8148
8149fi ;;
8150esac
8151fi
8152ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8153if test -n "$ac_ct_OTOOL"; then
8154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8155printf "%s\n" "$ac_ct_OTOOL" >&6; }
8156else
8157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158printf "%s\n" "no" >&6; }
8159fi
8160
8161  if test "x$ac_ct_OTOOL" = x; then
8162    OTOOL=":"
8163  else
8164    case $cross_compiling:$ac_tool_warned in
8165yes:)
8166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168ac_tool_warned=yes ;;
8169esac
8170    OTOOL=$ac_ct_OTOOL
8171  fi
8172else
8173  OTOOL="$ac_cv_prog_OTOOL"
8174fi
8175
8176    if test -n "$ac_tool_prefix"; then
8177  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8178set dummy ${ac_tool_prefix}otool64; ac_word=$2
8179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180printf %s "checking for $ac_word... " >&6; }
8181if test ${ac_cv_prog_OTOOL64+y}
8182then :
8183  printf %s "(cached) " >&6
8184else case e in #(
8185  e) if test -n "$OTOOL64"; then
8186  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191  IFS=$as_save_IFS
8192  case $as_dir in #(((
8193    '') as_dir=./ ;;
8194    */) ;;
8195    *) as_dir=$as_dir/ ;;
8196  esac
8197    for ac_exec_ext in '' $ac_executable_extensions; do
8198  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8199    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8200    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8201    break 2
8202  fi
8203done
8204  done
8205IFS=$as_save_IFS
8206
8207fi ;;
8208esac
8209fi
8210OTOOL64=$ac_cv_prog_OTOOL64
8211if test -n "$OTOOL64"; then
8212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8213printf "%s\n" "$OTOOL64" >&6; }
8214else
8215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216printf "%s\n" "no" >&6; }
8217fi
8218
8219
8220fi
8221if test -z "$ac_cv_prog_OTOOL64"; then
8222  ac_ct_OTOOL64=$OTOOL64
8223  # Extract the first word of "otool64", so it can be a program name with args.
8224set dummy otool64; ac_word=$2
8225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226printf %s "checking for $ac_word... " >&6; }
8227if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8228then :
8229  printf %s "(cached) " >&6
8230else case e in #(
8231  e) if test -n "$ac_ct_OTOOL64"; then
8232  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237  IFS=$as_save_IFS
8238  case $as_dir in #(((
8239    '') as_dir=./ ;;
8240    */) ;;
8241    *) as_dir=$as_dir/ ;;
8242  esac
8243    for ac_exec_ext in '' $ac_executable_extensions; do
8244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8245    ac_cv_prog_ac_ct_OTOOL64="otool64"
8246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8247    break 2
8248  fi
8249done
8250  done
8251IFS=$as_save_IFS
8252
8253fi ;;
8254esac
8255fi
8256ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8257if test -n "$ac_ct_OTOOL64"; then
8258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8259printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8260else
8261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262printf "%s\n" "no" >&6; }
8263fi
8264
8265  if test "x$ac_ct_OTOOL64" = x; then
8266    OTOOL64=":"
8267  else
8268    case $cross_compiling:$ac_tool_warned in
8269yes:)
8270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8271printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8272ac_tool_warned=yes ;;
8273esac
8274    OTOOL64=$ac_ct_OTOOL64
8275  fi
8276else
8277  OTOOL64="$ac_cv_prog_OTOOL64"
8278fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8307printf %s "checking for -single_module linker flag... " >&6; }
8308if test ${lt_cv_apple_cc_single_mod+y}
8309then :
8310  printf %s "(cached) " >&6
8311else case e in #(
8312  e) lt_cv_apple_cc_single_mod=no
8313      if test -z "$LT_MULTI_MODULE"; then
8314	# By default we will add the -single_module flag. You can override
8315	# by either setting the environment variable LT_MULTI_MODULE
8316	# non-empty at configure time, or by adding -multi_module to the
8317	# link flags.
8318	rm -rf libconftest.dylib*
8319	echo "int foo(void){return 1;}" > conftest.c
8320	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8321-dynamiclib -Wl,-single_module conftest.c" >&5
8322	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8323	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8324        _lt_result=$?
8325	# If there is a non-empty error log, and "single_module"
8326	# appears in it, assume the flag caused a linker warning
8327        if test -s conftest.err && $GREP single_module conftest.err; then
8328	  cat conftest.err >&5
8329	# Otherwise, if the output was created with a 0 exit code from
8330	# the compiler, it worked.
8331	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8332	  lt_cv_apple_cc_single_mod=yes
8333	else
8334	  cat conftest.err >&5
8335	fi
8336	rm -rf libconftest.dylib*
8337	rm -f conftest.*
8338      fi ;;
8339esac
8340fi
8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8342printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8343
8344    # Feature test to disable chained fixups since it is not
8345    # compatible with '-undefined dynamic_lookup'
8346    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8347printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8348if test ${lt_cv_support_no_fixup_chains+y}
8349then :
8350  printf %s "(cached) " >&6
8351else case e in #(
8352  e)  save_LDFLAGS=$LDFLAGS
8353        LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8354        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355/* end confdefs.h.  */
8356
8357int
8358main (void)
8359{
8360
8361  ;
8362  return 0;
8363}
8364_ACEOF
8365if ac_fn_c_try_link "$LINENO"
8366then :
8367  lt_cv_support_no_fixup_chains=yes
8368else case e in #(
8369  e) lt_cv_support_no_fixup_chains=no
8370         ;;
8371esac
8372fi
8373rm -f core conftest.err conftest.$ac_objext conftest.beam \
8374    conftest$ac_exeext conftest.$ac_ext
8375        LDFLAGS=$save_LDFLAGS
8376
8377     ;;
8378esac
8379fi
8380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8381printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8382
8383    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8384printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8385if test ${lt_cv_ld_exported_symbols_list+y}
8386then :
8387  printf %s "(cached) " >&6
8388else case e in #(
8389  e) lt_cv_ld_exported_symbols_list=no
8390      save_LDFLAGS=$LDFLAGS
8391      echo "_main" > conftest.sym
8392      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8393      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395
8396int
8397main (void)
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"
8405then :
8406  lt_cv_ld_exported_symbols_list=yes
8407else case e in #(
8408  e) lt_cv_ld_exported_symbols_list=no ;;
8409esac
8410fi
8411rm -f core conftest.err conftest.$ac_objext conftest.beam \
8412    conftest$ac_exeext conftest.$ac_ext
8413	LDFLAGS=$save_LDFLAGS
8414     ;;
8415esac
8416fi
8417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8418printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8419
8420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8421printf %s "checking for -force_load linker flag... " >&6; }
8422if test ${lt_cv_ld_force_load+y}
8423then :
8424  printf %s "(cached) " >&6
8425else case e in #(
8426  e) lt_cv_ld_force_load=no
8427      cat > conftest.c << _LT_EOF
8428int forced_loaded() { return 2;}
8429_LT_EOF
8430      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8431      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8432      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8433      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8434      echo "$RANLIB libconftest.a" >&5
8435      $RANLIB libconftest.a 2>&5
8436      cat > conftest.c << _LT_EOF
8437int main(void) { return 0;}
8438_LT_EOF
8439      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8440      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8441      _lt_result=$?
8442      if test -s conftest.err && $GREP force_load conftest.err; then
8443	cat conftest.err >&5
8444      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8445	lt_cv_ld_force_load=yes
8446      else
8447	cat conftest.err >&5
8448      fi
8449        rm -f conftest.err libconftest.a conftest conftest.c
8450        rm -rf conftest.dSYM
8451     ;;
8452esac
8453fi
8454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8455printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8456    case $host_os in
8457    rhapsody* | darwin1.[012])
8458      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8459    darwin1.*)
8460      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8461    darwin*)
8462      case $MACOSX_DEPLOYMENT_TARGET,$host in
8463        10.[012],*|,*powerpc*-darwin[5-8]*)
8464          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8465        *)
8466          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8467          if test yes = "$lt_cv_support_no_fixup_chains"; then
8468            as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8469          fi
8470        ;;
8471      esac
8472    ;;
8473  esac
8474    if test yes = "$lt_cv_apple_cc_single_mod"; then
8475      _lt_dar_single_mod='$single_module'
8476    fi
8477    _lt_dar_needs_single_mod=no
8478    case $host_os in
8479    rhapsody* | darwin1.*)
8480      _lt_dar_needs_single_mod=yes ;;
8481    darwin*)
8482      # When targeting Mac OS X 10.4 (darwin 8) or later,
8483      # -single_module is the default and -multi_module is unsupported.
8484      # The toolchain on macOS 10.14 (darwin 18) and later cannot
8485      # target any OS version that needs -single_module.
8486      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8487      10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8488        _lt_dar_needs_single_mod=yes ;;
8489      esac
8490    ;;
8491    esac
8492    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8493      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8494    else
8495      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8496    fi
8497    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8498      _lt_dsymutil='~$DSYMUTIL $lib || :'
8499    else
8500      _lt_dsymutil=
8501    fi
8502    ;;
8503  esac
8504
8505# func_munge_path_list VARIABLE PATH
8506# -----------------------------------
8507# VARIABLE is name of variable containing _space_ separated list of
8508# directories to be munged by the contents of PATH, which is string
8509# having a format:
8510# "DIR[:DIR]:"
8511#       string "DIR[ DIR]" will be prepended to VARIABLE
8512# ":DIR[:DIR]"
8513#       string "DIR[ DIR]" will be appended to VARIABLE
8514# "DIRP[:DIRP]::[DIRA:]DIRA"
8515#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8516#       "DIRA[ DIRA]" will be appended to VARIABLE
8517# "DIR[:DIR]"
8518#       VARIABLE will be replaced by "DIR[ DIR]"
8519func_munge_path_list ()
8520{
8521    case x$2 in
8522    x)
8523        ;;
8524    *:)
8525        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8526        ;;
8527    x:*)
8528        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8529        ;;
8530    *::*)
8531        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8532        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8533        ;;
8534    *)
8535        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8536        ;;
8537    esac
8538}
8539
8540ac_header= ac_cache=
8541for ac_item in $ac_header_c_list
8542do
8543  if test $ac_cache; then
8544    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8545    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8546      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8547    fi
8548    ac_header= ac_cache=
8549  elif test $ac_header; then
8550    ac_cache=$ac_item
8551  else
8552    ac_header=$ac_item
8553  fi
8554done
8555
8556
8557
8558
8559
8560
8561
8562
8563if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8564then :
8565
8566printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8567
8568fi
8569ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8570"
8571if test "x$ac_cv_header_dlfcn_h" = xyes
8572then :
8573  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8574
8575fi
8576
8577
8578
8579
8580
8581# Set options
8582
8583
8584
8585        enable_dlopen=no
8586
8587
8588  enable_win32_dll=no
8589
8590
8591            # Check whether --enable-shared was given.
8592if test ${enable_shared+y}
8593then :
8594  enableval=$enable_shared; p=${PACKAGE-default}
8595    case $enableval in
8596    yes) enable_shared=yes ;;
8597    no) enable_shared=no ;;
8598    *)
8599      enable_shared=no
8600      # Look at the argument we got.  We use all the common list separators.
8601      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8602      for pkg in $enableval; do
8603	IFS=$lt_save_ifs
8604	if test "X$pkg" = "X$p"; then
8605	  enable_shared=yes
8606	fi
8607      done
8608      IFS=$lt_save_ifs
8609      ;;
8610    esac
8611else case e in #(
8612  e) enable_shared=yes ;;
8613esac
8614fi
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624  # Check whether --enable-static was given.
8625if test ${enable_static+y}
8626then :
8627  enableval=$enable_static; p=${PACKAGE-default}
8628    case $enableval in
8629    yes) enable_static=yes ;;
8630    no) enable_static=no ;;
8631    *)
8632     enable_static=no
8633      # Look at the argument we got.  We use all the common list separators.
8634      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8635      for pkg in $enableval; do
8636	IFS=$lt_save_ifs
8637	if test "X$pkg" = "X$p"; then
8638	  enable_static=yes
8639	fi
8640      done
8641      IFS=$lt_save_ifs
8642      ;;
8643    esac
8644else case e in #(
8645  e) enable_static=yes ;;
8646esac
8647fi
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657  # Check whether --enable-pic was given.
8658if test ${enable_pic+y}
8659then :
8660  enableval=$enable_pic; lt_p=${PACKAGE-default}
8661     case $enableval in
8662     yes|no) pic_mode=$enableval ;;
8663     *)
8664       pic_mode=default
8665       # Look at the argument we got.  We use all the common list separators.
8666       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8667       for lt_pkg in $enableval; do
8668	 IFS=$lt_save_ifs
8669	 if test "X$lt_pkg" = "X$lt_p"; then
8670	   pic_mode=yes
8671	 fi
8672       done
8673       IFS=$lt_save_ifs
8674       ;;
8675     esac
8676else case e in #(
8677  e)           # Check whether --with-pic was given.
8678if test ${with_pic+y}
8679then :
8680  withval=$with_pic; lt_p=${PACKAGE-default}
8681	 case $withval in
8682	 yes|no) pic_mode=$withval ;;
8683	 *)
8684	   pic_mode=default
8685	   # Look at the argument we got.  We use all the common list separators.
8686	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8687	   for lt_pkg in $withval; do
8688	     IFS=$lt_save_ifs
8689	     if test "X$lt_pkg" = "X$lt_p"; then
8690	       pic_mode=yes
8691	     fi
8692	   done
8693	   IFS=$lt_save_ifs
8694	   ;;
8695	 esac
8696else case e in #(
8697  e) pic_mode=default ;;
8698esac
8699fi
8700
8701     ;;
8702esac
8703fi
8704
8705
8706
8707
8708
8709
8710
8711
8712  # Check whether --enable-fast-install was given.
8713if test ${enable_fast_install+y}
8714then :
8715  enableval=$enable_fast_install; p=${PACKAGE-default}
8716    case $enableval in
8717    yes) enable_fast_install=yes ;;
8718    no) enable_fast_install=no ;;
8719    *)
8720      enable_fast_install=no
8721      # Look at the argument we got.  We use all the common list separators.
8722      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8723      for pkg in $enableval; do
8724	IFS=$lt_save_ifs
8725	if test "X$pkg" = "X$p"; then
8726	  enable_fast_install=yes
8727	fi
8728      done
8729      IFS=$lt_save_ifs
8730      ;;
8731    esac
8732else case e in #(
8733  e) enable_fast_install=yes ;;
8734esac
8735fi
8736
8737
8738
8739
8740
8741
8742
8743
8744  shared_archive_member_spec=
8745case $host,$enable_shared in
8746power*-*-aix[5-9]*,yes)
8747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8748printf %s "checking which variant of shared library versioning to provide... " >&6; }
8749  # Check whether --enable-aix-soname was given.
8750if test ${enable_aix_soname+y}
8751then :
8752  enableval=$enable_aix_soname; case $enableval in
8753     aix|svr4|both)
8754       ;;
8755     *)
8756       as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8757       ;;
8758     esac
8759     lt_cv_with_aix_soname=$enable_aix_soname
8760else case e in #(
8761  e) # Check whether --with-aix-soname was given.
8762if test ${with_aix_soname+y}
8763then :
8764  withval=$with_aix_soname; case $withval in
8765         aix|svr4|both)
8766           ;;
8767         *)
8768           as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8769           ;;
8770         esac
8771         lt_cv_with_aix_soname=$with_aix_soname
8772else case e in #(
8773  e) if test ${lt_cv_with_aix_soname+y}
8774then :
8775  printf %s "(cached) " >&6
8776else case e in #(
8777  e) lt_cv_with_aix_soname=aix ;;
8778esac
8779fi
8780 ;;
8781esac
8782fi
8783
8784     enable_aix_soname=$lt_cv_with_aix_soname ;;
8785esac
8786fi
8787
8788  with_aix_soname=$enable_aix_soname
8789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8790printf "%s\n" "$with_aix_soname" >&6; }
8791  if test aix != "$with_aix_soname"; then
8792    # For the AIX way of multilib, we name the shared archive member
8793    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8794    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8795    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8796    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8797    if test 64 = "${OBJECT_MODE-32}"; then
8798      shared_archive_member_spec=shr_64
8799    else
8800      shared_archive_member_spec=shr
8801    fi
8802  fi
8803  ;;
8804*)
8805  with_aix_soname=aix
8806  ;;
8807esac
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818# This can be used to rebuild libtool when needed
8819LIBTOOL_DEPS=$ltmain
8820
8821# Always use our own libtool.
8822LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853test -z "$LN_S" && LN_S="ln -s"
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868if test -n "${ZSH_VERSION+set}"; then
8869   setopt NO_GLOB_SUBST
8870fi
8871
8872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8873printf %s "checking for objdir... " >&6; }
8874if test ${lt_cv_objdir+y}
8875then :
8876  printf %s "(cached) " >&6
8877else case e in #(
8878  e) rm -f .libs 2>/dev/null
8879mkdir .libs 2>/dev/null
8880if test -d .libs; then
8881  lt_cv_objdir=.libs
8882else
8883  # MS-DOS does not allow filenames that begin with a dot.
8884  lt_cv_objdir=_libs
8885fi
8886rmdir .libs 2>/dev/null ;;
8887esac
8888fi
8889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8890printf "%s\n" "$lt_cv_objdir" >&6; }
8891objdir=$lt_cv_objdir
8892
8893
8894
8895
8896
8897printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8898
8899
8900
8901
8902case $host_os in
8903aix3*)
8904  # AIX sometimes has problems with the GCC collect2 program.  For some
8905  # reason, if we set the COLLECT_NAMES environment variable, the problems
8906  # vanish in a puff of smoke.
8907  if test set != "${COLLECT_NAMES+set}"; then
8908    COLLECT_NAMES=
8909    export COLLECT_NAMES
8910  fi
8911  ;;
8912esac
8913
8914# Global variables:
8915ofile=libtool
8916can_build_shared=yes
8917
8918# All known linkers require a '.a' archive for static linking (except MSVC and
8919# ICC, which need '.lib').
8920libext=a
8921
8922with_gnu_ld=$lt_cv_prog_gnu_ld
8923
8924old_CC=$CC
8925old_CFLAGS=$CFLAGS
8926
8927# Set sane defaults for various variables
8928test -z "$CC" && CC=cc
8929test -z "$LTCC" && LTCC=$CC
8930test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8931test -z "$LD" && LD=ld
8932test -z "$ac_objext" && ac_objext=o
8933
8934func_cc_basename $compiler
8935cc_basename=$func_cc_basename_result
8936
8937
8938# Only perform the check for file, if the check method requires it
8939test -z "$MAGIC_CMD" && MAGIC_CMD=file
8940case $deplibs_check_method in
8941file_magic*)
8942  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8943    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8944printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8945if test ${lt_cv_path_MAGIC_CMD+y}
8946then :
8947  printf %s "(cached) " >&6
8948else case e in #(
8949  e) case $MAGIC_CMD in
8950[\\/*] |  ?:[\\/]*)
8951  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8952  ;;
8953*)
8954  lt_save_MAGIC_CMD=$MAGIC_CMD
8955  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8956  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8957  for ac_dir in $ac_dummy; do
8958    IFS=$lt_save_ifs
8959    test -z "$ac_dir" && ac_dir=.
8960    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8961      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8962      if test -n "$file_magic_test_file"; then
8963	case $deplibs_check_method in
8964	"file_magic "*)
8965	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8966	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8967	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8968	    $EGREP "$file_magic_regex" > /dev/null; then
8969	    :
8970	  else
8971	    cat <<_LT_EOF 1>&2
8972
8973*** Warning: the command libtool uses to detect shared libraries,
8974*** $file_magic_cmd, produces output that libtool cannot recognize.
8975*** The result is that libtool may fail to recognize shared libraries
8976*** as such.  This will affect the creation of libtool libraries that
8977*** depend on shared libraries, but programs linked with such libtool
8978*** libraries will work regardless of this problem.  Nevertheless, you
8979*** may want to report the problem to your system manager and/or to
8980*** bug-libtool@gnu.org
8981
8982_LT_EOF
8983	  fi ;;
8984	esac
8985      fi
8986      break
8987    fi
8988  done
8989  IFS=$lt_save_ifs
8990  MAGIC_CMD=$lt_save_MAGIC_CMD
8991  ;;
8992esac ;;
8993esac
8994fi
8995
8996MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8997if test -n "$MAGIC_CMD"; then
8998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8999printf "%s\n" "$MAGIC_CMD" >&6; }
9000else
9001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002printf "%s\n" "no" >&6; }
9003fi
9004
9005
9006
9007
9008
9009if test -z "$lt_cv_path_MAGIC_CMD"; then
9010  if test -n "$ac_tool_prefix"; then
9011    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9012printf %s "checking for file... " >&6; }
9013if test ${lt_cv_path_MAGIC_CMD+y}
9014then :
9015  printf %s "(cached) " >&6
9016else case e in #(
9017  e) case $MAGIC_CMD in
9018[\\/*] |  ?:[\\/]*)
9019  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9020  ;;
9021*)
9022  lt_save_MAGIC_CMD=$MAGIC_CMD
9023  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9024  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9025  for ac_dir in $ac_dummy; do
9026    IFS=$lt_save_ifs
9027    test -z "$ac_dir" && ac_dir=.
9028    if test -f "$ac_dir/file"; then
9029      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9030      if test -n "$file_magic_test_file"; then
9031	case $deplibs_check_method in
9032	"file_magic "*)
9033	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9034	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9035	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9036	    $EGREP "$file_magic_regex" > /dev/null; then
9037	    :
9038	  else
9039	    cat <<_LT_EOF 1>&2
9040
9041*** Warning: the command libtool uses to detect shared libraries,
9042*** $file_magic_cmd, produces output that libtool cannot recognize.
9043*** The result is that libtool may fail to recognize shared libraries
9044*** as such.  This will affect the creation of libtool libraries that
9045*** depend on shared libraries, but programs linked with such libtool
9046*** libraries will work regardless of this problem.  Nevertheless, you
9047*** may want to report the problem to your system manager and/or to
9048*** bug-libtool@gnu.org
9049
9050_LT_EOF
9051	  fi ;;
9052	esac
9053      fi
9054      break
9055    fi
9056  done
9057  IFS=$lt_save_ifs
9058  MAGIC_CMD=$lt_save_MAGIC_CMD
9059  ;;
9060esac ;;
9061esac
9062fi
9063
9064MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9065if test -n "$MAGIC_CMD"; then
9066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9067printf "%s\n" "$MAGIC_CMD" >&6; }
9068else
9069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070printf "%s\n" "no" >&6; }
9071fi
9072
9073
9074  else
9075    MAGIC_CMD=:
9076  fi
9077fi
9078
9079  fi
9080  ;;
9081esac
9082
9083# Use C for the default configuration in the libtool script
9084
9085lt_save_CC=$CC
9086ac_ext=c
9087ac_cpp='$CPP $CPPFLAGS'
9088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9090ac_compiler_gnu=$ac_cv_c_compiler_gnu
9091
9092
9093# Source file extension for C test sources.
9094ac_ext=c
9095
9096# Object file extension for compiled C test sources.
9097objext=o
9098objext=$objext
9099
9100# Code to be used in simple compile tests
9101lt_simple_compile_test_code="int some_variable = 0;"
9102
9103# Code to be used in simple link tests
9104lt_simple_link_test_code='int main(void){return(0);}'
9105
9106
9107
9108
9109
9110
9111
9112# If no C compiler was specified, use CC.
9113LTCC=${LTCC-"$CC"}
9114
9115# If no C compiler flags were specified, use CFLAGS.
9116LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9117
9118# Allow CC to be a program name with arguments.
9119compiler=$CC
9120
9121# Save the default compiler, since it gets overwritten when the other
9122# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9123compiler_DEFAULT=$CC
9124
9125# save warnings/boilerplate of simple test code
9126ac_outfile=conftest.$ac_objext
9127echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9128eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9129_lt_compiler_boilerplate=`cat conftest.err`
9130$RM conftest*
9131
9132ac_outfile=conftest.$ac_objext
9133echo "$lt_simple_link_test_code" >conftest.$ac_ext
9134eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9135_lt_linker_boilerplate=`cat conftest.err`
9136$RM -r conftest*
9137
9138
9139## CAVEAT EMPTOR:
9140## There is no encapsulation within the following macros, do not change
9141## the running order or otherwise move them around unless you know exactly
9142## what you are doing...
9143if test -n "$compiler"; then
9144
9145lt_prog_compiler_no_builtin_flag=
9146
9147if test yes = "$GCC"; then
9148  case $cc_basename in
9149  nvcc*)
9150    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9151  *)
9152    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9153  esac
9154
9155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9156printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9157if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9158then :
9159  printf %s "(cached) " >&6
9160else case e in #(
9161  e) lt_cv_prog_compiler_rtti_exceptions=no
9162   ac_outfile=conftest.$ac_objext
9163   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9165   # Insert the option either (1) after the last *FLAGS variable, or
9166   # (2) before a word containing "conftest.", or (3) at the end.
9167   # Note that $ac_compile itself does not contain backslashes and begins
9168   # with a dollar sign (not a hyphen), so the echo should work correctly.
9169   # The option is referenced via a variable to avoid confusing sed.
9170   lt_compile=`echo "$ac_compile" | $SED \
9171   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173   -e 's:$: $lt_compiler_flag:'`
9174   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9175   (eval "$lt_compile" 2>conftest.err)
9176   ac_status=$?
9177   cat conftest.err >&5
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   if (exit $ac_status) && test -s "$ac_outfile"; then
9180     # The compiler can only warn and ignore the option if not recognized
9181     # So say no if there are warnings other than the usual output.
9182     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9183     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9184     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9185       lt_cv_prog_compiler_rtti_exceptions=yes
9186     fi
9187   fi
9188   $RM conftest*
9189 ;;
9190esac
9191fi
9192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9193printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9194
9195if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9196    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9197else
9198    :
9199fi
9200
9201fi
9202
9203
9204
9205
9206
9207
9208  lt_prog_compiler_wl=
9209lt_prog_compiler_pic=
9210lt_prog_compiler_static=
9211
9212
9213  if test yes = "$GCC"; then
9214    lt_prog_compiler_wl='-Wl,'
9215    lt_prog_compiler_static='-static'
9216
9217    case $host_os in
9218      aix*)
9219      # All AIX code is PIC.
9220      if test ia64 = "$host_cpu"; then
9221	# AIX 5 now supports IA64 processor
9222	lt_prog_compiler_static='-Bstatic'
9223      fi
9224      lt_prog_compiler_pic='-fPIC'
9225      ;;
9226
9227    amigaos*)
9228      case $host_cpu in
9229      powerpc)
9230            # see comment about AmigaOS4 .so support
9231            lt_prog_compiler_pic='-fPIC'
9232        ;;
9233      m68k)
9234            # FIXME: we need at least 68020 code to build shared libraries, but
9235            # adding the '-m68020' flag to GCC prevents building anything better,
9236            # like '-m68040'.
9237            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9238        ;;
9239      esac
9240      ;;
9241
9242    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9243      # PIC is the default for these OSes.
9244      ;;
9245
9246    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9247      # This hack is so that the source file can tell whether it is being
9248      # built for inclusion in a dll (and should export symbols for example).
9249      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9250      # (--disable-auto-import) libraries
9251      lt_prog_compiler_pic='-DDLL_EXPORT'
9252      case $host_os in
9253      os2*)
9254	lt_prog_compiler_static='$wl-static'
9255	;;
9256      esac
9257      ;;
9258
9259    darwin* | rhapsody*)
9260      # PIC is the default on this platform
9261      # Common symbols not allowed in MH_DYLIB files
9262      lt_prog_compiler_pic='-fno-common'
9263      ;;
9264
9265    haiku*)
9266      # PIC is the default for Haiku.
9267      # The "-static" flag exists, but is broken.
9268      lt_prog_compiler_static=
9269      ;;
9270
9271    hpux*)
9272      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9273      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9274      # sets the default TLS model and affects inlining.
9275      case $host_cpu in
9276      hppa*64*)
9277	# +Z the default
9278	;;
9279      *)
9280	lt_prog_compiler_pic='-fPIC'
9281	;;
9282      esac
9283      ;;
9284
9285    interix[3-9]*)
9286      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9287      # Instead, we relocate shared libraries at runtime.
9288      ;;
9289
9290    msdosdjgpp*)
9291      # Just because we use GCC doesn't mean we suddenly get shared libraries
9292      # on systems that don't support them.
9293      lt_prog_compiler_can_build_shared=no
9294      enable_shared=no
9295      ;;
9296
9297    *nto* | *qnx*)
9298      # QNX uses GNU C++, but need to define -shared option too, otherwise
9299      # it will coredump.
9300      lt_prog_compiler_pic='-fPIC -shared'
9301      ;;
9302
9303    sysv4*MP*)
9304      if test -d /usr/nec; then
9305	lt_prog_compiler_pic=-Kconform_pic
9306      fi
9307      ;;
9308
9309    *)
9310      lt_prog_compiler_pic='-fPIC'
9311      ;;
9312    esac
9313
9314    case $cc_basename in
9315    nvcc*) # Cuda Compiler Driver 2.2
9316      lt_prog_compiler_wl='-Xlinker '
9317      if test -n "$lt_prog_compiler_pic"; then
9318        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9319      fi
9320      ;;
9321    esac
9322  else
9323    # PORTME Check for flag to pass linker flags through the system compiler.
9324    case $host_os in
9325    aix*)
9326      lt_prog_compiler_wl='-Wl,'
9327      if test ia64 = "$host_cpu"; then
9328	# AIX 5 now supports IA64 processor
9329	lt_prog_compiler_static='-Bstatic'
9330      else
9331	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9332      fi
9333      ;;
9334
9335    darwin* | rhapsody*)
9336      # PIC is the default on this platform
9337      # Common symbols not allowed in MH_DYLIB files
9338      lt_prog_compiler_pic='-fno-common'
9339      case $cc_basename in
9340      nagfor*)
9341        # NAG Fortran compiler
9342        lt_prog_compiler_wl='-Wl,-Wl,,'
9343        lt_prog_compiler_pic='-PIC'
9344        lt_prog_compiler_static='-Bstatic'
9345        ;;
9346      esac
9347      ;;
9348
9349    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9350      # This hack is so that the source file can tell whether it is being
9351      # built for inclusion in a dll (and should export symbols for example).
9352      lt_prog_compiler_pic='-DDLL_EXPORT'
9353      case $host_os in
9354      os2*)
9355	lt_prog_compiler_static='$wl-static'
9356	;;
9357      esac
9358      ;;
9359
9360    hpux9* | hpux10* | hpux11*)
9361      lt_prog_compiler_wl='-Wl,'
9362      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9363      # not for PA HP-UX.
9364      case $host_cpu in
9365      hppa*64*|ia64*)
9366	# +Z the default
9367	;;
9368      *)
9369	lt_prog_compiler_pic='+Z'
9370	;;
9371      esac
9372      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9373      lt_prog_compiler_static='$wl-a ${wl}archive'
9374      ;;
9375
9376    irix5* | irix6* | nonstopux*)
9377      lt_prog_compiler_wl='-Wl,'
9378      # PIC (with -KPIC) is the default.
9379      lt_prog_compiler_static='-non_shared'
9380      ;;
9381
9382    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9383      case $cc_basename in
9384      # old Intel for x86_64, which still supported -KPIC.
9385      ecc*)
9386	lt_prog_compiler_wl='-Wl,'
9387	lt_prog_compiler_pic='-KPIC'
9388	lt_prog_compiler_static='-static'
9389        ;;
9390      *flang* | ftn | f18* | f95*)
9391        # Flang compiler.
9392	lt_prog_compiler_wl='-Wl,'
9393	lt_prog_compiler_pic='-fPIC'
9394	lt_prog_compiler_static='-static'
9395        ;;
9396      # icc used to be incompatible with GCC.
9397      # ICC 10 doesn't accept -KPIC any more.
9398      icc* | ifort*)
9399	lt_prog_compiler_wl='-Wl,'
9400	lt_prog_compiler_pic='-fPIC'
9401	lt_prog_compiler_static='-static'
9402        ;;
9403      # Lahey Fortran 8.1.
9404      lf95*)
9405	lt_prog_compiler_wl='-Wl,'
9406	lt_prog_compiler_pic='--shared'
9407	lt_prog_compiler_static='--static'
9408	;;
9409      nagfor*)
9410	# NAG Fortran compiler
9411	lt_prog_compiler_wl='-Wl,-Wl,,'
9412	lt_prog_compiler_pic='-PIC'
9413	lt_prog_compiler_static='-Bstatic'
9414	;;
9415      tcc*)
9416	# Fabrice Bellard et al's Tiny C Compiler
9417	lt_prog_compiler_wl='-Wl,'
9418	lt_prog_compiler_pic='-fPIC'
9419	lt_prog_compiler_static='-static'
9420	;;
9421      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9422        # Portland Group compilers (*not* the Pentium gcc compiler,
9423	# which looks to be a dead project)
9424	lt_prog_compiler_wl='-Wl,'
9425	lt_prog_compiler_pic='-fpic'
9426	lt_prog_compiler_static='-Bstatic'
9427        ;;
9428      ccc*)
9429        lt_prog_compiler_wl='-Wl,'
9430        # All Alpha code is PIC.
9431        lt_prog_compiler_static='-non_shared'
9432        ;;
9433      xl* | bgxl* | bgf* | mpixl*)
9434	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9435	lt_prog_compiler_wl='-Wl,'
9436	lt_prog_compiler_pic='-qpic'
9437	lt_prog_compiler_static='-qstaticlink'
9438	;;
9439      *)
9440	case `$CC -V 2>&1 | $SED 5q` in
9441	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9442	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9443	  lt_prog_compiler_pic='-KPIC'
9444	  lt_prog_compiler_static='-Bstatic'
9445	  lt_prog_compiler_wl=''
9446	  ;;
9447	*Sun\ F* | *Sun*Fortran*)
9448	  lt_prog_compiler_pic='-KPIC'
9449	  lt_prog_compiler_static='-Bstatic'
9450	  lt_prog_compiler_wl='-Qoption ld '
9451	  ;;
9452	*Sun\ C*)
9453	  # Sun C 5.9
9454	  lt_prog_compiler_pic='-KPIC'
9455	  lt_prog_compiler_static='-Bstatic'
9456	  lt_prog_compiler_wl='-Wl,'
9457	  ;;
9458        *Intel*\ [CF]*Compiler*)
9459	  lt_prog_compiler_wl='-Wl,'
9460	  lt_prog_compiler_pic='-fPIC'
9461	  lt_prog_compiler_static='-static'
9462	  ;;
9463	*Portland\ Group*)
9464	  lt_prog_compiler_wl='-Wl,'
9465	  lt_prog_compiler_pic='-fpic'
9466	  lt_prog_compiler_static='-Bstatic'
9467	  ;;
9468	esac
9469	;;
9470      esac
9471      ;;
9472
9473    newsos6)
9474      lt_prog_compiler_pic='-KPIC'
9475      lt_prog_compiler_static='-Bstatic'
9476      ;;
9477
9478    *-mlibc)
9479      lt_prog_compiler_wl='-Wl,'
9480      lt_prog_compiler_pic='-fPIC'
9481      lt_prog_compiler_static='-static'
9482      ;;
9483
9484    *nto* | *qnx*)
9485      # QNX uses GNU C++, but need to define -shared option too, otherwise
9486      # it will coredump.
9487      lt_prog_compiler_pic='-fPIC -shared'
9488      ;;
9489
9490    osf3* | osf4* | osf5*)
9491      lt_prog_compiler_wl='-Wl,'
9492      # All OSF/1 code is PIC.
9493      lt_prog_compiler_static='-non_shared'
9494      ;;
9495
9496    rdos*)
9497      lt_prog_compiler_static='-non_shared'
9498      ;;
9499
9500    serenity*)
9501      ;;
9502
9503    solaris*)
9504      lt_prog_compiler_pic='-KPIC'
9505      lt_prog_compiler_static='-Bstatic'
9506      case $cc_basename in
9507      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9508	lt_prog_compiler_wl='-Qoption ld ';;
9509      *)
9510	lt_prog_compiler_wl='-Wl,';;
9511      esac
9512      ;;
9513
9514    sunos4*)
9515      lt_prog_compiler_wl='-Qoption ld '
9516      lt_prog_compiler_pic='-PIC'
9517      lt_prog_compiler_static='-Bstatic'
9518      ;;
9519
9520    sysv4 | sysv4.2uw2* | sysv4.3*)
9521      lt_prog_compiler_wl='-Wl,'
9522      lt_prog_compiler_pic='-KPIC'
9523      lt_prog_compiler_static='-Bstatic'
9524      ;;
9525
9526    sysv4*MP*)
9527      if test -d /usr/nec; then
9528	lt_prog_compiler_pic='-Kconform_pic'
9529	lt_prog_compiler_static='-Bstatic'
9530      fi
9531      ;;
9532
9533    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9534      lt_prog_compiler_wl='-Wl,'
9535      lt_prog_compiler_pic='-KPIC'
9536      lt_prog_compiler_static='-Bstatic'
9537      ;;
9538
9539    unicos*)
9540      lt_prog_compiler_wl='-Wl,'
9541      lt_prog_compiler_can_build_shared=no
9542      ;;
9543
9544    uts4*)
9545      lt_prog_compiler_pic='-pic'
9546      lt_prog_compiler_static='-Bstatic'
9547      ;;
9548
9549    *)
9550      lt_prog_compiler_can_build_shared=no
9551      ;;
9552    esac
9553  fi
9554
9555case $host_os in
9556  # For platforms that do not support PIC, -DPIC is meaningless:
9557  *djgpp*)
9558    lt_prog_compiler_pic=
9559    ;;
9560  *)
9561    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9562    ;;
9563esac
9564
9565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9566printf %s "checking for $compiler option to produce PIC... " >&6; }
9567if test ${lt_cv_prog_compiler_pic+y}
9568then :
9569  printf %s "(cached) " >&6
9570else case e in #(
9571  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9572esac
9573fi
9574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9575printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9576lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9577
9578#
9579# Check to make sure the PIC flag actually works.
9580#
9581if test -n "$lt_prog_compiler_pic"; then
9582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9583printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9584if test ${lt_cv_prog_compiler_pic_works+y}
9585then :
9586  printf %s "(cached) " >&6
9587else case e in #(
9588  e) lt_cv_prog_compiler_pic_works=no
9589   ac_outfile=conftest.$ac_objext
9590   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9591   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9592   # Insert the option either (1) after the last *FLAGS variable, or
9593   # (2) before a word containing "conftest.", or (3) at the end.
9594   # Note that $ac_compile itself does not contain backslashes and begins
9595   # with a dollar sign (not a hyphen), so the echo should work correctly.
9596   # The option is referenced via a variable to avoid confusing sed.
9597   lt_compile=`echo "$ac_compile" | $SED \
9598   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600   -e 's:$: $lt_compiler_flag:'`
9601   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9602   (eval "$lt_compile" 2>conftest.err)
9603   ac_status=$?
9604   cat conftest.err >&5
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   if (exit $ac_status) && test -s "$ac_outfile"; then
9607     # The compiler can only warn and ignore the option if not recognized
9608     # So say no if there are warnings other than the usual output.
9609     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9610     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9611     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9612       lt_cv_prog_compiler_pic_works=yes
9613     fi
9614   fi
9615   $RM conftest*
9616 ;;
9617esac
9618fi
9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9620printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9621
9622if test yes = "$lt_cv_prog_compiler_pic_works"; then
9623    case $lt_prog_compiler_pic in
9624     "" | " "*) ;;
9625     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9626     esac
9627else
9628    lt_prog_compiler_pic=
9629     lt_prog_compiler_can_build_shared=no
9630fi
9631
9632fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644#
9645# Check to make sure the static flag actually works.
9646#
9647wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9649printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9650if test ${lt_cv_prog_compiler_static_works+y}
9651then :
9652  printf %s "(cached) " >&6
9653else case e in #(
9654  e) lt_cv_prog_compiler_static_works=no
9655   save_LDFLAGS=$LDFLAGS
9656   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9657   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9658   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9659     # The linker can only warn and ignore the option if not recognized
9660     # So say no if there are warnings
9661     if test -s conftest.err; then
9662       # Append any errors to the config.log.
9663       cat conftest.err 1>&5
9664       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9665       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9666       if diff conftest.exp conftest.er2 >/dev/null; then
9667         lt_cv_prog_compiler_static_works=yes
9668       fi
9669     else
9670       lt_cv_prog_compiler_static_works=yes
9671     fi
9672   fi
9673   $RM -r conftest*
9674   LDFLAGS=$save_LDFLAGS
9675 ;;
9676esac
9677fi
9678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9679printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9680
9681if test yes = "$lt_cv_prog_compiler_static_works"; then
9682    :
9683else
9684    lt_prog_compiler_static=
9685fi
9686
9687
9688
9689
9690
9691
9692
9693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9694printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9695if test ${lt_cv_prog_compiler_c_o+y}
9696then :
9697  printf %s "(cached) " >&6
9698else case e in #(
9699  e) lt_cv_prog_compiler_c_o=no
9700   $RM -r conftest 2>/dev/null
9701   mkdir conftest
9702   cd conftest
9703   mkdir out
9704   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705
9706   lt_compiler_flag="-o out/conftest2.$ac_objext"
9707   # Insert the option either (1) after the last *FLAGS variable, or
9708   # (2) before a word containing "conftest.", or (3) at the end.
9709   # Note that $ac_compile itself does not contain backslashes and begins
9710   # with a dollar sign (not a hyphen), so the echo should work correctly.
9711   lt_compile=`echo "$ac_compile" | $SED \
9712   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714   -e 's:$: $lt_compiler_flag:'`
9715   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9716   (eval "$lt_compile" 2>out/conftest.err)
9717   ac_status=$?
9718   cat out/conftest.err >&5
9719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9721   then
9722     # The compiler can only warn and ignore the option if not recognized
9723     # So say no if there are warnings
9724     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9725     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9726     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9727       lt_cv_prog_compiler_c_o=yes
9728     fi
9729   fi
9730   chmod u+w . 2>&5
9731   $RM conftest*
9732   # SGI C++ compiler will create directory out/ii_files/ for
9733   # template instantiation
9734   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9735   $RM out/* && rmdir out
9736   cd ..
9737   $RM -r conftest
9738   $RM conftest*
9739 ;;
9740esac
9741fi
9742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9743printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9744
9745
9746
9747
9748
9749
9750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9751printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9752if test ${lt_cv_prog_compiler_c_o+y}
9753then :
9754  printf %s "(cached) " >&6
9755else case e in #(
9756  e) lt_cv_prog_compiler_c_o=no
9757   $RM -r conftest 2>/dev/null
9758   mkdir conftest
9759   cd conftest
9760   mkdir out
9761   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9762
9763   lt_compiler_flag="-o out/conftest2.$ac_objext"
9764   # Insert the option either (1) after the last *FLAGS variable, or
9765   # (2) before a word containing "conftest.", or (3) at the end.
9766   # Note that $ac_compile itself does not contain backslashes and begins
9767   # with a dollar sign (not a hyphen), so the echo should work correctly.
9768   lt_compile=`echo "$ac_compile" | $SED \
9769   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9770   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9771   -e 's:$: $lt_compiler_flag:'`
9772   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9773   (eval "$lt_compile" 2>out/conftest.err)
9774   ac_status=$?
9775   cat out/conftest.err >&5
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9778   then
9779     # The compiler can only warn and ignore the option if not recognized
9780     # So say no if there are warnings
9781     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9782     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9783     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9784       lt_cv_prog_compiler_c_o=yes
9785     fi
9786   fi
9787   chmod u+w . 2>&5
9788   $RM conftest*
9789   # SGI C++ compiler will create directory out/ii_files/ for
9790   # template instantiation
9791   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9792   $RM out/* && rmdir out
9793   cd ..
9794   $RM -r conftest
9795   $RM conftest*
9796 ;;
9797esac
9798fi
9799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9800printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9801
9802
9803
9804
9805hard_links=nottested
9806if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9807  # do not overwrite the value of need_locks provided by the user
9808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9809printf %s "checking if we can lock with hard links... " >&6; }
9810  hard_links=yes
9811  $RM conftest*
9812  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9813  touch conftest.a
9814  ln conftest.a conftest.b 2>&5 || hard_links=no
9815  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9817printf "%s\n" "$hard_links" >&6; }
9818  if test no = "$hard_links"; then
9819    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9820printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9821    need_locks=warn
9822  fi
9823else
9824  need_locks=no
9825fi
9826
9827
9828
9829
9830
9831
9832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9833printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9834
9835  runpath_var=
9836  allow_undefined_flag=
9837  always_export_symbols=no
9838  archive_cmds=
9839  archive_expsym_cmds=
9840  compiler_needs_object=no
9841  enable_shared_with_static_runtimes=no
9842  export_dynamic_flag_spec=
9843  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9844  hardcode_automatic=no
9845  hardcode_direct=no
9846  hardcode_direct_absolute=no
9847  hardcode_libdir_flag_spec=
9848  hardcode_libdir_separator=
9849  hardcode_minus_L=no
9850  hardcode_shlibpath_var=unsupported
9851  inherit_rpath=no
9852  link_all_deplibs=unknown
9853  module_cmds=
9854  module_expsym_cmds=
9855  old_archive_from_new_cmds=
9856  old_archive_from_expsyms_cmds=
9857  thread_safe_flag_spec=
9858  whole_archive_flag_spec=
9859  # include_expsyms should be a list of space-separated symbols to be *always*
9860  # included in the symbol list
9861  include_expsyms=
9862  # exclude_expsyms can be an extended regexp of symbols to exclude
9863  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9864  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9865  # as well as any symbol that contains 'd'.
9866  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9867  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9868  # platforms (ab)use it in PIC code, but their linkers get confused if
9869  # the symbol is explicitly referenced.  Since portable code cannot
9870  # rely on this symbol name, it's probably fine to never include it in
9871  # preloaded symbol tables.
9872  # Exclude shared library initialization/finalization symbols.
9873  extract_expsyms_cmds=
9874
9875  case $host_os in
9876  cygwin* | mingw* | windows* | pw32* | cegcc*)
9877    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9878    # When not using gcc, we currently assume that we are using
9879    # Microsoft Visual C++ or Intel C++ Compiler.
9880    if test yes != "$GCC"; then
9881      with_gnu_ld=no
9882    fi
9883    ;;
9884  interix*)
9885    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9886    with_gnu_ld=yes
9887    ;;
9888  esac
9889
9890  ld_shlibs=yes
9891
9892  # On some targets, GNU ld is compatible enough with the native linker
9893  # that we're better off using the native interface for both.
9894  lt_use_gnu_ld_interface=no
9895  if test yes = "$with_gnu_ld"; then
9896    case $host_os in
9897      aix*)
9898	# The AIX port of GNU ld has always aspired to compatibility
9899	# with the native linker.  However, as the warning in the GNU ld
9900	# block says, versions before 2.19.5* couldn't really create working
9901	# shared libraries, regardless of the interface used.
9902	case `$LD -v 2>&1` in
9903	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9904	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9905	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9906	  *)
9907	    lt_use_gnu_ld_interface=yes
9908	    ;;
9909	esac
9910	;;
9911      *)
9912	lt_use_gnu_ld_interface=yes
9913	;;
9914    esac
9915  fi
9916
9917  if test yes = "$lt_use_gnu_ld_interface"; then
9918    # If archive_cmds runs LD, not CC, wlarc should be empty
9919    wlarc='$wl'
9920
9921    # Set some defaults for GNU ld with shared library support. These
9922    # are reset later if shared libraries are not supported. Putting them
9923    # here allows them to be overridden if necessary.
9924    runpath_var=LD_RUN_PATH
9925    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9926    export_dynamic_flag_spec='$wl--export-dynamic'
9927    # ancient GNU ld didn't support --whole-archive et. al.
9928    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9929      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9930    else
9931      whole_archive_flag_spec=
9932    fi
9933    supports_anon_versioning=no
9934    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9935      *GNU\ gold*) supports_anon_versioning=yes ;;
9936      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9937      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9938      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9939      *\ 2.11.*) ;; # other 2.11 versions
9940      *) supports_anon_versioning=yes ;;
9941    esac
9942
9943    # See if GNU ld supports shared libraries.
9944    case $host_os in
9945    aix[3-9]*)
9946      # On AIX/PPC, the GNU linker is very broken
9947      if test ia64 != "$host_cpu"; then
9948	ld_shlibs=no
9949	cat <<_LT_EOF 1>&2
9950
9951*** Warning: the GNU linker, at least up to release 2.19, is reported
9952*** to be unable to reliably create shared libraries on AIX.
9953*** Therefore, libtool is disabling shared libraries support.  If you
9954*** really care for shared libraries, you may want to install binutils
9955*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9956*** You will then need to restart the configuration process.
9957
9958_LT_EOF
9959      fi
9960      ;;
9961
9962    amigaos*)
9963      case $host_cpu in
9964      powerpc)
9965            # see comment about AmigaOS4 .so support
9966            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9967            archive_expsym_cmds=''
9968        ;;
9969      m68k)
9970            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)'
9971            hardcode_libdir_flag_spec='-L$libdir'
9972            hardcode_minus_L=yes
9973        ;;
9974      esac
9975      ;;
9976
9977    beos*)
9978      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9979	allow_undefined_flag=unsupported
9980	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9981	# support --undefined.  This deserves some investigation.  FIXME
9982	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9983      else
9984	ld_shlibs=no
9985      fi
9986      ;;
9987
9988    cygwin* | mingw* | windows* | pw32* | cegcc*)
9989      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9990      # as there is no search path for DLLs.
9991      hardcode_libdir_flag_spec='-L$libdir'
9992      export_dynamic_flag_spec='$wl--export-all-symbols'
9993      allow_undefined_flag=unsupported
9994      always_export_symbols=no
9995      enable_shared_with_static_runtimes=yes
9996      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'
9997      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9998      file_list_spec='@'
9999
10000      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10001        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10002	# If the export-symbols file already is a .def file, use it as
10003	# is; otherwise, prepend EXPORTS...
10004	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10005          cp $export_symbols $output_objdir/$soname.def;
10006        else
10007          echo EXPORTS > $output_objdir/$soname.def;
10008          cat $export_symbols >> $output_objdir/$soname.def;
10009        fi~
10010        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10011      else
10012	ld_shlibs=no
10013      fi
10014      ;;
10015
10016    haiku*)
10017      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10018      link_all_deplibs=no
10019      ;;
10020
10021    os2*)
10022      hardcode_libdir_flag_spec='-L$libdir'
10023      hardcode_minus_L=yes
10024      allow_undefined_flag=unsupported
10025      shrext_cmds=.dll
10026      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10027	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10028	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10029	$ECHO EXPORTS >> $output_objdir/$libname.def~
10030	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10031	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10032	emximp -o $lib $output_objdir/$libname.def'
10033      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10034	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10035	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10036	$ECHO EXPORTS >> $output_objdir/$libname.def~
10037	prefix_cmds="$SED"~
10038	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10039	  prefix_cmds="$prefix_cmds -e 1d";
10040	fi~
10041	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10042	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10043	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10044	emximp -o $lib $output_objdir/$libname.def'
10045      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10046      enable_shared_with_static_runtimes=yes
10047      file_list_spec='@'
10048      ;;
10049
10050    interix[3-9]*)
10051      hardcode_direct=no
10052      hardcode_shlibpath_var=no
10053      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10054      export_dynamic_flag_spec='$wl-E'
10055      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10056      # Instead, shared libraries are loaded at an image base (0x10000000 by
10057      # default) and relocated if they conflict, which is a slow very memory
10058      # consuming and fragmenting process.  To avoid this, we pick a random,
10059      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10060      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10061      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10062      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'
10063      ;;
10064
10065    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10066      tmp_diet=no
10067      if test linux-dietlibc = "$host_os"; then
10068	case $cc_basename in
10069	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10070	esac
10071      fi
10072      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10073	 && test no = "$tmp_diet"
10074      then
10075	tmp_addflag=' $pic_flag'
10076	tmp_sharedflag='-shared'
10077	case $cc_basename,$host_cpu in
10078        pgcc*)				# Portland Group C compiler
10079	  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'
10080	  tmp_addflag=' $pic_flag'
10081	  ;;
10082	pgf77* | pgf90* | pgf95* | pgfortran*)
10083					# Portland Group f77 and f90 compilers
10084	  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'
10085	  tmp_addflag=' $pic_flag -Mnomain' ;;
10086	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10087	  tmp_addflag=' -i_dynamic' ;;
10088	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10089	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10090	ifc* | ifort*)			# Intel Fortran compiler
10091	  tmp_addflag=' -nofor_main' ;;
10092	lf95*)				# Lahey Fortran 8.1
10093	  whole_archive_flag_spec=
10094	  tmp_sharedflag='--shared' ;;
10095        nagfor*)                        # NAGFOR 5.3
10096          tmp_sharedflag='-Wl,-shared' ;;
10097	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10098	  tmp_sharedflag='-qmkshrobj'
10099	  tmp_addflag= ;;
10100	nvcc*)	# Cuda Compiler Driver 2.2
10101	  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'
10102	  compiler_needs_object=yes
10103	  ;;
10104	esac
10105	case `$CC -V 2>&1 | $SED 5q` in
10106	*Sun\ C*)			# Sun C 5.9
10107	  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'
10108	  compiler_needs_object=yes
10109	  tmp_sharedflag='-G' ;;
10110	*Sun\ F*)			# Sun Fortran 8.3
10111	  tmp_sharedflag='-G' ;;
10112	esac
10113	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10114
10115        if test yes = "$supports_anon_versioning"; then
10116          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10117            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10118            echo "local: *; };" >> $output_objdir/$libname.ver~
10119            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10120        fi
10121
10122	case $cc_basename in
10123	tcc*)
10124	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10125	  export_dynamic_flag_spec='-rdynamic'
10126	  ;;
10127	xlf* | bgf* | bgxlf* | mpixlf*)
10128	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10129	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10130	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10131	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10132	  if test yes = "$supports_anon_versioning"; then
10133	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10134              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10135              echo "local: *; };" >> $output_objdir/$libname.ver~
10136              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10137	  fi
10138	  ;;
10139	esac
10140      else
10141        ld_shlibs=no
10142      fi
10143      ;;
10144
10145    *-mlibc)
10146	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10147	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148      ;;
10149
10150    netbsd* | netbsdelf*-gnu)
10151      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10152	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10153	wlarc=
10154      else
10155	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10156	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10157      fi
10158      ;;
10159
10160    solaris*)
10161      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10162	ld_shlibs=no
10163	cat <<_LT_EOF 1>&2
10164
10165*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10166*** create shared libraries on Solaris systems.  Therefore, libtool
10167*** is disabling shared libraries support.  We urge you to upgrade GNU
10168*** binutils to release 2.9.1 or newer.  Another option is to modify
10169*** your PATH or compiler configuration so that the native linker is
10170*** used, and then restart.
10171
10172_LT_EOF
10173      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10174	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10175	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10176      else
10177	ld_shlibs=no
10178      fi
10179      ;;
10180
10181    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10182      case `$LD -v 2>&1` in
10183        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10184	ld_shlibs=no
10185	cat <<_LT_EOF 1>&2
10186
10187*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10188*** reliably create shared libraries on SCO systems.  Therefore, libtool
10189*** is disabling shared libraries support.  We urge you to upgrade GNU
10190*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10191*** your PATH or compiler configuration so that the native linker is
10192*** used, and then restart.
10193
10194_LT_EOF
10195	;;
10196	*)
10197	  # For security reasons, it is highly recommended that you always
10198	  # use absolute paths for naming shared libraries, and exclude the
10199	  # DT_RUNPATH tag from executables and libraries.  But doing so
10200	  # requires that you compile everything twice, which is a pain.
10201	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10203	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10204	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10205	  else
10206	    ld_shlibs=no
10207	  fi
10208	;;
10209      esac
10210      ;;
10211
10212    sunos4*)
10213      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10214      wlarc=
10215      hardcode_direct=yes
10216      hardcode_shlibpath_var=no
10217      ;;
10218
10219    *)
10220      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10221	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10222	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10223      else
10224	ld_shlibs=no
10225      fi
10226      ;;
10227    esac
10228
10229    if test no = "$ld_shlibs"; then
10230      runpath_var=
10231      hardcode_libdir_flag_spec=
10232      export_dynamic_flag_spec=
10233      whole_archive_flag_spec=
10234    fi
10235  else
10236    # PORTME fill in a description of your system's linker (not GNU ld)
10237    case $host_os in
10238    aix3*)
10239      allow_undefined_flag=unsupported
10240      always_export_symbols=yes
10241      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'
10242      # Note: this linker hardcodes the directories in LIBPATH if there
10243      # are no directories specified by -L.
10244      hardcode_minus_L=yes
10245      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10246	# Neither direct hardcoding nor static linking is supported with a
10247	# broken collect2.
10248	hardcode_direct=unsupported
10249      fi
10250      ;;
10251
10252    aix[4-9]*)
10253      if test ia64 = "$host_cpu"; then
10254	# On IA64, the linker does run time linking by default, so we don't
10255	# have to do anything special.
10256	aix_use_runtimelinking=no
10257	exp_sym_flag='-Bexport'
10258	no_entry_flag=
10259      else
10260	# If we're using GNU nm, then we don't want the "-C" option.
10261	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10262	# Without the "-l" option, or with the "-B" option, AIX nm treats
10263	# weak defined symbols like other global defined symbols, whereas
10264	# GNU nm marks them as "W".
10265	# While the 'weak' keyword is ignored in the Export File, we need
10266	# it in the Import File for the 'aix-soname' feature, so we have
10267	# to replace the "-B" option with "-P" for AIX nm.
10268	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10269	  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'
10270	else
10271	  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'
10272	fi
10273	aix_use_runtimelinking=no
10274
10275	# Test if we are trying to use run time linking or normal
10276	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10277	# have runtime linking enabled, and use it for executables.
10278	# For shared libraries, we enable/disable runtime linking
10279	# depending on the kind of the shared library created -
10280	# when "with_aix_soname,aix_use_runtimelinking" is:
10281	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10282	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10283	#            lib.a           static archive
10284	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10285	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10286	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10287	#            lib.a(lib.so.V) shared, rtl:no
10288	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10289	#            lib.a           static archive
10290	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10291	  for ld_flag in $LDFLAGS; do
10292	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10293	    aix_use_runtimelinking=yes
10294	    break
10295	  fi
10296	  done
10297	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10298	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10299	    # so we don't have lib.a shared libs to link our executables.
10300	    # We have to force runtime linking in this case.
10301	    aix_use_runtimelinking=yes
10302	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10303	  fi
10304	  ;;
10305	esac
10306
10307	exp_sym_flag='-bexport'
10308	no_entry_flag='-bnoentry'
10309      fi
10310
10311      # When large executables or shared objects are built, AIX ld can
10312      # have problems creating the table of contents.  If linking a library
10313      # or program results in "error TOC overflow" add -mminimal-toc to
10314      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10315      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10316
10317      archive_cmds=''
10318      hardcode_direct=yes
10319      hardcode_direct_absolute=yes
10320      hardcode_libdir_separator=':'
10321      link_all_deplibs=yes
10322      file_list_spec='$wl-f,'
10323      case $with_aix_soname,$aix_use_runtimelinking in
10324      aix,*) ;; # traditional, no import file
10325      svr4,* | *,yes) # use import file
10326	# The Import File defines what to hardcode.
10327	hardcode_direct=no
10328	hardcode_direct_absolute=no
10329	;;
10330      esac
10331
10332      if test yes = "$GCC"; then
10333	case $host_os in aix4.[012]|aix4.[012].*)
10334	# We only want to do this on AIX 4.2 and lower, the check
10335	# below for broken collect2 doesn't work under 4.3+
10336	  collect2name=`$CC -print-prog-name=collect2`
10337	  if test -f "$collect2name" &&
10338	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10339	  then
10340	  # We have reworked collect2
10341	  :
10342	  else
10343	  # We have old collect2
10344	  hardcode_direct=unsupported
10345	  # It fails to find uninstalled libraries when the uninstalled
10346	  # path is not listed in the libpath.  Setting hardcode_minus_L
10347	  # to unsupported forces relinking
10348	  hardcode_minus_L=yes
10349	  hardcode_libdir_flag_spec='-L$libdir'
10350	  hardcode_libdir_separator=
10351	  fi
10352	  ;;
10353	esac
10354	shared_flag='-shared'
10355	if test yes = "$aix_use_runtimelinking"; then
10356	  shared_flag="$shared_flag "'$wl-G'
10357	fi
10358	# Need to ensure runtime linking is disabled for the traditional
10359	# shared library, or the linker may eventually find shared libraries
10360	# /with/ Import File - we do not want to mix them.
10361	shared_flag_aix='-shared'
10362	shared_flag_svr4='-shared $wl-G'
10363      else
10364	# not using gcc
10365	if test ia64 = "$host_cpu"; then
10366	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10367	# chokes on -Wl,-G. The following line is correct:
10368	  shared_flag='-G'
10369	else
10370	  if test yes = "$aix_use_runtimelinking"; then
10371	    shared_flag='$wl-G'
10372	  else
10373	    shared_flag='$wl-bM:SRE'
10374	  fi
10375	  shared_flag_aix='$wl-bM:SRE'
10376	  shared_flag_svr4='$wl-G'
10377	fi
10378      fi
10379
10380      export_dynamic_flag_spec='$wl-bexpall'
10381      # It seems that -bexpall does not export symbols beginning with
10382      # underscore (_), so it is better to generate a list of symbols to export.
10383      always_export_symbols=yes
10384      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10385	# Warning - without using the other runtime loading flags (-brtl),
10386	# -berok will link without error, but may produce a broken library.
10387	allow_undefined_flag='-berok'
10388        # Determine the default libpath from the value encoded in an
10389        # empty executable.
10390        if test set = "${lt_cv_aix_libpath+set}"; then
10391  aix_libpath=$lt_cv_aix_libpath
10392else
10393  if test ${lt_cv_aix_libpath_+y}
10394then :
10395  printf %s "(cached) " >&6
10396else case e in #(
10397  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399
10400int
10401main (void)
10402{
10403
10404  ;
10405  return 0;
10406}
10407_ACEOF
10408if ac_fn_c_try_link "$LINENO"
10409then :
10410
10411  lt_aix_libpath_sed='
10412      /Import File Strings/,/^$/ {
10413	  /^0/ {
10414	      s/^0  *\([^ ]*\) *$/\1/
10415	      p
10416	  }
10417      }'
10418  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10419  # Check for a 64-bit object if we didn't find anything.
10420  if test -z "$lt_cv_aix_libpath_"; then
10421    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422  fi
10423fi
10424rm -f core conftest.err conftest.$ac_objext conftest.beam \
10425    conftest$ac_exeext conftest.$ac_ext
10426  if test -z "$lt_cv_aix_libpath_"; then
10427    lt_cv_aix_libpath_=/usr/lib:/lib
10428  fi
10429   ;;
10430esac
10431fi
10432
10433  aix_libpath=$lt_cv_aix_libpath_
10434fi
10435
10436        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10437        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
10438      else
10439	if test ia64 = "$host_cpu"; then
10440	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10441	  allow_undefined_flag="-z nodefs"
10442	  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"
10443	else
10444	 # Determine the default libpath from the value encoded in an
10445	 # empty executable.
10446	 if test set = "${lt_cv_aix_libpath+set}"; then
10447  aix_libpath=$lt_cv_aix_libpath
10448else
10449  if test ${lt_cv_aix_libpath_+y}
10450then :
10451  printf %s "(cached) " >&6
10452else case e in #(
10453  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454/* end confdefs.h.  */
10455
10456int
10457main (void)
10458{
10459
10460  ;
10461  return 0;
10462}
10463_ACEOF
10464if ac_fn_c_try_link "$LINENO"
10465then :
10466
10467  lt_aix_libpath_sed='
10468      /Import File Strings/,/^$/ {
10469	  /^0/ {
10470	      s/^0  *\([^ ]*\) *$/\1/
10471	      p
10472	  }
10473      }'
10474  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10475  # Check for a 64-bit object if we didn't find anything.
10476  if test -z "$lt_cv_aix_libpath_"; then
10477    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478  fi
10479fi
10480rm -f core conftest.err conftest.$ac_objext conftest.beam \
10481    conftest$ac_exeext conftest.$ac_ext
10482  if test -z "$lt_cv_aix_libpath_"; then
10483    lt_cv_aix_libpath_=/usr/lib:/lib
10484  fi
10485   ;;
10486esac
10487fi
10488
10489  aix_libpath=$lt_cv_aix_libpath_
10490fi
10491
10492	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10493	  # Warning - without using the other run time loading flags,
10494	  # -berok will link without error, but may produce a broken library.
10495	  no_undefined_flag=' $wl-bernotok'
10496	  allow_undefined_flag=' $wl-berok'
10497	  if test yes = "$with_gnu_ld"; then
10498	    # We only use this code for GNU lds that support --whole-archive.
10499	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10500	  else
10501	    # Exported symbols can be pulled into shared objects from archives
10502	    whole_archive_flag_spec='$convenience'
10503	  fi
10504	  archive_cmds_need_lc=yes
10505	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10506	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10507	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10508	  if test svr4 != "$with_aix_soname"; then
10509	    # This is similar to how AIX traditionally builds its shared libraries.
10510	    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'
10511	  fi
10512	  if test aix != "$with_aix_soname"; then
10513	    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'
10514	  else
10515	    # used by -dlpreopen to get the symbols
10516	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10517	  fi
10518	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10519	fi
10520      fi
10521      ;;
10522
10523    amigaos*)
10524      case $host_cpu in
10525      powerpc)
10526            # see comment about AmigaOS4 .so support
10527            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10528            archive_expsym_cmds=''
10529        ;;
10530      m68k)
10531            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)'
10532            hardcode_libdir_flag_spec='-L$libdir'
10533            hardcode_minus_L=yes
10534        ;;
10535      esac
10536      ;;
10537
10538    bsdi[45]*)
10539      export_dynamic_flag_spec=-rdynamic
10540      ;;
10541
10542    cygwin* | mingw* | windows* | pw32* | cegcc*)
10543      # When not using gcc, we currently assume that we are using
10544      # Microsoft Visual C++ or Intel C++ Compiler.
10545      # hardcode_libdir_flag_spec is actually meaningless, as there is
10546      # no search path for DLLs.
10547      case $cc_basename in
10548      cl* | icl*)
10549	# Native MSVC or ICC
10550	hardcode_libdir_flag_spec=' '
10551	allow_undefined_flag=unsupported
10552	always_export_symbols=yes
10553	file_list_spec='@'
10554	# Tell ltmain to make .lib files, not .a files.
10555	libext=lib
10556	# Tell ltmain to make .dll files, not .so files.
10557	shrext_cmds=.dll
10558	# FIXME: Setting linknames here is a bad hack.
10559	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10560	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10561            cp "$export_symbols" "$output_objdir/$soname.def";
10562            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10563          else
10564            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10565          fi~
10566          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10567          linknames='
10568	# The linker will not automatically build a static lib if we build a DLL.
10569	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10570	enable_shared_with_static_runtimes=yes
10571	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10572	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10573	# Don't use ranlib
10574	old_postinstall_cmds='chmod 644 $oldlib'
10575	postlink_cmds='lt_outputfile="@OUTPUT@"~
10576          lt_tool_outputfile="@TOOL_OUTPUT@"~
10577          case $lt_outputfile in
10578            *.exe|*.EXE) ;;
10579            *)
10580              lt_outputfile=$lt_outputfile.exe
10581              lt_tool_outputfile=$lt_tool_outputfile.exe
10582              ;;
10583          esac~
10584          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10585            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10586            $RM "$lt_outputfile.manifest";
10587          fi'
10588	;;
10589      *)
10590	# Assume MSVC and ICC wrapper
10591	hardcode_libdir_flag_spec=' '
10592	allow_undefined_flag=unsupported
10593	# Tell ltmain to make .lib files, not .a files.
10594	libext=lib
10595	# Tell ltmain to make .dll files, not .so files.
10596	shrext_cmds=.dll
10597	# FIXME: Setting linknames here is a bad hack.
10598	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10599	# The linker will automatically build a .lib file if we build a DLL.
10600	old_archive_from_new_cmds='true'
10601	# FIXME: Should let the user specify the lib program.
10602	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10603	enable_shared_with_static_runtimes=yes
10604	;;
10605      esac
10606      ;;
10607
10608    darwin* | rhapsody*)
10609
10610
10611  archive_cmds_need_lc=no
10612  hardcode_direct=no
10613  hardcode_automatic=yes
10614  hardcode_shlibpath_var=unsupported
10615  if test yes = "$lt_cv_ld_force_load"; then
10616    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\"`'
10617
10618  else
10619    whole_archive_flag_spec=''
10620  fi
10621  link_all_deplibs=yes
10622  allow_undefined_flag=$_lt_dar_allow_undefined
10623  case $cc_basename in
10624     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10625     *) _lt_dar_can_shared=$GCC ;;
10626  esac
10627  if test yes = "$_lt_dar_can_shared"; then
10628    output_verbose_link_cmd=func_echo_all
10629    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10630    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10631    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"
10632    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"
10633
10634  else
10635  ld_shlibs=no
10636  fi
10637
10638      ;;
10639
10640    dgux*)
10641      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642      hardcode_libdir_flag_spec='-L$libdir'
10643      hardcode_shlibpath_var=no
10644      ;;
10645
10646    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10647    # support.  Future versions do this automatically, but an explicit c++rt0.o
10648    # does not break anything, and helps significantly (at the cost of a little
10649    # extra space).
10650    freebsd2.2*)
10651      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10652      hardcode_libdir_flag_spec='-R$libdir'
10653      hardcode_direct=yes
10654      hardcode_shlibpath_var=no
10655      ;;
10656
10657    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10658    freebsd2.*)
10659      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10660      hardcode_direct=yes
10661      hardcode_minus_L=yes
10662      hardcode_shlibpath_var=no
10663      ;;
10664
10665    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10666    freebsd* | dragonfly* | midnightbsd*)
10667      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10668      hardcode_libdir_flag_spec='-R$libdir'
10669      hardcode_direct=yes
10670      hardcode_shlibpath_var=no
10671      ;;
10672
10673    hpux9*)
10674      if test yes = "$GCC"; then
10675	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'
10676      else
10677	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'
10678      fi
10679      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10680      hardcode_libdir_separator=:
10681      hardcode_direct=yes
10682
10683      # hardcode_minus_L: Not really in the search PATH,
10684      # but as the default location of the library.
10685      hardcode_minus_L=yes
10686      export_dynamic_flag_spec='$wl-E'
10687      ;;
10688
10689    hpux10*)
10690      if test yes,no = "$GCC,$with_gnu_ld"; then
10691	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10692      else
10693	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10694      fi
10695      if test no = "$with_gnu_ld"; then
10696	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10697	hardcode_libdir_separator=:
10698	hardcode_direct=yes
10699	hardcode_direct_absolute=yes
10700	export_dynamic_flag_spec='$wl-E'
10701	# hardcode_minus_L: Not really in the search PATH,
10702	# but as the default location of the library.
10703	hardcode_minus_L=yes
10704      fi
10705      ;;
10706
10707    hpux11*)
10708      if test yes,no = "$GCC,$with_gnu_ld"; then
10709	case $host_cpu in
10710	hppa*64*)
10711	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10712	  ;;
10713	ia64*)
10714	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10715	  ;;
10716	*)
10717	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10718	  ;;
10719	esac
10720      else
10721	case $host_cpu in
10722	hppa*64*)
10723	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10724	  ;;
10725	ia64*)
10726	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10727	  ;;
10728	*)
10729
10730	  # Older versions of the 11.00 compiler do not understand -b yet
10731	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10732	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10733printf %s "checking if $CC understands -b... " >&6; }
10734if test ${lt_cv_prog_compiler__b+y}
10735then :
10736  printf %s "(cached) " >&6
10737else case e in #(
10738  e) lt_cv_prog_compiler__b=no
10739   save_LDFLAGS=$LDFLAGS
10740   LDFLAGS="$LDFLAGS -b"
10741   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10742   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10743     # The linker can only warn and ignore the option if not recognized
10744     # So say no if there are warnings
10745     if test -s conftest.err; then
10746       # Append any errors to the config.log.
10747       cat conftest.err 1>&5
10748       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10749       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10750       if diff conftest.exp conftest.er2 >/dev/null; then
10751         lt_cv_prog_compiler__b=yes
10752       fi
10753     else
10754       lt_cv_prog_compiler__b=yes
10755     fi
10756   fi
10757   $RM -r conftest*
10758   LDFLAGS=$save_LDFLAGS
10759 ;;
10760esac
10761fi
10762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10763printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10764
10765if test yes = "$lt_cv_prog_compiler__b"; then
10766    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10767else
10768    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10769fi
10770
10771	  ;;
10772	esac
10773      fi
10774      if test no = "$with_gnu_ld"; then
10775	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10776	hardcode_libdir_separator=:
10777
10778	case $host_cpu in
10779	hppa*64*|ia64*)
10780	  hardcode_direct=no
10781	  hardcode_shlibpath_var=no
10782	  ;;
10783	*)
10784	  hardcode_direct=yes
10785	  hardcode_direct_absolute=yes
10786	  export_dynamic_flag_spec='$wl-E'
10787
10788	  # hardcode_minus_L: Not really in the search PATH,
10789	  # but as the default location of the library.
10790	  hardcode_minus_L=yes
10791	  ;;
10792	esac
10793      fi
10794      ;;
10795
10796    irix5* | irix6* | nonstopux*)
10797      if test yes = "$GCC"; then
10798	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'
10799	# Try to use the -exported_symbol ld option, if it does not
10800	# work, assume that -exports_file does not work either and
10801	# implicitly export all symbols.
10802	# This should be the same for all languages, so no per-tag cache variable.
10803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10804printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10805if test ${lt_cv_irix_exported_symbol+y}
10806then :
10807  printf %s "(cached) " >&6
10808else case e in #(
10809  e) save_LDFLAGS=$LDFLAGS
10810	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10811	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812/* end confdefs.h.  */
10813int foo (void) { return 0; }
10814_ACEOF
10815if ac_fn_c_try_link "$LINENO"
10816then :
10817  lt_cv_irix_exported_symbol=yes
10818else case e in #(
10819  e) lt_cv_irix_exported_symbol=no ;;
10820esac
10821fi
10822rm -f core conftest.err conftest.$ac_objext conftest.beam \
10823    conftest$ac_exeext conftest.$ac_ext
10824           LDFLAGS=$save_LDFLAGS ;;
10825esac
10826fi
10827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10828printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10829	if test yes = "$lt_cv_irix_exported_symbol"; then
10830          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'
10831	fi
10832      else
10833	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'
10834	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'
10835      fi
10836      archive_cmds_need_lc='no'
10837      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10838      hardcode_libdir_separator=:
10839      inherit_rpath=yes
10840      link_all_deplibs=yes
10841      ;;
10842
10843    linux*)
10844      case $cc_basename in
10845      tcc*)
10846	# Fabrice Bellard et al's Tiny C Compiler
10847	ld_shlibs=yes
10848	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10849	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10850	;;
10851      esac
10852      ;;
10853
10854    *-mlibc)
10855      ;;
10856
10857    netbsd* | netbsdelf*-gnu)
10858      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10859	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10860      else
10861	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10862      fi
10863      hardcode_libdir_flag_spec='-R$libdir'
10864      hardcode_direct=yes
10865      hardcode_shlibpath_var=no
10866      ;;
10867
10868    newsos6)
10869      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870      hardcode_direct=yes
10871      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10872      hardcode_libdir_separator=:
10873      hardcode_shlibpath_var=no
10874      ;;
10875
10876    *nto* | *qnx*)
10877      ;;
10878
10879    openbsd*)
10880      if test -f /usr/libexec/ld.so; then
10881	hardcode_direct=yes
10882	hardcode_shlibpath_var=no
10883	hardcode_direct_absolute=yes
10884	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10885	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10886	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10887	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10888	  export_dynamic_flag_spec='$wl-E'
10889	else
10890	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10891	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10892	fi
10893      else
10894	ld_shlibs=no
10895      fi
10896      ;;
10897
10898    os2*)
10899      hardcode_libdir_flag_spec='-L$libdir'
10900      hardcode_minus_L=yes
10901      allow_undefined_flag=unsupported
10902      shrext_cmds=.dll
10903      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10904	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10905	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10906	$ECHO EXPORTS >> $output_objdir/$libname.def~
10907	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10908	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10909	emximp -o $lib $output_objdir/$libname.def'
10910      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10911	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10912	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10913	$ECHO EXPORTS >> $output_objdir/$libname.def~
10914	prefix_cmds="$SED"~
10915	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10916	  prefix_cmds="$prefix_cmds -e 1d";
10917	fi~
10918	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10919	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10920	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10921	emximp -o $lib $output_objdir/$libname.def'
10922      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10923      enable_shared_with_static_runtimes=yes
10924      file_list_spec='@'
10925      ;;
10926
10927    osf3*)
10928      if test yes = "$GCC"; then
10929	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10930	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'
10931      else
10932	allow_undefined_flag=' -expect_unresolved \*'
10933	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'
10934      fi
10935      archive_cmds_need_lc='no'
10936      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10937      hardcode_libdir_separator=:
10938      ;;
10939
10940    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10941      if test yes = "$GCC"; then
10942	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10943	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'
10944	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10945      else
10946	allow_undefined_flag=' -expect_unresolved \*'
10947	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'
10948	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~
10949          $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'
10950
10951	# Both c and cxx compiler support -rpath directly
10952	hardcode_libdir_flag_spec='-rpath $libdir'
10953      fi
10954      archive_cmds_need_lc='no'
10955      hardcode_libdir_separator=:
10956      ;;
10957
10958    serenity*)
10959      ;;
10960
10961    solaris*)
10962      no_undefined_flag=' -z defs'
10963      if test yes = "$GCC"; then
10964	wlarc='$wl'
10965	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10966	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10967          $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'
10968      else
10969	case `$CC -V 2>&1` in
10970	*"Compilers 5.0"*)
10971	  wlarc=''
10972	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10974            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10975	  ;;
10976	*)
10977	  wlarc='$wl'
10978	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10979	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10980            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10981	  ;;
10982	esac
10983      fi
10984      hardcode_libdir_flag_spec='-R$libdir'
10985      hardcode_shlibpath_var=no
10986      case $host_os in
10987      solaris2.[0-5] | solaris2.[0-5].*) ;;
10988      *)
10989	# The compiler driver will combine and reorder linker options,
10990	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10991	# but is careful enough not to reorder.
10992	# Supported since Solaris 2.6 (maybe 2.5.1?)
10993	if test yes = "$GCC"; then
10994	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10995	else
10996	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10997	fi
10998	;;
10999      esac
11000      link_all_deplibs=yes
11001      ;;
11002
11003    sunos4*)
11004      if test sequent = "$host_vendor"; then
11005	# Use $CC to link under sequent, because it throws in some extra .o
11006	# files that make .init and .fini sections work.
11007	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11008      else
11009	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11010      fi
11011      hardcode_libdir_flag_spec='-L$libdir'
11012      hardcode_direct=yes
11013      hardcode_minus_L=yes
11014      hardcode_shlibpath_var=no
11015      ;;
11016
11017    sysv4)
11018      case $host_vendor in
11019	sni)
11020	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11021	  hardcode_direct=yes # is this really true???
11022	;;
11023	siemens)
11024	  ## LD is ld it makes a PLAMLIB
11025	  ## CC just makes a GrossModule.
11026	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11027	  reload_cmds='$CC -r -o $output$reload_objs'
11028	  hardcode_direct=no
11029        ;;
11030	motorola)
11031	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11033	;;
11034      esac
11035      runpath_var='LD_RUN_PATH'
11036      hardcode_shlibpath_var=no
11037      ;;
11038
11039    sysv4.3*)
11040      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041      hardcode_shlibpath_var=no
11042      export_dynamic_flag_spec='-Bexport'
11043      ;;
11044
11045    sysv4*MP*)
11046      if test -d /usr/nec; then
11047	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11048	hardcode_shlibpath_var=no
11049	runpath_var=LD_RUN_PATH
11050	hardcode_runpath_var=yes
11051	ld_shlibs=yes
11052      fi
11053      ;;
11054
11055    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11056      no_undefined_flag='$wl-z,text'
11057      archive_cmds_need_lc=no
11058      hardcode_shlibpath_var=no
11059      runpath_var='LD_RUN_PATH'
11060
11061      if test yes = "$GCC"; then
11062	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11064      else
11065	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067      fi
11068      ;;
11069
11070    sysv5* | sco3.2v5* | sco5v6*)
11071      # Note: We CANNOT use -z defs as we might desire, because we do not
11072      # link with -lc, and that would cause any symbols used from libc to
11073      # always be unresolved, which means just about no library would
11074      # ever link correctly.  If we're not using GNU ld we use -z text
11075      # though, which does catch some bad symbols but isn't as heavy-handed
11076      # as -z defs.
11077      no_undefined_flag='$wl-z,text'
11078      allow_undefined_flag='$wl-z,nodefs'
11079      archive_cmds_need_lc=no
11080      hardcode_shlibpath_var=no
11081      hardcode_libdir_flag_spec='$wl-R,$libdir'
11082      hardcode_libdir_separator=':'
11083      link_all_deplibs=yes
11084      export_dynamic_flag_spec='$wl-Bexport'
11085      runpath_var='LD_RUN_PATH'
11086
11087      if test yes = "$GCC"; then
11088	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11089	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11090      else
11091	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11092	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11093      fi
11094      ;;
11095
11096    uts4*)
11097      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11098      hardcode_libdir_flag_spec='-L$libdir'
11099      hardcode_shlibpath_var=no
11100      ;;
11101
11102    *)
11103      ld_shlibs=no
11104      ;;
11105    esac
11106
11107    if test sni = "$host_vendor"; then
11108      case $host in
11109      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11110	export_dynamic_flag_spec='$wl-Blargedynsym'
11111	;;
11112      esac
11113    fi
11114  fi
11115
11116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11117printf "%s\n" "$ld_shlibs" >&6; }
11118test no = "$ld_shlibs" && can_build_shared=no
11119
11120with_gnu_ld=$with_gnu_ld
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136#
11137# Do we need to explicitly link libc?
11138#
11139case "x$archive_cmds_need_lc" in
11140x|xyes)
11141  # Assume -lc should be added
11142  archive_cmds_need_lc=yes
11143
11144  if test yes,yes = "$GCC,$enable_shared"; then
11145    case $archive_cmds in
11146    *'~'*)
11147      # FIXME: we may have to deal with multi-command sequences.
11148      ;;
11149    '$CC '*)
11150      # Test whether the compiler implicitly links with -lc since on some
11151      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11152      # to ld, don't add -lc before -lgcc.
11153      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11154printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11155if test ${lt_cv_archive_cmds_need_lc+y}
11156then :
11157  printf %s "(cached) " >&6
11158else case e in #(
11159  e) $RM conftest*
11160	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11161
11162	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11163  (eval $ac_compile) 2>&5
11164  ac_status=$?
11165  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11166  test $ac_status = 0; } 2>conftest.err; then
11167	  soname=conftest
11168	  lib=conftest
11169	  libobjs=conftest.$ac_objext
11170	  deplibs=
11171	  wl=$lt_prog_compiler_wl
11172	  pic_flag=$lt_prog_compiler_pic
11173	  compiler_flags=-v
11174	  linker_flags=-v
11175	  verstring=
11176	  output_objdir=.
11177	  libname=conftest
11178	  lt_save_allow_undefined_flag=$allow_undefined_flag
11179	  allow_undefined_flag=
11180	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11181  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11182  ac_status=$?
11183  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184  test $ac_status = 0; }
11185	  then
11186	    lt_cv_archive_cmds_need_lc=no
11187	  else
11188	    lt_cv_archive_cmds_need_lc=yes
11189	  fi
11190	  allow_undefined_flag=$lt_save_allow_undefined_flag
11191	else
11192	  cat conftest.err 1>&5
11193	fi
11194	$RM conftest*
11195	 ;;
11196esac
11197fi
11198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11199printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11200      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11201      ;;
11202    esac
11203  fi
11204  ;;
11205esac
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11359printf %s "checking dynamic linker characteristics... " >&6; }
11360
11361if test yes = "$GCC"; then
11362  case $host_os in
11363    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11364    *) lt_awk_arg='/^libraries:/' ;;
11365  esac
11366  case $host_os in
11367    mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11368    *) lt_sed_strip_eq='s|=/|/|g' ;;
11369  esac
11370  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11371  case $lt_search_path_spec in
11372  *\;*)
11373    # if the path contains ";" then we assume it to be the separator
11374    # otherwise default to the standard path separator (i.e. ":") - it is
11375    # assumed that no part of a normal pathname contains ";" but that should
11376    # okay in the real world where ";" in dirpaths is itself problematic.
11377    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11378    ;;
11379  *)
11380    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11381    ;;
11382  esac
11383  # Ok, now we have the path, separated by spaces, we can step through it
11384  # and add multilib dir if necessary...
11385  lt_tmp_lt_search_path_spec=
11386  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11387  # ...but if some path component already ends with the multilib dir we assume
11388  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11389  case "$lt_multi_os_dir; $lt_search_path_spec " in
11390  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11391    lt_multi_os_dir=
11392    ;;
11393  esac
11394  for lt_sys_path in $lt_search_path_spec; do
11395    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11396      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11397    elif test -n "$lt_multi_os_dir"; then
11398      test -d "$lt_sys_path" && \
11399	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11400    fi
11401  done
11402  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11403BEGIN {RS = " "; FS = "/|\n";} {
11404  lt_foo = "";
11405  lt_count = 0;
11406  for (lt_i = NF; lt_i > 0; lt_i--) {
11407    if ($lt_i != "" && $lt_i != ".") {
11408      if ($lt_i == "..") {
11409        lt_count++;
11410      } else {
11411        if (lt_count == 0) {
11412          lt_foo = "/" $lt_i lt_foo;
11413        } else {
11414          lt_count--;
11415        }
11416      }
11417    }
11418  }
11419  if (lt_foo != "") { lt_freq[lt_foo]++; }
11420  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11421}'`
11422  # AWK program above erroneously prepends '/' to C:/dos/paths
11423  # for these hosts.
11424  case $host_os in
11425    mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11426      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11427  esac
11428  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11429else
11430  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11431fi
11432library_names_spec=
11433libname_spec='lib$name'
11434soname_spec=
11435shrext_cmds=.so
11436postinstall_cmds=
11437postuninstall_cmds=
11438finish_cmds=
11439finish_eval=
11440shlibpath_var=
11441shlibpath_overrides_runpath=unknown
11442version_type=none
11443dynamic_linker="$host_os ld.so"
11444sys_lib_dlsearch_path_spec="/lib /usr/lib"
11445need_lib_prefix=unknown
11446hardcode_into_libs=no
11447
11448# when you set need_version to no, make sure it does not cause -set_version
11449# flags to be left without arguments
11450need_version=unknown
11451
11452
11453
11454case $host_os in
11455aix3*)
11456  version_type=linux # correct to gnu/linux during the next big refactor
11457  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11458  shlibpath_var=LIBPATH
11459
11460  # AIX 3 has no versioning support, so we append a major version to the name.
11461  soname_spec='$libname$release$shared_ext$major'
11462  ;;
11463
11464aix[4-9]*)
11465  version_type=linux # correct to gnu/linux during the next big refactor
11466  need_lib_prefix=no
11467  need_version=no
11468  hardcode_into_libs=yes
11469  if test ia64 = "$host_cpu"; then
11470    # AIX 5 supports IA64
11471    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11472    shlibpath_var=LD_LIBRARY_PATH
11473  else
11474    # With GCC up to 2.95.x, collect2 would create an import file
11475    # for dependence libraries.  The import file would start with
11476    # the line '#! .'.  This would cause the generated library to
11477    # depend on '.', always an invalid library.  This was fixed in
11478    # development snapshots of GCC prior to 3.0.
11479    case $host_os in
11480      aix4 | aix4.[01] | aix4.[01].*)
11481      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11482	   echo ' yes '
11483	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11484	:
11485      else
11486	can_build_shared=no
11487      fi
11488      ;;
11489    esac
11490    # Using Import Files as archive members, it is possible to support
11491    # filename-based versioning of shared library archives on AIX. While
11492    # this would work for both with and without runtime linking, it will
11493    # prevent static linking of such archives. So we do filename-based
11494    # shared library versioning with .so extension only, which is used
11495    # when both runtime linking and shared linking is enabled.
11496    # Unfortunately, runtime linking may impact performance, so we do
11497    # not want this to be the default eventually. Also, we use the
11498    # versioned .so libs for executables only if there is the -brtl
11499    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11500    # To allow for filename-based versioning support, we need to create
11501    # libNAME.so.V as an archive file, containing:
11502    # *) an Import File, referring to the versioned filename of the
11503    #    archive as well as the shared archive member, telling the
11504    #    bitwidth (32 or 64) of that shared object, and providing the
11505    #    list of exported symbols of that shared object, eventually
11506    #    decorated with the 'weak' keyword
11507    # *) the shared object with the F_LOADONLY flag set, to really avoid
11508    #    it being seen by the linker.
11509    # At run time we better use the real file rather than another symlink,
11510    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11511
11512    case $with_aix_soname,$aix_use_runtimelinking in
11513    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11514    # soname into executable. Probably we can add versioning support to
11515    # collect2, so additional links can be useful in future.
11516    aix,yes) # traditional libtool
11517      dynamic_linker='AIX unversionable lib.so'
11518      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11519      # instead of lib<name>.a to let people know that these are not
11520      # typical AIX shared libraries.
11521      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522      ;;
11523    aix,no) # traditional AIX only
11524      dynamic_linker='AIX lib.a(lib.so.V)'
11525      # We preserve .a as extension for shared libraries through AIX4.2
11526      # and later when we are not doing run time linking.
11527      library_names_spec='$libname$release.a $libname.a'
11528      soname_spec='$libname$release$shared_ext$major'
11529      ;;
11530    svr4,*) # full svr4 only
11531      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11532      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11533      # We do not specify a path in Import Files, so LIBPATH fires.
11534      shlibpath_overrides_runpath=yes
11535      ;;
11536    *,yes) # both, prefer svr4
11537      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11538      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11539      # unpreferred sharedlib libNAME.a needs extra handling
11540      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"'
11541      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"'
11542      # We do not specify a path in Import Files, so LIBPATH fires.
11543      shlibpath_overrides_runpath=yes
11544      ;;
11545    *,no) # both, prefer aix
11546      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11547      library_names_spec='$libname$release.a $libname.a'
11548      soname_spec='$libname$release$shared_ext$major'
11549      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11550      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)'
11551      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"'
11552      ;;
11553    esac
11554    shlibpath_var=LIBPATH
11555  fi
11556  ;;
11557
11558amigaos*)
11559  case $host_cpu in
11560  powerpc)
11561    # Since July 2007 AmigaOS4 officially supports .so libraries.
11562    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11563    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11564    ;;
11565  m68k)
11566    library_names_spec='$libname.ixlibrary $libname.a'
11567    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11568    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'
11569    ;;
11570  esac
11571  ;;
11572
11573beos*)
11574  library_names_spec='$libname$shared_ext'
11575  dynamic_linker="$host_os ld.so"
11576  shlibpath_var=LIBRARY_PATH
11577  ;;
11578
11579bsdi[45]*)
11580  version_type=linux # correct to gnu/linux during the next big refactor
11581  need_version=no
11582  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583  soname_spec='$libname$release$shared_ext$major'
11584  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11585  shlibpath_var=LD_LIBRARY_PATH
11586  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11587  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11588  # the default ld.so.conf also contains /usr/contrib/lib and
11589  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11590  # libtool to hard-code these into programs
11591  ;;
11592
11593cygwin* | mingw* | windows* | pw32* | cegcc*)
11594  version_type=windows
11595  shrext_cmds=.dll
11596  need_version=no
11597  need_lib_prefix=no
11598
11599  case $GCC,$cc_basename in
11600  yes,*)
11601    # gcc
11602    library_names_spec='$libname.dll.a'
11603    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11604    # If user builds GCC with multilib enabled,
11605    # it should just install on $(libdir)
11606    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11607    if test xyes = x"$multilib"; then
11608      postinstall_cmds='base_file=`basename \$file`~
11609        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11610        dldir=$destdir/`dirname \$dlpath`~
11611        $install_prog $dir/$dlname $destdir/$dlname~
11612        chmod a+x $destdir/$dlname~
11613        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11614          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11615        fi'
11616    else
11617      postinstall_cmds='base_file=`basename \$file`~
11618        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11619        dldir=$destdir/`dirname \$dlpath`~
11620        test -d \$dldir || mkdir -p \$dldir~
11621        $install_prog $dir/$dlname \$dldir/$dlname~
11622        chmod a+x \$dldir/$dlname~
11623        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11624          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11625        fi'
11626    fi
11627    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11628      dlpath=$dir/\$dldll~
11629       $RM \$dlpath'
11630    shlibpath_overrides_runpath=yes
11631
11632    case $host_os in
11633    cygwin*)
11634      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11635      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11636
11637      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11638      ;;
11639    mingw* | windows* | cegcc*)
11640      # MinGW DLLs use traditional 'lib' prefix
11641      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11642      ;;
11643    pw32*)
11644      # pw32 DLLs use 'pw' prefix rather than 'lib'
11645      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11646      ;;
11647    esac
11648    dynamic_linker='Win32 ld.exe'
11649    ;;
11650
11651  *,cl* | *,icl*)
11652    # Native MSVC or ICC
11653    libname_spec='$name'
11654    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11655    library_names_spec='$libname.dll.lib'
11656
11657    case $build_os in
11658    mingw* | windows*)
11659      sys_lib_search_path_spec=
11660      lt_save_ifs=$IFS
11661      IFS=';'
11662      for lt_path in $LIB
11663      do
11664        IFS=$lt_save_ifs
11665        # Let DOS variable expansion print the short 8.3 style file name.
11666        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11667        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11668      done
11669      IFS=$lt_save_ifs
11670      # Convert to MSYS style.
11671      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11672      ;;
11673    cygwin*)
11674      # Convert to unix form, then to dos form, then back to unix form
11675      # but this time dos style (no spaces!) so that the unix form looks
11676      # like /cygdrive/c/PROGRA~1:/cygdr...
11677      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11678      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11679      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11680      ;;
11681    *)
11682      sys_lib_search_path_spec=$LIB
11683      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11684        # It is most probably a Windows format PATH.
11685        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11686      else
11687        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11688      fi
11689      # FIXME: find the short name or the path components, as spaces are
11690      # common. (e.g. "Program Files" -> "PROGRA~1")
11691      ;;
11692    esac
11693
11694    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11695    postinstall_cmds='base_file=`basename \$file`~
11696      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11697      dldir=$destdir/`dirname \$dlpath`~
11698      test -d \$dldir || mkdir -p \$dldir~
11699      $install_prog $dir/$dlname \$dldir/$dlname'
11700    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11701      dlpath=$dir/\$dldll~
11702       $RM \$dlpath'
11703    shlibpath_overrides_runpath=yes
11704    dynamic_linker='Win32 link.exe'
11705    ;;
11706
11707  *)
11708    # Assume MSVC and ICC wrapper
11709    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11710    dynamic_linker='Win32 ld.exe'
11711    ;;
11712  esac
11713  # FIXME: first we should search . and the directory the executable is in
11714  shlibpath_var=PATH
11715  ;;
11716
11717darwin* | rhapsody*)
11718  dynamic_linker="$host_os dyld"
11719  version_type=darwin
11720  need_lib_prefix=no
11721  need_version=no
11722  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11723  soname_spec='$libname$release$major$shared_ext'
11724  shlibpath_overrides_runpath=yes
11725  shlibpath_var=DYLD_LIBRARY_PATH
11726  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11727
11728  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11729  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11730  ;;
11731
11732dgux*)
11733  version_type=linux # correct to gnu/linux during the next big refactor
11734  need_lib_prefix=no
11735  need_version=no
11736  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737  soname_spec='$libname$release$shared_ext$major'
11738  shlibpath_var=LD_LIBRARY_PATH
11739  ;;
11740
11741freebsd* | dragonfly* | midnightbsd*)
11742  # DragonFly does not have aout.  When/if they implement a new
11743  # versioning mechanism, adjust this.
11744  if test -x /usr/bin/objformat; then
11745    objformat=`/usr/bin/objformat`
11746  else
11747    case $host_os in
11748    freebsd[23].*) objformat=aout ;;
11749    *) objformat=elf ;;
11750    esac
11751  fi
11752  version_type=freebsd-$objformat
11753  case $version_type in
11754    freebsd-elf*)
11755      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756      soname_spec='$libname$release$shared_ext$major'
11757      need_version=no
11758      need_lib_prefix=no
11759      ;;
11760    freebsd-*)
11761      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11762      need_version=yes
11763      ;;
11764  esac
11765  case $host_cpu in
11766    powerpc64)
11767      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11768      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11769      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770/* end confdefs.h.  */
11771int test_pointer_size[sizeof (void *) - 5];
11772
11773_ACEOF
11774if ac_fn_c_try_compile "$LINENO"
11775then :
11776  shlibpath_var=LD_LIBRARY_PATH
11777else case e in #(
11778  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11779esac
11780fi
11781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11782      ;;
11783    *)
11784      shlibpath_var=LD_LIBRARY_PATH
11785      ;;
11786  esac
11787  case $host_os in
11788  freebsd2.*)
11789    shlibpath_overrides_runpath=yes
11790    ;;
11791  freebsd3.[01]* | freebsdelf3.[01]*)
11792    shlibpath_overrides_runpath=yes
11793    hardcode_into_libs=yes
11794    ;;
11795  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11796  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11797    shlibpath_overrides_runpath=no
11798    hardcode_into_libs=yes
11799    ;;
11800  *) # from 4.6 on, and DragonFly
11801    shlibpath_overrides_runpath=yes
11802    hardcode_into_libs=yes
11803    ;;
11804  esac
11805  ;;
11806
11807haiku*)
11808  version_type=linux # correct to gnu/linux during the next big refactor
11809  need_lib_prefix=no
11810  need_version=no
11811  dynamic_linker="$host_os runtime_loader"
11812  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11813  soname_spec='$libname$release$shared_ext$major'
11814  shlibpath_var=LIBRARY_PATH
11815  shlibpath_overrides_runpath=no
11816  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11817  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11818  hardcode_into_libs=no
11819  ;;
11820
11821hpux9* | hpux10* | hpux11*)
11822  # Give a soname corresponding to the major version so that dld.sl refuses to
11823  # link against other versions.
11824  version_type=sunos
11825  need_lib_prefix=no
11826  need_version=no
11827  case $host_cpu in
11828  ia64*)
11829    shrext_cmds='.so'
11830    hardcode_into_libs=yes
11831    dynamic_linker="$host_os dld.so"
11832    shlibpath_var=LD_LIBRARY_PATH
11833    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11834    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835    soname_spec='$libname$release$shared_ext$major'
11836    if test 32 = "$HPUX_IA64_MODE"; then
11837      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11838      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11839    else
11840      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11841      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11842    fi
11843    ;;
11844  hppa*64*)
11845    shrext_cmds='.sl'
11846    hardcode_into_libs=yes
11847    dynamic_linker="$host_os dld.sl"
11848    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11849    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11850    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851    soname_spec='$libname$release$shared_ext$major'
11852    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11853    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11854    ;;
11855  *)
11856    shrext_cmds='.sl'
11857    dynamic_linker="$host_os dld.sl"
11858    shlibpath_var=SHLIB_PATH
11859    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11860    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11861    soname_spec='$libname$release$shared_ext$major'
11862    ;;
11863  esac
11864  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11865  postinstall_cmds='chmod 555 $lib'
11866  # or fails outright, so override atomically:
11867  install_override_mode=555
11868  ;;
11869
11870interix[3-9]*)
11871  version_type=linux # correct to gnu/linux during the next big refactor
11872  need_lib_prefix=no
11873  need_version=no
11874  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875  soname_spec='$libname$release$shared_ext$major'
11876  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11877  shlibpath_var=LD_LIBRARY_PATH
11878  shlibpath_overrides_runpath=no
11879  hardcode_into_libs=yes
11880  ;;
11881
11882irix5* | irix6* | nonstopux*)
11883  case $host_os in
11884    nonstopux*) version_type=nonstopux ;;
11885    *)
11886	if test yes = "$lt_cv_prog_gnu_ld"; then
11887		version_type=linux # correct to gnu/linux during the next big refactor
11888	else
11889		version_type=irix
11890	fi ;;
11891  esac
11892  need_lib_prefix=no
11893  need_version=no
11894  soname_spec='$libname$release$shared_ext$major'
11895  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11896  case $host_os in
11897  irix5* | nonstopux*)
11898    libsuff= shlibsuff=
11899    ;;
11900  *)
11901    case $LD in # libtool.m4 will add one of these switches to LD
11902    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11903      libsuff= shlibsuff= libmagic=32-bit;;
11904    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11905      libsuff=32 shlibsuff=N32 libmagic=N32;;
11906    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11907      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11908    *) libsuff= shlibsuff= libmagic=never-match;;
11909    esac
11910    ;;
11911  esac
11912  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11913  shlibpath_overrides_runpath=no
11914  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11915  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11916  hardcode_into_libs=yes
11917  ;;
11918
11919# No shared lib support for Linux oldld, aout, or coff.
11920linux*oldld* | linux*aout* | linux*coff*)
11921  dynamic_linker=no
11922  ;;
11923
11924linux*android*)
11925  version_type=none # Android doesn't support versioned libraries.
11926  need_lib_prefix=no
11927  need_version=no
11928  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
11929  soname_spec='$libname$release$shared_ext'
11930  finish_cmds=
11931  shlibpath_var=LD_LIBRARY_PATH
11932  shlibpath_overrides_runpath=yes
11933
11934  # This implies no fast_install, which is unacceptable.
11935  # Some rework will be needed to allow for fast_install
11936  # before this can be enabled.
11937  hardcode_into_libs=yes
11938
11939  dynamic_linker='Android linker'
11940  # -rpath works at least for libraries that are not overridden by
11941  # libraries installed in system locations.
11942  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11943  ;;
11944
11945# This must be glibc/ELF.
11946linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11947  version_type=linux # correct to gnu/linux during the next big refactor
11948  need_lib_prefix=no
11949  need_version=no
11950  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11951  soname_spec='$libname$release$shared_ext$major'
11952  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11953  shlibpath_var=LD_LIBRARY_PATH
11954  shlibpath_overrides_runpath=no
11955
11956  # Some binutils ld are patched to set DT_RUNPATH
11957  if test ${lt_cv_shlibpath_overrides_runpath+y}
11958then :
11959  printf %s "(cached) " >&6
11960else case e in #(
11961  e) lt_cv_shlibpath_overrides_runpath=no
11962    save_LDFLAGS=$LDFLAGS
11963    save_libdir=$libdir
11964    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11965	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11966    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h.  */
11968
11969int
11970main (void)
11971{
11972
11973  ;
11974  return 0;
11975}
11976_ACEOF
11977if ac_fn_c_try_link "$LINENO"
11978then :
11979  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11980then :
11981  lt_cv_shlibpath_overrides_runpath=yes
11982fi
11983fi
11984rm -f core conftest.err conftest.$ac_objext conftest.beam \
11985    conftest$ac_exeext conftest.$ac_ext
11986    LDFLAGS=$save_LDFLAGS
11987    libdir=$save_libdir
11988     ;;
11989esac
11990fi
11991
11992  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11993
11994  # This implies no fast_install, which is unacceptable.
11995  # Some rework will be needed to allow for fast_install
11996  # before this can be enabled.
11997  hardcode_into_libs=yes
11998
11999  # Ideally, we could use ldconfig to report *all* directories which are
12000  # searched for libraries, however this is still not possible.  Aside from not
12001  # being certain /sbin/ldconfig is available, command
12002  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12003  # even though it is searched at run-time.  Try to do the best guess by
12004  # appending ld.so.conf contents (and includes) to the search path.
12005  if test -f /etc/ld.so.conf; then
12006    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' ' '`
12007    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12008  fi
12009
12010  # We used to test for /lib/ld.so.1 and disable shared libraries on
12011  # powerpc, because MkLinux only supported shared libraries with the
12012  # GNU dynamic linker.  Since this was broken with cross compilers,
12013  # most powerpc-linux boxes support dynamic linking these days and
12014  # people can always --disable-shared, the test was removed, and we
12015  # assume the GNU/Linux dynamic linker is in use.
12016  dynamic_linker='GNU/Linux ld.so'
12017  ;;
12018
12019netbsdelf*-gnu)
12020  version_type=linux
12021  need_lib_prefix=no
12022  need_version=no
12023  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024  soname_spec='$libname$release$shared_ext$major'
12025  shlibpath_var=LD_LIBRARY_PATH
12026  shlibpath_overrides_runpath=no
12027  hardcode_into_libs=yes
12028  dynamic_linker='NetBSD ld.elf_so'
12029  ;;
12030
12031netbsd*)
12032  version_type=sunos
12033  need_lib_prefix=no
12034  need_version=no
12035  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12036    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12037    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12038    dynamic_linker='NetBSD (a.out) ld.so'
12039  else
12040    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041    soname_spec='$libname$release$shared_ext$major'
12042    dynamic_linker='NetBSD ld.elf_so'
12043  fi
12044  shlibpath_var=LD_LIBRARY_PATH
12045  shlibpath_overrides_runpath=yes
12046  hardcode_into_libs=yes
12047  ;;
12048
12049*-mlibc)
12050  version_type=linux # correct to gnu/linux during the next big refactor
12051  need_lib_prefix=no
12052  need_version=no
12053  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054  soname_spec='$libname$release$shared_ext$major'
12055  dynamic_linker='mlibc ld.so'
12056  shlibpath_var=LD_LIBRARY_PATH
12057  shlibpath_overrides_runpath=no
12058  hardcode_into_libs=yes
12059  ;;
12060
12061newsos6)
12062  version_type=linux # correct to gnu/linux during the next big refactor
12063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12064  shlibpath_var=LD_LIBRARY_PATH
12065  shlibpath_overrides_runpath=yes
12066  ;;
12067
12068*nto* | *qnx*)
12069  version_type=qnx
12070  need_lib_prefix=no
12071  need_version=no
12072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12073  soname_spec='$libname$release$shared_ext$major'
12074  shlibpath_var=LD_LIBRARY_PATH
12075  shlibpath_overrides_runpath=no
12076  hardcode_into_libs=yes
12077  dynamic_linker='ldqnx.so'
12078  ;;
12079
12080openbsd*)
12081  version_type=sunos
12082  sys_lib_dlsearch_path_spec=/usr/lib
12083  need_lib_prefix=no
12084  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12085    need_version=no
12086  else
12087    need_version=yes
12088  fi
12089  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12090  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12091  shlibpath_var=LD_LIBRARY_PATH
12092  shlibpath_overrides_runpath=yes
12093  ;;
12094
12095os2*)
12096  libname_spec='$name'
12097  version_type=windows
12098  shrext_cmds=.dll
12099  need_version=no
12100  need_lib_prefix=no
12101  # OS/2 can only load a DLL with a base name of 8 characters or less.
12102  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12103    v=$($ECHO $release$versuffix | tr -d .-);
12104    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12105    $ECHO $n$v`$shared_ext'
12106  library_names_spec='${libname}_dll.$libext'
12107  dynamic_linker='OS/2 ld.exe'
12108  shlibpath_var=BEGINLIBPATH
12109  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12110  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12111  postinstall_cmds='base_file=`basename \$file`~
12112    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12113    dldir=$destdir/`dirname \$dlpath`~
12114    test -d \$dldir || mkdir -p \$dldir~
12115    $install_prog $dir/$dlname \$dldir/$dlname~
12116    chmod a+x \$dldir/$dlname~
12117    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12118      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12119    fi'
12120  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12121    dlpath=$dir/\$dldll~
12122    $RM \$dlpath'
12123  ;;
12124
12125osf3* | osf4* | osf5*)
12126  version_type=osf
12127  need_lib_prefix=no
12128  need_version=no
12129  soname_spec='$libname$release$shared_ext$major'
12130  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12131  shlibpath_var=LD_LIBRARY_PATH
12132  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12133  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12134  ;;
12135
12136rdos*)
12137  dynamic_linker=no
12138  ;;
12139
12140serenity*)
12141  version_type=linux # correct to gnu/linux during the next big refactor
12142  need_lib_prefix=no
12143  need_version=no
12144  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12145  soname_spec='$libname$release$shared_ext$major'
12146  shlibpath_var=LD_LIBRARY_PATH
12147  shlibpath_overrides_runpath=no
12148  dynamic_linker='SerenityOS LibELF'
12149  ;;
12150
12151solaris*)
12152  version_type=linux # correct to gnu/linux during the next big refactor
12153  need_lib_prefix=no
12154  need_version=no
12155  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12156  soname_spec='$libname$release$shared_ext$major'
12157  shlibpath_var=LD_LIBRARY_PATH
12158  shlibpath_overrides_runpath=yes
12159  hardcode_into_libs=yes
12160  # ldd complains unless libraries are executable
12161  postinstall_cmds='chmod +x $lib'
12162  ;;
12163
12164sunos4*)
12165  version_type=sunos
12166  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12167  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12168  shlibpath_var=LD_LIBRARY_PATH
12169  shlibpath_overrides_runpath=yes
12170  if test yes = "$with_gnu_ld"; then
12171    need_lib_prefix=no
12172  fi
12173  need_version=yes
12174  ;;
12175
12176sysv4 | sysv4.3*)
12177  version_type=linux # correct to gnu/linux during the next big refactor
12178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12179  soname_spec='$libname$release$shared_ext$major'
12180  shlibpath_var=LD_LIBRARY_PATH
12181  case $host_vendor in
12182    sni)
12183      shlibpath_overrides_runpath=no
12184      need_lib_prefix=no
12185      runpath_var=LD_RUN_PATH
12186      ;;
12187    siemens)
12188      need_lib_prefix=no
12189      ;;
12190    motorola)
12191      need_lib_prefix=no
12192      need_version=no
12193      shlibpath_overrides_runpath=no
12194      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12195      ;;
12196  esac
12197  ;;
12198
12199sysv4*MP*)
12200  if test -d /usr/nec; then
12201    version_type=linux # correct to gnu/linux during the next big refactor
12202    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12203    soname_spec='$libname$shared_ext.$major'
12204    shlibpath_var=LD_LIBRARY_PATH
12205  fi
12206  ;;
12207
12208sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12209  version_type=sco
12210  need_lib_prefix=no
12211  need_version=no
12212  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12213  soname_spec='$libname$release$shared_ext$major'
12214  shlibpath_var=LD_LIBRARY_PATH
12215  shlibpath_overrides_runpath=yes
12216  hardcode_into_libs=yes
12217  if test yes = "$with_gnu_ld"; then
12218    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12219  else
12220    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12221    case $host_os in
12222      sco3.2v5*)
12223        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12224	;;
12225    esac
12226  fi
12227  sys_lib_dlsearch_path_spec='/usr/lib'
12228  ;;
12229
12230tpf*)
12231  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12232  version_type=linux # correct to gnu/linux during the next big refactor
12233  need_lib_prefix=no
12234  need_version=no
12235  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12236  shlibpath_var=LD_LIBRARY_PATH
12237  shlibpath_overrides_runpath=no
12238  hardcode_into_libs=yes
12239  ;;
12240
12241uts4*)
12242  version_type=linux # correct to gnu/linux during the next big refactor
12243  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12244  soname_spec='$libname$release$shared_ext$major'
12245  shlibpath_var=LD_LIBRARY_PATH
12246  ;;
12247
12248emscripten*)
12249  version_type=none
12250  need_lib_prefix=no
12251  need_version=no
12252  library_names_spec='$libname$release$shared_ext'
12253  soname_spec='$libname$release$shared_ext'
12254  finish_cmds=
12255  dynamic_linker="Emscripten linker"
12256  lt_prog_compiler_wl=
12257lt_prog_compiler_pic=
12258lt_prog_compiler_static=
12259
12260
12261  if test yes = "$GCC"; then
12262    lt_prog_compiler_wl='-Wl,'
12263    lt_prog_compiler_static='-static'
12264
12265    case $host_os in
12266      aix*)
12267      # All AIX code is PIC.
12268      if test ia64 = "$host_cpu"; then
12269	# AIX 5 now supports IA64 processor
12270	lt_prog_compiler_static='-Bstatic'
12271      fi
12272      lt_prog_compiler_pic='-fPIC'
12273      ;;
12274
12275    amigaos*)
12276      case $host_cpu in
12277      powerpc)
12278            # see comment about AmigaOS4 .so support
12279            lt_prog_compiler_pic='-fPIC'
12280        ;;
12281      m68k)
12282            # FIXME: we need at least 68020 code to build shared libraries, but
12283            # adding the '-m68020' flag to GCC prevents building anything better,
12284            # like '-m68040'.
12285            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12286        ;;
12287      esac
12288      ;;
12289
12290    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12291      # PIC is the default for these OSes.
12292      ;;
12293
12294    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12295      # This hack is so that the source file can tell whether it is being
12296      # built for inclusion in a dll (and should export symbols for example).
12297      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12298      # (--disable-auto-import) libraries
12299      lt_prog_compiler_pic='-DDLL_EXPORT'
12300      case $host_os in
12301      os2*)
12302	lt_prog_compiler_static='$wl-static'
12303	;;
12304      esac
12305      ;;
12306
12307    darwin* | rhapsody*)
12308      # PIC is the default on this platform
12309      # Common symbols not allowed in MH_DYLIB files
12310      lt_prog_compiler_pic='-fno-common'
12311      ;;
12312
12313    haiku*)
12314      # PIC is the default for Haiku.
12315      # The "-static" flag exists, but is broken.
12316      lt_prog_compiler_static=
12317      ;;
12318
12319    hpux*)
12320      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12321      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12322      # sets the default TLS model and affects inlining.
12323      case $host_cpu in
12324      hppa*64*)
12325	# +Z the default
12326	;;
12327      *)
12328	lt_prog_compiler_pic='-fPIC'
12329	;;
12330      esac
12331      ;;
12332
12333    interix[3-9]*)
12334      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12335      # Instead, we relocate shared libraries at runtime.
12336      ;;
12337
12338    msdosdjgpp*)
12339      # Just because we use GCC doesn't mean we suddenly get shared libraries
12340      # on systems that don't support them.
12341      lt_prog_compiler_can_build_shared=no
12342      enable_shared=no
12343      ;;
12344
12345    *nto* | *qnx*)
12346      # QNX uses GNU C++, but need to define -shared option too, otherwise
12347      # it will coredump.
12348      lt_prog_compiler_pic='-fPIC -shared'
12349      ;;
12350
12351    sysv4*MP*)
12352      if test -d /usr/nec; then
12353	lt_prog_compiler_pic=-Kconform_pic
12354      fi
12355      ;;
12356
12357    *)
12358      lt_prog_compiler_pic='-fPIC'
12359      ;;
12360    esac
12361
12362    case $cc_basename in
12363    nvcc*) # Cuda Compiler Driver 2.2
12364      lt_prog_compiler_wl='-Xlinker '
12365      if test -n "$lt_prog_compiler_pic"; then
12366        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12367      fi
12368      ;;
12369    esac
12370  else
12371    # PORTME Check for flag to pass linker flags through the system compiler.
12372    case $host_os in
12373    aix*)
12374      lt_prog_compiler_wl='-Wl,'
12375      if test ia64 = "$host_cpu"; then
12376	# AIX 5 now supports IA64 processor
12377	lt_prog_compiler_static='-Bstatic'
12378      else
12379	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12380      fi
12381      ;;
12382
12383    darwin* | rhapsody*)
12384      # PIC is the default on this platform
12385      # Common symbols not allowed in MH_DYLIB files
12386      lt_prog_compiler_pic='-fno-common'
12387      case $cc_basename in
12388      nagfor*)
12389        # NAG Fortran compiler
12390        lt_prog_compiler_wl='-Wl,-Wl,,'
12391        lt_prog_compiler_pic='-PIC'
12392        lt_prog_compiler_static='-Bstatic'
12393        ;;
12394      esac
12395      ;;
12396
12397    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12398      # This hack is so that the source file can tell whether it is being
12399      # built for inclusion in a dll (and should export symbols for example).
12400      lt_prog_compiler_pic='-DDLL_EXPORT'
12401      case $host_os in
12402      os2*)
12403	lt_prog_compiler_static='$wl-static'
12404	;;
12405      esac
12406      ;;
12407
12408    hpux9* | hpux10* | hpux11*)
12409      lt_prog_compiler_wl='-Wl,'
12410      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12411      # not for PA HP-UX.
12412      case $host_cpu in
12413      hppa*64*|ia64*)
12414	# +Z the default
12415	;;
12416      *)
12417	lt_prog_compiler_pic='+Z'
12418	;;
12419      esac
12420      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12421      lt_prog_compiler_static='$wl-a ${wl}archive'
12422      ;;
12423
12424    irix5* | irix6* | nonstopux*)
12425      lt_prog_compiler_wl='-Wl,'
12426      # PIC (with -KPIC) is the default.
12427      lt_prog_compiler_static='-non_shared'
12428      ;;
12429
12430    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12431      case $cc_basename in
12432      # old Intel for x86_64, which still supported -KPIC.
12433      ecc*)
12434	lt_prog_compiler_wl='-Wl,'
12435	lt_prog_compiler_pic='-KPIC'
12436	lt_prog_compiler_static='-static'
12437        ;;
12438      *flang* | ftn | f18* | f95*)
12439        # Flang compiler.
12440	lt_prog_compiler_wl='-Wl,'
12441	lt_prog_compiler_pic='-fPIC'
12442	lt_prog_compiler_static='-static'
12443        ;;
12444      # icc used to be incompatible with GCC.
12445      # ICC 10 doesn't accept -KPIC any more.
12446      icc* | ifort*)
12447	lt_prog_compiler_wl='-Wl,'
12448	lt_prog_compiler_pic='-fPIC'
12449	lt_prog_compiler_static='-static'
12450        ;;
12451      # Lahey Fortran 8.1.
12452      lf95*)
12453	lt_prog_compiler_wl='-Wl,'
12454	lt_prog_compiler_pic='--shared'
12455	lt_prog_compiler_static='--static'
12456	;;
12457      nagfor*)
12458	# NAG Fortran compiler
12459	lt_prog_compiler_wl='-Wl,-Wl,,'
12460	lt_prog_compiler_pic='-PIC'
12461	lt_prog_compiler_static='-Bstatic'
12462	;;
12463      tcc*)
12464	# Fabrice Bellard et al's Tiny C Compiler
12465	lt_prog_compiler_wl='-Wl,'
12466	lt_prog_compiler_pic='-fPIC'
12467	lt_prog_compiler_static='-static'
12468	;;
12469      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12470        # Portland Group compilers (*not* the Pentium gcc compiler,
12471	# which looks to be a dead project)
12472	lt_prog_compiler_wl='-Wl,'
12473	lt_prog_compiler_pic='-fpic'
12474	lt_prog_compiler_static='-Bstatic'
12475        ;;
12476      ccc*)
12477        lt_prog_compiler_wl='-Wl,'
12478        # All Alpha code is PIC.
12479        lt_prog_compiler_static='-non_shared'
12480        ;;
12481      xl* | bgxl* | bgf* | mpixl*)
12482	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12483	lt_prog_compiler_wl='-Wl,'
12484	lt_prog_compiler_pic='-qpic'
12485	lt_prog_compiler_static='-qstaticlink'
12486	;;
12487      *)
12488	case `$CC -V 2>&1 | $SED 5q` in
12489	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12490	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12491	  lt_prog_compiler_pic='-KPIC'
12492	  lt_prog_compiler_static='-Bstatic'
12493	  lt_prog_compiler_wl=''
12494	  ;;
12495	*Sun\ F* | *Sun*Fortran*)
12496	  lt_prog_compiler_pic='-KPIC'
12497	  lt_prog_compiler_static='-Bstatic'
12498	  lt_prog_compiler_wl='-Qoption ld '
12499	  ;;
12500	*Sun\ C*)
12501	  # Sun C 5.9
12502	  lt_prog_compiler_pic='-KPIC'
12503	  lt_prog_compiler_static='-Bstatic'
12504	  lt_prog_compiler_wl='-Wl,'
12505	  ;;
12506        *Intel*\ [CF]*Compiler*)
12507	  lt_prog_compiler_wl='-Wl,'
12508	  lt_prog_compiler_pic='-fPIC'
12509	  lt_prog_compiler_static='-static'
12510	  ;;
12511	*Portland\ Group*)
12512	  lt_prog_compiler_wl='-Wl,'
12513	  lt_prog_compiler_pic='-fpic'
12514	  lt_prog_compiler_static='-Bstatic'
12515	  ;;
12516	esac
12517	;;
12518      esac
12519      ;;
12520
12521    newsos6)
12522      lt_prog_compiler_pic='-KPIC'
12523      lt_prog_compiler_static='-Bstatic'
12524      ;;
12525
12526    *-mlibc)
12527      lt_prog_compiler_wl='-Wl,'
12528      lt_prog_compiler_pic='-fPIC'
12529      lt_prog_compiler_static='-static'
12530      ;;
12531
12532    *nto* | *qnx*)
12533      # QNX uses GNU C++, but need to define -shared option too, otherwise
12534      # it will coredump.
12535      lt_prog_compiler_pic='-fPIC -shared'
12536      ;;
12537
12538    osf3* | osf4* | osf5*)
12539      lt_prog_compiler_wl='-Wl,'
12540      # All OSF/1 code is PIC.
12541      lt_prog_compiler_static='-non_shared'
12542      ;;
12543
12544    rdos*)
12545      lt_prog_compiler_static='-non_shared'
12546      ;;
12547
12548    serenity*)
12549      ;;
12550
12551    solaris*)
12552      lt_prog_compiler_pic='-KPIC'
12553      lt_prog_compiler_static='-Bstatic'
12554      case $cc_basename in
12555      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12556	lt_prog_compiler_wl='-Qoption ld ';;
12557      *)
12558	lt_prog_compiler_wl='-Wl,';;
12559      esac
12560      ;;
12561
12562    sunos4*)
12563      lt_prog_compiler_wl='-Qoption ld '
12564      lt_prog_compiler_pic='-PIC'
12565      lt_prog_compiler_static='-Bstatic'
12566      ;;
12567
12568    sysv4 | sysv4.2uw2* | sysv4.3*)
12569      lt_prog_compiler_wl='-Wl,'
12570      lt_prog_compiler_pic='-KPIC'
12571      lt_prog_compiler_static='-Bstatic'
12572      ;;
12573
12574    sysv4*MP*)
12575      if test -d /usr/nec; then
12576	lt_prog_compiler_pic='-Kconform_pic'
12577	lt_prog_compiler_static='-Bstatic'
12578      fi
12579      ;;
12580
12581    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12582      lt_prog_compiler_wl='-Wl,'
12583      lt_prog_compiler_pic='-KPIC'
12584      lt_prog_compiler_static='-Bstatic'
12585      ;;
12586
12587    unicos*)
12588      lt_prog_compiler_wl='-Wl,'
12589      lt_prog_compiler_can_build_shared=no
12590      ;;
12591
12592    uts4*)
12593      lt_prog_compiler_pic='-pic'
12594      lt_prog_compiler_static='-Bstatic'
12595      ;;
12596
12597    *)
12598      lt_prog_compiler_can_build_shared=no
12599      ;;
12600    esac
12601  fi
12602
12603case $host_os in
12604  # For platforms that do not support PIC, -DPIC is meaningless:
12605  *djgpp*)
12606    lt_prog_compiler_pic=
12607    ;;
12608  *)
12609    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12610    ;;
12611esac
12612
12613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12614printf %s "checking for $compiler option to produce PIC... " >&6; }
12615if test ${lt_cv_prog_compiler_pic+y}
12616then :
12617  printf %s "(cached) " >&6
12618else case e in #(
12619  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12620esac
12621fi
12622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12623printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12624lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12625
12626#
12627# Check to make sure the PIC flag actually works.
12628#
12629if test -n "$lt_prog_compiler_pic"; then
12630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12631printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12632if test ${lt_cv_prog_compiler_pic_works+y}
12633then :
12634  printf %s "(cached) " >&6
12635else case e in #(
12636  e) lt_cv_prog_compiler_pic_works=no
12637   ac_outfile=conftest.$ac_objext
12638   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12639   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12640   # Insert the option either (1) after the last *FLAGS variable, or
12641   # (2) before a word containing "conftest.", or (3) at the end.
12642   # Note that $ac_compile itself does not contain backslashes and begins
12643   # with a dollar sign (not a hyphen), so the echo should work correctly.
12644   # The option is referenced via a variable to avoid confusing sed.
12645   lt_compile=`echo "$ac_compile" | $SED \
12646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12648   -e 's:$: $lt_compiler_flag:'`
12649   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12650   (eval "$lt_compile" 2>conftest.err)
12651   ac_status=$?
12652   cat conftest.err >&5
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   if (exit $ac_status) && test -s "$ac_outfile"; then
12655     # The compiler can only warn and ignore the option if not recognized
12656     # So say no if there are warnings other than the usual output.
12657     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12658     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12659     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12660       lt_cv_prog_compiler_pic_works=yes
12661     fi
12662   fi
12663   $RM conftest*
12664 ;;
12665esac
12666fi
12667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12668printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12669
12670if test yes = "$lt_cv_prog_compiler_pic_works"; then
12671    case $lt_prog_compiler_pic in
12672     "" | " "*) ;;
12673     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12674     esac
12675else
12676    lt_prog_compiler_pic=
12677     lt_prog_compiler_can_build_shared=no
12678fi
12679
12680fi
12681
12682
12683
12684
12685
12686#
12687# Check to make sure the static flag actually works.
12688#
12689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12691printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12692if test ${lt_cv_prog_compiler_static_works+y}
12693then :
12694  printf %s "(cached) " >&6
12695else case e in #(
12696  e) lt_cv_prog_compiler_static_works=no
12697   save_LDFLAGS=$LDFLAGS
12698   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12699   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12700   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12701     # The linker can only warn and ignore the option if not recognized
12702     # So say no if there are warnings
12703     if test -s conftest.err; then
12704       # Append any errors to the config.log.
12705       cat conftest.err 1>&5
12706       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12707       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12708       if diff conftest.exp conftest.er2 >/dev/null; then
12709         lt_cv_prog_compiler_static_works=yes
12710       fi
12711     else
12712       lt_cv_prog_compiler_static_works=yes
12713     fi
12714   fi
12715   $RM -r conftest*
12716   LDFLAGS=$save_LDFLAGS
12717 ;;
12718esac
12719fi
12720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12721printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12722
12723if test yes = "$lt_cv_prog_compiler_static_works"; then
12724    :
12725else
12726    lt_prog_compiler_static=
12727fi
12728
12729
12730
12731='-fPIC'
12732  archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12733  archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12734  archive_cmds_need_lc=no
12735  no_undefined_flag=
12736  ;;
12737
12738*)
12739  dynamic_linker=no
12740  ;;
12741esac
12742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12743printf "%s\n" "$dynamic_linker" >&6; }
12744test no = "$dynamic_linker" && can_build_shared=no
12745
12746variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12747if test yes = "$GCC"; then
12748  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12749fi
12750
12751if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12752  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12753fi
12754
12755if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12756  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12757fi
12758
12759# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12760configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12761
12762# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12763func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12764
12765# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12766configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12865printf %s "checking how to hardcode library paths into programs... " >&6; }
12866hardcode_action=
12867if test -n "$hardcode_libdir_flag_spec" ||
12868   test -n "$runpath_var" ||
12869   test yes = "$hardcode_automatic"; then
12870
12871  # We can hardcode non-existent directories.
12872  if test no != "$hardcode_direct" &&
12873     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12874     # have to relink, otherwise we might link with an installed library
12875     # when we should be linking with a yet-to-be-installed one
12876     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12877     test no != "$hardcode_minus_L"; then
12878    # Linking always hardcodes the temporary library directory.
12879    hardcode_action=relink
12880  else
12881    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12882    hardcode_action=immediate
12883  fi
12884else
12885  # We cannot hardcode anything, or else we can only hardcode existing
12886  # directories.
12887  hardcode_action=unsupported
12888fi
12889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12890printf "%s\n" "$hardcode_action" >&6; }
12891
12892if test relink = "$hardcode_action" ||
12893   test yes = "$inherit_rpath"; then
12894  # Fast installation is not supported
12895  enable_fast_install=no
12896elif test yes = "$shlibpath_overrides_runpath" ||
12897     test no = "$enable_shared"; then
12898  # Fast installation is not necessary
12899  enable_fast_install=needless
12900fi
12901
12902
12903
12904
12905
12906
12907  if test yes != "$enable_dlopen"; then
12908  enable_dlopen=unknown
12909  enable_dlopen_self=unknown
12910  enable_dlopen_self_static=unknown
12911else
12912  lt_cv_dlopen=no
12913  lt_cv_dlopen_libs=
12914
12915  case $host_os in
12916  beos*)
12917    lt_cv_dlopen=load_add_on
12918    lt_cv_dlopen_libs=
12919    lt_cv_dlopen_self=yes
12920    ;;
12921
12922  mingw* | windows* | pw32* | cegcc*)
12923    lt_cv_dlopen=LoadLibrary
12924    lt_cv_dlopen_libs=
12925    ;;
12926
12927  cygwin*)
12928    lt_cv_dlopen=dlopen
12929    lt_cv_dlopen_libs=
12930    ;;
12931
12932  darwin*)
12933    # if libdl is installed we need to link against it
12934    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12935printf %s "checking for dlopen in -ldl... " >&6; }
12936if test ${ac_cv_lib_dl_dlopen+y}
12937then :
12938  printf %s "(cached) " >&6
12939else case e in #(
12940  e) ac_check_lib_save_LIBS=$LIBS
12941LIBS="-ldl  $LIBS"
12942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943/* end confdefs.h.  */
12944
12945/* Override any GCC internal prototype to avoid an error.
12946   Use char because int might match the return type of a GCC
12947   builtin and then its argument prototype would still apply.
12948   The 'extern "C"' is for builds by C++ compilers;
12949   although this is not generally supported in C code supporting it here
12950   has little cost and some practical benefit (sr 110532).  */
12951#ifdef __cplusplus
12952extern "C"
12953#endif
12954char dlopen (void);
12955int
12956main (void)
12957{
12958return dlopen ();
12959  ;
12960  return 0;
12961}
12962_ACEOF
12963if ac_fn_c_try_link "$LINENO"
12964then :
12965  ac_cv_lib_dl_dlopen=yes
12966else case e in #(
12967  e) ac_cv_lib_dl_dlopen=no ;;
12968esac
12969fi
12970rm -f core conftest.err conftest.$ac_objext conftest.beam \
12971    conftest$ac_exeext conftest.$ac_ext
12972LIBS=$ac_check_lib_save_LIBS ;;
12973esac
12974fi
12975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12976printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12977if test "x$ac_cv_lib_dl_dlopen" = xyes
12978then :
12979  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12980else case e in #(
12981  e)
12982    lt_cv_dlopen=dyld
12983    lt_cv_dlopen_libs=
12984    lt_cv_dlopen_self=yes
12985     ;;
12986esac
12987fi
12988
12989    ;;
12990
12991  tpf*)
12992    # Don't try to run any link tests for TPF.  We know it's impossible
12993    # because TPF is a cross-compiler, and we know how we open DSOs.
12994    lt_cv_dlopen=dlopen
12995    lt_cv_dlopen_libs=
12996    lt_cv_dlopen_self=no
12997    ;;
12998
12999  *)
13000    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13001if test "x$ac_cv_func_shl_load" = xyes
13002then :
13003  lt_cv_dlopen=shl_load
13004else case e in #(
13005  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13006printf %s "checking for shl_load in -ldld... " >&6; }
13007if test ${ac_cv_lib_dld_shl_load+y}
13008then :
13009  printf %s "(cached) " >&6
13010else case e in #(
13011  e) ac_check_lib_save_LIBS=$LIBS
13012LIBS="-ldld  $LIBS"
13013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015
13016/* Override any GCC internal prototype to avoid an error.
13017   Use char because int might match the return type of a GCC
13018   builtin and then its argument prototype would still apply.
13019   The 'extern "C"' is for builds by C++ compilers;
13020   although this is not generally supported in C code supporting it here
13021   has little cost and some practical benefit (sr 110532).  */
13022#ifdef __cplusplus
13023extern "C"
13024#endif
13025char shl_load (void);
13026int
13027main (void)
13028{
13029return shl_load ();
13030  ;
13031  return 0;
13032}
13033_ACEOF
13034if ac_fn_c_try_link "$LINENO"
13035then :
13036  ac_cv_lib_dld_shl_load=yes
13037else case e in #(
13038  e) ac_cv_lib_dld_shl_load=no ;;
13039esac
13040fi
13041rm -f core conftest.err conftest.$ac_objext conftest.beam \
13042    conftest$ac_exeext conftest.$ac_ext
13043LIBS=$ac_check_lib_save_LIBS ;;
13044esac
13045fi
13046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13047printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13048if test "x$ac_cv_lib_dld_shl_load" = xyes
13049then :
13050  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13051else case e in #(
13052  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13053if test "x$ac_cv_func_dlopen" = xyes
13054then :
13055  lt_cv_dlopen=dlopen
13056else case e in #(
13057  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13058printf %s "checking for dlopen in -ldl... " >&6; }
13059if test ${ac_cv_lib_dl_dlopen+y}
13060then :
13061  printf %s "(cached) " >&6
13062else case e in #(
13063  e) ac_check_lib_save_LIBS=$LIBS
13064LIBS="-ldl  $LIBS"
13065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066/* end confdefs.h.  */
13067
13068/* Override any GCC internal prototype to avoid an error.
13069   Use char because int might match the return type of a GCC
13070   builtin and then its argument prototype would still apply.
13071   The 'extern "C"' is for builds by C++ compilers;
13072   although this is not generally supported in C code supporting it here
13073   has little cost and some practical benefit (sr 110532).  */
13074#ifdef __cplusplus
13075extern "C"
13076#endif
13077char dlopen (void);
13078int
13079main (void)
13080{
13081return dlopen ();
13082  ;
13083  return 0;
13084}
13085_ACEOF
13086if ac_fn_c_try_link "$LINENO"
13087then :
13088  ac_cv_lib_dl_dlopen=yes
13089else case e in #(
13090  e) ac_cv_lib_dl_dlopen=no ;;
13091esac
13092fi
13093rm -f core conftest.err conftest.$ac_objext conftest.beam \
13094    conftest$ac_exeext conftest.$ac_ext
13095LIBS=$ac_check_lib_save_LIBS ;;
13096esac
13097fi
13098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13099printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13100if test "x$ac_cv_lib_dl_dlopen" = xyes
13101then :
13102  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13103else case e in #(
13104  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13105printf %s "checking for dlopen in -lsvld... " >&6; }
13106if test ${ac_cv_lib_svld_dlopen+y}
13107then :
13108  printf %s "(cached) " >&6
13109else case e in #(
13110  e) ac_check_lib_save_LIBS=$LIBS
13111LIBS="-lsvld  $LIBS"
13112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113/* end confdefs.h.  */
13114
13115/* Override any GCC internal prototype to avoid an error.
13116   Use char because int might match the return type of a GCC
13117   builtin and then its argument prototype would still apply.
13118   The 'extern "C"' is for builds by C++ compilers;
13119   although this is not generally supported in C code supporting it here
13120   has little cost and some practical benefit (sr 110532).  */
13121#ifdef __cplusplus
13122extern "C"
13123#endif
13124char dlopen (void);
13125int
13126main (void)
13127{
13128return dlopen ();
13129  ;
13130  return 0;
13131}
13132_ACEOF
13133if ac_fn_c_try_link "$LINENO"
13134then :
13135  ac_cv_lib_svld_dlopen=yes
13136else case e in #(
13137  e) ac_cv_lib_svld_dlopen=no ;;
13138esac
13139fi
13140rm -f core conftest.err conftest.$ac_objext conftest.beam \
13141    conftest$ac_exeext conftest.$ac_ext
13142LIBS=$ac_check_lib_save_LIBS ;;
13143esac
13144fi
13145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13146printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13147if test "x$ac_cv_lib_svld_dlopen" = xyes
13148then :
13149  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13150else case e in #(
13151  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13152printf %s "checking for dld_link in -ldld... " >&6; }
13153if test ${ac_cv_lib_dld_dld_link+y}
13154then :
13155  printf %s "(cached) " >&6
13156else case e in #(
13157  e) ac_check_lib_save_LIBS=$LIBS
13158LIBS="-ldld  $LIBS"
13159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160/* end confdefs.h.  */
13161
13162/* Override any GCC internal prototype to avoid an error.
13163   Use char because int might match the return type of a GCC
13164   builtin and then its argument prototype would still apply.
13165   The 'extern "C"' is for builds by C++ compilers;
13166   although this is not generally supported in C code supporting it here
13167   has little cost and some practical benefit (sr 110532).  */
13168#ifdef __cplusplus
13169extern "C"
13170#endif
13171char dld_link (void);
13172int
13173main (void)
13174{
13175return dld_link ();
13176  ;
13177  return 0;
13178}
13179_ACEOF
13180if ac_fn_c_try_link "$LINENO"
13181then :
13182  ac_cv_lib_dld_dld_link=yes
13183else case e in #(
13184  e) ac_cv_lib_dld_dld_link=no ;;
13185esac
13186fi
13187rm -f core conftest.err conftest.$ac_objext conftest.beam \
13188    conftest$ac_exeext conftest.$ac_ext
13189LIBS=$ac_check_lib_save_LIBS ;;
13190esac
13191fi
13192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13193printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13194if test "x$ac_cv_lib_dld_dld_link" = xyes
13195then :
13196  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13197fi
13198
13199	       ;;
13200esac
13201fi
13202
13203	     ;;
13204esac
13205fi
13206
13207	   ;;
13208esac
13209fi
13210
13211	 ;;
13212esac
13213fi
13214
13215       ;;
13216esac
13217fi
13218
13219    ;;
13220  esac
13221
13222  if test no = "$lt_cv_dlopen"; then
13223    enable_dlopen=no
13224  else
13225    enable_dlopen=yes
13226  fi
13227
13228  case $lt_cv_dlopen in
13229  dlopen)
13230    save_CPPFLAGS=$CPPFLAGS
13231    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13232
13233    save_LDFLAGS=$LDFLAGS
13234    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13235
13236    save_LIBS=$LIBS
13237    LIBS="$lt_cv_dlopen_libs $LIBS"
13238
13239    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13240printf %s "checking whether a program can dlopen itself... " >&6; }
13241if test ${lt_cv_dlopen_self+y}
13242then :
13243  printf %s "(cached) " >&6
13244else case e in #(
13245  e) 	  if test yes = "$cross_compiling"; then :
13246  lt_cv_dlopen_self=cross
13247else
13248  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13249  lt_status=$lt_dlunknown
13250  cat > conftest.$ac_ext <<_LT_EOF
13251#line $LINENO "configure"
13252#include "confdefs.h"
13253
13254#if HAVE_DLFCN_H
13255#include <dlfcn.h>
13256#endif
13257
13258#include <stdio.h>
13259
13260#ifdef RTLD_GLOBAL
13261#  define LT_DLGLOBAL		RTLD_GLOBAL
13262#else
13263#  ifdef DL_GLOBAL
13264#    define LT_DLGLOBAL		DL_GLOBAL
13265#  else
13266#    define LT_DLGLOBAL		0
13267#  endif
13268#endif
13269
13270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13271   find out it does not work in some platform. */
13272#ifndef LT_DLLAZY_OR_NOW
13273#  ifdef RTLD_LAZY
13274#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13275#  else
13276#    ifdef DL_LAZY
13277#      define LT_DLLAZY_OR_NOW		DL_LAZY
13278#    else
13279#      ifdef RTLD_NOW
13280#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13281#      else
13282#        ifdef DL_NOW
13283#          define LT_DLLAZY_OR_NOW	DL_NOW
13284#        else
13285#          define LT_DLLAZY_OR_NOW	0
13286#        endif
13287#      endif
13288#    endif
13289#  endif
13290#endif
13291
13292/* When -fvisibility=hidden is used, assume the code has been annotated
13293   correspondingly for the symbols needed.  */
13294#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13295int fnord (void) __attribute__((visibility("default")));
13296#endif
13297
13298int fnord (void) { return 42; }
13299int main (void)
13300{
13301  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13302  int status = $lt_dlunknown;
13303
13304  if (self)
13305    {
13306      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13307      else
13308        {
13309	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13310          else puts (dlerror ());
13311	}
13312      /* dlclose (self); */
13313    }
13314  else
13315    puts (dlerror ());
13316
13317  return status;
13318}
13319_LT_EOF
13320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13321  (eval $ac_link) 2>&5
13322  ac_status=$?
13323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13324  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13325    (./conftest; exit; ) >&5 2>/dev/null
13326    lt_status=$?
13327    case x$lt_status in
13328      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13329      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13330      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13331    esac
13332  else :
13333    # compilation failed
13334    lt_cv_dlopen_self=no
13335  fi
13336fi
13337rm -fr conftest*
13338
13339     ;;
13340esac
13341fi
13342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13343printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13344
13345    if test yes = "$lt_cv_dlopen_self"; then
13346      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13347      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13348printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13349if test ${lt_cv_dlopen_self_static+y}
13350then :
13351  printf %s "(cached) " >&6
13352else case e in #(
13353  e) 	  if test yes = "$cross_compiling"; then :
13354  lt_cv_dlopen_self_static=cross
13355else
13356  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13357  lt_status=$lt_dlunknown
13358  cat > conftest.$ac_ext <<_LT_EOF
13359#line $LINENO "configure"
13360#include "confdefs.h"
13361
13362#if HAVE_DLFCN_H
13363#include <dlfcn.h>
13364#endif
13365
13366#include <stdio.h>
13367
13368#ifdef RTLD_GLOBAL
13369#  define LT_DLGLOBAL		RTLD_GLOBAL
13370#else
13371#  ifdef DL_GLOBAL
13372#    define LT_DLGLOBAL		DL_GLOBAL
13373#  else
13374#    define LT_DLGLOBAL		0
13375#  endif
13376#endif
13377
13378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13379   find out it does not work in some platform. */
13380#ifndef LT_DLLAZY_OR_NOW
13381#  ifdef RTLD_LAZY
13382#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13383#  else
13384#    ifdef DL_LAZY
13385#      define LT_DLLAZY_OR_NOW		DL_LAZY
13386#    else
13387#      ifdef RTLD_NOW
13388#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13389#      else
13390#        ifdef DL_NOW
13391#          define LT_DLLAZY_OR_NOW	DL_NOW
13392#        else
13393#          define LT_DLLAZY_OR_NOW	0
13394#        endif
13395#      endif
13396#    endif
13397#  endif
13398#endif
13399
13400/* When -fvisibility=hidden is used, assume the code has been annotated
13401   correspondingly for the symbols needed.  */
13402#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13403int fnord (void) __attribute__((visibility("default")));
13404#endif
13405
13406int fnord (void) { return 42; }
13407int main (void)
13408{
13409  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13410  int status = $lt_dlunknown;
13411
13412  if (self)
13413    {
13414      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13415      else
13416        {
13417	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13418          else puts (dlerror ());
13419	}
13420      /* dlclose (self); */
13421    }
13422  else
13423    puts (dlerror ());
13424
13425  return status;
13426}
13427_LT_EOF
13428  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13429  (eval $ac_link) 2>&5
13430  ac_status=$?
13431  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13432  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13433    (./conftest; exit; ) >&5 2>/dev/null
13434    lt_status=$?
13435    case x$lt_status in
13436      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13437      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13438      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13439    esac
13440  else :
13441    # compilation failed
13442    lt_cv_dlopen_self_static=no
13443  fi
13444fi
13445rm -fr conftest*
13446
13447       ;;
13448esac
13449fi
13450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13451printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13452    fi
13453
13454    CPPFLAGS=$save_CPPFLAGS
13455    LDFLAGS=$save_LDFLAGS
13456    LIBS=$save_LIBS
13457    ;;
13458  esac
13459
13460  case $lt_cv_dlopen_self in
13461  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13462  *) enable_dlopen_self=unknown ;;
13463  esac
13464
13465  case $lt_cv_dlopen_self_static in
13466  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13467  *) enable_dlopen_self_static=unknown ;;
13468  esac
13469fi
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487striplib=
13488old_striplib=
13489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13490printf %s "checking whether stripping libraries is possible... " >&6; }
13491if test -z "$STRIP"; then
13492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13493printf "%s\n" "no" >&6; }
13494else
13495  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13496    old_striplib="$STRIP --strip-debug"
13497    striplib="$STRIP --strip-unneeded"
13498    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13499printf "%s\n" "yes" >&6; }
13500  else
13501    case $host_os in
13502    darwin*)
13503      # FIXME - insert some real tests, host_os isn't really good enough
13504      striplib="$STRIP -x"
13505      old_striplib="$STRIP -S"
13506      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13507printf "%s\n" "yes" >&6; }
13508      ;;
13509    freebsd*)
13510      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13511        old_striplib="$STRIP --strip-debug"
13512        striplib="$STRIP --strip-unneeded"
13513        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13514printf "%s\n" "yes" >&6; }
13515      else
13516        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517printf "%s\n" "no" >&6; }
13518      fi
13519      ;;
13520    *)
13521      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522printf "%s\n" "no" >&6; }
13523      ;;
13524    esac
13525  fi
13526fi
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539  # Report what library types will actually be built
13540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13541printf %s "checking if libtool supports shared libraries... " >&6; }
13542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13543printf "%s\n" "$can_build_shared" >&6; }
13544
13545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13546printf %s "checking whether to build shared libraries... " >&6; }
13547  test no = "$can_build_shared" && enable_shared=no
13548
13549  # On AIX, shared libraries and static libraries use the same namespace, and
13550  # are all built from PIC.
13551  case $host_os in
13552  aix3*)
13553    test yes = "$enable_shared" && enable_static=no
13554    if test -n "$RANLIB"; then
13555      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13556      postinstall_cmds='$RANLIB $lib'
13557    fi
13558    ;;
13559
13560  aix[4-9]*)
13561    if test ia64 != "$host_cpu"; then
13562      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13563      yes,aix,yes) ;;			# shared object as lib.so file only
13564      yes,svr4,*) ;;			# shared object as lib.so archive member only
13565      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13566      esac
13567    fi
13568    ;;
13569  esac
13570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13571printf "%s\n" "$enable_shared" >&6; }
13572
13573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13574printf %s "checking whether to build static libraries... " >&6; }
13575  # Make sure either enable_shared or enable_static is yes.
13576  test yes = "$enable_shared" || enable_static=yes
13577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13578printf "%s\n" "$enable_static" >&6; }
13579
13580
13581
13582
13583fi
13584ac_ext=c
13585ac_cpp='$CPP $CPPFLAGS'
13586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_c_compiler_gnu
13589
13590CC=$lt_save_CC
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606        ac_config_commands="$ac_config_commands libtool"
13607
13608
13609
13610
13611# Only expand once:
13612
13613
13614
13615# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13628printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13629if test ${ac_cv_c_undeclared_builtin_options+y}
13630then :
13631  printf %s "(cached) " >&6
13632else case e in #(
13633  e) ac_save_CFLAGS=$CFLAGS
13634   ac_cv_c_undeclared_builtin_options='cannot detect'
13635   for ac_arg in '' -fno-builtin; do
13636     CFLAGS="$ac_save_CFLAGS $ac_arg"
13637     # This test program should *not* compile successfully.
13638     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639/* end confdefs.h.  */
13640
13641int
13642main (void)
13643{
13644(void) strchr;
13645  ;
13646  return 0;
13647}
13648_ACEOF
13649if ac_fn_c_try_compile "$LINENO"
13650then :
13651
13652else case e in #(
13653  e) # This test program should compile successfully.
13654        # No library function is consistently available on
13655        # freestanding implementations, so test against a dummy
13656        # declaration.  Include always-available headers on the
13657        # off chance that they somehow elicit warnings.
13658        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659/* end confdefs.h.  */
13660#include <float.h>
13661#include <limits.h>
13662#include <stdarg.h>
13663#include <stddef.h>
13664extern void ac_decl (int, char *);
13665
13666int
13667main (void)
13668{
13669(void) ac_decl (0, (char *) 0);
13670  (void) ac_decl;
13671
13672  ;
13673  return 0;
13674}
13675_ACEOF
13676if ac_fn_c_try_compile "$LINENO"
13677then :
13678  if test x"$ac_arg" = x
13679then :
13680  ac_cv_c_undeclared_builtin_options='none needed'
13681else case e in #(
13682  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13683esac
13684fi
13685          break
13686fi
13687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13688esac
13689fi
13690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13691    done
13692    CFLAGS=$ac_save_CFLAGS
13693   ;;
13694esac
13695fi
13696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13697printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13698  case $ac_cv_c_undeclared_builtin_options in #(
13699  'cannot detect') :
13700    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13701printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13702as_fn_error $? "cannot make $CC report undeclared builtins
13703See 'config.log' for more details" "$LINENO" 5; } ;; #(
13704  'none needed') :
13705    ac_c_undeclared_builtin_options='' ;; #(
13706  *) :
13707    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13708esac
13709
13710
13711
13712
13713
13714ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13715if test "x$ac_cv_have_decl___clang__" = xyes
13716then :
13717  CLANGCC="yes"
13718else case e in #(
13719  e) CLANGCC="no" ;;
13720esac
13721fi
13722ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13723if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13724then :
13725  INTELCC="yes"
13726else case e in #(
13727  e) INTELCC="no" ;;
13728esac
13729fi
13730ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13731if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13732then :
13733  SUNCC="yes"
13734else case e in #(
13735  e) SUNCC="no" ;;
13736esac
13737fi
13738
13739
13740
13741
13742
13743
13744
13745
13746if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13747	if test -n "$ac_tool_prefix"; then
13748  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13749set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751printf %s "checking for $ac_word... " >&6; }
13752if test ${ac_cv_path_PKG_CONFIG+y}
13753then :
13754  printf %s "(cached) " >&6
13755else case e in #(
13756  e) case $PKG_CONFIG in
13757  [\\/]* | ?:[\\/]*)
13758  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13759  ;;
13760  *)
13761  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764  IFS=$as_save_IFS
13765  case $as_dir in #(((
13766    '') as_dir=./ ;;
13767    */) ;;
13768    *) as_dir=$as_dir/ ;;
13769  esac
13770    for ac_exec_ext in '' $ac_executable_extensions; do
13771  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13772    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13773    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13774    break 2
13775  fi
13776done
13777  done
13778IFS=$as_save_IFS
13779
13780  ;;
13781esac ;;
13782esac
13783fi
13784PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13785if test -n "$PKG_CONFIG"; then
13786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13787printf "%s\n" "$PKG_CONFIG" >&6; }
13788else
13789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790printf "%s\n" "no" >&6; }
13791fi
13792
13793
13794fi
13795if test -z "$ac_cv_path_PKG_CONFIG"; then
13796  ac_pt_PKG_CONFIG=$PKG_CONFIG
13797  # Extract the first word of "pkg-config", so it can be a program name with args.
13798set dummy pkg-config; ac_word=$2
13799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13800printf %s "checking for $ac_word... " >&6; }
13801if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13802then :
13803  printf %s "(cached) " >&6
13804else case e in #(
13805  e) case $ac_pt_PKG_CONFIG in
13806  [\\/]* | ?:[\\/]*)
13807  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13808  ;;
13809  *)
13810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811for as_dir in $PATH
13812do
13813  IFS=$as_save_IFS
13814  case $as_dir in #(((
13815    '') as_dir=./ ;;
13816    */) ;;
13817    *) as_dir=$as_dir/ ;;
13818  esac
13819    for ac_exec_ext in '' $ac_executable_extensions; do
13820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13821    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13823    break 2
13824  fi
13825done
13826  done
13827IFS=$as_save_IFS
13828
13829  ;;
13830esac ;;
13831esac
13832fi
13833ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13834if test -n "$ac_pt_PKG_CONFIG"; then
13835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13836printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13837else
13838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839printf "%s\n" "no" >&6; }
13840fi
13841
13842  if test "x$ac_pt_PKG_CONFIG" = x; then
13843    PKG_CONFIG=""
13844  else
13845    case $cross_compiling:$ac_tool_warned in
13846yes:)
13847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13849ac_tool_warned=yes ;;
13850esac
13851    PKG_CONFIG=$ac_pt_PKG_CONFIG
13852  fi
13853else
13854  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13855fi
13856
13857fi
13858if test -n "$PKG_CONFIG"; then
13859	_pkg_min_version=0.9.0
13860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13861printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13862	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13864printf "%s\n" "yes" >&6; }
13865	else
13866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867printf "%s\n" "no" >&6; }
13868		PKG_CONFIG=""
13869	fi
13870fi
13871
13872
13873
13874
13875
13876# Check whether --enable-selective-werror was given.
13877if test ${enable_selective_werror+y}
13878then :
13879  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13880else case e in #(
13881  e) SELECTIVE_WERROR=yes ;;
13882esac
13883fi
13884
13885
13886
13887
13888
13889# -v is too short to test reliably with XORG_TESTSET_CFLAG
13890if test "x$SUNCC" = "xyes"; then
13891    BASE_CFLAGS="-v"
13892else
13893    BASE_CFLAGS=""
13894fi
13895
13896# This chunk of warnings were those that existed in the legacy CWARNFLAGS
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 case e in #(
13920  e) 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 case e in #(
13928  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13929esac
13930fi
13931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13932esac
13933fi
13934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13937	CFLAGS="$xorg_testset_save_CFLAGS"
13938fi
13939
13940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943	fi
13944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13947if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13948then :
13949  printf %s "(cached) " >&6
13950else case e in #(
13951  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952/* end confdefs.h.  */
13953int i;
13954_ACEOF
13955if ac_fn_c_try_compile "$LINENO"
13956then :
13957  xorg_cv_cc_flag_unused_command_line_argument=yes
13958else case e in #(
13959  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13960esac
13961fi
13962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13963esac
13964fi
13965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13968	CFLAGS="$xorg_testset_save_CFLAGS"
13969fi
13970
13971found="no"
13972
13973	if test $found = "no" ; then
13974		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13976		fi
13977
13978		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13980		fi
13981
13982		CFLAGS="$CFLAGS -Wall"
13983
13984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13985printf %s "checking if $CC supports -Wall... " >&6; }
13986		cacheid=xorg_cv_cc_flag__Wall
13987		if eval test \${$cacheid+y}
13988then :
13989  printf %s "(cached) " >&6
13990else case e in #(
13991  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h.  */
13993int i;
13994int
13995main (void)
13996{
13997
13998  ;
13999  return 0;
14000}
14001_ACEOF
14002if ac_fn_c_try_link "$LINENO"
14003then :
14004  eval $cacheid=yes
14005else case e in #(
14006  e) eval $cacheid=no ;;
14007esac
14008fi
14009rm -f core conftest.err conftest.$ac_objext conftest.beam \
14010    conftest$ac_exeext conftest.$ac_ext ;;
14011esac
14012fi
14013
14014
14015		CFLAGS="$xorg_testset_save_CFLAGS"
14016
14017		eval supported=\$$cacheid
14018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14019printf "%s\n" "$supported" >&6; }
14020		if test "$supported" = "yes" ; then
14021			BASE_CFLAGS="$BASE_CFLAGS -Wall"
14022			found="yes"
14023		fi
14024	fi
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040xorg_testset_save_CFLAGS="$CFLAGS"
14041
14042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14046if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14047then :
14048  printf %s "(cached) " >&6
14049else case e in #(
14050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051/* end confdefs.h.  */
14052int i;
14053_ACEOF
14054if ac_fn_c_try_compile "$LINENO"
14055then :
14056  xorg_cv_cc_flag_unknown_warning_option=yes
14057else case e in #(
14058  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14059esac
14060fi
14061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14062esac
14063fi
14064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14067	CFLAGS="$xorg_testset_save_CFLAGS"
14068fi
14069
14070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073	fi
14074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14075	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14077if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14078then :
14079  printf %s "(cached) " >&6
14080else case e in #(
14081  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082/* end confdefs.h.  */
14083int i;
14084_ACEOF
14085if ac_fn_c_try_compile "$LINENO"
14086then :
14087  xorg_cv_cc_flag_unused_command_line_argument=yes
14088else case e in #(
14089  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14090esac
14091fi
14092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14093esac
14094fi
14095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14098	CFLAGS="$xorg_testset_save_CFLAGS"
14099fi
14100
14101found="no"
14102
14103	if test $found = "no" ; then
14104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14106		fi
14107
14108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14110		fi
14111
14112		CFLAGS="$CFLAGS -Wpointer-arith"
14113
14114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14115printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14116		cacheid=xorg_cv_cc_flag__Wpointer_arith
14117		if eval test \${$cacheid+y}
14118then :
14119  printf %s "(cached) " >&6
14120else case e in #(
14121  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h.  */
14123int i;
14124int
14125main (void)
14126{
14127
14128  ;
14129  return 0;
14130}
14131_ACEOF
14132if ac_fn_c_try_link "$LINENO"
14133then :
14134  eval $cacheid=yes
14135else case e in #(
14136  e) eval $cacheid=no ;;
14137esac
14138fi
14139rm -f core conftest.err conftest.$ac_objext conftest.beam \
14140    conftest$ac_exeext conftest.$ac_ext ;;
14141esac
14142fi
14143
14144
14145		CFLAGS="$xorg_testset_save_CFLAGS"
14146
14147		eval supported=\$$cacheid
14148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14149printf "%s\n" "$supported" >&6; }
14150		if test "$supported" = "yes" ; then
14151			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14152			found="yes"
14153		fi
14154	fi
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170xorg_testset_save_CFLAGS="$CFLAGS"
14171
14172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14177then :
14178  printf %s "(cached) " >&6
14179else case e in #(
14180  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181/* end confdefs.h.  */
14182int i;
14183_ACEOF
14184if ac_fn_c_try_compile "$LINENO"
14185then :
14186  xorg_cv_cc_flag_unknown_warning_option=yes
14187else case e in #(
14188  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14189esac
14190fi
14191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14192esac
14193fi
14194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14197	CFLAGS="$xorg_testset_save_CFLAGS"
14198fi
14199
14200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14203	fi
14204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14208then :
14209  printf %s "(cached) " >&6
14210else case e in #(
14211  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212/* end confdefs.h.  */
14213int i;
14214_ACEOF
14215if ac_fn_c_try_compile "$LINENO"
14216then :
14217  xorg_cv_cc_flag_unused_command_line_argument=yes
14218else case e in #(
14219  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14220esac
14221fi
14222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14223esac
14224fi
14225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14228	CFLAGS="$xorg_testset_save_CFLAGS"
14229fi
14230
14231found="no"
14232
14233	if test $found = "no" ; then
14234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14236		fi
14237
14238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14240		fi
14241
14242		CFLAGS="$CFLAGS -Wmissing-declarations"
14243
14244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14245printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14246		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14247		if eval test \${$cacheid+y}
14248then :
14249  printf %s "(cached) " >&6
14250else case e in #(
14251  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252/* end confdefs.h.  */
14253int i;
14254int
14255main (void)
14256{
14257
14258  ;
14259  return 0;
14260}
14261_ACEOF
14262if ac_fn_c_try_link "$LINENO"
14263then :
14264  eval $cacheid=yes
14265else case e in #(
14266  e) eval $cacheid=no ;;
14267esac
14268fi
14269rm -f core conftest.err conftest.$ac_objext conftest.beam \
14270    conftest$ac_exeext conftest.$ac_ext ;;
14271esac
14272fi
14273
14274
14275		CFLAGS="$xorg_testset_save_CFLAGS"
14276
14277		eval supported=\$$cacheid
14278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14279printf "%s\n" "$supported" >&6; }
14280		if test "$supported" = "yes" ; then
14281			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14282			found="yes"
14283		fi
14284	fi
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300xorg_testset_save_CFLAGS="$CFLAGS"
14301
14302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14307then :
14308  printf %s "(cached) " >&6
14309else case e in #(
14310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311/* end confdefs.h.  */
14312int i;
14313_ACEOF
14314if ac_fn_c_try_compile "$LINENO"
14315then :
14316  xorg_cv_cc_flag_unknown_warning_option=yes
14317else case e in #(
14318  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14319esac
14320fi
14321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14322esac
14323fi
14324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14327	CFLAGS="$xorg_testset_save_CFLAGS"
14328fi
14329
14330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14333	fi
14334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14337if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14338then :
14339  printf %s "(cached) " >&6
14340else case e in #(
14341  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342/* end confdefs.h.  */
14343int i;
14344_ACEOF
14345if ac_fn_c_try_compile "$LINENO"
14346then :
14347  xorg_cv_cc_flag_unused_command_line_argument=yes
14348else case e in #(
14349  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14350esac
14351fi
14352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14353esac
14354fi
14355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14358	CFLAGS="$xorg_testset_save_CFLAGS"
14359fi
14360
14361found="no"
14362
14363	if test $found = "no" ; then
14364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366		fi
14367
14368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14370		fi
14371
14372		CFLAGS="$CFLAGS -Wformat=2"
14373
14374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14375printf %s "checking if $CC supports -Wformat=2... " >&6; }
14376		cacheid=xorg_cv_cc_flag__Wformat_2
14377		if eval test \${$cacheid+y}
14378then :
14379  printf %s "(cached) " >&6
14380else case e in #(
14381  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382/* end confdefs.h.  */
14383int i;
14384int
14385main (void)
14386{
14387
14388  ;
14389  return 0;
14390}
14391_ACEOF
14392if ac_fn_c_try_link "$LINENO"
14393then :
14394  eval $cacheid=yes
14395else case e in #(
14396  e) eval $cacheid=no ;;
14397esac
14398fi
14399rm -f core conftest.err conftest.$ac_objext conftest.beam \
14400    conftest$ac_exeext conftest.$ac_ext ;;
14401esac
14402fi
14403
14404
14405		CFLAGS="$xorg_testset_save_CFLAGS"
14406
14407		eval supported=\$$cacheid
14408		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14409printf "%s\n" "$supported" >&6; }
14410		if test "$supported" = "yes" ; then
14411			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14412			found="yes"
14413		fi
14414	fi
14415
14416	if test $found = "no" ; then
14417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419		fi
14420
14421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14423		fi
14424
14425		CFLAGS="$CFLAGS -Wformat"
14426
14427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14428printf %s "checking if $CC supports -Wformat... " >&6; }
14429		cacheid=xorg_cv_cc_flag__Wformat
14430		if eval test \${$cacheid+y}
14431then :
14432  printf %s "(cached) " >&6
14433else case e in #(
14434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436int i;
14437int
14438main (void)
14439{
14440
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445if ac_fn_c_try_link "$LINENO"
14446then :
14447  eval $cacheid=yes
14448else case e in #(
14449  e) eval $cacheid=no ;;
14450esac
14451fi
14452rm -f core conftest.err conftest.$ac_objext conftest.beam \
14453    conftest$ac_exeext conftest.$ac_ext ;;
14454esac
14455fi
14456
14457
14458		CFLAGS="$xorg_testset_save_CFLAGS"
14459
14460		eval supported=\$$cacheid
14461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14462printf "%s\n" "$supported" >&6; }
14463		if test "$supported" = "yes" ; then
14464			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14465			found="yes"
14466		fi
14467	fi
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485xorg_testset_save_CFLAGS="$CFLAGS"
14486
14487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14491if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14492then :
14493  printf %s "(cached) " >&6
14494else case e in #(
14495  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496/* end confdefs.h.  */
14497int i;
14498_ACEOF
14499if ac_fn_c_try_compile "$LINENO"
14500then :
14501  xorg_cv_cc_flag_unknown_warning_option=yes
14502else case e in #(
14503  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14504esac
14505fi
14506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14507esac
14508fi
14509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14512	CFLAGS="$xorg_testset_save_CFLAGS"
14513fi
14514
14515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14518	fi
14519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14523then :
14524  printf %s "(cached) " >&6
14525else case e in #(
14526  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527/* end confdefs.h.  */
14528int i;
14529_ACEOF
14530if ac_fn_c_try_compile "$LINENO"
14531then :
14532  xorg_cv_cc_flag_unused_command_line_argument=yes
14533else case e in #(
14534  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14535esac
14536fi
14537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14538esac
14539fi
14540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14543	CFLAGS="$xorg_testset_save_CFLAGS"
14544fi
14545
14546found="no"
14547
14548	if test $found = "no" ; then
14549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14551		fi
14552
14553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14555		fi
14556
14557		CFLAGS="$CFLAGS -Wstrict-prototypes"
14558
14559		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14560printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14561		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14562		if eval test \${$cacheid+y}
14563then :
14564  printf %s "(cached) " >&6
14565else case e in #(
14566  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567/* end confdefs.h.  */
14568int i;
14569int
14570main (void)
14571{
14572
14573  ;
14574  return 0;
14575}
14576_ACEOF
14577if ac_fn_c_try_link "$LINENO"
14578then :
14579  eval $cacheid=yes
14580else case e in #(
14581  e) eval $cacheid=no ;;
14582esac
14583fi
14584rm -f core conftest.err conftest.$ac_objext conftest.beam \
14585    conftest$ac_exeext conftest.$ac_ext ;;
14586esac
14587fi
14588
14589
14590		CFLAGS="$xorg_testset_save_CFLAGS"
14591
14592		eval supported=\$$cacheid
14593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14594printf "%s\n" "$supported" >&6; }
14595		if test "$supported" = "yes" ; then
14596			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14597			found="yes"
14598		fi
14599	fi
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615xorg_testset_save_CFLAGS="$CFLAGS"
14616
14617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14620printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14621if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14622then :
14623  printf %s "(cached) " >&6
14624else case e in #(
14625  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626/* end confdefs.h.  */
14627int i;
14628_ACEOF
14629if ac_fn_c_try_compile "$LINENO"
14630then :
14631  xorg_cv_cc_flag_unknown_warning_option=yes
14632else case e in #(
14633  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14634esac
14635fi
14636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14637esac
14638fi
14639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14641	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14642	CFLAGS="$xorg_testset_save_CFLAGS"
14643fi
14644
14645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14646	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14647		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14648	fi
14649	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14652if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14653then :
14654  printf %s "(cached) " >&6
14655else case e in #(
14656  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657/* end confdefs.h.  */
14658int i;
14659_ACEOF
14660if ac_fn_c_try_compile "$LINENO"
14661then :
14662  xorg_cv_cc_flag_unused_command_line_argument=yes
14663else case e in #(
14664  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14665esac
14666fi
14667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14668esac
14669fi
14670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14671printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14673	CFLAGS="$xorg_testset_save_CFLAGS"
14674fi
14675
14676found="no"
14677
14678	if test $found = "no" ; then
14679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14681		fi
14682
14683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14685		fi
14686
14687		CFLAGS="$CFLAGS -Wmissing-prototypes"
14688
14689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14690printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14691		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14692		if eval test \${$cacheid+y}
14693then :
14694  printf %s "(cached) " >&6
14695else case e in #(
14696  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697/* end confdefs.h.  */
14698int i;
14699int
14700main (void)
14701{
14702
14703  ;
14704  return 0;
14705}
14706_ACEOF
14707if ac_fn_c_try_link "$LINENO"
14708then :
14709  eval $cacheid=yes
14710else case e in #(
14711  e) eval $cacheid=no ;;
14712esac
14713fi
14714rm -f core conftest.err conftest.$ac_objext conftest.beam \
14715    conftest$ac_exeext conftest.$ac_ext ;;
14716esac
14717fi
14718
14719
14720		CFLAGS="$xorg_testset_save_CFLAGS"
14721
14722		eval supported=\$$cacheid
14723		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14724printf "%s\n" "$supported" >&6; }
14725		if test "$supported" = "yes" ; then
14726			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14727			found="yes"
14728		fi
14729	fi
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745xorg_testset_save_CFLAGS="$CFLAGS"
14746
14747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14751if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14752then :
14753  printf %s "(cached) " >&6
14754else case e in #(
14755  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756/* end confdefs.h.  */
14757int i;
14758_ACEOF
14759if ac_fn_c_try_compile "$LINENO"
14760then :
14761  xorg_cv_cc_flag_unknown_warning_option=yes
14762else case e in #(
14763  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14764esac
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14767esac
14768fi
14769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14772	CFLAGS="$xorg_testset_save_CFLAGS"
14773fi
14774
14775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14778	fi
14779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14783then :
14784  printf %s "(cached) " >&6
14785else case e in #(
14786  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787/* end confdefs.h.  */
14788int i;
14789_ACEOF
14790if ac_fn_c_try_compile "$LINENO"
14791then :
14792  xorg_cv_cc_flag_unused_command_line_argument=yes
14793else case e in #(
14794  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14795esac
14796fi
14797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14798esac
14799fi
14800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14803	CFLAGS="$xorg_testset_save_CFLAGS"
14804fi
14805
14806found="no"
14807
14808	if test $found = "no" ; then
14809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14811		fi
14812
14813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14815		fi
14816
14817		CFLAGS="$CFLAGS -Wnested-externs"
14818
14819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14820printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14821		cacheid=xorg_cv_cc_flag__Wnested_externs
14822		if eval test \${$cacheid+y}
14823then :
14824  printf %s "(cached) " >&6
14825else case e in #(
14826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827/* end confdefs.h.  */
14828int i;
14829int
14830main (void)
14831{
14832
14833  ;
14834  return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_link "$LINENO"
14838then :
14839  eval $cacheid=yes
14840else case e in #(
14841  e) eval $cacheid=no ;;
14842esac
14843fi
14844rm -f core conftest.err conftest.$ac_objext conftest.beam \
14845    conftest$ac_exeext conftest.$ac_ext ;;
14846esac
14847fi
14848
14849
14850		CFLAGS="$xorg_testset_save_CFLAGS"
14851
14852		eval supported=\$$cacheid
14853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14854printf "%s\n" "$supported" >&6; }
14855		if test "$supported" = "yes" ; then
14856			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14857			found="yes"
14858		fi
14859	fi
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875xorg_testset_save_CFLAGS="$CFLAGS"
14876
14877if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14878	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14880printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14881if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14882then :
14883  printf %s "(cached) " >&6
14884else case e in #(
14885  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886/* end confdefs.h.  */
14887int i;
14888_ACEOF
14889if ac_fn_c_try_compile "$LINENO"
14890then :
14891  xorg_cv_cc_flag_unknown_warning_option=yes
14892else case e in #(
14893  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14894esac
14895fi
14896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14897esac
14898fi
14899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14902	CFLAGS="$xorg_testset_save_CFLAGS"
14903fi
14904
14905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14908	fi
14909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14913then :
14914  printf %s "(cached) " >&6
14915else case e in #(
14916  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917/* end confdefs.h.  */
14918int i;
14919_ACEOF
14920if ac_fn_c_try_compile "$LINENO"
14921then :
14922  xorg_cv_cc_flag_unused_command_line_argument=yes
14923else case e in #(
14924  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14925esac
14926fi
14927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14928esac
14929fi
14930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14931printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14933	CFLAGS="$xorg_testset_save_CFLAGS"
14934fi
14935
14936found="no"
14937
14938	if test $found = "no" ; then
14939		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14941		fi
14942
14943		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14945		fi
14946
14947		CFLAGS="$CFLAGS -Wbad-function-cast"
14948
14949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14950printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14951		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14952		if eval test \${$cacheid+y}
14953then :
14954  printf %s "(cached) " >&6
14955else case e in #(
14956  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957/* end confdefs.h.  */
14958int i;
14959int
14960main (void)
14961{
14962
14963  ;
14964  return 0;
14965}
14966_ACEOF
14967if ac_fn_c_try_link "$LINENO"
14968then :
14969  eval $cacheid=yes
14970else case e in #(
14971  e) eval $cacheid=no ;;
14972esac
14973fi
14974rm -f core conftest.err conftest.$ac_objext conftest.beam \
14975    conftest$ac_exeext conftest.$ac_ext ;;
14976esac
14977fi
14978
14979
14980		CFLAGS="$xorg_testset_save_CFLAGS"
14981
14982		eval supported=\$$cacheid
14983		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14984printf "%s\n" "$supported" >&6; }
14985		if test "$supported" = "yes" ; then
14986			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14987			found="yes"
14988		fi
14989	fi
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005xorg_testset_save_CFLAGS="$CFLAGS"
15006
15007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15011if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15012then :
15013  printf %s "(cached) " >&6
15014else case e in #(
15015  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016/* end confdefs.h.  */
15017int i;
15018_ACEOF
15019if ac_fn_c_try_compile "$LINENO"
15020then :
15021  xorg_cv_cc_flag_unknown_warning_option=yes
15022else case e in #(
15023  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15024esac
15025fi
15026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15027esac
15028fi
15029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15030printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15032	CFLAGS="$xorg_testset_save_CFLAGS"
15033fi
15034
15035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15038	fi
15039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15041printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15042if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15043then :
15044  printf %s "(cached) " >&6
15045else case e in #(
15046  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047/* end confdefs.h.  */
15048int i;
15049_ACEOF
15050if ac_fn_c_try_compile "$LINENO"
15051then :
15052  xorg_cv_cc_flag_unused_command_line_argument=yes
15053else case e in #(
15054  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15055esac
15056fi
15057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15058esac
15059fi
15060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15063	CFLAGS="$xorg_testset_save_CFLAGS"
15064fi
15065
15066found="no"
15067
15068	if test $found = "no" ; then
15069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15071		fi
15072
15073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15075		fi
15076
15077		CFLAGS="$CFLAGS -Wold-style-definition"
15078
15079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15080printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15081		cacheid=xorg_cv_cc_flag__Wold_style_definition
15082		if eval test \${$cacheid+y}
15083then :
15084  printf %s "(cached) " >&6
15085else case e in #(
15086  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087/* end confdefs.h.  */
15088int i;
15089int
15090main (void)
15091{
15092
15093  ;
15094  return 0;
15095}
15096_ACEOF
15097if ac_fn_c_try_link "$LINENO"
15098then :
15099  eval $cacheid=yes
15100else case e in #(
15101  e) eval $cacheid=no ;;
15102esac
15103fi
15104rm -f core conftest.err conftest.$ac_objext conftest.beam \
15105    conftest$ac_exeext conftest.$ac_ext ;;
15106esac
15107fi
15108
15109
15110		CFLAGS="$xorg_testset_save_CFLAGS"
15111
15112		eval supported=\$$cacheid
15113		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15114printf "%s\n" "$supported" >&6; }
15115		if test "$supported" = "yes" ; then
15116			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15117			found="yes"
15118		fi
15119	fi
15120
15121	if test $found = "no" ; then
15122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15124		fi
15125
15126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15128		fi
15129
15130		CFLAGS="$CFLAGS -fd"
15131
15132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15133printf %s "checking if $CC supports -fd... " >&6; }
15134		cacheid=xorg_cv_cc_flag__fd
15135		if eval test \${$cacheid+y}
15136then :
15137  printf %s "(cached) " >&6
15138else case e in #(
15139  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140/* end confdefs.h.  */
15141int i;
15142int
15143main (void)
15144{
15145
15146  ;
15147  return 0;
15148}
15149_ACEOF
15150if ac_fn_c_try_link "$LINENO"
15151then :
15152  eval $cacheid=yes
15153else case e in #(
15154  e) eval $cacheid=no ;;
15155esac
15156fi
15157rm -f core conftest.err conftest.$ac_objext conftest.beam \
15158    conftest$ac_exeext conftest.$ac_ext ;;
15159esac
15160fi
15161
15162
15163		CFLAGS="$xorg_testset_save_CFLAGS"
15164
15165		eval supported=\$$cacheid
15166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15167printf "%s\n" "$supported" >&6; }
15168		if test "$supported" = "yes" ; then
15169			BASE_CFLAGS="$BASE_CFLAGS -fd"
15170			found="yes"
15171		fi
15172	fi
15173
15174
15175
15176
15177
15178# This chunk adds additional warnings that could catch undesired effects.
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192xorg_testset_save_CFLAGS="$CFLAGS"
15193
15194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15199then :
15200  printf %s "(cached) " >&6
15201else case e in #(
15202  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204int i;
15205_ACEOF
15206if ac_fn_c_try_compile "$LINENO"
15207then :
15208  xorg_cv_cc_flag_unknown_warning_option=yes
15209else case e in #(
15210  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15211esac
15212fi
15213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15214esac
15215fi
15216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15219	CFLAGS="$xorg_testset_save_CFLAGS"
15220fi
15221
15222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15225	fi
15226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15230then :
15231  printf %s "(cached) " >&6
15232else case e in #(
15233  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234/* end confdefs.h.  */
15235int i;
15236_ACEOF
15237if ac_fn_c_try_compile "$LINENO"
15238then :
15239  xorg_cv_cc_flag_unused_command_line_argument=yes
15240else case e in #(
15241  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15242esac
15243fi
15244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15245esac
15246fi
15247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15250	CFLAGS="$xorg_testset_save_CFLAGS"
15251fi
15252
15253found="no"
15254
15255	if test $found = "no" ; then
15256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15258		fi
15259
15260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15262		fi
15263
15264		CFLAGS="$CFLAGS -Wunused"
15265
15266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15267printf %s "checking if $CC supports -Wunused... " >&6; }
15268		cacheid=xorg_cv_cc_flag__Wunused
15269		if eval test \${$cacheid+y}
15270then :
15271  printf %s "(cached) " >&6
15272else case e in #(
15273  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274/* end confdefs.h.  */
15275int i;
15276int
15277main (void)
15278{
15279
15280  ;
15281  return 0;
15282}
15283_ACEOF
15284if ac_fn_c_try_link "$LINENO"
15285then :
15286  eval $cacheid=yes
15287else case e in #(
15288  e) eval $cacheid=no ;;
15289esac
15290fi
15291rm -f core conftest.err conftest.$ac_objext conftest.beam \
15292    conftest$ac_exeext conftest.$ac_ext ;;
15293esac
15294fi
15295
15296
15297		CFLAGS="$xorg_testset_save_CFLAGS"
15298
15299		eval supported=\$$cacheid
15300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15301printf "%s\n" "$supported" >&6; }
15302		if test "$supported" = "yes" ; then
15303			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15304			found="yes"
15305		fi
15306	fi
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322xorg_testset_save_CFLAGS="$CFLAGS"
15323
15324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15327printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15328if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15329then :
15330  printf %s "(cached) " >&6
15331else case e in #(
15332  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h.  */
15334int i;
15335_ACEOF
15336if ac_fn_c_try_compile "$LINENO"
15337then :
15338  xorg_cv_cc_flag_unknown_warning_option=yes
15339else case e in #(
15340  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15341esac
15342fi
15343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15344esac
15345fi
15346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15349	CFLAGS="$xorg_testset_save_CFLAGS"
15350fi
15351
15352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15355	fi
15356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15360then :
15361  printf %s "(cached) " >&6
15362else case e in #(
15363  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364/* end confdefs.h.  */
15365int i;
15366_ACEOF
15367if ac_fn_c_try_compile "$LINENO"
15368then :
15369  xorg_cv_cc_flag_unused_command_line_argument=yes
15370else case e in #(
15371  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15372esac
15373fi
15374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15375esac
15376fi
15377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15380	CFLAGS="$xorg_testset_save_CFLAGS"
15381fi
15382
15383found="no"
15384
15385	if test $found = "no" ; then
15386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15388		fi
15389
15390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15392		fi
15393
15394		CFLAGS="$CFLAGS -Wuninitialized"
15395
15396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15397printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15398		cacheid=xorg_cv_cc_flag__Wuninitialized
15399		if eval test \${$cacheid+y}
15400then :
15401  printf %s "(cached) " >&6
15402else case e in #(
15403  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404/* end confdefs.h.  */
15405int i;
15406int
15407main (void)
15408{
15409
15410  ;
15411  return 0;
15412}
15413_ACEOF
15414if ac_fn_c_try_link "$LINENO"
15415then :
15416  eval $cacheid=yes
15417else case e in #(
15418  e) eval $cacheid=no ;;
15419esac
15420fi
15421rm -f core conftest.err conftest.$ac_objext conftest.beam \
15422    conftest$ac_exeext conftest.$ac_ext ;;
15423esac
15424fi
15425
15426
15427		CFLAGS="$xorg_testset_save_CFLAGS"
15428
15429		eval supported=\$$cacheid
15430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15431printf "%s\n" "$supported" >&6; }
15432		if test "$supported" = "yes" ; then
15433			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15434			found="yes"
15435		fi
15436	fi
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452xorg_testset_save_CFLAGS="$CFLAGS"
15453
15454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15457printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15458if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15459then :
15460  printf %s "(cached) " >&6
15461else case e in #(
15462  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463/* end confdefs.h.  */
15464int i;
15465_ACEOF
15466if ac_fn_c_try_compile "$LINENO"
15467then :
15468  xorg_cv_cc_flag_unknown_warning_option=yes
15469else case e in #(
15470  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15471esac
15472fi
15473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15474esac
15475fi
15476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15477printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15479	CFLAGS="$xorg_testset_save_CFLAGS"
15480fi
15481
15482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15485	fi
15486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15488printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15489if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15490then :
15491  printf %s "(cached) " >&6
15492else case e in #(
15493  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494/* end confdefs.h.  */
15495int i;
15496_ACEOF
15497if ac_fn_c_try_compile "$LINENO"
15498then :
15499  xorg_cv_cc_flag_unused_command_line_argument=yes
15500else case e in #(
15501  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15502esac
15503fi
15504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15505esac
15506fi
15507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15510	CFLAGS="$xorg_testset_save_CFLAGS"
15511fi
15512
15513found="no"
15514
15515	if test $found = "no" ; then
15516		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15518		fi
15519
15520		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15522		fi
15523
15524		CFLAGS="$CFLAGS -Wshadow"
15525
15526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15527printf %s "checking if $CC supports -Wshadow... " >&6; }
15528		cacheid=xorg_cv_cc_flag__Wshadow
15529		if eval test \${$cacheid+y}
15530then :
15531  printf %s "(cached) " >&6
15532else case e in #(
15533  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534/* end confdefs.h.  */
15535int i;
15536int
15537main (void)
15538{
15539
15540  ;
15541  return 0;
15542}
15543_ACEOF
15544if ac_fn_c_try_link "$LINENO"
15545then :
15546  eval $cacheid=yes
15547else case e in #(
15548  e) eval $cacheid=no ;;
15549esac
15550fi
15551rm -f core conftest.err conftest.$ac_objext conftest.beam \
15552    conftest$ac_exeext conftest.$ac_ext ;;
15553esac
15554fi
15555
15556
15557		CFLAGS="$xorg_testset_save_CFLAGS"
15558
15559		eval supported=\$$cacheid
15560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15561printf "%s\n" "$supported" >&6; }
15562		if test "$supported" = "yes" ; then
15563			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15564			found="yes"
15565		fi
15566	fi
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582xorg_testset_save_CFLAGS="$CFLAGS"
15583
15584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15587printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15588if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15589then :
15590  printf %s "(cached) " >&6
15591else case e in #(
15592  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593/* end confdefs.h.  */
15594int i;
15595_ACEOF
15596if ac_fn_c_try_compile "$LINENO"
15597then :
15598  xorg_cv_cc_flag_unknown_warning_option=yes
15599else case e in #(
15600  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15601esac
15602fi
15603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15604esac
15605fi
15606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15607printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15609	CFLAGS="$xorg_testset_save_CFLAGS"
15610fi
15611
15612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15615	fi
15616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15618printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15619if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15620then :
15621  printf %s "(cached) " >&6
15622else case e in #(
15623  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624/* end confdefs.h.  */
15625int i;
15626_ACEOF
15627if ac_fn_c_try_compile "$LINENO"
15628then :
15629  xorg_cv_cc_flag_unused_command_line_argument=yes
15630else case e in #(
15631  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15632esac
15633fi
15634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15635esac
15636fi
15637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15638printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15640	CFLAGS="$xorg_testset_save_CFLAGS"
15641fi
15642
15643found="no"
15644
15645	if test $found = "no" ; then
15646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15648		fi
15649
15650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15652		fi
15653
15654		CFLAGS="$CFLAGS -Wmissing-noreturn"
15655
15656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15657printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15658		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15659		if eval test \${$cacheid+y}
15660then :
15661  printf %s "(cached) " >&6
15662else case e in #(
15663  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664/* end confdefs.h.  */
15665int i;
15666int
15667main (void)
15668{
15669
15670  ;
15671  return 0;
15672}
15673_ACEOF
15674if ac_fn_c_try_link "$LINENO"
15675then :
15676  eval $cacheid=yes
15677else case e in #(
15678  e) eval $cacheid=no ;;
15679esac
15680fi
15681rm -f core conftest.err conftest.$ac_objext conftest.beam \
15682    conftest$ac_exeext conftest.$ac_ext ;;
15683esac
15684fi
15685
15686
15687		CFLAGS="$xorg_testset_save_CFLAGS"
15688
15689		eval supported=\$$cacheid
15690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15691printf "%s\n" "$supported" >&6; }
15692		if test "$supported" = "yes" ; then
15693			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15694			found="yes"
15695		fi
15696	fi
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712xorg_testset_save_CFLAGS="$CFLAGS"
15713
15714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15715	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15718if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15719then :
15720  printf %s "(cached) " >&6
15721else case e in #(
15722  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723/* end confdefs.h.  */
15724int i;
15725_ACEOF
15726if ac_fn_c_try_compile "$LINENO"
15727then :
15728  xorg_cv_cc_flag_unknown_warning_option=yes
15729else case e in #(
15730  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15731esac
15732fi
15733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15734esac
15735fi
15736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15739	CFLAGS="$xorg_testset_save_CFLAGS"
15740fi
15741
15742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15745	fi
15746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15750then :
15751  printf %s "(cached) " >&6
15752else case e in #(
15753  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15754/* end confdefs.h.  */
15755int i;
15756_ACEOF
15757if ac_fn_c_try_compile "$LINENO"
15758then :
15759  xorg_cv_cc_flag_unused_command_line_argument=yes
15760else case e in #(
15761  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15762esac
15763fi
15764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15765esac
15766fi
15767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15770	CFLAGS="$xorg_testset_save_CFLAGS"
15771fi
15772
15773found="no"
15774
15775	if test $found = "no" ; then
15776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15778		fi
15779
15780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15782		fi
15783
15784		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15785
15786		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15787printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15788		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15789		if eval test \${$cacheid+y}
15790then :
15791  printf %s "(cached) " >&6
15792else case e in #(
15793  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794/* end confdefs.h.  */
15795int i;
15796int
15797main (void)
15798{
15799
15800  ;
15801  return 0;
15802}
15803_ACEOF
15804if ac_fn_c_try_link "$LINENO"
15805then :
15806  eval $cacheid=yes
15807else case e in #(
15808  e) eval $cacheid=no ;;
15809esac
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.beam \
15812    conftest$ac_exeext conftest.$ac_ext ;;
15813esac
15814fi
15815
15816
15817		CFLAGS="$xorg_testset_save_CFLAGS"
15818
15819		eval supported=\$$cacheid
15820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15821printf "%s\n" "$supported" >&6; }
15822		if test "$supported" = "yes" ; then
15823			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15824			found="yes"
15825		fi
15826	fi
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842xorg_testset_save_CFLAGS="$CFLAGS"
15843
15844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15848if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15849then :
15850  printf %s "(cached) " >&6
15851else case e in #(
15852  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853/* end confdefs.h.  */
15854int i;
15855_ACEOF
15856if ac_fn_c_try_compile "$LINENO"
15857then :
15858  xorg_cv_cc_flag_unknown_warning_option=yes
15859else case e in #(
15860  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15861esac
15862fi
15863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15864esac
15865fi
15866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15869	CFLAGS="$xorg_testset_save_CFLAGS"
15870fi
15871
15872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15875	fi
15876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15879if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15880then :
15881  printf %s "(cached) " >&6
15882else case e in #(
15883  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884/* end confdefs.h.  */
15885int i;
15886_ACEOF
15887if ac_fn_c_try_compile "$LINENO"
15888then :
15889  xorg_cv_cc_flag_unused_command_line_argument=yes
15890else case e in #(
15891  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15892esac
15893fi
15894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15895esac
15896fi
15897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15900	CFLAGS="$xorg_testset_save_CFLAGS"
15901fi
15902
15903found="no"
15904
15905	if test $found = "no" ; then
15906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15908		fi
15909
15910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15912		fi
15913
15914		CFLAGS="$CFLAGS -Wredundant-decls"
15915
15916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15917printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15918		cacheid=xorg_cv_cc_flag__Wredundant_decls
15919		if eval test \${$cacheid+y}
15920then :
15921  printf %s "(cached) " >&6
15922else case e in #(
15923  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924/* end confdefs.h.  */
15925int i;
15926int
15927main (void)
15928{
15929
15930  ;
15931  return 0;
15932}
15933_ACEOF
15934if ac_fn_c_try_link "$LINENO"
15935then :
15936  eval $cacheid=yes
15937else case e in #(
15938  e) eval $cacheid=no ;;
15939esac
15940fi
15941rm -f core conftest.err conftest.$ac_objext conftest.beam \
15942    conftest$ac_exeext conftest.$ac_ext ;;
15943esac
15944fi
15945
15946
15947		CFLAGS="$xorg_testset_save_CFLAGS"
15948
15949		eval supported=\$$cacheid
15950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15951printf "%s\n" "$supported" >&6; }
15952		if test "$supported" = "yes" ; then
15953			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15954			found="yes"
15955		fi
15956	fi
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972xorg_testset_save_CFLAGS="$CFLAGS"
15973
15974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15978if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15979then :
15980  printf %s "(cached) " >&6
15981else case e in #(
15982  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983/* end confdefs.h.  */
15984int i;
15985_ACEOF
15986if ac_fn_c_try_compile "$LINENO"
15987then :
15988  xorg_cv_cc_flag_unknown_warning_option=yes
15989else case e in #(
15990  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15991esac
15992fi
15993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15994esac
15995fi
15996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15999	CFLAGS="$xorg_testset_save_CFLAGS"
16000fi
16001
16002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16005	fi
16006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16010then :
16011  printf %s "(cached) " >&6
16012else case e in #(
16013  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014/* end confdefs.h.  */
16015int i;
16016_ACEOF
16017if ac_fn_c_try_compile "$LINENO"
16018then :
16019  xorg_cv_cc_flag_unused_command_line_argument=yes
16020else case e in #(
16021  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16022esac
16023fi
16024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16025esac
16026fi
16027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16028printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16029	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16030	CFLAGS="$xorg_testset_save_CFLAGS"
16031fi
16032
16033found="no"
16034
16035	if test $found = "no" ; then
16036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16038		fi
16039
16040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16042		fi
16043
16044		CFLAGS="$CFLAGS -Wlogical-op"
16045
16046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16047printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16048		cacheid=xorg_cv_cc_flag__Wlogical_op
16049		if eval test \${$cacheid+y}
16050then :
16051  printf %s "(cached) " >&6
16052else case e in #(
16053  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054/* end confdefs.h.  */
16055int i;
16056int
16057main (void)
16058{
16059
16060  ;
16061  return 0;
16062}
16063_ACEOF
16064if ac_fn_c_try_link "$LINENO"
16065then :
16066  eval $cacheid=yes
16067else case e in #(
16068  e) eval $cacheid=no ;;
16069esac
16070fi
16071rm -f core conftest.err conftest.$ac_objext conftest.beam \
16072    conftest$ac_exeext conftest.$ac_ext ;;
16073esac
16074fi
16075
16076
16077		CFLAGS="$xorg_testset_save_CFLAGS"
16078
16079		eval supported=\$$cacheid
16080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16081printf "%s\n" "$supported" >&6; }
16082		if test "$supported" = "yes" ; then
16083			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16084			found="yes"
16085		fi
16086	fi
16087
16088
16089
16090# These are currently disabled because they are noisy.  They will be enabled
16091# in the future once the codebase is sufficiently modernized to silence
16092# them.  For now, I don't want them to drown out the other warnings.
16093# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16094# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16095# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16096
16097# Turn some warnings into errors, so we don't accidentally get successful builds
16098# when there are problems that should be fixed.
16099
16100if test "x$SELECTIVE_WERROR" = "xyes" ; then
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114xorg_testset_save_CFLAGS="$CFLAGS"
16115
16116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16120if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16121then :
16122  printf %s "(cached) " >&6
16123else case e in #(
16124  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125/* end confdefs.h.  */
16126int i;
16127_ACEOF
16128if ac_fn_c_try_compile "$LINENO"
16129then :
16130  xorg_cv_cc_flag_unknown_warning_option=yes
16131else case e in #(
16132  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16133esac
16134fi
16135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16136esac
16137fi
16138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16139printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16141	CFLAGS="$xorg_testset_save_CFLAGS"
16142fi
16143
16144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16147	fi
16148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16149	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16150printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16151if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16152then :
16153  printf %s "(cached) " >&6
16154else case e in #(
16155  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157int i;
16158_ACEOF
16159if ac_fn_c_try_compile "$LINENO"
16160then :
16161  xorg_cv_cc_flag_unused_command_line_argument=yes
16162else case e in #(
16163  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16164esac
16165fi
16166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16167esac
16168fi
16169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16172	CFLAGS="$xorg_testset_save_CFLAGS"
16173fi
16174
16175found="no"
16176
16177	if test $found = "no" ; then
16178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16180		fi
16181
16182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16184		fi
16185
16186		CFLAGS="$CFLAGS -Werror=implicit"
16187
16188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16189printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16190		cacheid=xorg_cv_cc_flag__Werror_implicit
16191		if eval test \${$cacheid+y}
16192then :
16193  printf %s "(cached) " >&6
16194else case e in #(
16195  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196/* end confdefs.h.  */
16197int i;
16198int
16199main (void)
16200{
16201
16202  ;
16203  return 0;
16204}
16205_ACEOF
16206if ac_fn_c_try_link "$LINENO"
16207then :
16208  eval $cacheid=yes
16209else case e in #(
16210  e) eval $cacheid=no ;;
16211esac
16212fi
16213rm -f core conftest.err conftest.$ac_objext conftest.beam \
16214    conftest$ac_exeext conftest.$ac_ext ;;
16215esac
16216fi
16217
16218
16219		CFLAGS="$xorg_testset_save_CFLAGS"
16220
16221		eval supported=\$$cacheid
16222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16223printf "%s\n" "$supported" >&6; }
16224		if test "$supported" = "yes" ; then
16225			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16226			found="yes"
16227		fi
16228	fi
16229
16230	if test $found = "no" ; then
16231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16233		fi
16234
16235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16237		fi
16238
16239		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16240
16241		{ 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
16242printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16243		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16244		if eval test \${$cacheid+y}
16245then :
16246  printf %s "(cached) " >&6
16247else case e in #(
16248  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h.  */
16250int i;
16251int
16252main (void)
16253{
16254
16255  ;
16256  return 0;
16257}
16258_ACEOF
16259if ac_fn_c_try_link "$LINENO"
16260then :
16261  eval $cacheid=yes
16262else case e in #(
16263  e) eval $cacheid=no ;;
16264esac
16265fi
16266rm -f core conftest.err conftest.$ac_objext conftest.beam \
16267    conftest$ac_exeext conftest.$ac_ext ;;
16268esac
16269fi
16270
16271
16272		CFLAGS="$xorg_testset_save_CFLAGS"
16273
16274		eval supported=\$$cacheid
16275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16276printf "%s\n" "$supported" >&6; }
16277		if test "$supported" = "yes" ; then
16278			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16279			found="yes"
16280		fi
16281	fi
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297xorg_testset_save_CFLAGS="$CFLAGS"
16298
16299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16303if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16304then :
16305  printf %s "(cached) " >&6
16306else case e in #(
16307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308/* end confdefs.h.  */
16309int i;
16310_ACEOF
16311if ac_fn_c_try_compile "$LINENO"
16312then :
16313  xorg_cv_cc_flag_unknown_warning_option=yes
16314else case e in #(
16315  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16316esac
16317fi
16318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16319esac
16320fi
16321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16322printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16324	CFLAGS="$xorg_testset_save_CFLAGS"
16325fi
16326
16327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16330	fi
16331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16332	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16333printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16334if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16335then :
16336  printf %s "(cached) " >&6
16337else case e in #(
16338  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16339/* end confdefs.h.  */
16340int i;
16341_ACEOF
16342if ac_fn_c_try_compile "$LINENO"
16343then :
16344  xorg_cv_cc_flag_unused_command_line_argument=yes
16345else case e in #(
16346  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16347esac
16348fi
16349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16350esac
16351fi
16352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16353printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16355	CFLAGS="$xorg_testset_save_CFLAGS"
16356fi
16357
16358found="no"
16359
16360	if test $found = "no" ; then
16361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363		fi
16364
16365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367		fi
16368
16369		CFLAGS="$CFLAGS -Werror=nonnull"
16370
16371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16372printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16373		cacheid=xorg_cv_cc_flag__Werror_nonnull
16374		if eval test \${$cacheid+y}
16375then :
16376  printf %s "(cached) " >&6
16377else case e in #(
16378  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379/* end confdefs.h.  */
16380int i;
16381int
16382main (void)
16383{
16384
16385  ;
16386  return 0;
16387}
16388_ACEOF
16389if ac_fn_c_try_link "$LINENO"
16390then :
16391  eval $cacheid=yes
16392else case e in #(
16393  e) eval $cacheid=no ;;
16394esac
16395fi
16396rm -f core conftest.err conftest.$ac_objext conftest.beam \
16397    conftest$ac_exeext conftest.$ac_ext ;;
16398esac
16399fi
16400
16401
16402		CFLAGS="$xorg_testset_save_CFLAGS"
16403
16404		eval supported=\$$cacheid
16405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16406printf "%s\n" "$supported" >&6; }
16407		if test "$supported" = "yes" ; then
16408			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16409			found="yes"
16410		fi
16411	fi
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427xorg_testset_save_CFLAGS="$CFLAGS"
16428
16429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16432printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16433if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16434then :
16435  printf %s "(cached) " >&6
16436else case e in #(
16437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438/* end confdefs.h.  */
16439int i;
16440_ACEOF
16441if ac_fn_c_try_compile "$LINENO"
16442then :
16443  xorg_cv_cc_flag_unknown_warning_option=yes
16444else case e in #(
16445  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16446esac
16447fi
16448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16449esac
16450fi
16451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16454	CFLAGS="$xorg_testset_save_CFLAGS"
16455fi
16456
16457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16460	fi
16461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16464if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16465then :
16466  printf %s "(cached) " >&6
16467else case e in #(
16468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16469/* end confdefs.h.  */
16470int i;
16471_ACEOF
16472if ac_fn_c_try_compile "$LINENO"
16473then :
16474  xorg_cv_cc_flag_unused_command_line_argument=yes
16475else case e in #(
16476  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16477esac
16478fi
16479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16480esac
16481fi
16482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16483printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16485	CFLAGS="$xorg_testset_save_CFLAGS"
16486fi
16487
16488found="no"
16489
16490	if test $found = "no" ; then
16491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16493		fi
16494
16495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497		fi
16498
16499		CFLAGS="$CFLAGS -Werror=init-self"
16500
16501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16502printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16503		cacheid=xorg_cv_cc_flag__Werror_init_self
16504		if eval test \${$cacheid+y}
16505then :
16506  printf %s "(cached) " >&6
16507else case e in #(
16508  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509/* end confdefs.h.  */
16510int i;
16511int
16512main (void)
16513{
16514
16515  ;
16516  return 0;
16517}
16518_ACEOF
16519if ac_fn_c_try_link "$LINENO"
16520then :
16521  eval $cacheid=yes
16522else case e in #(
16523  e) eval $cacheid=no ;;
16524esac
16525fi
16526rm -f core conftest.err conftest.$ac_objext conftest.beam \
16527    conftest$ac_exeext conftest.$ac_ext ;;
16528esac
16529fi
16530
16531
16532		CFLAGS="$xorg_testset_save_CFLAGS"
16533
16534		eval supported=\$$cacheid
16535		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16536printf "%s\n" "$supported" >&6; }
16537		if test "$supported" = "yes" ; then
16538			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16539			found="yes"
16540		fi
16541	fi
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557xorg_testset_save_CFLAGS="$CFLAGS"
16558
16559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16561	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16562printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16563if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16564then :
16565  printf %s "(cached) " >&6
16566else case e in #(
16567  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568/* end confdefs.h.  */
16569int i;
16570_ACEOF
16571if ac_fn_c_try_compile "$LINENO"
16572then :
16573  xorg_cv_cc_flag_unknown_warning_option=yes
16574else case e in #(
16575  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16576esac
16577fi
16578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16579esac
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 case e in #(
16598  e) 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 case e in #(
16606  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16607esac
16608fi
16609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16610esac
16611fi
16612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16613printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16615	CFLAGS="$xorg_testset_save_CFLAGS"
16616fi
16617
16618found="no"
16619
16620	if test $found = "no" ; then
16621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16623		fi
16624
16625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16627		fi
16628
16629		CFLAGS="$CFLAGS -Werror=main"
16630
16631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16632printf %s "checking if $CC supports -Werror=main... " >&6; }
16633		cacheid=xorg_cv_cc_flag__Werror_main
16634		if eval test \${$cacheid+y}
16635then :
16636  printf %s "(cached) " >&6
16637else case e in #(
16638  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640int i;
16641int
16642main (void)
16643{
16644
16645  ;
16646  return 0;
16647}
16648_ACEOF
16649if ac_fn_c_try_link "$LINENO"
16650then :
16651  eval $cacheid=yes
16652else case e in #(
16653  e) eval $cacheid=no ;;
16654esac
16655fi
16656rm -f core conftest.err conftest.$ac_objext conftest.beam \
16657    conftest$ac_exeext conftest.$ac_ext ;;
16658esac
16659fi
16660
16661
16662		CFLAGS="$xorg_testset_save_CFLAGS"
16663
16664		eval supported=\$$cacheid
16665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16666printf "%s\n" "$supported" >&6; }
16667		if test "$supported" = "yes" ; then
16668			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16669			found="yes"
16670		fi
16671	fi
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687xorg_testset_save_CFLAGS="$CFLAGS"
16688
16689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16693if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16694then :
16695  printf %s "(cached) " >&6
16696else case e in #(
16697  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698/* end confdefs.h.  */
16699int i;
16700_ACEOF
16701if ac_fn_c_try_compile "$LINENO"
16702then :
16703  xorg_cv_cc_flag_unknown_warning_option=yes
16704else case e in #(
16705  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16706esac
16707fi
16708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16709esac
16710fi
16711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16712printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16714	CFLAGS="$xorg_testset_save_CFLAGS"
16715fi
16716
16717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16720	fi
16721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16723printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16724if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16725then :
16726  printf %s "(cached) " >&6
16727else case e in #(
16728  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729/* end confdefs.h.  */
16730int i;
16731_ACEOF
16732if ac_fn_c_try_compile "$LINENO"
16733then :
16734  xorg_cv_cc_flag_unused_command_line_argument=yes
16735else case e in #(
16736  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16737esac
16738fi
16739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16740esac
16741fi
16742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16744	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16745	CFLAGS="$xorg_testset_save_CFLAGS"
16746fi
16747
16748found="no"
16749
16750	if test $found = "no" ; then
16751		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16752			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16753		fi
16754
16755		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16756			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757		fi
16758
16759		CFLAGS="$CFLAGS -Werror=missing-braces"
16760
16761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16762printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16763		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16764		if eval test \${$cacheid+y}
16765then :
16766  printf %s "(cached) " >&6
16767else case e in #(
16768  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769/* end confdefs.h.  */
16770int i;
16771int
16772main (void)
16773{
16774
16775  ;
16776  return 0;
16777}
16778_ACEOF
16779if ac_fn_c_try_link "$LINENO"
16780then :
16781  eval $cacheid=yes
16782else case e in #(
16783  e) eval $cacheid=no ;;
16784esac
16785fi
16786rm -f core conftest.err conftest.$ac_objext conftest.beam \
16787    conftest$ac_exeext conftest.$ac_ext ;;
16788esac
16789fi
16790
16791
16792		CFLAGS="$xorg_testset_save_CFLAGS"
16793
16794		eval supported=\$$cacheid
16795		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16796printf "%s\n" "$supported" >&6; }
16797		if test "$supported" = "yes" ; then
16798			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16799			found="yes"
16800		fi
16801	fi
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817xorg_testset_save_CFLAGS="$CFLAGS"
16818
16819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16823if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16824then :
16825  printf %s "(cached) " >&6
16826else case e in #(
16827  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828/* end confdefs.h.  */
16829int i;
16830_ACEOF
16831if ac_fn_c_try_compile "$LINENO"
16832then :
16833  xorg_cv_cc_flag_unknown_warning_option=yes
16834else case e in #(
16835  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16836esac
16837fi
16838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16839esac
16840fi
16841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16844	CFLAGS="$xorg_testset_save_CFLAGS"
16845fi
16846
16847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850	fi
16851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16852	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16854if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16855then :
16856  printf %s "(cached) " >&6
16857else case e in #(
16858  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859/* end confdefs.h.  */
16860int i;
16861_ACEOF
16862if ac_fn_c_try_compile "$LINENO"
16863then :
16864  xorg_cv_cc_flag_unused_command_line_argument=yes
16865else case e in #(
16866  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16867esac
16868fi
16869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16870esac
16871fi
16872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16875	CFLAGS="$xorg_testset_save_CFLAGS"
16876fi
16877
16878found="no"
16879
16880	if test $found = "no" ; then
16881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16883		fi
16884
16885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16887		fi
16888
16889		CFLAGS="$CFLAGS -Werror=sequence-point"
16890
16891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16892printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16893		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16894		if eval test \${$cacheid+y}
16895then :
16896  printf %s "(cached) " >&6
16897else case e in #(
16898  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899/* end confdefs.h.  */
16900int i;
16901int
16902main (void)
16903{
16904
16905  ;
16906  return 0;
16907}
16908_ACEOF
16909if ac_fn_c_try_link "$LINENO"
16910then :
16911  eval $cacheid=yes
16912else case e in #(
16913  e) eval $cacheid=no ;;
16914esac
16915fi
16916rm -f core conftest.err conftest.$ac_objext conftest.beam \
16917    conftest$ac_exeext conftest.$ac_ext ;;
16918esac
16919fi
16920
16921
16922		CFLAGS="$xorg_testset_save_CFLAGS"
16923
16924		eval supported=\$$cacheid
16925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16926printf "%s\n" "$supported" >&6; }
16927		if test "$supported" = "yes" ; then
16928			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16929			found="yes"
16930		fi
16931	fi
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947xorg_testset_save_CFLAGS="$CFLAGS"
16948
16949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16954then :
16955  printf %s "(cached) " >&6
16956else case e in #(
16957  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958/* end confdefs.h.  */
16959int i;
16960_ACEOF
16961if ac_fn_c_try_compile "$LINENO"
16962then :
16963  xorg_cv_cc_flag_unknown_warning_option=yes
16964else case e in #(
16965  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16966esac
16967fi
16968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16969esac
16970fi
16971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16974	CFLAGS="$xorg_testset_save_CFLAGS"
16975fi
16976
16977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16980	fi
16981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16982	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16984if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16985then :
16986  printf %s "(cached) " >&6
16987else case e in #(
16988  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h.  */
16990int i;
16991_ACEOF
16992if ac_fn_c_try_compile "$LINENO"
16993then :
16994  xorg_cv_cc_flag_unused_command_line_argument=yes
16995else case e in #(
16996  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16997esac
16998fi
16999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17000esac
17001fi
17002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17005	CFLAGS="$xorg_testset_save_CFLAGS"
17006fi
17007
17008found="no"
17009
17010	if test $found = "no" ; then
17011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17013		fi
17014
17015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17017		fi
17018
17019		CFLAGS="$CFLAGS -Werror=return-type"
17020
17021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17022printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17023		cacheid=xorg_cv_cc_flag__Werror_return_type
17024		if eval test \${$cacheid+y}
17025then :
17026  printf %s "(cached) " >&6
17027else case e in #(
17028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029/* end confdefs.h.  */
17030int i;
17031int
17032main (void)
17033{
17034
17035  ;
17036  return 0;
17037}
17038_ACEOF
17039if ac_fn_c_try_link "$LINENO"
17040then :
17041  eval $cacheid=yes
17042else case e in #(
17043  e) eval $cacheid=no ;;
17044esac
17045fi
17046rm -f core conftest.err conftest.$ac_objext conftest.beam \
17047    conftest$ac_exeext conftest.$ac_ext ;;
17048esac
17049fi
17050
17051
17052		CFLAGS="$xorg_testset_save_CFLAGS"
17053
17054		eval supported=\$$cacheid
17055		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17056printf "%s\n" "$supported" >&6; }
17057		if test "$supported" = "yes" ; then
17058			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17059			found="yes"
17060		fi
17061	fi
17062
17063	if test $found = "no" ; then
17064		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17066		fi
17067
17068		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17070		fi
17071
17072		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17073
17074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17075printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17076		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17077		if eval test \${$cacheid+y}
17078then :
17079  printf %s "(cached) " >&6
17080else case e in #(
17081  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082/* end confdefs.h.  */
17083int i;
17084int
17085main (void)
17086{
17087
17088  ;
17089  return 0;
17090}
17091_ACEOF
17092if ac_fn_c_try_link "$LINENO"
17093then :
17094  eval $cacheid=yes
17095else case e in #(
17096  e) eval $cacheid=no ;;
17097esac
17098fi
17099rm -f core conftest.err conftest.$ac_objext conftest.beam \
17100    conftest$ac_exeext conftest.$ac_ext ;;
17101esac
17102fi
17103
17104
17105		CFLAGS="$xorg_testset_save_CFLAGS"
17106
17107		eval supported=\$$cacheid
17108		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17109printf "%s\n" "$supported" >&6; }
17110		if test "$supported" = "yes" ; then
17111			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17112			found="yes"
17113		fi
17114	fi
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130xorg_testset_save_CFLAGS="$CFLAGS"
17131
17132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17136if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17137then :
17138  printf %s "(cached) " >&6
17139else case e in #(
17140  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141/* end confdefs.h.  */
17142int i;
17143_ACEOF
17144if ac_fn_c_try_compile "$LINENO"
17145then :
17146  xorg_cv_cc_flag_unknown_warning_option=yes
17147else case e in #(
17148  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17149esac
17150fi
17151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17152esac
17153fi
17154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17155printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17157	CFLAGS="$xorg_testset_save_CFLAGS"
17158fi
17159
17160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17163	fi
17164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17165	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17166printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17167if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17168then :
17169  printf %s "(cached) " >&6
17170else case e in #(
17171  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h.  */
17173int i;
17174_ACEOF
17175if ac_fn_c_try_compile "$LINENO"
17176then :
17177  xorg_cv_cc_flag_unused_command_line_argument=yes
17178else case e in #(
17179  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17180esac
17181fi
17182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17183esac
17184fi
17185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17188	CFLAGS="$xorg_testset_save_CFLAGS"
17189fi
17190
17191found="no"
17192
17193	if test $found = "no" ; then
17194		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17196		fi
17197
17198		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17200		fi
17201
17202		CFLAGS="$CFLAGS -Werror=trigraphs"
17203
17204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17205printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17206		cacheid=xorg_cv_cc_flag__Werror_trigraphs
17207		if eval test \${$cacheid+y}
17208then :
17209  printf %s "(cached) " >&6
17210else case e in #(
17211  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17212/* end confdefs.h.  */
17213int i;
17214int
17215main (void)
17216{
17217
17218  ;
17219  return 0;
17220}
17221_ACEOF
17222if ac_fn_c_try_link "$LINENO"
17223then :
17224  eval $cacheid=yes
17225else case e in #(
17226  e) eval $cacheid=no ;;
17227esac
17228fi
17229rm -f core conftest.err conftest.$ac_objext conftest.beam \
17230    conftest$ac_exeext conftest.$ac_ext ;;
17231esac
17232fi
17233
17234
17235		CFLAGS="$xorg_testset_save_CFLAGS"
17236
17237		eval supported=\$$cacheid
17238		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17239printf "%s\n" "$supported" >&6; }
17240		if test "$supported" = "yes" ; then
17241			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17242			found="yes"
17243		fi
17244	fi
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260xorg_testset_save_CFLAGS="$CFLAGS"
17261
17262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17264	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17265printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17266if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17267then :
17268  printf %s "(cached) " >&6
17269else case e in #(
17270  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271/* end confdefs.h.  */
17272int i;
17273_ACEOF
17274if ac_fn_c_try_compile "$LINENO"
17275then :
17276  xorg_cv_cc_flag_unknown_warning_option=yes
17277else case e in #(
17278  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17279esac
17280fi
17281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17282esac
17283fi
17284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17287	CFLAGS="$xorg_testset_save_CFLAGS"
17288fi
17289
17290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17293	fi
17294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17297if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17298then :
17299  printf %s "(cached) " >&6
17300else case e in #(
17301  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302/* end confdefs.h.  */
17303int i;
17304_ACEOF
17305if ac_fn_c_try_compile "$LINENO"
17306then :
17307  xorg_cv_cc_flag_unused_command_line_argument=yes
17308else case e in #(
17309  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17310esac
17311fi
17312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17313esac
17314fi
17315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17316printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17317	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17318	CFLAGS="$xorg_testset_save_CFLAGS"
17319fi
17320
17321found="no"
17322
17323	if test $found = "no" ; then
17324		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17325			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17326		fi
17327
17328		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17329			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17330		fi
17331
17332		CFLAGS="$CFLAGS -Werror=array-bounds"
17333
17334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17335printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17336		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17337		if eval test \${$cacheid+y}
17338then :
17339  printf %s "(cached) " >&6
17340else case e in #(
17341  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342/* end confdefs.h.  */
17343int i;
17344int
17345main (void)
17346{
17347
17348  ;
17349  return 0;
17350}
17351_ACEOF
17352if ac_fn_c_try_link "$LINENO"
17353then :
17354  eval $cacheid=yes
17355else case e in #(
17356  e) eval $cacheid=no ;;
17357esac
17358fi
17359rm -f core conftest.err conftest.$ac_objext conftest.beam \
17360    conftest$ac_exeext conftest.$ac_ext ;;
17361esac
17362fi
17363
17364
17365		CFLAGS="$xorg_testset_save_CFLAGS"
17366
17367		eval supported=\$$cacheid
17368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17369printf "%s\n" "$supported" >&6; }
17370		if test "$supported" = "yes" ; then
17371			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17372			found="yes"
17373		fi
17374	fi
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390xorg_testset_save_CFLAGS="$CFLAGS"
17391
17392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17396if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17397then :
17398  printf %s "(cached) " >&6
17399else case e in #(
17400  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401/* end confdefs.h.  */
17402int i;
17403_ACEOF
17404if ac_fn_c_try_compile "$LINENO"
17405then :
17406  xorg_cv_cc_flag_unknown_warning_option=yes
17407else case e in #(
17408  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17409esac
17410fi
17411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17412esac
17413fi
17414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17415printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17416	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17417	CFLAGS="$xorg_testset_save_CFLAGS"
17418fi
17419
17420if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17421	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17422		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17423	fi
17424	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17426printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17427if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17428then :
17429  printf %s "(cached) " >&6
17430else case e in #(
17431  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432/* end confdefs.h.  */
17433int i;
17434_ACEOF
17435if ac_fn_c_try_compile "$LINENO"
17436then :
17437  xorg_cv_cc_flag_unused_command_line_argument=yes
17438else case e in #(
17439  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17440esac
17441fi
17442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17443esac
17444fi
17445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17448	CFLAGS="$xorg_testset_save_CFLAGS"
17449fi
17450
17451found="no"
17452
17453	if test $found = "no" ; then
17454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456		fi
17457
17458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17460		fi
17461
17462		CFLAGS="$CFLAGS -Werror=write-strings"
17463
17464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17465printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17466		cacheid=xorg_cv_cc_flag__Werror_write_strings
17467		if eval test \${$cacheid+y}
17468then :
17469  printf %s "(cached) " >&6
17470else case e in #(
17471  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472/* end confdefs.h.  */
17473int i;
17474int
17475main (void)
17476{
17477
17478  ;
17479  return 0;
17480}
17481_ACEOF
17482if ac_fn_c_try_link "$LINENO"
17483then :
17484  eval $cacheid=yes
17485else case e in #(
17486  e) eval $cacheid=no ;;
17487esac
17488fi
17489rm -f core conftest.err conftest.$ac_objext conftest.beam \
17490    conftest$ac_exeext conftest.$ac_ext ;;
17491esac
17492fi
17493
17494
17495		CFLAGS="$xorg_testset_save_CFLAGS"
17496
17497		eval supported=\$$cacheid
17498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17499printf "%s\n" "$supported" >&6; }
17500		if test "$supported" = "yes" ; then
17501			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17502			found="yes"
17503		fi
17504	fi
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520xorg_testset_save_CFLAGS="$CFLAGS"
17521
17522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17523	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17526if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17527then :
17528  printf %s "(cached) " >&6
17529else case e in #(
17530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h.  */
17532int i;
17533_ACEOF
17534if ac_fn_c_try_compile "$LINENO"
17535then :
17536  xorg_cv_cc_flag_unknown_warning_option=yes
17537else case e in #(
17538  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17539esac
17540fi
17541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17542esac
17543fi
17544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17547	CFLAGS="$xorg_testset_save_CFLAGS"
17548fi
17549
17550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17553	fi
17554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17557if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17558then :
17559  printf %s "(cached) " >&6
17560else case e in #(
17561  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562/* end confdefs.h.  */
17563int i;
17564_ACEOF
17565if ac_fn_c_try_compile "$LINENO"
17566then :
17567  xorg_cv_cc_flag_unused_command_line_argument=yes
17568else case e in #(
17569  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17570esac
17571fi
17572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17573esac
17574fi
17575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17576printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17578	CFLAGS="$xorg_testset_save_CFLAGS"
17579fi
17580
17581found="no"
17582
17583	if test $found = "no" ; then
17584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17586		fi
17587
17588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17590		fi
17591
17592		CFLAGS="$CFLAGS -Werror=address"
17593
17594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17595printf %s "checking if $CC supports -Werror=address... " >&6; }
17596		cacheid=xorg_cv_cc_flag__Werror_address
17597		if eval test \${$cacheid+y}
17598then :
17599  printf %s "(cached) " >&6
17600else case e in #(
17601  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602/* end confdefs.h.  */
17603int i;
17604int
17605main (void)
17606{
17607
17608  ;
17609  return 0;
17610}
17611_ACEOF
17612if ac_fn_c_try_link "$LINENO"
17613then :
17614  eval $cacheid=yes
17615else case e in #(
17616  e) eval $cacheid=no ;;
17617esac
17618fi
17619rm -f core conftest.err conftest.$ac_objext conftest.beam \
17620    conftest$ac_exeext conftest.$ac_ext ;;
17621esac
17622fi
17623
17624
17625		CFLAGS="$xorg_testset_save_CFLAGS"
17626
17627		eval supported=\$$cacheid
17628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17629printf "%s\n" "$supported" >&6; }
17630		if test "$supported" = "yes" ; then
17631			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17632			found="yes"
17633		fi
17634	fi
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650xorg_testset_save_CFLAGS="$CFLAGS"
17651
17652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17654	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17656if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17657then :
17658  printf %s "(cached) " >&6
17659else case e in #(
17660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661/* end confdefs.h.  */
17662int i;
17663_ACEOF
17664if ac_fn_c_try_compile "$LINENO"
17665then :
17666  xorg_cv_cc_flag_unknown_warning_option=yes
17667else case e in #(
17668  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17669esac
17670fi
17671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17672esac
17673fi
17674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17677	CFLAGS="$xorg_testset_save_CFLAGS"
17678fi
17679
17680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17683	fi
17684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17685	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17687if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17688then :
17689  printf %s "(cached) " >&6
17690else case e in #(
17691  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h.  */
17693int i;
17694_ACEOF
17695if ac_fn_c_try_compile "$LINENO"
17696then :
17697  xorg_cv_cc_flag_unused_command_line_argument=yes
17698else case e in #(
17699  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17700esac
17701fi
17702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17703esac
17704fi
17705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17706printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17708	CFLAGS="$xorg_testset_save_CFLAGS"
17709fi
17710
17711found="no"
17712
17713	if test $found = "no" ; then
17714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17716		fi
17717
17718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17720		fi
17721
17722		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17723
17724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17725printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17726		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17727		if eval test \${$cacheid+y}
17728then :
17729  printf %s "(cached) " >&6
17730else case e in #(
17731  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732/* end confdefs.h.  */
17733int i;
17734int
17735main (void)
17736{
17737
17738  ;
17739  return 0;
17740}
17741_ACEOF
17742if ac_fn_c_try_link "$LINENO"
17743then :
17744  eval $cacheid=yes
17745else case e in #(
17746  e) eval $cacheid=no ;;
17747esac
17748fi
17749rm -f core conftest.err conftest.$ac_objext conftest.beam \
17750    conftest$ac_exeext conftest.$ac_ext ;;
17751esac
17752fi
17753
17754
17755		CFLAGS="$xorg_testset_save_CFLAGS"
17756
17757		eval supported=\$$cacheid
17758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17759printf "%s\n" "$supported" >&6; }
17760		if test "$supported" = "yes" ; then
17761			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17762			found="yes"
17763		fi
17764	fi
17765
17766	if test $found = "no" ; then
17767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17769		fi
17770
17771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17773		fi
17774
17775		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17776
17777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17778printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17779		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17780		if eval test \${$cacheid+y}
17781then :
17782  printf %s "(cached) " >&6
17783else case e in #(
17784  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785/* end confdefs.h.  */
17786int i;
17787int
17788main (void)
17789{
17790
17791  ;
17792  return 0;
17793}
17794_ACEOF
17795if ac_fn_c_try_link "$LINENO"
17796then :
17797  eval $cacheid=yes
17798else case e in #(
17799  e) eval $cacheid=no ;;
17800esac
17801fi
17802rm -f core conftest.err conftest.$ac_objext conftest.beam \
17803    conftest$ac_exeext conftest.$ac_ext ;;
17804esac
17805fi
17806
17807
17808		CFLAGS="$xorg_testset_save_CFLAGS"
17809
17810		eval supported=\$$cacheid
17811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17812printf "%s\n" "$supported" >&6; }
17813		if test "$supported" = "yes" ; then
17814			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17815			found="yes"
17816		fi
17817	fi
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833xorg_testset_save_CFLAGS="$CFLAGS"
17834
17835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17837	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17838printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17839if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17840then :
17841  printf %s "(cached) " >&6
17842else case e in #(
17843  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844/* end confdefs.h.  */
17845int i;
17846_ACEOF
17847if ac_fn_c_try_compile "$LINENO"
17848then :
17849  xorg_cv_cc_flag_unknown_warning_option=yes
17850else case e in #(
17851  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17852esac
17853fi
17854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17855esac
17856fi
17857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17859	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17860	CFLAGS="$xorg_testset_save_CFLAGS"
17861fi
17862
17863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17864	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17865		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17866	fi
17867	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17870if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17871then :
17872  printf %s "(cached) " >&6
17873else case e in #(
17874  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875/* end confdefs.h.  */
17876int i;
17877_ACEOF
17878if ac_fn_c_try_compile "$LINENO"
17879then :
17880  xorg_cv_cc_flag_unused_command_line_argument=yes
17881else case e in #(
17882  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17883esac
17884fi
17885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17886esac
17887fi
17888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17891	CFLAGS="$xorg_testset_save_CFLAGS"
17892fi
17893
17894found="no"
17895
17896	if test $found = "no" ; then
17897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17899		fi
17900
17901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17903		fi
17904
17905		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17906
17907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17908printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17909		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17910		if eval test \${$cacheid+y}
17911then :
17912  printf %s "(cached) " >&6
17913else case e in #(
17914  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915/* end confdefs.h.  */
17916int i;
17917int
17918main (void)
17919{
17920
17921  ;
17922  return 0;
17923}
17924_ACEOF
17925if ac_fn_c_try_link "$LINENO"
17926then :
17927  eval $cacheid=yes
17928else case e in #(
17929  e) eval $cacheid=no ;;
17930esac
17931fi
17932rm -f core conftest.err conftest.$ac_objext conftest.beam \
17933    conftest$ac_exeext conftest.$ac_ext ;;
17934esac
17935fi
17936
17937
17938		CFLAGS="$xorg_testset_save_CFLAGS"
17939
17940		eval supported=\$$cacheid
17941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17942printf "%s\n" "$supported" >&6; }
17943		if test "$supported" = "yes" ; then
17944			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17945			found="yes"
17946		fi
17947	fi
17948
17949 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17950else
17951{ 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
17952printf "%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;}
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966xorg_testset_save_CFLAGS="$CFLAGS"
17967
17968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17973then :
17974  printf %s "(cached) " >&6
17975else case e in #(
17976  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977/* end confdefs.h.  */
17978int i;
17979_ACEOF
17980if ac_fn_c_try_compile "$LINENO"
17981then :
17982  xorg_cv_cc_flag_unknown_warning_option=yes
17983else case e in #(
17984  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17985esac
17986fi
17987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17988esac
17989fi
17990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17993	CFLAGS="$xorg_testset_save_CFLAGS"
17994fi
17995
17996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17999	fi
18000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18003if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18004then :
18005  printf %s "(cached) " >&6
18006else case e in #(
18007  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008/* end confdefs.h.  */
18009int i;
18010_ACEOF
18011if ac_fn_c_try_compile "$LINENO"
18012then :
18013  xorg_cv_cc_flag_unused_command_line_argument=yes
18014else case e in #(
18015  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18016esac
18017fi
18018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18019esac
18020fi
18021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18024	CFLAGS="$xorg_testset_save_CFLAGS"
18025fi
18026
18027found="no"
18028
18029	if test $found = "no" ; then
18030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18032		fi
18033
18034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18036		fi
18037
18038		CFLAGS="$CFLAGS -Wimplicit"
18039
18040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18041printf %s "checking if $CC supports -Wimplicit... " >&6; }
18042		cacheid=xorg_cv_cc_flag__Wimplicit
18043		if eval test \${$cacheid+y}
18044then :
18045  printf %s "(cached) " >&6
18046else case e in #(
18047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h.  */
18049int i;
18050int
18051main (void)
18052{
18053
18054  ;
18055  return 0;
18056}
18057_ACEOF
18058if ac_fn_c_try_link "$LINENO"
18059then :
18060  eval $cacheid=yes
18061else case e in #(
18062  e) eval $cacheid=no ;;
18063esac
18064fi
18065rm -f core conftest.err conftest.$ac_objext conftest.beam \
18066    conftest$ac_exeext conftest.$ac_ext ;;
18067esac
18068fi
18069
18070
18071		CFLAGS="$xorg_testset_save_CFLAGS"
18072
18073		eval supported=\$$cacheid
18074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18075printf "%s\n" "$supported" >&6; }
18076		if test "$supported" = "yes" ; then
18077			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18078			found="yes"
18079		fi
18080	fi
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096xorg_testset_save_CFLAGS="$CFLAGS"
18097
18098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18102if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18103then :
18104  printf %s "(cached) " >&6
18105else case e in #(
18106  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107/* end confdefs.h.  */
18108int i;
18109_ACEOF
18110if ac_fn_c_try_compile "$LINENO"
18111then :
18112  xorg_cv_cc_flag_unknown_warning_option=yes
18113else case e in #(
18114  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18115esac
18116fi
18117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18118esac
18119fi
18120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18123	CFLAGS="$xorg_testset_save_CFLAGS"
18124fi
18125
18126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18129	fi
18130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18134then :
18135  printf %s "(cached) " >&6
18136else case e in #(
18137  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18138/* end confdefs.h.  */
18139int i;
18140_ACEOF
18141if ac_fn_c_try_compile "$LINENO"
18142then :
18143  xorg_cv_cc_flag_unused_command_line_argument=yes
18144else case e in #(
18145  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18146esac
18147fi
18148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18149esac
18150fi
18151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18154	CFLAGS="$xorg_testset_save_CFLAGS"
18155fi
18156
18157found="no"
18158
18159	if test $found = "no" ; then
18160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18162		fi
18163
18164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18166		fi
18167
18168		CFLAGS="$CFLAGS -Wnonnull"
18169
18170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18171printf %s "checking if $CC supports -Wnonnull... " >&6; }
18172		cacheid=xorg_cv_cc_flag__Wnonnull
18173		if eval test \${$cacheid+y}
18174then :
18175  printf %s "(cached) " >&6
18176else case e in #(
18177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178/* end confdefs.h.  */
18179int i;
18180int
18181main (void)
18182{
18183
18184  ;
18185  return 0;
18186}
18187_ACEOF
18188if ac_fn_c_try_link "$LINENO"
18189then :
18190  eval $cacheid=yes
18191else case e in #(
18192  e) eval $cacheid=no ;;
18193esac
18194fi
18195rm -f core conftest.err conftest.$ac_objext conftest.beam \
18196    conftest$ac_exeext conftest.$ac_ext ;;
18197esac
18198fi
18199
18200
18201		CFLAGS="$xorg_testset_save_CFLAGS"
18202
18203		eval supported=\$$cacheid
18204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18205printf "%s\n" "$supported" >&6; }
18206		if test "$supported" = "yes" ; then
18207			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18208			found="yes"
18209		fi
18210	fi
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226xorg_testset_save_CFLAGS="$CFLAGS"
18227
18228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18230	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18232if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18233then :
18234  printf %s "(cached) " >&6
18235else case e in #(
18236  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237/* end confdefs.h.  */
18238int i;
18239_ACEOF
18240if ac_fn_c_try_compile "$LINENO"
18241then :
18242  xorg_cv_cc_flag_unknown_warning_option=yes
18243else case e in #(
18244  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18245esac
18246fi
18247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18248esac
18249fi
18250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18253	CFLAGS="$xorg_testset_save_CFLAGS"
18254fi
18255
18256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18259	fi
18260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18263if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18264then :
18265  printf %s "(cached) " >&6
18266else case e in #(
18267  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h.  */
18269int i;
18270_ACEOF
18271if ac_fn_c_try_compile "$LINENO"
18272then :
18273  xorg_cv_cc_flag_unused_command_line_argument=yes
18274else case e in #(
18275  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18276esac
18277fi
18278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18279esac
18280fi
18281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18284	CFLAGS="$xorg_testset_save_CFLAGS"
18285fi
18286
18287found="no"
18288
18289	if test $found = "no" ; then
18290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18292		fi
18293
18294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18296		fi
18297
18298		CFLAGS="$CFLAGS -Winit-self"
18299
18300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18301printf %s "checking if $CC supports -Winit-self... " >&6; }
18302		cacheid=xorg_cv_cc_flag__Winit_self
18303		if eval test \${$cacheid+y}
18304then :
18305  printf %s "(cached) " >&6
18306else case e in #(
18307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308/* end confdefs.h.  */
18309int i;
18310int
18311main (void)
18312{
18313
18314  ;
18315  return 0;
18316}
18317_ACEOF
18318if ac_fn_c_try_link "$LINENO"
18319then :
18320  eval $cacheid=yes
18321else case e in #(
18322  e) eval $cacheid=no ;;
18323esac
18324fi
18325rm -f core conftest.err conftest.$ac_objext conftest.beam \
18326    conftest$ac_exeext conftest.$ac_ext ;;
18327esac
18328fi
18329
18330
18331		CFLAGS="$xorg_testset_save_CFLAGS"
18332
18333		eval supported=\$$cacheid
18334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18335printf "%s\n" "$supported" >&6; }
18336		if test "$supported" = "yes" ; then
18337			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18338			found="yes"
18339		fi
18340	fi
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356xorg_testset_save_CFLAGS="$CFLAGS"
18357
18358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18362if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18363then :
18364  printf %s "(cached) " >&6
18365else case e in #(
18366  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367/* end confdefs.h.  */
18368int i;
18369_ACEOF
18370if ac_fn_c_try_compile "$LINENO"
18371then :
18372  xorg_cv_cc_flag_unknown_warning_option=yes
18373else case e in #(
18374  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18375esac
18376fi
18377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18378esac
18379fi
18380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18383	CFLAGS="$xorg_testset_save_CFLAGS"
18384fi
18385
18386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389	fi
18390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18393if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18394then :
18395  printf %s "(cached) " >&6
18396else case e in #(
18397  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398/* end confdefs.h.  */
18399int i;
18400_ACEOF
18401if ac_fn_c_try_compile "$LINENO"
18402then :
18403  xorg_cv_cc_flag_unused_command_line_argument=yes
18404else case e in #(
18405  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18406esac
18407fi
18408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18409esac
18410fi
18411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18412printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18414	CFLAGS="$xorg_testset_save_CFLAGS"
18415fi
18416
18417found="no"
18418
18419	if test $found = "no" ; then
18420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18422		fi
18423
18424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18426		fi
18427
18428		CFLAGS="$CFLAGS -Wmain"
18429
18430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18431printf %s "checking if $CC supports -Wmain... " >&6; }
18432		cacheid=xorg_cv_cc_flag__Wmain
18433		if eval test \${$cacheid+y}
18434then :
18435  printf %s "(cached) " >&6
18436else case e in #(
18437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438/* end confdefs.h.  */
18439int i;
18440int
18441main (void)
18442{
18443
18444  ;
18445  return 0;
18446}
18447_ACEOF
18448if ac_fn_c_try_link "$LINENO"
18449then :
18450  eval $cacheid=yes
18451else case e in #(
18452  e) eval $cacheid=no ;;
18453esac
18454fi
18455rm -f core conftest.err conftest.$ac_objext conftest.beam \
18456    conftest$ac_exeext conftest.$ac_ext ;;
18457esac
18458fi
18459
18460
18461		CFLAGS="$xorg_testset_save_CFLAGS"
18462
18463		eval supported=\$$cacheid
18464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18465printf "%s\n" "$supported" >&6; }
18466		if test "$supported" = "yes" ; then
18467			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18468			found="yes"
18469		fi
18470	fi
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486xorg_testset_save_CFLAGS="$CFLAGS"
18487
18488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18493then :
18494  printf %s "(cached) " >&6
18495else case e in #(
18496  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h.  */
18498int i;
18499_ACEOF
18500if ac_fn_c_try_compile "$LINENO"
18501then :
18502  xorg_cv_cc_flag_unknown_warning_option=yes
18503else case e in #(
18504  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18505esac
18506fi
18507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18508esac
18509fi
18510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18511printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18512	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18513	CFLAGS="$xorg_testset_save_CFLAGS"
18514fi
18515
18516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18517	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18518		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18519	fi
18520	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18522printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18523if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18524then :
18525  printf %s "(cached) " >&6
18526else case e in #(
18527  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528/* end confdefs.h.  */
18529int i;
18530_ACEOF
18531if ac_fn_c_try_compile "$LINENO"
18532then :
18533  xorg_cv_cc_flag_unused_command_line_argument=yes
18534else case e in #(
18535  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18536esac
18537fi
18538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18539esac
18540fi
18541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18544	CFLAGS="$xorg_testset_save_CFLAGS"
18545fi
18546
18547found="no"
18548
18549	if test $found = "no" ; then
18550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18552		fi
18553
18554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18556		fi
18557
18558		CFLAGS="$CFLAGS -Wmissing-braces"
18559
18560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18561printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18562		cacheid=xorg_cv_cc_flag__Wmissing_braces
18563		if eval test \${$cacheid+y}
18564then :
18565  printf %s "(cached) " >&6
18566else case e in #(
18567  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568/* end confdefs.h.  */
18569int i;
18570int
18571main (void)
18572{
18573
18574  ;
18575  return 0;
18576}
18577_ACEOF
18578if ac_fn_c_try_link "$LINENO"
18579then :
18580  eval $cacheid=yes
18581else case e in #(
18582  e) eval $cacheid=no ;;
18583esac
18584fi
18585rm -f core conftest.err conftest.$ac_objext conftest.beam \
18586    conftest$ac_exeext conftest.$ac_ext ;;
18587esac
18588fi
18589
18590
18591		CFLAGS="$xorg_testset_save_CFLAGS"
18592
18593		eval supported=\$$cacheid
18594		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18595printf "%s\n" "$supported" >&6; }
18596		if test "$supported" = "yes" ; then
18597			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18598			found="yes"
18599		fi
18600	fi
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616xorg_testset_save_CFLAGS="$CFLAGS"
18617
18618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18623then :
18624  printf %s "(cached) " >&6
18625else case e in #(
18626  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628int i;
18629_ACEOF
18630if ac_fn_c_try_compile "$LINENO"
18631then :
18632  xorg_cv_cc_flag_unknown_warning_option=yes
18633else case e in #(
18634  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18635esac
18636fi
18637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18638esac
18639fi
18640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18643	CFLAGS="$xorg_testset_save_CFLAGS"
18644fi
18645
18646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18649	fi
18650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18653if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18654then :
18655  printf %s "(cached) " >&6
18656else case e in #(
18657  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658/* end confdefs.h.  */
18659int i;
18660_ACEOF
18661if ac_fn_c_try_compile "$LINENO"
18662then :
18663  xorg_cv_cc_flag_unused_command_line_argument=yes
18664else case e in #(
18665  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18666esac
18667fi
18668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18669esac
18670fi
18671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18672printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18673	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18674	CFLAGS="$xorg_testset_save_CFLAGS"
18675fi
18676
18677found="no"
18678
18679	if test $found = "no" ; then
18680		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18681			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18682		fi
18683
18684		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18685			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18686		fi
18687
18688		CFLAGS="$CFLAGS -Wsequence-point"
18689
18690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18691printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18692		cacheid=xorg_cv_cc_flag__Wsequence_point
18693		if eval test \${$cacheid+y}
18694then :
18695  printf %s "(cached) " >&6
18696else case e in #(
18697  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698/* end confdefs.h.  */
18699int i;
18700int
18701main (void)
18702{
18703
18704  ;
18705  return 0;
18706}
18707_ACEOF
18708if ac_fn_c_try_link "$LINENO"
18709then :
18710  eval $cacheid=yes
18711else case e in #(
18712  e) eval $cacheid=no ;;
18713esac
18714fi
18715rm -f core conftest.err conftest.$ac_objext conftest.beam \
18716    conftest$ac_exeext conftest.$ac_ext ;;
18717esac
18718fi
18719
18720
18721		CFLAGS="$xorg_testset_save_CFLAGS"
18722
18723		eval supported=\$$cacheid
18724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18725printf "%s\n" "$supported" >&6; }
18726		if test "$supported" = "yes" ; then
18727			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18728			found="yes"
18729		fi
18730	fi
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746xorg_testset_save_CFLAGS="$CFLAGS"
18747
18748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18752if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18753then :
18754  printf %s "(cached) " >&6
18755else case e in #(
18756  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757/* end confdefs.h.  */
18758int i;
18759_ACEOF
18760if ac_fn_c_try_compile "$LINENO"
18761then :
18762  xorg_cv_cc_flag_unknown_warning_option=yes
18763else case e in #(
18764  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18765esac
18766fi
18767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18768esac
18769fi
18770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18773	CFLAGS="$xorg_testset_save_CFLAGS"
18774fi
18775
18776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18779	fi
18780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18783if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18784then :
18785  printf %s "(cached) " >&6
18786else case e in #(
18787  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788/* end confdefs.h.  */
18789int i;
18790_ACEOF
18791if ac_fn_c_try_compile "$LINENO"
18792then :
18793  xorg_cv_cc_flag_unused_command_line_argument=yes
18794else case e in #(
18795  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18796esac
18797fi
18798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18799esac
18800fi
18801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18802printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18804	CFLAGS="$xorg_testset_save_CFLAGS"
18805fi
18806
18807found="no"
18808
18809	if test $found = "no" ; then
18810		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18812		fi
18813
18814		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18816		fi
18817
18818		CFLAGS="$CFLAGS -Wreturn-type"
18819
18820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18821printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18822		cacheid=xorg_cv_cc_flag__Wreturn_type
18823		if eval test \${$cacheid+y}
18824then :
18825  printf %s "(cached) " >&6
18826else case e in #(
18827  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828/* end confdefs.h.  */
18829int i;
18830int
18831main (void)
18832{
18833
18834  ;
18835  return 0;
18836}
18837_ACEOF
18838if ac_fn_c_try_link "$LINENO"
18839then :
18840  eval $cacheid=yes
18841else case e in #(
18842  e) eval $cacheid=no ;;
18843esac
18844fi
18845rm -f core conftest.err conftest.$ac_objext conftest.beam \
18846    conftest$ac_exeext conftest.$ac_ext ;;
18847esac
18848fi
18849
18850
18851		CFLAGS="$xorg_testset_save_CFLAGS"
18852
18853		eval supported=\$$cacheid
18854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18855printf "%s\n" "$supported" >&6; }
18856		if test "$supported" = "yes" ; then
18857			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18858			found="yes"
18859		fi
18860	fi
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876xorg_testset_save_CFLAGS="$CFLAGS"
18877
18878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18880	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18881printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18882if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18883then :
18884  printf %s "(cached) " >&6
18885else case e in #(
18886  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888int i;
18889_ACEOF
18890if ac_fn_c_try_compile "$LINENO"
18891then :
18892  xorg_cv_cc_flag_unknown_warning_option=yes
18893else case e in #(
18894  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18895esac
18896fi
18897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18898esac
18899fi
18900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18901printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18903	CFLAGS="$xorg_testset_save_CFLAGS"
18904fi
18905
18906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18909	fi
18910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18912printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18913if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18914then :
18915  printf %s "(cached) " >&6
18916else case e in #(
18917  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918/* end confdefs.h.  */
18919int i;
18920_ACEOF
18921if ac_fn_c_try_compile "$LINENO"
18922then :
18923  xorg_cv_cc_flag_unused_command_line_argument=yes
18924else case e in #(
18925  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18926esac
18927fi
18928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18929esac
18930fi
18931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18934	CFLAGS="$xorg_testset_save_CFLAGS"
18935fi
18936
18937found="no"
18938
18939	if test $found = "no" ; then
18940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18942		fi
18943
18944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18946		fi
18947
18948		CFLAGS="$CFLAGS -Wtrigraphs"
18949
18950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18951printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18952		cacheid=xorg_cv_cc_flag__Wtrigraphs
18953		if eval test \${$cacheid+y}
18954then :
18955  printf %s "(cached) " >&6
18956else case e in #(
18957  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958/* end confdefs.h.  */
18959int i;
18960int
18961main (void)
18962{
18963
18964  ;
18965  return 0;
18966}
18967_ACEOF
18968if ac_fn_c_try_link "$LINENO"
18969then :
18970  eval $cacheid=yes
18971else case e in #(
18972  e) eval $cacheid=no ;;
18973esac
18974fi
18975rm -f core conftest.err conftest.$ac_objext conftest.beam \
18976    conftest$ac_exeext conftest.$ac_ext ;;
18977esac
18978fi
18979
18980
18981		CFLAGS="$xorg_testset_save_CFLAGS"
18982
18983		eval supported=\$$cacheid
18984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18985printf "%s\n" "$supported" >&6; }
18986		if test "$supported" = "yes" ; then
18987			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18988			found="yes"
18989		fi
18990	fi
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006xorg_testset_save_CFLAGS="$CFLAGS"
19007
19008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19012if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19013then :
19014  printf %s "(cached) " >&6
19015else case e in #(
19016  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017/* end confdefs.h.  */
19018int i;
19019_ACEOF
19020if ac_fn_c_try_compile "$LINENO"
19021then :
19022  xorg_cv_cc_flag_unknown_warning_option=yes
19023else case e in #(
19024  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19025esac
19026fi
19027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19028esac
19029fi
19030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19033	CFLAGS="$xorg_testset_save_CFLAGS"
19034fi
19035
19036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19039	fi
19040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19043if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19044then :
19045  printf %s "(cached) " >&6
19046else case e in #(
19047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048/* end confdefs.h.  */
19049int i;
19050_ACEOF
19051if ac_fn_c_try_compile "$LINENO"
19052then :
19053  xorg_cv_cc_flag_unused_command_line_argument=yes
19054else case e in #(
19055  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19056esac
19057fi
19058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19059esac
19060fi
19061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19064	CFLAGS="$xorg_testset_save_CFLAGS"
19065fi
19066
19067found="no"
19068
19069	if test $found = "no" ; then
19070		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19072		fi
19073
19074		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19076		fi
19077
19078		CFLAGS="$CFLAGS -Warray-bounds"
19079
19080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19081printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19082		cacheid=xorg_cv_cc_flag__Warray_bounds
19083		if eval test \${$cacheid+y}
19084then :
19085  printf %s "(cached) " >&6
19086else case e in #(
19087  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088/* end confdefs.h.  */
19089int i;
19090int
19091main (void)
19092{
19093
19094  ;
19095  return 0;
19096}
19097_ACEOF
19098if ac_fn_c_try_link "$LINENO"
19099then :
19100  eval $cacheid=yes
19101else case e in #(
19102  e) eval $cacheid=no ;;
19103esac
19104fi
19105rm -f core conftest.err conftest.$ac_objext conftest.beam \
19106    conftest$ac_exeext conftest.$ac_ext ;;
19107esac
19108fi
19109
19110
19111		CFLAGS="$xorg_testset_save_CFLAGS"
19112
19113		eval supported=\$$cacheid
19114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19115printf "%s\n" "$supported" >&6; }
19116		if test "$supported" = "yes" ; then
19117			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19118			found="yes"
19119		fi
19120	fi
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136xorg_testset_save_CFLAGS="$CFLAGS"
19137
19138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19139	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19140	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19142if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19143then :
19144  printf %s "(cached) " >&6
19145else case e in #(
19146  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147/* end confdefs.h.  */
19148int i;
19149_ACEOF
19150if ac_fn_c_try_compile "$LINENO"
19151then :
19152  xorg_cv_cc_flag_unknown_warning_option=yes
19153else case e in #(
19154  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19155esac
19156fi
19157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19158esac
19159fi
19160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19163	CFLAGS="$xorg_testset_save_CFLAGS"
19164fi
19165
19166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19169	fi
19170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19174then :
19175  printf %s "(cached) " >&6
19176else case e in #(
19177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178/* end confdefs.h.  */
19179int i;
19180_ACEOF
19181if ac_fn_c_try_compile "$LINENO"
19182then :
19183  xorg_cv_cc_flag_unused_command_line_argument=yes
19184else case e in #(
19185  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19186esac
19187fi
19188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19189esac
19190fi
19191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19192printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19194	CFLAGS="$xorg_testset_save_CFLAGS"
19195fi
19196
19197found="no"
19198
19199	if test $found = "no" ; then
19200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19202		fi
19203
19204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19206		fi
19207
19208		CFLAGS="$CFLAGS -Wwrite-strings"
19209
19210		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19211printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19212		cacheid=xorg_cv_cc_flag__Wwrite_strings
19213		if eval test \${$cacheid+y}
19214then :
19215  printf %s "(cached) " >&6
19216else case e in #(
19217  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218/* end confdefs.h.  */
19219int i;
19220int
19221main (void)
19222{
19223
19224  ;
19225  return 0;
19226}
19227_ACEOF
19228if ac_fn_c_try_link "$LINENO"
19229then :
19230  eval $cacheid=yes
19231else case e in #(
19232  e) eval $cacheid=no ;;
19233esac
19234fi
19235rm -f core conftest.err conftest.$ac_objext conftest.beam \
19236    conftest$ac_exeext conftest.$ac_ext ;;
19237esac
19238fi
19239
19240
19241		CFLAGS="$xorg_testset_save_CFLAGS"
19242
19243		eval supported=\$$cacheid
19244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19245printf "%s\n" "$supported" >&6; }
19246		if test "$supported" = "yes" ; then
19247			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19248			found="yes"
19249		fi
19250	fi
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266xorg_testset_save_CFLAGS="$CFLAGS"
19267
19268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19272if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19273then :
19274  printf %s "(cached) " >&6
19275else case e in #(
19276  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277/* end confdefs.h.  */
19278int i;
19279_ACEOF
19280if ac_fn_c_try_compile "$LINENO"
19281then :
19282  xorg_cv_cc_flag_unknown_warning_option=yes
19283else case e in #(
19284  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19285esac
19286fi
19287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19288esac
19289fi
19290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19291printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19293	CFLAGS="$xorg_testset_save_CFLAGS"
19294fi
19295
19296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19299	fi
19300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19302printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19303if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19304then :
19305  printf %s "(cached) " >&6
19306else case e in #(
19307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308/* end confdefs.h.  */
19309int i;
19310_ACEOF
19311if ac_fn_c_try_compile "$LINENO"
19312then :
19313  xorg_cv_cc_flag_unused_command_line_argument=yes
19314else case e in #(
19315  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19316esac
19317fi
19318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19319esac
19320fi
19321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19324	CFLAGS="$xorg_testset_save_CFLAGS"
19325fi
19326
19327found="no"
19328
19329	if test $found = "no" ; then
19330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19332		fi
19333
19334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19336		fi
19337
19338		CFLAGS="$CFLAGS -Waddress"
19339
19340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19341printf %s "checking if $CC supports -Waddress... " >&6; }
19342		cacheid=xorg_cv_cc_flag__Waddress
19343		if eval test \${$cacheid+y}
19344then :
19345  printf %s "(cached) " >&6
19346else case e in #(
19347  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348/* end confdefs.h.  */
19349int i;
19350int
19351main (void)
19352{
19353
19354  ;
19355  return 0;
19356}
19357_ACEOF
19358if ac_fn_c_try_link "$LINENO"
19359then :
19360  eval $cacheid=yes
19361else case e in #(
19362  e) eval $cacheid=no ;;
19363esac
19364fi
19365rm -f core conftest.err conftest.$ac_objext conftest.beam \
19366    conftest$ac_exeext conftest.$ac_ext ;;
19367esac
19368fi
19369
19370
19371		CFLAGS="$xorg_testset_save_CFLAGS"
19372
19373		eval supported=\$$cacheid
19374		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19375printf "%s\n" "$supported" >&6; }
19376		if test "$supported" = "yes" ; then
19377			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19378			found="yes"
19379		fi
19380	fi
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396xorg_testset_save_CFLAGS="$CFLAGS"
19397
19398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19402if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19403then :
19404  printf %s "(cached) " >&6
19405else case e in #(
19406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407/* end confdefs.h.  */
19408int i;
19409_ACEOF
19410if ac_fn_c_try_compile "$LINENO"
19411then :
19412  xorg_cv_cc_flag_unknown_warning_option=yes
19413else case e in #(
19414  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19415esac
19416fi
19417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19418esac
19419fi
19420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19423	CFLAGS="$xorg_testset_save_CFLAGS"
19424fi
19425
19426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19429	fi
19430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19434then :
19435  printf %s "(cached) " >&6
19436else case e in #(
19437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438/* end confdefs.h.  */
19439int i;
19440_ACEOF
19441if ac_fn_c_try_compile "$LINENO"
19442then :
19443  xorg_cv_cc_flag_unused_command_line_argument=yes
19444else case e in #(
19445  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19446esac
19447fi
19448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19449esac
19450fi
19451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19452printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19454	CFLAGS="$xorg_testset_save_CFLAGS"
19455fi
19456
19457found="no"
19458
19459	if test $found = "no" ; then
19460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19462		fi
19463
19464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19466		fi
19467
19468		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19469
19470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19471printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19472		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19473		if eval test \${$cacheid+y}
19474then :
19475  printf %s "(cached) " >&6
19476else case e in #(
19477  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478/* end confdefs.h.  */
19479int i;
19480int
19481main (void)
19482{
19483
19484  ;
19485  return 0;
19486}
19487_ACEOF
19488if ac_fn_c_try_link "$LINENO"
19489then :
19490  eval $cacheid=yes
19491else case e in #(
19492  e) eval $cacheid=no ;;
19493esac
19494fi
19495rm -f core conftest.err conftest.$ac_objext conftest.beam \
19496    conftest$ac_exeext conftest.$ac_ext ;;
19497esac
19498fi
19499
19500
19501		CFLAGS="$xorg_testset_save_CFLAGS"
19502
19503		eval supported=\$$cacheid
19504		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19505printf "%s\n" "$supported" >&6; }
19506		if test "$supported" = "yes" ; then
19507			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19508			found="yes"
19509		fi
19510	fi
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526xorg_testset_save_CFLAGS="$CFLAGS"
19527
19528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19531printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19532if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19533then :
19534  printf %s "(cached) " >&6
19535else case e in #(
19536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537/* end confdefs.h.  */
19538int i;
19539_ACEOF
19540if ac_fn_c_try_compile "$LINENO"
19541then :
19542  xorg_cv_cc_flag_unknown_warning_option=yes
19543else case e in #(
19544  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19545esac
19546fi
19547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19548esac
19549fi
19550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19551printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19553	CFLAGS="$xorg_testset_save_CFLAGS"
19554fi
19555
19556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19559	fi
19560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19561	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19562printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19563if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19564then :
19565  printf %s "(cached) " >&6
19566else case e in #(
19567  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19568/* end confdefs.h.  */
19569int i;
19570_ACEOF
19571if ac_fn_c_try_compile "$LINENO"
19572then :
19573  xorg_cv_cc_flag_unused_command_line_argument=yes
19574else case e in #(
19575  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19576esac
19577fi
19578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19579esac
19580fi
19581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19582printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19584	CFLAGS="$xorg_testset_save_CFLAGS"
19585fi
19586
19587found="no"
19588
19589	if test $found = "no" ; then
19590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19592		fi
19593
19594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19596		fi
19597
19598		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19599
19600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19601printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19602		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19603		if eval test \${$cacheid+y}
19604then :
19605  printf %s "(cached) " >&6
19606else case e in #(
19607  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608/* end confdefs.h.  */
19609int i;
19610int
19611main (void)
19612{
19613
19614  ;
19615  return 0;
19616}
19617_ACEOF
19618if ac_fn_c_try_link "$LINENO"
19619then :
19620  eval $cacheid=yes
19621else case e in #(
19622  e) eval $cacheid=no ;;
19623esac
19624fi
19625rm -f core conftest.err conftest.$ac_objext conftest.beam \
19626    conftest$ac_exeext conftest.$ac_ext ;;
19627esac
19628fi
19629
19630
19631		CFLAGS="$xorg_testset_save_CFLAGS"
19632
19633		eval supported=\$$cacheid
19634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19635printf "%s\n" "$supported" >&6; }
19636		if test "$supported" = "yes" ; then
19637			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19638			found="yes"
19639		fi
19640	fi
19641
19642
19643fi
19644
19645
19646
19647
19648
19649
19650
19651		CWARNFLAGS="$BASE_CFLAGS"
19652		if  test "x$GCC" = xyes ; then
19653		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19654		fi
19655
19656
19657
19658
19659
19660
19661
19662
19663# Check whether --enable-strict-compilation was given.
19664if test ${enable_strict_compilation+y}
19665then :
19666  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19667else case e in #(
19668  e) STRICT_COMPILE=no ;;
19669esac
19670fi
19671
19672
19673
19674
19675
19676
19677STRICT_CFLAGS=""
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691xorg_testset_save_CFLAGS="$CFLAGS"
19692
19693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19697if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19698then :
19699  printf %s "(cached) " >&6
19700else case e in #(
19701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19702/* end confdefs.h.  */
19703int i;
19704_ACEOF
19705if ac_fn_c_try_compile "$LINENO"
19706then :
19707  xorg_cv_cc_flag_unknown_warning_option=yes
19708else case e in #(
19709  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19710esac
19711fi
19712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19713esac
19714fi
19715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19717	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19718	CFLAGS="$xorg_testset_save_CFLAGS"
19719fi
19720
19721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19722	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19723		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19724	fi
19725	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19726	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19728if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19729then :
19730  printf %s "(cached) " >&6
19731else case e in #(
19732  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733/* end confdefs.h.  */
19734int i;
19735_ACEOF
19736if ac_fn_c_try_compile "$LINENO"
19737then :
19738  xorg_cv_cc_flag_unused_command_line_argument=yes
19739else case e in #(
19740  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19741esac
19742fi
19743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19744esac
19745fi
19746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19748	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19749	CFLAGS="$xorg_testset_save_CFLAGS"
19750fi
19751
19752found="no"
19753
19754	if test $found = "no" ; then
19755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19757		fi
19758
19759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19761		fi
19762
19763		CFLAGS="$CFLAGS -pedantic"
19764
19765		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19766printf %s "checking if $CC supports -pedantic... " >&6; }
19767		cacheid=xorg_cv_cc_flag__pedantic
19768		if eval test \${$cacheid+y}
19769then :
19770  printf %s "(cached) " >&6
19771else case e in #(
19772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19773/* end confdefs.h.  */
19774int i;
19775int
19776main (void)
19777{
19778
19779  ;
19780  return 0;
19781}
19782_ACEOF
19783if ac_fn_c_try_link "$LINENO"
19784then :
19785  eval $cacheid=yes
19786else case e in #(
19787  e) eval $cacheid=no ;;
19788esac
19789fi
19790rm -f core conftest.err conftest.$ac_objext conftest.beam \
19791    conftest$ac_exeext conftest.$ac_ext ;;
19792esac
19793fi
19794
19795
19796		CFLAGS="$xorg_testset_save_CFLAGS"
19797
19798		eval supported=\$$cacheid
19799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19800printf "%s\n" "$supported" >&6; }
19801		if test "$supported" = "yes" ; then
19802			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19803			found="yes"
19804		fi
19805	fi
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821xorg_testset_save_CFLAGS="$CFLAGS"
19822
19823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19828then :
19829  printf %s "(cached) " >&6
19830else case e in #(
19831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832/* end confdefs.h.  */
19833int i;
19834_ACEOF
19835if ac_fn_c_try_compile "$LINENO"
19836then :
19837  xorg_cv_cc_flag_unknown_warning_option=yes
19838else case e in #(
19839  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19840esac
19841fi
19842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19843esac
19844fi
19845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19848	CFLAGS="$xorg_testset_save_CFLAGS"
19849fi
19850
19851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19854	fi
19855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19859then :
19860  printf %s "(cached) " >&6
19861else case e in #(
19862  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863/* end confdefs.h.  */
19864int i;
19865_ACEOF
19866if ac_fn_c_try_compile "$LINENO"
19867then :
19868  xorg_cv_cc_flag_unused_command_line_argument=yes
19869else case e in #(
19870  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19871esac
19872fi
19873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19874esac
19875fi
19876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19879	CFLAGS="$xorg_testset_save_CFLAGS"
19880fi
19881
19882found="no"
19883
19884	if test $found = "no" ; then
19885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19887		fi
19888
19889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19891		fi
19892
19893		CFLAGS="$CFLAGS -Werror"
19894
19895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19896printf %s "checking if $CC supports -Werror... " >&6; }
19897		cacheid=xorg_cv_cc_flag__Werror
19898		if eval test \${$cacheid+y}
19899then :
19900  printf %s "(cached) " >&6
19901else case e in #(
19902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903/* end confdefs.h.  */
19904int i;
19905int
19906main (void)
19907{
19908
19909  ;
19910  return 0;
19911}
19912_ACEOF
19913if ac_fn_c_try_link "$LINENO"
19914then :
19915  eval $cacheid=yes
19916else case e in #(
19917  e) eval $cacheid=no ;;
19918esac
19919fi
19920rm -f core conftest.err conftest.$ac_objext conftest.beam \
19921    conftest$ac_exeext conftest.$ac_ext ;;
19922esac
19923fi
19924
19925
19926		CFLAGS="$xorg_testset_save_CFLAGS"
19927
19928		eval supported=\$$cacheid
19929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19930printf "%s\n" "$supported" >&6; }
19931		if test "$supported" = "yes" ; then
19932			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19933			found="yes"
19934		fi
19935	fi
19936
19937	if test $found = "no" ; then
19938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19940		fi
19941
19942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19944		fi
19945
19946		CFLAGS="$CFLAGS -errwarn"
19947
19948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19949printf %s "checking if $CC supports -errwarn... " >&6; }
19950		cacheid=xorg_cv_cc_flag__errwarn
19951		if eval test \${$cacheid+y}
19952then :
19953  printf %s "(cached) " >&6
19954else case e in #(
19955  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956/* end confdefs.h.  */
19957int i;
19958int
19959main (void)
19960{
19961
19962  ;
19963  return 0;
19964}
19965_ACEOF
19966if ac_fn_c_try_link "$LINENO"
19967then :
19968  eval $cacheid=yes
19969else case e in #(
19970  e) eval $cacheid=no ;;
19971esac
19972fi
19973rm -f core conftest.err conftest.$ac_objext conftest.beam \
19974    conftest$ac_exeext conftest.$ac_ext ;;
19975esac
19976fi
19977
19978
19979		CFLAGS="$xorg_testset_save_CFLAGS"
19980
19981		eval supported=\$$cacheid
19982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19983printf "%s\n" "$supported" >&6; }
19984		if test "$supported" = "yes" ; then
19985			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19986			found="yes"
19987		fi
19988	fi
19989
19990
19991
19992# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19993# activate it with -Werror, so we add it here explicitly.
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007xorg_testset_save_CFLAGS="$CFLAGS"
20008
20009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20013if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20014then :
20015  printf %s "(cached) " >&6
20016else case e in #(
20017  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018/* end confdefs.h.  */
20019int i;
20020_ACEOF
20021if ac_fn_c_try_compile "$LINENO"
20022then :
20023  xorg_cv_cc_flag_unknown_warning_option=yes
20024else case e in #(
20025  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20026esac
20027fi
20028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20029esac
20030fi
20031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20034	CFLAGS="$xorg_testset_save_CFLAGS"
20035fi
20036
20037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20040	fi
20041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20045then :
20046  printf %s "(cached) " >&6
20047else case e in #(
20048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049/* end confdefs.h.  */
20050int i;
20051_ACEOF
20052if ac_fn_c_try_compile "$LINENO"
20053then :
20054  xorg_cv_cc_flag_unused_command_line_argument=yes
20055else case e in #(
20056  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20057esac
20058fi
20059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20060esac
20061fi
20062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20065	CFLAGS="$xorg_testset_save_CFLAGS"
20066fi
20067
20068found="no"
20069
20070	if test $found = "no" ; then
20071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20073		fi
20074
20075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20077		fi
20078
20079		CFLAGS="$CFLAGS -Werror=attributes"
20080
20081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20082printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20083		cacheid=xorg_cv_cc_flag__Werror_attributes
20084		if eval test \${$cacheid+y}
20085then :
20086  printf %s "(cached) " >&6
20087else case e in #(
20088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089/* end confdefs.h.  */
20090int i;
20091int
20092main (void)
20093{
20094
20095  ;
20096  return 0;
20097}
20098_ACEOF
20099if ac_fn_c_try_link "$LINENO"
20100then :
20101  eval $cacheid=yes
20102else case e in #(
20103  e) eval $cacheid=no ;;
20104esac
20105fi
20106rm -f core conftest.err conftest.$ac_objext conftest.beam \
20107    conftest$ac_exeext conftest.$ac_ext ;;
20108esac
20109fi
20110
20111
20112		CFLAGS="$xorg_testset_save_CFLAGS"
20113
20114		eval supported=\$$cacheid
20115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20116printf "%s\n" "$supported" >&6; }
20117		if test "$supported" = "yes" ; then
20118			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20119			found="yes"
20120		fi
20121	fi
20122
20123
20124
20125if test "x$STRICT_COMPILE" = "xyes"; then
20126    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20127    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20128fi
20129
20130
20131
20132
20133
20134
20135
20136
20137cat >>confdefs.h <<_ACEOF
20138#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20139_ACEOF
20140
20141	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20142	if test "x$PVM" = "x"; then
20143		PVM="0"
20144	fi
20145
20146printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20147
20148	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20149	if test "x$PVP" = "x"; then
20150		PVP="0"
20151	fi
20152
20153printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20154
20155
20156
20157CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20158mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20159|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20160touch \$(top_srcdir)/ChangeLog; \
20161echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20162
20163
20164
20165
20166macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20167INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20168mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20169|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20170touch \$(top_srcdir)/INSTALL; \
20171echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20172
20173
20174
20175
20176
20177
20178case $host_os in
20179    solaris*)
20180        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20181        # check for a man page file found in later versions that use
20182        # traditional section numbers instead
20183        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20184printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20185if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20186then :
20187  printf %s "(cached) " >&6
20188else case e in #(
20189  e) test "$cross_compiling" = yes &&
20190  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20191if test -r "/usr/share/man/man7/attributes.7"; then
20192  ac_cv_file__usr_share_man_man7_attributes_7=yes
20193else
20194  ac_cv_file__usr_share_man_man7_attributes_7=no
20195fi ;;
20196esac
20197fi
20198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20199printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20200if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20201then :
20202  SYSV_MAN_SECTIONS=false
20203else case e in #(
20204  e) SYSV_MAN_SECTIONS=true ;;
20205esac
20206fi
20207
20208        ;;
20209    *) SYSV_MAN_SECTIONS=false ;;
20210esac
20211
20212if test x$APP_MAN_SUFFIX = x    ; then
20213    APP_MAN_SUFFIX=1
20214fi
20215if test x$APP_MAN_DIR = x    ; then
20216    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20217fi
20218
20219if test x$LIB_MAN_SUFFIX = x    ; then
20220    LIB_MAN_SUFFIX=3
20221fi
20222if test x$LIB_MAN_DIR = x    ; then
20223    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20224fi
20225
20226if test x$FILE_MAN_SUFFIX = x    ; then
20227    case $SYSV_MAN_SECTIONS in
20228	true)				FILE_MAN_SUFFIX=4  ;;
20229	*)				FILE_MAN_SUFFIX=5  ;;
20230    esac
20231fi
20232if test x$FILE_MAN_DIR = x    ; then
20233    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20234fi
20235
20236if test x$MISC_MAN_SUFFIX = x    ; then
20237    case $SYSV_MAN_SECTIONS in
20238	true)				MISC_MAN_SUFFIX=5  ;;
20239	*)				MISC_MAN_SUFFIX=7  ;;
20240    esac
20241fi
20242if test x$MISC_MAN_DIR = x    ; then
20243    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20244fi
20245
20246if test x$DRIVER_MAN_SUFFIX = x    ; then
20247    case $SYSV_MAN_SECTIONS in
20248	true)				DRIVER_MAN_SUFFIX=7  ;;
20249	*)				DRIVER_MAN_SUFFIX=4  ;;
20250    esac
20251fi
20252if test x$DRIVER_MAN_DIR = x    ; then
20253    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20254fi
20255
20256if test x$ADMIN_MAN_SUFFIX = x    ; then
20257    case $SYSV_MAN_SECTIONS in
20258	true)				ADMIN_MAN_SUFFIX=1m ;;
20259	*)				ADMIN_MAN_SUFFIX=8  ;;
20260    esac
20261fi
20262if test x$ADMIN_MAN_DIR = x    ; then
20263    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20264fi
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280XORG_MAN_PAGE="X Version 11"
20281
20282MAN_SUBSTS="\
20283	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20284	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20285	-e 's|__xservername__|Xorg|g' \
20286	-e 's|__xconfigfile__|xorg.conf|g' \
20287	-e 's|__projectroot__|\$(prefix)|g' \
20288	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
20289	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20290	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20291	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20292	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20293	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20294	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20295
20296
20297
20298
20299AM_DEFAULT_VERBOSITY=0
20300
20301
20302
20303# Check whether --enable-malloc0returnsnull was given.
20304if test ${enable_malloc0returnsnull+y}
20305then :
20306  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20307else case e in #(
20308  e) MALLOC_ZERO_RETURNS_NULL=yes ;;
20309esac
20310fi
20311
20312
20313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5
20314printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; }
20315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20316printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
20317
20318if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20319	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20320	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20321	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20322else
20323	MALLOC_ZERO_CFLAGS=""
20324	XMALLOC_ZERO_CFLAGS=""
20325	XTMALLOC_ZERO_CFLAGS=""
20326fi
20327
20328
20329
20330
20331
20332
20333# Check render configuration, strip extra digits from package version to
20334# find the required protocol version
20335if test "$VERSION" = "" ; then
20336       VERSION=$PACKAGE_VERSION;
20337fi
20338RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
20339
20340
20341# Obtain compiler/linker options for dependencies
20342
20343pkg_failed=no
20344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5
20345printf %s "checking for RENDER... " >&6; }
20346
20347if test -n "$RENDER_CFLAGS"; then
20348    pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS"
20349 elif test -n "$PKG_CONFIG"; then
20350    if test -n "$PKG_CONFIG" && \
20351    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
20352  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
20353  ac_status=$?
20354  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20355  test $ac_status = 0; }; then
20356  pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
20357		      test "x$?" != "x0" && pkg_failed=yes
20358else
20359  pkg_failed=yes
20360fi
20361 else
20362    pkg_failed=untried
20363fi
20364if test -n "$RENDER_LIBS"; then
20365    pkg_cv_RENDER_LIBS="$RENDER_LIBS"
20366 elif test -n "$PKG_CONFIG"; then
20367    if test -n "$PKG_CONFIG" && \
20368    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5
20369  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5
20370  ac_status=$?
20371  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20372  test $ac_status = 0; }; then
20373  pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null`
20374		      test "x$?" != "x0" && pkg_failed=yes
20375else
20376  pkg_failed=yes
20377fi
20378 else
20379    pkg_failed=untried
20380fi
20381
20382
20383
20384if test $pkg_failed = yes; then
20385   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20386printf "%s\n" "no" >&6; }
20387
20388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20389        _pkg_short_errors_supported=yes
20390else
20391        _pkg_short_errors_supported=no
20392fi
20393        if test $_pkg_short_errors_supported = yes; then
20394	        RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
20395        else
20396	        RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1`
20397        fi
20398	# Put the nasty error message in config.log where it belongs
20399	echo "$RENDER_PKG_ERRORS" >&5
20400
20401	as_fn_error $? "Package requirements (x11 >= 1.6 renderproto >= $RENDER_VERSION) were not met:
20402
20403$RENDER_PKG_ERRORS
20404
20405Consider adjusting the PKG_CONFIG_PATH environment variable if you
20406installed software in a non-standard prefix.
20407
20408Alternatively, you may set the environment variables RENDER_CFLAGS
20409and RENDER_LIBS to avoid the need to call pkg-config.
20410See the pkg-config man page for more details." "$LINENO" 5
20411elif test $pkg_failed = untried; then
20412     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20413printf "%s\n" "no" >&6; }
20414	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20415printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20416as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20417is in your PATH or set the PKG_CONFIG environment variable to the full
20418path to pkg-config.
20419
20420Alternatively, you may set the environment variables RENDER_CFLAGS
20421and RENDER_LIBS to avoid the need to call pkg-config.
20422See the pkg-config man page for more details.
20423
20424To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20425See 'config.log' for more details" "$LINENO" 5; }
20426else
20427	RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS
20428	RENDER_LIBS=$pkg_cv_RENDER_LIBS
20429        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20430printf "%s\n" "yes" >&6; }
20431
20432fi
20433
20434ac_config_files="$ac_config_files Makefile src/Makefile Doxyfile xrender.pc"
20435
20436cat >confcache <<\_ACEOF
20437# This file is a shell script that caches the results of configure
20438# tests run on this system so they can be shared between configure
20439# scripts and configure runs, see configure's option --config-cache.
20440# It is not useful on other systems.  If it contains results you don't
20441# want to keep, you may remove or edit it.
20442#
20443# config.status only pays attention to the cache file if you give it
20444# the --recheck option to rerun configure.
20445#
20446# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20447# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20448# following values.
20449
20450_ACEOF
20451
20452# The following way of writing the cache mishandles newlines in values,
20453# but we know of no workaround that is simple, portable, and efficient.
20454# So, we kill variables containing newlines.
20455# Ultrix sh set writes to stderr and can't be redirected directly,
20456# and sets the high bit in the cache file unless we assign to the vars.
20457(
20458  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20459    eval ac_val=\$$ac_var
20460    case $ac_val in #(
20461    *${as_nl}*)
20462      case $ac_var in #(
20463      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20464printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20465      esac
20466      case $ac_var in #(
20467      _ | IFS | as_nl) ;; #(
20468      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20469      *) { eval $ac_var=; unset $ac_var;} ;;
20470      esac ;;
20471    esac
20472  done
20473
20474  (set) 2>&1 |
20475    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20476    *${as_nl}ac_space=\ *)
20477      # 'set' does not quote correctly, so add quotes: double-quote
20478      # substitution turns \\\\ into \\, and sed turns \\ into \.
20479      sed -n \
20480	"s/'/'\\\\''/g;
20481	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20482      ;; #(
20483    *)
20484      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20485      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20486      ;;
20487    esac |
20488    sort
20489) |
20490  sed '
20491     /^ac_cv_env_/b end
20492     t clear
20493     :clear
20494     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20495     t end
20496     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20497     :end' >>confcache
20498if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20499  if test -w "$cache_file"; then
20500    if test "x$cache_file" != "x/dev/null"; then
20501      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20502printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20503      if test ! -f "$cache_file" || test -h "$cache_file"; then
20504	cat confcache >"$cache_file"
20505      else
20506        case $cache_file in #(
20507        */* | ?:*)
20508	  mv -f confcache "$cache_file"$$ &&
20509	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20510        *)
20511	  mv -f confcache "$cache_file" ;;
20512	esac
20513      fi
20514    fi
20515  else
20516    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20517printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20518  fi
20519fi
20520rm -f confcache
20521
20522test "x$prefix" = xNONE && prefix=$ac_default_prefix
20523# Let make expand exec_prefix.
20524test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20525
20526DEFS=-DHAVE_CONFIG_H
20527
20528ac_libobjs=
20529ac_ltlibobjs=
20530U=
20531for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20532  # 1. Remove the extension, and $U if already installed.
20533  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20534  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20535  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20536  #    will be set to the directory where LIBOBJS objects are built.
20537  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20538  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20539done
20540LIBOBJS=$ac_libobjs
20541
20542LTLIBOBJS=$ac_ltlibobjs
20543
20544
20545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20546printf %s "checking that generated files are newer than configure... " >&6; }
20547   if test -n "$am_sleep_pid"; then
20548     # Hide warnings about reused PIDs.
20549     wait $am_sleep_pid 2>/dev/null
20550   fi
20551   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20552printf "%s\n" "done" >&6; }
20553case $enable_silent_rules in # (((
20554  yes) AM_DEFAULT_VERBOSITY=0;;
20555   no) AM_DEFAULT_VERBOSITY=1;;
20556esac
20557if test $am_cv_make_support_nested_variables = yes; then
20558    AM_V='$(V)'
20559  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20560else
20561  AM_V=$AM_DEFAULT_VERBOSITY
20562  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20563fi
20564
20565 if test -n "$EXEEXT"; then
20566  am__EXEEXT_TRUE=
20567  am__EXEEXT_FALSE='#'
20568else
20569  am__EXEEXT_TRUE='#'
20570  am__EXEEXT_FALSE=
20571fi
20572
20573if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20574  as_fn_error $? "conditional \"AMDEP\" was never defined.
20575Usually this means the macro was only invoked conditionally." "$LINENO" 5
20576fi
20577if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20578  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20579Usually this means the macro was only invoked conditionally." "$LINENO" 5
20580fi
20581
20582: "${CONFIG_STATUS=./config.status}"
20583ac_write_fail=0
20584ac_clean_files_save=$ac_clean_files
20585ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20587printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20588as_write_fail=0
20589cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20590#! $SHELL
20591# Generated by $as_me.
20592# Run this file to recreate the current configuration.
20593# Compiler output produced by configure, useful for debugging
20594# configure, is in config.log if it exists.
20595
20596debug=false
20597ac_cs_recheck=false
20598ac_cs_silent=false
20599
20600SHELL=\${CONFIG_SHELL-$SHELL}
20601export SHELL
20602_ASEOF
20603cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20604## -------------------- ##
20605## M4sh Initialization. ##
20606## -------------------- ##
20607
20608# Be more Bourne compatible
20609DUALCASE=1; export DUALCASE # for MKS sh
20610if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20611then :
20612  emulate sh
20613  NULLCMD=:
20614  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20615  # is contrary to our usage.  Disable this feature.
20616  alias -g '${1+"$@"}'='"$@"'
20617  setopt NO_GLOB_SUBST
20618else case e in #(
20619  e) case `(set -o) 2>/dev/null` in #(
20620  *posix*) :
20621    set -o posix ;; #(
20622  *) :
20623     ;;
20624esac ;;
20625esac
20626fi
20627
20628
20629
20630# Reset variables that may have inherited troublesome values from
20631# the environment.
20632
20633# IFS needs to be set, to space, tab, and newline, in precisely that order.
20634# (If _AS_PATH_WALK were called with IFS unset, it would have the
20635# side effect of setting IFS to empty, thus disabling word splitting.)
20636# Quoting is to prevent editors from complaining about space-tab.
20637as_nl='
20638'
20639export as_nl
20640IFS=" ""	$as_nl"
20641
20642PS1='$ '
20643PS2='> '
20644PS4='+ '
20645
20646# Ensure predictable behavior from utilities with locale-dependent output.
20647LC_ALL=C
20648export LC_ALL
20649LANGUAGE=C
20650export LANGUAGE
20651
20652# We cannot yet rely on "unset" to work, but we need these variables
20653# to be unset--not just set to an empty or harmless value--now, to
20654# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20655# also avoids known problems related to "unset" and subshell syntax
20656# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20657for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20658do eval test \${$as_var+y} \
20659  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20660done
20661
20662# Ensure that fds 0, 1, and 2 are open.
20663if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20664if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20665if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20666
20667# The user is always right.
20668if ${PATH_SEPARATOR+false} :; then
20669  PATH_SEPARATOR=:
20670  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20671    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20672      PATH_SEPARATOR=';'
20673  }
20674fi
20675
20676
20677# Find who we are.  Look in the path if we contain no directory separator.
20678as_myself=
20679case $0 in #((
20680  *[\\/]* ) as_myself=$0 ;;
20681  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20682for as_dir in $PATH
20683do
20684  IFS=$as_save_IFS
20685  case $as_dir in #(((
20686    '') as_dir=./ ;;
20687    */) ;;
20688    *) as_dir=$as_dir/ ;;
20689  esac
20690    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20691  done
20692IFS=$as_save_IFS
20693
20694     ;;
20695esac
20696# We did not find ourselves, most probably we were run as 'sh COMMAND'
20697# in which case we are not to be found in the path.
20698if test "x$as_myself" = x; then
20699  as_myself=$0
20700fi
20701if test ! -f "$as_myself"; then
20702  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20703  exit 1
20704fi
20705
20706
20707
20708# as_fn_error STATUS ERROR [LINENO LOG_FD]
20709# ----------------------------------------
20710# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20711# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20712# script with STATUS, using 1 if that was 0.
20713as_fn_error ()
20714{
20715  as_status=$1; test $as_status -eq 0 && as_status=1
20716  if test "$4"; then
20717    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20718    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20719  fi
20720  printf "%s\n" "$as_me: error: $2" >&2
20721  as_fn_exit $as_status
20722} # as_fn_error
20723
20724
20725# as_fn_set_status STATUS
20726# -----------------------
20727# Set $? to STATUS, without forking.
20728as_fn_set_status ()
20729{
20730  return $1
20731} # as_fn_set_status
20732
20733# as_fn_exit STATUS
20734# -----------------
20735# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20736as_fn_exit ()
20737{
20738  set +e
20739  as_fn_set_status $1
20740  exit $1
20741} # as_fn_exit
20742
20743# as_fn_unset VAR
20744# ---------------
20745# Portably unset VAR.
20746as_fn_unset ()
20747{
20748  { eval $1=; unset $1;}
20749}
20750as_unset=as_fn_unset
20751
20752# as_fn_append VAR VALUE
20753# ----------------------
20754# Append the text in VALUE to the end of the definition contained in VAR. Take
20755# advantage of any shell optimizations that allow amortized linear growth over
20756# repeated appends, instead of the typical quadratic growth present in naive
20757# implementations.
20758if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20759then :
20760  eval 'as_fn_append ()
20761  {
20762    eval $1+=\$2
20763  }'
20764else case e in #(
20765  e) as_fn_append ()
20766  {
20767    eval $1=\$$1\$2
20768  } ;;
20769esac
20770fi # as_fn_append
20771
20772# as_fn_arith ARG...
20773# ------------------
20774# Perform arithmetic evaluation on the ARGs, and store the result in the
20775# global $as_val. Take advantage of shells that can avoid forks. The arguments
20776# must be portable across $(()) and expr.
20777if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20778then :
20779  eval 'as_fn_arith ()
20780  {
20781    as_val=$(( $* ))
20782  }'
20783else case e in #(
20784  e) as_fn_arith ()
20785  {
20786    as_val=`expr "$@" || test $? -eq 1`
20787  } ;;
20788esac
20789fi # as_fn_arith
20790
20791
20792if expr a : '\(a\)' >/dev/null 2>&1 &&
20793   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20794  as_expr=expr
20795else
20796  as_expr=false
20797fi
20798
20799if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20800  as_basename=basename
20801else
20802  as_basename=false
20803fi
20804
20805if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20806  as_dirname=dirname
20807else
20808  as_dirname=false
20809fi
20810
20811as_me=`$as_basename -- "$0" ||
20812$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20813	 X"$0" : 'X\(//\)$' \| \
20814	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20815printf "%s\n" X/"$0" |
20816    sed '/^.*\/\([^/][^/]*\)\/*$/{
20817	    s//\1/
20818	    q
20819	  }
20820	  /^X\/\(\/\/\)$/{
20821	    s//\1/
20822	    q
20823	  }
20824	  /^X\/\(\/\).*/{
20825	    s//\1/
20826	    q
20827	  }
20828	  s/.*/./; q'`
20829
20830# Avoid depending upon Character Ranges.
20831as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20832as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20833as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20834as_cr_digits='0123456789'
20835as_cr_alnum=$as_cr_Letters$as_cr_digits
20836
20837
20838# Determine whether it's possible to make 'echo' print without a newline.
20839# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20840# for compatibility with existing Makefiles.
20841ECHO_C= ECHO_N= ECHO_T=
20842case `echo -n x` in #(((((
20843-n*)
20844  case `echo 'xy\c'` in
20845  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20846  xy)  ECHO_C='\c';;
20847  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20848       ECHO_T='	';;
20849  esac;;
20850*)
20851  ECHO_N='-n';;
20852esac
20853
20854# For backward compatibility with old third-party macros, we provide
20855# the shell variables $as_echo and $as_echo_n.  New code should use
20856# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20857as_echo='printf %s\n'
20858as_echo_n='printf %s'
20859
20860rm -f conf$$ conf$$.exe conf$$.file
20861if test -d conf$$.dir; then
20862  rm -f conf$$.dir/conf$$.file
20863else
20864  rm -f conf$$.dir
20865  mkdir conf$$.dir 2>/dev/null
20866fi
20867if (echo >conf$$.file) 2>/dev/null; then
20868  if ln -s conf$$.file conf$$ 2>/dev/null; then
20869    as_ln_s='ln -s'
20870    # ... but there are two gotchas:
20871    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20872    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20873    # In both cases, we have to default to 'cp -pR'.
20874    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20875      as_ln_s='cp -pR'
20876  elif ln conf$$.file conf$$ 2>/dev/null; then
20877    as_ln_s=ln
20878  else
20879    as_ln_s='cp -pR'
20880  fi
20881else
20882  as_ln_s='cp -pR'
20883fi
20884rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20885rmdir conf$$.dir 2>/dev/null
20886
20887
20888# as_fn_mkdir_p
20889# -------------
20890# Create "$as_dir" as a directory, including parents if necessary.
20891as_fn_mkdir_p ()
20892{
20893
20894  case $as_dir in #(
20895  -*) as_dir=./$as_dir;;
20896  esac
20897  test -d "$as_dir" || eval $as_mkdir_p || {
20898    as_dirs=
20899    while :; do
20900      case $as_dir in #(
20901      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20902      *) as_qdir=$as_dir;;
20903      esac
20904      as_dirs="'$as_qdir' $as_dirs"
20905      as_dir=`$as_dirname -- "$as_dir" ||
20906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20907	 X"$as_dir" : 'X\(//\)[^/]' \| \
20908	 X"$as_dir" : 'X\(//\)$' \| \
20909	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20910printf "%s\n" X"$as_dir" |
20911    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20912	    s//\1/
20913	    q
20914	  }
20915	  /^X\(\/\/\)[^/].*/{
20916	    s//\1/
20917	    q
20918	  }
20919	  /^X\(\/\/\)$/{
20920	    s//\1/
20921	    q
20922	  }
20923	  /^X\(\/\).*/{
20924	    s//\1/
20925	    q
20926	  }
20927	  s/.*/./; q'`
20928      test -d "$as_dir" && break
20929    done
20930    test -z "$as_dirs" || eval "mkdir $as_dirs"
20931  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20932
20933
20934} # as_fn_mkdir_p
20935if mkdir -p . 2>/dev/null; then
20936  as_mkdir_p='mkdir -p "$as_dir"'
20937else
20938  test -d ./-p && rmdir ./-p
20939  as_mkdir_p=false
20940fi
20941
20942
20943# as_fn_executable_p FILE
20944# -----------------------
20945# Test if FILE is an executable regular file.
20946as_fn_executable_p ()
20947{
20948  test -f "$1" && test -x "$1"
20949} # as_fn_executable_p
20950as_test_x='test -x'
20951as_executable_p=as_fn_executable_p
20952
20953# Sed expression to map a string onto a valid CPP name.
20954as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20955as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20956
20957# Sed expression to map a string onto a valid variable name.
20958as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20959as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20960
20961
20962exec 6>&1
20963## ----------------------------------- ##
20964## Main body of $CONFIG_STATUS script. ##
20965## ----------------------------------- ##
20966_ASEOF
20967test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20968
20969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20970# Save the log message, to keep $0 and so on meaningful, and to
20971# report actual input values of CONFIG_FILES etc. instead of their
20972# values after options handling.
20973ac_log="
20974This file was extended by libXrender $as_me 0.9.12, which was
20975generated by GNU Autoconf 2.72.  Invocation command line was
20976
20977  CONFIG_FILES    = $CONFIG_FILES
20978  CONFIG_HEADERS  = $CONFIG_HEADERS
20979  CONFIG_LINKS    = $CONFIG_LINKS
20980  CONFIG_COMMANDS = $CONFIG_COMMANDS
20981  $ $0 $@
20982
20983on `(hostname || uname -n) 2>/dev/null | sed 1q`
20984"
20985
20986_ACEOF
20987
20988case $ac_config_files in *"
20989"*) set x $ac_config_files; shift; ac_config_files=$*;;
20990esac
20991
20992case $ac_config_headers in *"
20993"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20994esac
20995
20996
20997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20998# Files that config.status was made for.
20999config_files="$ac_config_files"
21000config_headers="$ac_config_headers"
21001config_commands="$ac_config_commands"
21002
21003_ACEOF
21004
21005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21006ac_cs_usage="\
21007'$as_me' instantiates files and other configuration actions
21008from templates according to the current configuration.  Unless the files
21009and actions are specified as TAGs, all are instantiated by default.
21010
21011Usage: $0 [OPTION]... [TAG]...
21012
21013  -h, --help       print this help, then exit
21014  -V, --version    print version number and configuration settings, then exit
21015      --config     print configuration, then exit
21016  -q, --quiet, --silent
21017                   do not print progress messages
21018  -d, --debug      don't remove temporary files
21019      --recheck    update $as_me by reconfiguring in the same conditions
21020      --file=FILE[:TEMPLATE]
21021                   instantiate the configuration file FILE
21022      --header=FILE[:TEMPLATE]
21023                   instantiate the configuration header FILE
21024
21025Configuration files:
21026$config_files
21027
21028Configuration headers:
21029$config_headers
21030
21031Configuration commands:
21032$config_commands
21033
21034Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>."
21035
21036_ACEOF
21037ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21038ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21040ac_cs_config='$ac_cs_config_escaped'
21041ac_cs_version="\\
21042libXrender config.status 0.9.12
21043configured by $0, generated by GNU Autoconf 2.72,
21044  with options \\"\$ac_cs_config\\"
21045
21046Copyright (C) 2023 Free Software Foundation, Inc.
21047This config.status script is free software; the Free Software Foundation
21048gives unlimited permission to copy, distribute and modify it."
21049
21050ac_pwd='$ac_pwd'
21051srcdir='$srcdir'
21052INSTALL='$INSTALL'
21053MKDIR_P='$MKDIR_P'
21054AWK='$AWK'
21055test -n "\$AWK" || AWK=awk
21056_ACEOF
21057
21058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21059# The default lists apply if the user does not specify any file.
21060ac_need_defaults=:
21061while test $# != 0
21062do
21063  case $1 in
21064  --*=?*)
21065    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21066    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21067    ac_shift=:
21068    ;;
21069  --*=)
21070    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21071    ac_optarg=
21072    ac_shift=:
21073    ;;
21074  *)
21075    ac_option=$1
21076    ac_optarg=$2
21077    ac_shift=shift
21078    ;;
21079  esac
21080
21081  case $ac_option in
21082  # Handling of the options.
21083  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21084    ac_cs_recheck=: ;;
21085  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21086    printf "%s\n" "$ac_cs_version"; exit ;;
21087  --config | --confi | --conf | --con | --co | --c )
21088    printf "%s\n" "$ac_cs_config"; exit ;;
21089  --debug | --debu | --deb | --de | --d | -d )
21090    debug=: ;;
21091  --file | --fil | --fi | --f )
21092    $ac_shift
21093    case $ac_optarg in
21094    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21095    '') as_fn_error $? "missing file argument" ;;
21096    esac
21097    as_fn_append CONFIG_FILES " '$ac_optarg'"
21098    ac_need_defaults=false;;
21099  --header | --heade | --head | --hea )
21100    $ac_shift
21101    case $ac_optarg in
21102    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21103    esac
21104    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21105    ac_need_defaults=false;;
21106  --he | --h)
21107    # Conflict between --help and --header
21108    as_fn_error $? "ambiguous option: '$1'
21109Try '$0 --help' for more information.";;
21110  --help | --hel | -h )
21111    printf "%s\n" "$ac_cs_usage"; exit ;;
21112  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21113  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21114    ac_cs_silent=: ;;
21115
21116  # This is an error.
21117  -*) as_fn_error $? "unrecognized option: '$1'
21118Try '$0 --help' for more information." ;;
21119
21120  *) as_fn_append ac_config_targets " $1"
21121     ac_need_defaults=false ;;
21122
21123  esac
21124  shift
21125done
21126
21127ac_configure_extra_args=
21128
21129if $ac_cs_silent; then
21130  exec 6>/dev/null
21131  ac_configure_extra_args="$ac_configure_extra_args --silent"
21132fi
21133
21134_ACEOF
21135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136if \$ac_cs_recheck; then
21137  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21138  shift
21139  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21140  CONFIG_SHELL='$SHELL'
21141  export CONFIG_SHELL
21142  exec "\$@"
21143fi
21144
21145_ACEOF
21146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21147exec 5>>config.log
21148{
21149  echo
21150  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21151## Running $as_me. ##
21152_ASBOX
21153  printf "%s\n" "$ac_log"
21154} >&5
21155
21156_ACEOF
21157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21158#
21159# INIT-COMMANDS
21160#
21161AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21162
21163
21164# The HP-UX ksh and POSIX shell print the target directory to stdout
21165# if CDPATH is set.
21166(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21167
21168sed_quote_subst='$sed_quote_subst'
21169double_quote_subst='$double_quote_subst'
21170delay_variable_subst='$delay_variable_subst'
21171macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21172macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21173enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21174enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21175pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21176enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21177shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21178SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21179ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21180PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21181host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21182host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21183host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21184build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21185build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21186build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21187SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21188Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21189GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21190EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21191FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21192LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21193NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21194LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21195max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21196ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21197exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21198lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21199lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21200lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21201lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21202lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21203reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21204reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21205FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21206OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21207deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21208file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21209file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21210want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21211DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21212sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21213AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21214lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21215AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21216archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21217STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21218RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21219old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21220old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21221old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21222lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21223CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21224CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21225compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21226GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21227lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21228lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21229lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21230lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21231lt_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"`'
21232lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21233nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21234lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21235lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21236objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21237MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21238lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21239lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21240lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21241lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21242lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21243need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21244MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21245DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21246NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21247LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21248OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21249OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21250libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21251shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21252extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21253archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21254enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21255export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21256whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21257compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21258old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21259old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21260archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21261archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21262module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21263module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21264with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21265allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21266no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21267hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21268hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21269hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21270hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21271hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21272hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21273hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21274inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21275link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21276always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21277export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21278exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21279include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21280prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21281postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21282file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21283variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21284need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21285need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21286version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21287runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21288shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21289shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21290libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21291library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21292soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21293install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21294postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21295postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21296finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21297finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21298hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21299sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21300configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21301configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21302hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21303enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21304enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21305enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21306old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21307striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21308
21309LTCC='$LTCC'
21310LTCFLAGS='$LTCFLAGS'
21311compiler='$compiler_DEFAULT'
21312
21313# A function that is used when there is no print builtin or printf.
21314func_fallback_echo ()
21315{
21316  eval 'cat <<_LTECHO_EOF
21317\$1
21318_LTECHO_EOF'
21319}
21320
21321# Quote evaled strings.
21322for var in SHELL \
21323ECHO \
21324PATH_SEPARATOR \
21325SED \
21326GREP \
21327EGREP \
21328FGREP \
21329LD \
21330NM \
21331LN_S \
21332lt_SP2NL \
21333lt_NL2SP \
21334reload_flag \
21335FILECMD \
21336OBJDUMP \
21337deplibs_check_method \
21338file_magic_cmd \
21339file_magic_glob \
21340want_nocaseglob \
21341DLLTOOL \
21342sharedlib_from_linklib_cmd \
21343AR \
21344archiver_list_spec \
21345STRIP \
21346RANLIB \
21347CC \
21348CFLAGS \
21349compiler \
21350lt_cv_sys_global_symbol_pipe \
21351lt_cv_sys_global_symbol_to_cdecl \
21352lt_cv_sys_global_symbol_to_import \
21353lt_cv_sys_global_symbol_to_c_name_address \
21354lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21355lt_cv_nm_interface \
21356nm_file_list_spec \
21357lt_cv_truncate_bin \
21358lt_prog_compiler_no_builtin_flag \
21359lt_prog_compiler_pic \
21360lt_prog_compiler_wl \
21361lt_prog_compiler_static \
21362lt_cv_prog_compiler_c_o \
21363need_locks \
21364MANIFEST_TOOL \
21365DSYMUTIL \
21366NMEDIT \
21367LIPO \
21368OTOOL \
21369OTOOL64 \
21370shrext_cmds \
21371export_dynamic_flag_spec \
21372whole_archive_flag_spec \
21373compiler_needs_object \
21374with_gnu_ld \
21375allow_undefined_flag \
21376no_undefined_flag \
21377hardcode_libdir_flag_spec \
21378hardcode_libdir_separator \
21379exclude_expsyms \
21380include_expsyms \
21381file_list_spec \
21382variables_saved_for_relink \
21383libname_spec \
21384library_names_spec \
21385soname_spec \
21386install_override_mode \
21387finish_eval \
21388old_striplib \
21389striplib; do
21390    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21391    *[\\\\\\\`\\"\\\$]*)
21392      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21393      ;;
21394    *)
21395      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21396      ;;
21397    esac
21398done
21399
21400# Double-quote double-evaled strings.
21401for var in reload_cmds \
21402old_postinstall_cmds \
21403old_postuninstall_cmds \
21404old_archive_cmds \
21405extract_expsyms_cmds \
21406old_archive_from_new_cmds \
21407old_archive_from_expsyms_cmds \
21408archive_cmds \
21409archive_expsym_cmds \
21410module_cmds \
21411module_expsym_cmds \
21412export_symbols_cmds \
21413prelink_cmds \
21414postlink_cmds \
21415postinstall_cmds \
21416postuninstall_cmds \
21417finish_cmds \
21418sys_lib_search_path_spec \
21419configure_time_dlsearch_path \
21420configure_time_lt_sys_library_path; do
21421    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21422    *[\\\\\\\`\\"\\\$]*)
21423      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21424      ;;
21425    *)
21426      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21427      ;;
21428    esac
21429done
21430
21431ac_aux_dir='$ac_aux_dir'
21432
21433# See if we are running on zsh, and set the options that allow our
21434# commands through without removal of \ escapes INIT.
21435if test -n "\${ZSH_VERSION+set}"; then
21436   setopt NO_GLOB_SUBST
21437fi
21438
21439
21440    PACKAGE='$PACKAGE'
21441    VERSION='$VERSION'
21442    RM='$RM'
21443    ofile='$ofile'
21444
21445
21446
21447
21448_ACEOF
21449
21450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21451
21452# Handling of arguments.
21453for ac_config_target in $ac_config_targets
21454do
21455  case $ac_config_target in
21456    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21457    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21458    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21459    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21460    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21461    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
21462    "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;;
21463
21464  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21465  esac
21466done
21467
21468
21469# If the user did not use the arguments to specify the items to instantiate,
21470# then the envvar interface is used.  Set only those that are not.
21471# We use the long form for the default assignment because of an extremely
21472# bizarre bug on SunOS 4.1.3.
21473if $ac_need_defaults; then
21474  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21475  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21476  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21477fi
21478
21479# Have a temporary directory for convenience.  Make it in the build tree
21480# simply because there is no reason against having it here, and in addition,
21481# creating and moving files from /tmp can sometimes cause problems.
21482# Hook for its removal unless debugging.
21483# Note that there is a small window in which the directory will not be cleaned:
21484# after its creation but before its name has been assigned to '$tmp'.
21485$debug ||
21486{
21487  tmp= ac_tmp=
21488  trap 'exit_status=$?
21489  : "${ac_tmp:=$tmp}"
21490  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21491' 0
21492  trap 'as_fn_exit 1' 1 2 13 15
21493}
21494# Create a (secure) tmp directory for tmp files.
21495
21496{
21497  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21498  test -d "$tmp"
21499}  ||
21500{
21501  tmp=./conf$$-$RANDOM
21502  (umask 077 && mkdir "$tmp")
21503} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21504ac_tmp=$tmp
21505
21506# Set up the scripts for CONFIG_FILES section.
21507# No need to generate them if there are no CONFIG_FILES.
21508# This happens for instance with './config.status config.h'.
21509if test -n "$CONFIG_FILES"; then
21510
21511
21512ac_cr=`echo X | tr X '\015'`
21513# On cygwin, bash can eat \r inside `` if the user requested igncr.
21514# But we know of no other shell where ac_cr would be empty at this
21515# point, so we can use a bashism as a fallback.
21516if test "x$ac_cr" = x; then
21517  eval ac_cr=\$\'\\r\'
21518fi
21519ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21520if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21521  ac_cs_awk_cr='\\r'
21522else
21523  ac_cs_awk_cr=$ac_cr
21524fi
21525
21526echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21527_ACEOF
21528
21529
21530{
21531  echo "cat >conf$$subs.awk <<_ACEOF" &&
21532  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21533  echo "_ACEOF"
21534} >conf$$subs.sh ||
21535  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21536ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21537ac_delim='%!_!# '
21538for ac_last_try in false false false false false :; do
21539  . ./conf$$subs.sh ||
21540    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21541
21542  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21543  if test $ac_delim_n = $ac_delim_num; then
21544    break
21545  elif $ac_last_try; then
21546    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21547  else
21548    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21549  fi
21550done
21551rm -f conf$$subs.sh
21552
21553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21554cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21555_ACEOF
21556sed -n '
21557h
21558s/^/S["/; s/!.*/"]=/
21559p
21560g
21561s/^[^!]*!//
21562:repl
21563t repl
21564s/'"$ac_delim"'$//
21565t delim
21566:nl
21567h
21568s/\(.\{148\}\)..*/\1/
21569t more1
21570s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21571p
21572n
21573b repl
21574:more1
21575s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21576p
21577g
21578s/.\{148\}//
21579t nl
21580:delim
21581h
21582s/\(.\{148\}\)..*/\1/
21583t more2
21584s/["\\]/\\&/g; s/^/"/; s/$/"/
21585p
21586b
21587:more2
21588s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21589p
21590g
21591s/.\{148\}//
21592t delim
21593' <conf$$subs.awk | sed '
21594/^[^""]/{
21595  N
21596  s/\n//
21597}
21598' >>$CONFIG_STATUS || ac_write_fail=1
21599rm -f conf$$subs.awk
21600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21601_ACAWK
21602cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21603  for (key in S) S_is_set[key] = 1
21604  FS = ""
21605
21606}
21607{
21608  line = $ 0
21609  nfields = split(line, field, "@")
21610  substed = 0
21611  len = length(field[1])
21612  for (i = 2; i < nfields; i++) {
21613    key = field[i]
21614    keylen = length(key)
21615    if (S_is_set[key]) {
21616      value = S[key]
21617      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21618      len += length(value) + length(field[++i])
21619      substed = 1
21620    } else
21621      len += 1 + keylen
21622  }
21623
21624  print line
21625}
21626
21627_ACAWK
21628_ACEOF
21629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21630if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21631  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21632else
21633  cat
21634fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21635  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21636_ACEOF
21637
21638# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21639# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21640# trailing colons and then remove the whole line if VPATH becomes empty
21641# (actually we leave an empty line to preserve line numbers).
21642if test "x$srcdir" = x.; then
21643  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21644h
21645s///
21646s/^/:/
21647s/[	 ]*$/:/
21648s/:\$(srcdir):/:/g
21649s/:\${srcdir}:/:/g
21650s/:@srcdir@:/:/g
21651s/^:*//
21652s/:*$//
21653x
21654s/\(=[	 ]*\).*/\1/
21655G
21656s/\n//
21657s/^[^=]*=[	 ]*$//
21658}'
21659fi
21660
21661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21662fi # test -n "$CONFIG_FILES"
21663
21664# Set up the scripts for CONFIG_HEADERS section.
21665# No need to generate them if there are no CONFIG_HEADERS.
21666# This happens for instance with './config.status Makefile'.
21667if test -n "$CONFIG_HEADERS"; then
21668cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21669BEGIN {
21670_ACEOF
21671
21672# Transform confdefs.h into an awk script 'defines.awk', embedded as
21673# here-document in config.status, that substitutes the proper values into
21674# config.h.in to produce config.h.
21675
21676# Create a delimiter string that does not exist in confdefs.h, to ease
21677# handling of long lines.
21678ac_delim='%!_!# '
21679for ac_last_try in false false :; do
21680  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21681  if test -z "$ac_tt"; then
21682    break
21683  elif $ac_last_try; then
21684    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21685  else
21686    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21687  fi
21688done
21689
21690# For the awk script, D is an array of macro values keyed by name,
21691# likewise P contains macro parameters if any.  Preserve backslash
21692# newline sequences.
21693
21694ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21695sed -n '
21696s/.\{148\}/&'"$ac_delim"'/g
21697t rset
21698:rset
21699s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21700t def
21701d
21702:def
21703s/\\$//
21704t bsnl
21705s/["\\]/\\&/g
21706s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21707D["\1"]=" \3"/p
21708s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21709d
21710:bsnl
21711s/["\\]/\\&/g
21712s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21713D["\1"]=" \3\\\\\\n"\\/p
21714t cont
21715s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21716t cont
21717d
21718:cont
21719n
21720s/.\{148\}/&'"$ac_delim"'/g
21721t clear
21722:clear
21723s/\\$//
21724t bsnlc
21725s/["\\]/\\&/g; s/^/"/; s/$/"/p
21726d
21727:bsnlc
21728s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21729b cont
21730' <confdefs.h | sed '
21731s/'"$ac_delim"'/"\\\
21732"/g' >>$CONFIG_STATUS || ac_write_fail=1
21733
21734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21735  for (key in D) D_is_set[key] = 1
21736  FS = ""
21737}
21738/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21739  line = \$ 0
21740  split(line, arg, " ")
21741  if (arg[1] == "#") {
21742    defundef = arg[2]
21743    mac1 = arg[3]
21744  } else {
21745    defundef = substr(arg[1], 2)
21746    mac1 = arg[2]
21747  }
21748  split(mac1, mac2, "(") #)
21749  macro = mac2[1]
21750  prefix = substr(line, 1, index(line, defundef) - 1)
21751  if (D_is_set[macro]) {
21752    # Preserve the white space surrounding the "#".
21753    print prefix "define", macro P[macro] D[macro]
21754    next
21755  } else {
21756    # Replace #undef with comments.  This is necessary, for example,
21757    # in the case of _POSIX_SOURCE, which is predefined and required
21758    # on some systems where configure will not decide to define it.
21759    if (defundef == "undef") {
21760      print "/*", prefix defundef, macro, "*/"
21761      next
21762    }
21763  }
21764}
21765{ print }
21766_ACAWK
21767_ACEOF
21768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21769  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21770fi # test -n "$CONFIG_HEADERS"
21771
21772
21773eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21774shift
21775for ac_tag
21776do
21777  case $ac_tag in
21778  :[FHLC]) ac_mode=$ac_tag; continue;;
21779  esac
21780  case $ac_mode$ac_tag in
21781  :[FHL]*:*);;
21782  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21783  :[FH]-) ac_tag=-:-;;
21784  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21785  esac
21786  ac_save_IFS=$IFS
21787  IFS=:
21788  set x $ac_tag
21789  IFS=$ac_save_IFS
21790  shift
21791  ac_file=$1
21792  shift
21793
21794  case $ac_mode in
21795  :L) ac_source=$1;;
21796  :[FH])
21797    ac_file_inputs=
21798    for ac_f
21799    do
21800      case $ac_f in
21801      -) ac_f="$ac_tmp/stdin";;
21802      *) # Look for the file first in the build tree, then in the source tree
21803	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21804	 # because $ac_f cannot contain ':'.
21805	 test -f "$ac_f" ||
21806	   case $ac_f in
21807	   [\\/$]*) false;;
21808	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21809	   esac ||
21810	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21811      esac
21812      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21813      as_fn_append ac_file_inputs " '$ac_f'"
21814    done
21815
21816    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21817    # use $as_me), people would be surprised to read:
21818    #    /* config.h.  Generated by config.status.  */
21819    configure_input='Generated from '`
21820	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21821	`' by configure.'
21822    if test x"$ac_file" != x-; then
21823      configure_input="$ac_file.  $configure_input"
21824      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21825printf "%s\n" "$as_me: creating $ac_file" >&6;}
21826    fi
21827    # Neutralize special characters interpreted by sed in replacement strings.
21828    case $configure_input in #(
21829    *\&* | *\|* | *\\* )
21830       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21831       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21832    *) ac_sed_conf_input=$configure_input;;
21833    esac
21834
21835    case $ac_tag in
21836    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21837      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21838    esac
21839    ;;
21840  esac
21841
21842  ac_dir=`$as_dirname -- "$ac_file" ||
21843$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21844	 X"$ac_file" : 'X\(//\)[^/]' \| \
21845	 X"$ac_file" : 'X\(//\)$' \| \
21846	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21847printf "%s\n" X"$ac_file" |
21848    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21849	    s//\1/
21850	    q
21851	  }
21852	  /^X\(\/\/\)[^/].*/{
21853	    s//\1/
21854	    q
21855	  }
21856	  /^X\(\/\/\)$/{
21857	    s//\1/
21858	    q
21859	  }
21860	  /^X\(\/\).*/{
21861	    s//\1/
21862	    q
21863	  }
21864	  s/.*/./; q'`
21865  as_dir="$ac_dir"; as_fn_mkdir_p
21866  ac_builddir=.
21867
21868case "$ac_dir" in
21869.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21870*)
21871  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21872  # A ".." for each directory in $ac_dir_suffix.
21873  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21874  case $ac_top_builddir_sub in
21875  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21876  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21877  esac ;;
21878esac
21879ac_abs_top_builddir=$ac_pwd
21880ac_abs_builddir=$ac_pwd$ac_dir_suffix
21881# for backward compatibility:
21882ac_top_builddir=$ac_top_build_prefix
21883
21884case $srcdir in
21885  .)  # We are building in place.
21886    ac_srcdir=.
21887    ac_top_srcdir=$ac_top_builddir_sub
21888    ac_abs_top_srcdir=$ac_pwd ;;
21889  [\\/]* | ?:[\\/]* )  # Absolute name.
21890    ac_srcdir=$srcdir$ac_dir_suffix;
21891    ac_top_srcdir=$srcdir
21892    ac_abs_top_srcdir=$srcdir ;;
21893  *) # Relative name.
21894    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21895    ac_top_srcdir=$ac_top_build_prefix$srcdir
21896    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21897esac
21898ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21899
21900
21901  case $ac_mode in
21902  :F)
21903  #
21904  # CONFIG_FILE
21905  #
21906
21907  case $INSTALL in
21908  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21909  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21910  esac
21911  ac_MKDIR_P=$MKDIR_P
21912  case $MKDIR_P in
21913  [\\/$]* | ?:[\\/]* ) ;;
21914  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21915  esac
21916_ACEOF
21917
21918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21919# If the template does not know about datarootdir, expand it.
21920# FIXME: This hack should be removed a few years after 2.60.
21921ac_datarootdir_hack=; ac_datarootdir_seen=
21922ac_sed_dataroot='
21923/datarootdir/ {
21924  p
21925  q
21926}
21927/@datadir@/p
21928/@docdir@/p
21929/@infodir@/p
21930/@localedir@/p
21931/@mandir@/p'
21932case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21933*datarootdir*) ac_datarootdir_seen=yes;;
21934*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21936printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21937_ACEOF
21938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21939  ac_datarootdir_hack='
21940  s&@datadir@&$datadir&g
21941  s&@docdir@&$docdir&g
21942  s&@infodir@&$infodir&g
21943  s&@localedir@&$localedir&g
21944  s&@mandir@&$mandir&g
21945  s&\\\${datarootdir}&$datarootdir&g' ;;
21946esac
21947_ACEOF
21948
21949# Neutralize VPATH when '$srcdir' = '.'.
21950# Shell code in configure.ac might set extrasub.
21951# FIXME: do we really want to maintain this feature?
21952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21953ac_sed_extra="$ac_vpsub
21954$extrasub
21955_ACEOF
21956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21957:t
21958/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21959s|@configure_input@|$ac_sed_conf_input|;t t
21960s&@top_builddir@&$ac_top_builddir_sub&;t t
21961s&@top_build_prefix@&$ac_top_build_prefix&;t t
21962s&@srcdir@&$ac_srcdir&;t t
21963s&@abs_srcdir@&$ac_abs_srcdir&;t t
21964s&@top_srcdir@&$ac_top_srcdir&;t t
21965s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21966s&@builddir@&$ac_builddir&;t t
21967s&@abs_builddir@&$ac_abs_builddir&;t t
21968s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21969s&@INSTALL@&$ac_INSTALL&;t t
21970s&@MKDIR_P@&$ac_MKDIR_P&;t t
21971$ac_datarootdir_hack
21972"
21973eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21974  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21975
21976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21977  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21978  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21979      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21981which seems to be undefined.  Please make sure it is defined" >&5
21982printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21983which seems to be undefined.  Please make sure it is defined" >&2;}
21984
21985  rm -f "$ac_tmp/stdin"
21986  case $ac_file in
21987  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21988  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21989  esac \
21990  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21991 ;;
21992  :H)
21993  #
21994  # CONFIG_HEADER
21995  #
21996  if test x"$ac_file" != x-; then
21997    {
21998      printf "%s\n" "/* $configure_input  */" >&1 \
21999      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22000    } >"$ac_tmp/config.h" \
22001      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22002    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22003      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22004printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22005    else
22006      rm -f "$ac_file"
22007      mv "$ac_tmp/config.h" "$ac_file" \
22008	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22009    fi
22010  else
22011    printf "%s\n" "/* $configure_input  */" >&1 \
22012      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22013      || as_fn_error $? "could not create -" "$LINENO" 5
22014  fi
22015# Compute "$ac_file"'s index in $config_headers.
22016_am_arg="$ac_file"
22017_am_stamp_count=1
22018for _am_header in $config_headers :; do
22019  case $_am_header in
22020    $_am_arg | $_am_arg:* )
22021      break ;;
22022    * )
22023      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22024  esac
22025done
22026echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22027$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22028	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22029	 X"$_am_arg" : 'X\(//\)$' \| \
22030	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22031printf "%s\n" X"$_am_arg" |
22032    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22033	    s//\1/
22034	    q
22035	  }
22036	  /^X\(\/\/\)[^/].*/{
22037	    s//\1/
22038	    q
22039	  }
22040	  /^X\(\/\/\)$/{
22041	    s//\1/
22042	    q
22043	  }
22044	  /^X\(\/\).*/{
22045	    s//\1/
22046	    q
22047	  }
22048	  s/.*/./; q'`/stamp-h$_am_stamp_count
22049 ;;
22050
22051  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22052printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22053 ;;
22054  esac
22055
22056
22057  case $ac_file$ac_mode in
22058    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22059  # Older Autoconf quotes --file arguments for eval, but not when files
22060  # are listed without --file.  Let's play safe and only enable the eval
22061  # if we detect the quoting.
22062  # TODO: see whether this extra hack can be removed once we start
22063  # requiring Autoconf 2.70 or later.
22064  case $CONFIG_FILES in #(
22065  *\'*) :
22066    eval set x "$CONFIG_FILES" ;; #(
22067  *) :
22068    set x $CONFIG_FILES ;; #(
22069  *) :
22070     ;;
22071esac
22072  shift
22073  # Used to flag and report bootstrapping failures.
22074  am_rc=0
22075  for am_mf
22076  do
22077    # Strip MF so we end up with the name of the file.
22078    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22079    # Check whether this is an Automake generated Makefile which includes
22080    # dependency-tracking related rules and includes.
22081    # Grep'ing the whole file directly is not great: AIX grep has a line
22082    # limit of 2048, but all sed's we know have understand at least 4000.
22083    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22084      || continue
22085    am_dirpart=`$as_dirname -- "$am_mf" ||
22086$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22087	 X"$am_mf" : 'X\(//\)[^/]' \| \
22088	 X"$am_mf" : 'X\(//\)$' \| \
22089	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22090printf "%s\n" X"$am_mf" |
22091    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22092	    s//\1/
22093	    q
22094	  }
22095	  /^X\(\/\/\)[^/].*/{
22096	    s//\1/
22097	    q
22098	  }
22099	  /^X\(\/\/\)$/{
22100	    s//\1/
22101	    q
22102	  }
22103	  /^X\(\/\).*/{
22104	    s//\1/
22105	    q
22106	  }
22107	  s/.*/./; q'`
22108    am_filepart=`$as_basename -- "$am_mf" ||
22109$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22110	 X"$am_mf" : 'X\(//\)$' \| \
22111	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22112printf "%s\n" X/"$am_mf" |
22113    sed '/^.*\/\([^/][^/]*\)\/*$/{
22114	    s//\1/
22115	    q
22116	  }
22117	  /^X\/\(\/\/\)$/{
22118	    s//\1/
22119	    q
22120	  }
22121	  /^X\/\(\/\).*/{
22122	    s//\1/
22123	    q
22124	  }
22125	  s/.*/./; q'`
22126    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22127      && sed -e '/# am--include-marker/d' "$am_filepart" \
22128        | $MAKE -f - am--depfiles" >&5
22129   (cd "$am_dirpart" \
22130      && sed -e '/# am--include-marker/d' "$am_filepart" \
22131        | $MAKE -f - am--depfiles) >&5 2>&5
22132   ac_status=$?
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } || am_rc=$?
22135  done
22136  if test $am_rc -ne 0; then
22137    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22138printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22139as_fn_error $? "Something went wrong bootstrapping makefile fragments
22140    for automatic dependency tracking.  If GNU make was not used, consider
22141    re-running the configure script with MAKE=\"gmake\" (or whatever is
22142    necessary).  You can also try re-running configure with the
22143    '--disable-dependency-tracking' option to at least be able to build
22144    the package (albeit without support for automatic dependency tracking).
22145See 'config.log' for more details" "$LINENO" 5; }
22146  fi
22147  { am_dirpart=; unset am_dirpart;}
22148  { am_filepart=; unset am_filepart;}
22149  { am_mf=; unset am_mf;}
22150  { am_rc=; unset am_rc;}
22151  rm -f conftest-deps.mk
22152}
22153 ;;
22154    "libtool":C)
22155
22156    # See if we are running on zsh, and set the options that allow our
22157    # commands through without removal of \ escapes.
22158    if test -n "${ZSH_VERSION+set}"; then
22159      setopt NO_GLOB_SUBST
22160    fi
22161
22162    cfgfile=${ofile}T
22163    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22164    $RM "$cfgfile"
22165
22166    cat <<_LT_EOF >> "$cfgfile"
22167#! $SHELL
22168# Generated automatically by $as_me ($PACKAGE) $VERSION
22169# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22170
22171# Provide generalized library-building support services.
22172# Written by Gordon Matzigkeit, 1996
22173
22174# Copyright (C) 2024 Free Software Foundation, Inc.
22175# This is free software; see the source for copying conditions.  There is NO
22176# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22177
22178# GNU Libtool is free software; you can redistribute it and/or modify
22179# it under the terms of the GNU General Public License as published by
22180# the Free Software Foundation; either version 2 of the License, or
22181# (at your option) any later version.
22182#
22183# As a special exception to the GNU General Public License, if you
22184# distribute this file as part of a program or library that is built
22185# using GNU Libtool, you may include this file under the  same
22186# distribution terms that you use for the rest of that program.
22187#
22188# GNU Libtool is distributed in the hope that it will be useful, but
22189# WITHOUT ANY WARRANTY; without even the implied warranty of
22190# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22191# GNU General Public License for more details.
22192#
22193# You should have received a copy of the GNU General Public License
22194# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22195
22196
22197# The names of the tagged configurations supported by this script.
22198available_tags=''
22199
22200# Configured defaults for sys_lib_dlsearch_path munging.
22201: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22202
22203# ### BEGIN LIBTOOL CONFIG
22204
22205# Which release of libtool.m4 was used?
22206macro_version=$macro_version
22207macro_revision=$macro_revision
22208
22209# Whether or not to build shared libraries.
22210build_libtool_libs=$enable_shared
22211
22212# Whether or not to build static libraries.
22213build_old_libs=$enable_static
22214
22215# What type of objects to build.
22216pic_mode=$pic_mode
22217
22218# Whether or not to optimize for fast installation.
22219fast_install=$enable_fast_install
22220
22221# Shared archive member basename,for filename based shared library versioning on AIX.
22222shared_archive_member_spec=$shared_archive_member_spec
22223
22224# Shell to use when invoking shell scripts.
22225SHELL=$lt_SHELL
22226
22227# An echo program that protects backslashes.
22228ECHO=$lt_ECHO
22229
22230# The PATH separator for the build system.
22231PATH_SEPARATOR=$lt_PATH_SEPARATOR
22232
22233# The host system.
22234host_alias=$host_alias
22235host=$host
22236host_os=$host_os
22237
22238# The build system.
22239build_alias=$build_alias
22240build=$build
22241build_os=$build_os
22242
22243# A sed program that does not truncate output.
22244SED=$lt_SED
22245
22246# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22247Xsed="\$SED -e 1s/^X//"
22248
22249# A grep program that handles long lines.
22250GREP=$lt_GREP
22251
22252# An ERE matcher.
22253EGREP=$lt_EGREP
22254
22255# A literal string matcher.
22256FGREP=$lt_FGREP
22257
22258# A BSD- or MS-compatible name lister.
22259NM=$lt_NM
22260
22261# Whether we need soft or hard links.
22262LN_S=$lt_LN_S
22263
22264# What is the maximum length of a command?
22265max_cmd_len=$max_cmd_len
22266
22267# Object file suffix (normally "o").
22268objext=$ac_objext
22269
22270# Executable file suffix (normally "").
22271exeext=$exeext
22272
22273# whether the shell understands "unset".
22274lt_unset=$lt_unset
22275
22276# turn spaces into newlines.
22277SP2NL=$lt_lt_SP2NL
22278
22279# turn newlines into spaces.
22280NL2SP=$lt_lt_NL2SP
22281
22282# convert \$build file names to \$host format.
22283to_host_file_cmd=$lt_cv_to_host_file_cmd
22284
22285# convert \$build files to toolchain format.
22286to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22287
22288# A file(cmd) program that detects file types.
22289FILECMD=$lt_FILECMD
22290
22291# An object symbol dumper.
22292OBJDUMP=$lt_OBJDUMP
22293
22294# Method to check whether dependent libraries are shared objects.
22295deplibs_check_method=$lt_deplibs_check_method
22296
22297# Command to use when deplibs_check_method = "file_magic".
22298file_magic_cmd=$lt_file_magic_cmd
22299
22300# How to find potential files when deplibs_check_method = "file_magic".
22301file_magic_glob=$lt_file_magic_glob
22302
22303# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22304want_nocaseglob=$lt_want_nocaseglob
22305
22306# DLL creation program.
22307DLLTOOL=$lt_DLLTOOL
22308
22309# Command to associate shared and link libraries.
22310sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22311
22312# The archiver.
22313AR=$lt_AR
22314
22315# Flags to create an archive (by configure).
22316lt_ar_flags=$lt_ar_flags
22317
22318# Flags to create an archive.
22319AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22320
22321# How to feed a file listing to the archiver.
22322archiver_list_spec=$lt_archiver_list_spec
22323
22324# A symbol stripping program.
22325STRIP=$lt_STRIP
22326
22327# Commands used to install an old-style archive.
22328RANLIB=$lt_RANLIB
22329old_postinstall_cmds=$lt_old_postinstall_cmds
22330old_postuninstall_cmds=$lt_old_postuninstall_cmds
22331
22332# Whether to use a lock for old archive extraction.
22333lock_old_archive_extraction=$lock_old_archive_extraction
22334
22335# A C compiler.
22336LTCC=$lt_CC
22337
22338# LTCC compiler flags.
22339LTCFLAGS=$lt_CFLAGS
22340
22341# Take the output of nm and produce a listing of raw symbols and C names.
22342global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22343
22344# Transform the output of nm in a proper C declaration.
22345global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22346
22347# Transform the output of nm into a list of symbols to manually relocate.
22348global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22349
22350# Transform the output of nm in a C name address pair.
22351global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22352
22353# Transform the output of nm in a C name address pair when lib prefix is needed.
22354global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22355
22356# The name lister interface.
22357nm_interface=$lt_lt_cv_nm_interface
22358
22359# Specify filename containing input files for \$NM.
22360nm_file_list_spec=$lt_nm_file_list_spec
22361
22362# The root where to search for dependent libraries,and where our libraries should be installed.
22363lt_sysroot=$lt_sysroot
22364
22365# Command to truncate a binary pipe.
22366lt_truncate_bin=$lt_lt_cv_truncate_bin
22367
22368# The name of the directory that contains temporary libtool files.
22369objdir=$objdir
22370
22371# Used to examine libraries when file_magic_cmd begins with "file".
22372MAGIC_CMD=$MAGIC_CMD
22373
22374# Must we lock files when doing compilation?
22375need_locks=$lt_need_locks
22376
22377# Manifest tool.
22378MANIFEST_TOOL=$lt_MANIFEST_TOOL
22379
22380# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22381DSYMUTIL=$lt_DSYMUTIL
22382
22383# Tool to change global to local symbols on Mac OS X.
22384NMEDIT=$lt_NMEDIT
22385
22386# Tool to manipulate fat objects and archives on Mac OS X.
22387LIPO=$lt_LIPO
22388
22389# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22390OTOOL=$lt_OTOOL
22391
22392# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22393OTOOL64=$lt_OTOOL64
22394
22395# Old archive suffix (normally "a").
22396libext=$libext
22397
22398# Shared library suffix (normally ".so").
22399shrext_cmds=$lt_shrext_cmds
22400
22401# The commands to extract the exported symbol list from a shared archive.
22402extract_expsyms_cmds=$lt_extract_expsyms_cmds
22403
22404# Variables whose values should be saved in libtool wrapper scripts and
22405# restored at link time.
22406variables_saved_for_relink=$lt_variables_saved_for_relink
22407
22408# Do we need the "lib" prefix for modules?
22409need_lib_prefix=$need_lib_prefix
22410
22411# Do we need a version for libraries?
22412need_version=$need_version
22413
22414# Library versioning type.
22415version_type=$version_type
22416
22417# Shared library runtime path variable.
22418runpath_var=$runpath_var
22419
22420# Shared library path variable.
22421shlibpath_var=$shlibpath_var
22422
22423# Is shlibpath searched before the hard-coded library search path?
22424shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22425
22426# Format of library name prefix.
22427libname_spec=$lt_libname_spec
22428
22429# List of archive names.  First name is the real one, the rest are links.
22430# The last name is the one that the linker finds with -lNAME
22431library_names_spec=$lt_library_names_spec
22432
22433# The coded name of the library, if different from the real name.
22434soname_spec=$lt_soname_spec
22435
22436# Permission mode override for installation of shared libraries.
22437install_override_mode=$lt_install_override_mode
22438
22439# Command to use after installation of a shared archive.
22440postinstall_cmds=$lt_postinstall_cmds
22441
22442# Command to use after uninstallation of a shared archive.
22443postuninstall_cmds=$lt_postuninstall_cmds
22444
22445# Commands used to finish a libtool library installation in a directory.
22446finish_cmds=$lt_finish_cmds
22447
22448# As "finish_cmds", except a single script fragment to be evaled but
22449# not shown.
22450finish_eval=$lt_finish_eval
22451
22452# Whether we should hardcode library paths into libraries.
22453hardcode_into_libs=$hardcode_into_libs
22454
22455# Compile-time system search path for libraries.
22456sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22457
22458# Detected run-time system search path for libraries.
22459sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22460
22461# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22462configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22463
22464# Whether dlopen is supported.
22465dlopen_support=$enable_dlopen
22466
22467# Whether dlopen of programs is supported.
22468dlopen_self=$enable_dlopen_self
22469
22470# Whether dlopen of statically linked programs is supported.
22471dlopen_self_static=$enable_dlopen_self_static
22472
22473# Commands to strip libraries.
22474old_striplib=$lt_old_striplib
22475striplib=$lt_striplib
22476
22477
22478# The linker used to build libraries.
22479LD=$lt_LD
22480
22481# How to create reloadable object files.
22482reload_flag=$lt_reload_flag
22483reload_cmds=$lt_reload_cmds
22484
22485# Commands used to build an old-style archive.
22486old_archive_cmds=$lt_old_archive_cmds
22487
22488# A language specific compiler.
22489CC=$lt_compiler
22490
22491# Is the compiler the GNU compiler?
22492with_gcc=$GCC
22493
22494# Compiler flag to turn off builtin functions.
22495no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22496
22497# Additional compiler flags for building library objects.
22498pic_flag=$lt_lt_prog_compiler_pic
22499
22500# How to pass a linker flag through the compiler.
22501wl=$lt_lt_prog_compiler_wl
22502
22503# Compiler flag to prevent dynamic linking.
22504link_static_flag=$lt_lt_prog_compiler_static
22505
22506# Does compiler simultaneously support -c and -o options?
22507compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22508
22509# Whether or not to add -lc for building shared libraries.
22510build_libtool_need_lc=$archive_cmds_need_lc
22511
22512# Whether or not to disallow shared libs when runtime libs are static.
22513allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22514
22515# Compiler flag to allow reflexive dlopens.
22516export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22517
22518# Compiler flag to generate shared objects directly from archives.
22519whole_archive_flag_spec=$lt_whole_archive_flag_spec
22520
22521# Whether the compiler copes with passing no objects directly.
22522compiler_needs_object=$lt_compiler_needs_object
22523
22524# Create an old-style archive from a shared archive.
22525old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22526
22527# Create a temporary old-style archive to link instead of a shared archive.
22528old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22529
22530# Commands used to build a shared archive.
22531archive_cmds=$lt_archive_cmds
22532archive_expsym_cmds=$lt_archive_expsym_cmds
22533
22534# Commands used to build a loadable module if different from building
22535# a shared archive.
22536module_cmds=$lt_module_cmds
22537module_expsym_cmds=$lt_module_expsym_cmds
22538
22539# Whether we are building with GNU ld or not.
22540with_gnu_ld=$lt_with_gnu_ld
22541
22542# Flag that allows shared libraries with undefined symbols to be built.
22543allow_undefined_flag=$lt_allow_undefined_flag
22544
22545# Flag that enforces no undefined symbols.
22546no_undefined_flag=$lt_no_undefined_flag
22547
22548# Flag to hardcode \$libdir into a binary during linking.
22549# This must work even if \$libdir does not exist
22550hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22551
22552# Whether we need a single "-rpath" flag with a separated argument.
22553hardcode_libdir_separator=$lt_hardcode_libdir_separator
22554
22555# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22556# DIR into the resulting binary.
22557hardcode_direct=$hardcode_direct
22558
22559# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22560# DIR into the resulting binary and the resulting library dependency is
22561# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22562# library is relocated.
22563hardcode_direct_absolute=$hardcode_direct_absolute
22564
22565# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22566# into the resulting binary.
22567hardcode_minus_L=$hardcode_minus_L
22568
22569# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22570# into the resulting binary.
22571hardcode_shlibpath_var=$hardcode_shlibpath_var
22572
22573# Set to "yes" if building a shared library automatically hardcodes DIR
22574# into the library and all subsequent libraries and executables linked
22575# against it.
22576hardcode_automatic=$hardcode_automatic
22577
22578# Set to yes if linker adds runtime paths of dependent libraries
22579# to runtime path list.
22580inherit_rpath=$inherit_rpath
22581
22582# Whether libtool must link a program against all its dependency libraries.
22583link_all_deplibs=$link_all_deplibs
22584
22585# Set to "yes" if exported symbols are required.
22586always_export_symbols=$always_export_symbols
22587
22588# The commands to list exported symbols.
22589export_symbols_cmds=$lt_export_symbols_cmds
22590
22591# Symbols that should not be listed in the preloaded symbols.
22592exclude_expsyms=$lt_exclude_expsyms
22593
22594# Symbols that must always be exported.
22595include_expsyms=$lt_include_expsyms
22596
22597# Commands necessary for linking programs (against libraries) with templates.
22598prelink_cmds=$lt_prelink_cmds
22599
22600# Commands necessary for finishing linking programs.
22601postlink_cmds=$lt_postlink_cmds
22602
22603# Specify filename containing input files.
22604file_list_spec=$lt_file_list_spec
22605
22606# How to hardcode a shared library path into an executable.
22607hardcode_action=$hardcode_action
22608
22609# ### END LIBTOOL CONFIG
22610
22611_LT_EOF
22612
22613    cat <<'_LT_EOF' >> "$cfgfile"
22614
22615# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22616
22617# func_munge_path_list VARIABLE PATH
22618# -----------------------------------
22619# VARIABLE is name of variable containing _space_ separated list of
22620# directories to be munged by the contents of PATH, which is string
22621# having a format:
22622# "DIR[:DIR]:"
22623#       string "DIR[ DIR]" will be prepended to VARIABLE
22624# ":DIR[:DIR]"
22625#       string "DIR[ DIR]" will be appended to VARIABLE
22626# "DIRP[:DIRP]::[DIRA:]DIRA"
22627#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22628#       "DIRA[ DIRA]" will be appended to VARIABLE
22629# "DIR[:DIR]"
22630#       VARIABLE will be replaced by "DIR[ DIR]"
22631func_munge_path_list ()
22632{
22633    case x$2 in
22634    x)
22635        ;;
22636    *:)
22637        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22638        ;;
22639    x:*)
22640        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22641        ;;
22642    *::*)
22643        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22644        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22645        ;;
22646    *)
22647        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22648        ;;
22649    esac
22650}
22651
22652
22653# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22654func_cc_basename ()
22655{
22656    for cc_temp in $*""; do
22657      case $cc_temp in
22658        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22659        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22660        \-*) ;;
22661        *) break;;
22662      esac
22663    done
22664    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22665}
22666
22667
22668# ### END FUNCTIONS SHARED WITH CONFIGURE
22669
22670_LT_EOF
22671
22672  case $host_os in
22673  aix3*)
22674    cat <<\_LT_EOF >> "$cfgfile"
22675# AIX sometimes has problems with the GCC collect2 program.  For some
22676# reason, if we set the COLLECT_NAMES environment variable, the problems
22677# vanish in a puff of smoke.
22678if test set != "${COLLECT_NAMES+set}"; then
22679  COLLECT_NAMES=
22680  export COLLECT_NAMES
22681fi
22682_LT_EOF
22683    ;;
22684  esac
22685
22686
22687
22688ltmain=$ac_aux_dir/ltmain.sh
22689
22690
22691  # We use sed instead of cat because bash on DJGPP gets confused if
22692  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22693  # text mode, it properly converts lines to CR/LF.  This bash problem
22694  # is reportedly fixed, but why not run on old versions too?
22695  $SED '$q' "$ltmain" >> "$cfgfile" \
22696     || (rm -f "$cfgfile"; exit 1)
22697
22698   mv -f "$cfgfile" "$ofile" ||
22699    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22700  chmod +x "$ofile"
22701
22702 ;;
22703
22704  esac
22705done # for ac_tag
22706
22707
22708as_fn_exit 0
22709_ACEOF
22710ac_clean_files=$ac_clean_files_save
22711
22712test $ac_write_fail = 0 ||
22713  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22714
22715
22716# configure is writing to config.log, and then calls config.status.
22717# config.status does its own redirection, appending to config.log.
22718# Unfortunately, on DOS this fails, as config.log is still kept open
22719# by configure, so config.status won't be able to write to it; its
22720# output is simply discarded.  So we exec the FD to /dev/null,
22721# effectively closing config.log, so it can be properly (re)opened and
22722# appended to by config.status.  When coming back to configure, we
22723# need to make the FD available again.
22724if test "$no_create" != yes; then
22725  ac_cs_success=:
22726  ac_config_status_args=
22727  test "$silent" = yes &&
22728    ac_config_status_args="$ac_config_status_args --quiet"
22729  exec 5>/dev/null
22730  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22731  exec 5>>config.log
22732  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22733  # would make configure fail if this is the last instruction.
22734  $ac_cs_success || as_fn_exit 1
22735fi
22736if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22738printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22739fi
22740
22741
22742