configure revision 0ea508b1
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libXcursor 1.2.2.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/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/libxcursor/-/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='libXcursor'
617PACKAGE_TARNAME='libXcursor'
618PACKAGE_VERSION='1.2.2'
619PACKAGE_STRING='libXcursor 1.2.2'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/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
660LINT_FALSE
661LINT_TRUE
662LINT_FLAGS
663LINT
664XCURSOR_LIBS
665XCURSOR_CFLAGS
666XCURSORPATH
667ICONDIR
668MAN_SUBSTS
669XORG_MAN_PAGE
670ADMIN_MAN_DIR
671DRIVER_MAN_DIR
672MISC_MAN_DIR
673FILE_MAN_DIR
674LIB_MAN_DIR
675APP_MAN_DIR
676ADMIN_MAN_SUFFIX
677DRIVER_MAN_SUFFIX
678MISC_MAN_SUFFIX
679FILE_MAN_SUFFIX
680LIB_MAN_SUFFIX
681APP_MAN_SUFFIX
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690LT_SYS_LIBRARY_PATH
691OTOOL64
692OTOOL
693LIPO
694NMEDIT
695DSYMUTIL
696MANIFEST_TOOL
697RANLIB
698ac_ct_AR
699AR
700DLLTOOL
701OBJDUMP
702FILECMD
703LN_S
704NM
705ac_ct_DUMPBIN
706DUMPBIN
707LD
708FGREP
709EGREP
710GREP
711SED
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
720LIBTOOL
721AM_BACKSLASH
722AM_DEFAULT_VERBOSITY
723AM_DEFAULT_V
724AM_V
725CSCOPE
726ETAGS
727CTAGS
728am__fastdepCC_FALSE
729am__fastdepCC_TRUE
730CCDEPMODE
731am__nodep
732AMDEPBACKSLASH
733AMDEP_FALSE
734AMDEP_TRUE
735am__include
736DEPDIR
737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760OBJEXT
761EXEEXT
762ac_ct_CC
763CPPFLAGS
764LDFLAGS
765CFLAGS
766CC
767target_alias
768host_alias
769build_alias
770LIBS
771ECHO_T
772ECHO_N
773ECHO_C
774DEFS
775mandir
776localedir
777libdir
778psdir
779pdfdir
780dvidir
781htmldir
782infodir
783docdir
784oldincludedir
785includedir
786runstatedir
787localstatedir
788sharedstatedir
789sysconfdir
790datadir
791datarootdir
792libexecdir
793sbindir
794bindir
795program_transform_name
796prefix
797exec_prefix
798PACKAGE_URL
799PACKAGE_BUGREPORT
800PACKAGE_STRING
801PACKAGE_VERSION
802PACKAGE_TARNAME
803PACKAGE_NAME
804PATH_SEPARATOR
805SHELL
806am__quote'
807ac_subst_files=''
808ac_user_opts='
809enable_option_checking
810enable_dependency_tracking
811enable_silent_rules
812enable_shared
813enable_static
814with_pic
815enable_fast_install
816with_aix_soname
817with_gnu_ld
818with_sysroot
819enable_libtool_lock
820enable_selective_werror
821enable_strict_compilation
822with_icondir
823with_cursorpath
824with_lint
825'
826      ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834LT_SYS_LIBRARY_PATH
835PKG_CONFIG
836PKG_CONFIG_PATH
837PKG_CONFIG_LIBDIR
838XCURSOR_CFLAGS
839XCURSOR_LIBS
840LINT
841LINT_FLAGS'
842
843
844# Initialize some variables set by options.
845ac_init_help=
846ac_init_version=false
847ac_unrecognized_opts=
848ac_unrecognized_sep=
849# The variables have the same names as the options, with
850# dashes changed to underlines.
851cache_file=/dev/null
852exec_prefix=NONE
853no_create=
854no_recursion=
855prefix=NONE
856program_prefix=NONE
857program_suffix=NONE
858program_transform_name=s,x,x,
859silent=
860site=
861srcdir=
862verbose=
863x_includes=NONE
864x_libraries=NONE
865
866# Installation directory options.
867# These are left unexpanded so users can "make install exec_prefix=/foo"
868# and all the variables that are supposed to be based on exec_prefix
869# by default will actually change.
870# Use braces instead of parens because sh, perl, etc. also accept them.
871# (The list follows the same order as the GNU Coding Standards.)
872bindir='${exec_prefix}/bin'
873sbindir='${exec_prefix}/sbin'
874libexecdir='${exec_prefix}/libexec'
875datarootdir='${prefix}/share'
876datadir='${datarootdir}'
877sysconfdir='${prefix}/etc'
878sharedstatedir='${prefix}/com'
879localstatedir='${prefix}/var'
880runstatedir='${localstatedir}/run'
881includedir='${prefix}/include'
882oldincludedir='/usr/include'
883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884infodir='${datarootdir}/info'
885htmldir='${docdir}'
886dvidir='${docdir}'
887pdfdir='${docdir}'
888psdir='${docdir}'
889libdir='${exec_prefix}/lib'
890localedir='${datarootdir}/locale'
891mandir='${datarootdir}/man'
892
893ac_prev=
894ac_dashdash=
895for ac_option
896do
897  # If the previous option needs an argument, assign it.
898  if test -n "$ac_prev"; then
899    eval $ac_prev=\$ac_option
900    ac_prev=
901    continue
902  fi
903
904  case $ac_option in
905  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906  *=)   ac_optarg= ;;
907  *)    ac_optarg=yes ;;
908  esac
909
910  case $ac_dashdash$ac_option in
911  --)
912    ac_dashdash=yes ;;
913
914  -bindir | --bindir | --bindi | --bind | --bin | --bi)
915    ac_prev=bindir ;;
916  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917    bindir=$ac_optarg ;;
918
919  -build | --build | --buil | --bui | --bu)
920    ac_prev=build_alias ;;
921  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922    build_alias=$ac_optarg ;;
923
924  -cache-file | --cache-file | --cache-fil | --cache-fi \
925  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926    ac_prev=cache_file ;;
927  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929    cache_file=$ac_optarg ;;
930
931  --config-cache | -C)
932    cache_file=config.cache ;;
933
934  -datadir | --datadir | --datadi | --datad)
935    ac_prev=datadir ;;
936  -datadir=* | --datadir=* | --datadi=* | --datad=*)
937    datadir=$ac_optarg ;;
938
939  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940  | --dataroo | --dataro | --datar)
941    ac_prev=datarootdir ;;
942  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944    datarootdir=$ac_optarg ;;
945
946  -disable-* | --disable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: '$ac_useropt'"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=no ;;
961
962  -docdir | --docdir | --docdi | --doc | --do)
963    ac_prev=docdir ;;
964  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965    docdir=$ac_optarg ;;
966
967  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968    ac_prev=dvidir ;;
969  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970    dvidir=$ac_optarg ;;
971
972  -enable-* | --enable-*)
973    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974    # Reject names that are not valid shell variable names.
975    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976      as_fn_error $? "invalid feature name: '$ac_useropt'"
977    ac_useropt_orig=$ac_useropt
978    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979    case $ac_user_opts in
980      *"
981"enable_$ac_useropt"
982"*) ;;
983      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984	 ac_unrecognized_sep=', ';;
985    esac
986    eval enable_$ac_useropt=\$ac_optarg ;;
987
988  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990  | --exec | --exe | --ex)
991    ac_prev=exec_prefix ;;
992  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994  | --exec=* | --exe=* | --ex=*)
995    exec_prefix=$ac_optarg ;;
996
997  -gas | --gas | --ga | --g)
998    # Obsolete; use --with-gas.
999    with_gas=yes ;;
1000
1001  -help | --help | --hel | --he | -h)
1002    ac_init_help=long ;;
1003  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004    ac_init_help=recursive ;;
1005  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006    ac_init_help=short ;;
1007
1008  -host | --host | --hos | --ho)
1009    ac_prev=host_alias ;;
1010  -host=* | --host=* | --hos=* | --ho=*)
1011    host_alias=$ac_optarg ;;
1012
1013  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014    ac_prev=htmldir ;;
1015  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016  | --ht=*)
1017    htmldir=$ac_optarg ;;
1018
1019  -includedir | --includedir | --includedi | --included | --include \
1020  | --includ | --inclu | --incl | --inc)
1021    ac_prev=includedir ;;
1022  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023  | --includ=* | --inclu=* | --incl=* | --inc=*)
1024    includedir=$ac_optarg ;;
1025
1026  -infodir | --infodir | --infodi | --infod | --info | --inf)
1027    ac_prev=infodir ;;
1028  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029    infodir=$ac_optarg ;;
1030
1031  -libdir | --libdir | --libdi | --libd)
1032    ac_prev=libdir ;;
1033  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034    libdir=$ac_optarg ;;
1035
1036  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037  | --libexe | --libex | --libe)
1038    ac_prev=libexecdir ;;
1039  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040  | --libexe=* | --libex=* | --libe=*)
1041    libexecdir=$ac_optarg ;;
1042
1043  -localedir | --localedir | --localedi | --localed | --locale)
1044    ac_prev=localedir ;;
1045  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046    localedir=$ac_optarg ;;
1047
1048  -localstatedir | --localstatedir | --localstatedi | --localstated \
1049  | --localstate | --localstat | --localsta | --localst | --locals)
1050    ac_prev=localstatedir ;;
1051  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053    localstatedir=$ac_optarg ;;
1054
1055  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056    ac_prev=mandir ;;
1057  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058    mandir=$ac_optarg ;;
1059
1060  -nfp | --nfp | --nf)
1061    # Obsolete; use --without-fp.
1062    with_fp=no ;;
1063
1064  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065  | --no-cr | --no-c | -n)
1066    no_create=yes ;;
1067
1068  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070    no_recursion=yes ;;
1071
1072  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074  | --oldin | --oldi | --old | --ol | --o)
1075    ac_prev=oldincludedir ;;
1076  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079    oldincludedir=$ac_optarg ;;
1080
1081  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082    ac_prev=prefix ;;
1083  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084    prefix=$ac_optarg ;;
1085
1086  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087  | --program-pre | --program-pr | --program-p)
1088    ac_prev=program_prefix ;;
1089  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091    program_prefix=$ac_optarg ;;
1092
1093  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094  | --program-suf | --program-su | --program-s)
1095    ac_prev=program_suffix ;;
1096  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098    program_suffix=$ac_optarg ;;
1099
1100  -program-transform-name | --program-transform-name \
1101  | --program-transform-nam | --program-transform-na \
1102  | --program-transform-n | --program-transform- \
1103  | --program-transform | --program-transfor \
1104  | --program-transfo | --program-transf \
1105  | --program-trans | --program-tran \
1106  | --progr-tra | --program-tr | --program-t)
1107    ac_prev=program_transform_name ;;
1108  -program-transform-name=* | --program-transform-name=* \
1109  | --program-transform-nam=* | --program-transform-na=* \
1110  | --program-transform-n=* | --program-transform-=* \
1111  | --program-transform=* | --program-transfor=* \
1112  | --program-transfo=* | --program-transf=* \
1113  | --program-trans=* | --program-tran=* \
1114  | --progr-tra=* | --program-tr=* | --program-t=*)
1115    program_transform_name=$ac_optarg ;;
1116
1117  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118    ac_prev=pdfdir ;;
1119  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120    pdfdir=$ac_optarg ;;
1121
1122  -psdir | --psdir | --psdi | --psd | --ps)
1123    ac_prev=psdir ;;
1124  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125    psdir=$ac_optarg ;;
1126
1127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128  | -silent | --silent | --silen | --sile | --sil)
1129    silent=yes ;;
1130
1131  -runstatedir | --runstatedir | --runstatedi | --runstated \
1132  | --runstate | --runstat | --runsta | --runst | --runs \
1133  | --run | --ru | --r)
1134    ac_prev=runstatedir ;;
1135  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137  | --run=* | --ru=* | --r=*)
1138    runstatedir=$ac_optarg ;;
1139
1140  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141    ac_prev=sbindir ;;
1142  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143  | --sbi=* | --sb=*)
1144    sbindir=$ac_optarg ;;
1145
1146  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148  | --sharedst | --shareds | --shared | --share | --shar \
1149  | --sha | --sh)
1150    ac_prev=sharedstatedir ;;
1151  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154  | --sha=* | --sh=*)
1155    sharedstatedir=$ac_optarg ;;
1156
1157  -site | --site | --sit)
1158    ac_prev=site ;;
1159  -site=* | --site=* | --sit=*)
1160    site=$ac_optarg ;;
1161
1162  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163    ac_prev=srcdir ;;
1164  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165    srcdir=$ac_optarg ;;
1166
1167  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168  | --syscon | --sysco | --sysc | --sys | --sy)
1169    ac_prev=sysconfdir ;;
1170  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172    sysconfdir=$ac_optarg ;;
1173
1174  -target | --target | --targe | --targ | --tar | --ta | --t)
1175    ac_prev=target_alias ;;
1176  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177    target_alias=$ac_optarg ;;
1178
1179  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180    verbose=yes ;;
1181
1182  -version | --version | --versio | --versi | --vers | -V)
1183    ac_init_version=: ;;
1184
1185  -with-* | --with-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: '$ac_useropt'"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=\$ac_optarg ;;
1200
1201  -without-* | --without-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: '$ac_useropt'"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=no ;;
1216
1217  --x)
1218    # Obsolete; use --with-x.
1219    with_x=yes ;;
1220
1221  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222  | --x-incl | --x-inc | --x-in | --x-i)
1223    ac_prev=x_includes ;;
1224  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226    x_includes=$ac_optarg ;;
1227
1228  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230    ac_prev=x_libraries ;;
1231  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233    x_libraries=$ac_optarg ;;
1234
1235  -*) as_fn_error $? "unrecognized option: '$ac_option'
1236Try '$0 --help' for more information"
1237    ;;
1238
1239  *=*)
1240    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241    # Reject names that are not valid shell variable names.
1242    case $ac_envvar in #(
1243      '' | [0-9]* | *[!_$as_cr_alnum]* )
1244      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1245    esac
1246    eval $ac_envvar=\$ac_optarg
1247    export $ac_envvar ;;
1248
1249  *)
1250    # FIXME: should be removed in autoconf 3.0.
1251    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255    ;;
1256
1257  esac
1258done
1259
1260if test -n "$ac_prev"; then
1261  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262  as_fn_error $? "missing argument to $ac_option"
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266  case $enable_option_checking in
1267    no) ;;
1268    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270  esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275		datadir sysconfdir sharedstatedir localstatedir includedir \
1276		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277		libdir localedir mandir runstatedir
1278do
1279  eval ac_val=\$$ac_var
1280  # Remove trailing slashes.
1281  case $ac_val in
1282    */ )
1283      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284      eval $ac_var=\$ac_val;;
1285  esac
1286  # Be sure to have absolute directory names.
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292done
1293
1294# There might be people who depend on the old broken behavior: '$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303  if test "x$build_alias" = x; then
1304    cross_compiling=maybe
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  as_fn_error $? "working directory cannot be determined"
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321  as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326  ac_srcdir_defaulted=yes
1327  # Try the directory containing this script, then the parent directory.
1328  ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330	 X"$as_myself" : 'X\(//\)[^/]' \| \
1331	 X"$as_myself" : 'X\(//\)$' \| \
1332	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333printf "%s\n" X"$as_myself" |
1334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)[^/].*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\).*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  s/.*/./; q'`
1351  srcdir=$ac_confdir
1352  if test ! -r "$srcdir/$ac_unique_file"; then
1353    srcdir=..
1354  fi
1355else
1356  ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361fi
1362ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365	pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368  srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378  eval ac_env_${ac_var}_value=\$${ac_var}
1379  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387  # Omit some internal or obsolete options to make the list less imposing.
1388  # This message is too long to be a string in the A/UX 3.1 sh.
1389  cat <<_ACEOF
1390'configure' configures libXcursor 1.2.2 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400  -h, --help              display this help and exit
1401      --help=short        display options specific to this package
1402      --help=recursive    display the short help of all the included packages
1403  -V, --version           display version information and exit
1404  -q, --quiet, --silent   do not print 'checking ...' messages
1405      --cache-file=FILE   cache test results in FILE [disabled]
1406  -C, --config-cache      alias for '--cache-file=config.cache'
1407  -n, --no-create         do not create output files
1408      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1409
1410Installation directories:
1411  --prefix=PREFIX         install architecture-independent files in PREFIX
1412                          [$ac_default_prefix]
1413  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                          [PREFIX]
1415
1416By default, 'make install' will install all the files in
1417'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1418an installation prefix other than '$ac_default_prefix' using '--prefix',
1419for instance '--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424  --bindir=DIR            user executables [EPREFIX/bin]
1425  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1426  --libexecdir=DIR        program executables [EPREFIX/libexec]
1427  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1428  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1429  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1430  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1431  --libdir=DIR            object code libraries [EPREFIX/lib]
1432  --includedir=DIR        C header files [PREFIX/include]
1433  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436  --infodir=DIR           info documentation [DATAROOTDIR/info]
1437  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438  --mandir=DIR            man documentation [DATAROOTDIR/man]
1439  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXcursor]
1440  --htmldir=DIR           html documentation [DOCDIR]
1441  --dvidir=DIR            dvi documentation [DOCDIR]
1442  --pdfdir=DIR            pdf documentation [DOCDIR]
1443  --psdir=DIR             ps documentation [DOCDIR]
1444_ACEOF
1445
1446  cat <<\_ACEOF
1447
1448Program names:
1449  --program-prefix=PREFIX            prepend PREFIX to installed program names
1450  --program-suffix=SUFFIX            append SUFFIX to installed program names
1451  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1452
1453System types:
1454  --build=BUILD     configure for building on BUILD [guessed]
1455  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460  case $ac_init_help in
1461     short | recursive ) echo "Configuration of libXcursor 1.2.2:";;
1462   esac
1463  cat <<\_ACEOF
1464
1465Optional Features:
1466  --disable-option-checking  ignore unrecognized --enable/--with options
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --enable-dependency-tracking
1470                          do not reject slow dependency extractors
1471  --disable-dependency-tracking
1472                          speeds up one-time build
1473  --enable-silent-rules   less verbose build output (undo: "make V=1")
1474  --disable-silent-rules  verbose build output (undo: "make V=0")
1475  --enable-shared[=PKGS]  build shared libraries [default=yes]
1476  --enable-static[=PKGS]  build static libraries [default=yes]
1477  --enable-fast-install[=PKGS]
1478                          optimize for fast installation [default=yes]
1479  --disable-libtool-lock  avoid locking (might break parallel builds)
1480  --disable-selective-werror
1481                          Turn off selective compiler errors. (default:
1482                          enabled)
1483  --enable-strict-compilation
1484                          Enable all warnings from compiler and make them
1485                          errors (default: disabled)
1486
1487Optional Packages:
1488  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1491                          both]
1492  --with-aix-soname=aix|svr4|both
1493                          shared library versioning (aka "SONAME") variant to
1494                          provide on AIX, [default=aix].
1495  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1496  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1497                          compiler's sysroot if not specified).
1498  --with-icondir=<path>   Set default icon directory (default:
1499                          ${datadir}/icons)
1500  --with-cursorpath=<paths>
1501                          Set default search path for cursors
1502  --with-lint             Use a lint-style source code checker (default:
1503                          disabled)
1504
1505Some influential environment variables:
1506  CC          C compiler command
1507  CFLAGS      C compiler flags
1508  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1509              nonstandard directory <lib dir>
1510  LIBS        libraries to pass to the linker, e.g. -l<library>
1511  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512              you have headers in a nonstandard directory <include dir>
1513  LT_SYS_LIBRARY_PATH
1514              User-defined run-time library search path.
1515  PKG_CONFIG  path to pkg-config utility
1516  PKG_CONFIG_PATH
1517              directories to add to pkg-config's search path
1518  PKG_CONFIG_LIBDIR
1519              path overriding pkg-config's built-in search path
1520  XCURSOR_CFLAGS
1521              C compiler flags for XCURSOR, overriding pkg-config
1522  XCURSOR_LIBS
1523              linker flags for XCURSOR, overriding pkg-config
1524  LINT        Path to a lint-style command
1525  LINT_FLAGS  Flags for the lint-style command
1526
1527Use these variables to override the choices made by 'configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/issues>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" ||
1539      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540      continue
1541    ac_builddir=.
1542
1543case "$ac_dir" in
1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545*)
1546  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1547  # A ".." for each directory in $ac_dir_suffix.
1548  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549  case $ac_top_builddir_sub in
1550  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552  esac ;;
1553esac
1554ac_abs_top_builddir=$ac_pwd
1555ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556# for backward compatibility:
1557ac_top_builddir=$ac_top_build_prefix
1558
1559case $srcdir in
1560  .)  # We are building in place.
1561    ac_srcdir=.
1562    ac_top_srcdir=$ac_top_builddir_sub
1563    ac_abs_top_srcdir=$ac_pwd ;;
1564  [\\/]* | ?:[\\/]* )  # Absolute name.
1565    ac_srcdir=$srcdir$ac_dir_suffix;
1566    ac_top_srcdir=$srcdir
1567    ac_abs_top_srcdir=$srcdir ;;
1568  *) # Relative name.
1569    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570    ac_top_srcdir=$ac_top_build_prefix$srcdir
1571    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572esac
1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575    cd "$ac_dir" || { ac_status=$?; continue; }
1576    # Check for configure.gnu first; this name is used for a wrapper for
1577    # Metaconfig's "Configure" on case-insensitive file systems.
1578    if test -f "$ac_srcdir/configure.gnu"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581    elif test -f "$ac_srcdir/configure"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure" --help=recursive
1584    else
1585      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586    fi || ac_status=$?
1587    cd "$ac_pwd" || { ac_status=$?; break; }
1588  done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593  cat <<\_ACEOF
1594libXcursor configure 1.2.2
1595generated by GNU Autoconf 2.72
1596
1597Copyright (C) 2023 Free Software Foundation, Inc.
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601  exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  rm -f conftest.$ac_objext conftest.beam
1615  if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618  *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621printf "%s\n" "$ac_try_echo"; } >&5
1622  (eval "$ac_compile") 2>conftest.err
1623  ac_status=$?
1624  if test -s conftest.err; then
1625    grep -v '^ *+' conftest.err >conftest.er1
1626    cat conftest.er1 >&5
1627    mv -f conftest.er1 conftest.err
1628  fi
1629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; } && {
1631	 test -z "$ac_c_werror_flag" ||
1632	 test ! -s conftest.err
1633       } && test -s conftest.$ac_objext
1634then :
1635  ac_retval=0
1636else case e in #(
1637  e) printf "%s\n" "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640	ac_retval=1 ;;
1641esac
1642fi
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_compile
1647
1648# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists and can be compiled using the include files in
1651# INCLUDES, setting the cache variable VAR accordingly.
1652ac_fn_c_check_header_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656printf %s "checking for $2... " >&6; }
1657if eval test \${$3+y}
1658then :
1659  printf %s "(cached) " >&6
1660else case e in #(
1661  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662/* end confdefs.h.  */
1663$4
1664#include <$2>
1665_ACEOF
1666if ac_fn_c_try_compile "$LINENO"
1667then :
1668  eval "$3=yes"
1669else case e in #(
1670  e) eval "$3=no" ;;
1671esac
1672fi
1673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1674esac
1675fi
1676eval ac_res=\$$3
1677	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678printf "%s\n" "$ac_res" >&6; }
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681} # ac_fn_c_check_header_compile
1682
1683# ac_fn_c_try_link LINENO
1684# -----------------------
1685# Try to link conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_link ()
1687{
1688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1690  if { { ac_try="$ac_link"
1691case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696printf "%s\n" "$ac_try_echo"; } >&5
1697  (eval "$ac_link") 2>conftest.err
1698  ac_status=$?
1699  if test -s conftest.err; then
1700    grep -v '^ *+' conftest.err >conftest.er1
1701    cat conftest.er1 >&5
1702    mv -f conftest.er1 conftest.err
1703  fi
1704  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705  test $ac_status = 0; } && {
1706	 test -z "$ac_c_werror_flag" ||
1707	 test ! -s conftest.err
1708       } && test -s conftest$ac_exeext && {
1709	 test "$cross_compiling" = yes ||
1710	 test -x conftest$ac_exeext
1711       }
1712then :
1713  ac_retval=0
1714else case e in #(
1715  e) printf "%s\n" "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718	ac_retval=1 ;;
1719esac
1720fi
1721  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723  # interfere with the next link command; also delete a directory that is
1724  # left behind by Apple's compiler.  We do this before executing the actions.
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_link
1730
1731# ac_fn_c_check_func LINENO FUNC VAR
1732# ----------------------------------
1733# Tests whether FUNC exists, setting the cache variable VAR accordingly
1734ac_fn_c_check_func ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738printf %s "checking for $2... " >&6; }
1739if eval test \${$3+y}
1740then :
1741  printf %s "(cached) " >&6
1742else case e in #(
1743  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1747#define $2 innocuous_$2
1748
1749/* System header to define __stub macros and hopefully few prototypes,
1750   which can conflict with char $2 (void); below.  */
1751
1752#include <limits.h>
1753#undef $2
1754
1755/* Override any GCC internal prototype to avoid an error.
1756   Use char because int might match the return type of a GCC
1757   builtin and then its argument prototype would still apply.  */
1758#ifdef __cplusplus
1759extern "C"
1760#endif
1761char $2 (void);
1762/* The GNU C library defines this for functions which it implements
1763    to always fail with ENOSYS.  Some functions are actually named
1764    something starting with __ and the normal name is an alias.  */
1765#if defined __stub_$2 || defined __stub___$2
1766choke me
1767#endif
1768
1769int
1770main (void)
1771{
1772return $2 ();
1773  ;
1774  return 0;
1775}
1776_ACEOF
1777if ac_fn_c_try_link "$LINENO"
1778then :
1779  eval "$3=yes"
1780else case e in #(
1781  e) eval "$3=no" ;;
1782esac
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.beam \
1785    conftest$ac_exeext conftest.$ac_ext ;;
1786esac
1787fi
1788eval ac_res=\$$3
1789	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790printf "%s\n" "$ac_res" >&6; }
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793} # ac_fn_c_check_func
1794
1795# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1796# ------------------------------------------------------------------
1797# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1798# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1799ac_fn_check_decl ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  as_decl_name=`echo $2|sed 's/ *(.*//'`
1803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1804printf %s "checking whether $as_decl_name is declared... " >&6; }
1805if eval test \${$3+y}
1806then :
1807  printf %s "(cached) " >&6
1808else case e in #(
1809  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1810  eval ac_save_FLAGS=\$$6
1811  as_fn_append $6 " $5"
1812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814$4
1815int
1816main (void)
1817{
1818#ifndef $as_decl_name
1819#ifdef __cplusplus
1820  (void) $as_decl_use;
1821#else
1822  (void) $as_decl_name;
1823#endif
1824#endif
1825
1826  ;
1827  return 0;
1828}
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"
1831then :
1832  eval "$3=yes"
1833else case e in #(
1834  e) eval "$3=no" ;;
1835esac
1836fi
1837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1838  eval $6=\$ac_save_FLAGS
1839 ;;
1840esac
1841fi
1842eval ac_res=\$$3
1843	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844printf "%s\n" "$ac_res" >&6; }
1845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847} # ac_fn_check_decl
1848ac_configure_args_raw=
1849for ac_arg
1850do
1851  case $ac_arg in
1852  *\'*)
1853    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1854  esac
1855  as_fn_append ac_configure_args_raw " '$ac_arg'"
1856done
1857
1858case $ac_configure_args_raw in
1859  *$as_nl*)
1860    ac_safe_unquote= ;;
1861  *)
1862    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1863    ac_unsafe_a="$ac_unsafe_z#~"
1864    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1865    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1866esac
1867
1868cat >config.log <<_ACEOF
1869This file contains any messages produced by compilers while
1870running configure, to aid debugging if configure makes a mistake.
1871
1872It was created by libXcursor $as_me 1.2.2, which was
1873generated by GNU Autoconf 2.72.  Invocation command line was
1874
1875  $ $0$ac_configure_args_raw
1876
1877_ACEOF
1878exec 5>>config.log
1879{
1880cat <<_ASUNAME
1881## --------- ##
1882## Platform. ##
1883## --------- ##
1884
1885hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890
1891/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1893
1894/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1895/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1896/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1898/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1899/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1900/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1901
1902_ASUNAME
1903
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907  IFS=$as_save_IFS
1908  case $as_dir in #(((
1909    '') as_dir=./ ;;
1910    */) ;;
1911    *) as_dir=$as_dir/ ;;
1912  esac
1913    printf "%s\n" "PATH: $as_dir"
1914  done
1915IFS=$as_save_IFS
1916
1917} >&5
1918
1919cat >&5 <<_ACEOF
1920
1921
1922## ----------- ##
1923## Core tests. ##
1924## ----------- ##
1925
1926_ACEOF
1927
1928
1929# Keep a trace of the command line.
1930# Strip out --no-create and --no-recursion so they do not pile up.
1931# Strip out --silent because we don't want to record it for future runs.
1932# Also quote any args containing shell meta-characters.
1933# Make two passes to allow for proper duplicate-argument suppression.
1934ac_configure_args=
1935ac_configure_args0=
1936ac_configure_args1=
1937ac_must_keep_next=false
1938for ac_pass in 1 2
1939do
1940  for ac_arg
1941  do
1942    case $ac_arg in
1943    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945    | -silent | --silent | --silen | --sile | --sil)
1946      continue ;;
1947    *\'*)
1948      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949    esac
1950    case $ac_pass in
1951    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952    2)
1953      as_fn_append ac_configure_args1 " '$ac_arg'"
1954      if test $ac_must_keep_next = true; then
1955	ac_must_keep_next=false # Got value, back to normal.
1956      else
1957	case $ac_arg in
1958	  *=* | --config-cache | -C | -disable-* | --disable-* \
1959	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961	  | -with-* | --with-* | -without-* | --without-* | --x)
1962	    case "$ac_configure_args0 " in
1963	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964	    esac
1965	    ;;
1966	  -* ) ac_must_keep_next=true ;;
1967	esac
1968      fi
1969      as_fn_append ac_configure_args " '$ac_arg'"
1970      ;;
1971    esac
1972  done
1973done
1974{ ac_configure_args0=; unset ac_configure_args0;}
1975{ ac_configure_args1=; unset ac_configure_args1;}
1976
1977# When interrupted or exit'd, cleanup temporary files, and complete
1978# config.log.  We remove comments because anyway the quotes in there
1979# would cause problems or look ugly.
1980# WARNING: Use '\'' to represent an apostrophe within the trap.
1981# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982trap 'exit_status=$?
1983  # Sanitize IFS.
1984  IFS=" ""	$as_nl"
1985  # Save into config.log some information that might help in debugging.
1986  {
1987    echo
1988
1989    printf "%s\n" "## ---------------- ##
1990## Cache variables. ##
1991## ---------------- ##"
1992    echo
1993    # The following way of writing the cache mishandles newlines in values,
1994(
1995  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996    eval ac_val=\$$ac_var
1997    case $ac_val in #(
1998    *${as_nl}*)
1999      case $ac_var in #(
2000      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002      esac
2003      case $ac_var in #(
2004      _ | IFS | as_nl) ;; #(
2005      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006      *) { eval $ac_var=; unset $ac_var;} ;;
2007      esac ;;
2008    esac
2009  done
2010  (set) 2>&1 |
2011    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012    *${as_nl}ac_space=\ *)
2013      sed -n \
2014	"s/'\''/'\''\\\\'\'''\''/g;
2015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016      ;; #(
2017    *)
2018      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019      ;;
2020    esac |
2021    sort
2022)
2023    echo
2024
2025    printf "%s\n" "## ----------------- ##
2026## Output variables. ##
2027## ----------------- ##"
2028    echo
2029    for ac_var in $ac_subst_vars
2030    do
2031      eval ac_val=\$$ac_var
2032      case $ac_val in
2033      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034      esac
2035      printf "%s\n" "$ac_var='\''$ac_val'\''"
2036    done | sort
2037    echo
2038
2039    if test -n "$ac_subst_files"; then
2040      printf "%s\n" "## ------------------- ##
2041## File substitutions. ##
2042## ------------------- ##"
2043      echo
2044      for ac_var in $ac_subst_files
2045      do
2046	eval ac_val=\$$ac_var
2047	case $ac_val in
2048	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049	esac
2050	printf "%s\n" "$ac_var='\''$ac_val'\''"
2051      done | sort
2052      echo
2053    fi
2054
2055    if test -s confdefs.h; then
2056      printf "%s\n" "## ----------- ##
2057## confdefs.h. ##
2058## ----------- ##"
2059      echo
2060      cat confdefs.h
2061      echo
2062    fi
2063    test "$ac_signal" != 0 &&
2064      printf "%s\n" "$as_me: caught signal $ac_signal"
2065    printf "%s\n" "$as_me: exit $exit_status"
2066  } >&5
2067  rm -f core *.core core.conftest.* &&
2068    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069    exit $exit_status
2070' 0
2071for ac_signal in 1 2 13 15; do
2072  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073done
2074ac_signal=0
2075
2076# confdefs.h avoids OS command line length limits that DEFS can exceed.
2077rm -f -r conftest* confdefs.h
2078
2079printf "%s\n" "/* confdefs.h */" > confdefs.h
2080
2081# Predefined preprocessor variables.
2082
2083printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2086
2087printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2088
2089printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2090
2091printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2092
2093printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2094
2095
2096# Let the site file select an alternate cache file if it wants to.
2097# Prefer an explicitly selected file to automatically selected ones.
2098if test -n "$CONFIG_SITE"; then
2099  ac_site_files="$CONFIG_SITE"
2100elif test "x$prefix" != xNONE; then
2101  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2102else
2103  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2104fi
2105
2106for ac_site_file in $ac_site_files
2107do
2108  case $ac_site_file in #(
2109  */*) :
2110     ;; #(
2111  *) :
2112    ac_site_file=./$ac_site_file ;;
2113esac
2114  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2115    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2117    sed 's/^/| /' "$ac_site_file" >&5
2118    . "$ac_site_file" \
2119      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2120printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2121as_fn_error $? "failed to load site script $ac_site_file
2122See 'config.log' for more details" "$LINENO" 5; }
2123  fi
2124done
2125
2126if test -r "$cache_file"; then
2127  # Some versions of bash will fail to source /dev/null (special files
2128  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2129  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2132    case $cache_file in
2133      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134      *)                      . "./$cache_file";;
2135    esac
2136  fi
2137else
2138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2140  >$cache_file
2141fi
2142
2143as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2144# Test code for whether the C compiler supports C89 (global declarations)
2145ac_c_conftest_c89_globals='
2146/* Does the compiler advertise C89 conformance?
2147   Do not test the value of __STDC__, because some compilers set it to 0
2148   while being otherwise adequately conformant. */
2149#if !defined __STDC__
2150# error "Compiler does not advertise C89 conformance"
2151#endif
2152
2153#include <stddef.h>
2154#include <stdarg.h>
2155struct stat;
2156/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2157struct buf { int x; };
2158struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2159static char *e (char **p, int i)
2160{
2161  return p[i];
2162}
2163static char *f (char * (*g) (char **, int), char **p, ...)
2164{
2165  char *s;
2166  va_list v;
2167  va_start (v,p);
2168  s = g (p, va_arg (v,int));
2169  va_end (v);
2170  return s;
2171}
2172
2173/* C89 style stringification. */
2174#define noexpand_stringify(a) #a
2175const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2176
2177/* C89 style token pasting.  Exercises some of the corner cases that
2178   e.g. old MSVC gets wrong, but not very hard. */
2179#define noexpand_concat(a,b) a##b
2180#define expand_concat(a,b) noexpand_concat(a,b)
2181extern int vA;
2182extern int vbee;
2183#define aye A
2184#define bee B
2185int *pvA = &expand_concat(v,aye);
2186int *pvbee = &noexpand_concat(v,bee);
2187
2188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2189   function prototypes and stuff, but not \xHH hex character constants.
2190   These do not provoke an error unfortunately, instead are silently treated
2191   as an "x".  The following induces an error, until -std is added to get
2192   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2193   array size at least.  It is necessary to write \x00 == 0 to get something
2194   that is true only with -std.  */
2195int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2196
2197/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2198   inside strings and character constants.  */
2199#define FOO(x) '\''x'\''
2200int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2201
2202int test (int i, double x);
2203struct s1 {int (*f) (int a);};
2204struct s2 {int (*f) (double a);};
2205int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2206               int, int);'
2207
2208# Test code for whether the C compiler supports C89 (body of main).
2209ac_c_conftest_c89_main='
2210ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2211'
2212
2213# Test code for whether the C compiler supports C99 (global declarations)
2214ac_c_conftest_c99_globals='
2215/* Does the compiler advertise C99 conformance? */
2216#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2217# error "Compiler does not advertise C99 conformance"
2218#endif
2219
2220// See if C++-style comments work.
2221
2222#include <stdbool.h>
2223extern int puts (const char *);
2224extern int printf (const char *, ...);
2225extern int dprintf (int, const char *, ...);
2226extern void *malloc (size_t);
2227extern void free (void *);
2228
2229// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2230// dprintf is used instead of fprintf to avoid needing to declare
2231// FILE and stderr.
2232#define debug(...) dprintf (2, __VA_ARGS__)
2233#define showlist(...) puts (#__VA_ARGS__)
2234#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2235static void
2236test_varargs_macros (void)
2237{
2238  int x = 1234;
2239  int y = 5678;
2240  debug ("Flag");
2241  debug ("X = %d\n", x);
2242  showlist (The first, second, and third items.);
2243  report (x>y, "x is %d but y is %d", x, y);
2244}
2245
2246// Check long long types.
2247#define BIG64 18446744073709551615ull
2248#define BIG32 4294967295ul
2249#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2250#if !BIG_OK
2251  #error "your preprocessor is broken"
2252#endif
2253#if BIG_OK
2254#else
2255  #error "your preprocessor is broken"
2256#endif
2257static long long int bignum = -9223372036854775807LL;
2258static unsigned long long int ubignum = BIG64;
2259
2260struct incomplete_array
2261{
2262  int datasize;
2263  double data[];
2264};
2265
2266struct named_init {
2267  int number;
2268  const wchar_t *name;
2269  double average;
2270};
2271
2272typedef const char *ccp;
2273
2274static inline int
2275test_restrict (ccp restrict text)
2276{
2277  // Iterate through items via the restricted pointer.
2278  // Also check for declarations in for loops.
2279  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2280    continue;
2281  return 0;
2282}
2283
2284// Check varargs and va_copy.
2285static bool
2286test_varargs (const char *format, ...)
2287{
2288  va_list args;
2289  va_start (args, format);
2290  va_list args_copy;
2291  va_copy (args_copy, args);
2292
2293  const char *str = "";
2294  int number = 0;
2295  float fnumber = 0;
2296
2297  while (*format)
2298    {
2299      switch (*format++)
2300	{
2301	case '\''s'\'': // string
2302	  str = va_arg (args_copy, const char *);
2303	  break;
2304	case '\''d'\'': // int
2305	  number = va_arg (args_copy, int);
2306	  break;
2307	case '\''f'\'': // float
2308	  fnumber = va_arg (args_copy, double);
2309	  break;
2310	default:
2311	  break;
2312	}
2313    }
2314  va_end (args_copy);
2315  va_end (args);
2316
2317  return *str && number && fnumber;
2318}
2319'
2320
2321# Test code for whether the C compiler supports C99 (body of main).
2322ac_c_conftest_c99_main='
2323  // Check bool.
2324  _Bool success = false;
2325  success |= (argc != 0);
2326
2327  // Check restrict.
2328  if (test_restrict ("String literal") == 0)
2329    success = true;
2330  char *restrict newvar = "Another string";
2331
2332  // Check varargs.
2333  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2334  test_varargs_macros ();
2335
2336  // Check flexible array members.
2337  struct incomplete_array *ia =
2338    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2339  ia->datasize = 10;
2340  for (int i = 0; i < ia->datasize; ++i)
2341    ia->data[i] = i * 1.234;
2342  // Work around memory leak warnings.
2343  free (ia);
2344
2345  // Check named initializers.
2346  struct named_init ni = {
2347    .number = 34,
2348    .name = L"Test wide string",
2349    .average = 543.34343,
2350  };
2351
2352  ni.number = 58;
2353
2354  int dynamic_array[ni.number];
2355  dynamic_array[0] = argv[0][0];
2356  dynamic_array[ni.number - 1] = 543;
2357
2358  // work around unused variable warnings
2359  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2360	 || dynamic_array[ni.number - 1] != 543);
2361'
2362
2363# Test code for whether the C compiler supports C11 (global declarations)
2364ac_c_conftest_c11_globals='
2365/* Does the compiler advertise C11 conformance? */
2366#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2367# error "Compiler does not advertise C11 conformance"
2368#endif
2369
2370// Check _Alignas.
2371char _Alignas (double) aligned_as_double;
2372char _Alignas (0) no_special_alignment;
2373extern char aligned_as_int;
2374char _Alignas (0) _Alignas (int) aligned_as_int;
2375
2376// Check _Alignof.
2377enum
2378{
2379  int_alignment = _Alignof (int),
2380  int_array_alignment = _Alignof (int[100]),
2381  char_alignment = _Alignof (char)
2382};
2383_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2384
2385// Check _Noreturn.
2386int _Noreturn does_not_return (void) { for (;;) continue; }
2387
2388// Check _Static_assert.
2389struct test_static_assert
2390{
2391  int x;
2392  _Static_assert (sizeof (int) <= sizeof (long int),
2393                  "_Static_assert does not work in struct");
2394  long int y;
2395};
2396
2397// Check UTF-8 literals.
2398#define u8 syntax error!
2399char const utf8_literal[] = u8"happens to be ASCII" "another string";
2400
2401// Check duplicate typedefs.
2402typedef long *long_ptr;
2403typedef long int *long_ptr;
2404typedef long_ptr long_ptr;
2405
2406// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2407struct anonymous
2408{
2409  union {
2410    struct { int i; int j; };
2411    struct { int k; long int l; } w;
2412  };
2413  int m;
2414} v1;
2415'
2416
2417# Test code for whether the C compiler supports C11 (body of main).
2418ac_c_conftest_c11_main='
2419  _Static_assert ((offsetof (struct anonymous, i)
2420		   == offsetof (struct anonymous, w.k)),
2421		  "Anonymous union alignment botch");
2422  v1.i = 2;
2423  v1.w.k = 5;
2424  ok |= v1.i != 5;
2425'
2426
2427# Test code for whether the C compiler supports C11 (complete).
2428ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2429${ac_c_conftest_c99_globals}
2430${ac_c_conftest_c11_globals}
2431
2432int
2433main (int argc, char **argv)
2434{
2435  int ok = 0;
2436  ${ac_c_conftest_c89_main}
2437  ${ac_c_conftest_c99_main}
2438  ${ac_c_conftest_c11_main}
2439  return ok;
2440}
2441"
2442
2443# Test code for whether the C compiler supports C99 (complete).
2444ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2445${ac_c_conftest_c99_globals}
2446
2447int
2448main (int argc, char **argv)
2449{
2450  int ok = 0;
2451  ${ac_c_conftest_c89_main}
2452  ${ac_c_conftest_c99_main}
2453  return ok;
2454}
2455"
2456
2457# Test code for whether the C compiler supports C89 (complete).
2458ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2459
2460int
2461main (int argc, char **argv)
2462{
2463  int ok = 0;
2464  ${ac_c_conftest_c89_main}
2465  return ok;
2466}
2467"
2468
2469as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2470as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2471as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2472as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2473as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2474as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2475as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2476as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2477as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2478as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2479
2480# Auxiliary files required by this configure script.
2481ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2482
2483# Locations in which to look for auxiliary files.
2484ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2485
2486# Search for a directory containing all of the required auxiliary files,
2487# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2488# If we don't find one directory that contains all the files we need,
2489# we report the set of missing files from the *first* directory in
2490# $ac_aux_dir_candidates and give up.
2491ac_missing_aux_files=""
2492ac_first_candidate=:
2493printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495as_found=false
2496for as_dir in $ac_aux_dir_candidates
2497do
2498  IFS=$as_save_IFS
2499  case $as_dir in #(((
2500    '') as_dir=./ ;;
2501    */) ;;
2502    *) as_dir=$as_dir/ ;;
2503  esac
2504  as_found=:
2505
2506  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2507  ac_aux_dir_found=yes
2508  ac_install_sh=
2509  for ac_aux in $ac_aux_files
2510  do
2511    # As a special case, if "install-sh" is required, that requirement
2512    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2513    # and $ac_install_sh is set appropriately for whichever one is found.
2514    if test x"$ac_aux" = x"install-sh"
2515    then
2516      if test -f "${as_dir}install-sh"; then
2517        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2518        ac_install_sh="${as_dir}install-sh -c"
2519      elif test -f "${as_dir}install.sh"; then
2520        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2521        ac_install_sh="${as_dir}install.sh -c"
2522      elif test -f "${as_dir}shtool"; then
2523        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2524        ac_install_sh="${as_dir}shtool install -c"
2525      else
2526        ac_aux_dir_found=no
2527        if $ac_first_candidate; then
2528          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2529        else
2530          break
2531        fi
2532      fi
2533    else
2534      if test -f "${as_dir}${ac_aux}"; then
2535        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2536      else
2537        ac_aux_dir_found=no
2538        if $ac_first_candidate; then
2539          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2540        else
2541          break
2542        fi
2543      fi
2544    fi
2545  done
2546  if test "$ac_aux_dir_found" = yes; then
2547    ac_aux_dir="$as_dir"
2548    break
2549  fi
2550  ac_first_candidate=false
2551
2552  as_found=false
2553done
2554IFS=$as_save_IFS
2555if $as_found
2556then :
2557
2558else case e in #(
2559  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2560esac
2561fi
2562
2563
2564# These three variables are undocumented and unsupported,
2565# and are intended to be withdrawn in a future Autoconf release.
2566# They can cause serious problems if a builder's source tree is in a directory
2567# whose full name contains unusual characters.
2568if test -f "${ac_aux_dir}config.guess"; then
2569  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2570fi
2571if test -f "${ac_aux_dir}config.sub"; then
2572  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2573fi
2574if test -f "$ac_aux_dir/configure"; then
2575  ac_configure="$SHELL ${ac_aux_dir}configure"
2576fi
2577
2578# Check that the precious variables saved in the cache have kept the same
2579# value.
2580ac_cache_corrupted=false
2581for ac_var in $ac_precious_vars; do
2582  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2583  eval ac_new_set=\$ac_env_${ac_var}_set
2584  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2585  eval ac_new_val=\$ac_env_${ac_var}_value
2586  case $ac_old_set,$ac_new_set in
2587    set,)
2588      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2589printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2590      ac_cache_corrupted=: ;;
2591    ,set)
2592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2593printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2594      ac_cache_corrupted=: ;;
2595    ,);;
2596    *)
2597      if test "x$ac_old_val" != "x$ac_new_val"; then
2598	# differences in whitespace do not lead to failure.
2599	ac_old_val_w=`echo x $ac_old_val`
2600	ac_new_val_w=`echo x $ac_new_val`
2601	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2602	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2603printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2604	  ac_cache_corrupted=:
2605	else
2606	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2607printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2608	  eval $ac_var=\$ac_old_val
2609	fi
2610	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2611printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2613printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2614      fi;;
2615  esac
2616  # Pass precious variables to config.status.
2617  if test "$ac_new_set" = set; then
2618    case $ac_new_val in
2619    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2620    *) ac_arg=$ac_var=$ac_new_val ;;
2621    esac
2622    case " $ac_configure_args " in
2623      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2624      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2625    esac
2626  fi
2627done
2628if $ac_cache_corrupted; then
2629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2630printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2632printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2633  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2634	    and start over" "$LINENO" 5
2635fi
2636## -------------------- ##
2637## Main body of script. ##
2638## -------------------- ##
2639
2640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648ac_config_headers="$ac_config_headers config.h include/X11/Xcursor/Xcursor.h"
2649
2650
2651
2652# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2653# Must be called before any macros that run the compiler (like LT_INIT)
2654# to avoid autoconf errors.
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666# Expand $ac_aux_dir to an absolute path.
2667am_aux_dir=`cd "$ac_aux_dir" && pwd`
2668
2669ac_ext=c
2670ac_cpp='$CPP $CPPFLAGS'
2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674if test -n "$ac_tool_prefix"; then
2675  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678printf %s "checking for $ac_word... " >&6; }
2679if test ${ac_cv_prog_CC+y}
2680then :
2681  printf %s "(cached) " >&6
2682else case e in #(
2683  e) if test -n "$CC"; then
2684  ac_cv_prog_CC="$CC" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  case $as_dir in #(((
2691    '') as_dir=./ ;;
2692    */) ;;
2693    *) as_dir=$as_dir/ ;;
2694  esac
2695    for ac_exec_ext in '' $ac_executable_extensions; do
2696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2697    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2699    break 2
2700  fi
2701done
2702  done
2703IFS=$as_save_IFS
2704
2705fi ;;
2706esac
2707fi
2708CC=$ac_cv_prog_CC
2709if test -n "$CC"; then
2710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711printf "%s\n" "$CC" >&6; }
2712else
2713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714printf "%s\n" "no" >&6; }
2715fi
2716
2717
2718fi
2719if test -z "$ac_cv_prog_CC"; then
2720  ac_ct_CC=$CC
2721  # Extract the first word of "gcc", so it can be a program name with args.
2722set dummy gcc; ac_word=$2
2723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724printf %s "checking for $ac_word... " >&6; }
2725if test ${ac_cv_prog_ac_ct_CC+y}
2726then :
2727  printf %s "(cached) " >&6
2728else case e in #(
2729  e) if test -n "$ac_ct_CC"; then
2730  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735  IFS=$as_save_IFS
2736  case $as_dir in #(((
2737    '') as_dir=./ ;;
2738    */) ;;
2739    *) as_dir=$as_dir/ ;;
2740  esac
2741    for ac_exec_ext in '' $ac_executable_extensions; do
2742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2743    ac_cv_prog_ac_ct_CC="gcc"
2744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748  done
2749IFS=$as_save_IFS
2750
2751fi ;;
2752esac
2753fi
2754ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755if test -n "$ac_ct_CC"; then
2756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2757printf "%s\n" "$ac_ct_CC" >&6; }
2758else
2759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760printf "%s\n" "no" >&6; }
2761fi
2762
2763  if test "x$ac_ct_CC" = x; then
2764    CC=""
2765  else
2766    case $cross_compiling:$ac_tool_warned in
2767yes:)
2768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770ac_tool_warned=yes ;;
2771esac
2772    CC=$ac_ct_CC
2773  fi
2774else
2775  CC="$ac_cv_prog_CC"
2776fi
2777
2778if test -z "$CC"; then
2779          if test -n "$ac_tool_prefix"; then
2780    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781set dummy ${ac_tool_prefix}cc; ac_word=$2
2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783printf %s "checking for $ac_word... " >&6; }
2784if test ${ac_cv_prog_CC+y}
2785then :
2786  printf %s "(cached) " >&6
2787else case e in #(
2788  e) if test -n "$CC"; then
2789  ac_cv_prog_CC="$CC" # Let the user override the test.
2790else
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794  IFS=$as_save_IFS
2795  case $as_dir in #(((
2796    '') as_dir=./ ;;
2797    */) ;;
2798    *) as_dir=$as_dir/ ;;
2799  esac
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_CC="${ac_tool_prefix}cc"
2803    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi ;;
2811esac
2812fi
2813CC=$ac_cv_prog_CC
2814if test -n "$CC"; then
2815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816printf "%s\n" "$CC" >&6; }
2817else
2818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819printf "%s\n" "no" >&6; }
2820fi
2821
2822
2823  fi
2824fi
2825if test -z "$CC"; then
2826  # Extract the first word of "cc", so it can be a program name with args.
2827set dummy cc; ac_word=$2
2828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829printf %s "checking for $ac_word... " >&6; }
2830if test ${ac_cv_prog_CC+y}
2831then :
2832  printf %s "(cached) " >&6
2833else case e in #(
2834  e) if test -n "$CC"; then
2835  ac_cv_prog_CC="$CC" # Let the user override the test.
2836else
2837  ac_prog_rejected=no
2838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839for as_dir in $PATH
2840do
2841  IFS=$as_save_IFS
2842  case $as_dir in #(((
2843    '') as_dir=./ ;;
2844    */) ;;
2845    *) as_dir=$as_dir/ ;;
2846  esac
2847    for ac_exec_ext in '' $ac_executable_extensions; do
2848  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2849    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2850       ac_prog_rejected=yes
2851       continue
2852     fi
2853    ac_cv_prog_CC="cc"
2854    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858  done
2859IFS=$as_save_IFS
2860
2861if test $ac_prog_rejected = yes; then
2862  # We found a bogon in the path, so make sure we never use it.
2863  set dummy $ac_cv_prog_CC
2864  shift
2865  if test $# != 0; then
2866    # We chose a different compiler from the bogus one.
2867    # However, it has the same basename, so the bogon will be chosen
2868    # first if we set CC to just the basename; use the full file name.
2869    shift
2870    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2871  fi
2872fi
2873fi ;;
2874esac
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879printf "%s\n" "$CC" >&6; }
2880else
2881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882printf "%s\n" "no" >&6; }
2883fi
2884
2885
2886fi
2887if test -z "$CC"; then
2888  if test -n "$ac_tool_prefix"; then
2889  for ac_prog in cl.exe
2890  do
2891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894printf %s "checking for $ac_word... " >&6; }
2895if test ${ac_cv_prog_CC+y}
2896then :
2897  printf %s "(cached) " >&6
2898else case e in #(
2899  e) if test -n "$CC"; then
2900  ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  case $as_dir in #(((
2907    '') as_dir=./ ;;
2908    */) ;;
2909    *) as_dir=$as_dir/ ;;
2910  esac
2911    for ac_exec_ext in '' $ac_executable_extensions; do
2912  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2913    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2914    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2915    break 2
2916  fi
2917done
2918  done
2919IFS=$as_save_IFS
2920
2921fi ;;
2922esac
2923fi
2924CC=$ac_cv_prog_CC
2925if test -n "$CC"; then
2926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927printf "%s\n" "$CC" >&6; }
2928else
2929  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930printf "%s\n" "no" >&6; }
2931fi
2932
2933
2934    test -n "$CC" && break
2935  done
2936fi
2937if test -z "$CC"; then
2938  ac_ct_CC=$CC
2939  for ac_prog in cl.exe
2940do
2941  # Extract the first word of "$ac_prog", so it can be a program name with args.
2942set dummy $ac_prog; ac_word=$2
2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944printf %s "checking for $ac_word... " >&6; }
2945if test ${ac_cv_prog_ac_ct_CC+y}
2946then :
2947  printf %s "(cached) " >&6
2948else case e in #(
2949  e) if test -n "$ac_ct_CC"; then
2950  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  case $as_dir in #(((
2957    '') as_dir=./ ;;
2958    */) ;;
2959    *) as_dir=$as_dir/ ;;
2960  esac
2961    for ac_exec_ext in '' $ac_executable_extensions; do
2962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963    ac_cv_prog_ac_ct_CC="$ac_prog"
2964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965    break 2
2966  fi
2967done
2968  done
2969IFS=$as_save_IFS
2970
2971fi ;;
2972esac
2973fi
2974ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975if test -n "$ac_ct_CC"; then
2976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977printf "%s\n" "$ac_ct_CC" >&6; }
2978else
2979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980printf "%s\n" "no" >&6; }
2981fi
2982
2983
2984  test -n "$ac_ct_CC" && break
2985done
2986
2987  if test "x$ac_ct_CC" = x; then
2988    CC=""
2989  else
2990    case $cross_compiling:$ac_tool_warned in
2991yes:)
2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994ac_tool_warned=yes ;;
2995esac
2996    CC=$ac_ct_CC
2997  fi
2998fi
2999
3000fi
3001if test -z "$CC"; then
3002  if test -n "$ac_tool_prefix"; then
3003  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3004set dummy ${ac_tool_prefix}clang; ac_word=$2
3005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006printf %s "checking for $ac_word... " >&6; }
3007if test ${ac_cv_prog_CC+y}
3008then :
3009  printf %s "(cached) " >&6
3010else case e in #(
3011  e) if test -n "$CC"; then
3012  ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017  IFS=$as_save_IFS
3018  case $as_dir in #(((
3019    '') as_dir=./ ;;
3020    */) ;;
3021    *) as_dir=$as_dir/ ;;
3022  esac
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3025    ac_cv_prog_CC="${ac_tool_prefix}clang"
3026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033fi ;;
3034esac
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039printf "%s\n" "$CC" >&6; }
3040else
3041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042printf "%s\n" "no" >&6; }
3043fi
3044
3045
3046fi
3047if test -z "$ac_cv_prog_CC"; then
3048  ac_ct_CC=$CC
3049  # Extract the first word of "clang", so it can be a program name with args.
3050set dummy clang; ac_word=$2
3051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052printf %s "checking for $ac_word... " >&6; }
3053if test ${ac_cv_prog_ac_ct_CC+y}
3054then :
3055  printf %s "(cached) " >&6
3056else case e in #(
3057  e) if test -n "$ac_ct_CC"; then
3058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  case $as_dir in #(((
3065    '') as_dir=./ ;;
3066    */) ;;
3067    *) as_dir=$as_dir/ ;;
3068  esac
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_ac_ct_CC="clang"
3072    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi ;;
3080esac
3081fi
3082ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083if test -n "$ac_ct_CC"; then
3084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3085printf "%s\n" "$ac_ct_CC" >&6; }
3086else
3087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088printf "%s\n" "no" >&6; }
3089fi
3090
3091  if test "x$ac_ct_CC" = x; then
3092    CC=""
3093  else
3094    case $cross_compiling:$ac_tool_warned in
3095yes:)
3096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098ac_tool_warned=yes ;;
3099esac
3100    CC=$ac_ct_CC
3101  fi
3102else
3103  CC="$ac_cv_prog_CC"
3104fi
3105
3106fi
3107
3108
3109test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3110printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3111as_fn_error $? "no acceptable C compiler found in \$PATH
3112See 'config.log' for more details" "$LINENO" 5; }
3113
3114# Provide some information about the compiler.
3115printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3116set X $ac_compile
3117ac_compiler=$2
3118for ac_option in --version -v -V -qversion -version; do
3119  { { ac_try="$ac_compiler $ac_option >&5"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125printf "%s\n" "$ac_try_echo"; } >&5
3126  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3127  ac_status=$?
3128  if test -s conftest.err; then
3129    sed '10a\
3130... rest of stderr output deleted ...
3131         10q' conftest.err >conftest.er1
3132    cat conftest.er1 >&5
3133  fi
3134  rm -f conftest.er1 conftest.err
3135  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136  test $ac_status = 0; }
3137done
3138
3139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140/* end confdefs.h.  */
3141
3142int
3143main (void)
3144{
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150ac_clean_files_save=$ac_clean_files
3151ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3152# Try to create an executable without -o first, disregard a.out.
3153# It will help us diagnose broken compilers, and finding out an intuition
3154# of exeext.
3155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3156printf %s "checking whether the C compiler works... " >&6; }
3157ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3158
3159# The possible output files:
3160ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3161
3162ac_rmfiles=
3163for ac_file in $ac_files
3164do
3165  case $ac_file in
3166    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3167    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3168  esac
3169done
3170rm -f $ac_rmfiles
3171
3172if { { ac_try="$ac_link_default"
3173case "(($ac_try" in
3174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175  *) ac_try_echo=$ac_try;;
3176esac
3177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178printf "%s\n" "$ac_try_echo"; } >&5
3179  (eval "$ac_link_default") 2>&5
3180  ac_status=$?
3181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182  test $ac_status = 0; }
3183then :
3184  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3185# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3186# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3187# so that the user can short-circuit this test for compilers unknown to
3188# Autoconf.
3189for ac_file in $ac_files ''
3190do
3191  test -f "$ac_file" || continue
3192  case $ac_file in
3193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3194	;;
3195    [ab].out )
3196	# We found the default executable, but exeext='' is most
3197	# certainly right.
3198	break;;
3199    *.* )
3200	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3201	then :; else
3202	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203	fi
3204	# We set ac_cv_exeext here because the later test for it is not
3205	# safe: cross compilers may not add the suffix if given an '-o'
3206	# argument, so we may need to know it at that point already.
3207	# Even if this section looks crufty: it has the advantage of
3208	# actually working.
3209	break;;
3210    * )
3211	break;;
3212  esac
3213done
3214test "$ac_cv_exeext" = no && ac_cv_exeext=
3215
3216else case e in #(
3217  e) ac_file='' ;;
3218esac
3219fi
3220if test -z "$ac_file"
3221then :
3222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223printf "%s\n" "no" >&6; }
3224printf "%s\n" "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3228printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3229as_fn_error 77 "C compiler cannot create executables
3230See 'config.log' for more details" "$LINENO" 5; }
3231else case e in #(
3232  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233printf "%s\n" "yes" >&6; } ;;
3234esac
3235fi
3236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3237printf %s "checking for C compiler default output file name... " >&6; }
3238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3239printf "%s\n" "$ac_file" >&6; }
3240ac_exeext=$ac_cv_exeext
3241
3242rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3243ac_clean_files=$ac_clean_files_save
3244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3245printf %s "checking for suffix of executables... " >&6; }
3246if { { ac_try="$ac_link"
3247case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252printf "%s\n" "$ac_try_echo"; } >&5
3253  (eval "$ac_link") 2>&5
3254  ac_status=$?
3255  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256  test $ac_status = 0; }
3257then :
3258  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3259# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3260# work properly (i.e., refer to 'conftest.exe'), while it won't with
3261# 'rm'.
3262for ac_file in conftest.exe conftest conftest.*; do
3263  test -f "$ac_file" || continue
3264  case $ac_file in
3265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3266    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267	  break;;
3268    * ) break;;
3269  esac
3270done
3271else case e in #(
3272  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3273printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3274as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3275See 'config.log' for more details" "$LINENO" 5; } ;;
3276esac
3277fi
3278rm -f conftest conftest$ac_cv_exeext
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3280printf "%s\n" "$ac_cv_exeext" >&6; }
3281
3282rm -f conftest.$ac_ext
3283EXEEXT=$ac_cv_exeext
3284ac_exeext=$EXEEXT
3285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287#include <stdio.h>
3288int
3289main (void)
3290{
3291FILE *f = fopen ("conftest.out", "w");
3292 if (!f)
3293  return 1;
3294 return ferror (f) || fclose (f) != 0;
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300ac_clean_files="$ac_clean_files conftest.out"
3301# Check that the compiler produces executables we can run.  If not, either
3302# the compiler is broken, or we cross compile.
3303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3304printf %s "checking whether we are cross compiling... " >&6; }
3305if test "$cross_compiling" != yes; then
3306  { { ac_try="$ac_link"
3307case "(($ac_try" in
3308  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309  *) ac_try_echo=$ac_try;;
3310esac
3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312printf "%s\n" "$ac_try_echo"; } >&5
3313  (eval "$ac_link") 2>&5
3314  ac_status=$?
3315  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316  test $ac_status = 0; }
3317  if { ac_try='./conftest$ac_cv_exeext'
3318  { { case "(($ac_try" in
3319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320  *) ac_try_echo=$ac_try;;
3321esac
3322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323printf "%s\n" "$ac_try_echo"; } >&5
3324  (eval "$ac_try") 2>&5
3325  ac_status=$?
3326  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327  test $ac_status = 0; }; }; then
3328    cross_compiling=no
3329  else
3330    if test "$cross_compiling" = maybe; then
3331	cross_compiling=yes
3332    else
3333	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3334printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3335as_fn_error 77 "cannot run C compiled programs.
3336If you meant to cross compile, use '--host'.
3337See 'config.log' for more details" "$LINENO" 5; }
3338    fi
3339  fi
3340fi
3341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3342printf "%s\n" "$cross_compiling" >&6; }
3343
3344rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3345  conftest.o conftest.obj conftest.out
3346ac_clean_files=$ac_clean_files_save
3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3348printf %s "checking for suffix of object files... " >&6; }
3349if test ${ac_cv_objext+y}
3350then :
3351  printf %s "(cached) " >&6
3352else case e in #(
3353  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h.  */
3355
3356int
3357main (void)
3358{
3359
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364rm -f conftest.o conftest.obj
3365if { { ac_try="$ac_compile"
3366case "(($ac_try" in
3367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368  *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371printf "%s\n" "$ac_try_echo"; } >&5
3372  (eval "$ac_compile") 2>&5
3373  ac_status=$?
3374  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375  test $ac_status = 0; }
3376then :
3377  for ac_file in conftest.o conftest.obj conftest.*; do
3378  test -f "$ac_file" || continue;
3379  case $ac_file in
3380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3381    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3382       break;;
3383  esac
3384done
3385else case e in #(
3386  e) printf "%s\n" "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3390printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3391as_fn_error $? "cannot compute suffix of object files: cannot compile
3392See 'config.log' for more details" "$LINENO" 5; } ;;
3393esac
3394fi
3395rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3396esac
3397fi
3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399printf "%s\n" "$ac_cv_objext" >&6; }
3400OBJEXT=$ac_cv_objext
3401ac_objext=$OBJEXT
3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3403printf %s "checking whether the compiler supports GNU C... " >&6; }
3404if test ${ac_cv_c_compiler_gnu+y}
3405then :
3406  printf %s "(cached) " >&6
3407else case e in #(
3408  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409/* end confdefs.h.  */
3410
3411int
3412main (void)
3413{
3414#ifndef __GNUC__
3415       choke me
3416#endif
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422if ac_fn_c_try_compile "$LINENO"
3423then :
3424  ac_compiler_gnu=yes
3425else case e in #(
3426  e) ac_compiler_gnu=no ;;
3427esac
3428fi
3429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3430ac_cv_c_compiler_gnu=$ac_compiler_gnu
3431 ;;
3432esac
3433fi
3434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3435printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3436ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
3438if test $ac_compiler_gnu = yes; then
3439  GCC=yes
3440else
3441  GCC=
3442fi
3443ac_test_CFLAGS=${CFLAGS+y}
3444ac_save_CFLAGS=$CFLAGS
3445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3446printf %s "checking whether $CC accepts -g... " >&6; }
3447if test ${ac_cv_prog_cc_g+y}
3448then :
3449  printf %s "(cached) " >&6
3450else case e in #(
3451  e) ac_save_c_werror_flag=$ac_c_werror_flag
3452   ac_c_werror_flag=yes
3453   ac_cv_prog_cc_g=no
3454   CFLAGS="-g"
3455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h.  */
3457
3458int
3459main (void)
3460{
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466if ac_fn_c_try_compile "$LINENO"
3467then :
3468  ac_cv_prog_cc_g=yes
3469else case e in #(
3470  e) CFLAGS=""
3471      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473
3474int
3475main (void)
3476{
3477
3478  ;
3479  return 0;
3480}
3481_ACEOF
3482if ac_fn_c_try_compile "$LINENO"
3483then :
3484
3485else case e in #(
3486  e) ac_c_werror_flag=$ac_save_c_werror_flag
3487	 CFLAGS="-g"
3488	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489/* end confdefs.h.  */
3490
3491int
3492main (void)
3493{
3494
3495  ;
3496  return 0;
3497}
3498_ACEOF
3499if ac_fn_c_try_compile "$LINENO"
3500then :
3501  ac_cv_prog_cc_g=yes
3502fi
3503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3504esac
3505fi
3506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3507esac
3508fi
3509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3510   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3511esac
3512fi
3513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3514printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3515if test $ac_test_CFLAGS; then
3516  CFLAGS=$ac_save_CFLAGS
3517elif test $ac_cv_prog_cc_g = yes; then
3518  if test "$GCC" = yes; then
3519    CFLAGS="-g -O2"
3520  else
3521    CFLAGS="-g"
3522  fi
3523else
3524  if test "$GCC" = yes; then
3525    CFLAGS="-O2"
3526  else
3527    CFLAGS=
3528  fi
3529fi
3530ac_prog_cc_stdc=no
3531if test x$ac_prog_cc_stdc = xno
3532then :
3533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3534printf %s "checking for $CC option to enable C11 features... " >&6; }
3535if test ${ac_cv_prog_cc_c11+y}
3536then :
3537  printf %s "(cached) " >&6
3538else case e in #(
3539  e) ac_cv_prog_cc_c11=no
3540ac_save_CC=$CC
3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543$ac_c_conftest_c11_program
3544_ACEOF
3545for ac_arg in '' -std=gnu11
3546do
3547  CC="$ac_save_CC $ac_arg"
3548  if ac_fn_c_try_compile "$LINENO"
3549then :
3550  ac_cv_prog_cc_c11=$ac_arg
3551fi
3552rm -f core conftest.err conftest.$ac_objext conftest.beam
3553  test "x$ac_cv_prog_cc_c11" != "xno" && break
3554done
3555rm -f conftest.$ac_ext
3556CC=$ac_save_CC ;;
3557esac
3558fi
3559
3560if test "x$ac_cv_prog_cc_c11" = xno
3561then :
3562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3563printf "%s\n" "unsupported" >&6; }
3564else case e in #(
3565  e) if test "x$ac_cv_prog_cc_c11" = x
3566then :
3567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3568printf "%s\n" "none needed" >&6; }
3569else case e in #(
3570  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3571printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3572     CC="$CC $ac_cv_prog_cc_c11" ;;
3573esac
3574fi
3575  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3576  ac_prog_cc_stdc=c11 ;;
3577esac
3578fi
3579fi
3580if test x$ac_prog_cc_stdc = xno
3581then :
3582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3583printf %s "checking for $CC option to enable C99 features... " >&6; }
3584if test ${ac_cv_prog_cc_c99+y}
3585then :
3586  printf %s "(cached) " >&6
3587else case e in #(
3588  e) ac_cv_prog_cc_c99=no
3589ac_save_CC=$CC
3590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592$ac_c_conftest_c99_program
3593_ACEOF
3594for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3595do
3596  CC="$ac_save_CC $ac_arg"
3597  if ac_fn_c_try_compile "$LINENO"
3598then :
3599  ac_cv_prog_cc_c99=$ac_arg
3600fi
3601rm -f core conftest.err conftest.$ac_objext conftest.beam
3602  test "x$ac_cv_prog_cc_c99" != "xno" && break
3603done
3604rm -f conftest.$ac_ext
3605CC=$ac_save_CC ;;
3606esac
3607fi
3608
3609if test "x$ac_cv_prog_cc_c99" = xno
3610then :
3611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3612printf "%s\n" "unsupported" >&6; }
3613else case e in #(
3614  e) if test "x$ac_cv_prog_cc_c99" = x
3615then :
3616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3617printf "%s\n" "none needed" >&6; }
3618else case e in #(
3619  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3620printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3621     CC="$CC $ac_cv_prog_cc_c99" ;;
3622esac
3623fi
3624  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3625  ac_prog_cc_stdc=c99 ;;
3626esac
3627fi
3628fi
3629if test x$ac_prog_cc_stdc = xno
3630then :
3631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3632printf %s "checking for $CC option to enable C89 features... " >&6; }
3633if test ${ac_cv_prog_cc_c89+y}
3634then :
3635  printf %s "(cached) " >&6
3636else case e in #(
3637  e) ac_cv_prog_cc_c89=no
3638ac_save_CC=$CC
3639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641$ac_c_conftest_c89_program
3642_ACEOF
3643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3644do
3645  CC="$ac_save_CC $ac_arg"
3646  if ac_fn_c_try_compile "$LINENO"
3647then :
3648  ac_cv_prog_cc_c89=$ac_arg
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.beam
3651  test "x$ac_cv_prog_cc_c89" != "xno" && break
3652done
3653rm -f conftest.$ac_ext
3654CC=$ac_save_CC ;;
3655esac
3656fi
3657
3658if test "x$ac_cv_prog_cc_c89" = xno
3659then :
3660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661printf "%s\n" "unsupported" >&6; }
3662else case e in #(
3663  e) if test "x$ac_cv_prog_cc_c89" = x
3664then :
3665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3666printf "%s\n" "none needed" >&6; }
3667else case e in #(
3668  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3670     CC="$CC $ac_cv_prog_cc_c89" ;;
3671esac
3672fi
3673  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3674  ac_prog_cc_stdc=c89 ;;
3675esac
3676fi
3677fi
3678
3679ac_ext=c
3680ac_cpp='$CPP $CPPFLAGS'
3681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
3685
3686  ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3692printf %s "checking whether $CC understands -c and -o together... " >&6; }
3693if test ${am_cv_prog_cc_c_o+y}
3694then :
3695  printf %s "(cached) " >&6
3696else case e in #(
3697  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main (void)
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708  # Make sure it works both with $CC and with simple cc.
3709  # Following AC_PROG_CC_C_O, we do the test twice because some
3710  # compilers refuse to overwrite an existing .o file with -o,
3711  # though they will create one.
3712  am_cv_prog_cc_c_o=yes
3713  for am_i in 1 2; do
3714    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3715   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3716   ac_status=$?
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); } \
3719         && test -f conftest2.$ac_objext; then
3720      : OK
3721    else
3722      am_cv_prog_cc_c_o=no
3723      break
3724    fi
3725  done
3726  rm -f core conftest*
3727  unset am_i ;;
3728esac
3729fi
3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3731printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3732if test "$am_cv_prog_cc_c_o" != yes; then
3733   # Losing compiler, so override with the script.
3734   # FIXME: It is wrong to rewrite CC.
3735   # But if we don't then we get into trouble of one sort or another.
3736   # A longer-term fix would be to have automake use am__CC in this case,
3737   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3738   CC="$am_aux_dir/compile $CC"
3739fi
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747
3748ac_header= ac_cache=
3749for ac_item in $ac_header_c_list
3750do
3751  if test $ac_cache; then
3752    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3753    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3754      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3755    fi
3756    ac_header= ac_cache=
3757  elif test $ac_header; then
3758    ac_cache=$ac_item
3759  else
3760    ac_header=$ac_item
3761  fi
3762done
3763
3764
3765
3766
3767
3768
3769
3770
3771if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3772then :
3773
3774printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3775
3776fi
3777
3778
3779
3780
3781
3782
3783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3784printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3785if test ${ac_cv_safe_to_define___extensions__+y}
3786then :
3787  printf %s "(cached) " >&6
3788else case e in #(
3789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791
3792#         define __EXTENSIONS__ 1
3793          $ac_includes_default
3794int
3795main (void)
3796{
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802if ac_fn_c_try_compile "$LINENO"
3803then :
3804  ac_cv_safe_to_define___extensions__=yes
3805else case e in #(
3806  e) ac_cv_safe_to_define___extensions__=no ;;
3807esac
3808fi
3809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3810esac
3811fi
3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3813printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3814
3815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3816printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3817if test ${ac_cv_should_define__xopen_source+y}
3818then :
3819  printf %s "(cached) " >&6
3820else case e in #(
3821  e) ac_cv_should_define__xopen_source=no
3822    if test $ac_cv_header_wchar_h = yes
3823then :
3824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826
3827          #include <wchar.h>
3828          mbstate_t x;
3829int
3830main (void)
3831{
3832
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837if ac_fn_c_try_compile "$LINENO"
3838then :
3839
3840else case e in #(
3841  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843
3844            #define _XOPEN_SOURCE 500
3845            #include <wchar.h>
3846            mbstate_t x;
3847int
3848main (void)
3849{
3850
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855if ac_fn_c_try_compile "$LINENO"
3856then :
3857  ac_cv_should_define__xopen_source=yes
3858fi
3859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3860esac
3861fi
3862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3863fi ;;
3864esac
3865fi
3866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3867printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3868
3869  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3870
3871  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3872
3873  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3874
3875  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3876
3877  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3878
3879  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3880
3881  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3882
3883  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3884
3885  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3886
3887  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3888
3889  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3890
3891  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3892
3893  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3894
3895  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3896
3897  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3898
3899  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3900
3901  if test $ac_cv_header_minix_config_h = yes
3902then :
3903  MINIX=yes
3904    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3905
3906    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3907
3908    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3909
3910else case e in #(
3911  e) MINIX= ;;
3912esac
3913fi
3914  if test $ac_cv_safe_to_define___extensions__ = yes
3915then :
3916  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3917
3918fi
3919  if test $ac_cv_should_define__xopen_source = yes
3920then :
3921  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3922
3923fi
3924
3925
3926# Initialize Automake
3927am__api_version='1.16'
3928
3929
3930  # Find a good install program.  We prefer a C program (faster),
3931# so one script is as good as another.  But avoid the broken or
3932# incompatible versions:
3933# SysV /etc/install, /usr/sbin/install
3934# SunOS /usr/etc/install
3935# IRIX /sbin/install
3936# AIX /bin/install
3937# AmigaOS /C/install, which installs bootblocks on floppy discs
3938# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3939# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3940# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3941# OS/2's system install, which has a completely different semantic
3942# ./install, which can be erroneously created by make from ./install.sh.
3943# Reject install programs that cannot install multiple files.
3944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3945printf %s "checking for a BSD-compatible install... " >&6; }
3946if test -z "$INSTALL"; then
3947if test ${ac_cv_path_install+y}
3948then :
3949  printf %s "(cached) " >&6
3950else case e in #(
3951  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954  IFS=$as_save_IFS
3955  case $as_dir in #(((
3956    '') as_dir=./ ;;
3957    */) ;;
3958    *) as_dir=$as_dir/ ;;
3959  esac
3960    # Account for fact that we put trailing slashes in our PATH walk.
3961case $as_dir in #((
3962  ./ | /[cC]/* | \
3963  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3964  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3965  /usr/ucb/* ) ;;
3966  *)
3967    # OSF1 and SCO ODT 3.0 have their own names for install.
3968    # Don't use installbsd from OSF since it installs stuff as root
3969    # by default.
3970    for ac_prog in ginstall scoinst install; do
3971      for ac_exec_ext in '' $ac_executable_extensions; do
3972	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3973	  if test $ac_prog = install &&
3974	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3975	    # AIX install.  It has an incompatible calling convention.
3976	    :
3977	  elif test $ac_prog = install &&
3978	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3979	    # program-specific install script used by HP pwplus--don't use.
3980	    :
3981	  else
3982	    rm -rf conftest.one conftest.two conftest.dir
3983	    echo one > conftest.one
3984	    echo two > conftest.two
3985	    mkdir conftest.dir
3986	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3987	      test -s conftest.one && test -s conftest.two &&
3988	      test -s conftest.dir/conftest.one &&
3989	      test -s conftest.dir/conftest.two
3990	    then
3991	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3992	      break 3
3993	    fi
3994	  fi
3995	fi
3996      done
3997    done
3998    ;;
3999esac
4000
4001  done
4002IFS=$as_save_IFS
4003
4004rm -rf conftest.one conftest.two conftest.dir
4005 ;;
4006esac
4007fi
4008  if test ${ac_cv_path_install+y}; then
4009    INSTALL=$ac_cv_path_install
4010  else
4011    # As a last resort, use the slow shell script.  Don't cache a
4012    # value for INSTALL within a source directory, because that will
4013    # break other packages using the cache if that directory is
4014    # removed, or if the value is a relative name.
4015    INSTALL=$ac_install_sh
4016  fi
4017fi
4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4019printf "%s\n" "$INSTALL" >&6; }
4020
4021# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4022# It thinks the first close brace ends the variable substitution.
4023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4024
4025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4026
4027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4028
4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4030printf %s "checking whether build environment is sane... " >&6; }
4031# Reject unsafe characters in $srcdir or the absolute working directory
4032# name.  Accept space and tab only in the latter.
4033am_lf='
4034'
4035case `pwd` in
4036  *[\\\"\#\$\&\'\`$am_lf]*)
4037    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4038esac
4039case $srcdir in
4040  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4041    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4042esac
4043
4044# Do 'set' in a subshell so we don't clobber the current shell's
4045# arguments.  Must try -L first in case configure is actually a
4046# symlink; some systems play weird games with the mod time of symlinks
4047# (eg FreeBSD returns the mod time of the symlink's containing
4048# directory).
4049if (
4050   am_has_slept=no
4051   for am_try in 1 2; do
4052     echo "timestamp, slept: $am_has_slept" > conftest.file
4053     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4054     if test "$*" = "X"; then
4055	# -L didn't work.
4056	set X `ls -t "$srcdir/configure" conftest.file`
4057     fi
4058     if test "$*" != "X $srcdir/configure conftest.file" \
4059	&& test "$*" != "X conftest.file $srcdir/configure"; then
4060
4061	# If neither matched, then we have a broken ls.  This can happen
4062	# if, for instance, CONFIG_SHELL is bash and it inherits a
4063	# broken ls alias from the environment.  This has actually
4064	# happened.  Such a system could not be considered "sane".
4065	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4066  alias in your environment" "$LINENO" 5
4067     fi
4068     if test "$2" = conftest.file || test $am_try -eq 2; then
4069       break
4070     fi
4071     # Just in case.
4072     sleep 1
4073     am_has_slept=yes
4074   done
4075   test "$2" = conftest.file
4076   )
4077then
4078   # Ok.
4079   :
4080else
4081   as_fn_error $? "newly created file is older than distributed files!
4082Check your system clock" "$LINENO" 5
4083fi
4084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085printf "%s\n" "yes" >&6; }
4086# If we didn't sleep, we still need to ensure time stamps of config.status and
4087# generated files are strictly newer.
4088am_sleep_pid=
4089if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4090  ( sleep 1 ) &
4091  am_sleep_pid=$!
4092fi
4093
4094rm -f conftest.file
4095
4096test "$program_prefix" != NONE &&
4097  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4098# Use a double $ so make ignores it.
4099test "$program_suffix" != NONE &&
4100  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4101# Double any \ or $.
4102# By default was 's,x,x', remove it if useless.
4103ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4104program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4105
4106
4107  if test x"${MISSING+set}" != xset; then
4108  MISSING="\${SHELL} '$am_aux_dir/missing'"
4109fi
4110# Use eval to expand $SHELL
4111if eval "$MISSING --is-lightweight"; then
4112  am_missing_run="$MISSING "
4113else
4114  am_missing_run=
4115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4116printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4117fi
4118
4119if test x"${install_sh+set}" != xset; then
4120  case $am_aux_dir in
4121  *\ * | *\	*)
4122    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4123  *)
4124    install_sh="\${SHELL} $am_aux_dir/install-sh"
4125  esac
4126fi
4127
4128# Installed binaries are usually stripped using 'strip' when the user
4129# run "make install-strip".  However 'strip' might not be the right
4130# tool to use in cross-compilation environments, therefore Automake
4131# will honor the 'STRIP' environment variable to overrule this program.
4132if test "$cross_compiling" != no; then
4133  if test -n "$ac_tool_prefix"; then
4134  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4135set dummy ${ac_tool_prefix}strip; ac_word=$2
4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137printf %s "checking for $ac_word... " >&6; }
4138if test ${ac_cv_prog_STRIP+y}
4139then :
4140  printf %s "(cached) " >&6
4141else case e in #(
4142  e) if test -n "$STRIP"; then
4143  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4144else
4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH
4147do
4148  IFS=$as_save_IFS
4149  case $as_dir in #(((
4150    '') as_dir=./ ;;
4151    */) ;;
4152    *) as_dir=$as_dir/ ;;
4153  esac
4154    for ac_exec_ext in '' $ac_executable_extensions; do
4155  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4156    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4157    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4158    break 2
4159  fi
4160done
4161  done
4162IFS=$as_save_IFS
4163
4164fi ;;
4165esac
4166fi
4167STRIP=$ac_cv_prog_STRIP
4168if test -n "$STRIP"; then
4169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4170printf "%s\n" "$STRIP" >&6; }
4171else
4172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173printf "%s\n" "no" >&6; }
4174fi
4175
4176
4177fi
4178if test -z "$ac_cv_prog_STRIP"; then
4179  ac_ct_STRIP=$STRIP
4180  # Extract the first word of "strip", so it can be a program name with args.
4181set dummy strip; ac_word=$2
4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183printf %s "checking for $ac_word... " >&6; }
4184if test ${ac_cv_prog_ac_ct_STRIP+y}
4185then :
4186  printf %s "(cached) " >&6
4187else case e in #(
4188  e) if test -n "$ac_ct_STRIP"; then
4189  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4190else
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194  IFS=$as_save_IFS
4195  case $as_dir in #(((
4196    '') as_dir=./ ;;
4197    */) ;;
4198    *) as_dir=$as_dir/ ;;
4199  esac
4200    for ac_exec_ext in '' $ac_executable_extensions; do
4201  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202    ac_cv_prog_ac_ct_STRIP="strip"
4203    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204    break 2
4205  fi
4206done
4207  done
4208IFS=$as_save_IFS
4209
4210fi ;;
4211esac
4212fi
4213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4214if test -n "$ac_ct_STRIP"; then
4215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4216printf "%s\n" "$ac_ct_STRIP" >&6; }
4217else
4218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219printf "%s\n" "no" >&6; }
4220fi
4221
4222  if test "x$ac_ct_STRIP" = x; then
4223    STRIP=":"
4224  else
4225    case $cross_compiling:$ac_tool_warned in
4226yes:)
4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4228printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4229ac_tool_warned=yes ;;
4230esac
4231    STRIP=$ac_ct_STRIP
4232  fi
4233else
4234  STRIP="$ac_cv_prog_STRIP"
4235fi
4236
4237fi
4238INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4239
4240
4241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4242printf %s "checking for a race-free mkdir -p... " >&6; }
4243if test -z "$MKDIR_P"; then
4244  if test ${ac_cv_path_mkdir+y}
4245then :
4246  printf %s "(cached) " >&6
4247else case e in #(
4248  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4250do
4251  IFS=$as_save_IFS
4252  case $as_dir in #(((
4253    '') as_dir=./ ;;
4254    */) ;;
4255    *) as_dir=$as_dir/ ;;
4256  esac
4257    for ac_prog in mkdir gmkdir; do
4258	 for ac_exec_ext in '' $ac_executable_extensions; do
4259	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4260	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4261	     'mkdir ('*'coreutils) '* | \
4262	     *'BusyBox '* | \
4263	     'mkdir (fileutils) '4.1*)
4264	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4265	       break 3;;
4266	   esac
4267	 done
4268       done
4269  done
4270IFS=$as_save_IFS
4271 ;;
4272esac
4273fi
4274
4275  test -d ./--version && rmdir ./--version
4276  if test ${ac_cv_path_mkdir+y}; then
4277    MKDIR_P="$ac_cv_path_mkdir -p"
4278  else
4279    # As a last resort, use plain mkdir -p,
4280    # in the hope it doesn't have the bugs of ancient mkdir.
4281    MKDIR_P='mkdir -p'
4282  fi
4283fi
4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4285printf "%s\n" "$MKDIR_P" >&6; }
4286
4287for ac_prog in gawk mawk nawk awk
4288do
4289  # Extract the first word of "$ac_prog", so it can be a program name with args.
4290set dummy $ac_prog; ac_word=$2
4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292printf %s "checking for $ac_word... " >&6; }
4293if test ${ac_cv_prog_AWK+y}
4294then :
4295  printf %s "(cached) " >&6
4296else case e in #(
4297  e) if test -n "$AWK"; then
4298  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303  IFS=$as_save_IFS
4304  case $as_dir in #(((
4305    '') as_dir=./ ;;
4306    */) ;;
4307    *) as_dir=$as_dir/ ;;
4308  esac
4309    for ac_exec_ext in '' $ac_executable_extensions; do
4310  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4311    ac_cv_prog_AWK="$ac_prog"
4312    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4313    break 2
4314  fi
4315done
4316  done
4317IFS=$as_save_IFS
4318
4319fi ;;
4320esac
4321fi
4322AWK=$ac_cv_prog_AWK
4323if test -n "$AWK"; then
4324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4325printf "%s\n" "$AWK" >&6; }
4326else
4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328printf "%s\n" "no" >&6; }
4329fi
4330
4331
4332  test -n "$AWK" && break
4333done
4334
4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4336printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4337set x ${MAKE-make}
4338ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4339if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4340then :
4341  printf %s "(cached) " >&6
4342else case e in #(
4343  e) cat >conftest.make <<\_ACEOF
4344SHELL = /bin/sh
4345all:
4346	@echo '@@@%%%=$(MAKE)=@@@%%%'
4347_ACEOF
4348# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4349case `${MAKE-make} -f conftest.make 2>/dev/null` in
4350  *@@@%%%=?*=@@@%%%*)
4351    eval ac_cv_prog_make_${ac_make}_set=yes;;
4352  *)
4353    eval ac_cv_prog_make_${ac_make}_set=no;;
4354esac
4355rm -f conftest.make ;;
4356esac
4357fi
4358if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360printf "%s\n" "yes" >&6; }
4361  SET_MAKE=
4362else
4363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364printf "%s\n" "no" >&6; }
4365  SET_MAKE="MAKE=${MAKE-make}"
4366fi
4367
4368rm -rf .tst 2>/dev/null
4369mkdir .tst 2>/dev/null
4370if test -d .tst; then
4371  am__leading_dot=.
4372else
4373  am__leading_dot=_
4374fi
4375rmdir .tst 2>/dev/null
4376
4377DEPDIR="${am__leading_dot}deps"
4378
4379ac_config_commands="$ac_config_commands depfiles"
4380
4381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4382printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4383cat > confinc.mk << 'END'
4384am__doit:
4385	@echo this is the am__doit target >confinc.out
4386.PHONY: am__doit
4387END
4388am__include="#"
4389am__quote=
4390# BSD make does it like this.
4391echo '.include "confinc.mk" # ignored' > confmf.BSD
4392# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4393echo 'include confinc.mk # ignored' > confmf.GNU
4394_am_result=no
4395for s in GNU BSD; do
4396  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4397   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }
4401  case $?:`cat confinc.out 2>/dev/null` in #(
4402  '0:this is the am__doit target') :
4403    case $s in #(
4404  BSD) :
4405    am__include='.include' am__quote='"' ;; #(
4406  *) :
4407    am__include='include' am__quote='' ;;
4408esac ;; #(
4409  *) :
4410     ;;
4411esac
4412  if test "$am__include" != "#"; then
4413    _am_result="yes ($s style)"
4414    break
4415  fi
4416done
4417rm -f confinc.* confmf.*
4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4419printf "%s\n" "${_am_result}" >&6; }
4420
4421# Check whether --enable-dependency-tracking was given.
4422if test ${enable_dependency_tracking+y}
4423then :
4424  enableval=$enable_dependency_tracking;
4425fi
4426
4427if test "x$enable_dependency_tracking" != xno; then
4428  am_depcomp="$ac_aux_dir/depcomp"
4429  AMDEPBACKSLASH='\'
4430  am__nodep='_no'
4431fi
4432 if test "x$enable_dependency_tracking" != xno; then
4433  AMDEP_TRUE=
4434  AMDEP_FALSE='#'
4435else
4436  AMDEP_TRUE='#'
4437  AMDEP_FALSE=
4438fi
4439
4440
4441# Check whether --enable-silent-rules was given.
4442if test ${enable_silent_rules+y}
4443then :
4444  enableval=$enable_silent_rules;
4445fi
4446
4447case $enable_silent_rules in # (((
4448  yes) AM_DEFAULT_VERBOSITY=0;;
4449   no) AM_DEFAULT_VERBOSITY=1;;
4450    *) AM_DEFAULT_VERBOSITY=1;;
4451esac
4452am_make=${MAKE-make}
4453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4454printf %s "checking whether $am_make supports nested variables... " >&6; }
4455if test ${am_cv_make_support_nested_variables+y}
4456then :
4457  printf %s "(cached) " >&6
4458else case e in #(
4459  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4460BAR0=false
4461BAR1=true
4462V=1
4463am__doit:
4464	@$(TRUE)
4465.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4466  am_cv_make_support_nested_variables=yes
4467else
4468  am_cv_make_support_nested_variables=no
4469fi ;;
4470esac
4471fi
4472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4473printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4474if test $am_cv_make_support_nested_variables = yes; then
4475    AM_V='$(V)'
4476  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4477else
4478  AM_V=$AM_DEFAULT_VERBOSITY
4479  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4480fi
4481AM_BACKSLASH='\'
4482
4483if test "`cd $srcdir && pwd`" != "`pwd`"; then
4484  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4485  # is not polluted with repeated "-I."
4486  am__isrc=' -I$(srcdir)'
4487  # test to see if srcdir already configured
4488  if test -f $srcdir/config.status; then
4489    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4490  fi
4491fi
4492
4493# test whether we have cygpath
4494if test -z "$CYGPATH_W"; then
4495  if (cygpath --version) >/dev/null 2>/dev/null; then
4496    CYGPATH_W='cygpath -w'
4497  else
4498    CYGPATH_W=echo
4499  fi
4500fi
4501
4502
4503# Define the identity of the package.
4504 PACKAGE='libXcursor'
4505 VERSION='1.2.2'
4506
4507
4508printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4509
4510
4511printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4512
4513# Some tools Automake needs.
4514
4515ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4516
4517
4518AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4519
4520
4521AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4522
4523
4524AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4525
4526
4527MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4528
4529# For better backward compatibility.  To be removed once Automake 1.9.x
4530# dies out for good.  For more background, see:
4531# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4532# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4533mkdir_p='$(MKDIR_P)'
4534
4535# We need awk for the "check" target (and possibly the TAP driver).  The
4536# system "awk" is bad on some platforms.
4537# Always define AMTAR for backward compatibility.  Yes, it's still used
4538# in the wild :-(  We should find a proper way to deprecate it ...
4539AMTAR='$${TAR-tar}'
4540
4541
4542# We'll loop over all known methods to create a tar archive until one works.
4543_am_tools='gnutar  pax cpio none'
4544
4545am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4546
4547
4548
4549
4550
4551depcc="$CC"   am_compiler_list=
4552
4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4554printf %s "checking dependency style of $depcc... " >&6; }
4555if test ${am_cv_CC_dependencies_compiler_type+y}
4556then :
4557  printf %s "(cached) " >&6
4558else case e in #(
4559  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4560  # We make a subdir and do the tests there.  Otherwise we can end up
4561  # making bogus files that we don't know about and never remove.  For
4562  # instance it was reported that on HP-UX the gcc test will end up
4563  # making a dummy file named 'D' -- because '-MD' means "put the output
4564  # in D".
4565  rm -rf conftest.dir
4566  mkdir conftest.dir
4567  # Copy depcomp to subdir because otherwise we won't find it if we're
4568  # using a relative directory.
4569  cp "$am_depcomp" conftest.dir
4570  cd conftest.dir
4571  # We will build objects and dependencies in a subdirectory because
4572  # it helps to detect inapplicable dependency modes.  For instance
4573  # both Tru64's cc and ICC support -MD to output dependencies as a
4574  # side effect of compilation, but ICC will put the dependencies in
4575  # the current directory while Tru64 will put them in the object
4576  # directory.
4577  mkdir sub
4578
4579  am_cv_CC_dependencies_compiler_type=none
4580  if test "$am_compiler_list" = ""; then
4581     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4582  fi
4583  am__universal=false
4584  case " $depcc " in #(
4585     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4586     esac
4587
4588  for depmode in $am_compiler_list; do
4589    # Setup a source with many dependencies, because some compilers
4590    # like to wrap large dependency lists on column 80 (with \), and
4591    # we should not choose a depcomp mode which is confused by this.
4592    #
4593    # We need to recreate these files for each test, as the compiler may
4594    # overwrite some of them when testing with obscure command lines.
4595    # This happens at least with the AIX C compiler.
4596    : > sub/conftest.c
4597    for i in 1 2 3 4 5 6; do
4598      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4599      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4600      # Solaris 10 /bin/sh.
4601      echo '/* dummy */' > sub/conftst$i.h
4602    done
4603    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4604
4605    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4606    # mode.  It turns out that the SunPro C++ compiler does not properly
4607    # handle '-M -o', and we need to detect this.  Also, some Intel
4608    # versions had trouble with output in subdirs.
4609    am__obj=sub/conftest.${OBJEXT-o}
4610    am__minus_obj="-o $am__obj"
4611    case $depmode in
4612    gcc)
4613      # This depmode causes a compiler race in universal mode.
4614      test "$am__universal" = false || continue
4615      ;;
4616    nosideeffect)
4617      # After this tag, mechanisms are not by side-effect, so they'll
4618      # only be used when explicitly requested.
4619      if test "x$enable_dependency_tracking" = xyes; then
4620	continue
4621      else
4622	break
4623      fi
4624      ;;
4625    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4626      # This compiler won't grok '-c -o', but also, the minuso test has
4627      # not run yet.  These depmodes are late enough in the game, and
4628      # so weak that their functioning should not be impacted.
4629      am__obj=conftest.${OBJEXT-o}
4630      am__minus_obj=
4631      ;;
4632    none) break ;;
4633    esac
4634    if depmode=$depmode \
4635       source=sub/conftest.c object=$am__obj \
4636       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4637       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4638         >/dev/null 2>conftest.err &&
4639       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4640       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4641       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4642       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4643      # icc doesn't choke on unknown options, it will just issue warnings
4644      # or remarks (even with -Werror).  So we grep stderr for any message
4645      # that says an option was ignored or not supported.
4646      # When given -MP, icc 7.0 and 7.1 complain thusly:
4647      #   icc: Command line warning: ignoring option '-M'; no argument required
4648      # The diagnosis changed in icc 8.0:
4649      #   icc: Command line remark: option '-MP' not supported
4650      if (grep 'ignoring option' conftest.err ||
4651          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4652        am_cv_CC_dependencies_compiler_type=$depmode
4653        break
4654      fi
4655    fi
4656  done
4657
4658  cd ..
4659  rm -rf conftest.dir
4660else
4661  am_cv_CC_dependencies_compiler_type=none
4662fi
4663 ;;
4664esac
4665fi
4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4667printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4668CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4669
4670 if
4671  test "x$enable_dependency_tracking" != xno \
4672  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4673  am__fastdepCC_TRUE=
4674  am__fastdepCC_FALSE='#'
4675else
4676  am__fastdepCC_TRUE='#'
4677  am__fastdepCC_FALSE=
4678fi
4679
4680
4681# Variables for tags utilities; see am/tags.am
4682if test -z "$CTAGS"; then
4683  CTAGS=ctags
4684fi
4685
4686if test -z "$ETAGS"; then
4687  ETAGS=etags
4688fi
4689
4690if test -z "$CSCOPE"; then
4691  CSCOPE=cscope
4692fi
4693
4694
4695
4696# POSIX will say in a future version that running "rm -f" with no argument
4697# is OK; and we want to be able to make that assumption in our Makefile
4698# recipes.  So use an aggressive probe to check that the usage we want is
4699# actually supported "in the wild" to an acceptable degree.
4700# See automake bug#10828.
4701# To make any issue more visible, cause the running configure to be aborted
4702# by default if the 'rm' program in use doesn't match our expectations; the
4703# user can still override this though.
4704if rm -f && rm -fr && rm -rf; then : OK; else
4705  cat >&2 <<'END'
4706Oops!
4707
4708Your 'rm' program seems unable to run without file operands specified
4709on the command line, even when the '-f' option is present.  This is contrary
4710to the behaviour of most rm programs out there, and not conforming with
4711the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4712
4713Please tell bug-automake@gnu.org about your system, including the value
4714of your $PATH and any error possibly output before this message.  This
4715can help us improve future automake versions.
4716
4717END
4718  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4719    echo 'Configuration will proceed anyway, since you have set the' >&2
4720    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4721    echo >&2
4722  else
4723    cat >&2 <<'END'
4724Aborting the configuration process, to ensure you take notice of the issue.
4725
4726You can download and install GNU coreutils to get an 'rm' implementation
4727that behaves properly: <https://www.gnu.org/software/coreutils/>.
4728
4729If you want to complete the configuration process using your problematic
4730'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4731to "yes", and re-run configure.
4732
4733END
4734    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4735  fi
4736fi
4737
4738
4739# Initialize libtool
4740case `pwd` in
4741  *\ * | *\	*)
4742    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4743printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4744esac
4745
4746
4747
4748macro_version='2.4.7'
4749macro_revision='2.4.7'
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764ltmain=$ac_aux_dir/ltmain.sh
4765
4766
4767
4768  # Make sure we can run config.sub.
4769$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4770  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4771
4772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4773printf %s "checking build system type... " >&6; }
4774if test ${ac_cv_build+y}
4775then :
4776  printf %s "(cached) " >&6
4777else case e in #(
4778  e) ac_build_alias=$build_alias
4779test "x$ac_build_alias" = x &&
4780  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4781test "x$ac_build_alias" = x &&
4782  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4783ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4784  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4785 ;;
4786esac
4787fi
4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4789printf "%s\n" "$ac_cv_build" >&6; }
4790case $ac_cv_build in
4791*-*-*) ;;
4792*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4793esac
4794build=$ac_cv_build
4795ac_save_IFS=$IFS; IFS='-'
4796set x $ac_cv_build
4797shift
4798build_cpu=$1
4799build_vendor=$2
4800shift; shift
4801# Remember, the first character of IFS is used to create $*,
4802# except with old shells:
4803build_os=$*
4804IFS=$ac_save_IFS
4805case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4806
4807
4808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4809printf %s "checking host system type... " >&6; }
4810if test ${ac_cv_host+y}
4811then :
4812  printf %s "(cached) " >&6
4813else case e in #(
4814  e) if test "x$host_alias" = x; then
4815  ac_cv_host=$ac_cv_build
4816else
4817  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4818    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4819fi
4820 ;;
4821esac
4822fi
4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4824printf "%s\n" "$ac_cv_host" >&6; }
4825case $ac_cv_host in
4826*-*-*) ;;
4827*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4828esac
4829host=$ac_cv_host
4830ac_save_IFS=$IFS; IFS='-'
4831set x $ac_cv_host
4832shift
4833host_cpu=$1
4834host_vendor=$2
4835shift; shift
4836# Remember, the first character of IFS is used to create $*,
4837# except with old shells:
4838host_os=$*
4839IFS=$ac_save_IFS
4840case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4841
4842
4843# Backslashify metacharacters that are still active within
4844# double-quoted strings.
4845sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4846
4847# Same as above, but do not quote variable references.
4848double_quote_subst='s/\(["`\\]\)/\\\1/g'
4849
4850# Sed substitution to delay expansion of an escaped shell variable in a
4851# double_quote_subst'ed string.
4852delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4853
4854# Sed substitution to delay expansion of an escaped single quote.
4855delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4856
4857# Sed substitution to avoid accidental globbing in evaled expressions
4858no_glob_subst='s/\*/\\\*/g'
4859
4860ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4861ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4862ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4863
4864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4865printf %s "checking how to print strings... " >&6; }
4866# Test print first, because it will be a builtin if present.
4867if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4868   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4869  ECHO='print -r --'
4870elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4871  ECHO='printf %s\n'
4872else
4873  # Use this function as a fallback that always works.
4874  func_fallback_echo ()
4875  {
4876    eval 'cat <<_LTECHO_EOF
4877$1
4878_LTECHO_EOF'
4879  }
4880  ECHO='func_fallback_echo'
4881fi
4882
4883# func_echo_all arg...
4884# Invoke $ECHO with all args, space-separated.
4885func_echo_all ()
4886{
4887    $ECHO ""
4888}
4889
4890case $ECHO in
4891  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4892printf "%s\n" "printf" >&6; } ;;
4893  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4894printf "%s\n" "print -r" >&6; } ;;
4895  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4896printf "%s\n" "cat" >&6; } ;;
4897esac
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4913printf %s "checking for a sed that does not truncate output... " >&6; }
4914if test ${ac_cv_path_SED+y}
4915then :
4916  printf %s "(cached) " >&6
4917else case e in #(
4918  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4919     for ac_i in 1 2 3 4 5 6 7; do
4920       ac_script="$ac_script$as_nl$ac_script"
4921     done
4922     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4923     { ac_script=; unset ac_script;}
4924     if test -z "$SED"; then
4925  ac_path_SED_found=false
4926  # Loop through the user's path and test for each of PROGNAME-LIST
4927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930  IFS=$as_save_IFS
4931  case $as_dir in #(((
4932    '') as_dir=./ ;;
4933    */) ;;
4934    *) as_dir=$as_dir/ ;;
4935  esac
4936    for ac_prog in sed gsed
4937   do
4938    for ac_exec_ext in '' $ac_executable_extensions; do
4939      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4940      as_fn_executable_p "$ac_path_SED" || continue
4941# Check for GNU ac_path_SED and select it if it is found.
4942  # Check for GNU $ac_path_SED
4943case `"$ac_path_SED" --version 2>&1` in #(
4944*GNU*)
4945  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4946#(
4947*)
4948  ac_count=0
4949  printf %s 0123456789 >"conftest.in"
4950  while :
4951  do
4952    cat "conftest.in" "conftest.in" >"conftest.tmp"
4953    mv "conftest.tmp" "conftest.in"
4954    cp "conftest.in" "conftest.nl"
4955    printf "%s\n" '' >> "conftest.nl"
4956    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958    as_fn_arith $ac_count + 1 && ac_count=$as_val
4959    if test $ac_count -gt ${ac_path_SED_max-0}; then
4960      # Best one so far, save it but keep looking for a better one
4961      ac_cv_path_SED="$ac_path_SED"
4962      ac_path_SED_max=$ac_count
4963    fi
4964    # 10*(2^10) chars as input seems more than enough
4965    test $ac_count -gt 10 && break
4966  done
4967  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968esac
4969
4970      $ac_path_SED_found && break 3
4971    done
4972  done
4973  done
4974IFS=$as_save_IFS
4975  if test -z "$ac_cv_path_SED"; then
4976    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4977  fi
4978else
4979  ac_cv_path_SED=$SED
4980fi
4981 ;;
4982esac
4983fi
4984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4985printf "%s\n" "$ac_cv_path_SED" >&6; }
4986 SED="$ac_cv_path_SED"
4987  rm -f conftest.sed
4988
4989test -z "$SED" && SED=sed
4990Xsed="$SED -e 1s/^X//"
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5003printf %s "checking for grep that handles long lines and -e... " >&6; }
5004if test ${ac_cv_path_GREP+y}
5005then :
5006  printf %s "(cached) " >&6
5007else case e in #(
5008  e) if test -z "$GREP"; then
5009  ac_path_GREP_found=false
5010  # Loop through the user's path and test for each of PROGNAME-LIST
5011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013do
5014  IFS=$as_save_IFS
5015  case $as_dir in #(((
5016    '') as_dir=./ ;;
5017    */) ;;
5018    *) as_dir=$as_dir/ ;;
5019  esac
5020    for ac_prog in grep ggrep
5021   do
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5024      as_fn_executable_p "$ac_path_GREP" || continue
5025# Check for GNU ac_path_GREP and select it if it is found.
5026  # Check for GNU $ac_path_GREP
5027case `"$ac_path_GREP" --version 2>&1` in #(
5028*GNU*)
5029  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5030#(
5031*)
5032  ac_count=0
5033  printf %s 0123456789 >"conftest.in"
5034  while :
5035  do
5036    cat "conftest.in" "conftest.in" >"conftest.tmp"
5037    mv "conftest.tmp" "conftest.in"
5038    cp "conftest.in" "conftest.nl"
5039    printf "%s\n" 'GREP' >> "conftest.nl"
5040    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5041    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5042    as_fn_arith $ac_count + 1 && ac_count=$as_val
5043    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5044      # Best one so far, save it but keep looking for a better one
5045      ac_cv_path_GREP="$ac_path_GREP"
5046      ac_path_GREP_max=$ac_count
5047    fi
5048    # 10*(2^10) chars as input seems more than enough
5049    test $ac_count -gt 10 && break
5050  done
5051  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052esac
5053
5054      $ac_path_GREP_found && break 3
5055    done
5056  done
5057  done
5058IFS=$as_save_IFS
5059  if test -z "$ac_cv_path_GREP"; then
5060    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5061  fi
5062else
5063  ac_cv_path_GREP=$GREP
5064fi
5065 ;;
5066esac
5067fi
5068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5069printf "%s\n" "$ac_cv_path_GREP" >&6; }
5070 GREP="$ac_cv_path_GREP"
5071
5072
5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5074printf %s "checking for egrep... " >&6; }
5075if test ${ac_cv_path_EGREP+y}
5076then :
5077  printf %s "(cached) " >&6
5078else case e in #(
5079  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5080   then ac_cv_path_EGREP="$GREP -E"
5081   else
5082     if test -z "$EGREP"; then
5083  ac_path_EGREP_found=false
5084  # Loop through the user's path and test for each of PROGNAME-LIST
5085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087do
5088  IFS=$as_save_IFS
5089  case $as_dir in #(((
5090    '') as_dir=./ ;;
5091    */) ;;
5092    *) as_dir=$as_dir/ ;;
5093  esac
5094    for ac_prog in egrep
5095   do
5096    for ac_exec_ext in '' $ac_executable_extensions; do
5097      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5098      as_fn_executable_p "$ac_path_EGREP" || continue
5099# Check for GNU ac_path_EGREP and select it if it is found.
5100  # Check for GNU $ac_path_EGREP
5101case `"$ac_path_EGREP" --version 2>&1` in #(
5102*GNU*)
5103  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5104#(
5105*)
5106  ac_count=0
5107  printf %s 0123456789 >"conftest.in"
5108  while :
5109  do
5110    cat "conftest.in" "conftest.in" >"conftest.tmp"
5111    mv "conftest.tmp" "conftest.in"
5112    cp "conftest.in" "conftest.nl"
5113    printf "%s\n" 'EGREP' >> "conftest.nl"
5114    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116    as_fn_arith $ac_count + 1 && ac_count=$as_val
5117    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5118      # Best one so far, save it but keep looking for a better one
5119      ac_cv_path_EGREP="$ac_path_EGREP"
5120      ac_path_EGREP_max=$ac_count
5121    fi
5122    # 10*(2^10) chars as input seems more than enough
5123    test $ac_count -gt 10 && break
5124  done
5125  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126esac
5127
5128      $ac_path_EGREP_found && break 3
5129    done
5130  done
5131  done
5132IFS=$as_save_IFS
5133  if test -z "$ac_cv_path_EGREP"; then
5134    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5135  fi
5136else
5137  ac_cv_path_EGREP=$EGREP
5138fi
5139
5140   fi ;;
5141esac
5142fi
5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5144printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5145 EGREP="$ac_cv_path_EGREP"
5146
5147         EGREP_TRADITIONAL=$EGREP
5148 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5149
5150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5151printf %s "checking for fgrep... " >&6; }
5152if test ${ac_cv_path_FGREP+y}
5153then :
5154  printf %s "(cached) " >&6
5155else case e in #(
5156  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5157   then ac_cv_path_FGREP="$GREP -F"
5158   else
5159     if test -z "$FGREP"; then
5160  ac_path_FGREP_found=false
5161  # Loop through the user's path and test for each of PROGNAME-LIST
5162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164do
5165  IFS=$as_save_IFS
5166  case $as_dir in #(((
5167    '') as_dir=./ ;;
5168    */) ;;
5169    *) as_dir=$as_dir/ ;;
5170  esac
5171    for ac_prog in fgrep
5172   do
5173    for ac_exec_ext in '' $ac_executable_extensions; do
5174      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5175      as_fn_executable_p "$ac_path_FGREP" || continue
5176# Check for GNU ac_path_FGREP and select it if it is found.
5177  # Check for GNU $ac_path_FGREP
5178case `"$ac_path_FGREP" --version 2>&1` in #(
5179*GNU*)
5180  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5181#(
5182*)
5183  ac_count=0
5184  printf %s 0123456789 >"conftest.in"
5185  while :
5186  do
5187    cat "conftest.in" "conftest.in" >"conftest.tmp"
5188    mv "conftest.tmp" "conftest.in"
5189    cp "conftest.in" "conftest.nl"
5190    printf "%s\n" 'FGREP' >> "conftest.nl"
5191    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5192    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5193    as_fn_arith $ac_count + 1 && ac_count=$as_val
5194    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5195      # Best one so far, save it but keep looking for a better one
5196      ac_cv_path_FGREP="$ac_path_FGREP"
5197      ac_path_FGREP_max=$ac_count
5198    fi
5199    # 10*(2^10) chars as input seems more than enough
5200    test $ac_count -gt 10 && break
5201  done
5202  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5203esac
5204
5205      $ac_path_FGREP_found && break 3
5206    done
5207  done
5208  done
5209IFS=$as_save_IFS
5210  if test -z "$ac_cv_path_FGREP"; then
5211    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5212  fi
5213else
5214  ac_cv_path_FGREP=$FGREP
5215fi
5216
5217   fi ;;
5218esac
5219fi
5220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5221printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5222 FGREP="$ac_cv_path_FGREP"
5223
5224
5225test -z "$GREP" && GREP=grep
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245# Check whether --with-gnu-ld was given.
5246if test ${with_gnu_ld+y}
5247then :
5248  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5249else case e in #(
5250  e) with_gnu_ld=no ;;
5251esac
5252fi
5253
5254ac_prog=ld
5255if test yes = "$GCC"; then
5256  # Check if gcc -print-prog-name=ld gives a path.
5257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5258printf %s "checking for ld used by $CC... " >&6; }
5259  case $host in
5260  *-*-mingw*)
5261    # gcc leaves a trailing carriage return, which upsets mingw
5262    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5263  *)
5264    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265  esac
5266  case $ac_prog in
5267    # Accept absolute paths.
5268    [\\/]* | ?:[\\/]*)
5269      re_direlt='/[^/][^/]*/\.\./'
5270      # Canonicalize the pathname of ld
5271      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5274      done
5275      test -z "$LD" && LD=$ac_prog
5276      ;;
5277  "")
5278    # If it fails, then pretend we aren't using GCC.
5279    ac_prog=ld
5280    ;;
5281  *)
5282    # If it is relative, then search for the first ld in PATH.
5283    with_gnu_ld=unknown
5284    ;;
5285  esac
5286elif test yes = "$with_gnu_ld"; then
5287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5288printf %s "checking for GNU ld... " >&6; }
5289else
5290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5291printf %s "checking for non-GNU ld... " >&6; }
5292fi
5293if test ${lt_cv_path_LD+y}
5294then :
5295  printf %s "(cached) " >&6
5296else case e in #(
5297  e) if test -z "$LD"; then
5298  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5299  for ac_dir in $PATH; do
5300    IFS=$lt_save_ifs
5301    test -z "$ac_dir" && ac_dir=.
5302    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5303      lt_cv_path_LD=$ac_dir/$ac_prog
5304      # Check to see if the program is GNU ld.  I'd rather use --version,
5305      # but apparently some variants of GNU ld only accept -v.
5306      # Break only if it was the GNU/non-GNU ld that we prefer.
5307      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5308      *GNU* | *'with BFD'*)
5309	test no != "$with_gnu_ld" && break
5310	;;
5311      *)
5312	test yes != "$with_gnu_ld" && break
5313	;;
5314      esac
5315    fi
5316  done
5317  IFS=$lt_save_ifs
5318else
5319  lt_cv_path_LD=$LD # Let the user override the test with a path.
5320fi ;;
5321esac
5322fi
5323
5324LD=$lt_cv_path_LD
5325if test -n "$LD"; then
5326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5327printf "%s\n" "$LD" >&6; }
5328else
5329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330printf "%s\n" "no" >&6; }
5331fi
5332test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5334printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5335if test ${lt_cv_prog_gnu_ld+y}
5336then :
5337  printf %s "(cached) " >&6
5338else case e in #(
5339  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5340case `$LD -v 2>&1 </dev/null` in
5341*GNU* | *'with BFD'*)
5342  lt_cv_prog_gnu_ld=yes
5343  ;;
5344*)
5345  lt_cv_prog_gnu_ld=no
5346  ;;
5347esac ;;
5348esac
5349fi
5350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5351printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5352with_gnu_ld=$lt_cv_prog_gnu_ld
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5363printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5364if test ${lt_cv_path_NM+y}
5365then :
5366  printf %s "(cached) " >&6
5367else case e in #(
5368  e) if test -n "$NM"; then
5369  # Let the user override the test.
5370  lt_cv_path_NM=$NM
5371else
5372  lt_nm_to_check=${ac_tool_prefix}nm
5373  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5374    lt_nm_to_check="$lt_nm_to_check nm"
5375  fi
5376  for lt_tmp_nm in $lt_nm_to_check; do
5377    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5378    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5379      IFS=$lt_save_ifs
5380      test -z "$ac_dir" && ac_dir=.
5381      tmp_nm=$ac_dir/$lt_tmp_nm
5382      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5383	# Check to see if the nm accepts a BSD-compat flag.
5384	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5385	#   nm: unknown option "B" ignored
5386	# Tru64's nm complains that /dev/null is an invalid object file
5387	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5388	case $build_os in
5389	mingw*) lt_bad_file=conftest.nm/nofile ;;
5390	*) lt_bad_file=/dev/null ;;
5391	esac
5392	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5393	*$lt_bad_file* | *'Invalid file or object type'*)
5394	  lt_cv_path_NM="$tmp_nm -B"
5395	  break 2
5396	  ;;
5397	*)
5398	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5399	  */dev/null*)
5400	    lt_cv_path_NM="$tmp_nm -p"
5401	    break 2
5402	    ;;
5403	  *)
5404	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5405	    continue # so that we can try to find one that supports BSD flags
5406	    ;;
5407	  esac
5408	  ;;
5409	esac
5410      fi
5411    done
5412    IFS=$lt_save_ifs
5413  done
5414  : ${lt_cv_path_NM=no}
5415fi ;;
5416esac
5417fi
5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5419printf "%s\n" "$lt_cv_path_NM" >&6; }
5420if test no != "$lt_cv_path_NM"; then
5421  NM=$lt_cv_path_NM
5422else
5423  # Didn't find any BSD compatible name lister, look for dumpbin.
5424  if test -n "$DUMPBIN"; then :
5425    # Let the user override the test.
5426  else
5427    if test -n "$ac_tool_prefix"; then
5428  for ac_prog in dumpbin "link -dump"
5429  do
5430    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5431set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433printf %s "checking for $ac_word... " >&6; }
5434if test ${ac_cv_prog_DUMPBIN+y}
5435then :
5436  printf %s "(cached) " >&6
5437else case e in #(
5438  e) if test -n "$DUMPBIN"; then
5439  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444  IFS=$as_save_IFS
5445  case $as_dir in #(((
5446    '') as_dir=./ ;;
5447    */) ;;
5448    *) as_dir=$as_dir/ ;;
5449  esac
5450    for ac_exec_ext in '' $ac_executable_extensions; do
5451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5452    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5454    break 2
5455  fi
5456done
5457  done
5458IFS=$as_save_IFS
5459
5460fi ;;
5461esac
5462fi
5463DUMPBIN=$ac_cv_prog_DUMPBIN
5464if test -n "$DUMPBIN"; then
5465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5466printf "%s\n" "$DUMPBIN" >&6; }
5467else
5468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469printf "%s\n" "no" >&6; }
5470fi
5471
5472
5473    test -n "$DUMPBIN" && break
5474  done
5475fi
5476if test -z "$DUMPBIN"; then
5477  ac_ct_DUMPBIN=$DUMPBIN
5478  for ac_prog in dumpbin "link -dump"
5479do
5480  # Extract the first word of "$ac_prog", so it can be a program name with args.
5481set dummy $ac_prog; ac_word=$2
5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483printf %s "checking for $ac_word... " >&6; }
5484if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5485then :
5486  printf %s "(cached) " >&6
5487else case e in #(
5488  e) if test -n "$ac_ct_DUMPBIN"; then
5489  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5490else
5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492for as_dir in $PATH
5493do
5494  IFS=$as_save_IFS
5495  case $as_dir in #(((
5496    '') as_dir=./ ;;
5497    */) ;;
5498    *) as_dir=$as_dir/ ;;
5499  esac
5500    for ac_exec_ext in '' $ac_executable_extensions; do
5501  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5502    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5503    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5504    break 2
5505  fi
5506done
5507  done
5508IFS=$as_save_IFS
5509
5510fi ;;
5511esac
5512fi
5513ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5514if test -n "$ac_ct_DUMPBIN"; then
5515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5516printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5517else
5518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519printf "%s\n" "no" >&6; }
5520fi
5521
5522
5523  test -n "$ac_ct_DUMPBIN" && break
5524done
5525
5526  if test "x$ac_ct_DUMPBIN" = x; then
5527    DUMPBIN=":"
5528  else
5529    case $cross_compiling:$ac_tool_warned in
5530yes:)
5531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533ac_tool_warned=yes ;;
5534esac
5535    DUMPBIN=$ac_ct_DUMPBIN
5536  fi
5537fi
5538
5539    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5540    *COFF*)
5541      DUMPBIN="$DUMPBIN -symbols -headers"
5542      ;;
5543    *)
5544      DUMPBIN=:
5545      ;;
5546    esac
5547  fi
5548
5549  if test : != "$DUMPBIN"; then
5550    NM=$DUMPBIN
5551  fi
5552fi
5553test -z "$NM" && NM=nm
5554
5555
5556
5557
5558
5559
5560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5561printf %s "checking the name lister ($NM) interface... " >&6; }
5562if test ${lt_cv_nm_interface+y}
5563then :
5564  printf %s "(cached) " >&6
5565else case e in #(
5566  e) lt_cv_nm_interface="BSD nm"
5567  echo "int some_variable = 0;" > conftest.$ac_ext
5568  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5569  (eval "$ac_compile" 2>conftest.err)
5570  cat conftest.err >&5
5571  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5572  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5573  cat conftest.err >&5
5574  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5575  cat conftest.out >&5
5576  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5577    lt_cv_nm_interface="MS dumpbin"
5578  fi
5579  rm -f conftest* ;;
5580esac
5581fi
5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5583printf "%s\n" "$lt_cv_nm_interface" >&6; }
5584
5585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5586printf %s "checking whether ln -s works... " >&6; }
5587LN_S=$as_ln_s
5588if test "$LN_S" = "ln -s"; then
5589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5590printf "%s\n" "yes" >&6; }
5591else
5592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5593printf "%s\n" "no, using $LN_S" >&6; }
5594fi
5595
5596# find the maximum length of command line arguments
5597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5598printf %s "checking the maximum length of command line arguments... " >&6; }
5599if test ${lt_cv_sys_max_cmd_len+y}
5600then :
5601  printf %s "(cached) " >&6
5602else case e in #(
5603  e)   i=0
5604  teststring=ABCD
5605
5606  case $build_os in
5607  msdosdjgpp*)
5608    # On DJGPP, this test can blow up pretty badly due to problems in libc
5609    # (any single argument exceeding 2000 bytes causes a buffer overrun
5610    # during glob expansion).  Even if it were fixed, the result of this
5611    # check would be larger than it should be.
5612    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5613    ;;
5614
5615  gnu*)
5616    # Under GNU Hurd, this test is not required because there is
5617    # no limit to the length of command line arguments.
5618    # Libtool will interpret -1 as no limit whatsoever
5619    lt_cv_sys_max_cmd_len=-1;
5620    ;;
5621
5622  cygwin* | mingw* | cegcc*)
5623    # On Win9x/ME, this test blows up -- it succeeds, but takes
5624    # about 5 minutes as the teststring grows exponentially.
5625    # Worse, since 9x/ME are not pre-emptively multitasking,
5626    # you end up with a "frozen" computer, even though with patience
5627    # the test eventually succeeds (with a max line length of 256k).
5628    # Instead, let's just punt: use the minimum linelength reported by
5629    # all of the supported platforms: 8192 (on NT/2K/XP).
5630    lt_cv_sys_max_cmd_len=8192;
5631    ;;
5632
5633  mint*)
5634    # On MiNT this can take a long time and run out of memory.
5635    lt_cv_sys_max_cmd_len=8192;
5636    ;;
5637
5638  amigaos*)
5639    # On AmigaOS with pdksh, this test takes hours, literally.
5640    # So we just punt and use a minimum line length of 8192.
5641    lt_cv_sys_max_cmd_len=8192;
5642    ;;
5643
5644  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5645    # This has been around since 386BSD, at least.  Likely further.
5646    if test -x /sbin/sysctl; then
5647      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5648    elif test -x /usr/sbin/sysctl; then
5649      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5650    else
5651      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5652    fi
5653    # And add a safety zone
5654    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5655    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5656    ;;
5657
5658  interix*)
5659    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5660    lt_cv_sys_max_cmd_len=196608
5661    ;;
5662
5663  os2*)
5664    # The test takes a long time on OS/2.
5665    lt_cv_sys_max_cmd_len=8192
5666    ;;
5667
5668  osf*)
5669    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5670    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5671    # nice to cause kernel panics so lets avoid the loop below.
5672    # First set a reasonable default.
5673    lt_cv_sys_max_cmd_len=16384
5674    #
5675    if test -x /sbin/sysconfig; then
5676      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5677        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5678      esac
5679    fi
5680    ;;
5681  sco3.2v5*)
5682    lt_cv_sys_max_cmd_len=102400
5683    ;;
5684  sysv5* | sco5v6* | sysv4.2uw2*)
5685    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5686    if test -n "$kargmax"; then
5687      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5688    else
5689      lt_cv_sys_max_cmd_len=32768
5690    fi
5691    ;;
5692  *)
5693    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5694    if test -n "$lt_cv_sys_max_cmd_len" && \
5695       test undefined != "$lt_cv_sys_max_cmd_len"; then
5696      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5697      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5698    else
5699      # Make teststring a little bigger before we do anything with it.
5700      # a 1K string should be a reasonable start.
5701      for i in 1 2 3 4 5 6 7 8; do
5702        teststring=$teststring$teststring
5703      done
5704      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5705      # If test is not a shell built-in, we'll probably end up computing a
5706      # maximum length that is only half of the actual maximum length, but
5707      # we can't tell.
5708      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5709	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5710	      test 17 != "$i" # 1/2 MB should be enough
5711      do
5712        i=`expr $i + 1`
5713        teststring=$teststring$teststring
5714      done
5715      # Only check the string length outside the loop.
5716      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5717      teststring=
5718      # Add a significant safety factor because C++ compilers can tack on
5719      # massive amounts of additional arguments before passing them to the
5720      # linker.  It appears as though 1/2 is a usable value.
5721      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5722    fi
5723    ;;
5724  esac
5725 ;;
5726esac
5727fi
5728
5729if test -n "$lt_cv_sys_max_cmd_len"; then
5730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5731printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5732else
5733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5734printf "%s\n" "none" >&6; }
5735fi
5736max_cmd_len=$lt_cv_sys_max_cmd_len
5737
5738
5739
5740
5741
5742
5743: ${CP="cp -f"}
5744: ${MV="mv -f"}
5745: ${RM="rm -f"}
5746
5747if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5748  lt_unset=unset
5749else
5750  lt_unset=false
5751fi
5752
5753
5754
5755
5756
5757# test EBCDIC or ASCII
5758case `echo X|tr X '\101'` in
5759 A) # ASCII based system
5760    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5761  lt_SP2NL='tr \040 \012'
5762  lt_NL2SP='tr \015\012 \040\040'
5763  ;;
5764 *) # EBCDIC based system
5765  lt_SP2NL='tr \100 \n'
5766  lt_NL2SP='tr \r\n \100\100'
5767  ;;
5768esac
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5779printf %s "checking how to convert $build file names to $host format... " >&6; }
5780if test ${lt_cv_to_host_file_cmd+y}
5781then :
5782  printf %s "(cached) " >&6
5783else case e in #(
5784  e) case $host in
5785  *-*-mingw* )
5786    case $build in
5787      *-*-mingw* ) # actually msys
5788        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5789        ;;
5790      *-*-cygwin* )
5791        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5792        ;;
5793      * ) # otherwise, assume *nix
5794        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5795        ;;
5796    esac
5797    ;;
5798  *-*-cygwin* )
5799    case $build in
5800      *-*-mingw* ) # actually msys
5801        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5802        ;;
5803      *-*-cygwin* )
5804        lt_cv_to_host_file_cmd=func_convert_file_noop
5805        ;;
5806      * ) # otherwise, assume *nix
5807        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5808        ;;
5809    esac
5810    ;;
5811  * ) # unhandled hosts (and "normal" native builds)
5812    lt_cv_to_host_file_cmd=func_convert_file_noop
5813    ;;
5814esac
5815 ;;
5816esac
5817fi
5818
5819to_host_file_cmd=$lt_cv_to_host_file_cmd
5820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5821printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5822
5823
5824
5825
5826
5827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5828printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5829if test ${lt_cv_to_tool_file_cmd+y}
5830then :
5831  printf %s "(cached) " >&6
5832else case e in #(
5833  e) #assume ordinary cross tools, or native build.
5834lt_cv_to_tool_file_cmd=func_convert_file_noop
5835case $host in
5836  *-*-mingw* )
5837    case $build in
5838      *-*-mingw* ) # actually msys
5839        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5840        ;;
5841    esac
5842    ;;
5843esac
5844 ;;
5845esac
5846fi
5847
5848to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5850printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5851
5852
5853
5854
5855
5856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5857printf %s "checking for $LD option to reload object files... " >&6; }
5858if test ${lt_cv_ld_reload_flag+y}
5859then :
5860  printf %s "(cached) " >&6
5861else case e in #(
5862  e) lt_cv_ld_reload_flag='-r' ;;
5863esac
5864fi
5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5866printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5867reload_flag=$lt_cv_ld_reload_flag
5868case $reload_flag in
5869"" | " "*) ;;
5870*) reload_flag=" $reload_flag" ;;
5871esac
5872reload_cmds='$LD$reload_flag -o $output$reload_objs'
5873case $host_os in
5874  cygwin* | mingw* | pw32* | cegcc*)
5875    if test yes != "$GCC"; then
5876      reload_cmds=false
5877    fi
5878    ;;
5879  darwin*)
5880    if test yes = "$GCC"; then
5881      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5882    else
5883      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5884    fi
5885    ;;
5886esac
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896if test -n "$ac_tool_prefix"; then
5897  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5898set dummy ${ac_tool_prefix}file; ac_word=$2
5899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900printf %s "checking for $ac_word... " >&6; }
5901if test ${ac_cv_prog_FILECMD+y}
5902then :
5903  printf %s "(cached) " >&6
5904else case e in #(
5905  e) if test -n "$FILECMD"; then
5906  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5907else
5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH
5910do
5911  IFS=$as_save_IFS
5912  case $as_dir in #(((
5913    '') as_dir=./ ;;
5914    */) ;;
5915    *) as_dir=$as_dir/ ;;
5916  esac
5917    for ac_exec_ext in '' $ac_executable_extensions; do
5918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5919    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5921    break 2
5922  fi
5923done
5924  done
5925IFS=$as_save_IFS
5926
5927fi ;;
5928esac
5929fi
5930FILECMD=$ac_cv_prog_FILECMD
5931if test -n "$FILECMD"; then
5932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5933printf "%s\n" "$FILECMD" >&6; }
5934else
5935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936printf "%s\n" "no" >&6; }
5937fi
5938
5939
5940fi
5941if test -z "$ac_cv_prog_FILECMD"; then
5942  ac_ct_FILECMD=$FILECMD
5943  # Extract the first word of "file", so it can be a program name with args.
5944set dummy file; ac_word=$2
5945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946printf %s "checking for $ac_word... " >&6; }
5947if test ${ac_cv_prog_ac_ct_FILECMD+y}
5948then :
5949  printf %s "(cached) " >&6
5950else case e in #(
5951  e) if test -n "$ac_ct_FILECMD"; then
5952  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957  IFS=$as_save_IFS
5958  case $as_dir in #(((
5959    '') as_dir=./ ;;
5960    */) ;;
5961    *) as_dir=$as_dir/ ;;
5962  esac
5963    for ac_exec_ext in '' $ac_executable_extensions; do
5964  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5965    ac_cv_prog_ac_ct_FILECMD="file"
5966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5967    break 2
5968  fi
5969done
5970  done
5971IFS=$as_save_IFS
5972
5973fi ;;
5974esac
5975fi
5976ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5977if test -n "$ac_ct_FILECMD"; then
5978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5979printf "%s\n" "$ac_ct_FILECMD" >&6; }
5980else
5981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982printf "%s\n" "no" >&6; }
5983fi
5984
5985  if test "x$ac_ct_FILECMD" = x; then
5986    FILECMD=":"
5987  else
5988    case $cross_compiling:$ac_tool_warned in
5989yes:)
5990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992ac_tool_warned=yes ;;
5993esac
5994    FILECMD=$ac_ct_FILECMD
5995  fi
5996else
5997  FILECMD="$ac_cv_prog_FILECMD"
5998fi
5999
6000
6001
6002
6003
6004
6005
6006if test -n "$ac_tool_prefix"; then
6007  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010printf %s "checking for $ac_word... " >&6; }
6011if test ${ac_cv_prog_OBJDUMP+y}
6012then :
6013  printf %s "(cached) " >&6
6014else case e in #(
6015  e) if test -n "$OBJDUMP"; then
6016  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021  IFS=$as_save_IFS
6022  case $as_dir in #(((
6023    '') as_dir=./ ;;
6024    */) ;;
6025    *) as_dir=$as_dir/ ;;
6026  esac
6027    for ac_exec_ext in '' $ac_executable_extensions; do
6028  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6029    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6030    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6031    break 2
6032  fi
6033done
6034  done
6035IFS=$as_save_IFS
6036
6037fi ;;
6038esac
6039fi
6040OBJDUMP=$ac_cv_prog_OBJDUMP
6041if test -n "$OBJDUMP"; then
6042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6043printf "%s\n" "$OBJDUMP" >&6; }
6044else
6045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046printf "%s\n" "no" >&6; }
6047fi
6048
6049
6050fi
6051if test -z "$ac_cv_prog_OBJDUMP"; then
6052  ac_ct_OBJDUMP=$OBJDUMP
6053  # Extract the first word of "objdump", so it can be a program name with args.
6054set dummy objdump; ac_word=$2
6055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056printf %s "checking for $ac_word... " >&6; }
6057if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6058then :
6059  printf %s "(cached) " >&6
6060else case e in #(
6061  e) if test -n "$ac_ct_OBJDUMP"; then
6062  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067  IFS=$as_save_IFS
6068  case $as_dir in #(((
6069    '') as_dir=./ ;;
6070    */) ;;
6071    *) as_dir=$as_dir/ ;;
6072  esac
6073    for ac_exec_ext in '' $ac_executable_extensions; do
6074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6075    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6077    break 2
6078  fi
6079done
6080  done
6081IFS=$as_save_IFS
6082
6083fi ;;
6084esac
6085fi
6086ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6087if test -n "$ac_ct_OBJDUMP"; then
6088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6089printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6090else
6091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092printf "%s\n" "no" >&6; }
6093fi
6094
6095  if test "x$ac_ct_OBJDUMP" = x; then
6096    OBJDUMP="false"
6097  else
6098    case $cross_compiling:$ac_tool_warned in
6099yes:)
6100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6102ac_tool_warned=yes ;;
6103esac
6104    OBJDUMP=$ac_ct_OBJDUMP
6105  fi
6106else
6107  OBJDUMP="$ac_cv_prog_OBJDUMP"
6108fi
6109
6110test -z "$OBJDUMP" && OBJDUMP=objdump
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6121printf %s "checking how to recognize dependent libraries... " >&6; }
6122if test ${lt_cv_deplibs_check_method+y}
6123then :
6124  printf %s "(cached) " >&6
6125else case e in #(
6126  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6127lt_cv_file_magic_test_file=
6128lt_cv_deplibs_check_method='unknown'
6129# Need to set the preceding variable on all platforms that support
6130# interlibrary dependencies.
6131# 'none' -- dependencies not supported.
6132# 'unknown' -- same as none, but documents that we really don't know.
6133# 'pass_all' -- all dependencies passed with no checks.
6134# 'test_compile' -- check by making test program.
6135# 'file_magic [[regex]]' -- check by looking for files in library path
6136# that responds to the $file_magic_cmd with a given extended regex.
6137# If you have 'file' or equivalent on your system and you're not sure
6138# whether 'pass_all' will *always* work, you probably want this one.
6139
6140case $host_os in
6141aix[4-9]*)
6142  lt_cv_deplibs_check_method=pass_all
6143  ;;
6144
6145beos*)
6146  lt_cv_deplibs_check_method=pass_all
6147  ;;
6148
6149bsdi[45]*)
6150  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6151  lt_cv_file_magic_cmd='$FILECMD -L'
6152  lt_cv_file_magic_test_file=/shlib/libc.so
6153  ;;
6154
6155cygwin*)
6156  # func_win32_libid is a shell function defined in ltmain.sh
6157  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6158  lt_cv_file_magic_cmd='func_win32_libid'
6159  ;;
6160
6161mingw* | pw32*)
6162  # Base MSYS/MinGW do not provide the 'file' command needed by
6163  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6164  # unless we find 'file', for example because we are cross-compiling.
6165  if ( file / ) >/dev/null 2>&1; then
6166    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6167    lt_cv_file_magic_cmd='func_win32_libid'
6168  else
6169    # Keep this pattern in sync with the one in func_win32_libid.
6170    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6171    lt_cv_file_magic_cmd='$OBJDUMP -f'
6172  fi
6173  ;;
6174
6175cegcc*)
6176  # use the weaker test based on 'objdump'. See mingw*.
6177  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6178  lt_cv_file_magic_cmd='$OBJDUMP -f'
6179  ;;
6180
6181darwin* | rhapsody*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185freebsd* | dragonfly* | midnightbsd*)
6186  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6187    case $host_cpu in
6188    i*86 )
6189      # Not sure whether the presence of OpenBSD here was a mistake.
6190      # Let's accept both of them until this is cleared up.
6191      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6192      lt_cv_file_magic_cmd=$FILECMD
6193      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6194      ;;
6195    esac
6196  else
6197    lt_cv_deplibs_check_method=pass_all
6198  fi
6199  ;;
6200
6201haiku*)
6202  lt_cv_deplibs_check_method=pass_all
6203  ;;
6204
6205hpux10.20* | hpux11*)
6206  lt_cv_file_magic_cmd=$FILECMD
6207  case $host_cpu in
6208  ia64*)
6209    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6210    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6211    ;;
6212  hppa*64*)
6213    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]'
6214    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6215    ;;
6216  *)
6217    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6218    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6219    ;;
6220  esac
6221  ;;
6222
6223interix[3-9]*)
6224  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6225  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6226  ;;
6227
6228irix5* | irix6* | nonstopux*)
6229  case $LD in
6230  *-32|*"-32 ") libmagic=32-bit;;
6231  *-n32|*"-n32 ") libmagic=N32;;
6232  *-64|*"-64 ") libmagic=64-bit;;
6233  *) libmagic=never-match;;
6234  esac
6235  lt_cv_deplibs_check_method=pass_all
6236  ;;
6237
6238# This must be glibc/ELF.
6239linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6240  lt_cv_deplibs_check_method=pass_all
6241  ;;
6242
6243netbsd*)
6244  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6246  else
6247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6248  fi
6249  ;;
6250
6251newos6*)
6252  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6253  lt_cv_file_magic_cmd=$FILECMD
6254  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6255  ;;
6256
6257*nto* | *qnx*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260
6261openbsd* | bitrig*)
6262  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6263    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6264  else
6265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6266  fi
6267  ;;
6268
6269osf3* | osf4* | osf5*)
6270  lt_cv_deplibs_check_method=pass_all
6271  ;;
6272
6273rdos*)
6274  lt_cv_deplibs_check_method=pass_all
6275  ;;
6276
6277solaris*)
6278  lt_cv_deplibs_check_method=pass_all
6279  ;;
6280
6281sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6282  lt_cv_deplibs_check_method=pass_all
6283  ;;
6284
6285sysv4 | sysv4.3*)
6286  case $host_vendor in
6287  motorola)
6288    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]'
6289    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6290    ;;
6291  ncr)
6292    lt_cv_deplibs_check_method=pass_all
6293    ;;
6294  sequent)
6295    lt_cv_file_magic_cmd='/bin/file'
6296    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6297    ;;
6298  sni)
6299    lt_cv_file_magic_cmd='/bin/file'
6300    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6301    lt_cv_file_magic_test_file=/lib/libc.so
6302    ;;
6303  siemens)
6304    lt_cv_deplibs_check_method=pass_all
6305    ;;
6306  pc)
6307    lt_cv_deplibs_check_method=pass_all
6308    ;;
6309  esac
6310  ;;
6311
6312tpf*)
6313  lt_cv_deplibs_check_method=pass_all
6314  ;;
6315os2*)
6316  lt_cv_deplibs_check_method=pass_all
6317  ;;
6318esac
6319 ;;
6320esac
6321fi
6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6323printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6324
6325file_magic_glob=
6326want_nocaseglob=no
6327if test "$build" = "$host"; then
6328  case $host_os in
6329  mingw* | pw32*)
6330    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6331      want_nocaseglob=yes
6332    else
6333      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6334    fi
6335    ;;
6336  esac
6337fi
6338
6339file_magic_cmd=$lt_cv_file_magic_cmd
6340deplibs_check_method=$lt_cv_deplibs_check_method
6341test -z "$deplibs_check_method" && deplibs_check_method=unknown
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364if test -n "$ac_tool_prefix"; then
6365  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6366set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368printf %s "checking for $ac_word... " >&6; }
6369if test ${ac_cv_prog_DLLTOOL+y}
6370then :
6371  printf %s "(cached) " >&6
6372else case e in #(
6373  e) if test -n "$DLLTOOL"; then
6374  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6375else
6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379  IFS=$as_save_IFS
6380  case $as_dir in #(((
6381    '') as_dir=./ ;;
6382    */) ;;
6383    *) as_dir=$as_dir/ ;;
6384  esac
6385    for ac_exec_ext in '' $ac_executable_extensions; do
6386  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6387    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6388    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6389    break 2
6390  fi
6391done
6392  done
6393IFS=$as_save_IFS
6394
6395fi ;;
6396esac
6397fi
6398DLLTOOL=$ac_cv_prog_DLLTOOL
6399if test -n "$DLLTOOL"; then
6400  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6401printf "%s\n" "$DLLTOOL" >&6; }
6402else
6403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404printf "%s\n" "no" >&6; }
6405fi
6406
6407
6408fi
6409if test -z "$ac_cv_prog_DLLTOOL"; then
6410  ac_ct_DLLTOOL=$DLLTOOL
6411  # Extract the first word of "dlltool", so it can be a program name with args.
6412set dummy dlltool; ac_word=$2
6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414printf %s "checking for $ac_word... " >&6; }
6415if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6416then :
6417  printf %s "(cached) " >&6
6418else case e in #(
6419  e) if test -n "$ac_ct_DLLTOOL"; then
6420  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  case $as_dir in #(((
6427    '') as_dir=./ ;;
6428    */) ;;
6429    *) as_dir=$as_dir/ ;;
6430  esac
6431    for ac_exec_ext in '' $ac_executable_extensions; do
6432  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6434    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6435    break 2
6436  fi
6437done
6438  done
6439IFS=$as_save_IFS
6440
6441fi ;;
6442esac
6443fi
6444ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6445if test -n "$ac_ct_DLLTOOL"; then
6446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6447printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6448else
6449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450printf "%s\n" "no" >&6; }
6451fi
6452
6453  if test "x$ac_ct_DLLTOOL" = x; then
6454    DLLTOOL="false"
6455  else
6456    case $cross_compiling:$ac_tool_warned in
6457yes:)
6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460ac_tool_warned=yes ;;
6461esac
6462    DLLTOOL=$ac_ct_DLLTOOL
6463  fi
6464else
6465  DLLTOOL="$ac_cv_prog_DLLTOOL"
6466fi
6467
6468test -z "$DLLTOOL" && DLLTOOL=dlltool
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6480printf %s "checking how to associate runtime and link libraries... " >&6; }
6481if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6482then :
6483  printf %s "(cached) " >&6
6484else case e in #(
6485  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6486
6487case $host_os in
6488cygwin* | mingw* | pw32* | cegcc*)
6489  # two different shell functions defined in ltmain.sh;
6490  # decide which one to use based on capabilities of $DLLTOOL
6491  case `$DLLTOOL --help 2>&1` in
6492  *--identify-strict*)
6493    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6494    ;;
6495  *)
6496    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6497    ;;
6498  esac
6499  ;;
6500*)
6501  # fallback: assume linklib IS sharedlib
6502  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6503  ;;
6504esac
6505 ;;
6506esac
6507fi
6508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6509printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6510sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6511test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6512
6513
6514
6515
6516
6517
6518
6519if test -n "$ac_tool_prefix"; then
6520  for ac_prog in ar
6521  do
6522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525printf %s "checking for $ac_word... " >&6; }
6526if test ${ac_cv_prog_AR+y}
6527then :
6528  printf %s "(cached) " >&6
6529else case e in #(
6530  e) if test -n "$AR"; then
6531  ac_cv_prog_AR="$AR" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536  IFS=$as_save_IFS
6537  case $as_dir in #(((
6538    '') as_dir=./ ;;
6539    */) ;;
6540    *) as_dir=$as_dir/ ;;
6541  esac
6542    for ac_exec_ext in '' $ac_executable_extensions; do
6543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6544    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6546    break 2
6547  fi
6548done
6549  done
6550IFS=$as_save_IFS
6551
6552fi ;;
6553esac
6554fi
6555AR=$ac_cv_prog_AR
6556if test -n "$AR"; then
6557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558printf "%s\n" "$AR" >&6; }
6559else
6560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561printf "%s\n" "no" >&6; }
6562fi
6563
6564
6565    test -n "$AR" && break
6566  done
6567fi
6568if test -z "$AR"; then
6569  ac_ct_AR=$AR
6570  for ac_prog in ar
6571do
6572  # Extract the first word of "$ac_prog", so it can be a program name with args.
6573set dummy $ac_prog; ac_word=$2
6574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575printf %s "checking for $ac_word... " >&6; }
6576if test ${ac_cv_prog_ac_ct_AR+y}
6577then :
6578  printf %s "(cached) " >&6
6579else case e in #(
6580  e) if test -n "$ac_ct_AR"; then
6581  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586  IFS=$as_save_IFS
6587  case $as_dir in #(((
6588    '') as_dir=./ ;;
6589    */) ;;
6590    *) as_dir=$as_dir/ ;;
6591  esac
6592    for ac_exec_ext in '' $ac_executable_extensions; do
6593  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594    ac_cv_prog_ac_ct_AR="$ac_prog"
6595    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596    break 2
6597  fi
6598done
6599  done
6600IFS=$as_save_IFS
6601
6602fi ;;
6603esac
6604fi
6605ac_ct_AR=$ac_cv_prog_ac_ct_AR
6606if test -n "$ac_ct_AR"; then
6607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6608printf "%s\n" "$ac_ct_AR" >&6; }
6609else
6610  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611printf "%s\n" "no" >&6; }
6612fi
6613
6614
6615  test -n "$ac_ct_AR" && break
6616done
6617
6618  if test "x$ac_ct_AR" = x; then
6619    AR="false"
6620  else
6621    case $cross_compiling:$ac_tool_warned in
6622yes:)
6623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625ac_tool_warned=yes ;;
6626esac
6627    AR=$ac_ct_AR
6628  fi
6629fi
6630
6631: ${AR=ar}
6632
6633
6634
6635
6636
6637
6638# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6639# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6640# higher priority because thats what people were doing historically (setting
6641# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6642# variable obsoleted/removed.
6643
6644test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6645lt_ar_flags=$AR_FLAGS
6646
6647
6648
6649
6650
6651
6652# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6653# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6654
6655
6656
6657
6658
6659
6660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6661printf %s "checking for archiver @FILE support... " >&6; }
6662if test ${lt_cv_ar_at_file+y}
6663then :
6664  printf %s "(cached) " >&6
6665else case e in #(
6666  e) lt_cv_ar_at_file=no
6667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669
6670int
6671main (void)
6672{
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_compile "$LINENO"
6679then :
6680  echo conftest.$ac_objext > conftest.lst
6681      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6682      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6683  (eval $lt_ar_try) 2>&5
6684  ac_status=$?
6685  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686  test $ac_status = 0; }
6687      if test 0 -eq "$ac_status"; then
6688	# Ensure the archiver fails upon bogus file names.
6689	rm -f conftest.$ac_objext libconftest.a
6690	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6691  (eval $lt_ar_try) 2>&5
6692  ac_status=$?
6693  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694  test $ac_status = 0; }
6695	if test 0 -ne "$ac_status"; then
6696          lt_cv_ar_at_file=@
6697        fi
6698      fi
6699      rm -f conftest.* libconftest.a
6700
6701fi
6702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6703   ;;
6704esac
6705fi
6706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6707printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6708
6709if test no = "$lt_cv_ar_at_file"; then
6710  archiver_list_spec=
6711else
6712  archiver_list_spec=$lt_cv_ar_at_file
6713fi
6714
6715
6716
6717
6718
6719
6720
6721if test -n "$ac_tool_prefix"; then
6722  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6723set dummy ${ac_tool_prefix}strip; ac_word=$2
6724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725printf %s "checking for $ac_word... " >&6; }
6726if test ${ac_cv_prog_STRIP+y}
6727then :
6728  printf %s "(cached) " >&6
6729else case e in #(
6730  e) if test -n "$STRIP"; then
6731  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6732else
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736  IFS=$as_save_IFS
6737  case $as_dir in #(((
6738    '') as_dir=./ ;;
6739    */) ;;
6740    *) as_dir=$as_dir/ ;;
6741  esac
6742    for ac_exec_ext in '' $ac_executable_extensions; do
6743  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6744    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6745    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6746    break 2
6747  fi
6748done
6749  done
6750IFS=$as_save_IFS
6751
6752fi ;;
6753esac
6754fi
6755STRIP=$ac_cv_prog_STRIP
6756if test -n "$STRIP"; then
6757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6758printf "%s\n" "$STRIP" >&6; }
6759else
6760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761printf "%s\n" "no" >&6; }
6762fi
6763
6764
6765fi
6766if test -z "$ac_cv_prog_STRIP"; then
6767  ac_ct_STRIP=$STRIP
6768  # Extract the first word of "strip", so it can be a program name with args.
6769set dummy strip; ac_word=$2
6770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771printf %s "checking for $ac_word... " >&6; }
6772if test ${ac_cv_prog_ac_ct_STRIP+y}
6773then :
6774  printf %s "(cached) " >&6
6775else case e in #(
6776  e) if test -n "$ac_ct_STRIP"; then
6777  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782  IFS=$as_save_IFS
6783  case $as_dir in #(((
6784    '') as_dir=./ ;;
6785    */) ;;
6786    *) as_dir=$as_dir/ ;;
6787  esac
6788    for ac_exec_ext in '' $ac_executable_extensions; do
6789  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6790    ac_cv_prog_ac_ct_STRIP="strip"
6791    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6792    break 2
6793  fi
6794done
6795  done
6796IFS=$as_save_IFS
6797
6798fi ;;
6799esac
6800fi
6801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6802if test -n "$ac_ct_STRIP"; then
6803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6804printf "%s\n" "$ac_ct_STRIP" >&6; }
6805else
6806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807printf "%s\n" "no" >&6; }
6808fi
6809
6810  if test "x$ac_ct_STRIP" = x; then
6811    STRIP=":"
6812  else
6813    case $cross_compiling:$ac_tool_warned in
6814yes:)
6815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817ac_tool_warned=yes ;;
6818esac
6819    STRIP=$ac_ct_STRIP
6820  fi
6821else
6822  STRIP="$ac_cv_prog_STRIP"
6823fi
6824
6825test -z "$STRIP" && STRIP=:
6826
6827
6828
6829
6830
6831
6832if test -n "$ac_tool_prefix"; then
6833  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6834set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836printf %s "checking for $ac_word... " >&6; }
6837if test ${ac_cv_prog_RANLIB+y}
6838then :
6839  printf %s "(cached) " >&6
6840else case e in #(
6841  e) if test -n "$RANLIB"; then
6842  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847  IFS=$as_save_IFS
6848  case $as_dir in #(((
6849    '') as_dir=./ ;;
6850    */) ;;
6851    *) as_dir=$as_dir/ ;;
6852  esac
6853    for ac_exec_ext in '' $ac_executable_extensions; do
6854  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6855    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6856    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6857    break 2
6858  fi
6859done
6860  done
6861IFS=$as_save_IFS
6862
6863fi ;;
6864esac
6865fi
6866RANLIB=$ac_cv_prog_RANLIB
6867if test -n "$RANLIB"; then
6868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6869printf "%s\n" "$RANLIB" >&6; }
6870else
6871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872printf "%s\n" "no" >&6; }
6873fi
6874
6875
6876fi
6877if test -z "$ac_cv_prog_RANLIB"; then
6878  ac_ct_RANLIB=$RANLIB
6879  # Extract the first word of "ranlib", so it can be a program name with args.
6880set dummy ranlib; ac_word=$2
6881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882printf %s "checking for $ac_word... " >&6; }
6883if test ${ac_cv_prog_ac_ct_RANLIB+y}
6884then :
6885  printf %s "(cached) " >&6
6886else case e in #(
6887  e) if test -n "$ac_ct_RANLIB"; then
6888  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  case $as_dir in #(((
6895    '') as_dir=./ ;;
6896    */) ;;
6897    *) as_dir=$as_dir/ ;;
6898  esac
6899    for ac_exec_ext in '' $ac_executable_extensions; do
6900  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6901    ac_cv_prog_ac_ct_RANLIB="ranlib"
6902    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6903    break 2
6904  fi
6905done
6906  done
6907IFS=$as_save_IFS
6908
6909fi ;;
6910esac
6911fi
6912ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6913if test -n "$ac_ct_RANLIB"; then
6914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6915printf "%s\n" "$ac_ct_RANLIB" >&6; }
6916else
6917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918printf "%s\n" "no" >&6; }
6919fi
6920
6921  if test "x$ac_ct_RANLIB" = x; then
6922    RANLIB=":"
6923  else
6924    case $cross_compiling:$ac_tool_warned in
6925yes:)
6926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928ac_tool_warned=yes ;;
6929esac
6930    RANLIB=$ac_ct_RANLIB
6931  fi
6932else
6933  RANLIB="$ac_cv_prog_RANLIB"
6934fi
6935
6936test -z "$RANLIB" && RANLIB=:
6937
6938
6939
6940
6941
6942
6943# Determine commands to create old-style static archives.
6944old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6945old_postinstall_cmds='chmod 644 $oldlib'
6946old_postuninstall_cmds=
6947
6948if test -n "$RANLIB"; then
6949  case $host_os in
6950  bitrig* | openbsd*)
6951    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6952    ;;
6953  *)
6954    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6955    ;;
6956  esac
6957  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6958fi
6959
6960case $host_os in
6961  darwin*)
6962    lock_old_archive_extraction=yes ;;
6963  *)
6964    lock_old_archive_extraction=no ;;
6965esac
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005# If no C compiler was specified, use CC.
7006LTCC=${LTCC-"$CC"}
7007
7008# If no C compiler flags were specified, use CFLAGS.
7009LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7010
7011# Allow CC to be a program name with arguments.
7012compiler=$CC
7013
7014
7015# Check for command to grab the raw symbol name followed by C symbol from nm.
7016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7017printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7018if test ${lt_cv_sys_global_symbol_pipe+y}
7019then :
7020  printf %s "(cached) " >&6
7021else case e in #(
7022  e)
7023# These are sane defaults that work on at least a few old systems.
7024# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7025
7026# Character class describing NM global symbol codes.
7027symcode='[BCDEGRST]'
7028
7029# Regexp to match symbols that can be accessed directly from C.
7030sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7031
7032# Define system-specific variables.
7033case $host_os in
7034aix*)
7035  symcode='[BCDT]'
7036  ;;
7037cygwin* | mingw* | pw32* | cegcc*)
7038  symcode='[ABCDGISTW]'
7039  ;;
7040hpux*)
7041  if test ia64 = "$host_cpu"; then
7042    symcode='[ABCDEGRST]'
7043  fi
7044  ;;
7045irix* | nonstopux*)
7046  symcode='[BCDEGRST]'
7047  ;;
7048osf*)
7049  symcode='[BCDEGQRST]'
7050  ;;
7051solaris*)
7052  symcode='[BDRT]'
7053  ;;
7054sco3.2v5*)
7055  symcode='[DT]'
7056  ;;
7057sysv4.2uw2*)
7058  symcode='[DT]'
7059  ;;
7060sysv5* | sco5v6* | unixware* | OpenUNIX*)
7061  symcode='[ABDT]'
7062  ;;
7063sysv4)
7064  symcode='[DFNSTU]'
7065  ;;
7066esac
7067
7068# If we're using GNU nm, then use its standard symbol codes.
7069case `$NM -V 2>&1` in
7070*GNU* | *'with BFD'*)
7071  symcode='[ABCDGIRSTW]' ;;
7072esac
7073
7074if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7075  # Gets list of data symbols to import.
7076  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7077  # Adjust the below global symbol transforms to fixup imported variables.
7078  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7079  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7080  lt_c_name_lib_hook="\
7081  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7082  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7083else
7084  # Disable hooks by default.
7085  lt_cv_sys_global_symbol_to_import=
7086  lt_cdecl_hook=
7087  lt_c_name_hook=
7088  lt_c_name_lib_hook=
7089fi
7090
7091# Transform an extracted symbol line into a proper C declaration.
7092# Some systems (esp. on ia64) link data and code symbols differently,
7093# so use this general approach.
7094lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7095$lt_cdecl_hook\
7096" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7097" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7098
7099# Transform an extracted symbol line into symbol name and symbol address
7100lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7101$lt_c_name_hook\
7102" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7103" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7104
7105# Transform an extracted symbol line into symbol name with lib prefix and
7106# symbol address.
7107lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7108$lt_c_name_lib_hook\
7109" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7110" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7111" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7112
7113# Handle CRLF in mingw tool chain
7114opt_cr=
7115case $build_os in
7116mingw*)
7117  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7118  ;;
7119esac
7120
7121# Try without a prefix underscore, then with it.
7122for ac_symprfx in "" "_"; do
7123
7124  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7125  symxfrm="\\1 $ac_symprfx\\2 \\2"
7126
7127  # Write the raw and C identifiers.
7128  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7129    # Fake it for dumpbin and say T for any non-static function,
7130    # D for any global variable and I for any imported variable.
7131    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7132    # which start with @ or ?.
7133    lt_cv_sys_global_symbol_pipe="$AWK '"\
7134"     {last_section=section; section=\$ 3};"\
7135"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7136"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7137"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7138"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7139"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7140"     \$ 0!~/External *\|/{next};"\
7141"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7142"     {if(hide[section]) next};"\
7143"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7144"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7145"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7146"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7147"     ' prfx=^$ac_symprfx"
7148  else
7149    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7150  fi
7151  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7152
7153  # Check to see that the pipe works correctly.
7154  pipe_works=no
7155
7156  rm -f conftest*
7157  cat > conftest.$ac_ext <<_LT_EOF
7158#ifdef __cplusplus
7159extern "C" {
7160#endif
7161char nm_test_var;
7162void nm_test_func(void);
7163void nm_test_func(void){}
7164#ifdef __cplusplus
7165}
7166#endif
7167int main(){nm_test_var='a';nm_test_func();return(0);}
7168_LT_EOF
7169
7170  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7171  (eval $ac_compile) 2>&5
7172  ac_status=$?
7173  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7174  test $ac_status = 0; }; then
7175    # Now try to grab the symbols.
7176    nlist=conftest.nm
7177    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7178  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7179  ac_status=$?
7180  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181  test $ac_status = 0; } && test -s "$nlist"; then
7182      # Try sorting and uniquifying the output.
7183      if sort "$nlist" | uniq > "$nlist"T; then
7184	mv -f "$nlist"T "$nlist"
7185      else
7186	rm -f "$nlist"T
7187      fi
7188
7189      # Make sure that we snagged all the symbols we need.
7190      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7191	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7192	  cat <<_LT_EOF > conftest.$ac_ext
7193/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7194#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7195/* DATA imports from DLLs on WIN32 can't be const, because runtime
7196   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7197# define LT_DLSYM_CONST
7198#elif defined __osf__
7199/* This system does not cope well with relocations in const data.  */
7200# define LT_DLSYM_CONST
7201#else
7202# define LT_DLSYM_CONST const
7203#endif
7204
7205#ifdef __cplusplus
7206extern "C" {
7207#endif
7208
7209_LT_EOF
7210	  # Now generate the symbol file.
7211	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7212
7213	  cat <<_LT_EOF >> conftest.$ac_ext
7214
7215/* The mapping between symbol names and symbols.  */
7216LT_DLSYM_CONST struct {
7217  const char *name;
7218  void       *address;
7219}
7220lt__PROGRAM__LTX_preloaded_symbols[] =
7221{
7222  { "@PROGRAM@", (void *) 0 },
7223_LT_EOF
7224	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7225	  cat <<\_LT_EOF >> conftest.$ac_ext
7226  {0, (void *) 0}
7227};
7228
7229/* This works around a problem in FreeBSD linker */
7230#ifdef FREEBSD_WORKAROUND
7231static const void *lt_preloaded_setup() {
7232  return lt__PROGRAM__LTX_preloaded_symbols;
7233}
7234#endif
7235
7236#ifdef __cplusplus
7237}
7238#endif
7239_LT_EOF
7240	  # Now try linking the two files.
7241	  mv conftest.$ac_objext conftstm.$ac_objext
7242	  lt_globsym_save_LIBS=$LIBS
7243	  lt_globsym_save_CFLAGS=$CFLAGS
7244	  LIBS=conftstm.$ac_objext
7245	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7246	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7247  (eval $ac_link) 2>&5
7248  ac_status=$?
7249  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7251	    pipe_works=yes
7252	  fi
7253	  LIBS=$lt_globsym_save_LIBS
7254	  CFLAGS=$lt_globsym_save_CFLAGS
7255	else
7256	  echo "cannot find nm_test_func in $nlist" >&5
7257	fi
7258      else
7259	echo "cannot find nm_test_var in $nlist" >&5
7260      fi
7261    else
7262      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7263    fi
7264  else
7265    echo "$progname: failed program was:" >&5
7266    cat conftest.$ac_ext >&5
7267  fi
7268  rm -rf conftest* conftst*
7269
7270  # Do not use the global_symbol_pipe unless it works.
7271  if test yes = "$pipe_works"; then
7272    break
7273  else
7274    lt_cv_sys_global_symbol_pipe=
7275  fi
7276done
7277 ;;
7278esac
7279fi
7280
7281if test -z "$lt_cv_sys_global_symbol_pipe"; then
7282  lt_cv_sys_global_symbol_to_cdecl=
7283fi
7284if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7285  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7286printf "%s\n" "failed" >&6; }
7287else
7288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7289printf "%s\n" "ok" >&6; }
7290fi
7291
7292# Response file support.
7293if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7294  nm_file_list_spec='@'
7295elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7296  nm_file_list_spec='@'
7297fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7336printf %s "checking for sysroot... " >&6; }
7337
7338# Check whether --with-sysroot was given.
7339if test ${with_sysroot+y}
7340then :
7341  withval=$with_sysroot;
7342else case e in #(
7343  e) with_sysroot=no ;;
7344esac
7345fi
7346
7347
7348lt_sysroot=
7349case $with_sysroot in #(
7350 yes)
7351   if test yes = "$GCC"; then
7352     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7353   fi
7354   ;; #(
7355 /*)
7356   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7357   ;; #(
7358 no|'')
7359   ;; #(
7360 *)
7361   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7362printf "%s\n" "$with_sysroot" >&6; }
7363   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7364   ;;
7365esac
7366
7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7368printf "%s\n" "${lt_sysroot:-no}" >&6; }
7369
7370
7371
7372
7373
7374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7375printf %s "checking for a working dd... " >&6; }
7376if test ${ac_cv_path_lt_DD+y}
7377then :
7378  printf %s "(cached) " >&6
7379else case e in #(
7380  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7381cat conftest.i conftest.i >conftest2.i
7382: ${lt_DD:=$DD}
7383if test -z "$lt_DD"; then
7384  ac_path_lt_DD_found=false
7385  # Loop through the user's path and test for each of PROGNAME-LIST
7386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389  IFS=$as_save_IFS
7390  case $as_dir in #(((
7391    '') as_dir=./ ;;
7392    */) ;;
7393    *) as_dir=$as_dir/ ;;
7394  esac
7395    for ac_prog in dd
7396   do
7397    for ac_exec_ext in '' $ac_executable_extensions; do
7398      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7399      as_fn_executable_p "$ac_path_lt_DD" || continue
7400if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7401  cmp -s conftest.i conftest.out \
7402  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7403fi
7404      $ac_path_lt_DD_found && break 3
7405    done
7406  done
7407  done
7408IFS=$as_save_IFS
7409  if test -z "$ac_cv_path_lt_DD"; then
7410    :
7411  fi
7412else
7413  ac_cv_path_lt_DD=$lt_DD
7414fi
7415
7416rm -f conftest.i conftest2.i conftest.out ;;
7417esac
7418fi
7419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7420printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7421
7422
7423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7424printf %s "checking how to truncate binary pipes... " >&6; }
7425if test ${lt_cv_truncate_bin+y}
7426then :
7427  printf %s "(cached) " >&6
7428else case e in #(
7429  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7430cat conftest.i conftest.i >conftest2.i
7431lt_cv_truncate_bin=
7432if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7433  cmp -s conftest.i conftest.out \
7434  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7435fi
7436rm -f conftest.i conftest2.i conftest.out
7437test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7438esac
7439fi
7440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7441printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7442
7443
7444
7445
7446
7447
7448
7449# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7450func_cc_basename ()
7451{
7452    for cc_temp in $*""; do
7453      case $cc_temp in
7454        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7455        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7456        \-*) ;;
7457        *) break;;
7458      esac
7459    done
7460    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7461}
7462
7463# Check whether --enable-libtool-lock was given.
7464if test ${enable_libtool_lock+y}
7465then :
7466  enableval=$enable_libtool_lock;
7467fi
7468
7469test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7470
7471# Some flags need to be propagated to the compiler or linker for good
7472# libtool support.
7473case $host in
7474ia64-*-hpux*)
7475  # Find out what ABI is being produced by ac_compile, and set mode
7476  # options accordingly.
7477  echo 'int i;' > conftest.$ac_ext
7478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7479  (eval $ac_compile) 2>&5
7480  ac_status=$?
7481  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482  test $ac_status = 0; }; then
7483    case `$FILECMD conftest.$ac_objext` in
7484      *ELF-32*)
7485	HPUX_IA64_MODE=32
7486	;;
7487      *ELF-64*)
7488	HPUX_IA64_MODE=64
7489	;;
7490    esac
7491  fi
7492  rm -rf conftest*
7493  ;;
7494*-*-irix6*)
7495  # Find out what ABI is being produced by ac_compile, and set linker
7496  # options accordingly.
7497  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7498  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7499  (eval $ac_compile) 2>&5
7500  ac_status=$?
7501  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7502  test $ac_status = 0; }; then
7503    if test yes = "$lt_cv_prog_gnu_ld"; then
7504      case `$FILECMD conftest.$ac_objext` in
7505	*32-bit*)
7506	  LD="${LD-ld} -melf32bsmip"
7507	  ;;
7508	*N32*)
7509	  LD="${LD-ld} -melf32bmipn32"
7510	  ;;
7511	*64-bit*)
7512	  LD="${LD-ld} -melf64bmip"
7513	;;
7514      esac
7515    else
7516      case `$FILECMD conftest.$ac_objext` in
7517	*32-bit*)
7518	  LD="${LD-ld} -32"
7519	  ;;
7520	*N32*)
7521	  LD="${LD-ld} -n32"
7522	  ;;
7523	*64-bit*)
7524	  LD="${LD-ld} -64"
7525	  ;;
7526      esac
7527    fi
7528  fi
7529  rm -rf conftest*
7530  ;;
7531
7532mips64*-*linux*)
7533  # Find out what ABI is being produced by ac_compile, and set linker
7534  # options accordingly.
7535  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7536  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7537  (eval $ac_compile) 2>&5
7538  ac_status=$?
7539  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540  test $ac_status = 0; }; then
7541    emul=elf
7542    case `$FILECMD conftest.$ac_objext` in
7543      *32-bit*)
7544	emul="${emul}32"
7545	;;
7546      *64-bit*)
7547	emul="${emul}64"
7548	;;
7549    esac
7550    case `$FILECMD conftest.$ac_objext` in
7551      *MSB*)
7552	emul="${emul}btsmip"
7553	;;
7554      *LSB*)
7555	emul="${emul}ltsmip"
7556	;;
7557    esac
7558    case `$FILECMD conftest.$ac_objext` in
7559      *N32*)
7560	emul="${emul}n32"
7561	;;
7562    esac
7563    LD="${LD-ld} -m $emul"
7564  fi
7565  rm -rf conftest*
7566  ;;
7567
7568x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7569s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7570  # Find out what ABI is being produced by ac_compile, and set linker
7571  # options accordingly.  Note that the listed cases only cover the
7572  # situations where additional linker options are needed (such as when
7573  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7574  # vice versa); the common cases where no linker options are needed do
7575  # not appear in the list.
7576  echo 'int i;' > conftest.$ac_ext
7577  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7578  (eval $ac_compile) 2>&5
7579  ac_status=$?
7580  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581  test $ac_status = 0; }; then
7582    case `$FILECMD conftest.o` in
7583      *32-bit*)
7584	case $host in
7585	  x86_64-*kfreebsd*-gnu)
7586	    LD="${LD-ld} -m elf_i386_fbsd"
7587	    ;;
7588	  x86_64-*linux*)
7589	    case `$FILECMD conftest.o` in
7590	      *x86-64*)
7591		LD="${LD-ld} -m elf32_x86_64"
7592		;;
7593	      *)
7594		LD="${LD-ld} -m elf_i386"
7595		;;
7596	    esac
7597	    ;;
7598	  powerpc64le-*linux*)
7599	    LD="${LD-ld} -m elf32lppclinux"
7600	    ;;
7601	  powerpc64-*linux*)
7602	    LD="${LD-ld} -m elf32ppclinux"
7603	    ;;
7604	  s390x-*linux*)
7605	    LD="${LD-ld} -m elf_s390"
7606	    ;;
7607	  sparc64-*linux*)
7608	    LD="${LD-ld} -m elf32_sparc"
7609	    ;;
7610	esac
7611	;;
7612      *64-bit*)
7613	case $host in
7614	  x86_64-*kfreebsd*-gnu)
7615	    LD="${LD-ld} -m elf_x86_64_fbsd"
7616	    ;;
7617	  x86_64-*linux*)
7618	    LD="${LD-ld} -m elf_x86_64"
7619	    ;;
7620	  powerpcle-*linux*)
7621	    LD="${LD-ld} -m elf64lppc"
7622	    ;;
7623	  powerpc-*linux*)
7624	    LD="${LD-ld} -m elf64ppc"
7625	    ;;
7626	  s390*-*linux*|s390*-*tpf*)
7627	    LD="${LD-ld} -m elf64_s390"
7628	    ;;
7629	  sparc*-*linux*)
7630	    LD="${LD-ld} -m elf64_sparc"
7631	    ;;
7632	esac
7633	;;
7634    esac
7635  fi
7636  rm -rf conftest*
7637  ;;
7638
7639*-*-sco3.2v5*)
7640  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7641  SAVE_CFLAGS=$CFLAGS
7642  CFLAGS="$CFLAGS -belf"
7643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7644printf %s "checking whether the C compiler needs -belf... " >&6; }
7645if test ${lt_cv_cc_needs_belf+y}
7646then :
7647  printf %s "(cached) " >&6
7648else case e in #(
7649  e) ac_ext=c
7650ac_cpp='$CPP $CPPFLAGS'
7651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657
7658int
7659main (void)
7660{
7661
7662  ;
7663  return 0;
7664}
7665_ACEOF
7666if ac_fn_c_try_link "$LINENO"
7667then :
7668  lt_cv_cc_needs_belf=yes
7669else case e in #(
7670  e) lt_cv_cc_needs_belf=no ;;
7671esac
7672fi
7673rm -f core conftest.err conftest.$ac_objext conftest.beam \
7674    conftest$ac_exeext conftest.$ac_ext
7675     ac_ext=c
7676ac_cpp='$CPP $CPPFLAGS'
7677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680 ;;
7681esac
7682fi
7683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7684printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7685  if test yes != "$lt_cv_cc_needs_belf"; then
7686    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7687    CFLAGS=$SAVE_CFLAGS
7688  fi
7689  ;;
7690*-*solaris*)
7691  # Find out what ABI is being produced by ac_compile, and set linker
7692  # options accordingly.
7693  echo 'int i;' > conftest.$ac_ext
7694  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7695  (eval $ac_compile) 2>&5
7696  ac_status=$?
7697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698  test $ac_status = 0; }; then
7699    case `$FILECMD conftest.o` in
7700    *64-bit*)
7701      case $lt_cv_prog_gnu_ld in
7702      yes*)
7703        case $host in
7704        i?86-*-solaris*|x86_64-*-solaris*)
7705          LD="${LD-ld} -m elf_x86_64"
7706          ;;
7707        sparc*-*-solaris*)
7708          LD="${LD-ld} -m elf64_sparc"
7709          ;;
7710        esac
7711        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7712        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7713          LD=${LD-ld}_sol2
7714        fi
7715        ;;
7716      *)
7717	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7718	  LD="${LD-ld} -64"
7719	fi
7720	;;
7721      esac
7722      ;;
7723    esac
7724  fi
7725  rm -rf conftest*
7726  ;;
7727esac
7728
7729need_locks=$enable_libtool_lock
7730
7731if test -n "$ac_tool_prefix"; then
7732  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7733set dummy ${ac_tool_prefix}mt; ac_word=$2
7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735printf %s "checking for $ac_word... " >&6; }
7736if test ${ac_cv_prog_MANIFEST_TOOL+y}
7737then :
7738  printf %s "(cached) " >&6
7739else case e in #(
7740  e) if test -n "$MANIFEST_TOOL"; then
7741  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7742else
7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744for as_dir in $PATH
7745do
7746  IFS=$as_save_IFS
7747  case $as_dir in #(((
7748    '') as_dir=./ ;;
7749    */) ;;
7750    *) as_dir=$as_dir/ ;;
7751  esac
7752    for ac_exec_ext in '' $ac_executable_extensions; do
7753  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7754    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7755    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7756    break 2
7757  fi
7758done
7759  done
7760IFS=$as_save_IFS
7761
7762fi ;;
7763esac
7764fi
7765MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7766if test -n "$MANIFEST_TOOL"; then
7767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7768printf "%s\n" "$MANIFEST_TOOL" >&6; }
7769else
7770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771printf "%s\n" "no" >&6; }
7772fi
7773
7774
7775fi
7776if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7777  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7778  # Extract the first word of "mt", so it can be a program name with args.
7779set dummy mt; ac_word=$2
7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781printf %s "checking for $ac_word... " >&6; }
7782if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7783then :
7784  printf %s "(cached) " >&6
7785else case e in #(
7786  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7787  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  case $as_dir in #(((
7794    '') as_dir=./ ;;
7795    */) ;;
7796    *) as_dir=$as_dir/ ;;
7797  esac
7798    for ac_exec_ext in '' $ac_executable_extensions; do
7799  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7801    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805  done
7806IFS=$as_save_IFS
7807
7808fi ;;
7809esac
7810fi
7811ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7812if test -n "$ac_ct_MANIFEST_TOOL"; then
7813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7814printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7815else
7816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817printf "%s\n" "no" >&6; }
7818fi
7819
7820  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7821    MANIFEST_TOOL=":"
7822  else
7823    case $cross_compiling:$ac_tool_warned in
7824yes:)
7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7826printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7827ac_tool_warned=yes ;;
7828esac
7829    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7830  fi
7831else
7832  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7833fi
7834
7835test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7837printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7838if test ${lt_cv_path_mainfest_tool+y}
7839then :
7840  printf %s "(cached) " >&6
7841else case e in #(
7842  e) lt_cv_path_mainfest_tool=no
7843  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7844  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7845  cat conftest.err >&5
7846  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7847    lt_cv_path_mainfest_tool=yes
7848  fi
7849  rm -f conftest* ;;
7850esac
7851fi
7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7853printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7854if test yes != "$lt_cv_path_mainfest_tool"; then
7855  MANIFEST_TOOL=:
7856fi
7857
7858
7859
7860
7861
7862
7863  case $host_os in
7864    rhapsody* | darwin*)
7865    if test -n "$ac_tool_prefix"; then
7866  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7867set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869printf %s "checking for $ac_word... " >&6; }
7870if test ${ac_cv_prog_DSYMUTIL+y}
7871then :
7872  printf %s "(cached) " >&6
7873else case e in #(
7874  e) if test -n "$DSYMUTIL"; then
7875  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7876else
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880  IFS=$as_save_IFS
7881  case $as_dir in #(((
7882    '') as_dir=./ ;;
7883    */) ;;
7884    *) as_dir=$as_dir/ ;;
7885  esac
7886    for ac_exec_ext in '' $ac_executable_extensions; do
7887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7888    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7890    break 2
7891  fi
7892done
7893  done
7894IFS=$as_save_IFS
7895
7896fi ;;
7897esac
7898fi
7899DSYMUTIL=$ac_cv_prog_DSYMUTIL
7900if test -n "$DSYMUTIL"; then
7901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7902printf "%s\n" "$DSYMUTIL" >&6; }
7903else
7904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905printf "%s\n" "no" >&6; }
7906fi
7907
7908
7909fi
7910if test -z "$ac_cv_prog_DSYMUTIL"; then
7911  ac_ct_DSYMUTIL=$DSYMUTIL
7912  # Extract the first word of "dsymutil", so it can be a program name with args.
7913set dummy dsymutil; ac_word=$2
7914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915printf %s "checking for $ac_word... " >&6; }
7916if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7917then :
7918  printf %s "(cached) " >&6
7919else case e in #(
7920  e) if test -n "$ac_ct_DSYMUTIL"; then
7921  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926  IFS=$as_save_IFS
7927  case $as_dir in #(((
7928    '') as_dir=./ ;;
7929    */) ;;
7930    *) as_dir=$as_dir/ ;;
7931  esac
7932    for ac_exec_ext in '' $ac_executable_extensions; do
7933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7934    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7936    break 2
7937  fi
7938done
7939  done
7940IFS=$as_save_IFS
7941
7942fi ;;
7943esac
7944fi
7945ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7946if test -n "$ac_ct_DSYMUTIL"; then
7947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7948printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7949else
7950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951printf "%s\n" "no" >&6; }
7952fi
7953
7954  if test "x$ac_ct_DSYMUTIL" = x; then
7955    DSYMUTIL=":"
7956  else
7957    case $cross_compiling:$ac_tool_warned in
7958yes:)
7959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961ac_tool_warned=yes ;;
7962esac
7963    DSYMUTIL=$ac_ct_DSYMUTIL
7964  fi
7965else
7966  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7967fi
7968
7969    if test -n "$ac_tool_prefix"; then
7970  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7971set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973printf %s "checking for $ac_word... " >&6; }
7974if test ${ac_cv_prog_NMEDIT+y}
7975then :
7976  printf %s "(cached) " >&6
7977else case e in #(
7978  e) if test -n "$NMEDIT"; then
7979  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  case $as_dir in #(((
7986    '') as_dir=./ ;;
7987    */) ;;
7988    *) as_dir=$as_dir/ ;;
7989  esac
7990    for ac_exec_ext in '' $ac_executable_extensions; do
7991  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7993    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997  done
7998IFS=$as_save_IFS
7999
8000fi ;;
8001esac
8002fi
8003NMEDIT=$ac_cv_prog_NMEDIT
8004if test -n "$NMEDIT"; then
8005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8006printf "%s\n" "$NMEDIT" >&6; }
8007else
8008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009printf "%s\n" "no" >&6; }
8010fi
8011
8012
8013fi
8014if test -z "$ac_cv_prog_NMEDIT"; then
8015  ac_ct_NMEDIT=$NMEDIT
8016  # Extract the first word of "nmedit", so it can be a program name with args.
8017set dummy nmedit; ac_word=$2
8018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019printf %s "checking for $ac_word... " >&6; }
8020if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8021then :
8022  printf %s "(cached) " >&6
8023else case e in #(
8024  e) if test -n "$ac_ct_NMEDIT"; then
8025  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8026else
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030  IFS=$as_save_IFS
8031  case $as_dir in #(((
8032    '') as_dir=./ ;;
8033    */) ;;
8034    *) as_dir=$as_dir/ ;;
8035  esac
8036    for ac_exec_ext in '' $ac_executable_extensions; do
8037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8038    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8040    break 2
8041  fi
8042done
8043  done
8044IFS=$as_save_IFS
8045
8046fi ;;
8047esac
8048fi
8049ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8050if test -n "$ac_ct_NMEDIT"; then
8051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8052printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8053else
8054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055printf "%s\n" "no" >&6; }
8056fi
8057
8058  if test "x$ac_ct_NMEDIT" = x; then
8059    NMEDIT=":"
8060  else
8061    case $cross_compiling:$ac_tool_warned in
8062yes:)
8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065ac_tool_warned=yes ;;
8066esac
8067    NMEDIT=$ac_ct_NMEDIT
8068  fi
8069else
8070  NMEDIT="$ac_cv_prog_NMEDIT"
8071fi
8072
8073    if test -n "$ac_tool_prefix"; then
8074  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8075set dummy ${ac_tool_prefix}lipo; ac_word=$2
8076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077printf %s "checking for $ac_word... " >&6; }
8078if test ${ac_cv_prog_LIPO+y}
8079then :
8080  printf %s "(cached) " >&6
8081else case e in #(
8082  e) if test -n "$LIPO"; then
8083  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8084else
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088  IFS=$as_save_IFS
8089  case $as_dir in #(((
8090    '') as_dir=./ ;;
8091    */) ;;
8092    *) as_dir=$as_dir/ ;;
8093  esac
8094    for ac_exec_ext in '' $ac_executable_extensions; do
8095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8096    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8098    break 2
8099  fi
8100done
8101  done
8102IFS=$as_save_IFS
8103
8104fi ;;
8105esac
8106fi
8107LIPO=$ac_cv_prog_LIPO
8108if test -n "$LIPO"; then
8109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8110printf "%s\n" "$LIPO" >&6; }
8111else
8112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113printf "%s\n" "no" >&6; }
8114fi
8115
8116
8117fi
8118if test -z "$ac_cv_prog_LIPO"; then
8119  ac_ct_LIPO=$LIPO
8120  # Extract the first word of "lipo", so it can be a program name with args.
8121set dummy lipo; ac_word=$2
8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123printf %s "checking for $ac_word... " >&6; }
8124if test ${ac_cv_prog_ac_ct_LIPO+y}
8125then :
8126  printf %s "(cached) " >&6
8127else case e in #(
8128  e) if test -n "$ac_ct_LIPO"; then
8129  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134  IFS=$as_save_IFS
8135  case $as_dir in #(((
8136    '') as_dir=./ ;;
8137    */) ;;
8138    *) as_dir=$as_dir/ ;;
8139  esac
8140    for ac_exec_ext in '' $ac_executable_extensions; do
8141  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8142    ac_cv_prog_ac_ct_LIPO="lipo"
8143    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8144    break 2
8145  fi
8146done
8147  done
8148IFS=$as_save_IFS
8149
8150fi ;;
8151esac
8152fi
8153ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8154if test -n "$ac_ct_LIPO"; then
8155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8156printf "%s\n" "$ac_ct_LIPO" >&6; }
8157else
8158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159printf "%s\n" "no" >&6; }
8160fi
8161
8162  if test "x$ac_ct_LIPO" = x; then
8163    LIPO=":"
8164  else
8165    case $cross_compiling:$ac_tool_warned in
8166yes:)
8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8168printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8169ac_tool_warned=yes ;;
8170esac
8171    LIPO=$ac_ct_LIPO
8172  fi
8173else
8174  LIPO="$ac_cv_prog_LIPO"
8175fi
8176
8177    if test -n "$ac_tool_prefix"; then
8178  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8179set dummy ${ac_tool_prefix}otool; ac_word=$2
8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181printf %s "checking for $ac_word... " >&6; }
8182if test ${ac_cv_prog_OTOOL+y}
8183then :
8184  printf %s "(cached) " >&6
8185else case e in #(
8186  e) if test -n "$OTOOL"; then
8187  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8188else
8189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192  IFS=$as_save_IFS
8193  case $as_dir in #(((
8194    '') as_dir=./ ;;
8195    */) ;;
8196    *) as_dir=$as_dir/ ;;
8197  esac
8198    for ac_exec_ext in '' $ac_executable_extensions; do
8199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8200    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8202    break 2
8203  fi
8204done
8205  done
8206IFS=$as_save_IFS
8207
8208fi ;;
8209esac
8210fi
8211OTOOL=$ac_cv_prog_OTOOL
8212if test -n "$OTOOL"; then
8213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8214printf "%s\n" "$OTOOL" >&6; }
8215else
8216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217printf "%s\n" "no" >&6; }
8218fi
8219
8220
8221fi
8222if test -z "$ac_cv_prog_OTOOL"; then
8223  ac_ct_OTOOL=$OTOOL
8224  # Extract the first word of "otool", so it can be a program name with args.
8225set dummy otool; ac_word=$2
8226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227printf %s "checking for $ac_word... " >&6; }
8228if test ${ac_cv_prog_ac_ct_OTOOL+y}
8229then :
8230  printf %s "(cached) " >&6
8231else case e in #(
8232  e) if test -n "$ac_ct_OTOOL"; then
8233  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238  IFS=$as_save_IFS
8239  case $as_dir in #(((
8240    '') as_dir=./ ;;
8241    */) ;;
8242    *) as_dir=$as_dir/ ;;
8243  esac
8244    for ac_exec_ext in '' $ac_executable_extensions; do
8245  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8246    ac_cv_prog_ac_ct_OTOOL="otool"
8247    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8248    break 2
8249  fi
8250done
8251  done
8252IFS=$as_save_IFS
8253
8254fi ;;
8255esac
8256fi
8257ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8258if test -n "$ac_ct_OTOOL"; then
8259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8260printf "%s\n" "$ac_ct_OTOOL" >&6; }
8261else
8262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263printf "%s\n" "no" >&6; }
8264fi
8265
8266  if test "x$ac_ct_OTOOL" = x; then
8267    OTOOL=":"
8268  else
8269    case $cross_compiling:$ac_tool_warned in
8270yes:)
8271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8272printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8273ac_tool_warned=yes ;;
8274esac
8275    OTOOL=$ac_ct_OTOOL
8276  fi
8277else
8278  OTOOL="$ac_cv_prog_OTOOL"
8279fi
8280
8281    if test -n "$ac_tool_prefix"; then
8282  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8283set dummy ${ac_tool_prefix}otool64; ac_word=$2
8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285printf %s "checking for $ac_word... " >&6; }
8286if test ${ac_cv_prog_OTOOL64+y}
8287then :
8288  printf %s "(cached) " >&6
8289else case e in #(
8290  e) if test -n "$OTOOL64"; then
8291  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8292else
8293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296  IFS=$as_save_IFS
8297  case $as_dir in #(((
8298    '') as_dir=./ ;;
8299    */) ;;
8300    *) as_dir=$as_dir/ ;;
8301  esac
8302    for ac_exec_ext in '' $ac_executable_extensions; do
8303  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8304    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8305    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8306    break 2
8307  fi
8308done
8309  done
8310IFS=$as_save_IFS
8311
8312fi ;;
8313esac
8314fi
8315OTOOL64=$ac_cv_prog_OTOOL64
8316if test -n "$OTOOL64"; then
8317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8318printf "%s\n" "$OTOOL64" >&6; }
8319else
8320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321printf "%s\n" "no" >&6; }
8322fi
8323
8324
8325fi
8326if test -z "$ac_cv_prog_OTOOL64"; then
8327  ac_ct_OTOOL64=$OTOOL64
8328  # Extract the first word of "otool64", so it can be a program name with args.
8329set dummy otool64; ac_word=$2
8330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331printf %s "checking for $ac_word... " >&6; }
8332if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8333then :
8334  printf %s "(cached) " >&6
8335else case e in #(
8336  e) if test -n "$ac_ct_OTOOL64"; then
8337  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8338else
8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342  IFS=$as_save_IFS
8343  case $as_dir in #(((
8344    '') as_dir=./ ;;
8345    */) ;;
8346    *) as_dir=$as_dir/ ;;
8347  esac
8348    for ac_exec_ext in '' $ac_executable_extensions; do
8349  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8350    ac_cv_prog_ac_ct_OTOOL64="otool64"
8351    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8352    break 2
8353  fi
8354done
8355  done
8356IFS=$as_save_IFS
8357
8358fi ;;
8359esac
8360fi
8361ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8362if test -n "$ac_ct_OTOOL64"; then
8363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8364printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8365else
8366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367printf "%s\n" "no" >&6; }
8368fi
8369
8370  if test "x$ac_ct_OTOOL64" = x; then
8371    OTOOL64=":"
8372  else
8373    case $cross_compiling:$ac_tool_warned in
8374yes:)
8375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377ac_tool_warned=yes ;;
8378esac
8379    OTOOL64=$ac_ct_OTOOL64
8380  fi
8381else
8382  OTOOL64="$ac_cv_prog_OTOOL64"
8383fi
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8412printf %s "checking for -single_module linker flag... " >&6; }
8413if test ${lt_cv_apple_cc_single_mod+y}
8414then :
8415  printf %s "(cached) " >&6
8416else case e in #(
8417  e) lt_cv_apple_cc_single_mod=no
8418      if test -z "$LT_MULTI_MODULE"; then
8419	# By default we will add the -single_module flag. You can override
8420	# by either setting the environment variable LT_MULTI_MODULE
8421	# non-empty at configure time, or by adding -multi_module to the
8422	# link flags.
8423	rm -rf libconftest.dylib*
8424	echo "int foo(void){return 1;}" > conftest.c
8425	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8426-dynamiclib -Wl,-single_module conftest.c" >&5
8427	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8428	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8429        _lt_result=$?
8430	# If there is a non-empty error log, and "single_module"
8431	# appears in it, assume the flag caused a linker warning
8432        if test -s conftest.err && $GREP single_module conftest.err; then
8433	  cat conftest.err >&5
8434	# Otherwise, if the output was created with a 0 exit code from
8435	# the compiler, it worked.
8436	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8437	  lt_cv_apple_cc_single_mod=yes
8438	else
8439	  cat conftest.err >&5
8440	fi
8441	rm -rf libconftest.dylib*
8442	rm -f conftest.*
8443      fi ;;
8444esac
8445fi
8446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8447printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8448
8449    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8450printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8451if test ${lt_cv_ld_exported_symbols_list+y}
8452then :
8453  printf %s "(cached) " >&6
8454else case e in #(
8455  e) lt_cv_ld_exported_symbols_list=no
8456      save_LDFLAGS=$LDFLAGS
8457      echo "_main" > conftest.sym
8458      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8459      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h.  */
8461
8462int
8463main (void)
8464{
8465
8466  ;
8467  return 0;
8468}
8469_ACEOF
8470if ac_fn_c_try_link "$LINENO"
8471then :
8472  lt_cv_ld_exported_symbols_list=yes
8473else case e in #(
8474  e) lt_cv_ld_exported_symbols_list=no ;;
8475esac
8476fi
8477rm -f core conftest.err conftest.$ac_objext conftest.beam \
8478    conftest$ac_exeext conftest.$ac_ext
8479	LDFLAGS=$save_LDFLAGS
8480     ;;
8481esac
8482fi
8483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8484printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8485
8486    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8487printf %s "checking for -force_load linker flag... " >&6; }
8488if test ${lt_cv_ld_force_load+y}
8489then :
8490  printf %s "(cached) " >&6
8491else case e in #(
8492  e) lt_cv_ld_force_load=no
8493      cat > conftest.c << _LT_EOF
8494int forced_loaded() { return 2;}
8495_LT_EOF
8496      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8497      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8498      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8499      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8500      echo "$RANLIB libconftest.a" >&5
8501      $RANLIB libconftest.a 2>&5
8502      cat > conftest.c << _LT_EOF
8503int main() { return 0;}
8504_LT_EOF
8505      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8506      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8507      _lt_result=$?
8508      if test -s conftest.err && $GREP force_load conftest.err; then
8509	cat conftest.err >&5
8510      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8511	lt_cv_ld_force_load=yes
8512      else
8513	cat conftest.err >&5
8514      fi
8515        rm -f conftest.err libconftest.a conftest conftest.c
8516        rm -rf conftest.dSYM
8517     ;;
8518esac
8519fi
8520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8521printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8522    case $host_os in
8523    rhapsody* | darwin1.[012])
8524      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8525    darwin1.*)
8526      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8527    darwin*)
8528      case $MACOSX_DEPLOYMENT_TARGET,$host in
8529        10.[012],*|,*powerpc*-darwin[5-8]*)
8530          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8531        *)
8532          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8533      esac
8534    ;;
8535  esac
8536    if test yes = "$lt_cv_apple_cc_single_mod"; then
8537      _lt_dar_single_mod='$single_module'
8538    fi
8539    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8540      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8541    else
8542      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8543    fi
8544    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8545      _lt_dsymutil='~$DSYMUTIL $lib || :'
8546    else
8547      _lt_dsymutil=
8548    fi
8549    ;;
8550  esac
8551
8552# func_munge_path_list VARIABLE PATH
8553# -----------------------------------
8554# VARIABLE is name of variable containing _space_ separated list of
8555# directories to be munged by the contents of PATH, which is string
8556# having a format:
8557# "DIR[:DIR]:"
8558#       string "DIR[ DIR]" will be prepended to VARIABLE
8559# ":DIR[:DIR]"
8560#       string "DIR[ DIR]" will be appended to VARIABLE
8561# "DIRP[:DIRP]::[DIRA:]DIRA"
8562#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8563#       "DIRA[ DIRA]" will be appended to VARIABLE
8564# "DIR[:DIR]"
8565#       VARIABLE will be replaced by "DIR[ DIR]"
8566func_munge_path_list ()
8567{
8568    case x$2 in
8569    x)
8570        ;;
8571    *:)
8572        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8573        ;;
8574    x:*)
8575        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8576        ;;
8577    *::*)
8578        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8579        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8580        ;;
8581    *)
8582        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8583        ;;
8584    esac
8585}
8586
8587ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8588"
8589if test "x$ac_cv_header_dlfcn_h" = xyes
8590then :
8591  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8592
8593fi
8594
8595
8596
8597
8598
8599# Set options
8600
8601
8602
8603        enable_dlopen=no
8604
8605
8606  enable_win32_dll=no
8607
8608
8609            # Check whether --enable-shared was given.
8610if test ${enable_shared+y}
8611then :
8612  enableval=$enable_shared; p=${PACKAGE-default}
8613    case $enableval in
8614    yes) enable_shared=yes ;;
8615    no) enable_shared=no ;;
8616    *)
8617      enable_shared=no
8618      # Look at the argument we got.  We use all the common list separators.
8619      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8620      for pkg in $enableval; do
8621	IFS=$lt_save_ifs
8622	if test "X$pkg" = "X$p"; then
8623	  enable_shared=yes
8624	fi
8625      done
8626      IFS=$lt_save_ifs
8627      ;;
8628    esac
8629else case e in #(
8630  e) enable_shared=yes ;;
8631esac
8632fi
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642  # Check whether --enable-static was given.
8643if test ${enable_static+y}
8644then :
8645  enableval=$enable_static; p=${PACKAGE-default}
8646    case $enableval in
8647    yes) enable_static=yes ;;
8648    no) enable_static=no ;;
8649    *)
8650     enable_static=no
8651      # Look at the argument we got.  We use all the common list separators.
8652      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8653      for pkg in $enableval; do
8654	IFS=$lt_save_ifs
8655	if test "X$pkg" = "X$p"; then
8656	  enable_static=yes
8657	fi
8658      done
8659      IFS=$lt_save_ifs
8660      ;;
8661    esac
8662else case e in #(
8663  e) enable_static=yes ;;
8664esac
8665fi
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676# Check whether --with-pic was given.
8677if test ${with_pic+y}
8678then :
8679  withval=$with_pic; lt_p=${PACKAGE-default}
8680    case $withval in
8681    yes|no) pic_mode=$withval ;;
8682    *)
8683      pic_mode=default
8684      # Look at the argument we got.  We use all the common list separators.
8685      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8686      for lt_pkg in $withval; do
8687	IFS=$lt_save_ifs
8688	if test "X$lt_pkg" = "X$lt_p"; then
8689	  pic_mode=yes
8690	fi
8691      done
8692      IFS=$lt_save_ifs
8693      ;;
8694    esac
8695else case e in #(
8696  e) pic_mode=default ;;
8697esac
8698fi
8699
8700
8701
8702
8703
8704
8705
8706
8707  # Check whether --enable-fast-install was given.
8708if test ${enable_fast_install+y}
8709then :
8710  enableval=$enable_fast_install; p=${PACKAGE-default}
8711    case $enableval in
8712    yes) enable_fast_install=yes ;;
8713    no) enable_fast_install=no ;;
8714    *)
8715      enable_fast_install=no
8716      # Look at the argument we got.  We use all the common list separators.
8717      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8718      for pkg in $enableval; do
8719	IFS=$lt_save_ifs
8720	if test "X$pkg" = "X$p"; then
8721	  enable_fast_install=yes
8722	fi
8723      done
8724      IFS=$lt_save_ifs
8725      ;;
8726    esac
8727else case e in #(
8728  e) enable_fast_install=yes ;;
8729esac
8730fi
8731
8732
8733
8734
8735
8736
8737
8738
8739  shared_archive_member_spec=
8740case $host,$enable_shared in
8741power*-*-aix[5-9]*,yes)
8742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8743printf %s "checking which variant of shared library versioning to provide... " >&6; }
8744
8745# Check whether --with-aix-soname was given.
8746if test ${with_aix_soname+y}
8747then :
8748  withval=$with_aix_soname; case $withval in
8749    aix|svr4|both)
8750      ;;
8751    *)
8752      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8753      ;;
8754    esac
8755    lt_cv_with_aix_soname=$with_aix_soname
8756else case e in #(
8757  e) if test ${lt_cv_with_aix_soname+y}
8758then :
8759  printf %s "(cached) " >&6
8760else case e in #(
8761  e) lt_cv_with_aix_soname=aix ;;
8762esac
8763fi
8764
8765    with_aix_soname=$lt_cv_with_aix_soname ;;
8766esac
8767fi
8768
8769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8770printf "%s\n" "$with_aix_soname" >&6; }
8771  if test aix != "$with_aix_soname"; then
8772    # For the AIX way of multilib, we name the shared archive member
8773    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8774    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8775    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8776    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8777    if test 64 = "${OBJECT_MODE-32}"; then
8778      shared_archive_member_spec=shr_64
8779    else
8780      shared_archive_member_spec=shr
8781    fi
8782  fi
8783  ;;
8784*)
8785  with_aix_soname=aix
8786  ;;
8787esac
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798# This can be used to rebuild libtool when needed
8799LIBTOOL_DEPS=$ltmain
8800
8801# Always use our own libtool.
8802LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833test -z "$LN_S" && LN_S="ln -s"
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848if test -n "${ZSH_VERSION+set}"; then
8849   setopt NO_GLOB_SUBST
8850fi
8851
8852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8853printf %s "checking for objdir... " >&6; }
8854if test ${lt_cv_objdir+y}
8855then :
8856  printf %s "(cached) " >&6
8857else case e in #(
8858  e) rm -f .libs 2>/dev/null
8859mkdir .libs 2>/dev/null
8860if test -d .libs; then
8861  lt_cv_objdir=.libs
8862else
8863  # MS-DOS does not allow filenames that begin with a dot.
8864  lt_cv_objdir=_libs
8865fi
8866rmdir .libs 2>/dev/null ;;
8867esac
8868fi
8869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8870printf "%s\n" "$lt_cv_objdir" >&6; }
8871objdir=$lt_cv_objdir
8872
8873
8874
8875
8876
8877printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8878
8879
8880
8881
8882case $host_os in
8883aix3*)
8884  # AIX sometimes has problems with the GCC collect2 program.  For some
8885  # reason, if we set the COLLECT_NAMES environment variable, the problems
8886  # vanish in a puff of smoke.
8887  if test set != "${COLLECT_NAMES+set}"; then
8888    COLLECT_NAMES=
8889    export COLLECT_NAMES
8890  fi
8891  ;;
8892esac
8893
8894# Global variables:
8895ofile=libtool
8896can_build_shared=yes
8897
8898# All known linkers require a '.a' archive for static linking (except MSVC and
8899# ICC, which need '.lib').
8900libext=a
8901
8902with_gnu_ld=$lt_cv_prog_gnu_ld
8903
8904old_CC=$CC
8905old_CFLAGS=$CFLAGS
8906
8907# Set sane defaults for various variables
8908test -z "$CC" && CC=cc
8909test -z "$LTCC" && LTCC=$CC
8910test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8911test -z "$LD" && LD=ld
8912test -z "$ac_objext" && ac_objext=o
8913
8914func_cc_basename $compiler
8915cc_basename=$func_cc_basename_result
8916
8917
8918# Only perform the check for file, if the check method requires it
8919test -z "$MAGIC_CMD" && MAGIC_CMD=file
8920case $deplibs_check_method in
8921file_magic*)
8922  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8923    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8924printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8925if test ${lt_cv_path_MAGIC_CMD+y}
8926then :
8927  printf %s "(cached) " >&6
8928else case e in #(
8929  e) case $MAGIC_CMD in
8930[\\/*] |  ?:[\\/]*)
8931  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8932  ;;
8933*)
8934  lt_save_MAGIC_CMD=$MAGIC_CMD
8935  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8936  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8937  for ac_dir in $ac_dummy; do
8938    IFS=$lt_save_ifs
8939    test -z "$ac_dir" && ac_dir=.
8940    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8941      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8942      if test -n "$file_magic_test_file"; then
8943	case $deplibs_check_method in
8944	"file_magic "*)
8945	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8946	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8947	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8948	    $EGREP "$file_magic_regex" > /dev/null; then
8949	    :
8950	  else
8951	    cat <<_LT_EOF 1>&2
8952
8953*** Warning: the command libtool uses to detect shared libraries,
8954*** $file_magic_cmd, produces output that libtool cannot recognize.
8955*** The result is that libtool may fail to recognize shared libraries
8956*** as such.  This will affect the creation of libtool libraries that
8957*** depend on shared libraries, but programs linked with such libtool
8958*** libraries will work regardless of this problem.  Nevertheless, you
8959*** may want to report the problem to your system manager and/or to
8960*** bug-libtool@gnu.org
8961
8962_LT_EOF
8963	  fi ;;
8964	esac
8965      fi
8966      break
8967    fi
8968  done
8969  IFS=$lt_save_ifs
8970  MAGIC_CMD=$lt_save_MAGIC_CMD
8971  ;;
8972esac ;;
8973esac
8974fi
8975
8976MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8977if test -n "$MAGIC_CMD"; then
8978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8979printf "%s\n" "$MAGIC_CMD" >&6; }
8980else
8981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982printf "%s\n" "no" >&6; }
8983fi
8984
8985
8986
8987
8988
8989if test -z "$lt_cv_path_MAGIC_CMD"; then
8990  if test -n "$ac_tool_prefix"; then
8991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8992printf %s "checking for file... " >&6; }
8993if test ${lt_cv_path_MAGIC_CMD+y}
8994then :
8995  printf %s "(cached) " >&6
8996else case e in #(
8997  e) case $MAGIC_CMD in
8998[\\/*] |  ?:[\\/]*)
8999  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9000  ;;
9001*)
9002  lt_save_MAGIC_CMD=$MAGIC_CMD
9003  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9004  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9005  for ac_dir in $ac_dummy; do
9006    IFS=$lt_save_ifs
9007    test -z "$ac_dir" && ac_dir=.
9008    if test -f "$ac_dir/file"; then
9009      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9010      if test -n "$file_magic_test_file"; then
9011	case $deplibs_check_method in
9012	"file_magic "*)
9013	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9014	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9015	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9016	    $EGREP "$file_magic_regex" > /dev/null; then
9017	    :
9018	  else
9019	    cat <<_LT_EOF 1>&2
9020
9021*** Warning: the command libtool uses to detect shared libraries,
9022*** $file_magic_cmd, produces output that libtool cannot recognize.
9023*** The result is that libtool may fail to recognize shared libraries
9024*** as such.  This will affect the creation of libtool libraries that
9025*** depend on shared libraries, but programs linked with such libtool
9026*** libraries will work regardless of this problem.  Nevertheless, you
9027*** may want to report the problem to your system manager and/or to
9028*** bug-libtool@gnu.org
9029
9030_LT_EOF
9031	  fi ;;
9032	esac
9033      fi
9034      break
9035    fi
9036  done
9037  IFS=$lt_save_ifs
9038  MAGIC_CMD=$lt_save_MAGIC_CMD
9039  ;;
9040esac ;;
9041esac
9042fi
9043
9044MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9045if test -n "$MAGIC_CMD"; then
9046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9047printf "%s\n" "$MAGIC_CMD" >&6; }
9048else
9049  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050printf "%s\n" "no" >&6; }
9051fi
9052
9053
9054  else
9055    MAGIC_CMD=:
9056  fi
9057fi
9058
9059  fi
9060  ;;
9061esac
9062
9063# Use C for the default configuration in the libtool script
9064
9065lt_save_CC=$CC
9066ac_ext=c
9067ac_cpp='$CPP $CPPFLAGS'
9068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9070ac_compiler_gnu=$ac_cv_c_compiler_gnu
9071
9072
9073# Source file extension for C test sources.
9074ac_ext=c
9075
9076# Object file extension for compiled C test sources.
9077objext=o
9078objext=$objext
9079
9080# Code to be used in simple compile tests
9081lt_simple_compile_test_code="int some_variable = 0;"
9082
9083# Code to be used in simple link tests
9084lt_simple_link_test_code='int main(){return(0);}'
9085
9086
9087
9088
9089
9090
9091
9092# If no C compiler was specified, use CC.
9093LTCC=${LTCC-"$CC"}
9094
9095# If no C compiler flags were specified, use CFLAGS.
9096LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9097
9098# Allow CC to be a program name with arguments.
9099compiler=$CC
9100
9101# Save the default compiler, since it gets overwritten when the other
9102# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9103compiler_DEFAULT=$CC
9104
9105# save warnings/boilerplate of simple test code
9106ac_outfile=conftest.$ac_objext
9107echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9108eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9109_lt_compiler_boilerplate=`cat conftest.err`
9110$RM conftest*
9111
9112ac_outfile=conftest.$ac_objext
9113echo "$lt_simple_link_test_code" >conftest.$ac_ext
9114eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9115_lt_linker_boilerplate=`cat conftest.err`
9116$RM -r conftest*
9117
9118
9119## CAVEAT EMPTOR:
9120## There is no encapsulation within the following macros, do not change
9121## the running order or otherwise move them around unless you know exactly
9122## what you are doing...
9123if test -n "$compiler"; then
9124
9125lt_prog_compiler_no_builtin_flag=
9126
9127if test yes = "$GCC"; then
9128  case $cc_basename in
9129  nvcc*)
9130    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9131  *)
9132    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9133  esac
9134
9135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9136printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9137if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9138then :
9139  printf %s "(cached) " >&6
9140else case e in #(
9141  e) lt_cv_prog_compiler_rtti_exceptions=no
9142   ac_outfile=conftest.$ac_objext
9143   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9145   # Insert the option either (1) after the last *FLAGS variable, or
9146   # (2) before a word containing "conftest.", or (3) at the end.
9147   # Note that $ac_compile itself does not contain backslashes and begins
9148   # with a dollar sign (not a hyphen), so the echo should work correctly.
9149   # The option is referenced via a variable to avoid confusing sed.
9150   lt_compile=`echo "$ac_compile" | $SED \
9151   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153   -e 's:$: $lt_compiler_flag:'`
9154   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9155   (eval "$lt_compile" 2>conftest.err)
9156   ac_status=$?
9157   cat conftest.err >&5
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   if (exit $ac_status) && test -s "$ac_outfile"; then
9160     # The compiler can only warn and ignore the option if not recognized
9161     # So say no if there are warnings other than the usual output.
9162     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9163     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9164     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9165       lt_cv_prog_compiler_rtti_exceptions=yes
9166     fi
9167   fi
9168   $RM conftest*
9169 ;;
9170esac
9171fi
9172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9173printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9174
9175if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9176    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9177else
9178    :
9179fi
9180
9181fi
9182
9183
9184
9185
9186
9187
9188  lt_prog_compiler_wl=
9189lt_prog_compiler_pic=
9190lt_prog_compiler_static=
9191
9192
9193  if test yes = "$GCC"; then
9194    lt_prog_compiler_wl='-Wl,'
9195    lt_prog_compiler_static='-static'
9196
9197    case $host_os in
9198      aix*)
9199      # All AIX code is PIC.
9200      if test ia64 = "$host_cpu"; then
9201	# AIX 5 now supports IA64 processor
9202	lt_prog_compiler_static='-Bstatic'
9203      fi
9204      lt_prog_compiler_pic='-fPIC'
9205      ;;
9206
9207    amigaos*)
9208      case $host_cpu in
9209      powerpc)
9210            # see comment about AmigaOS4 .so support
9211            lt_prog_compiler_pic='-fPIC'
9212        ;;
9213      m68k)
9214            # FIXME: we need at least 68020 code to build shared libraries, but
9215            # adding the '-m68020' flag to GCC prevents building anything better,
9216            # like '-m68040'.
9217            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9218        ;;
9219      esac
9220      ;;
9221
9222    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9223      # PIC is the default for these OSes.
9224      ;;
9225
9226    mingw* | cygwin* | pw32* | os2* | cegcc*)
9227      # This hack is so that the source file can tell whether it is being
9228      # built for inclusion in a dll (and should export symbols for example).
9229      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9230      # (--disable-auto-import) libraries
9231      lt_prog_compiler_pic='-DDLL_EXPORT'
9232      case $host_os in
9233      os2*)
9234	lt_prog_compiler_static='$wl-static'
9235	;;
9236      esac
9237      ;;
9238
9239    darwin* | rhapsody*)
9240      # PIC is the default on this platform
9241      # Common symbols not allowed in MH_DYLIB files
9242      lt_prog_compiler_pic='-fno-common'
9243      ;;
9244
9245    haiku*)
9246      # PIC is the default for Haiku.
9247      # The "-static" flag exists, but is broken.
9248      lt_prog_compiler_static=
9249      ;;
9250
9251    hpux*)
9252      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9253      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9254      # sets the default TLS model and affects inlining.
9255      case $host_cpu in
9256      hppa*64*)
9257	# +Z the default
9258	;;
9259      *)
9260	lt_prog_compiler_pic='-fPIC'
9261	;;
9262      esac
9263      ;;
9264
9265    interix[3-9]*)
9266      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9267      # Instead, we relocate shared libraries at runtime.
9268      ;;
9269
9270    msdosdjgpp*)
9271      # Just because we use GCC doesn't mean we suddenly get shared libraries
9272      # on systems that don't support them.
9273      lt_prog_compiler_can_build_shared=no
9274      enable_shared=no
9275      ;;
9276
9277    *nto* | *qnx*)
9278      # QNX uses GNU C++, but need to define -shared option too, otherwise
9279      # it will coredump.
9280      lt_prog_compiler_pic='-fPIC -shared'
9281      ;;
9282
9283    sysv4*MP*)
9284      if test -d /usr/nec; then
9285	lt_prog_compiler_pic=-Kconform_pic
9286      fi
9287      ;;
9288
9289    *)
9290      lt_prog_compiler_pic='-fPIC'
9291      ;;
9292    esac
9293
9294    case $cc_basename in
9295    nvcc*) # Cuda Compiler Driver 2.2
9296      lt_prog_compiler_wl='-Xlinker '
9297      if test -n "$lt_prog_compiler_pic"; then
9298        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9299      fi
9300      ;;
9301    esac
9302  else
9303    # PORTME Check for flag to pass linker flags through the system compiler.
9304    case $host_os in
9305    aix*)
9306      lt_prog_compiler_wl='-Wl,'
9307      if test ia64 = "$host_cpu"; then
9308	# AIX 5 now supports IA64 processor
9309	lt_prog_compiler_static='-Bstatic'
9310      else
9311	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9312      fi
9313      ;;
9314
9315    darwin* | rhapsody*)
9316      # PIC is the default on this platform
9317      # Common symbols not allowed in MH_DYLIB files
9318      lt_prog_compiler_pic='-fno-common'
9319      case $cc_basename in
9320      nagfor*)
9321        # NAG Fortran compiler
9322        lt_prog_compiler_wl='-Wl,-Wl,,'
9323        lt_prog_compiler_pic='-PIC'
9324        lt_prog_compiler_static='-Bstatic'
9325        ;;
9326      esac
9327      ;;
9328
9329    mingw* | cygwin* | pw32* | os2* | cegcc*)
9330      # This hack is so that the source file can tell whether it is being
9331      # built for inclusion in a dll (and should export symbols for example).
9332      lt_prog_compiler_pic='-DDLL_EXPORT'
9333      case $host_os in
9334      os2*)
9335	lt_prog_compiler_static='$wl-static'
9336	;;
9337      esac
9338      ;;
9339
9340    hpux9* | hpux10* | hpux11*)
9341      lt_prog_compiler_wl='-Wl,'
9342      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9343      # not for PA HP-UX.
9344      case $host_cpu in
9345      hppa*64*|ia64*)
9346	# +Z the default
9347	;;
9348      *)
9349	lt_prog_compiler_pic='+Z'
9350	;;
9351      esac
9352      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9353      lt_prog_compiler_static='$wl-a ${wl}archive'
9354      ;;
9355
9356    irix5* | irix6* | nonstopux*)
9357      lt_prog_compiler_wl='-Wl,'
9358      # PIC (with -KPIC) is the default.
9359      lt_prog_compiler_static='-non_shared'
9360      ;;
9361
9362    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9363      case $cc_basename in
9364      # old Intel for x86_64, which still supported -KPIC.
9365      ecc*)
9366	lt_prog_compiler_wl='-Wl,'
9367	lt_prog_compiler_pic='-KPIC'
9368	lt_prog_compiler_static='-static'
9369        ;;
9370      # icc used to be incompatible with GCC.
9371      # ICC 10 doesn't accept -KPIC any more.
9372      icc* | ifort*)
9373	lt_prog_compiler_wl='-Wl,'
9374	lt_prog_compiler_pic='-fPIC'
9375	lt_prog_compiler_static='-static'
9376        ;;
9377      # Lahey Fortran 8.1.
9378      lf95*)
9379	lt_prog_compiler_wl='-Wl,'
9380	lt_prog_compiler_pic='--shared'
9381	lt_prog_compiler_static='--static'
9382	;;
9383      nagfor*)
9384	# NAG Fortran compiler
9385	lt_prog_compiler_wl='-Wl,-Wl,,'
9386	lt_prog_compiler_pic='-PIC'
9387	lt_prog_compiler_static='-Bstatic'
9388	;;
9389      tcc*)
9390	# Fabrice Bellard et al's Tiny C Compiler
9391	lt_prog_compiler_wl='-Wl,'
9392	lt_prog_compiler_pic='-fPIC'
9393	lt_prog_compiler_static='-static'
9394	;;
9395      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9396        # Portland Group compilers (*not* the Pentium gcc compiler,
9397	# which looks to be a dead project)
9398	lt_prog_compiler_wl='-Wl,'
9399	lt_prog_compiler_pic='-fpic'
9400	lt_prog_compiler_static='-Bstatic'
9401        ;;
9402      ccc*)
9403        lt_prog_compiler_wl='-Wl,'
9404        # All Alpha code is PIC.
9405        lt_prog_compiler_static='-non_shared'
9406        ;;
9407      xl* | bgxl* | bgf* | mpixl*)
9408	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9409	lt_prog_compiler_wl='-Wl,'
9410	lt_prog_compiler_pic='-qpic'
9411	lt_prog_compiler_static='-qstaticlink'
9412	;;
9413      *)
9414	case `$CC -V 2>&1 | $SED 5q` in
9415	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9416	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9417	  lt_prog_compiler_pic='-KPIC'
9418	  lt_prog_compiler_static='-Bstatic'
9419	  lt_prog_compiler_wl=''
9420	  ;;
9421	*Sun\ F* | *Sun*Fortran*)
9422	  lt_prog_compiler_pic='-KPIC'
9423	  lt_prog_compiler_static='-Bstatic'
9424	  lt_prog_compiler_wl='-Qoption ld '
9425	  ;;
9426	*Sun\ C*)
9427	  # Sun C 5.9
9428	  lt_prog_compiler_pic='-KPIC'
9429	  lt_prog_compiler_static='-Bstatic'
9430	  lt_prog_compiler_wl='-Wl,'
9431	  ;;
9432        *Intel*\ [CF]*Compiler*)
9433	  lt_prog_compiler_wl='-Wl,'
9434	  lt_prog_compiler_pic='-fPIC'
9435	  lt_prog_compiler_static='-static'
9436	  ;;
9437	*Portland\ Group*)
9438	  lt_prog_compiler_wl='-Wl,'
9439	  lt_prog_compiler_pic='-fpic'
9440	  lt_prog_compiler_static='-Bstatic'
9441	  ;;
9442	esac
9443	;;
9444      esac
9445      ;;
9446
9447    newsos6)
9448      lt_prog_compiler_pic='-KPIC'
9449      lt_prog_compiler_static='-Bstatic'
9450      ;;
9451
9452    *nto* | *qnx*)
9453      # QNX uses GNU C++, but need to define -shared option too, otherwise
9454      # it will coredump.
9455      lt_prog_compiler_pic='-fPIC -shared'
9456      ;;
9457
9458    osf3* | osf4* | osf5*)
9459      lt_prog_compiler_wl='-Wl,'
9460      # All OSF/1 code is PIC.
9461      lt_prog_compiler_static='-non_shared'
9462      ;;
9463
9464    rdos*)
9465      lt_prog_compiler_static='-non_shared'
9466      ;;
9467
9468    solaris*)
9469      lt_prog_compiler_pic='-KPIC'
9470      lt_prog_compiler_static='-Bstatic'
9471      case $cc_basename in
9472      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9473	lt_prog_compiler_wl='-Qoption ld ';;
9474      *)
9475	lt_prog_compiler_wl='-Wl,';;
9476      esac
9477      ;;
9478
9479    sunos4*)
9480      lt_prog_compiler_wl='-Qoption ld '
9481      lt_prog_compiler_pic='-PIC'
9482      lt_prog_compiler_static='-Bstatic'
9483      ;;
9484
9485    sysv4 | sysv4.2uw2* | sysv4.3*)
9486      lt_prog_compiler_wl='-Wl,'
9487      lt_prog_compiler_pic='-KPIC'
9488      lt_prog_compiler_static='-Bstatic'
9489      ;;
9490
9491    sysv4*MP*)
9492      if test -d /usr/nec; then
9493	lt_prog_compiler_pic='-Kconform_pic'
9494	lt_prog_compiler_static='-Bstatic'
9495      fi
9496      ;;
9497
9498    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9499      lt_prog_compiler_wl='-Wl,'
9500      lt_prog_compiler_pic='-KPIC'
9501      lt_prog_compiler_static='-Bstatic'
9502      ;;
9503
9504    unicos*)
9505      lt_prog_compiler_wl='-Wl,'
9506      lt_prog_compiler_can_build_shared=no
9507      ;;
9508
9509    uts4*)
9510      lt_prog_compiler_pic='-pic'
9511      lt_prog_compiler_static='-Bstatic'
9512      ;;
9513
9514    *)
9515      lt_prog_compiler_can_build_shared=no
9516      ;;
9517    esac
9518  fi
9519
9520case $host_os in
9521  # For platforms that do not support PIC, -DPIC is meaningless:
9522  *djgpp*)
9523    lt_prog_compiler_pic=
9524    ;;
9525  *)
9526    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9527    ;;
9528esac
9529
9530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9531printf %s "checking for $compiler option to produce PIC... " >&6; }
9532if test ${lt_cv_prog_compiler_pic+y}
9533then :
9534  printf %s "(cached) " >&6
9535else case e in #(
9536  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9537esac
9538fi
9539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9540printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9541lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9542
9543#
9544# Check to make sure the PIC flag actually works.
9545#
9546if test -n "$lt_prog_compiler_pic"; then
9547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9548printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9549if test ${lt_cv_prog_compiler_pic_works+y}
9550then :
9551  printf %s "(cached) " >&6
9552else case e in #(
9553  e) lt_cv_prog_compiler_pic_works=no
9554   ac_outfile=conftest.$ac_objext
9555   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9556   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9557   # Insert the option either (1) after the last *FLAGS variable, or
9558   # (2) before a word containing "conftest.", or (3) at the end.
9559   # Note that $ac_compile itself does not contain backslashes and begins
9560   # with a dollar sign (not a hyphen), so the echo should work correctly.
9561   # The option is referenced via a variable to avoid confusing sed.
9562   lt_compile=`echo "$ac_compile" | $SED \
9563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9565   -e 's:$: $lt_compiler_flag:'`
9566   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9567   (eval "$lt_compile" 2>conftest.err)
9568   ac_status=$?
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   if (exit $ac_status) && test -s "$ac_outfile"; then
9572     # The compiler can only warn and ignore the option if not recognized
9573     # So say no if there are warnings other than the usual output.
9574     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9575     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9576     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9577       lt_cv_prog_compiler_pic_works=yes
9578     fi
9579   fi
9580   $RM conftest*
9581 ;;
9582esac
9583fi
9584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9585printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9586
9587if test yes = "$lt_cv_prog_compiler_pic_works"; then
9588    case $lt_prog_compiler_pic in
9589     "" | " "*) ;;
9590     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9591     esac
9592else
9593    lt_prog_compiler_pic=
9594     lt_prog_compiler_can_build_shared=no
9595fi
9596
9597fi
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609#
9610# Check to make sure the static flag actually works.
9611#
9612wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9614printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9615if test ${lt_cv_prog_compiler_static_works+y}
9616then :
9617  printf %s "(cached) " >&6
9618else case e in #(
9619  e) lt_cv_prog_compiler_static_works=no
9620   save_LDFLAGS=$LDFLAGS
9621   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9622   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9623   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9624     # The linker can only warn and ignore the option if not recognized
9625     # So say no if there are warnings
9626     if test -s conftest.err; then
9627       # Append any errors to the config.log.
9628       cat conftest.err 1>&5
9629       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9630       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9631       if diff conftest.exp conftest.er2 >/dev/null; then
9632         lt_cv_prog_compiler_static_works=yes
9633       fi
9634     else
9635       lt_cv_prog_compiler_static_works=yes
9636     fi
9637   fi
9638   $RM -r conftest*
9639   LDFLAGS=$save_LDFLAGS
9640 ;;
9641esac
9642fi
9643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9644printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9645
9646if test yes = "$lt_cv_prog_compiler_static_works"; then
9647    :
9648else
9649    lt_prog_compiler_static=
9650fi
9651
9652
9653
9654
9655
9656
9657
9658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9659printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9660if test ${lt_cv_prog_compiler_c_o+y}
9661then :
9662  printf %s "(cached) " >&6
9663else case e in #(
9664  e) lt_cv_prog_compiler_c_o=no
9665   $RM -r conftest 2>/dev/null
9666   mkdir conftest
9667   cd conftest
9668   mkdir out
9669   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670
9671   lt_compiler_flag="-o out/conftest2.$ac_objext"
9672   # Insert the option either (1) after the last *FLAGS variable, or
9673   # (2) before a word containing "conftest.", or (3) at the end.
9674   # Note that $ac_compile itself does not contain backslashes and begins
9675   # with a dollar sign (not a hyphen), so the echo should work correctly.
9676   lt_compile=`echo "$ac_compile" | $SED \
9677   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679   -e 's:$: $lt_compiler_flag:'`
9680   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681   (eval "$lt_compile" 2>out/conftest.err)
9682   ac_status=$?
9683   cat out/conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9686   then
9687     # The compiler can only warn and ignore the option if not recognized
9688     # So say no if there are warnings
9689     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9690     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9691     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9692       lt_cv_prog_compiler_c_o=yes
9693     fi
9694   fi
9695   chmod u+w . 2>&5
9696   $RM conftest*
9697   # SGI C++ compiler will create directory out/ii_files/ for
9698   # template instantiation
9699   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9700   $RM out/* && rmdir out
9701   cd ..
9702   $RM -r conftest
9703   $RM conftest*
9704 ;;
9705esac
9706fi
9707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9708printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9709
9710
9711
9712
9713
9714
9715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9716printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9717if test ${lt_cv_prog_compiler_c_o+y}
9718then :
9719  printf %s "(cached) " >&6
9720else case e in #(
9721  e) lt_cv_prog_compiler_c_o=no
9722   $RM -r conftest 2>/dev/null
9723   mkdir conftest
9724   cd conftest
9725   mkdir out
9726   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727
9728   lt_compiler_flag="-o out/conftest2.$ac_objext"
9729   # Insert the option either (1) after the last *FLAGS variable, or
9730   # (2) before a word containing "conftest.", or (3) at the end.
9731   # Note that $ac_compile itself does not contain backslashes and begins
9732   # with a dollar sign (not a hyphen), so the echo should work correctly.
9733   lt_compile=`echo "$ac_compile" | $SED \
9734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736   -e 's:$: $lt_compiler_flag:'`
9737   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9738   (eval "$lt_compile" 2>out/conftest.err)
9739   ac_status=$?
9740   cat out/conftest.err >&5
9741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9743   then
9744     # The compiler can only warn and ignore the option if not recognized
9745     # So say no if there are warnings
9746     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9747     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9748     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9749       lt_cv_prog_compiler_c_o=yes
9750     fi
9751   fi
9752   chmod u+w . 2>&5
9753   $RM conftest*
9754   # SGI C++ compiler will create directory out/ii_files/ for
9755   # template instantiation
9756   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9757   $RM out/* && rmdir out
9758   cd ..
9759   $RM -r conftest
9760   $RM conftest*
9761 ;;
9762esac
9763fi
9764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9765printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9766
9767
9768
9769
9770hard_links=nottested
9771if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9772  # do not overwrite the value of need_locks provided by the user
9773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9774printf %s "checking if we can lock with hard links... " >&6; }
9775  hard_links=yes
9776  $RM conftest*
9777  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9778  touch conftest.a
9779  ln conftest.a conftest.b 2>&5 || hard_links=no
9780  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9782printf "%s\n" "$hard_links" >&6; }
9783  if test no = "$hard_links"; then
9784    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9785printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9786    need_locks=warn
9787  fi
9788else
9789  need_locks=no
9790fi
9791
9792
9793
9794
9795
9796
9797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9798printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9799
9800  runpath_var=
9801  allow_undefined_flag=
9802  always_export_symbols=no
9803  archive_cmds=
9804  archive_expsym_cmds=
9805  compiler_needs_object=no
9806  enable_shared_with_static_runtimes=no
9807  export_dynamic_flag_spec=
9808  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9809  hardcode_automatic=no
9810  hardcode_direct=no
9811  hardcode_direct_absolute=no
9812  hardcode_libdir_flag_spec=
9813  hardcode_libdir_separator=
9814  hardcode_minus_L=no
9815  hardcode_shlibpath_var=unsupported
9816  inherit_rpath=no
9817  link_all_deplibs=unknown
9818  module_cmds=
9819  module_expsym_cmds=
9820  old_archive_from_new_cmds=
9821  old_archive_from_expsyms_cmds=
9822  thread_safe_flag_spec=
9823  whole_archive_flag_spec=
9824  # include_expsyms should be a list of space-separated symbols to be *always*
9825  # included in the symbol list
9826  include_expsyms=
9827  # exclude_expsyms can be an extended regexp of symbols to exclude
9828  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9829  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9830  # as well as any symbol that contains 'd'.
9831  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9832  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9833  # platforms (ab)use it in PIC code, but their linkers get confused if
9834  # the symbol is explicitly referenced.  Since portable code cannot
9835  # rely on this symbol name, it's probably fine to never include it in
9836  # preloaded symbol tables.
9837  # Exclude shared library initialization/finalization symbols.
9838  extract_expsyms_cmds=
9839
9840  case $host_os in
9841  cygwin* | mingw* | pw32* | cegcc*)
9842    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9843    # When not using gcc, we currently assume that we are using
9844    # Microsoft Visual C++ or Intel C++ Compiler.
9845    if test yes != "$GCC"; then
9846      with_gnu_ld=no
9847    fi
9848    ;;
9849  interix*)
9850    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9851    with_gnu_ld=yes
9852    ;;
9853  openbsd* | bitrig*)
9854    with_gnu_ld=no
9855    ;;
9856  esac
9857
9858  ld_shlibs=yes
9859
9860  # On some targets, GNU ld is compatible enough with the native linker
9861  # that we're better off using the native interface for both.
9862  lt_use_gnu_ld_interface=no
9863  if test yes = "$with_gnu_ld"; then
9864    case $host_os in
9865      aix*)
9866	# The AIX port of GNU ld has always aspired to compatibility
9867	# with the native linker.  However, as the warning in the GNU ld
9868	# block says, versions before 2.19.5* couldn't really create working
9869	# shared libraries, regardless of the interface used.
9870	case `$LD -v 2>&1` in
9871	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9872	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9873	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9874	  *)
9875	    lt_use_gnu_ld_interface=yes
9876	    ;;
9877	esac
9878	;;
9879      *)
9880	lt_use_gnu_ld_interface=yes
9881	;;
9882    esac
9883  fi
9884
9885  if test yes = "$lt_use_gnu_ld_interface"; then
9886    # If archive_cmds runs LD, not CC, wlarc should be empty
9887    wlarc='$wl'
9888
9889    # Set some defaults for GNU ld with shared library support. These
9890    # are reset later if shared libraries are not supported. Putting them
9891    # here allows them to be overridden if necessary.
9892    runpath_var=LD_RUN_PATH
9893    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9894    export_dynamic_flag_spec='$wl--export-dynamic'
9895    # ancient GNU ld didn't support --whole-archive et. al.
9896    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9897      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9898    else
9899      whole_archive_flag_spec=
9900    fi
9901    supports_anon_versioning=no
9902    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9903      *GNU\ gold*) supports_anon_versioning=yes ;;
9904      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9905      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9906      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9907      *\ 2.11.*) ;; # other 2.11 versions
9908      *) supports_anon_versioning=yes ;;
9909    esac
9910
9911    # See if GNU ld supports shared libraries.
9912    case $host_os in
9913    aix[3-9]*)
9914      # On AIX/PPC, the GNU linker is very broken
9915      if test ia64 != "$host_cpu"; then
9916	ld_shlibs=no
9917	cat <<_LT_EOF 1>&2
9918
9919*** Warning: the GNU linker, at least up to release 2.19, is reported
9920*** to be unable to reliably create shared libraries on AIX.
9921*** Therefore, libtool is disabling shared libraries support.  If you
9922*** really care for shared libraries, you may want to install binutils
9923*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9924*** You will then need to restart the configuration process.
9925
9926_LT_EOF
9927      fi
9928      ;;
9929
9930    amigaos*)
9931      case $host_cpu in
9932      powerpc)
9933            # see comment about AmigaOS4 .so support
9934            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9935            archive_expsym_cmds=''
9936        ;;
9937      m68k)
9938            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)'
9939            hardcode_libdir_flag_spec='-L$libdir'
9940            hardcode_minus_L=yes
9941        ;;
9942      esac
9943      ;;
9944
9945    beos*)
9946      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947	allow_undefined_flag=unsupported
9948	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9949	# support --undefined.  This deserves some investigation.  FIXME
9950	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9951      else
9952	ld_shlibs=no
9953      fi
9954      ;;
9955
9956    cygwin* | mingw* | pw32* | cegcc*)
9957      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9958      # as there is no search path for DLLs.
9959      hardcode_libdir_flag_spec='-L$libdir'
9960      export_dynamic_flag_spec='$wl--export-all-symbols'
9961      allow_undefined_flag=unsupported
9962      always_export_symbols=no
9963      enable_shared_with_static_runtimes=yes
9964      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'
9965      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9966
9967      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9968        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9969	# If the export-symbols file already is a .def file, use it as
9970	# is; otherwise, prepend EXPORTS...
9971	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9972          cp $export_symbols $output_objdir/$soname.def;
9973        else
9974          echo EXPORTS > $output_objdir/$soname.def;
9975          cat $export_symbols >> $output_objdir/$soname.def;
9976        fi~
9977        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9978      else
9979	ld_shlibs=no
9980      fi
9981      ;;
9982
9983    haiku*)
9984      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985      link_all_deplibs=yes
9986      ;;
9987
9988    os2*)
9989      hardcode_libdir_flag_spec='-L$libdir'
9990      hardcode_minus_L=yes
9991      allow_undefined_flag=unsupported
9992      shrext_cmds=.dll
9993      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9994	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9995	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9996	$ECHO EXPORTS >> $output_objdir/$libname.def~
9997	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9998	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9999	emximp -o $lib $output_objdir/$libname.def'
10000      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10001	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10002	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10003	$ECHO EXPORTS >> $output_objdir/$libname.def~
10004	prefix_cmds="$SED"~
10005	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10006	  prefix_cmds="$prefix_cmds -e 1d";
10007	fi~
10008	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10009	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10010	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011	emximp -o $lib $output_objdir/$libname.def'
10012      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10013      enable_shared_with_static_runtimes=yes
10014      file_list_spec='@'
10015      ;;
10016
10017    interix[3-9]*)
10018      hardcode_direct=no
10019      hardcode_shlibpath_var=no
10020      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10021      export_dynamic_flag_spec='$wl-E'
10022      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10023      # Instead, shared libraries are loaded at an image base (0x10000000 by
10024      # default) and relocated if they conflict, which is a slow very memory
10025      # consuming and fragmenting process.  To avoid this, we pick a random,
10026      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10027      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10028      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10029      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'
10030      ;;
10031
10032    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10033      tmp_diet=no
10034      if test linux-dietlibc = "$host_os"; then
10035	case $cc_basename in
10036	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10037	esac
10038      fi
10039      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10040	 && test no = "$tmp_diet"
10041      then
10042	tmp_addflag=' $pic_flag'
10043	tmp_sharedflag='-shared'
10044	case $cc_basename,$host_cpu in
10045        pgcc*)				# Portland Group C compiler
10046	  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'
10047	  tmp_addflag=' $pic_flag'
10048	  ;;
10049	pgf77* | pgf90* | pgf95* | pgfortran*)
10050					# Portland Group f77 and f90 compilers
10051	  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'
10052	  tmp_addflag=' $pic_flag -Mnomain' ;;
10053	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10054	  tmp_addflag=' -i_dynamic' ;;
10055	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10056	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10057	ifc* | ifort*)			# Intel Fortran compiler
10058	  tmp_addflag=' -nofor_main' ;;
10059	lf95*)				# Lahey Fortran 8.1
10060	  whole_archive_flag_spec=
10061	  tmp_sharedflag='--shared' ;;
10062        nagfor*)                        # NAGFOR 5.3
10063          tmp_sharedflag='-Wl,-shared' ;;
10064	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10065	  tmp_sharedflag='-qmkshrobj'
10066	  tmp_addflag= ;;
10067	nvcc*)	# Cuda Compiler Driver 2.2
10068	  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'
10069	  compiler_needs_object=yes
10070	  ;;
10071	esac
10072	case `$CC -V 2>&1 | $SED 5q` in
10073	*Sun\ C*)			# Sun C 5.9
10074	  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'
10075	  compiler_needs_object=yes
10076	  tmp_sharedflag='-G' ;;
10077	*Sun\ F*)			# Sun Fortran 8.3
10078	  tmp_sharedflag='-G' ;;
10079	esac
10080	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10081
10082        if test yes = "$supports_anon_versioning"; then
10083          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10084            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10085            echo "local: *; };" >> $output_objdir/$libname.ver~
10086            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10087        fi
10088
10089	case $cc_basename in
10090	tcc*)
10091	  export_dynamic_flag_spec='-rdynamic'
10092	  ;;
10093	xlf* | bgf* | bgxlf* | mpixlf*)
10094	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10095	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10096	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10097	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10098	  if test yes = "$supports_anon_versioning"; then
10099	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10100              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10101              echo "local: *; };" >> $output_objdir/$libname.ver~
10102              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10103	  fi
10104	  ;;
10105	esac
10106      else
10107        ld_shlibs=no
10108      fi
10109      ;;
10110
10111    netbsd*)
10112      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10113	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10114	wlarc=
10115      else
10116	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10117	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10118      fi
10119      ;;
10120
10121    solaris*)
10122      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10123	ld_shlibs=no
10124	cat <<_LT_EOF 1>&2
10125
10126*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10127*** create shared libraries on Solaris systems.  Therefore, libtool
10128*** is disabling shared libraries support.  We urge you to upgrade GNU
10129*** binutils to release 2.9.1 or newer.  Another option is to modify
10130*** your PATH or compiler configuration so that the native linker is
10131*** used, and then restart.
10132
10133_LT_EOF
10134      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10135	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10136	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10137      else
10138	ld_shlibs=no
10139      fi
10140      ;;
10141
10142    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10143      case `$LD -v 2>&1` in
10144        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10145	ld_shlibs=no
10146	cat <<_LT_EOF 1>&2
10147
10148*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10149*** reliably create shared libraries on SCO systems.  Therefore, libtool
10150*** is disabling shared libraries support.  We urge you to upgrade GNU
10151*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10152*** your PATH or compiler configuration so that the native linker is
10153*** used, and then restart.
10154
10155_LT_EOF
10156	;;
10157	*)
10158	  # For security reasons, it is highly recommended that you always
10159	  # use absolute paths for naming shared libraries, and exclude the
10160	  # DT_RUNPATH tag from executables and libraries.  But doing so
10161	  # requires that you compile everything twice, which is a pain.
10162	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10164	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10165	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10166	  else
10167	    ld_shlibs=no
10168	  fi
10169	;;
10170      esac
10171      ;;
10172
10173    sunos4*)
10174      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10175      wlarc=
10176      hardcode_direct=yes
10177      hardcode_shlibpath_var=no
10178      ;;
10179
10180    *)
10181      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10182	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10184      else
10185	ld_shlibs=no
10186      fi
10187      ;;
10188    esac
10189
10190    if test no = "$ld_shlibs"; then
10191      runpath_var=
10192      hardcode_libdir_flag_spec=
10193      export_dynamic_flag_spec=
10194      whole_archive_flag_spec=
10195    fi
10196  else
10197    # PORTME fill in a description of your system's linker (not GNU ld)
10198    case $host_os in
10199    aix3*)
10200      allow_undefined_flag=unsupported
10201      always_export_symbols=yes
10202      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'
10203      # Note: this linker hardcodes the directories in LIBPATH if there
10204      # are no directories specified by -L.
10205      hardcode_minus_L=yes
10206      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10207	# Neither direct hardcoding nor static linking is supported with a
10208	# broken collect2.
10209	hardcode_direct=unsupported
10210      fi
10211      ;;
10212
10213    aix[4-9]*)
10214      if test ia64 = "$host_cpu"; then
10215	# On IA64, the linker does run time linking by default, so we don't
10216	# have to do anything special.
10217	aix_use_runtimelinking=no
10218	exp_sym_flag='-Bexport'
10219	no_entry_flag=
10220      else
10221	# If we're using GNU nm, then we don't want the "-C" option.
10222	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10223	# Without the "-l" option, or with the "-B" option, AIX nm treats
10224	# weak defined symbols like other global defined symbols, whereas
10225	# GNU nm marks them as "W".
10226	# While the 'weak' keyword is ignored in the Export File, we need
10227	# it in the Import File for the 'aix-soname' feature, so we have
10228	# to replace the "-B" option with "-P" for AIX nm.
10229	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10230	  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'
10231	else
10232	  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'
10233	fi
10234	aix_use_runtimelinking=no
10235
10236	# Test if we are trying to use run time linking or normal
10237	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10238	# have runtime linking enabled, and use it for executables.
10239	# For shared libraries, we enable/disable runtime linking
10240	# depending on the kind of the shared library created -
10241	# when "with_aix_soname,aix_use_runtimelinking" is:
10242	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10243	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10244	#            lib.a           static archive
10245	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10246	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10247	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10248	#            lib.a(lib.so.V) shared, rtl:no
10249	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10250	#            lib.a           static archive
10251	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10252	  for ld_flag in $LDFLAGS; do
10253	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10254	    aix_use_runtimelinking=yes
10255	    break
10256	  fi
10257	  done
10258	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10259	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10260	    # so we don't have lib.a shared libs to link our executables.
10261	    # We have to force runtime linking in this case.
10262	    aix_use_runtimelinking=yes
10263	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10264	  fi
10265	  ;;
10266	esac
10267
10268	exp_sym_flag='-bexport'
10269	no_entry_flag='-bnoentry'
10270      fi
10271
10272      # When large executables or shared objects are built, AIX ld can
10273      # have problems creating the table of contents.  If linking a library
10274      # or program results in "error TOC overflow" add -mminimal-toc to
10275      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10276      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10277
10278      archive_cmds=''
10279      hardcode_direct=yes
10280      hardcode_direct_absolute=yes
10281      hardcode_libdir_separator=':'
10282      link_all_deplibs=yes
10283      file_list_spec='$wl-f,'
10284      case $with_aix_soname,$aix_use_runtimelinking in
10285      aix,*) ;; # traditional, no import file
10286      svr4,* | *,yes) # use import file
10287	# The Import File defines what to hardcode.
10288	hardcode_direct=no
10289	hardcode_direct_absolute=no
10290	;;
10291      esac
10292
10293      if test yes = "$GCC"; then
10294	case $host_os in aix4.[012]|aix4.[012].*)
10295	# We only want to do this on AIX 4.2 and lower, the check
10296	# below for broken collect2 doesn't work under 4.3+
10297	  collect2name=`$CC -print-prog-name=collect2`
10298	  if test -f "$collect2name" &&
10299	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10300	  then
10301	  # We have reworked collect2
10302	  :
10303	  else
10304	  # We have old collect2
10305	  hardcode_direct=unsupported
10306	  # It fails to find uninstalled libraries when the uninstalled
10307	  # path is not listed in the libpath.  Setting hardcode_minus_L
10308	  # to unsupported forces relinking
10309	  hardcode_minus_L=yes
10310	  hardcode_libdir_flag_spec='-L$libdir'
10311	  hardcode_libdir_separator=
10312	  fi
10313	  ;;
10314	esac
10315	shared_flag='-shared'
10316	if test yes = "$aix_use_runtimelinking"; then
10317	  shared_flag="$shared_flag "'$wl-G'
10318	fi
10319	# Need to ensure runtime linking is disabled for the traditional
10320	# shared library, or the linker may eventually find shared libraries
10321	# /with/ Import File - we do not want to mix them.
10322	shared_flag_aix='-shared'
10323	shared_flag_svr4='-shared $wl-G'
10324      else
10325	# not using gcc
10326	if test ia64 = "$host_cpu"; then
10327	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10328	# chokes on -Wl,-G. The following line is correct:
10329	  shared_flag='-G'
10330	else
10331	  if test yes = "$aix_use_runtimelinking"; then
10332	    shared_flag='$wl-G'
10333	  else
10334	    shared_flag='$wl-bM:SRE'
10335	  fi
10336	  shared_flag_aix='$wl-bM:SRE'
10337	  shared_flag_svr4='$wl-G'
10338	fi
10339      fi
10340
10341      export_dynamic_flag_spec='$wl-bexpall'
10342      # It seems that -bexpall does not export symbols beginning with
10343      # underscore (_), so it is better to generate a list of symbols to export.
10344      always_export_symbols=yes
10345      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10346	# Warning - without using the other runtime loading flags (-brtl),
10347	# -berok will link without error, but may produce a broken library.
10348	allow_undefined_flag='-berok'
10349        # Determine the default libpath from the value encoded in an
10350        # empty executable.
10351        if test set = "${lt_cv_aix_libpath+set}"; then
10352  aix_libpath=$lt_cv_aix_libpath
10353else
10354  if test ${lt_cv_aix_libpath_+y}
10355then :
10356  printf %s "(cached) " >&6
10357else case e in #(
10358  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360
10361int
10362main (void)
10363{
10364
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"
10370then :
10371
10372  lt_aix_libpath_sed='
10373      /Import File Strings/,/^$/ {
10374	  /^0/ {
10375	      s/^0  *\([^ ]*\) *$/\1/
10376	      p
10377	  }
10378      }'
10379  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10380  # Check for a 64-bit object if we didn't find anything.
10381  if test -z "$lt_cv_aix_libpath_"; then
10382    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10383  fi
10384fi
10385rm -f core conftest.err conftest.$ac_objext conftest.beam \
10386    conftest$ac_exeext conftest.$ac_ext
10387  if test -z "$lt_cv_aix_libpath_"; then
10388    lt_cv_aix_libpath_=/usr/lib:/lib
10389  fi
10390   ;;
10391esac
10392fi
10393
10394  aix_libpath=$lt_cv_aix_libpath_
10395fi
10396
10397        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10398        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
10399      else
10400	if test ia64 = "$host_cpu"; then
10401	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10402	  allow_undefined_flag="-z nodefs"
10403	  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"
10404	else
10405	 # Determine the default libpath from the value encoded in an
10406	 # empty executable.
10407	 if test set = "${lt_cv_aix_libpath+set}"; then
10408  aix_libpath=$lt_cv_aix_libpath
10409else
10410  if test ${lt_cv_aix_libpath_+y}
10411then :
10412  printf %s "(cached) " >&6
10413else case e in #(
10414  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415/* end confdefs.h.  */
10416
10417int
10418main (void)
10419{
10420
10421  ;
10422  return 0;
10423}
10424_ACEOF
10425if ac_fn_c_try_link "$LINENO"
10426then :
10427
10428  lt_aix_libpath_sed='
10429      /Import File Strings/,/^$/ {
10430	  /^0/ {
10431	      s/^0  *\([^ ]*\) *$/\1/
10432	      p
10433	  }
10434      }'
10435  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10436  # Check for a 64-bit object if we didn't find anything.
10437  if test -z "$lt_cv_aix_libpath_"; then
10438    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10439  fi
10440fi
10441rm -f core conftest.err conftest.$ac_objext conftest.beam \
10442    conftest$ac_exeext conftest.$ac_ext
10443  if test -z "$lt_cv_aix_libpath_"; then
10444    lt_cv_aix_libpath_=/usr/lib:/lib
10445  fi
10446   ;;
10447esac
10448fi
10449
10450  aix_libpath=$lt_cv_aix_libpath_
10451fi
10452
10453	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10454	  # Warning - without using the other run time loading flags,
10455	  # -berok will link without error, but may produce a broken library.
10456	  no_undefined_flag=' $wl-bernotok'
10457	  allow_undefined_flag=' $wl-berok'
10458	  if test yes = "$with_gnu_ld"; then
10459	    # We only use this code for GNU lds that support --whole-archive.
10460	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10461	  else
10462	    # Exported symbols can be pulled into shared objects from archives
10463	    whole_archive_flag_spec='$convenience'
10464	  fi
10465	  archive_cmds_need_lc=yes
10466	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10467	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10468	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10469	  if test svr4 != "$with_aix_soname"; then
10470	    # This is similar to how AIX traditionally builds its shared libraries.
10471	    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'
10472	  fi
10473	  if test aix != "$with_aix_soname"; then
10474	    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'
10475	  else
10476	    # used by -dlpreopen to get the symbols
10477	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10478	  fi
10479	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10480	fi
10481      fi
10482      ;;
10483
10484    amigaos*)
10485      case $host_cpu in
10486      powerpc)
10487            # see comment about AmigaOS4 .so support
10488            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10489            archive_expsym_cmds=''
10490        ;;
10491      m68k)
10492            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)'
10493            hardcode_libdir_flag_spec='-L$libdir'
10494            hardcode_minus_L=yes
10495        ;;
10496      esac
10497      ;;
10498
10499    bsdi[45]*)
10500      export_dynamic_flag_spec=-rdynamic
10501      ;;
10502
10503    cygwin* | mingw* | pw32* | cegcc*)
10504      # When not using gcc, we currently assume that we are using
10505      # Microsoft Visual C++ or Intel C++ Compiler.
10506      # hardcode_libdir_flag_spec is actually meaningless, as there is
10507      # no search path for DLLs.
10508      case $cc_basename in
10509      cl* | icl*)
10510	# Native MSVC or ICC
10511	hardcode_libdir_flag_spec=' '
10512	allow_undefined_flag=unsupported
10513	always_export_symbols=yes
10514	file_list_spec='@'
10515	# Tell ltmain to make .lib files, not .a files.
10516	libext=lib
10517	# Tell ltmain to make .dll files, not .so files.
10518	shrext_cmds=.dll
10519	# FIXME: Setting linknames here is a bad hack.
10520	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10521	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10522            cp "$export_symbols" "$output_objdir/$soname.def";
10523            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10524          else
10525            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10526          fi~
10527          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10528          linknames='
10529	# The linker will not automatically build a static lib if we build a DLL.
10530	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10531	enable_shared_with_static_runtimes=yes
10532	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10533	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10534	# Don't use ranlib
10535	old_postinstall_cmds='chmod 644 $oldlib'
10536	postlink_cmds='lt_outputfile="@OUTPUT@"~
10537          lt_tool_outputfile="@TOOL_OUTPUT@"~
10538          case $lt_outputfile in
10539            *.exe|*.EXE) ;;
10540            *)
10541              lt_outputfile=$lt_outputfile.exe
10542              lt_tool_outputfile=$lt_tool_outputfile.exe
10543              ;;
10544          esac~
10545          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10546            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10547            $RM "$lt_outputfile.manifest";
10548          fi'
10549	;;
10550      *)
10551	# Assume MSVC and ICC wrapper
10552	hardcode_libdir_flag_spec=' '
10553	allow_undefined_flag=unsupported
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 -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10560	# The linker will automatically build a .lib file if we build a DLL.
10561	old_archive_from_new_cmds='true'
10562	# FIXME: Should let the user specify the lib program.
10563	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10564	enable_shared_with_static_runtimes=yes
10565	;;
10566      esac
10567      ;;
10568
10569    darwin* | rhapsody*)
10570
10571
10572  archive_cmds_need_lc=no
10573  hardcode_direct=no
10574  hardcode_automatic=yes
10575  hardcode_shlibpath_var=unsupported
10576  if test yes = "$lt_cv_ld_force_load"; then
10577    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\"`'
10578
10579  else
10580    whole_archive_flag_spec=''
10581  fi
10582  link_all_deplibs=yes
10583  allow_undefined_flag=$_lt_dar_allow_undefined
10584  case $cc_basename in
10585     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10586     *) _lt_dar_can_shared=$GCC ;;
10587  esac
10588  if test yes = "$_lt_dar_can_shared"; then
10589    output_verbose_link_cmd=func_echo_all
10590    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10591    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10592    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"
10593    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"
10594
10595  else
10596  ld_shlibs=no
10597  fi
10598
10599      ;;
10600
10601    dgux*)
10602      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603      hardcode_libdir_flag_spec='-L$libdir'
10604      hardcode_shlibpath_var=no
10605      ;;
10606
10607    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10608    # support.  Future versions do this automatically, but an explicit c++rt0.o
10609    # does not break anything, and helps significantly (at the cost of a little
10610    # extra space).
10611    freebsd2.2*)
10612      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10613      hardcode_libdir_flag_spec='-R$libdir'
10614      hardcode_direct=yes
10615      hardcode_shlibpath_var=no
10616      ;;
10617
10618    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10619    freebsd2.*)
10620      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10621      hardcode_direct=yes
10622      hardcode_minus_L=yes
10623      hardcode_shlibpath_var=no
10624      ;;
10625
10626    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10627    freebsd* | dragonfly* | midnightbsd*)
10628      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10629      hardcode_libdir_flag_spec='-R$libdir'
10630      hardcode_direct=yes
10631      hardcode_shlibpath_var=no
10632      ;;
10633
10634    hpux9*)
10635      if test yes = "$GCC"; then
10636	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'
10637      else
10638	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'
10639      fi
10640      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10641      hardcode_libdir_separator=:
10642      hardcode_direct=yes
10643
10644      # hardcode_minus_L: Not really in the search PATH,
10645      # but as the default location of the library.
10646      hardcode_minus_L=yes
10647      export_dynamic_flag_spec='$wl-E'
10648      ;;
10649
10650    hpux10*)
10651      if test yes,no = "$GCC,$with_gnu_ld"; then
10652	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10653      else
10654	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10655      fi
10656      if test no = "$with_gnu_ld"; then
10657	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10658	hardcode_libdir_separator=:
10659	hardcode_direct=yes
10660	hardcode_direct_absolute=yes
10661	export_dynamic_flag_spec='$wl-E'
10662	# hardcode_minus_L: Not really in the search PATH,
10663	# but as the default location of the library.
10664	hardcode_minus_L=yes
10665      fi
10666      ;;
10667
10668    hpux11*)
10669      if test yes,no = "$GCC,$with_gnu_ld"; then
10670	case $host_cpu in
10671	hppa*64*)
10672	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10673	  ;;
10674	ia64*)
10675	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10676	  ;;
10677	*)
10678	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10679	  ;;
10680	esac
10681      else
10682	case $host_cpu in
10683	hppa*64*)
10684	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10685	  ;;
10686	ia64*)
10687	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10688	  ;;
10689	*)
10690
10691	  # Older versions of the 11.00 compiler do not understand -b yet
10692	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10693	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10694printf %s "checking if $CC understands -b... " >&6; }
10695if test ${lt_cv_prog_compiler__b+y}
10696then :
10697  printf %s "(cached) " >&6
10698else case e in #(
10699  e) lt_cv_prog_compiler__b=no
10700   save_LDFLAGS=$LDFLAGS
10701   LDFLAGS="$LDFLAGS -b"
10702   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10704     # The linker can only warn and ignore the option if not recognized
10705     # So say no if there are warnings
10706     if test -s conftest.err; then
10707       # Append any errors to the config.log.
10708       cat conftest.err 1>&5
10709       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10710       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10711       if diff conftest.exp conftest.er2 >/dev/null; then
10712         lt_cv_prog_compiler__b=yes
10713       fi
10714     else
10715       lt_cv_prog_compiler__b=yes
10716     fi
10717   fi
10718   $RM -r conftest*
10719   LDFLAGS=$save_LDFLAGS
10720 ;;
10721esac
10722fi
10723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10724printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10725
10726if test yes = "$lt_cv_prog_compiler__b"; then
10727    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728else
10729    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10730fi
10731
10732	  ;;
10733	esac
10734      fi
10735      if test no = "$with_gnu_ld"; then
10736	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10737	hardcode_libdir_separator=:
10738
10739	case $host_cpu in
10740	hppa*64*|ia64*)
10741	  hardcode_direct=no
10742	  hardcode_shlibpath_var=no
10743	  ;;
10744	*)
10745	  hardcode_direct=yes
10746	  hardcode_direct_absolute=yes
10747	  export_dynamic_flag_spec='$wl-E'
10748
10749	  # hardcode_minus_L: Not really in the search PATH,
10750	  # but as the default location of the library.
10751	  hardcode_minus_L=yes
10752	  ;;
10753	esac
10754      fi
10755      ;;
10756
10757    irix5* | irix6* | nonstopux*)
10758      if test yes = "$GCC"; then
10759	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'
10760	# Try to use the -exported_symbol ld option, if it does not
10761	# work, assume that -exports_file does not work either and
10762	# implicitly export all symbols.
10763	# This should be the same for all languages, so no per-tag cache variable.
10764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10765printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10766if test ${lt_cv_irix_exported_symbol+y}
10767then :
10768  printf %s "(cached) " >&6
10769else case e in #(
10770  e) save_LDFLAGS=$LDFLAGS
10771	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10772	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773/* end confdefs.h.  */
10774int foo (void) { return 0; }
10775_ACEOF
10776if ac_fn_c_try_link "$LINENO"
10777then :
10778  lt_cv_irix_exported_symbol=yes
10779else case e in #(
10780  e) lt_cv_irix_exported_symbol=no ;;
10781esac
10782fi
10783rm -f core conftest.err conftest.$ac_objext conftest.beam \
10784    conftest$ac_exeext conftest.$ac_ext
10785           LDFLAGS=$save_LDFLAGS ;;
10786esac
10787fi
10788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10789printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10790	if test yes = "$lt_cv_irix_exported_symbol"; then
10791          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'
10792	fi
10793      else
10794	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'
10795	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'
10796      fi
10797      archive_cmds_need_lc='no'
10798      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10799      hardcode_libdir_separator=:
10800      inherit_rpath=yes
10801      link_all_deplibs=yes
10802      ;;
10803
10804    linux*)
10805      case $cc_basename in
10806      tcc*)
10807	# Fabrice Bellard et al's Tiny C Compiler
10808	ld_shlibs=yes
10809	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10810	;;
10811      esac
10812      ;;
10813
10814    netbsd*)
10815      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10816	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10817      else
10818	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10819      fi
10820      hardcode_libdir_flag_spec='-R$libdir'
10821      hardcode_direct=yes
10822      hardcode_shlibpath_var=no
10823      ;;
10824
10825    newsos6)
10826      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827      hardcode_direct=yes
10828      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10829      hardcode_libdir_separator=:
10830      hardcode_shlibpath_var=no
10831      ;;
10832
10833    *nto* | *qnx*)
10834      ;;
10835
10836    openbsd* | bitrig*)
10837      if test -f /usr/libexec/ld.so; then
10838	hardcode_direct=yes
10839	hardcode_shlibpath_var=no
10840	hardcode_direct_absolute=yes
10841	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10842	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10843	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10844	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10845	  export_dynamic_flag_spec='$wl-E'
10846	else
10847	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10848	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10849	fi
10850      else
10851	ld_shlibs=no
10852      fi
10853      ;;
10854
10855    os2*)
10856      hardcode_libdir_flag_spec='-L$libdir'
10857      hardcode_minus_L=yes
10858      allow_undefined_flag=unsupported
10859      shrext_cmds=.dll
10860      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10861	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10862	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10863	$ECHO EXPORTS >> $output_objdir/$libname.def~
10864	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10865	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10866	emximp -o $lib $output_objdir/$libname.def'
10867      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10868	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10869	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10870	$ECHO EXPORTS >> $output_objdir/$libname.def~
10871	prefix_cmds="$SED"~
10872	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10873	  prefix_cmds="$prefix_cmds -e 1d";
10874	fi~
10875	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10876	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10877	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10878	emximp -o $lib $output_objdir/$libname.def'
10879      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10880      enable_shared_with_static_runtimes=yes
10881      file_list_spec='@'
10882      ;;
10883
10884    osf3*)
10885      if test yes = "$GCC"; then
10886	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10887	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'
10888      else
10889	allow_undefined_flag=' -expect_unresolved \*'
10890	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'
10891      fi
10892      archive_cmds_need_lc='no'
10893      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10894      hardcode_libdir_separator=:
10895      ;;
10896
10897    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10898      if test yes = "$GCC"; then
10899	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10900	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'
10901	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10902      else
10903	allow_undefined_flag=' -expect_unresolved \*'
10904	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'
10905	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~
10906          $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'
10907
10908	# Both c and cxx compiler support -rpath directly
10909	hardcode_libdir_flag_spec='-rpath $libdir'
10910      fi
10911      archive_cmds_need_lc='no'
10912      hardcode_libdir_separator=:
10913      ;;
10914
10915    solaris*)
10916      no_undefined_flag=' -z defs'
10917      if test yes = "$GCC"; then
10918	wlarc='$wl'
10919	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10920	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10921          $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'
10922      else
10923	case `$CC -V 2>&1` in
10924	*"Compilers 5.0"*)
10925	  wlarc=''
10926	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10928            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10929	  ;;
10930	*)
10931	  wlarc='$wl'
10932	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10933	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10934            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10935	  ;;
10936	esac
10937      fi
10938      hardcode_libdir_flag_spec='-R$libdir'
10939      hardcode_shlibpath_var=no
10940      case $host_os in
10941      solaris2.[0-5] | solaris2.[0-5].*) ;;
10942      *)
10943	# The compiler driver will combine and reorder linker options,
10944	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10945	# but is careful enough not to reorder.
10946	# Supported since Solaris 2.6 (maybe 2.5.1?)
10947	if test yes = "$GCC"; then
10948	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10949	else
10950	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10951	fi
10952	;;
10953      esac
10954      link_all_deplibs=yes
10955      ;;
10956
10957    sunos4*)
10958      if test sequent = "$host_vendor"; then
10959	# Use $CC to link under sequent, because it throws in some extra .o
10960	# files that make .init and .fini sections work.
10961	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10962      else
10963	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10964      fi
10965      hardcode_libdir_flag_spec='-L$libdir'
10966      hardcode_direct=yes
10967      hardcode_minus_L=yes
10968      hardcode_shlibpath_var=no
10969      ;;
10970
10971    sysv4)
10972      case $host_vendor in
10973	sni)
10974	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975	  hardcode_direct=yes # is this really true???
10976	;;
10977	siemens)
10978	  ## LD is ld it makes a PLAMLIB
10979	  ## CC just makes a GrossModule.
10980	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10981	  reload_cmds='$CC -r -o $output$reload_objs'
10982	  hardcode_direct=no
10983        ;;
10984	motorola)
10985	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10986	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10987	;;
10988      esac
10989      runpath_var='LD_RUN_PATH'
10990      hardcode_shlibpath_var=no
10991      ;;
10992
10993    sysv4.3*)
10994      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995      hardcode_shlibpath_var=no
10996      export_dynamic_flag_spec='-Bexport'
10997      ;;
10998
10999    sysv4*MP*)
11000      if test -d /usr/nec; then
11001	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002	hardcode_shlibpath_var=no
11003	runpath_var=LD_RUN_PATH
11004	hardcode_runpath_var=yes
11005	ld_shlibs=yes
11006      fi
11007      ;;
11008
11009    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11010      no_undefined_flag='$wl-z,text'
11011      archive_cmds_need_lc=no
11012      hardcode_shlibpath_var=no
11013      runpath_var='LD_RUN_PATH'
11014
11015      if test yes = "$GCC"; then
11016	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018      else
11019	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11020	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021      fi
11022      ;;
11023
11024    sysv5* | sco3.2v5* | sco5v6*)
11025      # Note: We CANNOT use -z defs as we might desire, because we do not
11026      # link with -lc, and that would cause any symbols used from libc to
11027      # always be unresolved, which means just about no library would
11028      # ever link correctly.  If we're not using GNU ld we use -z text
11029      # though, which does catch some bad symbols but isn't as heavy-handed
11030      # as -z defs.
11031      no_undefined_flag='$wl-z,text'
11032      allow_undefined_flag='$wl-z,nodefs'
11033      archive_cmds_need_lc=no
11034      hardcode_shlibpath_var=no
11035      hardcode_libdir_flag_spec='$wl-R,$libdir'
11036      hardcode_libdir_separator=':'
11037      link_all_deplibs=yes
11038      export_dynamic_flag_spec='$wl-Bexport'
11039      runpath_var='LD_RUN_PATH'
11040
11041      if test yes = "$GCC"; then
11042	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044      else
11045	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047      fi
11048      ;;
11049
11050    uts4*)
11051      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11052      hardcode_libdir_flag_spec='-L$libdir'
11053      hardcode_shlibpath_var=no
11054      ;;
11055
11056    *)
11057      ld_shlibs=no
11058      ;;
11059    esac
11060
11061    if test sni = "$host_vendor"; then
11062      case $host in
11063      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11064	export_dynamic_flag_spec='$wl-Blargedynsym'
11065	;;
11066      esac
11067    fi
11068  fi
11069
11070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11071printf "%s\n" "$ld_shlibs" >&6; }
11072test no = "$ld_shlibs" && can_build_shared=no
11073
11074with_gnu_ld=$with_gnu_ld
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090#
11091# Do we need to explicitly link libc?
11092#
11093case "x$archive_cmds_need_lc" in
11094x|xyes)
11095  # Assume -lc should be added
11096  archive_cmds_need_lc=yes
11097
11098  if test yes,yes = "$GCC,$enable_shared"; then
11099    case $archive_cmds in
11100    *'~'*)
11101      # FIXME: we may have to deal with multi-command sequences.
11102      ;;
11103    '$CC '*)
11104      # Test whether the compiler implicitly links with -lc since on some
11105      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11106      # to ld, don't add -lc before -lgcc.
11107      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11108printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11109if test ${lt_cv_archive_cmds_need_lc+y}
11110then :
11111  printf %s "(cached) " >&6
11112else case e in #(
11113  e) $RM conftest*
11114	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11115
11116	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11117  (eval $ac_compile) 2>&5
11118  ac_status=$?
11119  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120  test $ac_status = 0; } 2>conftest.err; then
11121	  soname=conftest
11122	  lib=conftest
11123	  libobjs=conftest.$ac_objext
11124	  deplibs=
11125	  wl=$lt_prog_compiler_wl
11126	  pic_flag=$lt_prog_compiler_pic
11127	  compiler_flags=-v
11128	  linker_flags=-v
11129	  verstring=
11130	  output_objdir=.
11131	  libname=conftest
11132	  lt_save_allow_undefined_flag=$allow_undefined_flag
11133	  allow_undefined_flag=
11134	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11135  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11136  ac_status=$?
11137  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138  test $ac_status = 0; }
11139	  then
11140	    lt_cv_archive_cmds_need_lc=no
11141	  else
11142	    lt_cv_archive_cmds_need_lc=yes
11143	  fi
11144	  allow_undefined_flag=$lt_save_allow_undefined_flag
11145	else
11146	  cat conftest.err 1>&5
11147	fi
11148	$RM conftest*
11149	 ;;
11150esac
11151fi
11152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11153printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11154      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11155      ;;
11156    esac
11157  fi
11158  ;;
11159esac
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11313printf %s "checking dynamic linker characteristics... " >&6; }
11314
11315if test yes = "$GCC"; then
11316  case $host_os in
11317    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11318    *) lt_awk_arg='/^libraries:/' ;;
11319  esac
11320  case $host_os in
11321    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11322    *) lt_sed_strip_eq='s|=/|/|g' ;;
11323  esac
11324  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11325  case $lt_search_path_spec in
11326  *\;*)
11327    # if the path contains ";" then we assume it to be the separator
11328    # otherwise default to the standard path separator (i.e. ":") - it is
11329    # assumed that no part of a normal pathname contains ";" but that should
11330    # okay in the real world where ";" in dirpaths is itself problematic.
11331    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11332    ;;
11333  *)
11334    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11335    ;;
11336  esac
11337  # Ok, now we have the path, separated by spaces, we can step through it
11338  # and add multilib dir if necessary...
11339  lt_tmp_lt_search_path_spec=
11340  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11341  # ...but if some path component already ends with the multilib dir we assume
11342  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11343  case "$lt_multi_os_dir; $lt_search_path_spec " in
11344  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11345    lt_multi_os_dir=
11346    ;;
11347  esac
11348  for lt_sys_path in $lt_search_path_spec; do
11349    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11350      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11351    elif test -n "$lt_multi_os_dir"; then
11352      test -d "$lt_sys_path" && \
11353	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11354    fi
11355  done
11356  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11357BEGIN {RS = " "; FS = "/|\n";} {
11358  lt_foo = "";
11359  lt_count = 0;
11360  for (lt_i = NF; lt_i > 0; lt_i--) {
11361    if ($lt_i != "" && $lt_i != ".") {
11362      if ($lt_i == "..") {
11363        lt_count++;
11364      } else {
11365        if (lt_count == 0) {
11366          lt_foo = "/" $lt_i lt_foo;
11367        } else {
11368          lt_count--;
11369        }
11370      }
11371    }
11372  }
11373  if (lt_foo != "") { lt_freq[lt_foo]++; }
11374  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11375}'`
11376  # AWK program above erroneously prepends '/' to C:/dos/paths
11377  # for these hosts.
11378  case $host_os in
11379    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11380      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11381  esac
11382  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11383else
11384  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11385fi
11386library_names_spec=
11387libname_spec='lib$name'
11388soname_spec=
11389shrext_cmds=.so
11390postinstall_cmds=
11391postuninstall_cmds=
11392finish_cmds=
11393finish_eval=
11394shlibpath_var=
11395shlibpath_overrides_runpath=unknown
11396version_type=none
11397dynamic_linker="$host_os ld.so"
11398sys_lib_dlsearch_path_spec="/lib /usr/lib"
11399need_lib_prefix=unknown
11400hardcode_into_libs=no
11401
11402# when you set need_version to no, make sure it does not cause -set_version
11403# flags to be left without arguments
11404need_version=unknown
11405
11406
11407
11408case $host_os in
11409aix3*)
11410  version_type=linux # correct to gnu/linux during the next big refactor
11411  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11412  shlibpath_var=LIBPATH
11413
11414  # AIX 3 has no versioning support, so we append a major version to the name.
11415  soname_spec='$libname$release$shared_ext$major'
11416  ;;
11417
11418aix[4-9]*)
11419  version_type=linux # correct to gnu/linux during the next big refactor
11420  need_lib_prefix=no
11421  need_version=no
11422  hardcode_into_libs=yes
11423  if test ia64 = "$host_cpu"; then
11424    # AIX 5 supports IA64
11425    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11426    shlibpath_var=LD_LIBRARY_PATH
11427  else
11428    # With GCC up to 2.95.x, collect2 would create an import file
11429    # for dependence libraries.  The import file would start with
11430    # the line '#! .'.  This would cause the generated library to
11431    # depend on '.', always an invalid library.  This was fixed in
11432    # development snapshots of GCC prior to 3.0.
11433    case $host_os in
11434      aix4 | aix4.[01] | aix4.[01].*)
11435      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11436	   echo ' yes '
11437	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11438	:
11439      else
11440	can_build_shared=no
11441      fi
11442      ;;
11443    esac
11444    # Using Import Files as archive members, it is possible to support
11445    # filename-based versioning of shared library archives on AIX. While
11446    # this would work for both with and without runtime linking, it will
11447    # prevent static linking of such archives. So we do filename-based
11448    # shared library versioning with .so extension only, which is used
11449    # when both runtime linking and shared linking is enabled.
11450    # Unfortunately, runtime linking may impact performance, so we do
11451    # not want this to be the default eventually. Also, we use the
11452    # versioned .so libs for executables only if there is the -brtl
11453    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11454    # To allow for filename-based versioning support, we need to create
11455    # libNAME.so.V as an archive file, containing:
11456    # *) an Import File, referring to the versioned filename of the
11457    #    archive as well as the shared archive member, telling the
11458    #    bitwidth (32 or 64) of that shared object, and providing the
11459    #    list of exported symbols of that shared object, eventually
11460    #    decorated with the 'weak' keyword
11461    # *) the shared object with the F_LOADONLY flag set, to really avoid
11462    #    it being seen by the linker.
11463    # At run time we better use the real file rather than another symlink,
11464    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11465
11466    case $with_aix_soname,$aix_use_runtimelinking in
11467    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11468    # soname into executable. Probably we can add versioning support to
11469    # collect2, so additional links can be useful in future.
11470    aix,yes) # traditional libtool
11471      dynamic_linker='AIX unversionable lib.so'
11472      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11473      # instead of lib<name>.a to let people know that these are not
11474      # typical AIX shared libraries.
11475      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476      ;;
11477    aix,no) # traditional AIX only
11478      dynamic_linker='AIX lib.a(lib.so.V)'
11479      # We preserve .a as extension for shared libraries through AIX4.2
11480      # and later when we are not doing run time linking.
11481      library_names_spec='$libname$release.a $libname.a'
11482      soname_spec='$libname$release$shared_ext$major'
11483      ;;
11484    svr4,*) # full svr4 only
11485      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11486      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11487      # We do not specify a path in Import Files, so LIBPATH fires.
11488      shlibpath_overrides_runpath=yes
11489      ;;
11490    *,yes) # both, prefer svr4
11491      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11492      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11493      # unpreferred sharedlib libNAME.a needs extra handling
11494      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"'
11495      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"'
11496      # We do not specify a path in Import Files, so LIBPATH fires.
11497      shlibpath_overrides_runpath=yes
11498      ;;
11499    *,no) # both, prefer aix
11500      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11501      library_names_spec='$libname$release.a $libname.a'
11502      soname_spec='$libname$release$shared_ext$major'
11503      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11504      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)'
11505      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"'
11506      ;;
11507    esac
11508    shlibpath_var=LIBPATH
11509  fi
11510  ;;
11511
11512amigaos*)
11513  case $host_cpu in
11514  powerpc)
11515    # Since July 2007 AmigaOS4 officially supports .so libraries.
11516    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11517    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518    ;;
11519  m68k)
11520    library_names_spec='$libname.ixlibrary $libname.a'
11521    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11522    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'
11523    ;;
11524  esac
11525  ;;
11526
11527beos*)
11528  library_names_spec='$libname$shared_ext'
11529  dynamic_linker="$host_os ld.so"
11530  shlibpath_var=LIBRARY_PATH
11531  ;;
11532
11533bsdi[45]*)
11534  version_type=linux # correct to gnu/linux during the next big refactor
11535  need_version=no
11536  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11537  soname_spec='$libname$release$shared_ext$major'
11538  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11541  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11542  # the default ld.so.conf also contains /usr/contrib/lib and
11543  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11544  # libtool to hard-code these into programs
11545  ;;
11546
11547cygwin* | mingw* | pw32* | cegcc*)
11548  version_type=windows
11549  shrext_cmds=.dll
11550  need_version=no
11551  need_lib_prefix=no
11552
11553  case $GCC,$cc_basename in
11554  yes,*)
11555    # gcc
11556    library_names_spec='$libname.dll.a'
11557    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11558    postinstall_cmds='base_file=`basename \$file`~
11559      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11560      dldir=$destdir/`dirname \$dlpath`~
11561      test -d \$dldir || mkdir -p \$dldir~
11562      $install_prog $dir/$dlname \$dldir/$dlname~
11563      chmod a+x \$dldir/$dlname~
11564      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11565        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11566      fi'
11567    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11568      dlpath=$dir/\$dldll~
11569       $RM \$dlpath'
11570    shlibpath_overrides_runpath=yes
11571
11572    case $host_os in
11573    cygwin*)
11574      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11575      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11576
11577      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11578      ;;
11579    mingw* | cegcc*)
11580      # MinGW DLLs use traditional 'lib' prefix
11581      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11582      ;;
11583    pw32*)
11584      # pw32 DLLs use 'pw' prefix rather than 'lib'
11585      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11586      ;;
11587    esac
11588    dynamic_linker='Win32 ld.exe'
11589    ;;
11590
11591  *,cl* | *,icl*)
11592    # Native MSVC or ICC
11593    libname_spec='$name'
11594    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11595    library_names_spec='$libname.dll.lib'
11596
11597    case $build_os in
11598    mingw*)
11599      sys_lib_search_path_spec=
11600      lt_save_ifs=$IFS
11601      IFS=';'
11602      for lt_path in $LIB
11603      do
11604        IFS=$lt_save_ifs
11605        # Let DOS variable expansion print the short 8.3 style file name.
11606        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11607        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11608      done
11609      IFS=$lt_save_ifs
11610      # Convert to MSYS style.
11611      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11612      ;;
11613    cygwin*)
11614      # Convert to unix form, then to dos form, then back to unix form
11615      # but this time dos style (no spaces!) so that the unix form looks
11616      # like /cygdrive/c/PROGRA~1:/cygdr...
11617      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11618      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11619      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11620      ;;
11621    *)
11622      sys_lib_search_path_spec=$LIB
11623      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11624        # It is most probably a Windows format PATH.
11625        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11626      else
11627        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11628      fi
11629      # FIXME: find the short name or the path components, as spaces are
11630      # common. (e.g. "Program Files" -> "PROGRA~1")
11631      ;;
11632    esac
11633
11634    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11635    postinstall_cmds='base_file=`basename \$file`~
11636      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11637      dldir=$destdir/`dirname \$dlpath`~
11638      test -d \$dldir || mkdir -p \$dldir~
11639      $install_prog $dir/$dlname \$dldir/$dlname'
11640    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11641      dlpath=$dir/\$dldll~
11642       $RM \$dlpath'
11643    shlibpath_overrides_runpath=yes
11644    dynamic_linker='Win32 link.exe'
11645    ;;
11646
11647  *)
11648    # Assume MSVC and ICC wrapper
11649    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11650    dynamic_linker='Win32 ld.exe'
11651    ;;
11652  esac
11653  # FIXME: first we should search . and the directory the executable is in
11654  shlibpath_var=PATH
11655  ;;
11656
11657darwin* | rhapsody*)
11658  dynamic_linker="$host_os dyld"
11659  version_type=darwin
11660  need_lib_prefix=no
11661  need_version=no
11662  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11663  soname_spec='$libname$release$major$shared_ext'
11664  shlibpath_overrides_runpath=yes
11665  shlibpath_var=DYLD_LIBRARY_PATH
11666  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11667
11668  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11669  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11670  ;;
11671
11672dgux*)
11673  version_type=linux # correct to gnu/linux during the next big refactor
11674  need_lib_prefix=no
11675  need_version=no
11676  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677  soname_spec='$libname$release$shared_ext$major'
11678  shlibpath_var=LD_LIBRARY_PATH
11679  ;;
11680
11681freebsd* | dragonfly* | midnightbsd*)
11682  # DragonFly does not have aout.  When/if they implement a new
11683  # versioning mechanism, adjust this.
11684  if test -x /usr/bin/objformat; then
11685    objformat=`/usr/bin/objformat`
11686  else
11687    case $host_os in
11688    freebsd[23].*) objformat=aout ;;
11689    *) objformat=elf ;;
11690    esac
11691  fi
11692  version_type=freebsd-$objformat
11693  case $version_type in
11694    freebsd-elf*)
11695      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11696      soname_spec='$libname$release$shared_ext$major'
11697      need_version=no
11698      need_lib_prefix=no
11699      ;;
11700    freebsd-*)
11701      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11702      need_version=yes
11703      ;;
11704  esac
11705  shlibpath_var=LD_LIBRARY_PATH
11706  case $host_os in
11707  freebsd2.*)
11708    shlibpath_overrides_runpath=yes
11709    ;;
11710  freebsd3.[01]* | freebsdelf3.[01]*)
11711    shlibpath_overrides_runpath=yes
11712    hardcode_into_libs=yes
11713    ;;
11714  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11715  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11716    shlibpath_overrides_runpath=no
11717    hardcode_into_libs=yes
11718    ;;
11719  *) # from 4.6 on, and DragonFly
11720    shlibpath_overrides_runpath=yes
11721    hardcode_into_libs=yes
11722    ;;
11723  esac
11724  ;;
11725
11726haiku*)
11727  version_type=linux # correct to gnu/linux during the next big refactor
11728  need_lib_prefix=no
11729  need_version=no
11730  dynamic_linker="$host_os runtime_loader"
11731  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732  soname_spec='$libname$release$shared_ext$major'
11733  shlibpath_var=LIBRARY_PATH
11734  shlibpath_overrides_runpath=no
11735  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11736  hardcode_into_libs=yes
11737  ;;
11738
11739hpux9* | hpux10* | hpux11*)
11740  # Give a soname corresponding to the major version so that dld.sl refuses to
11741  # link against other versions.
11742  version_type=sunos
11743  need_lib_prefix=no
11744  need_version=no
11745  case $host_cpu in
11746  ia64*)
11747    shrext_cmds='.so'
11748    hardcode_into_libs=yes
11749    dynamic_linker="$host_os dld.so"
11750    shlibpath_var=LD_LIBRARY_PATH
11751    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11752    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11753    soname_spec='$libname$release$shared_ext$major'
11754    if test 32 = "$HPUX_IA64_MODE"; then
11755      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11756      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11757    else
11758      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11759      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11760    fi
11761    ;;
11762  hppa*64*)
11763    shrext_cmds='.sl'
11764    hardcode_into_libs=yes
11765    dynamic_linker="$host_os dld.sl"
11766    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11767    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11768    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769    soname_spec='$libname$release$shared_ext$major'
11770    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11771    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11772    ;;
11773  *)
11774    shrext_cmds='.sl'
11775    dynamic_linker="$host_os dld.sl"
11776    shlibpath_var=SHLIB_PATH
11777    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11778    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11779    soname_spec='$libname$release$shared_ext$major'
11780    ;;
11781  esac
11782  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11783  postinstall_cmds='chmod 555 $lib'
11784  # or fails outright, so override atomically:
11785  install_override_mode=555
11786  ;;
11787
11788interix[3-9]*)
11789  version_type=linux # correct to gnu/linux during the next big refactor
11790  need_lib_prefix=no
11791  need_version=no
11792  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793  soname_spec='$libname$release$shared_ext$major'
11794  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11795  shlibpath_var=LD_LIBRARY_PATH
11796  shlibpath_overrides_runpath=no
11797  hardcode_into_libs=yes
11798  ;;
11799
11800irix5* | irix6* | nonstopux*)
11801  case $host_os in
11802    nonstopux*) version_type=nonstopux ;;
11803    *)
11804	if test yes = "$lt_cv_prog_gnu_ld"; then
11805		version_type=linux # correct to gnu/linux during the next big refactor
11806	else
11807		version_type=irix
11808	fi ;;
11809  esac
11810  need_lib_prefix=no
11811  need_version=no
11812  soname_spec='$libname$release$shared_ext$major'
11813  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11814  case $host_os in
11815  irix5* | nonstopux*)
11816    libsuff= shlibsuff=
11817    ;;
11818  *)
11819    case $LD in # libtool.m4 will add one of these switches to LD
11820    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11821      libsuff= shlibsuff= libmagic=32-bit;;
11822    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11823      libsuff=32 shlibsuff=N32 libmagic=N32;;
11824    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11825      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11826    *) libsuff= shlibsuff= libmagic=never-match;;
11827    esac
11828    ;;
11829  esac
11830  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11831  shlibpath_overrides_runpath=no
11832  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11833  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11834  hardcode_into_libs=yes
11835  ;;
11836
11837# No shared lib support for Linux oldld, aout, or coff.
11838linux*oldld* | linux*aout* | linux*coff*)
11839  dynamic_linker=no
11840  ;;
11841
11842linux*android*)
11843  version_type=none # Android doesn't support versioned libraries.
11844  need_lib_prefix=no
11845  need_version=no
11846  library_names_spec='$libname$release$shared_ext'
11847  soname_spec='$libname$release$shared_ext'
11848  finish_cmds=
11849  shlibpath_var=LD_LIBRARY_PATH
11850  shlibpath_overrides_runpath=yes
11851
11852  # This implies no fast_install, which is unacceptable.
11853  # Some rework will be needed to allow for fast_install
11854  # before this can be enabled.
11855  hardcode_into_libs=yes
11856
11857  dynamic_linker='Android linker'
11858  # Don't embed -rpath directories since the linker doesn't support them.
11859  hardcode_libdir_flag_spec='-L$libdir'
11860  ;;
11861
11862# This must be glibc/ELF.
11863linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11864  version_type=linux # correct to gnu/linux during the next big refactor
11865  need_lib_prefix=no
11866  need_version=no
11867  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868  soname_spec='$libname$release$shared_ext$major'
11869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11870  shlibpath_var=LD_LIBRARY_PATH
11871  shlibpath_overrides_runpath=no
11872
11873  # Some binutils ld are patched to set DT_RUNPATH
11874  if test ${lt_cv_shlibpath_overrides_runpath+y}
11875then :
11876  printf %s "(cached) " >&6
11877else case e in #(
11878  e) lt_cv_shlibpath_overrides_runpath=no
11879    save_LDFLAGS=$LDFLAGS
11880    save_libdir=$libdir
11881    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11882	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884/* end confdefs.h.  */
11885
11886int
11887main (void)
11888{
11889
11890  ;
11891  return 0;
11892}
11893_ACEOF
11894if ac_fn_c_try_link "$LINENO"
11895then :
11896  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11897then :
11898  lt_cv_shlibpath_overrides_runpath=yes
11899fi
11900fi
11901rm -f core conftest.err conftest.$ac_objext conftest.beam \
11902    conftest$ac_exeext conftest.$ac_ext
11903    LDFLAGS=$save_LDFLAGS
11904    libdir=$save_libdir
11905     ;;
11906esac
11907fi
11908
11909  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11910
11911  # This implies no fast_install, which is unacceptable.
11912  # Some rework will be needed to allow for fast_install
11913  # before this can be enabled.
11914  hardcode_into_libs=yes
11915
11916  # Ideally, we could use ldconfig to report *all* directores which are
11917  # searched for libraries, however this is still not possible.  Aside from not
11918  # being certain /sbin/ldconfig is available, command
11919  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11920  # even though it is searched at run-time.  Try to do the best guess by
11921  # appending ld.so.conf contents (and includes) to the search path.
11922  if test -f /etc/ld.so.conf; then
11923    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' ' '`
11924    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11925  fi
11926
11927  # We used to test for /lib/ld.so.1 and disable shared libraries on
11928  # powerpc, because MkLinux only supported shared libraries with the
11929  # GNU dynamic linker.  Since this was broken with cross compilers,
11930  # most powerpc-linux boxes support dynamic linking these days and
11931  # people can always --disable-shared, the test was removed, and we
11932  # assume the GNU/Linux dynamic linker is in use.
11933  dynamic_linker='GNU/Linux ld.so'
11934  ;;
11935
11936netbsd*)
11937  version_type=sunos
11938  need_lib_prefix=no
11939  need_version=no
11940  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11941    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11942    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11943    dynamic_linker='NetBSD (a.out) ld.so'
11944  else
11945    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11946    soname_spec='$libname$release$shared_ext$major'
11947    dynamic_linker='NetBSD ld.elf_so'
11948  fi
11949  shlibpath_var=LD_LIBRARY_PATH
11950  shlibpath_overrides_runpath=yes
11951  hardcode_into_libs=yes
11952  ;;
11953
11954newsos6)
11955  version_type=linux # correct to gnu/linux during the next big refactor
11956  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957  shlibpath_var=LD_LIBRARY_PATH
11958  shlibpath_overrides_runpath=yes
11959  ;;
11960
11961*nto* | *qnx*)
11962  version_type=qnx
11963  need_lib_prefix=no
11964  need_version=no
11965  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11966  soname_spec='$libname$release$shared_ext$major'
11967  shlibpath_var=LD_LIBRARY_PATH
11968  shlibpath_overrides_runpath=no
11969  hardcode_into_libs=yes
11970  dynamic_linker='ldqnx.so'
11971  ;;
11972
11973openbsd* | bitrig*)
11974  version_type=sunos
11975  sys_lib_dlsearch_path_spec=/usr/lib
11976  need_lib_prefix=no
11977  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11978    need_version=no
11979  else
11980    need_version=yes
11981  fi
11982  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11983  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11984  shlibpath_var=LD_LIBRARY_PATH
11985  shlibpath_overrides_runpath=yes
11986  ;;
11987
11988os2*)
11989  libname_spec='$name'
11990  version_type=windows
11991  shrext_cmds=.dll
11992  need_version=no
11993  need_lib_prefix=no
11994  # OS/2 can only load a DLL with a base name of 8 characters or less.
11995  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11996    v=$($ECHO $release$versuffix | tr -d .-);
11997    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11998    $ECHO $n$v`$shared_ext'
11999  library_names_spec='${libname}_dll.$libext'
12000  dynamic_linker='OS/2 ld.exe'
12001  shlibpath_var=BEGINLIBPATH
12002  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12003  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12004  postinstall_cmds='base_file=`basename \$file`~
12005    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12006    dldir=$destdir/`dirname \$dlpath`~
12007    test -d \$dldir || mkdir -p \$dldir~
12008    $install_prog $dir/$dlname \$dldir/$dlname~
12009    chmod a+x \$dldir/$dlname~
12010    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12011      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12012    fi'
12013  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12014    dlpath=$dir/\$dldll~
12015    $RM \$dlpath'
12016  ;;
12017
12018osf3* | osf4* | osf5*)
12019  version_type=osf
12020  need_lib_prefix=no
12021  need_version=no
12022  soname_spec='$libname$release$shared_ext$major'
12023  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024  shlibpath_var=LD_LIBRARY_PATH
12025  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12026  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12027  ;;
12028
12029rdos*)
12030  dynamic_linker=no
12031  ;;
12032
12033solaris*)
12034  version_type=linux # correct to gnu/linux during the next big refactor
12035  need_lib_prefix=no
12036  need_version=no
12037  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038  soname_spec='$libname$release$shared_ext$major'
12039  shlibpath_var=LD_LIBRARY_PATH
12040  shlibpath_overrides_runpath=yes
12041  hardcode_into_libs=yes
12042  # ldd complains unless libraries are executable
12043  postinstall_cmds='chmod +x $lib'
12044  ;;
12045
12046sunos4*)
12047  version_type=sunos
12048  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12049  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12050  shlibpath_var=LD_LIBRARY_PATH
12051  shlibpath_overrides_runpath=yes
12052  if test yes = "$with_gnu_ld"; then
12053    need_lib_prefix=no
12054  fi
12055  need_version=yes
12056  ;;
12057
12058sysv4 | sysv4.3*)
12059  version_type=linux # correct to gnu/linux during the next big refactor
12060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061  soname_spec='$libname$release$shared_ext$major'
12062  shlibpath_var=LD_LIBRARY_PATH
12063  case $host_vendor in
12064    sni)
12065      shlibpath_overrides_runpath=no
12066      need_lib_prefix=no
12067      runpath_var=LD_RUN_PATH
12068      ;;
12069    siemens)
12070      need_lib_prefix=no
12071      ;;
12072    motorola)
12073      need_lib_prefix=no
12074      need_version=no
12075      shlibpath_overrides_runpath=no
12076      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12077      ;;
12078  esac
12079  ;;
12080
12081sysv4*MP*)
12082  if test -d /usr/nec; then
12083    version_type=linux # correct to gnu/linux during the next big refactor
12084    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12085    soname_spec='$libname$shared_ext.$major'
12086    shlibpath_var=LD_LIBRARY_PATH
12087  fi
12088  ;;
12089
12090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12091  version_type=sco
12092  need_lib_prefix=no
12093  need_version=no
12094  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12095  soname_spec='$libname$release$shared_ext$major'
12096  shlibpath_var=LD_LIBRARY_PATH
12097  shlibpath_overrides_runpath=yes
12098  hardcode_into_libs=yes
12099  if test yes = "$with_gnu_ld"; then
12100    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12101  else
12102    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12103    case $host_os in
12104      sco3.2v5*)
12105        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12106	;;
12107    esac
12108  fi
12109  sys_lib_dlsearch_path_spec='/usr/lib'
12110  ;;
12111
12112tpf*)
12113  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12114  version_type=linux # correct to gnu/linux during the next big refactor
12115  need_lib_prefix=no
12116  need_version=no
12117  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118  shlibpath_var=LD_LIBRARY_PATH
12119  shlibpath_overrides_runpath=no
12120  hardcode_into_libs=yes
12121  ;;
12122
12123uts4*)
12124  version_type=linux # correct to gnu/linux during the next big refactor
12125  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126  soname_spec='$libname$release$shared_ext$major'
12127  shlibpath_var=LD_LIBRARY_PATH
12128  ;;
12129
12130*)
12131  dynamic_linker=no
12132  ;;
12133esac
12134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12135printf "%s\n" "$dynamic_linker" >&6; }
12136test no = "$dynamic_linker" && can_build_shared=no
12137
12138variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12139if test yes = "$GCC"; then
12140  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12141fi
12142
12143if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12144  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12145fi
12146
12147if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12148  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12149fi
12150
12151# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12152configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12153
12154# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12155func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12156
12157# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12158configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12257printf %s "checking how to hardcode library paths into programs... " >&6; }
12258hardcode_action=
12259if test -n "$hardcode_libdir_flag_spec" ||
12260   test -n "$runpath_var" ||
12261   test yes = "$hardcode_automatic"; then
12262
12263  # We can hardcode non-existent directories.
12264  if test no != "$hardcode_direct" &&
12265     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12266     # have to relink, otherwise we might link with an installed library
12267     # when we should be linking with a yet-to-be-installed one
12268     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12269     test no != "$hardcode_minus_L"; then
12270    # Linking always hardcodes the temporary library directory.
12271    hardcode_action=relink
12272  else
12273    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12274    hardcode_action=immediate
12275  fi
12276else
12277  # We cannot hardcode anything, or else we can only hardcode existing
12278  # directories.
12279  hardcode_action=unsupported
12280fi
12281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12282printf "%s\n" "$hardcode_action" >&6; }
12283
12284if test relink = "$hardcode_action" ||
12285   test yes = "$inherit_rpath"; then
12286  # Fast installation is not supported
12287  enable_fast_install=no
12288elif test yes = "$shlibpath_overrides_runpath" ||
12289     test no = "$enable_shared"; then
12290  # Fast installation is not necessary
12291  enable_fast_install=needless
12292fi
12293
12294
12295
12296
12297
12298
12299  if test yes != "$enable_dlopen"; then
12300  enable_dlopen=unknown
12301  enable_dlopen_self=unknown
12302  enable_dlopen_self_static=unknown
12303else
12304  lt_cv_dlopen=no
12305  lt_cv_dlopen_libs=
12306
12307  case $host_os in
12308  beos*)
12309    lt_cv_dlopen=load_add_on
12310    lt_cv_dlopen_libs=
12311    lt_cv_dlopen_self=yes
12312    ;;
12313
12314  mingw* | pw32* | cegcc*)
12315    lt_cv_dlopen=LoadLibrary
12316    lt_cv_dlopen_libs=
12317    ;;
12318
12319  cygwin*)
12320    lt_cv_dlopen=dlopen
12321    lt_cv_dlopen_libs=
12322    ;;
12323
12324  darwin*)
12325    # if libdl is installed we need to link against it
12326    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12327printf %s "checking for dlopen in -ldl... " >&6; }
12328if test ${ac_cv_lib_dl_dlopen+y}
12329then :
12330  printf %s "(cached) " >&6
12331else case e in #(
12332  e) ac_check_lib_save_LIBS=$LIBS
12333LIBS="-ldl  $LIBS"
12334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335/* end confdefs.h.  */
12336
12337/* Override any GCC internal prototype to avoid an error.
12338   Use char because int might match the return type of a GCC
12339   builtin and then its argument prototype would still apply.
12340   The 'extern "C"' is for builds by C++ compilers;
12341   although this is not generally supported in C code supporting it here
12342   has little cost and some practical benefit (sr 110532).  */
12343#ifdef __cplusplus
12344extern "C"
12345#endif
12346char dlopen (void);
12347int
12348main (void)
12349{
12350return dlopen ();
12351  ;
12352  return 0;
12353}
12354_ACEOF
12355if ac_fn_c_try_link "$LINENO"
12356then :
12357  ac_cv_lib_dl_dlopen=yes
12358else case e in #(
12359  e) ac_cv_lib_dl_dlopen=no ;;
12360esac
12361fi
12362rm -f core conftest.err conftest.$ac_objext conftest.beam \
12363    conftest$ac_exeext conftest.$ac_ext
12364LIBS=$ac_check_lib_save_LIBS ;;
12365esac
12366fi
12367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12368printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12369if test "x$ac_cv_lib_dl_dlopen" = xyes
12370then :
12371  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12372else case e in #(
12373  e)
12374    lt_cv_dlopen=dyld
12375    lt_cv_dlopen_libs=
12376    lt_cv_dlopen_self=yes
12377     ;;
12378esac
12379fi
12380
12381    ;;
12382
12383  tpf*)
12384    # Don't try to run any link tests for TPF.  We know it's impossible
12385    # because TPF is a cross-compiler, and we know how we open DSOs.
12386    lt_cv_dlopen=dlopen
12387    lt_cv_dlopen_libs=
12388    lt_cv_dlopen_self=no
12389    ;;
12390
12391  *)
12392    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12393if test "x$ac_cv_func_shl_load" = xyes
12394then :
12395  lt_cv_dlopen=shl_load
12396else case e in #(
12397  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12398printf %s "checking for shl_load in -ldld... " >&6; }
12399if test ${ac_cv_lib_dld_shl_load+y}
12400then :
12401  printf %s "(cached) " >&6
12402else case e in #(
12403  e) ac_check_lib_save_LIBS=$LIBS
12404LIBS="-ldld  $LIBS"
12405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h.  */
12407
12408/* Override any GCC internal prototype to avoid an error.
12409   Use char because int might match the return type of a GCC
12410   builtin and then its argument prototype would still apply.
12411   The 'extern "C"' is for builds by C++ compilers;
12412   although this is not generally supported in C code supporting it here
12413   has little cost and some practical benefit (sr 110532).  */
12414#ifdef __cplusplus
12415extern "C"
12416#endif
12417char shl_load (void);
12418int
12419main (void)
12420{
12421return shl_load ();
12422  ;
12423  return 0;
12424}
12425_ACEOF
12426if ac_fn_c_try_link "$LINENO"
12427then :
12428  ac_cv_lib_dld_shl_load=yes
12429else case e in #(
12430  e) ac_cv_lib_dld_shl_load=no ;;
12431esac
12432fi
12433rm -f core conftest.err conftest.$ac_objext conftest.beam \
12434    conftest$ac_exeext conftest.$ac_ext
12435LIBS=$ac_check_lib_save_LIBS ;;
12436esac
12437fi
12438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12439printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12440if test "x$ac_cv_lib_dld_shl_load" = xyes
12441then :
12442  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12443else case e in #(
12444  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12445if test "x$ac_cv_func_dlopen" = xyes
12446then :
12447  lt_cv_dlopen=dlopen
12448else case e in #(
12449  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12450printf %s "checking for dlopen in -ldl... " >&6; }
12451if test ${ac_cv_lib_dl_dlopen+y}
12452then :
12453  printf %s "(cached) " >&6
12454else case e in #(
12455  e) ac_check_lib_save_LIBS=$LIBS
12456LIBS="-ldl  $LIBS"
12457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458/* end confdefs.h.  */
12459
12460/* Override any GCC internal prototype to avoid an error.
12461   Use char because int might match the return type of a GCC
12462   builtin and then its argument prototype would still apply.
12463   The 'extern "C"' is for builds by C++ compilers;
12464   although this is not generally supported in C code supporting it here
12465   has little cost and some practical benefit (sr 110532).  */
12466#ifdef __cplusplus
12467extern "C"
12468#endif
12469char dlopen (void);
12470int
12471main (void)
12472{
12473return dlopen ();
12474  ;
12475  return 0;
12476}
12477_ACEOF
12478if ac_fn_c_try_link "$LINENO"
12479then :
12480  ac_cv_lib_dl_dlopen=yes
12481else case e in #(
12482  e) ac_cv_lib_dl_dlopen=no ;;
12483esac
12484fi
12485rm -f core conftest.err conftest.$ac_objext conftest.beam \
12486    conftest$ac_exeext conftest.$ac_ext
12487LIBS=$ac_check_lib_save_LIBS ;;
12488esac
12489fi
12490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12491printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12492if test "x$ac_cv_lib_dl_dlopen" = xyes
12493then :
12494  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12495else case e in #(
12496  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12497printf %s "checking for dlopen in -lsvld... " >&6; }
12498if test ${ac_cv_lib_svld_dlopen+y}
12499then :
12500  printf %s "(cached) " >&6
12501else case e in #(
12502  e) ac_check_lib_save_LIBS=$LIBS
12503LIBS="-lsvld  $LIBS"
12504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505/* end confdefs.h.  */
12506
12507/* Override any GCC internal prototype to avoid an error.
12508   Use char because int might match the return type of a GCC
12509   builtin and then its argument prototype would still apply.
12510   The 'extern "C"' is for builds by C++ compilers;
12511   although this is not generally supported in C code supporting it here
12512   has little cost and some practical benefit (sr 110532).  */
12513#ifdef __cplusplus
12514extern "C"
12515#endif
12516char dlopen (void);
12517int
12518main (void)
12519{
12520return dlopen ();
12521  ;
12522  return 0;
12523}
12524_ACEOF
12525if ac_fn_c_try_link "$LINENO"
12526then :
12527  ac_cv_lib_svld_dlopen=yes
12528else case e in #(
12529  e) ac_cv_lib_svld_dlopen=no ;;
12530esac
12531fi
12532rm -f core conftest.err conftest.$ac_objext conftest.beam \
12533    conftest$ac_exeext conftest.$ac_ext
12534LIBS=$ac_check_lib_save_LIBS ;;
12535esac
12536fi
12537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12538printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12539if test "x$ac_cv_lib_svld_dlopen" = xyes
12540then :
12541  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12542else case e in #(
12543  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12544printf %s "checking for dld_link in -ldld... " >&6; }
12545if test ${ac_cv_lib_dld_dld_link+y}
12546then :
12547  printf %s "(cached) " >&6
12548else case e in #(
12549  e) ac_check_lib_save_LIBS=$LIBS
12550LIBS="-ldld  $LIBS"
12551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553
12554/* Override any GCC internal prototype to avoid an error.
12555   Use char because int might match the return type of a GCC
12556   builtin and then its argument prototype would still apply.
12557   The 'extern "C"' is for builds by C++ compilers;
12558   although this is not generally supported in C code supporting it here
12559   has little cost and some practical benefit (sr 110532).  */
12560#ifdef __cplusplus
12561extern "C"
12562#endif
12563char dld_link (void);
12564int
12565main (void)
12566{
12567return dld_link ();
12568  ;
12569  return 0;
12570}
12571_ACEOF
12572if ac_fn_c_try_link "$LINENO"
12573then :
12574  ac_cv_lib_dld_dld_link=yes
12575else case e in #(
12576  e) ac_cv_lib_dld_dld_link=no ;;
12577esac
12578fi
12579rm -f core conftest.err conftest.$ac_objext conftest.beam \
12580    conftest$ac_exeext conftest.$ac_ext
12581LIBS=$ac_check_lib_save_LIBS ;;
12582esac
12583fi
12584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12585printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12586if test "x$ac_cv_lib_dld_dld_link" = xyes
12587then :
12588  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12589fi
12590
12591	       ;;
12592esac
12593fi
12594
12595	     ;;
12596esac
12597fi
12598
12599	   ;;
12600esac
12601fi
12602
12603	 ;;
12604esac
12605fi
12606
12607       ;;
12608esac
12609fi
12610
12611    ;;
12612  esac
12613
12614  if test no = "$lt_cv_dlopen"; then
12615    enable_dlopen=no
12616  else
12617    enable_dlopen=yes
12618  fi
12619
12620  case $lt_cv_dlopen in
12621  dlopen)
12622    save_CPPFLAGS=$CPPFLAGS
12623    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12624
12625    save_LDFLAGS=$LDFLAGS
12626    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12627
12628    save_LIBS=$LIBS
12629    LIBS="$lt_cv_dlopen_libs $LIBS"
12630
12631    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12632printf %s "checking whether a program can dlopen itself... " >&6; }
12633if test ${lt_cv_dlopen_self+y}
12634then :
12635  printf %s "(cached) " >&6
12636else case e in #(
12637  e) 	  if test yes = "$cross_compiling"; then :
12638  lt_cv_dlopen_self=cross
12639else
12640  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12641  lt_status=$lt_dlunknown
12642  cat > conftest.$ac_ext <<_LT_EOF
12643#line $LINENO "configure"
12644#include "confdefs.h"
12645
12646#if HAVE_DLFCN_H
12647#include <dlfcn.h>
12648#endif
12649
12650#include <stdio.h>
12651
12652#ifdef RTLD_GLOBAL
12653#  define LT_DLGLOBAL		RTLD_GLOBAL
12654#else
12655#  ifdef DL_GLOBAL
12656#    define LT_DLGLOBAL		DL_GLOBAL
12657#  else
12658#    define LT_DLGLOBAL		0
12659#  endif
12660#endif
12661
12662/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12663   find out it does not work in some platform. */
12664#ifndef LT_DLLAZY_OR_NOW
12665#  ifdef RTLD_LAZY
12666#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12667#  else
12668#    ifdef DL_LAZY
12669#      define LT_DLLAZY_OR_NOW		DL_LAZY
12670#    else
12671#      ifdef RTLD_NOW
12672#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12673#      else
12674#        ifdef DL_NOW
12675#          define LT_DLLAZY_OR_NOW	DL_NOW
12676#        else
12677#          define LT_DLLAZY_OR_NOW	0
12678#        endif
12679#      endif
12680#    endif
12681#  endif
12682#endif
12683
12684/* When -fvisibility=hidden is used, assume the code has been annotated
12685   correspondingly for the symbols needed.  */
12686#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12687int fnord () __attribute__((visibility("default")));
12688#endif
12689
12690int fnord () { return 42; }
12691int main ()
12692{
12693  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12694  int status = $lt_dlunknown;
12695
12696  if (self)
12697    {
12698      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12699      else
12700        {
12701	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12702          else puts (dlerror ());
12703	}
12704      /* dlclose (self); */
12705    }
12706  else
12707    puts (dlerror ());
12708
12709  return status;
12710}
12711_LT_EOF
12712  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12713  (eval $ac_link) 2>&5
12714  ac_status=$?
12715  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12716  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12717    (./conftest; exit; ) >&5 2>/dev/null
12718    lt_status=$?
12719    case x$lt_status in
12720      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12721      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12722      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12723    esac
12724  else :
12725    # compilation failed
12726    lt_cv_dlopen_self=no
12727  fi
12728fi
12729rm -fr conftest*
12730
12731     ;;
12732esac
12733fi
12734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12735printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12736
12737    if test yes = "$lt_cv_dlopen_self"; then
12738      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12739      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12740printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12741if test ${lt_cv_dlopen_self_static+y}
12742then :
12743  printf %s "(cached) " >&6
12744else case e in #(
12745  e) 	  if test yes = "$cross_compiling"; then :
12746  lt_cv_dlopen_self_static=cross
12747else
12748  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12749  lt_status=$lt_dlunknown
12750  cat > conftest.$ac_ext <<_LT_EOF
12751#line $LINENO "configure"
12752#include "confdefs.h"
12753
12754#if HAVE_DLFCN_H
12755#include <dlfcn.h>
12756#endif
12757
12758#include <stdio.h>
12759
12760#ifdef RTLD_GLOBAL
12761#  define LT_DLGLOBAL		RTLD_GLOBAL
12762#else
12763#  ifdef DL_GLOBAL
12764#    define LT_DLGLOBAL		DL_GLOBAL
12765#  else
12766#    define LT_DLGLOBAL		0
12767#  endif
12768#endif
12769
12770/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12771   find out it does not work in some platform. */
12772#ifndef LT_DLLAZY_OR_NOW
12773#  ifdef RTLD_LAZY
12774#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12775#  else
12776#    ifdef DL_LAZY
12777#      define LT_DLLAZY_OR_NOW		DL_LAZY
12778#    else
12779#      ifdef RTLD_NOW
12780#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12781#      else
12782#        ifdef DL_NOW
12783#          define LT_DLLAZY_OR_NOW	DL_NOW
12784#        else
12785#          define LT_DLLAZY_OR_NOW	0
12786#        endif
12787#      endif
12788#    endif
12789#  endif
12790#endif
12791
12792/* When -fvisibility=hidden is used, assume the code has been annotated
12793   correspondingly for the symbols needed.  */
12794#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12795int fnord () __attribute__((visibility("default")));
12796#endif
12797
12798int fnord () { return 42; }
12799int main ()
12800{
12801  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12802  int status = $lt_dlunknown;
12803
12804  if (self)
12805    {
12806      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12807      else
12808        {
12809	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12810          else puts (dlerror ());
12811	}
12812      /* dlclose (self); */
12813    }
12814  else
12815    puts (dlerror ());
12816
12817  return status;
12818}
12819_LT_EOF
12820  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12821  (eval $ac_link) 2>&5
12822  ac_status=$?
12823  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12825    (./conftest; exit; ) >&5 2>/dev/null
12826    lt_status=$?
12827    case x$lt_status in
12828      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12829      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12830      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12831    esac
12832  else :
12833    # compilation failed
12834    lt_cv_dlopen_self_static=no
12835  fi
12836fi
12837rm -fr conftest*
12838
12839       ;;
12840esac
12841fi
12842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12843printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12844    fi
12845
12846    CPPFLAGS=$save_CPPFLAGS
12847    LDFLAGS=$save_LDFLAGS
12848    LIBS=$save_LIBS
12849    ;;
12850  esac
12851
12852  case $lt_cv_dlopen_self in
12853  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12854  *) enable_dlopen_self=unknown ;;
12855  esac
12856
12857  case $lt_cv_dlopen_self_static in
12858  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12859  *) enable_dlopen_self_static=unknown ;;
12860  esac
12861fi
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879striplib=
12880old_striplib=
12881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12882printf %s "checking whether stripping libraries is possible... " >&6; }
12883if test -z "$STRIP"; then
12884  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885printf "%s\n" "no" >&6; }
12886else
12887  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12888    old_striplib="$STRIP --strip-debug"
12889    striplib="$STRIP --strip-unneeded"
12890    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12891printf "%s\n" "yes" >&6; }
12892  else
12893    case $host_os in
12894    darwin*)
12895      # FIXME - insert some real tests, host_os isn't really good enough
12896      striplib="$STRIP -x"
12897      old_striplib="$STRIP -S"
12898      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12899printf "%s\n" "yes" >&6; }
12900      ;;
12901    freebsd*)
12902      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12903        old_striplib="$STRIP --strip-debug"
12904        striplib="$STRIP --strip-unneeded"
12905        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12906printf "%s\n" "yes" >&6; }
12907      else
12908        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909printf "%s\n" "no" >&6; }
12910      fi
12911      ;;
12912    *)
12913      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914printf "%s\n" "no" >&6; }
12915      ;;
12916    esac
12917  fi
12918fi
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931  # Report what library types will actually be built
12932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12933printf %s "checking if libtool supports shared libraries... " >&6; }
12934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12935printf "%s\n" "$can_build_shared" >&6; }
12936
12937  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12938printf %s "checking whether to build shared libraries... " >&6; }
12939  test no = "$can_build_shared" && enable_shared=no
12940
12941  # On AIX, shared libraries and static libraries use the same namespace, and
12942  # are all built from PIC.
12943  case $host_os in
12944  aix3*)
12945    test yes = "$enable_shared" && enable_static=no
12946    if test -n "$RANLIB"; then
12947      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12948      postinstall_cmds='$RANLIB $lib'
12949    fi
12950    ;;
12951
12952  aix[4-9]*)
12953    if test ia64 != "$host_cpu"; then
12954      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12955      yes,aix,yes) ;;			# shared object as lib.so file only
12956      yes,svr4,*) ;;			# shared object as lib.so archive member only
12957      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12958      esac
12959    fi
12960    ;;
12961  esac
12962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12963printf "%s\n" "$enable_shared" >&6; }
12964
12965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12966printf %s "checking whether to build static libraries... " >&6; }
12967  # Make sure either enable_shared or enable_static is yes.
12968  test yes = "$enable_shared" || enable_static=yes
12969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12970printf "%s\n" "$enable_static" >&6; }
12971
12972
12973
12974
12975fi
12976ac_ext=c
12977ac_cpp='$CPP $CPPFLAGS'
12978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12980ac_compiler_gnu=$ac_cv_c_compiler_gnu
12981
12982CC=$lt_save_CC
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998        ac_config_commands="$ac_config_commands libtool"
12999
13000
13001
13002
13003# Only expand once:
13004
13005
13006
13007# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13020printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13021if test ${ac_cv_c_undeclared_builtin_options+y}
13022then :
13023  printf %s "(cached) " >&6
13024else case e in #(
13025  e) ac_save_CFLAGS=$CFLAGS
13026   ac_cv_c_undeclared_builtin_options='cannot detect'
13027   for ac_arg in '' -fno-builtin; do
13028     CFLAGS="$ac_save_CFLAGS $ac_arg"
13029     # This test program should *not* compile successfully.
13030     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031/* end confdefs.h.  */
13032
13033int
13034main (void)
13035{
13036(void) strchr;
13037  ;
13038  return 0;
13039}
13040_ACEOF
13041if ac_fn_c_try_compile "$LINENO"
13042then :
13043
13044else case e in #(
13045  e) # This test program should compile successfully.
13046        # No library function is consistently available on
13047        # freestanding implementations, so test against a dummy
13048        # declaration.  Include always-available headers on the
13049        # off chance that they somehow elicit warnings.
13050        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051/* end confdefs.h.  */
13052#include <float.h>
13053#include <limits.h>
13054#include <stdarg.h>
13055#include <stddef.h>
13056extern void ac_decl (int, char *);
13057
13058int
13059main (void)
13060{
13061(void) ac_decl (0, (char *) 0);
13062  (void) ac_decl;
13063
13064  ;
13065  return 0;
13066}
13067_ACEOF
13068if ac_fn_c_try_compile "$LINENO"
13069then :
13070  if test x"$ac_arg" = x
13071then :
13072  ac_cv_c_undeclared_builtin_options='none needed'
13073else case e in #(
13074  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13075esac
13076fi
13077          break
13078fi
13079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13080esac
13081fi
13082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13083    done
13084    CFLAGS=$ac_save_CFLAGS
13085   ;;
13086esac
13087fi
13088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13089printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13090  case $ac_cv_c_undeclared_builtin_options in #(
13091  'cannot detect') :
13092    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13093printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13094as_fn_error $? "cannot make $CC report undeclared builtins
13095See 'config.log' for more details" "$LINENO" 5; } ;; #(
13096  'none needed') :
13097    ac_c_undeclared_builtin_options='' ;; #(
13098  *) :
13099    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13100esac
13101
13102
13103
13104
13105
13106ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13107if test "x$ac_cv_have_decl___clang__" = xyes
13108then :
13109  CLANGCC="yes"
13110else case e in #(
13111  e) CLANGCC="no" ;;
13112esac
13113fi
13114ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13115if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13116then :
13117  INTELCC="yes"
13118else case e in #(
13119  e) INTELCC="no" ;;
13120esac
13121fi
13122ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13123if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13124then :
13125  SUNCC="yes"
13126else case e in #(
13127  e) SUNCC="no" ;;
13128esac
13129fi
13130
13131
13132
13133
13134
13135
13136
13137
13138if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13139	if test -n "$ac_tool_prefix"; then
13140  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13141set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13143printf %s "checking for $ac_word... " >&6; }
13144if test ${ac_cv_path_PKG_CONFIG+y}
13145then :
13146  printf %s "(cached) " >&6
13147else case e in #(
13148  e) case $PKG_CONFIG in
13149  [\\/]* | ?:[\\/]*)
13150  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13151  ;;
13152  *)
13153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154for as_dir in $PATH
13155do
13156  IFS=$as_save_IFS
13157  case $as_dir in #(((
13158    '') as_dir=./ ;;
13159    */) ;;
13160    *) as_dir=$as_dir/ ;;
13161  esac
13162    for ac_exec_ext in '' $ac_executable_extensions; do
13163  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13164    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13165    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13166    break 2
13167  fi
13168done
13169  done
13170IFS=$as_save_IFS
13171
13172  ;;
13173esac ;;
13174esac
13175fi
13176PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13177if test -n "$PKG_CONFIG"; then
13178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13179printf "%s\n" "$PKG_CONFIG" >&6; }
13180else
13181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182printf "%s\n" "no" >&6; }
13183fi
13184
13185
13186fi
13187if test -z "$ac_cv_path_PKG_CONFIG"; then
13188  ac_pt_PKG_CONFIG=$PKG_CONFIG
13189  # Extract the first word of "pkg-config", so it can be a program name with args.
13190set dummy pkg-config; ac_word=$2
13191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192printf %s "checking for $ac_word... " >&6; }
13193if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13194then :
13195  printf %s "(cached) " >&6
13196else case e in #(
13197  e) case $ac_pt_PKG_CONFIG in
13198  [\\/]* | ?:[\\/]*)
13199  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13200  ;;
13201  *)
13202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203for as_dir in $PATH
13204do
13205  IFS=$as_save_IFS
13206  case $as_dir in #(((
13207    '') as_dir=./ ;;
13208    */) ;;
13209    *) as_dir=$as_dir/ ;;
13210  esac
13211    for ac_exec_ext in '' $ac_executable_extensions; do
13212  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13213    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13214    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13215    break 2
13216  fi
13217done
13218  done
13219IFS=$as_save_IFS
13220
13221  ;;
13222esac ;;
13223esac
13224fi
13225ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13226if test -n "$ac_pt_PKG_CONFIG"; then
13227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13228printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13229else
13230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231printf "%s\n" "no" >&6; }
13232fi
13233
13234  if test "x$ac_pt_PKG_CONFIG" = x; then
13235    PKG_CONFIG=""
13236  else
13237    case $cross_compiling:$ac_tool_warned in
13238yes:)
13239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241ac_tool_warned=yes ;;
13242esac
13243    PKG_CONFIG=$ac_pt_PKG_CONFIG
13244  fi
13245else
13246  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13247fi
13248
13249fi
13250if test -n "$PKG_CONFIG"; then
13251	_pkg_min_version=0.9.0
13252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13253printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13254	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256printf "%s\n" "yes" >&6; }
13257	else
13258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259printf "%s\n" "no" >&6; }
13260		PKG_CONFIG=""
13261	fi
13262fi
13263
13264
13265
13266
13267
13268# Check whether --enable-selective-werror was given.
13269if test ${enable_selective_werror+y}
13270then :
13271  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13272else case e in #(
13273  e) SELECTIVE_WERROR=yes ;;
13274esac
13275fi
13276
13277
13278
13279
13280
13281# -v is too short to test reliably with XORG_TESTSET_CFLAG
13282if test "x$SUNCC" = "xyes"; then
13283    BASE_CFLAGS="-v"
13284else
13285    BASE_CFLAGS=""
13286fi
13287
13288# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302xorg_testset_save_CFLAGS="$CFLAGS"
13303
13304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13306	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13307printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13308if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13309then :
13310  printf %s "(cached) " >&6
13311else case e in #(
13312  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313/* end confdefs.h.  */
13314int i;
13315_ACEOF
13316if ac_fn_c_try_compile "$LINENO"
13317then :
13318  xorg_cv_cc_flag_unknown_warning_option=yes
13319else case e in #(
13320  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13321esac
13322fi
13323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13324esac
13325fi
13326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13329	CFLAGS="$xorg_testset_save_CFLAGS"
13330fi
13331
13332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13335	fi
13336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13337	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13339if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13340then :
13341  printf %s "(cached) " >&6
13342else case e in #(
13343  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344/* end confdefs.h.  */
13345int i;
13346_ACEOF
13347if ac_fn_c_try_compile "$LINENO"
13348then :
13349  xorg_cv_cc_flag_unused_command_line_argument=yes
13350else case e in #(
13351  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13352esac
13353fi
13354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13355esac
13356fi
13357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13358printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13360	CFLAGS="$xorg_testset_save_CFLAGS"
13361fi
13362
13363found="no"
13364
13365	if test $found = "no" ; then
13366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368		fi
13369
13370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13372		fi
13373
13374		CFLAGS="$CFLAGS -Wall"
13375
13376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13377printf %s "checking if $CC supports -Wall... " >&6; }
13378		cacheid=xorg_cv_cc_flag__Wall
13379		if eval test \${$cacheid+y}
13380then :
13381  printf %s "(cached) " >&6
13382else case e in #(
13383  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384/* end confdefs.h.  */
13385int i;
13386int
13387main (void)
13388{
13389
13390  ;
13391  return 0;
13392}
13393_ACEOF
13394if ac_fn_c_try_link "$LINENO"
13395then :
13396  eval $cacheid=yes
13397else case e in #(
13398  e) eval $cacheid=no ;;
13399esac
13400fi
13401rm -f core conftest.err conftest.$ac_objext conftest.beam \
13402    conftest$ac_exeext conftest.$ac_ext ;;
13403esac
13404fi
13405
13406
13407		CFLAGS="$xorg_testset_save_CFLAGS"
13408
13409		eval supported=\$$cacheid
13410		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13411printf "%s\n" "$supported" >&6; }
13412		if test "$supported" = "yes" ; then
13413			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13414			found="yes"
13415		fi
13416	fi
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432xorg_testset_save_CFLAGS="$CFLAGS"
13433
13434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13437printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13438if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13439then :
13440  printf %s "(cached) " >&6
13441else case e in #(
13442  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443/* end confdefs.h.  */
13444int i;
13445_ACEOF
13446if ac_fn_c_try_compile "$LINENO"
13447then :
13448  xorg_cv_cc_flag_unknown_warning_option=yes
13449else case e in #(
13450  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13451esac
13452fi
13453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13454esac
13455fi
13456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13457printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13459	CFLAGS="$xorg_testset_save_CFLAGS"
13460fi
13461
13462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13465	fi
13466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13467	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13468printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13469if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13470then :
13471  printf %s "(cached) " >&6
13472else case e in #(
13473  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474/* end confdefs.h.  */
13475int i;
13476_ACEOF
13477if ac_fn_c_try_compile "$LINENO"
13478then :
13479  xorg_cv_cc_flag_unused_command_line_argument=yes
13480else case e in #(
13481  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13482esac
13483fi
13484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13485esac
13486fi
13487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13490	CFLAGS="$xorg_testset_save_CFLAGS"
13491fi
13492
13493found="no"
13494
13495	if test $found = "no" ; then
13496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13498		fi
13499
13500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13502		fi
13503
13504		CFLAGS="$CFLAGS -Wpointer-arith"
13505
13506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13507printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13508		cacheid=xorg_cv_cc_flag__Wpointer_arith
13509		if eval test \${$cacheid+y}
13510then :
13511  printf %s "(cached) " >&6
13512else case e in #(
13513  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514/* end confdefs.h.  */
13515int i;
13516int
13517main (void)
13518{
13519
13520  ;
13521  return 0;
13522}
13523_ACEOF
13524if ac_fn_c_try_link "$LINENO"
13525then :
13526  eval $cacheid=yes
13527else case e in #(
13528  e) eval $cacheid=no ;;
13529esac
13530fi
13531rm -f core conftest.err conftest.$ac_objext conftest.beam \
13532    conftest$ac_exeext conftest.$ac_ext ;;
13533esac
13534fi
13535
13536
13537		CFLAGS="$xorg_testset_save_CFLAGS"
13538
13539		eval supported=\$$cacheid
13540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13541printf "%s\n" "$supported" >&6; }
13542		if test "$supported" = "yes" ; then
13543			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13544			found="yes"
13545		fi
13546	fi
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562xorg_testset_save_CFLAGS="$CFLAGS"
13563
13564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13569then :
13570  printf %s "(cached) " >&6
13571else case e in #(
13572  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573/* end confdefs.h.  */
13574int i;
13575_ACEOF
13576if ac_fn_c_try_compile "$LINENO"
13577then :
13578  xorg_cv_cc_flag_unknown_warning_option=yes
13579else case e in #(
13580  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13581esac
13582fi
13583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13584esac
13585fi
13586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13589	CFLAGS="$xorg_testset_save_CFLAGS"
13590fi
13591
13592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13595	fi
13596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13600then :
13601  printf %s "(cached) " >&6
13602else case e in #(
13603  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604/* end confdefs.h.  */
13605int i;
13606_ACEOF
13607if ac_fn_c_try_compile "$LINENO"
13608then :
13609  xorg_cv_cc_flag_unused_command_line_argument=yes
13610else case e in #(
13611  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13612esac
13613fi
13614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13615esac
13616fi
13617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13620	CFLAGS="$xorg_testset_save_CFLAGS"
13621fi
13622
13623found="no"
13624
13625	if test $found = "no" ; then
13626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13628		fi
13629
13630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13632		fi
13633
13634		CFLAGS="$CFLAGS -Wmissing-declarations"
13635
13636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13637printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13638		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13639		if eval test \${$cacheid+y}
13640then :
13641  printf %s "(cached) " >&6
13642else case e in #(
13643  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644/* end confdefs.h.  */
13645int i;
13646int
13647main (void)
13648{
13649
13650  ;
13651  return 0;
13652}
13653_ACEOF
13654if ac_fn_c_try_link "$LINENO"
13655then :
13656  eval $cacheid=yes
13657else case e in #(
13658  e) eval $cacheid=no ;;
13659esac
13660fi
13661rm -f core conftest.err conftest.$ac_objext conftest.beam \
13662    conftest$ac_exeext conftest.$ac_ext ;;
13663esac
13664fi
13665
13666
13667		CFLAGS="$xorg_testset_save_CFLAGS"
13668
13669		eval supported=\$$cacheid
13670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13671printf "%s\n" "$supported" >&6; }
13672		if test "$supported" = "yes" ; then
13673			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13674			found="yes"
13675		fi
13676	fi
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692xorg_testset_save_CFLAGS="$CFLAGS"
13693
13694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13698if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13699then :
13700  printf %s "(cached) " >&6
13701else case e in #(
13702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703/* end confdefs.h.  */
13704int i;
13705_ACEOF
13706if ac_fn_c_try_compile "$LINENO"
13707then :
13708  xorg_cv_cc_flag_unknown_warning_option=yes
13709else case e in #(
13710  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13711esac
13712fi
13713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13714esac
13715fi
13716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13719	CFLAGS="$xorg_testset_save_CFLAGS"
13720fi
13721
13722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13725	fi
13726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13730then :
13731  printf %s "(cached) " >&6
13732else case e in #(
13733  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734/* end confdefs.h.  */
13735int i;
13736_ACEOF
13737if ac_fn_c_try_compile "$LINENO"
13738then :
13739  xorg_cv_cc_flag_unused_command_line_argument=yes
13740else case e in #(
13741  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13742esac
13743fi
13744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13745esac
13746fi
13747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13748printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13750	CFLAGS="$xorg_testset_save_CFLAGS"
13751fi
13752
13753found="no"
13754
13755	if test $found = "no" ; then
13756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13758		fi
13759
13760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13762		fi
13763
13764		CFLAGS="$CFLAGS -Wformat=2"
13765
13766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13767printf %s "checking if $CC supports -Wformat=2... " >&6; }
13768		cacheid=xorg_cv_cc_flag__Wformat_2
13769		if eval test \${$cacheid+y}
13770then :
13771  printf %s "(cached) " >&6
13772else case e in #(
13773  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774/* end confdefs.h.  */
13775int i;
13776int
13777main (void)
13778{
13779
13780  ;
13781  return 0;
13782}
13783_ACEOF
13784if ac_fn_c_try_link "$LINENO"
13785then :
13786  eval $cacheid=yes
13787else case e in #(
13788  e) eval $cacheid=no ;;
13789esac
13790fi
13791rm -f core conftest.err conftest.$ac_objext conftest.beam \
13792    conftest$ac_exeext conftest.$ac_ext ;;
13793esac
13794fi
13795
13796
13797		CFLAGS="$xorg_testset_save_CFLAGS"
13798
13799		eval supported=\$$cacheid
13800		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13801printf "%s\n" "$supported" >&6; }
13802		if test "$supported" = "yes" ; then
13803			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13804			found="yes"
13805		fi
13806	fi
13807
13808	if test $found = "no" ; then
13809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13811		fi
13812
13813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13815		fi
13816
13817		CFLAGS="$CFLAGS -Wformat"
13818
13819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13820printf %s "checking if $CC supports -Wformat... " >&6; }
13821		cacheid=xorg_cv_cc_flag__Wformat
13822		if eval test \${$cacheid+y}
13823then :
13824  printf %s "(cached) " >&6
13825else case e in #(
13826  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827/* end confdefs.h.  */
13828int i;
13829int
13830main (void)
13831{
13832
13833  ;
13834  return 0;
13835}
13836_ACEOF
13837if ac_fn_c_try_link "$LINENO"
13838then :
13839  eval $cacheid=yes
13840else case e in #(
13841  e) eval $cacheid=no ;;
13842esac
13843fi
13844rm -f core conftest.err conftest.$ac_objext conftest.beam \
13845    conftest$ac_exeext conftest.$ac_ext ;;
13846esac
13847fi
13848
13849
13850		CFLAGS="$xorg_testset_save_CFLAGS"
13851
13852		eval supported=\$$cacheid
13853		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13854printf "%s\n" "$supported" >&6; }
13855		if test "$supported" = "yes" ; then
13856			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13857			found="yes"
13858		fi
13859	fi
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877xorg_testset_save_CFLAGS="$CFLAGS"
13878
13879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13883if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13884then :
13885  printf %s "(cached) " >&6
13886else case e in #(
13887  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888/* end confdefs.h.  */
13889int i;
13890_ACEOF
13891if ac_fn_c_try_compile "$LINENO"
13892then :
13893  xorg_cv_cc_flag_unknown_warning_option=yes
13894else case e in #(
13895  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13896esac
13897fi
13898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13899esac
13900fi
13901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13902printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13904	CFLAGS="$xorg_testset_save_CFLAGS"
13905fi
13906
13907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13910	fi
13911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13912	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13913printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13914if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13915then :
13916  printf %s "(cached) " >&6
13917else case e in #(
13918  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919/* end confdefs.h.  */
13920int i;
13921_ACEOF
13922if ac_fn_c_try_compile "$LINENO"
13923then :
13924  xorg_cv_cc_flag_unused_command_line_argument=yes
13925else case e in #(
13926  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13927esac
13928fi
13929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13930esac
13931fi
13932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13935	CFLAGS="$xorg_testset_save_CFLAGS"
13936fi
13937
13938found="no"
13939
13940	if test $found = "no" ; then
13941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943		fi
13944
13945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13947		fi
13948
13949		CFLAGS="$CFLAGS -Wstrict-prototypes"
13950
13951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13952printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13953		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13954		if eval test \${$cacheid+y}
13955then :
13956  printf %s "(cached) " >&6
13957else case e in #(
13958  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959/* end confdefs.h.  */
13960int i;
13961int
13962main (void)
13963{
13964
13965  ;
13966  return 0;
13967}
13968_ACEOF
13969if ac_fn_c_try_link "$LINENO"
13970then :
13971  eval $cacheid=yes
13972else case e in #(
13973  e) eval $cacheid=no ;;
13974esac
13975fi
13976rm -f core conftest.err conftest.$ac_objext conftest.beam \
13977    conftest$ac_exeext conftest.$ac_ext ;;
13978esac
13979fi
13980
13981
13982		CFLAGS="$xorg_testset_save_CFLAGS"
13983
13984		eval supported=\$$cacheid
13985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13986printf "%s\n" "$supported" >&6; }
13987		if test "$supported" = "yes" ; then
13988			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13989			found="yes"
13990		fi
13991	fi
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007xorg_testset_save_CFLAGS="$CFLAGS"
14008
14009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14013if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14014then :
14015  printf %s "(cached) " >&6
14016else case e in #(
14017  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018/* end confdefs.h.  */
14019int i;
14020_ACEOF
14021if ac_fn_c_try_compile "$LINENO"
14022then :
14023  xorg_cv_cc_flag_unknown_warning_option=yes
14024else case e in #(
14025  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14026esac
14027fi
14028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14029esac
14030fi
14031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14034	CFLAGS="$xorg_testset_save_CFLAGS"
14035fi
14036
14037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14040	fi
14041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14045then :
14046  printf %s "(cached) " >&6
14047else case e in #(
14048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049/* end confdefs.h.  */
14050int i;
14051_ACEOF
14052if ac_fn_c_try_compile "$LINENO"
14053then :
14054  xorg_cv_cc_flag_unused_command_line_argument=yes
14055else case e in #(
14056  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14057esac
14058fi
14059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14060esac
14061fi
14062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14065	CFLAGS="$xorg_testset_save_CFLAGS"
14066fi
14067
14068found="no"
14069
14070	if test $found = "no" ; then
14071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14073		fi
14074
14075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14077		fi
14078
14079		CFLAGS="$CFLAGS -Wmissing-prototypes"
14080
14081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14082printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14083		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14084		if eval test \${$cacheid+y}
14085then :
14086  printf %s "(cached) " >&6
14087else case e in #(
14088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089/* end confdefs.h.  */
14090int i;
14091int
14092main (void)
14093{
14094
14095  ;
14096  return 0;
14097}
14098_ACEOF
14099if ac_fn_c_try_link "$LINENO"
14100then :
14101  eval $cacheid=yes
14102else case e in #(
14103  e) eval $cacheid=no ;;
14104esac
14105fi
14106rm -f core conftest.err conftest.$ac_objext conftest.beam \
14107    conftest$ac_exeext conftest.$ac_ext ;;
14108esac
14109fi
14110
14111
14112		CFLAGS="$xorg_testset_save_CFLAGS"
14113
14114		eval supported=\$$cacheid
14115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14116printf "%s\n" "$supported" >&6; }
14117		if test "$supported" = "yes" ; then
14118			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14119			found="yes"
14120		fi
14121	fi
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137xorg_testset_save_CFLAGS="$CFLAGS"
14138
14139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14143if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14144then :
14145  printf %s "(cached) " >&6
14146else case e in #(
14147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148/* end confdefs.h.  */
14149int i;
14150_ACEOF
14151if ac_fn_c_try_compile "$LINENO"
14152then :
14153  xorg_cv_cc_flag_unknown_warning_option=yes
14154else case e in #(
14155  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14156esac
14157fi
14158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14159esac
14160fi
14161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14162printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14164	CFLAGS="$xorg_testset_save_CFLAGS"
14165fi
14166
14167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14170	fi
14171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14172	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14173printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14174if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14175then :
14176  printf %s "(cached) " >&6
14177else case e in #(
14178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h.  */
14180int i;
14181_ACEOF
14182if ac_fn_c_try_compile "$LINENO"
14183then :
14184  xorg_cv_cc_flag_unused_command_line_argument=yes
14185else case e in #(
14186  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14187esac
14188fi
14189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14190esac
14191fi
14192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14195	CFLAGS="$xorg_testset_save_CFLAGS"
14196fi
14197
14198found="no"
14199
14200	if test $found = "no" ; then
14201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14203		fi
14204
14205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14207		fi
14208
14209		CFLAGS="$CFLAGS -Wnested-externs"
14210
14211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14212printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14213		cacheid=xorg_cv_cc_flag__Wnested_externs
14214		if eval test \${$cacheid+y}
14215then :
14216  printf %s "(cached) " >&6
14217else case e in #(
14218  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219/* end confdefs.h.  */
14220int i;
14221int
14222main (void)
14223{
14224
14225  ;
14226  return 0;
14227}
14228_ACEOF
14229if ac_fn_c_try_link "$LINENO"
14230then :
14231  eval $cacheid=yes
14232else case e in #(
14233  e) eval $cacheid=no ;;
14234esac
14235fi
14236rm -f core conftest.err conftest.$ac_objext conftest.beam \
14237    conftest$ac_exeext conftest.$ac_ext ;;
14238esac
14239fi
14240
14241
14242		CFLAGS="$xorg_testset_save_CFLAGS"
14243
14244		eval supported=\$$cacheid
14245		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14246printf "%s\n" "$supported" >&6; }
14247		if test "$supported" = "yes" ; then
14248			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14249			found="yes"
14250		fi
14251	fi
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267xorg_testset_save_CFLAGS="$CFLAGS"
14268
14269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14272printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14273if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14274then :
14275  printf %s "(cached) " >&6
14276else case e in #(
14277  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278/* end confdefs.h.  */
14279int i;
14280_ACEOF
14281if ac_fn_c_try_compile "$LINENO"
14282then :
14283  xorg_cv_cc_flag_unknown_warning_option=yes
14284else case e in #(
14285  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14286esac
14287fi
14288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14289esac
14290fi
14291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14294	CFLAGS="$xorg_testset_save_CFLAGS"
14295fi
14296
14297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14300	fi
14301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14304if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14305then :
14306  printf %s "(cached) " >&6
14307else case e in #(
14308  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309/* end confdefs.h.  */
14310int i;
14311_ACEOF
14312if ac_fn_c_try_compile "$LINENO"
14313then :
14314  xorg_cv_cc_flag_unused_command_line_argument=yes
14315else case e in #(
14316  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14317esac
14318fi
14319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14320esac
14321fi
14322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14325	CFLAGS="$xorg_testset_save_CFLAGS"
14326fi
14327
14328found="no"
14329
14330	if test $found = "no" ; then
14331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14333		fi
14334
14335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14337		fi
14338
14339		CFLAGS="$CFLAGS -Wbad-function-cast"
14340
14341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14342printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14343		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14344		if eval test \${$cacheid+y}
14345then :
14346  printf %s "(cached) " >&6
14347else case e in #(
14348  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349/* end confdefs.h.  */
14350int i;
14351int
14352main (void)
14353{
14354
14355  ;
14356  return 0;
14357}
14358_ACEOF
14359if ac_fn_c_try_link "$LINENO"
14360then :
14361  eval $cacheid=yes
14362else case e in #(
14363  e) eval $cacheid=no ;;
14364esac
14365fi
14366rm -f core conftest.err conftest.$ac_objext conftest.beam \
14367    conftest$ac_exeext conftest.$ac_ext ;;
14368esac
14369fi
14370
14371
14372		CFLAGS="$xorg_testset_save_CFLAGS"
14373
14374		eval supported=\$$cacheid
14375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14376printf "%s\n" "$supported" >&6; }
14377		if test "$supported" = "yes" ; then
14378			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14379			found="yes"
14380		fi
14381	fi
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397xorg_testset_save_CFLAGS="$CFLAGS"
14398
14399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14403if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14404then :
14405  printf %s "(cached) " >&6
14406else case e in #(
14407  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408/* end confdefs.h.  */
14409int i;
14410_ACEOF
14411if ac_fn_c_try_compile "$LINENO"
14412then :
14413  xorg_cv_cc_flag_unknown_warning_option=yes
14414else case e in #(
14415  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14416esac
14417fi
14418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14419esac
14420fi
14421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14422printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14423	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14424	CFLAGS="$xorg_testset_save_CFLAGS"
14425fi
14426
14427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14428	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14429		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14430	fi
14431	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14432	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14433printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14434if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14435then :
14436  printf %s "(cached) " >&6
14437else case e in #(
14438  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439/* end confdefs.h.  */
14440int i;
14441_ACEOF
14442if ac_fn_c_try_compile "$LINENO"
14443then :
14444  xorg_cv_cc_flag_unused_command_line_argument=yes
14445else case e in #(
14446  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14447esac
14448fi
14449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14450esac
14451fi
14452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14454	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14455	CFLAGS="$xorg_testset_save_CFLAGS"
14456fi
14457
14458found="no"
14459
14460	if test $found = "no" ; then
14461		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14462			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14463		fi
14464
14465		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14466			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14467		fi
14468
14469		CFLAGS="$CFLAGS -Wold-style-definition"
14470
14471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14472printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14473		cacheid=xorg_cv_cc_flag__Wold_style_definition
14474		if eval test \${$cacheid+y}
14475then :
14476  printf %s "(cached) " >&6
14477else case e in #(
14478  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479/* end confdefs.h.  */
14480int i;
14481int
14482main (void)
14483{
14484
14485  ;
14486  return 0;
14487}
14488_ACEOF
14489if ac_fn_c_try_link "$LINENO"
14490then :
14491  eval $cacheid=yes
14492else case e in #(
14493  e) eval $cacheid=no ;;
14494esac
14495fi
14496rm -f core conftest.err conftest.$ac_objext conftest.beam \
14497    conftest$ac_exeext conftest.$ac_ext ;;
14498esac
14499fi
14500
14501
14502		CFLAGS="$xorg_testset_save_CFLAGS"
14503
14504		eval supported=\$$cacheid
14505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14506printf "%s\n" "$supported" >&6; }
14507		if test "$supported" = "yes" ; then
14508			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14509			found="yes"
14510		fi
14511	fi
14512
14513	if test $found = "no" ; then
14514		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14516		fi
14517
14518		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14520		fi
14521
14522		CFLAGS="$CFLAGS -fd"
14523
14524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14525printf %s "checking if $CC supports -fd... " >&6; }
14526		cacheid=xorg_cv_cc_flag__fd
14527		if eval test \${$cacheid+y}
14528then :
14529  printf %s "(cached) " >&6
14530else case e in #(
14531  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532/* end confdefs.h.  */
14533int i;
14534int
14535main (void)
14536{
14537
14538  ;
14539  return 0;
14540}
14541_ACEOF
14542if ac_fn_c_try_link "$LINENO"
14543then :
14544  eval $cacheid=yes
14545else case e in #(
14546  e) eval $cacheid=no ;;
14547esac
14548fi
14549rm -f core conftest.err conftest.$ac_objext conftest.beam \
14550    conftest$ac_exeext conftest.$ac_ext ;;
14551esac
14552fi
14553
14554
14555		CFLAGS="$xorg_testset_save_CFLAGS"
14556
14557		eval supported=\$$cacheid
14558		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14559printf "%s\n" "$supported" >&6; }
14560		if test "$supported" = "yes" ; then
14561			BASE_CFLAGS="$BASE_CFLAGS -fd"
14562			found="yes"
14563		fi
14564	fi
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580xorg_testset_save_CFLAGS="$CFLAGS"
14581
14582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14583	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14585printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14586if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14587then :
14588  printf %s "(cached) " >&6
14589else case e in #(
14590  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591/* end confdefs.h.  */
14592int i;
14593_ACEOF
14594if ac_fn_c_try_compile "$LINENO"
14595then :
14596  xorg_cv_cc_flag_unknown_warning_option=yes
14597else case e in #(
14598  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14599esac
14600fi
14601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14602esac
14603fi
14604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14605printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14607	CFLAGS="$xorg_testset_save_CFLAGS"
14608fi
14609
14610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14613	fi
14614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14616printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14617if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14618then :
14619  printf %s "(cached) " >&6
14620else case e in #(
14621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622/* end confdefs.h.  */
14623int i;
14624_ACEOF
14625if ac_fn_c_try_compile "$LINENO"
14626then :
14627  xorg_cv_cc_flag_unused_command_line_argument=yes
14628else case e in #(
14629  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14630esac
14631fi
14632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14633esac
14634fi
14635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14636printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14637	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14638	CFLAGS="$xorg_testset_save_CFLAGS"
14639fi
14640
14641found="no"
14642
14643	if test $found = "no" ; then
14644		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14645			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14646		fi
14647
14648		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14649			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14650		fi
14651
14652		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14653
14654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14655printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14656		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14657		if eval test \${$cacheid+y}
14658then :
14659  printf %s "(cached) " >&6
14660else case e in #(
14661  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662/* end confdefs.h.  */
14663int i;
14664int
14665main (void)
14666{
14667
14668  ;
14669  return 0;
14670}
14671_ACEOF
14672if ac_fn_c_try_link "$LINENO"
14673then :
14674  eval $cacheid=yes
14675else case e in #(
14676  e) eval $cacheid=no ;;
14677esac
14678fi
14679rm -f core conftest.err conftest.$ac_objext conftest.beam \
14680    conftest$ac_exeext conftest.$ac_ext ;;
14681esac
14682fi
14683
14684
14685		CFLAGS="$xorg_testset_save_CFLAGS"
14686
14687		eval supported=\$$cacheid
14688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14689printf "%s\n" "$supported" >&6; }
14690		if test "$supported" = "yes" ; then
14691			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14692			found="yes"
14693		fi
14694	fi
14695
14696
14697
14698
14699
14700# This chunk adds additional warnings that could catch undesired effects.
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714xorg_testset_save_CFLAGS="$CFLAGS"
14715
14716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14721then :
14722  printf %s "(cached) " >&6
14723else case e in #(
14724  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725/* end confdefs.h.  */
14726int i;
14727_ACEOF
14728if ac_fn_c_try_compile "$LINENO"
14729then :
14730  xorg_cv_cc_flag_unknown_warning_option=yes
14731else case e in #(
14732  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14733esac
14734fi
14735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14736esac
14737fi
14738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14740	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14741	CFLAGS="$xorg_testset_save_CFLAGS"
14742fi
14743
14744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14745	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14747	fi
14748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14751if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
14762else case e in #(
14763  e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14772	CFLAGS="$xorg_testset_save_CFLAGS"
14773fi
14774
14775found="no"
14776
14777	if test $found = "no" ; then
14778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780		fi
14781
14782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14784		fi
14785
14786		CFLAGS="$CFLAGS -Wunused"
14787
14788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14789printf %s "checking if $CC supports -Wunused... " >&6; }
14790		cacheid=xorg_cv_cc_flag__Wunused
14791		if eval test \${$cacheid+y}
14792then :
14793  printf %s "(cached) " >&6
14794else case e in #(
14795  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796/* end confdefs.h.  */
14797int i;
14798int
14799main (void)
14800{
14801
14802  ;
14803  return 0;
14804}
14805_ACEOF
14806if ac_fn_c_try_link "$LINENO"
14807then :
14808  eval $cacheid=yes
14809else case e in #(
14810  e) eval $cacheid=no ;;
14811esac
14812fi
14813rm -f core conftest.err conftest.$ac_objext conftest.beam \
14814    conftest$ac_exeext conftest.$ac_ext ;;
14815esac
14816fi
14817
14818
14819		CFLAGS="$xorg_testset_save_CFLAGS"
14820
14821		eval supported=\$$cacheid
14822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14823printf "%s\n" "$supported" >&6; }
14824		if test "$supported" = "yes" ; then
14825			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14826			found="yes"
14827		fi
14828	fi
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844xorg_testset_save_CFLAGS="$CFLAGS"
14845
14846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14847	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14848	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14850if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14851then :
14852  printf %s "(cached) " >&6
14853else case e in #(
14854  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h.  */
14856int i;
14857_ACEOF
14858if ac_fn_c_try_compile "$LINENO"
14859then :
14860  xorg_cv_cc_flag_unknown_warning_option=yes
14861else case e in #(
14862  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14863esac
14864fi
14865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14866esac
14867fi
14868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14871	CFLAGS="$xorg_testset_save_CFLAGS"
14872fi
14873
14874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877	fi
14878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14881if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
14892else case e in #(
14893  e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
14900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14902	CFLAGS="$xorg_testset_save_CFLAGS"
14903fi
14904
14905found="no"
14906
14907	if test $found = "no" ; then
14908		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14910		fi
14911
14912		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14914		fi
14915
14916		CFLAGS="$CFLAGS -Wuninitialized"
14917
14918		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14919printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14920		cacheid=xorg_cv_cc_flag__Wuninitialized
14921		if eval test \${$cacheid+y}
14922then :
14923  printf %s "(cached) " >&6
14924else case e in #(
14925  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h.  */
14927int i;
14928int
14929main (void)
14930{
14931
14932  ;
14933  return 0;
14934}
14935_ACEOF
14936if ac_fn_c_try_link "$LINENO"
14937then :
14938  eval $cacheid=yes
14939else case e in #(
14940  e) eval $cacheid=no ;;
14941esac
14942fi
14943rm -f core conftest.err conftest.$ac_objext conftest.beam \
14944    conftest$ac_exeext conftest.$ac_ext ;;
14945esac
14946fi
14947
14948
14949		CFLAGS="$xorg_testset_save_CFLAGS"
14950
14951		eval supported=\$$cacheid
14952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14953printf "%s\n" "$supported" >&6; }
14954		if test "$supported" = "yes" ; then
14955			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14956			found="yes"
14957		fi
14958	fi
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974xorg_testset_save_CFLAGS="$CFLAGS"
14975
14976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14981then :
14982  printf %s "(cached) " >&6
14983else case e in #(
14984  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986int i;
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"
14989then :
14990  xorg_cv_cc_flag_unknown_warning_option=yes
14991else case e in #(
14992  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14993esac
14994fi
14995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14996esac
14997fi
14998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14999printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15001	CFLAGS="$xorg_testset_save_CFLAGS"
15002fi
15003
15004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15007	fi
15008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15009	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15010printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15011if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
15022else case e in #(
15023  e) xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
15030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15032	CFLAGS="$xorg_testset_save_CFLAGS"
15033fi
15034
15035found="no"
15036
15037	if test $found = "no" ; then
15038		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15040		fi
15041
15042		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15044		fi
15045
15046		CFLAGS="$CFLAGS -Wshadow"
15047
15048		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15049printf %s "checking if $CC supports -Wshadow... " >&6; }
15050		cacheid=xorg_cv_cc_flag__Wshadow
15051		if eval test \${$cacheid+y}
15052then :
15053  printf %s "(cached) " >&6
15054else case e in #(
15055  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056/* end confdefs.h.  */
15057int i;
15058int
15059main (void)
15060{
15061
15062  ;
15063  return 0;
15064}
15065_ACEOF
15066if ac_fn_c_try_link "$LINENO"
15067then :
15068  eval $cacheid=yes
15069else case e in #(
15070  e) eval $cacheid=no ;;
15071esac
15072fi
15073rm -f core conftest.err conftest.$ac_objext conftest.beam \
15074    conftest$ac_exeext conftest.$ac_ext ;;
15075esac
15076fi
15077
15078
15079		CFLAGS="$xorg_testset_save_CFLAGS"
15080
15081		eval supported=\$$cacheid
15082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15083printf "%s\n" "$supported" >&6; }
15084		if test "$supported" = "yes" ; then
15085			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15086			found="yes"
15087		fi
15088	fi
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104xorg_testset_save_CFLAGS="$CFLAGS"
15105
15106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15107	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15109printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15110if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15111then :
15112  printf %s "(cached) " >&6
15113else case e in #(
15114  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h.  */
15116int i;
15117_ACEOF
15118if ac_fn_c_try_compile "$LINENO"
15119then :
15120  xorg_cv_cc_flag_unknown_warning_option=yes
15121else case e in #(
15122  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15123esac
15124fi
15125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15126esac
15127fi
15128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15131	CFLAGS="$xorg_testset_save_CFLAGS"
15132fi
15133
15134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15137	fi
15138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15142then :
15143  printf %s "(cached) " >&6
15144else case e in #(
15145  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147int i;
15148_ACEOF
15149if ac_fn_c_try_compile "$LINENO"
15150then :
15151  xorg_cv_cc_flag_unused_command_line_argument=yes
15152else case e in #(
15153  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15154esac
15155fi
15156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15157esac
15158fi
15159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15162	CFLAGS="$xorg_testset_save_CFLAGS"
15163fi
15164
15165found="no"
15166
15167	if test $found = "no" ; then
15168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15170		fi
15171
15172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15174		fi
15175
15176		CFLAGS="$CFLAGS -Wmissing-noreturn"
15177
15178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15179printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15180		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15181		if eval test \${$cacheid+y}
15182then :
15183  printf %s "(cached) " >&6
15184else case e in #(
15185  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186/* end confdefs.h.  */
15187int i;
15188int
15189main (void)
15190{
15191
15192  ;
15193  return 0;
15194}
15195_ACEOF
15196if ac_fn_c_try_link "$LINENO"
15197then :
15198  eval $cacheid=yes
15199else case e in #(
15200  e) eval $cacheid=no ;;
15201esac
15202fi
15203rm -f core conftest.err conftest.$ac_objext conftest.beam \
15204    conftest$ac_exeext conftest.$ac_ext ;;
15205esac
15206fi
15207
15208
15209		CFLAGS="$xorg_testset_save_CFLAGS"
15210
15211		eval supported=\$$cacheid
15212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15213printf "%s\n" "$supported" >&6; }
15214		if test "$supported" = "yes" ; then
15215			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15216			found="yes"
15217		fi
15218	fi
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234xorg_testset_save_CFLAGS="$CFLAGS"
15235
15236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15237	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15240if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15241then :
15242  printf %s "(cached) " >&6
15243else case e in #(
15244  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h.  */
15246int i;
15247_ACEOF
15248if ac_fn_c_try_compile "$LINENO"
15249then :
15250  xorg_cv_cc_flag_unknown_warning_option=yes
15251else case e in #(
15252  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15253esac
15254fi
15255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15256esac
15257fi
15258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15261	CFLAGS="$xorg_testset_save_CFLAGS"
15262fi
15263
15264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15267	fi
15268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15271if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15272then :
15273  printf %s "(cached) " >&6
15274else case e in #(
15275  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276/* end confdefs.h.  */
15277int i;
15278_ACEOF
15279if ac_fn_c_try_compile "$LINENO"
15280then :
15281  xorg_cv_cc_flag_unused_command_line_argument=yes
15282else case e in #(
15283  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15284esac
15285fi
15286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15287esac
15288fi
15289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15292	CFLAGS="$xorg_testset_save_CFLAGS"
15293fi
15294
15295found="no"
15296
15297	if test $found = "no" ; then
15298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300		fi
15301
15302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15304		fi
15305
15306		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15307
15308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15309printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15310		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15311		if eval test \${$cacheid+y}
15312then :
15313  printf %s "(cached) " >&6
15314else case e in #(
15315  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316/* end confdefs.h.  */
15317int i;
15318int
15319main (void)
15320{
15321
15322  ;
15323  return 0;
15324}
15325_ACEOF
15326if ac_fn_c_try_link "$LINENO"
15327then :
15328  eval $cacheid=yes
15329else case e in #(
15330  e) eval $cacheid=no ;;
15331esac
15332fi
15333rm -f core conftest.err conftest.$ac_objext conftest.beam \
15334    conftest$ac_exeext conftest.$ac_ext ;;
15335esac
15336fi
15337
15338
15339		CFLAGS="$xorg_testset_save_CFLAGS"
15340
15341		eval supported=\$$cacheid
15342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15343printf "%s\n" "$supported" >&6; }
15344		if test "$supported" = "yes" ; then
15345			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15346			found="yes"
15347		fi
15348	fi
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364xorg_testset_save_CFLAGS="$CFLAGS"
15365
15366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15367	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15369printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15370if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15371then :
15372  printf %s "(cached) " >&6
15373else case e in #(
15374  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375/* end confdefs.h.  */
15376int i;
15377_ACEOF
15378if ac_fn_c_try_compile "$LINENO"
15379then :
15380  xorg_cv_cc_flag_unknown_warning_option=yes
15381else case e in #(
15382  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15383esac
15384fi
15385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15386esac
15387fi
15388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15391	CFLAGS="$xorg_testset_save_CFLAGS"
15392fi
15393
15394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15397	fi
15398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15401if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15402then :
15403  printf %s "(cached) " >&6
15404else case e in #(
15405  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406/* end confdefs.h.  */
15407int i;
15408_ACEOF
15409if ac_fn_c_try_compile "$LINENO"
15410then :
15411  xorg_cv_cc_flag_unused_command_line_argument=yes
15412else case e in #(
15413  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15414esac
15415fi
15416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15417esac
15418fi
15419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15421	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15422	CFLAGS="$xorg_testset_save_CFLAGS"
15423fi
15424
15425found="no"
15426
15427	if test $found = "no" ; then
15428		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15429			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15430		fi
15431
15432		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15433			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15434		fi
15435
15436		CFLAGS="$CFLAGS -Wredundant-decls"
15437
15438		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15439printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15440		cacheid=xorg_cv_cc_flag__Wredundant_decls
15441		if eval test \${$cacheid+y}
15442then :
15443  printf %s "(cached) " >&6
15444else case e in #(
15445  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15446/* end confdefs.h.  */
15447int i;
15448int
15449main (void)
15450{
15451
15452  ;
15453  return 0;
15454}
15455_ACEOF
15456if ac_fn_c_try_link "$LINENO"
15457then :
15458  eval $cacheid=yes
15459else case e in #(
15460  e) eval $cacheid=no ;;
15461esac
15462fi
15463rm -f core conftest.err conftest.$ac_objext conftest.beam \
15464    conftest$ac_exeext conftest.$ac_ext ;;
15465esac
15466fi
15467
15468
15469		CFLAGS="$xorg_testset_save_CFLAGS"
15470
15471		eval supported=\$$cacheid
15472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15473printf "%s\n" "$supported" >&6; }
15474		if test "$supported" = "yes" ; then
15475			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15476			found="yes"
15477		fi
15478	fi
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494xorg_testset_save_CFLAGS="$CFLAGS"
15495
15496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15498	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15500if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15501then :
15502  printf %s "(cached) " >&6
15503else case e in #(
15504  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15505/* end confdefs.h.  */
15506int i;
15507_ACEOF
15508if ac_fn_c_try_compile "$LINENO"
15509then :
15510  xorg_cv_cc_flag_unknown_warning_option=yes
15511else case e in #(
15512  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15513esac
15514fi
15515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15516esac
15517fi
15518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15519printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15521	CFLAGS="$xorg_testset_save_CFLAGS"
15522fi
15523
15524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15527	fi
15528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15529	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15530printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15531if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15532then :
15533  printf %s "(cached) " >&6
15534else case e in #(
15535  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15536/* end confdefs.h.  */
15537int i;
15538_ACEOF
15539if ac_fn_c_try_compile "$LINENO"
15540then :
15541  xorg_cv_cc_flag_unused_command_line_argument=yes
15542else case e in #(
15543  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15544esac
15545fi
15546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15547esac
15548fi
15549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15552	CFLAGS="$xorg_testset_save_CFLAGS"
15553fi
15554
15555found="no"
15556
15557	if test $found = "no" ; then
15558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15560		fi
15561
15562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15564		fi
15565
15566		CFLAGS="$CFLAGS -Wlogical-op"
15567
15568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15569printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15570		cacheid=xorg_cv_cc_flag__Wlogical_op
15571		if eval test \${$cacheid+y}
15572then :
15573  printf %s "(cached) " >&6
15574else case e in #(
15575  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576/* end confdefs.h.  */
15577int i;
15578int
15579main (void)
15580{
15581
15582  ;
15583  return 0;
15584}
15585_ACEOF
15586if ac_fn_c_try_link "$LINENO"
15587then :
15588  eval $cacheid=yes
15589else case e in #(
15590  e) eval $cacheid=no ;;
15591esac
15592fi
15593rm -f core conftest.err conftest.$ac_objext conftest.beam \
15594    conftest$ac_exeext conftest.$ac_ext ;;
15595esac
15596fi
15597
15598
15599		CFLAGS="$xorg_testset_save_CFLAGS"
15600
15601		eval supported=\$$cacheid
15602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15603printf "%s\n" "$supported" >&6; }
15604		if test "$supported" = "yes" ; then
15605			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15606			found="yes"
15607		fi
15608	fi
15609
15610
15611
15612# These are currently disabled because they are noisy.  They will be enabled
15613# in the future once the codebase is sufficiently modernized to silence
15614# them.  For now, I don't want them to drown out the other warnings.
15615# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15616# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15617# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15618
15619# Turn some warnings into errors, so we don't accidentally get successful builds
15620# when there are problems that should be fixed.
15621
15622if test "x$SELECTIVE_WERROR" = "xyes" ; then
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636xorg_testset_save_CFLAGS="$CFLAGS"
15637
15638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15643then :
15644  printf %s "(cached) " >&6
15645else case e in #(
15646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647/* end confdefs.h.  */
15648int i;
15649_ACEOF
15650if ac_fn_c_try_compile "$LINENO"
15651then :
15652  xorg_cv_cc_flag_unknown_warning_option=yes
15653else case e in #(
15654  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15655esac
15656fi
15657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15658esac
15659fi
15660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15663	CFLAGS="$xorg_testset_save_CFLAGS"
15664fi
15665
15666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15669	fi
15670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15674then :
15675  printf %s "(cached) " >&6
15676else case e in #(
15677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678/* end confdefs.h.  */
15679int i;
15680_ACEOF
15681if ac_fn_c_try_compile "$LINENO"
15682then :
15683  xorg_cv_cc_flag_unused_command_line_argument=yes
15684else case e in #(
15685  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15686esac
15687fi
15688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15689esac
15690fi
15691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15694	CFLAGS="$xorg_testset_save_CFLAGS"
15695fi
15696
15697found="no"
15698
15699	if test $found = "no" ; then
15700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15702		fi
15703
15704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15706		fi
15707
15708		CFLAGS="$CFLAGS -Werror=implicit"
15709
15710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15711printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15712		cacheid=xorg_cv_cc_flag__Werror_implicit
15713		if eval test \${$cacheid+y}
15714then :
15715  printf %s "(cached) " >&6
15716else case e in #(
15717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h.  */
15719int i;
15720int
15721main (void)
15722{
15723
15724  ;
15725  return 0;
15726}
15727_ACEOF
15728if ac_fn_c_try_link "$LINENO"
15729then :
15730  eval $cacheid=yes
15731else case e in #(
15732  e) eval $cacheid=no ;;
15733esac
15734fi
15735rm -f core conftest.err conftest.$ac_objext conftest.beam \
15736    conftest$ac_exeext conftest.$ac_ext ;;
15737esac
15738fi
15739
15740
15741		CFLAGS="$xorg_testset_save_CFLAGS"
15742
15743		eval supported=\$$cacheid
15744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15745printf "%s\n" "$supported" >&6; }
15746		if test "$supported" = "yes" ; then
15747			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15748			found="yes"
15749		fi
15750	fi
15751
15752	if test $found = "no" ; then
15753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15755		fi
15756
15757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15759		fi
15760
15761		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15762
15763		{ 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
15764printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15765		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15766		if eval test \${$cacheid+y}
15767then :
15768  printf %s "(cached) " >&6
15769else case e in #(
15770  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771/* end confdefs.h.  */
15772int i;
15773int
15774main (void)
15775{
15776
15777  ;
15778  return 0;
15779}
15780_ACEOF
15781if ac_fn_c_try_link "$LINENO"
15782then :
15783  eval $cacheid=yes
15784else case e in #(
15785  e) eval $cacheid=no ;;
15786esac
15787fi
15788rm -f core conftest.err conftest.$ac_objext conftest.beam \
15789    conftest$ac_exeext conftest.$ac_ext ;;
15790esac
15791fi
15792
15793
15794		CFLAGS="$xorg_testset_save_CFLAGS"
15795
15796		eval supported=\$$cacheid
15797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15798printf "%s\n" "$supported" >&6; }
15799		if test "$supported" = "yes" ; then
15800			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15801			found="yes"
15802		fi
15803	fi
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819xorg_testset_save_CFLAGS="$CFLAGS"
15820
15821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15825if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15826then :
15827  printf %s "(cached) " >&6
15828else case e in #(
15829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830/* end confdefs.h.  */
15831int i;
15832_ACEOF
15833if ac_fn_c_try_compile "$LINENO"
15834then :
15835  xorg_cv_cc_flag_unknown_warning_option=yes
15836else case e in #(
15837  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15838esac
15839fi
15840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15841esac
15842fi
15843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15846	CFLAGS="$xorg_testset_save_CFLAGS"
15847fi
15848
15849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15852	fi
15853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15857then :
15858  printf %s "(cached) " >&6
15859else case e in #(
15860  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861/* end confdefs.h.  */
15862int i;
15863_ACEOF
15864if ac_fn_c_try_compile "$LINENO"
15865then :
15866  xorg_cv_cc_flag_unused_command_line_argument=yes
15867else case e in #(
15868  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15869esac
15870fi
15871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15872esac
15873fi
15874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15877	CFLAGS="$xorg_testset_save_CFLAGS"
15878fi
15879
15880found="no"
15881
15882	if test $found = "no" ; then
15883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15885		fi
15886
15887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15889		fi
15890
15891		CFLAGS="$CFLAGS -Werror=nonnull"
15892
15893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15894printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15895		cacheid=xorg_cv_cc_flag__Werror_nonnull
15896		if eval test \${$cacheid+y}
15897then :
15898  printf %s "(cached) " >&6
15899else case e in #(
15900  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h.  */
15902int i;
15903int
15904main (void)
15905{
15906
15907  ;
15908  return 0;
15909}
15910_ACEOF
15911if ac_fn_c_try_link "$LINENO"
15912then :
15913  eval $cacheid=yes
15914else case e in #(
15915  e) eval $cacheid=no ;;
15916esac
15917fi
15918rm -f core conftest.err conftest.$ac_objext conftest.beam \
15919    conftest$ac_exeext conftest.$ac_ext ;;
15920esac
15921fi
15922
15923
15924		CFLAGS="$xorg_testset_save_CFLAGS"
15925
15926		eval supported=\$$cacheid
15927		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15928printf "%s\n" "$supported" >&6; }
15929		if test "$supported" = "yes" ; then
15930			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15931			found="yes"
15932		fi
15933	fi
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949xorg_testset_save_CFLAGS="$CFLAGS"
15950
15951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15955if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15956then :
15957  printf %s "(cached) " >&6
15958else case e in #(
15959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h.  */
15961int i;
15962_ACEOF
15963if ac_fn_c_try_compile "$LINENO"
15964then :
15965  xorg_cv_cc_flag_unknown_warning_option=yes
15966else case e in #(
15967  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15968esac
15969fi
15970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15971esac
15972fi
15973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15976	CFLAGS="$xorg_testset_save_CFLAGS"
15977fi
15978
15979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15982	fi
15983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15984	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15986if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15987then :
15988  printf %s "(cached) " >&6
15989else case e in #(
15990  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991/* end confdefs.h.  */
15992int i;
15993_ACEOF
15994if ac_fn_c_try_compile "$LINENO"
15995then :
15996  xorg_cv_cc_flag_unused_command_line_argument=yes
15997else case e in #(
15998  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15999esac
16000fi
16001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16002esac
16003fi
16004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16005printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16006	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16007	CFLAGS="$xorg_testset_save_CFLAGS"
16008fi
16009
16010found="no"
16011
16012	if test $found = "no" ; then
16013		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16014			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16015		fi
16016
16017		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16018			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16019		fi
16020
16021		CFLAGS="$CFLAGS -Werror=init-self"
16022
16023		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16024printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16025		cacheid=xorg_cv_cc_flag__Werror_init_self
16026		if eval test \${$cacheid+y}
16027then :
16028  printf %s "(cached) " >&6
16029else case e in #(
16030  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031/* end confdefs.h.  */
16032int i;
16033int
16034main (void)
16035{
16036
16037  ;
16038  return 0;
16039}
16040_ACEOF
16041if ac_fn_c_try_link "$LINENO"
16042then :
16043  eval $cacheid=yes
16044else case e in #(
16045  e) eval $cacheid=no ;;
16046esac
16047fi
16048rm -f core conftest.err conftest.$ac_objext conftest.beam \
16049    conftest$ac_exeext conftest.$ac_ext ;;
16050esac
16051fi
16052
16053
16054		CFLAGS="$xorg_testset_save_CFLAGS"
16055
16056		eval supported=\$$cacheid
16057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16058printf "%s\n" "$supported" >&6; }
16059		if test "$supported" = "yes" ; then
16060			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16061			found="yes"
16062		fi
16063	fi
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079xorg_testset_save_CFLAGS="$CFLAGS"
16080
16081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16085if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16086then :
16087  printf %s "(cached) " >&6
16088else case e in #(
16089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090/* end confdefs.h.  */
16091int i;
16092_ACEOF
16093if ac_fn_c_try_compile "$LINENO"
16094then :
16095  xorg_cv_cc_flag_unknown_warning_option=yes
16096else case e in #(
16097  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16098esac
16099fi
16100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16101esac
16102fi
16103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16104printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16105	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16106	CFLAGS="$xorg_testset_save_CFLAGS"
16107fi
16108
16109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16110	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16111		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16112	fi
16113	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16114	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16115printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16116if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16117then :
16118  printf %s "(cached) " >&6
16119else case e in #(
16120  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121/* end confdefs.h.  */
16122int i;
16123_ACEOF
16124if ac_fn_c_try_compile "$LINENO"
16125then :
16126  xorg_cv_cc_flag_unused_command_line_argument=yes
16127else case e in #(
16128  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16129esac
16130fi
16131rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16132esac
16133fi
16134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16137	CFLAGS="$xorg_testset_save_CFLAGS"
16138fi
16139
16140found="no"
16141
16142	if test $found = "no" ; then
16143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145		fi
16146
16147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16149		fi
16150
16151		CFLAGS="$CFLAGS -Werror=main"
16152
16153		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16154printf %s "checking if $CC supports -Werror=main... " >&6; }
16155		cacheid=xorg_cv_cc_flag__Werror_main
16156		if eval test \${$cacheid+y}
16157then :
16158  printf %s "(cached) " >&6
16159else case e in #(
16160  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16161/* end confdefs.h.  */
16162int i;
16163int
16164main (void)
16165{
16166
16167  ;
16168  return 0;
16169}
16170_ACEOF
16171if ac_fn_c_try_link "$LINENO"
16172then :
16173  eval $cacheid=yes
16174else case e in #(
16175  e) eval $cacheid=no ;;
16176esac
16177fi
16178rm -f core conftest.err conftest.$ac_objext conftest.beam \
16179    conftest$ac_exeext conftest.$ac_ext ;;
16180esac
16181fi
16182
16183
16184		CFLAGS="$xorg_testset_save_CFLAGS"
16185
16186		eval supported=\$$cacheid
16187		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16188printf "%s\n" "$supported" >&6; }
16189		if test "$supported" = "yes" ; then
16190			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16191			found="yes"
16192		fi
16193	fi
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209xorg_testset_save_CFLAGS="$CFLAGS"
16210
16211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16215if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16216then :
16217  printf %s "(cached) " >&6
16218else case e in #(
16219  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220/* end confdefs.h.  */
16221int i;
16222_ACEOF
16223if ac_fn_c_try_compile "$LINENO"
16224then :
16225  xorg_cv_cc_flag_unknown_warning_option=yes
16226else case e in #(
16227  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16228esac
16229fi
16230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16231esac
16232fi
16233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16236	CFLAGS="$xorg_testset_save_CFLAGS"
16237fi
16238
16239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242	fi
16243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16247then :
16248  printf %s "(cached) " >&6
16249else case e in #(
16250  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251/* end confdefs.h.  */
16252int i;
16253_ACEOF
16254if ac_fn_c_try_compile "$LINENO"
16255then :
16256  xorg_cv_cc_flag_unused_command_line_argument=yes
16257else case e in #(
16258  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16259esac
16260fi
16261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16262esac
16263fi
16264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16265printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16267	CFLAGS="$xorg_testset_save_CFLAGS"
16268fi
16269
16270found="no"
16271
16272	if test $found = "no" ; then
16273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16275		fi
16276
16277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16279		fi
16280
16281		CFLAGS="$CFLAGS -Werror=missing-braces"
16282
16283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16284printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16285		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16286		if eval test \${$cacheid+y}
16287then :
16288  printf %s "(cached) " >&6
16289else case e in #(
16290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h.  */
16292int i;
16293int
16294main (void)
16295{
16296
16297  ;
16298  return 0;
16299}
16300_ACEOF
16301if ac_fn_c_try_link "$LINENO"
16302then :
16303  eval $cacheid=yes
16304else case e in #(
16305  e) eval $cacheid=no ;;
16306esac
16307fi
16308rm -f core conftest.err conftest.$ac_objext conftest.beam \
16309    conftest$ac_exeext conftest.$ac_ext ;;
16310esac
16311fi
16312
16313
16314		CFLAGS="$xorg_testset_save_CFLAGS"
16315
16316		eval supported=\$$cacheid
16317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16318printf "%s\n" "$supported" >&6; }
16319		if test "$supported" = "yes" ; then
16320			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16321			found="yes"
16322		fi
16323	fi
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339xorg_testset_save_CFLAGS="$CFLAGS"
16340
16341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16343	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16344printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16345if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16346then :
16347  printf %s "(cached) " >&6
16348else case e in #(
16349  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350/* end confdefs.h.  */
16351int i;
16352_ACEOF
16353if ac_fn_c_try_compile "$LINENO"
16354then :
16355  xorg_cv_cc_flag_unknown_warning_option=yes
16356else case e in #(
16357  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16358esac
16359fi
16360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16361esac
16362fi
16363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16364printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16366	CFLAGS="$xorg_testset_save_CFLAGS"
16367fi
16368
16369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16372	fi
16373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16375printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16376if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16377then :
16378  printf %s "(cached) " >&6
16379else case e in #(
16380  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h.  */
16382int i;
16383_ACEOF
16384if ac_fn_c_try_compile "$LINENO"
16385then :
16386  xorg_cv_cc_flag_unused_command_line_argument=yes
16387else case e in #(
16388  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16389esac
16390fi
16391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16392esac
16393fi
16394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16395printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16397	CFLAGS="$xorg_testset_save_CFLAGS"
16398fi
16399
16400found="no"
16401
16402	if test $found = "no" ; then
16403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16405		fi
16406
16407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16409		fi
16410
16411		CFLAGS="$CFLAGS -Werror=sequence-point"
16412
16413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16414printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16415		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16416		if eval test \${$cacheid+y}
16417then :
16418  printf %s "(cached) " >&6
16419else case e in #(
16420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16421/* end confdefs.h.  */
16422int i;
16423int
16424main (void)
16425{
16426
16427  ;
16428  return 0;
16429}
16430_ACEOF
16431if ac_fn_c_try_link "$LINENO"
16432then :
16433  eval $cacheid=yes
16434else case e in #(
16435  e) eval $cacheid=no ;;
16436esac
16437fi
16438rm -f core conftest.err conftest.$ac_objext conftest.beam \
16439    conftest$ac_exeext conftest.$ac_ext ;;
16440esac
16441fi
16442
16443
16444		CFLAGS="$xorg_testset_save_CFLAGS"
16445
16446		eval supported=\$$cacheid
16447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16448printf "%s\n" "$supported" >&6; }
16449		if test "$supported" = "yes" ; then
16450			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16451			found="yes"
16452		fi
16453	fi
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469xorg_testset_save_CFLAGS="$CFLAGS"
16470
16471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16475if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16476then :
16477  printf %s "(cached) " >&6
16478else case e in #(
16479  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480/* end confdefs.h.  */
16481int i;
16482_ACEOF
16483if ac_fn_c_try_compile "$LINENO"
16484then :
16485  xorg_cv_cc_flag_unknown_warning_option=yes
16486else case e in #(
16487  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16488esac
16489fi
16490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16491esac
16492fi
16493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16494printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16496	CFLAGS="$xorg_testset_save_CFLAGS"
16497fi
16498
16499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502	fi
16503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16505printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16506if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16507then :
16508  printf %s "(cached) " >&6
16509else case e in #(
16510  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511/* end confdefs.h.  */
16512int i;
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"
16515then :
16516  xorg_cv_cc_flag_unused_command_line_argument=yes
16517else case e in #(
16518  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16519esac
16520fi
16521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16522esac
16523fi
16524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16527	CFLAGS="$xorg_testset_save_CFLAGS"
16528fi
16529
16530found="no"
16531
16532	if test $found = "no" ; then
16533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16535		fi
16536
16537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16539		fi
16540
16541		CFLAGS="$CFLAGS -Werror=return-type"
16542
16543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16544printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16545		cacheid=xorg_cv_cc_flag__Werror_return_type
16546		if eval test \${$cacheid+y}
16547then :
16548  printf %s "(cached) " >&6
16549else case e in #(
16550  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551/* end confdefs.h.  */
16552int i;
16553int
16554main (void)
16555{
16556
16557  ;
16558  return 0;
16559}
16560_ACEOF
16561if ac_fn_c_try_link "$LINENO"
16562then :
16563  eval $cacheid=yes
16564else case e in #(
16565  e) eval $cacheid=no ;;
16566esac
16567fi
16568rm -f core conftest.err conftest.$ac_objext conftest.beam \
16569    conftest$ac_exeext conftest.$ac_ext ;;
16570esac
16571fi
16572
16573
16574		CFLAGS="$xorg_testset_save_CFLAGS"
16575
16576		eval supported=\$$cacheid
16577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16578printf "%s\n" "$supported" >&6; }
16579		if test "$supported" = "yes" ; then
16580			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16581			found="yes"
16582		fi
16583	fi
16584
16585	if test $found = "no" ; then
16586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16588		fi
16589
16590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16592		fi
16593
16594		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16595
16596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16597printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16598		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16599		if eval test \${$cacheid+y}
16600then :
16601  printf %s "(cached) " >&6
16602else case e in #(
16603  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h.  */
16605int i;
16606int
16607main (void)
16608{
16609
16610  ;
16611  return 0;
16612}
16613_ACEOF
16614if ac_fn_c_try_link "$LINENO"
16615then :
16616  eval $cacheid=yes
16617else case e in #(
16618  e) eval $cacheid=no ;;
16619esac
16620fi
16621rm -f core conftest.err conftest.$ac_objext conftest.beam \
16622    conftest$ac_exeext conftest.$ac_ext ;;
16623esac
16624fi
16625
16626
16627		CFLAGS="$xorg_testset_save_CFLAGS"
16628
16629		eval supported=\$$cacheid
16630		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16631printf "%s\n" "$supported" >&6; }
16632		if test "$supported" = "yes" ; then
16633			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16634			found="yes"
16635		fi
16636	fi
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652xorg_testset_save_CFLAGS="$CFLAGS"
16653
16654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16655	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16657printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16658if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16659then :
16660  printf %s "(cached) " >&6
16661else case e in #(
16662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663/* end confdefs.h.  */
16664int i;
16665_ACEOF
16666if ac_fn_c_try_compile "$LINENO"
16667then :
16668  xorg_cv_cc_flag_unknown_warning_option=yes
16669else case e in #(
16670  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16671esac
16672fi
16673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16674esac
16675fi
16676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16677printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16678	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16679	CFLAGS="$xorg_testset_save_CFLAGS"
16680fi
16681
16682if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16683	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16684		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16685	fi
16686	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16688printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16689if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16690then :
16691  printf %s "(cached) " >&6
16692else case e in #(
16693  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694/* end confdefs.h.  */
16695int i;
16696_ACEOF
16697if ac_fn_c_try_compile "$LINENO"
16698then :
16699  xorg_cv_cc_flag_unused_command_line_argument=yes
16700else case e in #(
16701  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16702esac
16703fi
16704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16705esac
16706fi
16707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16709	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16710	CFLAGS="$xorg_testset_save_CFLAGS"
16711fi
16712
16713found="no"
16714
16715	if test $found = "no" ; then
16716		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16718		fi
16719
16720		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16722		fi
16723
16724		CFLAGS="$CFLAGS -Werror=trigraphs"
16725
16726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16727printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16728		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16729		if eval test \${$cacheid+y}
16730then :
16731  printf %s "(cached) " >&6
16732else case e in #(
16733  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734/* end confdefs.h.  */
16735int i;
16736int
16737main (void)
16738{
16739
16740  ;
16741  return 0;
16742}
16743_ACEOF
16744if ac_fn_c_try_link "$LINENO"
16745then :
16746  eval $cacheid=yes
16747else case e in #(
16748  e) eval $cacheid=no ;;
16749esac
16750fi
16751rm -f core conftest.err conftest.$ac_objext conftest.beam \
16752    conftest$ac_exeext conftest.$ac_ext ;;
16753esac
16754fi
16755
16756
16757		CFLAGS="$xorg_testset_save_CFLAGS"
16758
16759		eval supported=\$$cacheid
16760		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16761printf "%s\n" "$supported" >&6; }
16762		if test "$supported" = "yes" ; then
16763			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16764			found="yes"
16765		fi
16766	fi
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782xorg_testset_save_CFLAGS="$CFLAGS"
16783
16784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16787printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16788if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16789then :
16790  printf %s "(cached) " >&6
16791else case e in #(
16792  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16793/* end confdefs.h.  */
16794int i;
16795_ACEOF
16796if ac_fn_c_try_compile "$LINENO"
16797then :
16798  xorg_cv_cc_flag_unknown_warning_option=yes
16799else case e in #(
16800  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16801esac
16802fi
16803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16804esac
16805fi
16806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16807printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16809	CFLAGS="$xorg_testset_save_CFLAGS"
16810fi
16811
16812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16815	fi
16816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16818printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16819if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16820then :
16821  printf %s "(cached) " >&6
16822else case e in #(
16823  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824/* end confdefs.h.  */
16825int i;
16826_ACEOF
16827if ac_fn_c_try_compile "$LINENO"
16828then :
16829  xorg_cv_cc_flag_unused_command_line_argument=yes
16830else case e in #(
16831  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16832esac
16833fi
16834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16835esac
16836fi
16837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16838printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16840	CFLAGS="$xorg_testset_save_CFLAGS"
16841fi
16842
16843found="no"
16844
16845	if test $found = "no" ; then
16846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16848		fi
16849
16850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16852		fi
16853
16854		CFLAGS="$CFLAGS -Werror=array-bounds"
16855
16856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16857printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16858		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16859		if eval test \${$cacheid+y}
16860then :
16861  printf %s "(cached) " >&6
16862else case e in #(
16863  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864/* end confdefs.h.  */
16865int i;
16866int
16867main (void)
16868{
16869
16870  ;
16871  return 0;
16872}
16873_ACEOF
16874if ac_fn_c_try_link "$LINENO"
16875then :
16876  eval $cacheid=yes
16877else case e in #(
16878  e) eval $cacheid=no ;;
16879esac
16880fi
16881rm -f core conftest.err conftest.$ac_objext conftest.beam \
16882    conftest$ac_exeext conftest.$ac_ext ;;
16883esac
16884fi
16885
16886
16887		CFLAGS="$xorg_testset_save_CFLAGS"
16888
16889		eval supported=\$$cacheid
16890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16891printf "%s\n" "$supported" >&6; }
16892		if test "$supported" = "yes" ; then
16893			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16894			found="yes"
16895		fi
16896	fi
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912xorg_testset_save_CFLAGS="$CFLAGS"
16913
16914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16917printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16918if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16919then :
16920  printf %s "(cached) " >&6
16921else case e in #(
16922  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923/* end confdefs.h.  */
16924int i;
16925_ACEOF
16926if ac_fn_c_try_compile "$LINENO"
16927then :
16928  xorg_cv_cc_flag_unknown_warning_option=yes
16929else case e in #(
16930  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16931esac
16932fi
16933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16934esac
16935fi
16936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16937printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16939	CFLAGS="$xorg_testset_save_CFLAGS"
16940fi
16941
16942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16945	fi
16946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16948printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16949if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16950then :
16951  printf %s "(cached) " >&6
16952else case e in #(
16953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954/* end confdefs.h.  */
16955int i;
16956_ACEOF
16957if ac_fn_c_try_compile "$LINENO"
16958then :
16959  xorg_cv_cc_flag_unused_command_line_argument=yes
16960else case e in #(
16961  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16962esac
16963fi
16964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16965esac
16966fi
16967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16969	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16970	CFLAGS="$xorg_testset_save_CFLAGS"
16971fi
16972
16973found="no"
16974
16975	if test $found = "no" ; then
16976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16978		fi
16979
16980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16982		fi
16983
16984		CFLAGS="$CFLAGS -Werror=write-strings"
16985
16986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16987printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16988		cacheid=xorg_cv_cc_flag__Werror_write_strings
16989		if eval test \${$cacheid+y}
16990then :
16991  printf %s "(cached) " >&6
16992else case e in #(
16993  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994/* end confdefs.h.  */
16995int i;
16996int
16997main (void)
16998{
16999
17000  ;
17001  return 0;
17002}
17003_ACEOF
17004if ac_fn_c_try_link "$LINENO"
17005then :
17006  eval $cacheid=yes
17007else case e in #(
17008  e) eval $cacheid=no ;;
17009esac
17010fi
17011rm -f core conftest.err conftest.$ac_objext conftest.beam \
17012    conftest$ac_exeext conftest.$ac_ext ;;
17013esac
17014fi
17015
17016
17017		CFLAGS="$xorg_testset_save_CFLAGS"
17018
17019		eval supported=\$$cacheid
17020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17021printf "%s\n" "$supported" >&6; }
17022		if test "$supported" = "yes" ; then
17023			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17024			found="yes"
17025		fi
17026	fi
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042xorg_testset_save_CFLAGS="$CFLAGS"
17043
17044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17049then :
17050  printf %s "(cached) " >&6
17051else case e in #(
17052  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053/* end confdefs.h.  */
17054int i;
17055_ACEOF
17056if ac_fn_c_try_compile "$LINENO"
17057then :
17058  xorg_cv_cc_flag_unknown_warning_option=yes
17059else case e in #(
17060  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17061esac
17062fi
17063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17064esac
17065fi
17066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17069	CFLAGS="$xorg_testset_save_CFLAGS"
17070fi
17071
17072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17075	fi
17076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17079if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17080then :
17081  printf %s "(cached) " >&6
17082else case e in #(
17083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084/* end confdefs.h.  */
17085int i;
17086_ACEOF
17087if ac_fn_c_try_compile "$LINENO"
17088then :
17089  xorg_cv_cc_flag_unused_command_line_argument=yes
17090else case e in #(
17091  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17092esac
17093fi
17094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17095esac
17096fi
17097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17100	CFLAGS="$xorg_testset_save_CFLAGS"
17101fi
17102
17103found="no"
17104
17105	if test $found = "no" ; then
17106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17108		fi
17109
17110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17112		fi
17113
17114		CFLAGS="$CFLAGS -Werror=address"
17115
17116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17117printf %s "checking if $CC supports -Werror=address... " >&6; }
17118		cacheid=xorg_cv_cc_flag__Werror_address
17119		if eval test \${$cacheid+y}
17120then :
17121  printf %s "(cached) " >&6
17122else case e in #(
17123  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124/* end confdefs.h.  */
17125int i;
17126int
17127main (void)
17128{
17129
17130  ;
17131  return 0;
17132}
17133_ACEOF
17134if ac_fn_c_try_link "$LINENO"
17135then :
17136  eval $cacheid=yes
17137else case e in #(
17138  e) eval $cacheid=no ;;
17139esac
17140fi
17141rm -f core conftest.err conftest.$ac_objext conftest.beam \
17142    conftest$ac_exeext conftest.$ac_ext ;;
17143esac
17144fi
17145
17146
17147		CFLAGS="$xorg_testset_save_CFLAGS"
17148
17149		eval supported=\$$cacheid
17150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17151printf "%s\n" "$supported" >&6; }
17152		if test "$supported" = "yes" ; then
17153			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17154			found="yes"
17155		fi
17156	fi
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172xorg_testset_save_CFLAGS="$CFLAGS"
17173
17174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17179then :
17180  printf %s "(cached) " >&6
17181else case e in #(
17182  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183/* end confdefs.h.  */
17184int i;
17185_ACEOF
17186if ac_fn_c_try_compile "$LINENO"
17187then :
17188  xorg_cv_cc_flag_unknown_warning_option=yes
17189else case e in #(
17190  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17191esac
17192fi
17193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17194esac
17195fi
17196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17197printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17199	CFLAGS="$xorg_testset_save_CFLAGS"
17200fi
17201
17202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17205	fi
17206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17207	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17208printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17209if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17210then :
17211  printf %s "(cached) " >&6
17212else case e in #(
17213  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214/* end confdefs.h.  */
17215int i;
17216_ACEOF
17217if ac_fn_c_try_compile "$LINENO"
17218then :
17219  xorg_cv_cc_flag_unused_command_line_argument=yes
17220else case e in #(
17221  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17222esac
17223fi
17224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17225esac
17226fi
17227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17230	CFLAGS="$xorg_testset_save_CFLAGS"
17231fi
17232
17233found="no"
17234
17235	if test $found = "no" ; then
17236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17238		fi
17239
17240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17242		fi
17243
17244		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17245
17246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17247printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17248		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17249		if eval test \${$cacheid+y}
17250then :
17251  printf %s "(cached) " >&6
17252else case e in #(
17253  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17254/* end confdefs.h.  */
17255int i;
17256int
17257main (void)
17258{
17259
17260  ;
17261  return 0;
17262}
17263_ACEOF
17264if ac_fn_c_try_link "$LINENO"
17265then :
17266  eval $cacheid=yes
17267else case e in #(
17268  e) eval $cacheid=no ;;
17269esac
17270fi
17271rm -f core conftest.err conftest.$ac_objext conftest.beam \
17272    conftest$ac_exeext conftest.$ac_ext ;;
17273esac
17274fi
17275
17276
17277		CFLAGS="$xorg_testset_save_CFLAGS"
17278
17279		eval supported=\$$cacheid
17280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17281printf "%s\n" "$supported" >&6; }
17282		if test "$supported" = "yes" ; then
17283			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17284			found="yes"
17285		fi
17286	fi
17287
17288	if test $found = "no" ; then
17289		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17291		fi
17292
17293		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295		fi
17296
17297		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17298
17299		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17300printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17301		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17302		if eval test \${$cacheid+y}
17303then :
17304  printf %s "(cached) " >&6
17305else case e in #(
17306  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17307/* end confdefs.h.  */
17308int i;
17309int
17310main (void)
17311{
17312
17313  ;
17314  return 0;
17315}
17316_ACEOF
17317if ac_fn_c_try_link "$LINENO"
17318then :
17319  eval $cacheid=yes
17320else case e in #(
17321  e) eval $cacheid=no ;;
17322esac
17323fi
17324rm -f core conftest.err conftest.$ac_objext conftest.beam \
17325    conftest$ac_exeext conftest.$ac_ext ;;
17326esac
17327fi
17328
17329
17330		CFLAGS="$xorg_testset_save_CFLAGS"
17331
17332		eval supported=\$$cacheid
17333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17334printf "%s\n" "$supported" >&6; }
17335		if test "$supported" = "yes" ; then
17336			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17337			found="yes"
17338		fi
17339	fi
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355xorg_testset_save_CFLAGS="$CFLAGS"
17356
17357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17361if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17362then :
17363  printf %s "(cached) " >&6
17364else case e in #(
17365  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366/* end confdefs.h.  */
17367int i;
17368_ACEOF
17369if ac_fn_c_try_compile "$LINENO"
17370then :
17371  xorg_cv_cc_flag_unknown_warning_option=yes
17372else case e in #(
17373  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17374esac
17375fi
17376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17377esac
17378fi
17379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17382	CFLAGS="$xorg_testset_save_CFLAGS"
17383fi
17384
17385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17388	fi
17389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17392if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17393then :
17394  printf %s "(cached) " >&6
17395else case e in #(
17396  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h.  */
17398int i;
17399_ACEOF
17400if ac_fn_c_try_compile "$LINENO"
17401then :
17402  xorg_cv_cc_flag_unused_command_line_argument=yes
17403else case e in #(
17404  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17405esac
17406fi
17407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17408esac
17409fi
17410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17411printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17413	CFLAGS="$xorg_testset_save_CFLAGS"
17414fi
17415
17416found="no"
17417
17418	if test $found = "no" ; then
17419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17421		fi
17422
17423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17425		fi
17426
17427		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17428
17429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17430printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17431		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17432		if eval test \${$cacheid+y}
17433then :
17434  printf %s "(cached) " >&6
17435else case e in #(
17436  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437/* end confdefs.h.  */
17438int i;
17439int
17440main (void)
17441{
17442
17443  ;
17444  return 0;
17445}
17446_ACEOF
17447if ac_fn_c_try_link "$LINENO"
17448then :
17449  eval $cacheid=yes
17450else case e in #(
17451  e) eval $cacheid=no ;;
17452esac
17453fi
17454rm -f core conftest.err conftest.$ac_objext conftest.beam \
17455    conftest$ac_exeext conftest.$ac_ext ;;
17456esac
17457fi
17458
17459
17460		CFLAGS="$xorg_testset_save_CFLAGS"
17461
17462		eval supported=\$$cacheid
17463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17464printf "%s\n" "$supported" >&6; }
17465		if test "$supported" = "yes" ; then
17466			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17467			found="yes"
17468		fi
17469	fi
17470
17471 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17472else
17473{ 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
17474printf "%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;}
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488xorg_testset_save_CFLAGS="$CFLAGS"
17489
17490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17491	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17494if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17495then :
17496  printf %s "(cached) " >&6
17497else case e in #(
17498  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499/* end confdefs.h.  */
17500int i;
17501_ACEOF
17502if ac_fn_c_try_compile "$LINENO"
17503then :
17504  xorg_cv_cc_flag_unknown_warning_option=yes
17505else case e in #(
17506  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17507esac
17508fi
17509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17510esac
17511fi
17512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17515	CFLAGS="$xorg_testset_save_CFLAGS"
17516fi
17517
17518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17521	fi
17522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17525if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17526then :
17527  printf %s "(cached) " >&6
17528else case e in #(
17529  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530/* end confdefs.h.  */
17531int i;
17532_ACEOF
17533if ac_fn_c_try_compile "$LINENO"
17534then :
17535  xorg_cv_cc_flag_unused_command_line_argument=yes
17536else case e in #(
17537  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17538esac
17539fi
17540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17541esac
17542fi
17543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17544printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17546	CFLAGS="$xorg_testset_save_CFLAGS"
17547fi
17548
17549found="no"
17550
17551	if test $found = "no" ; then
17552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17554		fi
17555
17556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17558		fi
17559
17560		CFLAGS="$CFLAGS -Wimplicit"
17561
17562		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17563printf %s "checking if $CC supports -Wimplicit... " >&6; }
17564		cacheid=xorg_cv_cc_flag__Wimplicit
17565		if eval test \${$cacheid+y}
17566then :
17567  printf %s "(cached) " >&6
17568else case e in #(
17569  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570/* end confdefs.h.  */
17571int i;
17572int
17573main (void)
17574{
17575
17576  ;
17577  return 0;
17578}
17579_ACEOF
17580if ac_fn_c_try_link "$LINENO"
17581then :
17582  eval $cacheid=yes
17583else case e in #(
17584  e) eval $cacheid=no ;;
17585esac
17586fi
17587rm -f core conftest.err conftest.$ac_objext conftest.beam \
17588    conftest$ac_exeext conftest.$ac_ext ;;
17589esac
17590fi
17591
17592
17593		CFLAGS="$xorg_testset_save_CFLAGS"
17594
17595		eval supported=\$$cacheid
17596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17597printf "%s\n" "$supported" >&6; }
17598		if test "$supported" = "yes" ; then
17599			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17600			found="yes"
17601		fi
17602	fi
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618xorg_testset_save_CFLAGS="$CFLAGS"
17619
17620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17625then :
17626  printf %s "(cached) " >&6
17627else case e in #(
17628  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17629/* end confdefs.h.  */
17630int i;
17631_ACEOF
17632if ac_fn_c_try_compile "$LINENO"
17633then :
17634  xorg_cv_cc_flag_unknown_warning_option=yes
17635else case e in #(
17636  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17637esac
17638fi
17639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17640esac
17641fi
17642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17643printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17645	CFLAGS="$xorg_testset_save_CFLAGS"
17646fi
17647
17648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17651	fi
17652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17654printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17655if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17656then :
17657  printf %s "(cached) " >&6
17658else case e in #(
17659  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17660/* end confdefs.h.  */
17661int i;
17662_ACEOF
17663if ac_fn_c_try_compile "$LINENO"
17664then :
17665  xorg_cv_cc_flag_unused_command_line_argument=yes
17666else case e in #(
17667  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17668esac
17669fi
17670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17671esac
17672fi
17673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17676	CFLAGS="$xorg_testset_save_CFLAGS"
17677fi
17678
17679found="no"
17680
17681	if test $found = "no" ; then
17682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684		fi
17685
17686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17688		fi
17689
17690		CFLAGS="$CFLAGS -Wnonnull"
17691
17692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17693printf %s "checking if $CC supports -Wnonnull... " >&6; }
17694		cacheid=xorg_cv_cc_flag__Wnonnull
17695		if eval test \${$cacheid+y}
17696then :
17697  printf %s "(cached) " >&6
17698else case e in #(
17699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700/* end confdefs.h.  */
17701int i;
17702int
17703main (void)
17704{
17705
17706  ;
17707  return 0;
17708}
17709_ACEOF
17710if ac_fn_c_try_link "$LINENO"
17711then :
17712  eval $cacheid=yes
17713else case e in #(
17714  e) eval $cacheid=no ;;
17715esac
17716fi
17717rm -f core conftest.err conftest.$ac_objext conftest.beam \
17718    conftest$ac_exeext conftest.$ac_ext ;;
17719esac
17720fi
17721
17722
17723		CFLAGS="$xorg_testset_save_CFLAGS"
17724
17725		eval supported=\$$cacheid
17726		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17727printf "%s\n" "$supported" >&6; }
17728		if test "$supported" = "yes" ; then
17729			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17730			found="yes"
17731		fi
17732	fi
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748xorg_testset_save_CFLAGS="$CFLAGS"
17749
17750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17751	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17752	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17754if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17755then :
17756  printf %s "(cached) " >&6
17757else case e in #(
17758  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17759/* end confdefs.h.  */
17760int i;
17761_ACEOF
17762if ac_fn_c_try_compile "$LINENO"
17763then :
17764  xorg_cv_cc_flag_unknown_warning_option=yes
17765else case e in #(
17766  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17767esac
17768fi
17769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17770esac
17771fi
17772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17773printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17775	CFLAGS="$xorg_testset_save_CFLAGS"
17776fi
17777
17778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17781	fi
17782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17784printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17785if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17786then :
17787  printf %s "(cached) " >&6
17788else case e in #(
17789  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790/* end confdefs.h.  */
17791int i;
17792_ACEOF
17793if ac_fn_c_try_compile "$LINENO"
17794then :
17795  xorg_cv_cc_flag_unused_command_line_argument=yes
17796else case e in #(
17797  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17798esac
17799fi
17800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17801esac
17802fi
17803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17804printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17805	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17806	CFLAGS="$xorg_testset_save_CFLAGS"
17807fi
17808
17809found="no"
17810
17811	if test $found = "no" ; then
17812		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17813			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17814		fi
17815
17816		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17817			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17818		fi
17819
17820		CFLAGS="$CFLAGS -Winit-self"
17821
17822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17823printf %s "checking if $CC supports -Winit-self... " >&6; }
17824		cacheid=xorg_cv_cc_flag__Winit_self
17825		if eval test \${$cacheid+y}
17826then :
17827  printf %s "(cached) " >&6
17828else case e in #(
17829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830/* end confdefs.h.  */
17831int i;
17832int
17833main (void)
17834{
17835
17836  ;
17837  return 0;
17838}
17839_ACEOF
17840if ac_fn_c_try_link "$LINENO"
17841then :
17842  eval $cacheid=yes
17843else case e in #(
17844  e) eval $cacheid=no ;;
17845esac
17846fi
17847rm -f core conftest.err conftest.$ac_objext conftest.beam \
17848    conftest$ac_exeext conftest.$ac_ext ;;
17849esac
17850fi
17851
17852
17853		CFLAGS="$xorg_testset_save_CFLAGS"
17854
17855		eval supported=\$$cacheid
17856		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17857printf "%s\n" "$supported" >&6; }
17858		if test "$supported" = "yes" ; then
17859			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17860			found="yes"
17861		fi
17862	fi
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878xorg_testset_save_CFLAGS="$CFLAGS"
17879
17880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17882	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17883printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17884if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17885then :
17886  printf %s "(cached) " >&6
17887else case e in #(
17888  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889/* end confdefs.h.  */
17890int i;
17891_ACEOF
17892if ac_fn_c_try_compile "$LINENO"
17893then :
17894  xorg_cv_cc_flag_unknown_warning_option=yes
17895else case e in #(
17896  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17897esac
17898fi
17899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17900esac
17901fi
17902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17905	CFLAGS="$xorg_testset_save_CFLAGS"
17906fi
17907
17908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17911	fi
17912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17913	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17915if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17916then :
17917  printf %s "(cached) " >&6
17918else case e in #(
17919  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920/* end confdefs.h.  */
17921int i;
17922_ACEOF
17923if ac_fn_c_try_compile "$LINENO"
17924then :
17925  xorg_cv_cc_flag_unused_command_line_argument=yes
17926else case e in #(
17927  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17928esac
17929fi
17930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17931esac
17932fi
17933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17936	CFLAGS="$xorg_testset_save_CFLAGS"
17937fi
17938
17939found="no"
17940
17941	if test $found = "no" ; then
17942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17944		fi
17945
17946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17948		fi
17949
17950		CFLAGS="$CFLAGS -Wmain"
17951
17952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17953printf %s "checking if $CC supports -Wmain... " >&6; }
17954		cacheid=xorg_cv_cc_flag__Wmain
17955		if eval test \${$cacheid+y}
17956then :
17957  printf %s "(cached) " >&6
17958else case e in #(
17959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960/* end confdefs.h.  */
17961int i;
17962int
17963main (void)
17964{
17965
17966  ;
17967  return 0;
17968}
17969_ACEOF
17970if ac_fn_c_try_link "$LINENO"
17971then :
17972  eval $cacheid=yes
17973else case e in #(
17974  e) eval $cacheid=no ;;
17975esac
17976fi
17977rm -f core conftest.err conftest.$ac_objext conftest.beam \
17978    conftest$ac_exeext conftest.$ac_ext ;;
17979esac
17980fi
17981
17982
17983		CFLAGS="$xorg_testset_save_CFLAGS"
17984
17985		eval supported=\$$cacheid
17986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17987printf "%s\n" "$supported" >&6; }
17988		if test "$supported" = "yes" ; then
17989			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17990			found="yes"
17991		fi
17992	fi
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008xorg_testset_save_CFLAGS="$CFLAGS"
18009
18010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18014if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18015then :
18016  printf %s "(cached) " >&6
18017else case e in #(
18018  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019/* end confdefs.h.  */
18020int i;
18021_ACEOF
18022if ac_fn_c_try_compile "$LINENO"
18023then :
18024  xorg_cv_cc_flag_unknown_warning_option=yes
18025else case e in #(
18026  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18027esac
18028fi
18029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18030esac
18031fi
18032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18035	CFLAGS="$xorg_testset_save_CFLAGS"
18036fi
18037
18038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18041	fi
18042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18045if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18046then :
18047  printf %s "(cached) " >&6
18048else case e in #(
18049  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18050/* end confdefs.h.  */
18051int i;
18052_ACEOF
18053if ac_fn_c_try_compile "$LINENO"
18054then :
18055  xorg_cv_cc_flag_unused_command_line_argument=yes
18056else case e in #(
18057  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18058esac
18059fi
18060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18061esac
18062fi
18063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18066	CFLAGS="$xorg_testset_save_CFLAGS"
18067fi
18068
18069found="no"
18070
18071	if test $found = "no" ; then
18072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18074		fi
18075
18076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18078		fi
18079
18080		CFLAGS="$CFLAGS -Wmissing-braces"
18081
18082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18083printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18084		cacheid=xorg_cv_cc_flag__Wmissing_braces
18085		if eval test \${$cacheid+y}
18086then :
18087  printf %s "(cached) " >&6
18088else case e in #(
18089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18090/* end confdefs.h.  */
18091int i;
18092int
18093main (void)
18094{
18095
18096  ;
18097  return 0;
18098}
18099_ACEOF
18100if ac_fn_c_try_link "$LINENO"
18101then :
18102  eval $cacheid=yes
18103else case e in #(
18104  e) eval $cacheid=no ;;
18105esac
18106fi
18107rm -f core conftest.err conftest.$ac_objext conftest.beam \
18108    conftest$ac_exeext conftest.$ac_ext ;;
18109esac
18110fi
18111
18112
18113		CFLAGS="$xorg_testset_save_CFLAGS"
18114
18115		eval supported=\$$cacheid
18116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18117printf "%s\n" "$supported" >&6; }
18118		if test "$supported" = "yes" ; then
18119			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18120			found="yes"
18121		fi
18122	fi
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138xorg_testset_save_CFLAGS="$CFLAGS"
18139
18140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18145then :
18146  printf %s "(cached) " >&6
18147else case e in #(
18148  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149/* end confdefs.h.  */
18150int i;
18151_ACEOF
18152if ac_fn_c_try_compile "$LINENO"
18153then :
18154  xorg_cv_cc_flag_unknown_warning_option=yes
18155else case e in #(
18156  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18157esac
18158fi
18159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18160esac
18161fi
18162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18163printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18165	CFLAGS="$xorg_testset_save_CFLAGS"
18166fi
18167
18168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18171	fi
18172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18173	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18174printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18175if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18176then :
18177  printf %s "(cached) " >&6
18178else case e in #(
18179  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180/* end confdefs.h.  */
18181int i;
18182_ACEOF
18183if ac_fn_c_try_compile "$LINENO"
18184then :
18185  xorg_cv_cc_flag_unused_command_line_argument=yes
18186else case e in #(
18187  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18188esac
18189fi
18190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18191esac
18192fi
18193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18196	CFLAGS="$xorg_testset_save_CFLAGS"
18197fi
18198
18199found="no"
18200
18201	if test $found = "no" ; then
18202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18204		fi
18205
18206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18208		fi
18209
18210		CFLAGS="$CFLAGS -Wsequence-point"
18211
18212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18213printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18214		cacheid=xorg_cv_cc_flag__Wsequence_point
18215		if eval test \${$cacheid+y}
18216then :
18217  printf %s "(cached) " >&6
18218else case e in #(
18219  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220/* end confdefs.h.  */
18221int i;
18222int
18223main (void)
18224{
18225
18226  ;
18227  return 0;
18228}
18229_ACEOF
18230if ac_fn_c_try_link "$LINENO"
18231then :
18232  eval $cacheid=yes
18233else case e in #(
18234  e) eval $cacheid=no ;;
18235esac
18236fi
18237rm -f core conftest.err conftest.$ac_objext conftest.beam \
18238    conftest$ac_exeext conftest.$ac_ext ;;
18239esac
18240fi
18241
18242
18243		CFLAGS="$xorg_testset_save_CFLAGS"
18244
18245		eval supported=\$$cacheid
18246		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18247printf "%s\n" "$supported" >&6; }
18248		if test "$supported" = "yes" ; then
18249			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18250			found="yes"
18251		fi
18252	fi
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268xorg_testset_save_CFLAGS="$CFLAGS"
18269
18270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18271	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18273printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18274if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18275then :
18276  printf %s "(cached) " >&6
18277else case e in #(
18278  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18279/* end confdefs.h.  */
18280int i;
18281_ACEOF
18282if ac_fn_c_try_compile "$LINENO"
18283then :
18284  xorg_cv_cc_flag_unknown_warning_option=yes
18285else case e in #(
18286  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18287esac
18288fi
18289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18290esac
18291fi
18292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18295	CFLAGS="$xorg_testset_save_CFLAGS"
18296fi
18297
18298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18301	fi
18302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18305if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18306then :
18307  printf %s "(cached) " >&6
18308else case e in #(
18309  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310/* end confdefs.h.  */
18311int i;
18312_ACEOF
18313if ac_fn_c_try_compile "$LINENO"
18314then :
18315  xorg_cv_cc_flag_unused_command_line_argument=yes
18316else case e in #(
18317  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18318esac
18319fi
18320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18321esac
18322fi
18323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18324printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18325	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18326	CFLAGS="$xorg_testset_save_CFLAGS"
18327fi
18328
18329found="no"
18330
18331	if test $found = "no" ; then
18332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18334		fi
18335
18336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18338		fi
18339
18340		CFLAGS="$CFLAGS -Wreturn-type"
18341
18342		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18343printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18344		cacheid=xorg_cv_cc_flag__Wreturn_type
18345		if eval test \${$cacheid+y}
18346then :
18347  printf %s "(cached) " >&6
18348else case e in #(
18349  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350/* end confdefs.h.  */
18351int i;
18352int
18353main (void)
18354{
18355
18356  ;
18357  return 0;
18358}
18359_ACEOF
18360if ac_fn_c_try_link "$LINENO"
18361then :
18362  eval $cacheid=yes
18363else case e in #(
18364  e) eval $cacheid=no ;;
18365esac
18366fi
18367rm -f core conftest.err conftest.$ac_objext conftest.beam \
18368    conftest$ac_exeext conftest.$ac_ext ;;
18369esac
18370fi
18371
18372
18373		CFLAGS="$xorg_testset_save_CFLAGS"
18374
18375		eval supported=\$$cacheid
18376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18377printf "%s\n" "$supported" >&6; }
18378		if test "$supported" = "yes" ; then
18379			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18380			found="yes"
18381		fi
18382	fi
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398xorg_testset_save_CFLAGS="$CFLAGS"
18399
18400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18405then :
18406  printf %s "(cached) " >&6
18407else case e in #(
18408  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409/* end confdefs.h.  */
18410int i;
18411_ACEOF
18412if ac_fn_c_try_compile "$LINENO"
18413then :
18414  xorg_cv_cc_flag_unknown_warning_option=yes
18415else case e in #(
18416  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18417esac
18418fi
18419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18420esac
18421fi
18422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18425	CFLAGS="$xorg_testset_save_CFLAGS"
18426fi
18427
18428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18431	fi
18432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18435if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18436then :
18437  printf %s "(cached) " >&6
18438else case e in #(
18439  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440/* end confdefs.h.  */
18441int i;
18442_ACEOF
18443if ac_fn_c_try_compile "$LINENO"
18444then :
18445  xorg_cv_cc_flag_unused_command_line_argument=yes
18446else case e in #(
18447  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18448esac
18449fi
18450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18451esac
18452fi
18453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18456	CFLAGS="$xorg_testset_save_CFLAGS"
18457fi
18458
18459found="no"
18460
18461	if test $found = "no" ; then
18462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18464		fi
18465
18466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18468		fi
18469
18470		CFLAGS="$CFLAGS -Wtrigraphs"
18471
18472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18473printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18474		cacheid=xorg_cv_cc_flag__Wtrigraphs
18475		if eval test \${$cacheid+y}
18476then :
18477  printf %s "(cached) " >&6
18478else case e in #(
18479  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480/* end confdefs.h.  */
18481int i;
18482int
18483main (void)
18484{
18485
18486  ;
18487  return 0;
18488}
18489_ACEOF
18490if ac_fn_c_try_link "$LINENO"
18491then :
18492  eval $cacheid=yes
18493else case e in #(
18494  e) eval $cacheid=no ;;
18495esac
18496fi
18497rm -f core conftest.err conftest.$ac_objext conftest.beam \
18498    conftest$ac_exeext conftest.$ac_ext ;;
18499esac
18500fi
18501
18502
18503		CFLAGS="$xorg_testset_save_CFLAGS"
18504
18505		eval supported=\$$cacheid
18506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18507printf "%s\n" "$supported" >&6; }
18508		if test "$supported" = "yes" ; then
18509			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18510			found="yes"
18511		fi
18512	fi
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528xorg_testset_save_CFLAGS="$CFLAGS"
18529
18530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18534if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18535then :
18536  printf %s "(cached) " >&6
18537else case e in #(
18538  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539/* end confdefs.h.  */
18540int i;
18541_ACEOF
18542if ac_fn_c_try_compile "$LINENO"
18543then :
18544  xorg_cv_cc_flag_unknown_warning_option=yes
18545else case e in #(
18546  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18547esac
18548fi
18549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18550esac
18551fi
18552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18555	CFLAGS="$xorg_testset_save_CFLAGS"
18556fi
18557
18558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18561	fi
18562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18565if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18566then :
18567  printf %s "(cached) " >&6
18568else case e in #(
18569  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570/* end confdefs.h.  */
18571int i;
18572_ACEOF
18573if ac_fn_c_try_compile "$LINENO"
18574then :
18575  xorg_cv_cc_flag_unused_command_line_argument=yes
18576else case e in #(
18577  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18578esac
18579fi
18580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18581esac
18582fi
18583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18586	CFLAGS="$xorg_testset_save_CFLAGS"
18587fi
18588
18589found="no"
18590
18591	if test $found = "no" ; then
18592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18594		fi
18595
18596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18598		fi
18599
18600		CFLAGS="$CFLAGS -Warray-bounds"
18601
18602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18603printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18604		cacheid=xorg_cv_cc_flag__Warray_bounds
18605		if eval test \${$cacheid+y}
18606then :
18607  printf %s "(cached) " >&6
18608else case e in #(
18609  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18610/* end confdefs.h.  */
18611int i;
18612int
18613main (void)
18614{
18615
18616  ;
18617  return 0;
18618}
18619_ACEOF
18620if ac_fn_c_try_link "$LINENO"
18621then :
18622  eval $cacheid=yes
18623else case e in #(
18624  e) eval $cacheid=no ;;
18625esac
18626fi
18627rm -f core conftest.err conftest.$ac_objext conftest.beam \
18628    conftest$ac_exeext conftest.$ac_ext ;;
18629esac
18630fi
18631
18632
18633		CFLAGS="$xorg_testset_save_CFLAGS"
18634
18635		eval supported=\$$cacheid
18636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18637printf "%s\n" "$supported" >&6; }
18638		if test "$supported" = "yes" ; then
18639			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18640			found="yes"
18641		fi
18642	fi
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658xorg_testset_save_CFLAGS="$CFLAGS"
18659
18660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18663printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18664if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18665then :
18666  printf %s "(cached) " >&6
18667else case e in #(
18668  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669/* end confdefs.h.  */
18670int i;
18671_ACEOF
18672if ac_fn_c_try_compile "$LINENO"
18673then :
18674  xorg_cv_cc_flag_unknown_warning_option=yes
18675else case e in #(
18676  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18677esac
18678fi
18679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18680esac
18681fi
18682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18685	CFLAGS="$xorg_testset_save_CFLAGS"
18686fi
18687
18688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18691	fi
18692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18695if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18696then :
18697  printf %s "(cached) " >&6
18698else case e in #(
18699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700/* end confdefs.h.  */
18701int i;
18702_ACEOF
18703if ac_fn_c_try_compile "$LINENO"
18704then :
18705  xorg_cv_cc_flag_unused_command_line_argument=yes
18706else case e in #(
18707  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18708esac
18709fi
18710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18711esac
18712fi
18713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18716	CFLAGS="$xorg_testset_save_CFLAGS"
18717fi
18718
18719found="no"
18720
18721	if test $found = "no" ; then
18722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18724		fi
18725
18726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18728		fi
18729
18730		CFLAGS="$CFLAGS -Wwrite-strings"
18731
18732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18733printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18734		cacheid=xorg_cv_cc_flag__Wwrite_strings
18735		if eval test \${$cacheid+y}
18736then :
18737  printf %s "(cached) " >&6
18738else case e in #(
18739  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740/* end confdefs.h.  */
18741int i;
18742int
18743main (void)
18744{
18745
18746  ;
18747  return 0;
18748}
18749_ACEOF
18750if ac_fn_c_try_link "$LINENO"
18751then :
18752  eval $cacheid=yes
18753else case e in #(
18754  e) eval $cacheid=no ;;
18755esac
18756fi
18757rm -f core conftest.err conftest.$ac_objext conftest.beam \
18758    conftest$ac_exeext conftest.$ac_ext ;;
18759esac
18760fi
18761
18762
18763		CFLAGS="$xorg_testset_save_CFLAGS"
18764
18765		eval supported=\$$cacheid
18766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18767printf "%s\n" "$supported" >&6; }
18768		if test "$supported" = "yes" ; then
18769			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18770			found="yes"
18771		fi
18772	fi
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788xorg_testset_save_CFLAGS="$CFLAGS"
18789
18790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18794if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18795then :
18796  printf %s "(cached) " >&6
18797else case e in #(
18798  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18799/* end confdefs.h.  */
18800int i;
18801_ACEOF
18802if ac_fn_c_try_compile "$LINENO"
18803then :
18804  xorg_cv_cc_flag_unknown_warning_option=yes
18805else case e in #(
18806  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18807esac
18808fi
18809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18810esac
18811fi
18812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18815	CFLAGS="$xorg_testset_save_CFLAGS"
18816fi
18817
18818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18821	fi
18822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18825if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18826then :
18827  printf %s "(cached) " >&6
18828else case e in #(
18829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830/* end confdefs.h.  */
18831int i;
18832_ACEOF
18833if ac_fn_c_try_compile "$LINENO"
18834then :
18835  xorg_cv_cc_flag_unused_command_line_argument=yes
18836else case e in #(
18837  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18838esac
18839fi
18840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18841esac
18842fi
18843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18846	CFLAGS="$xorg_testset_save_CFLAGS"
18847fi
18848
18849found="no"
18850
18851	if test $found = "no" ; then
18852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18854		fi
18855
18856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18858		fi
18859
18860		CFLAGS="$CFLAGS -Waddress"
18861
18862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18863printf %s "checking if $CC supports -Waddress... " >&6; }
18864		cacheid=xorg_cv_cc_flag__Waddress
18865		if eval test \${$cacheid+y}
18866then :
18867  printf %s "(cached) " >&6
18868else case e in #(
18869  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18870/* end confdefs.h.  */
18871int i;
18872int
18873main (void)
18874{
18875
18876  ;
18877  return 0;
18878}
18879_ACEOF
18880if ac_fn_c_try_link "$LINENO"
18881then :
18882  eval $cacheid=yes
18883else case e in #(
18884  e) eval $cacheid=no ;;
18885esac
18886fi
18887rm -f core conftest.err conftest.$ac_objext conftest.beam \
18888    conftest$ac_exeext conftest.$ac_ext ;;
18889esac
18890fi
18891
18892
18893		CFLAGS="$xorg_testset_save_CFLAGS"
18894
18895		eval supported=\$$cacheid
18896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18897printf "%s\n" "$supported" >&6; }
18898		if test "$supported" = "yes" ; then
18899			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18900			found="yes"
18901		fi
18902	fi
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918xorg_testset_save_CFLAGS="$CFLAGS"
18919
18920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18925then :
18926  printf %s "(cached) " >&6
18927else case e in #(
18928  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18929/* end confdefs.h.  */
18930int i;
18931_ACEOF
18932if ac_fn_c_try_compile "$LINENO"
18933then :
18934  xorg_cv_cc_flag_unknown_warning_option=yes
18935else case e in #(
18936  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18937esac
18938fi
18939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18940esac
18941fi
18942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18945	CFLAGS="$xorg_testset_save_CFLAGS"
18946fi
18947
18948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18951	fi
18952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18956then :
18957  printf %s "(cached) " >&6
18958else case e in #(
18959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960/* end confdefs.h.  */
18961int i;
18962_ACEOF
18963if ac_fn_c_try_compile "$LINENO"
18964then :
18965  xorg_cv_cc_flag_unused_command_line_argument=yes
18966else case e in #(
18967  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18968esac
18969fi
18970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18971esac
18972fi
18973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18976	CFLAGS="$xorg_testset_save_CFLAGS"
18977fi
18978
18979found="no"
18980
18981	if test $found = "no" ; then
18982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18984		fi
18985
18986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18988		fi
18989
18990		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18991
18992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18993printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18994		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18995		if eval test \${$cacheid+y}
18996then :
18997  printf %s "(cached) " >&6
18998else case e in #(
18999  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000/* end confdefs.h.  */
19001int i;
19002int
19003main (void)
19004{
19005
19006  ;
19007  return 0;
19008}
19009_ACEOF
19010if ac_fn_c_try_link "$LINENO"
19011then :
19012  eval $cacheid=yes
19013else case e in #(
19014  e) eval $cacheid=no ;;
19015esac
19016fi
19017rm -f core conftest.err conftest.$ac_objext conftest.beam \
19018    conftest$ac_exeext conftest.$ac_ext ;;
19019esac
19020fi
19021
19022
19023		CFLAGS="$xorg_testset_save_CFLAGS"
19024
19025		eval supported=\$$cacheid
19026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19027printf "%s\n" "$supported" >&6; }
19028		if test "$supported" = "yes" ; then
19029			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19030			found="yes"
19031		fi
19032	fi
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048xorg_testset_save_CFLAGS="$CFLAGS"
19049
19050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19054if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19055then :
19056  printf %s "(cached) " >&6
19057else case e in #(
19058  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059/* end confdefs.h.  */
19060int i;
19061_ACEOF
19062if ac_fn_c_try_compile "$LINENO"
19063then :
19064  xorg_cv_cc_flag_unknown_warning_option=yes
19065else case e in #(
19066  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19067esac
19068fi
19069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19070esac
19071fi
19072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19075	CFLAGS="$xorg_testset_save_CFLAGS"
19076fi
19077
19078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19081	fi
19082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19085if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19086then :
19087  printf %s "(cached) " >&6
19088else case e in #(
19089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090/* end confdefs.h.  */
19091int i;
19092_ACEOF
19093if ac_fn_c_try_compile "$LINENO"
19094then :
19095  xorg_cv_cc_flag_unused_command_line_argument=yes
19096else case e in #(
19097  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19098esac
19099fi
19100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19101esac
19102fi
19103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19106	CFLAGS="$xorg_testset_save_CFLAGS"
19107fi
19108
19109found="no"
19110
19111	if test $found = "no" ; then
19112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19114		fi
19115
19116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19118		fi
19119
19120		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19121
19122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19123printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19124		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19125		if eval test \${$cacheid+y}
19126then :
19127  printf %s "(cached) " >&6
19128else case e in #(
19129  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19130/* end confdefs.h.  */
19131int i;
19132int
19133main (void)
19134{
19135
19136  ;
19137  return 0;
19138}
19139_ACEOF
19140if ac_fn_c_try_link "$LINENO"
19141then :
19142  eval $cacheid=yes
19143else case e in #(
19144  e) eval $cacheid=no ;;
19145esac
19146fi
19147rm -f core conftest.err conftest.$ac_objext conftest.beam \
19148    conftest$ac_exeext conftest.$ac_ext ;;
19149esac
19150fi
19151
19152
19153		CFLAGS="$xorg_testset_save_CFLAGS"
19154
19155		eval supported=\$$cacheid
19156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19157printf "%s\n" "$supported" >&6; }
19158		if test "$supported" = "yes" ; then
19159			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19160			found="yes"
19161		fi
19162	fi
19163
19164
19165fi
19166
19167
19168
19169
19170
19171
19172
19173		CWARNFLAGS="$BASE_CFLAGS"
19174		if  test "x$GCC" = xyes ; then
19175		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19176		fi
19177
19178
19179
19180
19181
19182
19183
19184
19185# Check whether --enable-strict-compilation was given.
19186if test ${enable_strict_compilation+y}
19187then :
19188  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19189else case e in #(
19190  e) STRICT_COMPILE=no ;;
19191esac
19192fi
19193
19194
19195
19196
19197
19198
19199STRICT_CFLAGS=""
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213xorg_testset_save_CFLAGS="$CFLAGS"
19214
19215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19220then :
19221  printf %s "(cached) " >&6
19222else case e in #(
19223  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224/* end confdefs.h.  */
19225int i;
19226_ACEOF
19227if ac_fn_c_try_compile "$LINENO"
19228then :
19229  xorg_cv_cc_flag_unknown_warning_option=yes
19230else case e in #(
19231  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19232esac
19233fi
19234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19235esac
19236fi
19237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19240	CFLAGS="$xorg_testset_save_CFLAGS"
19241fi
19242
19243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19246	fi
19247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19250if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19251then :
19252  printf %s "(cached) " >&6
19253else case e in #(
19254  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255/* end confdefs.h.  */
19256int i;
19257_ACEOF
19258if ac_fn_c_try_compile "$LINENO"
19259then :
19260  xorg_cv_cc_flag_unused_command_line_argument=yes
19261else case e in #(
19262  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19263esac
19264fi
19265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19266esac
19267fi
19268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19270	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19271	CFLAGS="$xorg_testset_save_CFLAGS"
19272fi
19273
19274found="no"
19275
19276	if test $found = "no" ; then
19277		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19279		fi
19280
19281		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19283		fi
19284
19285		CFLAGS="$CFLAGS -pedantic"
19286
19287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19288printf %s "checking if $CC supports -pedantic... " >&6; }
19289		cacheid=xorg_cv_cc_flag__pedantic
19290		if eval test \${$cacheid+y}
19291then :
19292  printf %s "(cached) " >&6
19293else case e in #(
19294  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295/* end confdefs.h.  */
19296int i;
19297int
19298main (void)
19299{
19300
19301  ;
19302  return 0;
19303}
19304_ACEOF
19305if ac_fn_c_try_link "$LINENO"
19306then :
19307  eval $cacheid=yes
19308else case e in #(
19309  e) eval $cacheid=no ;;
19310esac
19311fi
19312rm -f core conftest.err conftest.$ac_objext conftest.beam \
19313    conftest$ac_exeext conftest.$ac_ext ;;
19314esac
19315fi
19316
19317
19318		CFLAGS="$xorg_testset_save_CFLAGS"
19319
19320		eval supported=\$$cacheid
19321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19322printf "%s\n" "$supported" >&6; }
19323		if test "$supported" = "yes" ; then
19324			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19325			found="yes"
19326		fi
19327	fi
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343xorg_testset_save_CFLAGS="$CFLAGS"
19344
19345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19349if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19350then :
19351  printf %s "(cached) " >&6
19352else case e in #(
19353  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354/* end confdefs.h.  */
19355int i;
19356_ACEOF
19357if ac_fn_c_try_compile "$LINENO"
19358then :
19359  xorg_cv_cc_flag_unknown_warning_option=yes
19360else case e in #(
19361  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19362esac
19363fi
19364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19365esac
19366fi
19367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19370	CFLAGS="$xorg_testset_save_CFLAGS"
19371fi
19372
19373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19376	fi
19377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19380if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19381then :
19382  printf %s "(cached) " >&6
19383else case e in #(
19384  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385/* end confdefs.h.  */
19386int i;
19387_ACEOF
19388if ac_fn_c_try_compile "$LINENO"
19389then :
19390  xorg_cv_cc_flag_unused_command_line_argument=yes
19391else case e in #(
19392  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19393esac
19394fi
19395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19396esac
19397fi
19398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19399printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19401	CFLAGS="$xorg_testset_save_CFLAGS"
19402fi
19403
19404found="no"
19405
19406	if test $found = "no" ; then
19407		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19409		fi
19410
19411		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19413		fi
19414
19415		CFLAGS="$CFLAGS -Werror"
19416
19417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19418printf %s "checking if $CC supports -Werror... " >&6; }
19419		cacheid=xorg_cv_cc_flag__Werror
19420		if eval test \${$cacheid+y}
19421then :
19422  printf %s "(cached) " >&6
19423else case e in #(
19424  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19425/* end confdefs.h.  */
19426int i;
19427int
19428main (void)
19429{
19430
19431  ;
19432  return 0;
19433}
19434_ACEOF
19435if ac_fn_c_try_link "$LINENO"
19436then :
19437  eval $cacheid=yes
19438else case e in #(
19439  e) eval $cacheid=no ;;
19440esac
19441fi
19442rm -f core conftest.err conftest.$ac_objext conftest.beam \
19443    conftest$ac_exeext conftest.$ac_ext ;;
19444esac
19445fi
19446
19447
19448		CFLAGS="$xorg_testset_save_CFLAGS"
19449
19450		eval supported=\$$cacheid
19451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19452printf "%s\n" "$supported" >&6; }
19453		if test "$supported" = "yes" ; then
19454			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19455			found="yes"
19456		fi
19457	fi
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 -errwarn"
19469
19470		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19471printf %s "checking if $CC supports -errwarn... " >&6; }
19472		cacheid=xorg_cv_cc_flag__errwarn
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			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19508			found="yes"
19509		fi
19510	fi
19511
19512
19513
19514# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19515# activate it with -Werror, so we add it here explicitly.
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529xorg_testset_save_CFLAGS="$CFLAGS"
19530
19531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19536then :
19537  printf %s "(cached) " >&6
19538else case e in #(
19539  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19540/* end confdefs.h.  */
19541int i;
19542_ACEOF
19543if ac_fn_c_try_compile "$LINENO"
19544then :
19545  xorg_cv_cc_flag_unknown_warning_option=yes
19546else case e in #(
19547  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19548esac
19549fi
19550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19551esac
19552fi
19553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19556	CFLAGS="$xorg_testset_save_CFLAGS"
19557fi
19558
19559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19562	fi
19563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19566if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19567then :
19568  printf %s "(cached) " >&6
19569else case e in #(
19570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571/* end confdefs.h.  */
19572int i;
19573_ACEOF
19574if ac_fn_c_try_compile "$LINENO"
19575then :
19576  xorg_cv_cc_flag_unused_command_line_argument=yes
19577else case e in #(
19578  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19579esac
19580fi
19581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19582esac
19583fi
19584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19587	CFLAGS="$xorg_testset_save_CFLAGS"
19588fi
19589
19590found="no"
19591
19592	if test $found = "no" ; then
19593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19595		fi
19596
19597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19599		fi
19600
19601		CFLAGS="$CFLAGS -Werror=attributes"
19602
19603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19604printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19605		cacheid=xorg_cv_cc_flag__Werror_attributes
19606		if eval test \${$cacheid+y}
19607then :
19608  printf %s "(cached) " >&6
19609else case e in #(
19610  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19611/* end confdefs.h.  */
19612int i;
19613int
19614main (void)
19615{
19616
19617  ;
19618  return 0;
19619}
19620_ACEOF
19621if ac_fn_c_try_link "$LINENO"
19622then :
19623  eval $cacheid=yes
19624else case e in #(
19625  e) eval $cacheid=no ;;
19626esac
19627fi
19628rm -f core conftest.err conftest.$ac_objext conftest.beam \
19629    conftest$ac_exeext conftest.$ac_ext ;;
19630esac
19631fi
19632
19633
19634		CFLAGS="$xorg_testset_save_CFLAGS"
19635
19636		eval supported=\$$cacheid
19637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19638printf "%s\n" "$supported" >&6; }
19639		if test "$supported" = "yes" ; then
19640			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19641			found="yes"
19642		fi
19643	fi
19644
19645
19646
19647if test "x$STRICT_COMPILE" = "xyes"; then
19648    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19649    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19650fi
19651
19652
19653
19654
19655
19656
19657
19658
19659cat >>confdefs.h <<_ACEOF
19660#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19661_ACEOF
19662
19663	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19664	if test "x$PVM" = "x"; then
19665		PVM="0"
19666	fi
19667
19668printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19669
19670	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19671	if test "x$PVP" = "x"; then
19672		PVP="0"
19673	fi
19674
19675printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19676
19677
19678
19679CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19680mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19681|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19682touch \$(top_srcdir)/ChangeLog; \
19683echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19684
19685
19686
19687
19688macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19689INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19690mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19691|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19692touch \$(top_srcdir)/INSTALL; \
19693echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19694
19695
19696
19697
19698
19699
19700case $host_os in
19701    solaris*)
19702        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19703        # check for a man page file found in later versions that use
19704        # traditional section numbers instead
19705        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19706printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19707if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19708then :
19709  printf %s "(cached) " >&6
19710else case e in #(
19711  e) test "$cross_compiling" = yes &&
19712  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19713if test -r "/usr/share/man/man7/attributes.7"; then
19714  ac_cv_file__usr_share_man_man7_attributes_7=yes
19715else
19716  ac_cv_file__usr_share_man_man7_attributes_7=no
19717fi ;;
19718esac
19719fi
19720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19721printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19722if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19723then :
19724  SYSV_MAN_SECTIONS=false
19725else case e in #(
19726  e) SYSV_MAN_SECTIONS=true ;;
19727esac
19728fi
19729
19730        ;;
19731    *) SYSV_MAN_SECTIONS=false ;;
19732esac
19733
19734if test x$APP_MAN_SUFFIX = x    ; then
19735    APP_MAN_SUFFIX=1
19736fi
19737if test x$APP_MAN_DIR = x    ; then
19738    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19739fi
19740
19741if test x$LIB_MAN_SUFFIX = x    ; then
19742    LIB_MAN_SUFFIX=3
19743fi
19744if test x$LIB_MAN_DIR = x    ; then
19745    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19746fi
19747
19748if test x$FILE_MAN_SUFFIX = x    ; then
19749    case $SYSV_MAN_SECTIONS in
19750	true)				FILE_MAN_SUFFIX=4  ;;
19751	*)				FILE_MAN_SUFFIX=5  ;;
19752    esac
19753fi
19754if test x$FILE_MAN_DIR = x    ; then
19755    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19756fi
19757
19758if test x$MISC_MAN_SUFFIX = x    ; then
19759    case $SYSV_MAN_SECTIONS in
19760	true)				MISC_MAN_SUFFIX=5  ;;
19761	*)				MISC_MAN_SUFFIX=7  ;;
19762    esac
19763fi
19764if test x$MISC_MAN_DIR = x    ; then
19765    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19766fi
19767
19768if test x$DRIVER_MAN_SUFFIX = x    ; then
19769    case $SYSV_MAN_SECTIONS in
19770	true)				DRIVER_MAN_SUFFIX=7  ;;
19771	*)				DRIVER_MAN_SUFFIX=4  ;;
19772    esac
19773fi
19774if test x$DRIVER_MAN_DIR = x    ; then
19775    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19776fi
19777
19778if test x$ADMIN_MAN_SUFFIX = x    ; then
19779    case $SYSV_MAN_SECTIONS in
19780	true)				ADMIN_MAN_SUFFIX=1m ;;
19781	*)				ADMIN_MAN_SUFFIX=8  ;;
19782    esac
19783fi
19784if test x$ADMIN_MAN_DIR = x    ; then
19785    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19786fi
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802XORG_MAN_PAGE="X Version 11"
19803
19804MAN_SUBSTS="\
19805	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19806	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19807	-e 's|__xservername__|Xorg|g' \
19808	-e 's|__xconfigfile__|xorg.conf|g' \
19809	-e 's|__projectroot__|\$(prefix)|g' \
19810	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19811	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19812	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19813	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19814	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19815	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19816	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19817
19818
19819
19820# Check whether --enable-silent-rules was given.
19821if test ${enable_silent_rules+y}
19822then :
19823  enableval=$enable_silent_rules;
19824fi
19825
19826case $enable_silent_rules in # (((
19827  yes) AM_DEFAULT_VERBOSITY=0;;
19828   no) AM_DEFAULT_VERBOSITY=1;;
19829    *) AM_DEFAULT_VERBOSITY=0;;
19830esac
19831am_make=${MAKE-make}
19832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19833printf %s "checking whether $am_make supports nested variables... " >&6; }
19834if test ${am_cv_make_support_nested_variables+y}
19835then :
19836  printf %s "(cached) " >&6
19837else case e in #(
19838  e) if printf "%s\n" 'TRUE=$(BAR$(V))
19839BAR0=false
19840BAR1=true
19841V=1
19842am__doit:
19843	@$(TRUE)
19844.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19845  am_cv_make_support_nested_variables=yes
19846else
19847  am_cv_make_support_nested_variables=no
19848fi ;;
19849esac
19850fi
19851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19852printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19853if test $am_cv_make_support_nested_variables = yes; then
19854    AM_V='$(V)'
19855  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19856else
19857  AM_V=$AM_DEFAULT_VERBOSITY
19858  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19859fi
19860AM_BACKSLASH='\'
19861
19862
19863
19864
19865# Set library version for Xcursor.h from package version set in AC_INIT
19866# copied from PACKAGE_VERSION_* settings in XORG_VERSION
19867
19868cat >>confdefs.h <<_ACEOF
19869#define XCURSOR_LIB_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19870_ACEOF
19871
19872
19873cat >>confdefs.h <<_ACEOF
19874#define XCURSOR_LIB_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19875_ACEOF
19876
19877
19878cat >>confdefs.h <<_ACEOF
19879#define XCURSOR_LIB_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19880_ACEOF
19881
19882
19883
19884
19885# Check whether --with-icondir was given.
19886if test ${with_icondir+y}
19887then :
19888  withval=$with_icondir; ICONDIR="$withval"
19889else case e in #(
19890  e) ICONDIR=${datadir}/icons ;;
19891esac
19892fi
19893
19894
19895
19896DEF_CURSORPATH="~/.local/share/icons:~/.icons:${datadir}/icons:${datadir}/pixmaps"
19897if test "x${ICONDIR}" != "x${datadir}/icons"; then
19898	DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}"
19899fi
19900
19901# Check whether --with-cursorpath was given.
19902if test ${with_cursorpath+y}
19903then :
19904  withval=$with_cursorpath; XCURSORPATH="$withval"
19905else case e in #(
19906  e) XCURSORPATH=$DEF_CURSORPATH ;;
19907esac
19908fi
19909
19910
19911
19912# Obtain compiler/linker options for dependencies
19913
19914pkg_failed=no
19915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5
19916printf %s "checking for XCURSOR... " >&6; }
19917
19918if test -n "$XCURSOR_CFLAGS"; then
19919    pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS"
19920 elif test -n "$PKG_CONFIG"; then
19921    if test -n "$PKG_CONFIG" && \
19922    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
19923  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
19924  ac_status=$?
19925  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19926  test $ac_status = 0; }; then
19927  pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
19928		      test "x$?" != "x0" && pkg_failed=yes
19929else
19930  pkg_failed=yes
19931fi
19932 else
19933    pkg_failed=untried
19934fi
19935if test -n "$XCURSOR_LIBS"; then
19936    pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS"
19937 elif test -n "$PKG_CONFIG"; then
19938    if test -n "$PKG_CONFIG" && \
19939    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5
19940  ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5
19941  ac_status=$?
19942  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19943  test $ac_status = 0; }; then
19944  pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null`
19945		      test "x$?" != "x0" && pkg_failed=yes
19946else
19947  pkg_failed=yes
19948fi
19949 else
19950    pkg_failed=untried
19951fi
19952
19953
19954
19955if test $pkg_failed = yes; then
19956   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19957printf "%s\n" "no" >&6; }
19958
19959if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19960        _pkg_short_errors_supported=yes
19961else
19962        _pkg_short_errors_supported=no
19963fi
19964        if test $_pkg_short_errors_supported = yes; then
19965	        XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
19966        else
19967	        XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1`
19968        fi
19969	# Put the nasty error message in config.log where it belongs
19970	echo "$XCURSOR_PKG_ERRORS" >&5
19971
19972	as_fn_error $? "Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met:
19973
19974$XCURSOR_PKG_ERRORS
19975
19976Consider adjusting the PKG_CONFIG_PATH environment variable if you
19977installed software in a non-standard prefix.
19978
19979Alternatively, you may set the environment variables XCURSOR_CFLAGS
19980and XCURSOR_LIBS to avoid the need to call pkg-config.
19981See the pkg-config man page for more details." "$LINENO" 5
19982elif test $pkg_failed = untried; then
19983     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19984printf "%s\n" "no" >&6; }
19985	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19986printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19987as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19988is in your PATH or set the PKG_CONFIG environment variable to the full
19989path to pkg-config.
19990
19991Alternatively, you may set the environment variables XCURSOR_CFLAGS
19992and XCURSOR_LIBS to avoid the need to call pkg-config.
19993See the pkg-config man page for more details.
19994
19995To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19996See 'config.log' for more details" "$LINENO" 5; }
19997else
19998	XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS
19999	XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS
20000        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20001printf "%s\n" "yes" >&6; }
20002
20003fi
20004
20005printf "%s\n" "#define HAVE_XFIXES 1" >>confdefs.h
20006
20007
20008# Allow checking code with lint, sparse, etc.
20009
20010
20011
20012
20013
20014# Check whether --with-lint was given.
20015if test ${with_lint+y}
20016then :
20017  withval=$with_lint; use_lint=$withval
20018else case e in #(
20019  e) use_lint=no ;;
20020esac
20021fi
20022
20023
20024# Obtain platform specific info like program name and options
20025# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20026case $host_os in
20027  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20028	lint_name=splint
20029	lint_options="-badflag"
20030	;;
20031  *freebsd* | *netbsd*)
20032	lint_name=lint
20033	lint_options="-u -b"
20034	;;
20035  *solaris*)
20036	lint_name=lint
20037	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20038	;;
20039esac
20040
20041# Test for the presence of the program (either guessed by the code or spelled out by the user)
20042if test "x$use_lint" = x"yes" ; then
20043   # Extract the first word of "$lint_name", so it can be a program name with args.
20044set dummy $lint_name; ac_word=$2
20045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20046printf %s "checking for $ac_word... " >&6; }
20047if test ${ac_cv_path_LINT+y}
20048then :
20049  printf %s "(cached) " >&6
20050else case e in #(
20051  e) case $LINT in
20052  [\\/]* | ?:[\\/]*)
20053  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20054  ;;
20055  *)
20056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20057for as_dir in $PATH
20058do
20059  IFS=$as_save_IFS
20060  case $as_dir in #(((
20061    '') as_dir=./ ;;
20062    */) ;;
20063    *) as_dir=$as_dir/ ;;
20064  esac
20065    for ac_exec_ext in '' $ac_executable_extensions; do
20066  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20067    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20068    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20069    break 2
20070  fi
20071done
20072  done
20073IFS=$as_save_IFS
20074
20075  ;;
20076esac ;;
20077esac
20078fi
20079LINT=$ac_cv_path_LINT
20080if test -n "$LINT"; then
20081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20082printf "%s\n" "$LINT" >&6; }
20083else
20084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085printf "%s\n" "no" >&6; }
20086fi
20087
20088
20089   if test "x$LINT" = "x"; then
20090        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20091   fi
20092elif test "x$use_lint" = x"no" ; then
20093   if test "x$LINT" != "x"; then
20094      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20095printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20096   fi
20097else
20098   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20099fi
20100
20101# User supplied flags override default flags
20102if test "x$LINT_FLAGS" != "x"; then
20103   lint_options=$LINT_FLAGS
20104fi
20105
20106LINT_FLAGS=$lint_options
20107
20108 if test "x$LINT" != x; then
20109  LINT_TRUE=
20110  LINT_FALSE='#'
20111else
20112  LINT_TRUE='#'
20113  LINT_FALSE=
20114fi
20115
20116
20117
20118
20119ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc"
20120
20121cat >confcache <<\_ACEOF
20122# This file is a shell script that caches the results of configure
20123# tests run on this system so they can be shared between configure
20124# scripts and configure runs, see configure's option --config-cache.
20125# It is not useful on other systems.  If it contains results you don't
20126# want to keep, you may remove or edit it.
20127#
20128# config.status only pays attention to the cache file if you give it
20129# the --recheck option to rerun configure.
20130#
20131# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20132# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20133# following values.
20134
20135_ACEOF
20136
20137# The following way of writing the cache mishandles newlines in values,
20138# but we know of no workaround that is simple, portable, and efficient.
20139# So, we kill variables containing newlines.
20140# Ultrix sh set writes to stderr and can't be redirected directly,
20141# and sets the high bit in the cache file unless we assign to the vars.
20142(
20143  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20144    eval ac_val=\$$ac_var
20145    case $ac_val in #(
20146    *${as_nl}*)
20147      case $ac_var in #(
20148      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20149printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20150      esac
20151      case $ac_var in #(
20152      _ | IFS | as_nl) ;; #(
20153      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20154      *) { eval $ac_var=; unset $ac_var;} ;;
20155      esac ;;
20156    esac
20157  done
20158
20159  (set) 2>&1 |
20160    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20161    *${as_nl}ac_space=\ *)
20162      # 'set' does not quote correctly, so add quotes: double-quote
20163      # substitution turns \\\\ into \\, and sed turns \\ into \.
20164      sed -n \
20165	"s/'/'\\\\''/g;
20166	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20167      ;; #(
20168    *)
20169      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20170      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20171      ;;
20172    esac |
20173    sort
20174) |
20175  sed '
20176     /^ac_cv_env_/b end
20177     t clear
20178     :clear
20179     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20180     t end
20181     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20182     :end' >>confcache
20183if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20184  if test -w "$cache_file"; then
20185    if test "x$cache_file" != "x/dev/null"; then
20186      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20187printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20188      if test ! -f "$cache_file" || test -h "$cache_file"; then
20189	cat confcache >"$cache_file"
20190      else
20191        case $cache_file in #(
20192        */* | ?:*)
20193	  mv -f confcache "$cache_file"$$ &&
20194	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20195        *)
20196	  mv -f confcache "$cache_file" ;;
20197	esac
20198      fi
20199    fi
20200  else
20201    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20202printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20203  fi
20204fi
20205rm -f confcache
20206
20207test "x$prefix" = xNONE && prefix=$ac_default_prefix
20208# Let make expand exec_prefix.
20209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20210
20211DEFS=-DHAVE_CONFIG_H
20212
20213ac_libobjs=
20214ac_ltlibobjs=
20215U=
20216for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20217  # 1. Remove the extension, and $U if already installed.
20218  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20219  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20220  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20221  #    will be set to the directory where LIBOBJS objects are built.
20222  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20223  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20224done
20225LIBOBJS=$ac_libobjs
20226
20227LTLIBOBJS=$ac_ltlibobjs
20228
20229
20230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20231printf %s "checking that generated files are newer than configure... " >&6; }
20232   if test -n "$am_sleep_pid"; then
20233     # Hide warnings about reused PIDs.
20234     wait $am_sleep_pid 2>/dev/null
20235   fi
20236   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20237printf "%s\n" "done" >&6; }
20238if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20239  as_fn_error $? "conditional \"AMDEP\" was never defined.
20240Usually this means the macro was only invoked conditionally." "$LINENO" 5
20241fi
20242if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20243  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20244Usually this means the macro was only invoked conditionally." "$LINENO" 5
20245fi
20246 if test -n "$EXEEXT"; then
20247  am__EXEEXT_TRUE=
20248  am__EXEEXT_FALSE='#'
20249else
20250  am__EXEEXT_TRUE='#'
20251  am__EXEEXT_FALSE=
20252fi
20253
20254if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20255  as_fn_error $? "conditional \"LINT\" was never defined.
20256Usually this means the macro was only invoked conditionally." "$LINENO" 5
20257fi
20258
20259: "${CONFIG_STATUS=./config.status}"
20260ac_write_fail=0
20261ac_clean_files_save=$ac_clean_files
20262ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20264printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20265as_write_fail=0
20266cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20267#! $SHELL
20268# Generated by $as_me.
20269# Run this file to recreate the current configuration.
20270# Compiler output produced by configure, useful for debugging
20271# configure, is in config.log if it exists.
20272
20273debug=false
20274ac_cs_recheck=false
20275ac_cs_silent=false
20276
20277SHELL=\${CONFIG_SHELL-$SHELL}
20278export SHELL
20279_ASEOF
20280cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20281## -------------------- ##
20282## M4sh Initialization. ##
20283## -------------------- ##
20284
20285# Be more Bourne compatible
20286DUALCASE=1; export DUALCASE # for MKS sh
20287if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20288then :
20289  emulate sh
20290  NULLCMD=:
20291  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20292  # is contrary to our usage.  Disable this feature.
20293  alias -g '${1+"$@"}'='"$@"'
20294  setopt NO_GLOB_SUBST
20295else case e in #(
20296  e) case `(set -o) 2>/dev/null` in #(
20297  *posix*) :
20298    set -o posix ;; #(
20299  *) :
20300     ;;
20301esac ;;
20302esac
20303fi
20304
20305
20306
20307# Reset variables that may have inherited troublesome values from
20308# the environment.
20309
20310# IFS needs to be set, to space, tab, and newline, in precisely that order.
20311# (If _AS_PATH_WALK were called with IFS unset, it would have the
20312# side effect of setting IFS to empty, thus disabling word splitting.)
20313# Quoting is to prevent editors from complaining about space-tab.
20314as_nl='
20315'
20316export as_nl
20317IFS=" ""	$as_nl"
20318
20319PS1='$ '
20320PS2='> '
20321PS4='+ '
20322
20323# Ensure predictable behavior from utilities with locale-dependent output.
20324LC_ALL=C
20325export LC_ALL
20326LANGUAGE=C
20327export LANGUAGE
20328
20329# We cannot yet rely on "unset" to work, but we need these variables
20330# to be unset--not just set to an empty or harmless value--now, to
20331# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20332# also avoids known problems related to "unset" and subshell syntax
20333# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20334for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20335do eval test \${$as_var+y} \
20336  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20337done
20338
20339# Ensure that fds 0, 1, and 2 are open.
20340if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20341if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20342if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20343
20344# The user is always right.
20345if ${PATH_SEPARATOR+false} :; then
20346  PATH_SEPARATOR=:
20347  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20348    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20349      PATH_SEPARATOR=';'
20350  }
20351fi
20352
20353
20354# Find who we are.  Look in the path if we contain no directory separator.
20355as_myself=
20356case $0 in #((
20357  *[\\/]* ) as_myself=$0 ;;
20358  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359for as_dir in $PATH
20360do
20361  IFS=$as_save_IFS
20362  case $as_dir in #(((
20363    '') as_dir=./ ;;
20364    */) ;;
20365    *) as_dir=$as_dir/ ;;
20366  esac
20367    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20368  done
20369IFS=$as_save_IFS
20370
20371     ;;
20372esac
20373# We did not find ourselves, most probably we were run as 'sh COMMAND'
20374# in which case we are not to be found in the path.
20375if test "x$as_myself" = x; then
20376  as_myself=$0
20377fi
20378if test ! -f "$as_myself"; then
20379  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20380  exit 1
20381fi
20382
20383
20384
20385# as_fn_error STATUS ERROR [LINENO LOG_FD]
20386# ----------------------------------------
20387# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20388# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20389# script with STATUS, using 1 if that was 0.
20390as_fn_error ()
20391{
20392  as_status=$1; test $as_status -eq 0 && as_status=1
20393  if test "$4"; then
20394    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20395    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20396  fi
20397  printf "%s\n" "$as_me: error: $2" >&2
20398  as_fn_exit $as_status
20399} # as_fn_error
20400
20401
20402# as_fn_set_status STATUS
20403# -----------------------
20404# Set $? to STATUS, without forking.
20405as_fn_set_status ()
20406{
20407  return $1
20408} # as_fn_set_status
20409
20410# as_fn_exit STATUS
20411# -----------------
20412# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20413as_fn_exit ()
20414{
20415  set +e
20416  as_fn_set_status $1
20417  exit $1
20418} # as_fn_exit
20419
20420# as_fn_unset VAR
20421# ---------------
20422# Portably unset VAR.
20423as_fn_unset ()
20424{
20425  { eval $1=; unset $1;}
20426}
20427as_unset=as_fn_unset
20428
20429# as_fn_append VAR VALUE
20430# ----------------------
20431# Append the text in VALUE to the end of the definition contained in VAR. Take
20432# advantage of any shell optimizations that allow amortized linear growth over
20433# repeated appends, instead of the typical quadratic growth present in naive
20434# implementations.
20435if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20436then :
20437  eval 'as_fn_append ()
20438  {
20439    eval $1+=\$2
20440  }'
20441else case e in #(
20442  e) as_fn_append ()
20443  {
20444    eval $1=\$$1\$2
20445  } ;;
20446esac
20447fi # as_fn_append
20448
20449# as_fn_arith ARG...
20450# ------------------
20451# Perform arithmetic evaluation on the ARGs, and store the result in the
20452# global $as_val. Take advantage of shells that can avoid forks. The arguments
20453# must be portable across $(()) and expr.
20454if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20455then :
20456  eval 'as_fn_arith ()
20457  {
20458    as_val=$(( $* ))
20459  }'
20460else case e in #(
20461  e) as_fn_arith ()
20462  {
20463    as_val=`expr "$@" || test $? -eq 1`
20464  } ;;
20465esac
20466fi # as_fn_arith
20467
20468
20469if expr a : '\(a\)' >/dev/null 2>&1 &&
20470   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20471  as_expr=expr
20472else
20473  as_expr=false
20474fi
20475
20476if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20477  as_basename=basename
20478else
20479  as_basename=false
20480fi
20481
20482if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20483  as_dirname=dirname
20484else
20485  as_dirname=false
20486fi
20487
20488as_me=`$as_basename -- "$0" ||
20489$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20490	 X"$0" : 'X\(//\)$' \| \
20491	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20492printf "%s\n" X/"$0" |
20493    sed '/^.*\/\([^/][^/]*\)\/*$/{
20494	    s//\1/
20495	    q
20496	  }
20497	  /^X\/\(\/\/\)$/{
20498	    s//\1/
20499	    q
20500	  }
20501	  /^X\/\(\/\).*/{
20502	    s//\1/
20503	    q
20504	  }
20505	  s/.*/./; q'`
20506
20507# Avoid depending upon Character Ranges.
20508as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20509as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20510as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20511as_cr_digits='0123456789'
20512as_cr_alnum=$as_cr_Letters$as_cr_digits
20513
20514
20515# Determine whether it's possible to make 'echo' print without a newline.
20516# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20517# for compatibility with existing Makefiles.
20518ECHO_C= ECHO_N= ECHO_T=
20519case `echo -n x` in #(((((
20520-n*)
20521  case `echo 'xy\c'` in
20522  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20523  xy)  ECHO_C='\c';;
20524  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20525       ECHO_T='	';;
20526  esac;;
20527*)
20528  ECHO_N='-n';;
20529esac
20530
20531# For backward compatibility with old third-party macros, we provide
20532# the shell variables $as_echo and $as_echo_n.  New code should use
20533# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20534as_echo='printf %s\n'
20535as_echo_n='printf %s'
20536
20537rm -f conf$$ conf$$.exe conf$$.file
20538if test -d conf$$.dir; then
20539  rm -f conf$$.dir/conf$$.file
20540else
20541  rm -f conf$$.dir
20542  mkdir conf$$.dir 2>/dev/null
20543fi
20544if (echo >conf$$.file) 2>/dev/null; then
20545  if ln -s conf$$.file conf$$ 2>/dev/null; then
20546    as_ln_s='ln -s'
20547    # ... but there are two gotchas:
20548    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20549    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20550    # In both cases, we have to default to 'cp -pR'.
20551    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20552      as_ln_s='cp -pR'
20553  elif ln conf$$.file conf$$ 2>/dev/null; then
20554    as_ln_s=ln
20555  else
20556    as_ln_s='cp -pR'
20557  fi
20558else
20559  as_ln_s='cp -pR'
20560fi
20561rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20562rmdir conf$$.dir 2>/dev/null
20563
20564
20565# as_fn_mkdir_p
20566# -------------
20567# Create "$as_dir" as a directory, including parents if necessary.
20568as_fn_mkdir_p ()
20569{
20570
20571  case $as_dir in #(
20572  -*) as_dir=./$as_dir;;
20573  esac
20574  test -d "$as_dir" || eval $as_mkdir_p || {
20575    as_dirs=
20576    while :; do
20577      case $as_dir in #(
20578      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20579      *) as_qdir=$as_dir;;
20580      esac
20581      as_dirs="'$as_qdir' $as_dirs"
20582      as_dir=`$as_dirname -- "$as_dir" ||
20583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20584	 X"$as_dir" : 'X\(//\)[^/]' \| \
20585	 X"$as_dir" : 'X\(//\)$' \| \
20586	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20587printf "%s\n" X"$as_dir" |
20588    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20589	    s//\1/
20590	    q
20591	  }
20592	  /^X\(\/\/\)[^/].*/{
20593	    s//\1/
20594	    q
20595	  }
20596	  /^X\(\/\/\)$/{
20597	    s//\1/
20598	    q
20599	  }
20600	  /^X\(\/\).*/{
20601	    s//\1/
20602	    q
20603	  }
20604	  s/.*/./; q'`
20605      test -d "$as_dir" && break
20606    done
20607    test -z "$as_dirs" || eval "mkdir $as_dirs"
20608  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20609
20610
20611} # as_fn_mkdir_p
20612if mkdir -p . 2>/dev/null; then
20613  as_mkdir_p='mkdir -p "$as_dir"'
20614else
20615  test -d ./-p && rmdir ./-p
20616  as_mkdir_p=false
20617fi
20618
20619
20620# as_fn_executable_p FILE
20621# -----------------------
20622# Test if FILE is an executable regular file.
20623as_fn_executable_p ()
20624{
20625  test -f "$1" && test -x "$1"
20626} # as_fn_executable_p
20627as_test_x='test -x'
20628as_executable_p=as_fn_executable_p
20629
20630# Sed expression to map a string onto a valid CPP name.
20631as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20632as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20633
20634# Sed expression to map a string onto a valid variable name.
20635as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20636as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20637
20638
20639exec 6>&1
20640## ----------------------------------- ##
20641## Main body of $CONFIG_STATUS script. ##
20642## ----------------------------------- ##
20643_ASEOF
20644test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20645
20646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20647# Save the log message, to keep $0 and so on meaningful, and to
20648# report actual input values of CONFIG_FILES etc. instead of their
20649# values after options handling.
20650ac_log="
20651This file was extended by libXcursor $as_me 1.2.2, which was
20652generated by GNU Autoconf 2.72.  Invocation command line was
20653
20654  CONFIG_FILES    = $CONFIG_FILES
20655  CONFIG_HEADERS  = $CONFIG_HEADERS
20656  CONFIG_LINKS    = $CONFIG_LINKS
20657  CONFIG_COMMANDS = $CONFIG_COMMANDS
20658  $ $0 $@
20659
20660on `(hostname || uname -n) 2>/dev/null | sed 1q`
20661"
20662
20663_ACEOF
20664
20665case $ac_config_files in *"
20666"*) set x $ac_config_files; shift; ac_config_files=$*;;
20667esac
20668
20669case $ac_config_headers in *"
20670"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20671esac
20672
20673
20674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20675# Files that config.status was made for.
20676config_files="$ac_config_files"
20677config_headers="$ac_config_headers"
20678config_commands="$ac_config_commands"
20679
20680_ACEOF
20681
20682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20683ac_cs_usage="\
20684'$as_me' instantiates files and other configuration actions
20685from templates according to the current configuration.  Unless the files
20686and actions are specified as TAGs, all are instantiated by default.
20687
20688Usage: $0 [OPTION]... [TAG]...
20689
20690  -h, --help       print this help, then exit
20691  -V, --version    print version number and configuration settings, then exit
20692      --config     print configuration, then exit
20693  -q, --quiet, --silent
20694                   do not print progress messages
20695  -d, --debug      don't remove temporary files
20696      --recheck    update $as_me by reconfiguring in the same conditions
20697      --file=FILE[:TEMPLATE]
20698                   instantiate the configuration file FILE
20699      --header=FILE[:TEMPLATE]
20700                   instantiate the configuration header FILE
20701
20702Configuration files:
20703$config_files
20704
20705Configuration headers:
20706$config_headers
20707
20708Configuration commands:
20709$config_commands
20710
20711Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcursor/-/issues>."
20712
20713_ACEOF
20714ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20715ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20717ac_cs_config='$ac_cs_config_escaped'
20718ac_cs_version="\\
20719libXcursor config.status 1.2.2
20720configured by $0, generated by GNU Autoconf 2.72,
20721  with options \\"\$ac_cs_config\\"
20722
20723Copyright (C) 2023 Free Software Foundation, Inc.
20724This config.status script is free software; the Free Software Foundation
20725gives unlimited permission to copy, distribute and modify it."
20726
20727ac_pwd='$ac_pwd'
20728srcdir='$srcdir'
20729INSTALL='$INSTALL'
20730MKDIR_P='$MKDIR_P'
20731AWK='$AWK'
20732test -n "\$AWK" || AWK=awk
20733_ACEOF
20734
20735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20736# The default lists apply if the user does not specify any file.
20737ac_need_defaults=:
20738while test $# != 0
20739do
20740  case $1 in
20741  --*=?*)
20742    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20743    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20744    ac_shift=:
20745    ;;
20746  --*=)
20747    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20748    ac_optarg=
20749    ac_shift=:
20750    ;;
20751  *)
20752    ac_option=$1
20753    ac_optarg=$2
20754    ac_shift=shift
20755    ;;
20756  esac
20757
20758  case $ac_option in
20759  # Handling of the options.
20760  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20761    ac_cs_recheck=: ;;
20762  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20763    printf "%s\n" "$ac_cs_version"; exit ;;
20764  --config | --confi | --conf | --con | --co | --c )
20765    printf "%s\n" "$ac_cs_config"; exit ;;
20766  --debug | --debu | --deb | --de | --d | -d )
20767    debug=: ;;
20768  --file | --fil | --fi | --f )
20769    $ac_shift
20770    case $ac_optarg in
20771    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20772    '') as_fn_error $? "missing file argument" ;;
20773    esac
20774    as_fn_append CONFIG_FILES " '$ac_optarg'"
20775    ac_need_defaults=false;;
20776  --header | --heade | --head | --hea )
20777    $ac_shift
20778    case $ac_optarg in
20779    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20780    esac
20781    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20782    ac_need_defaults=false;;
20783  --he | --h)
20784    # Conflict between --help and --header
20785    as_fn_error $? "ambiguous option: '$1'
20786Try '$0 --help' for more information.";;
20787  --help | --hel | -h )
20788    printf "%s\n" "$ac_cs_usage"; exit ;;
20789  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20790  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20791    ac_cs_silent=: ;;
20792
20793  # This is an error.
20794  -*) as_fn_error $? "unrecognized option: '$1'
20795Try '$0 --help' for more information." ;;
20796
20797  *) as_fn_append ac_config_targets " $1"
20798     ac_need_defaults=false ;;
20799
20800  esac
20801  shift
20802done
20803
20804ac_configure_extra_args=
20805
20806if $ac_cs_silent; then
20807  exec 6>/dev/null
20808  ac_configure_extra_args="$ac_configure_extra_args --silent"
20809fi
20810
20811_ACEOF
20812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20813if \$ac_cs_recheck; then
20814  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20815  shift
20816  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20817  CONFIG_SHELL='$SHELL'
20818  export CONFIG_SHELL
20819  exec "\$@"
20820fi
20821
20822_ACEOF
20823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20824exec 5>>config.log
20825{
20826  echo
20827  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20828## Running $as_me. ##
20829_ASBOX
20830  printf "%s\n" "$ac_log"
20831} >&5
20832
20833_ACEOF
20834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20835#
20836# INIT-COMMANDS
20837#
20838AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20839
20840
20841# The HP-UX ksh and POSIX shell print the target directory to stdout
20842# if CDPATH is set.
20843(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20844
20845sed_quote_subst='$sed_quote_subst'
20846double_quote_subst='$double_quote_subst'
20847delay_variable_subst='$delay_variable_subst'
20848macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20849macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20850enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20851enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20852pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20853enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20854shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20855SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20856ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20857PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20858host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20859host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20860host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20861build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20862build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20863build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20864SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20865Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20866GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20867EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20868FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20869LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20870NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20871LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20872max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20873ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20874exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20875lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20876lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20877lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20878lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20879lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20880reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20881reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20882FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20883OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20884deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20885file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20886file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20887want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20888DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20889sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20890AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20891lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20892AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20893archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20894STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20895RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20896old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20897old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20898old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20899lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20900CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20901CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20902compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20903GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20904lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20905lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20906lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20907lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20908lt_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"`'
20909lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20910nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20911lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20912lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20913objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20914MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20915lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20916lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20917lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20918lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20919lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20920need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20921MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20922DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20923NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20924LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20925OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20926OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20927libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20928shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20929extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20930archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20931enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20932export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20933whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20934compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20935old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20936old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20937archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20938archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20939module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20940module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20941with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20942allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20943no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20944hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20945hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20946hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20947hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20948hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20949hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20950hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20951inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20952link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20953always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20954export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20955exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20956include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20957prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20958postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20959file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20960variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20961need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20962need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20963version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20964runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20965shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20966shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20967libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20968library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20969soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20970install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20971postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20972postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20973finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20974finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20975hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20976sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20977configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20978configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20979hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20980enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20981enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20982enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20983old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20984striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20985
20986LTCC='$LTCC'
20987LTCFLAGS='$LTCFLAGS'
20988compiler='$compiler_DEFAULT'
20989
20990# A function that is used when there is no print builtin or printf.
20991func_fallback_echo ()
20992{
20993  eval 'cat <<_LTECHO_EOF
20994\$1
20995_LTECHO_EOF'
20996}
20997
20998# Quote evaled strings.
20999for var in SHELL \
21000ECHO \
21001PATH_SEPARATOR \
21002SED \
21003GREP \
21004EGREP \
21005FGREP \
21006LD \
21007NM \
21008LN_S \
21009lt_SP2NL \
21010lt_NL2SP \
21011reload_flag \
21012FILECMD \
21013OBJDUMP \
21014deplibs_check_method \
21015file_magic_cmd \
21016file_magic_glob \
21017want_nocaseglob \
21018DLLTOOL \
21019sharedlib_from_linklib_cmd \
21020AR \
21021archiver_list_spec \
21022STRIP \
21023RANLIB \
21024CC \
21025CFLAGS \
21026compiler \
21027lt_cv_sys_global_symbol_pipe \
21028lt_cv_sys_global_symbol_to_cdecl \
21029lt_cv_sys_global_symbol_to_import \
21030lt_cv_sys_global_symbol_to_c_name_address \
21031lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21032lt_cv_nm_interface \
21033nm_file_list_spec \
21034lt_cv_truncate_bin \
21035lt_prog_compiler_no_builtin_flag \
21036lt_prog_compiler_pic \
21037lt_prog_compiler_wl \
21038lt_prog_compiler_static \
21039lt_cv_prog_compiler_c_o \
21040need_locks \
21041MANIFEST_TOOL \
21042DSYMUTIL \
21043NMEDIT \
21044LIPO \
21045OTOOL \
21046OTOOL64 \
21047shrext_cmds \
21048export_dynamic_flag_spec \
21049whole_archive_flag_spec \
21050compiler_needs_object \
21051with_gnu_ld \
21052allow_undefined_flag \
21053no_undefined_flag \
21054hardcode_libdir_flag_spec \
21055hardcode_libdir_separator \
21056exclude_expsyms \
21057include_expsyms \
21058file_list_spec \
21059variables_saved_for_relink \
21060libname_spec \
21061library_names_spec \
21062soname_spec \
21063install_override_mode \
21064finish_eval \
21065old_striplib \
21066striplib; do
21067    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21068    *[\\\\\\\`\\"\\\$]*)
21069      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21070      ;;
21071    *)
21072      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21073      ;;
21074    esac
21075done
21076
21077# Double-quote double-evaled strings.
21078for var in reload_cmds \
21079old_postinstall_cmds \
21080old_postuninstall_cmds \
21081old_archive_cmds \
21082extract_expsyms_cmds \
21083old_archive_from_new_cmds \
21084old_archive_from_expsyms_cmds \
21085archive_cmds \
21086archive_expsym_cmds \
21087module_cmds \
21088module_expsym_cmds \
21089export_symbols_cmds \
21090prelink_cmds \
21091postlink_cmds \
21092postinstall_cmds \
21093postuninstall_cmds \
21094finish_cmds \
21095sys_lib_search_path_spec \
21096configure_time_dlsearch_path \
21097configure_time_lt_sys_library_path; do
21098    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21099    *[\\\\\\\`\\"\\\$]*)
21100      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21101      ;;
21102    *)
21103      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21104      ;;
21105    esac
21106done
21107
21108ac_aux_dir='$ac_aux_dir'
21109
21110# See if we are running on zsh, and set the options that allow our
21111# commands through without removal of \ escapes INIT.
21112if test -n "\${ZSH_VERSION+set}"; then
21113   setopt NO_GLOB_SUBST
21114fi
21115
21116
21117    PACKAGE='$PACKAGE'
21118    VERSION='$VERSION'
21119    RM='$RM'
21120    ofile='$ofile'
21121
21122
21123
21124
21125_ACEOF
21126
21127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21128
21129# Handling of arguments.
21130for ac_config_target in $ac_config_targets
21131do
21132  case $ac_config_target in
21133    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21134    "include/X11/Xcursor/Xcursor.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xcursor/Xcursor.h" ;;
21135    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21136    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21137    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21138    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21139    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21140    "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;;
21141
21142  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21143  esac
21144done
21145
21146
21147# If the user did not use the arguments to specify the items to instantiate,
21148# then the envvar interface is used.  Set only those that are not.
21149# We use the long form for the default assignment because of an extremely
21150# bizarre bug on SunOS 4.1.3.
21151if $ac_need_defaults; then
21152  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21153  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21154  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21155fi
21156
21157# Have a temporary directory for convenience.  Make it in the build tree
21158# simply because there is no reason against having it here, and in addition,
21159# creating and moving files from /tmp can sometimes cause problems.
21160# Hook for its removal unless debugging.
21161# Note that there is a small window in which the directory will not be cleaned:
21162# after its creation but before its name has been assigned to '$tmp'.
21163$debug ||
21164{
21165  tmp= ac_tmp=
21166  trap 'exit_status=$?
21167  : "${ac_tmp:=$tmp}"
21168  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21169' 0
21170  trap 'as_fn_exit 1' 1 2 13 15
21171}
21172# Create a (secure) tmp directory for tmp files.
21173
21174{
21175  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21176  test -d "$tmp"
21177}  ||
21178{
21179  tmp=./conf$$-$RANDOM
21180  (umask 077 && mkdir "$tmp")
21181} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21182ac_tmp=$tmp
21183
21184# Set up the scripts for CONFIG_FILES section.
21185# No need to generate them if there are no CONFIG_FILES.
21186# This happens for instance with './config.status config.h'.
21187if test -n "$CONFIG_FILES"; then
21188
21189
21190ac_cr=`echo X | tr X '\015'`
21191# On cygwin, bash can eat \r inside `` if the user requested igncr.
21192# But we know of no other shell where ac_cr would be empty at this
21193# point, so we can use a bashism as a fallback.
21194if test "x$ac_cr" = x; then
21195  eval ac_cr=\$\'\\r\'
21196fi
21197ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21198if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21199  ac_cs_awk_cr='\\r'
21200else
21201  ac_cs_awk_cr=$ac_cr
21202fi
21203
21204echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21205_ACEOF
21206
21207
21208{
21209  echo "cat >conf$$subs.awk <<_ACEOF" &&
21210  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21211  echo "_ACEOF"
21212} >conf$$subs.sh ||
21213  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21214ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21215ac_delim='%!_!# '
21216for ac_last_try in false false false false false :; do
21217  . ./conf$$subs.sh ||
21218    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21219
21220  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21221  if test $ac_delim_n = $ac_delim_num; then
21222    break
21223  elif $ac_last_try; then
21224    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21225  else
21226    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21227  fi
21228done
21229rm -f conf$$subs.sh
21230
21231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21232cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21233_ACEOF
21234sed -n '
21235h
21236s/^/S["/; s/!.*/"]=/
21237p
21238g
21239s/^[^!]*!//
21240:repl
21241t repl
21242s/'"$ac_delim"'$//
21243t delim
21244:nl
21245h
21246s/\(.\{148\}\)..*/\1/
21247t more1
21248s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21249p
21250n
21251b repl
21252:more1
21253s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21254p
21255g
21256s/.\{148\}//
21257t nl
21258:delim
21259h
21260s/\(.\{148\}\)..*/\1/
21261t more2
21262s/["\\]/\\&/g; s/^/"/; s/$/"/
21263p
21264b
21265:more2
21266s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21267p
21268g
21269s/.\{148\}//
21270t delim
21271' <conf$$subs.awk | sed '
21272/^[^""]/{
21273  N
21274  s/\n//
21275}
21276' >>$CONFIG_STATUS || ac_write_fail=1
21277rm -f conf$$subs.awk
21278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21279_ACAWK
21280cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21281  for (key in S) S_is_set[key] = 1
21282  FS = ""
21283
21284}
21285{
21286  line = $ 0
21287  nfields = split(line, field, "@")
21288  substed = 0
21289  len = length(field[1])
21290  for (i = 2; i < nfields; i++) {
21291    key = field[i]
21292    keylen = length(key)
21293    if (S_is_set[key]) {
21294      value = S[key]
21295      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21296      len += length(value) + length(field[++i])
21297      substed = 1
21298    } else
21299      len += 1 + keylen
21300  }
21301
21302  print line
21303}
21304
21305_ACAWK
21306_ACEOF
21307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21308if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21309  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21310else
21311  cat
21312fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21313  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21314_ACEOF
21315
21316# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21317# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21318# trailing colons and then remove the whole line if VPATH becomes empty
21319# (actually we leave an empty line to preserve line numbers).
21320if test "x$srcdir" = x.; then
21321  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21322h
21323s///
21324s/^/:/
21325s/[	 ]*$/:/
21326s/:\$(srcdir):/:/g
21327s/:\${srcdir}:/:/g
21328s/:@srcdir@:/:/g
21329s/^:*//
21330s/:*$//
21331x
21332s/\(=[	 ]*\).*/\1/
21333G
21334s/\n//
21335s/^[^=]*=[	 ]*$//
21336}'
21337fi
21338
21339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21340fi # test -n "$CONFIG_FILES"
21341
21342# Set up the scripts for CONFIG_HEADERS section.
21343# No need to generate them if there are no CONFIG_HEADERS.
21344# This happens for instance with './config.status Makefile'.
21345if test -n "$CONFIG_HEADERS"; then
21346cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21347BEGIN {
21348_ACEOF
21349
21350# Transform confdefs.h into an awk script 'defines.awk', embedded as
21351# here-document in config.status, that substitutes the proper values into
21352# config.h.in to produce config.h.
21353
21354# Create a delimiter string that does not exist in confdefs.h, to ease
21355# handling of long lines.
21356ac_delim='%!_!# '
21357for ac_last_try in false false :; do
21358  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21359  if test -z "$ac_tt"; then
21360    break
21361  elif $ac_last_try; then
21362    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21363  else
21364    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21365  fi
21366done
21367
21368# For the awk script, D is an array of macro values keyed by name,
21369# likewise P contains macro parameters if any.  Preserve backslash
21370# newline sequences.
21371
21372ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21373sed -n '
21374s/.\{148\}/&'"$ac_delim"'/g
21375t rset
21376:rset
21377s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21378t def
21379d
21380:def
21381s/\\$//
21382t bsnl
21383s/["\\]/\\&/g
21384s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21385D["\1"]=" \3"/p
21386s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21387d
21388:bsnl
21389s/["\\]/\\&/g
21390s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21391D["\1"]=" \3\\\\\\n"\\/p
21392t cont
21393s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21394t cont
21395d
21396:cont
21397n
21398s/.\{148\}/&'"$ac_delim"'/g
21399t clear
21400:clear
21401s/\\$//
21402t bsnlc
21403s/["\\]/\\&/g; s/^/"/; s/$/"/p
21404d
21405:bsnlc
21406s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21407b cont
21408' <confdefs.h | sed '
21409s/'"$ac_delim"'/"\\\
21410"/g' >>$CONFIG_STATUS || ac_write_fail=1
21411
21412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21413  for (key in D) D_is_set[key] = 1
21414  FS = ""
21415}
21416/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21417  line = \$ 0
21418  split(line, arg, " ")
21419  if (arg[1] == "#") {
21420    defundef = arg[2]
21421    mac1 = arg[3]
21422  } else {
21423    defundef = substr(arg[1], 2)
21424    mac1 = arg[2]
21425  }
21426  split(mac1, mac2, "(") #)
21427  macro = mac2[1]
21428  prefix = substr(line, 1, index(line, defundef) - 1)
21429  if (D_is_set[macro]) {
21430    # Preserve the white space surrounding the "#".
21431    print prefix "define", macro P[macro] D[macro]
21432    next
21433  } else {
21434    # Replace #undef with comments.  This is necessary, for example,
21435    # in the case of _POSIX_SOURCE, which is predefined and required
21436    # on some systems where configure will not decide to define it.
21437    if (defundef == "undef") {
21438      print "/*", prefix defundef, macro, "*/"
21439      next
21440    }
21441  }
21442}
21443{ print }
21444_ACAWK
21445_ACEOF
21446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21447  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21448fi # test -n "$CONFIG_HEADERS"
21449
21450
21451eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21452shift
21453for ac_tag
21454do
21455  case $ac_tag in
21456  :[FHLC]) ac_mode=$ac_tag; continue;;
21457  esac
21458  case $ac_mode$ac_tag in
21459  :[FHL]*:*);;
21460  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21461  :[FH]-) ac_tag=-:-;;
21462  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21463  esac
21464  ac_save_IFS=$IFS
21465  IFS=:
21466  set x $ac_tag
21467  IFS=$ac_save_IFS
21468  shift
21469  ac_file=$1
21470  shift
21471
21472  case $ac_mode in
21473  :L) ac_source=$1;;
21474  :[FH])
21475    ac_file_inputs=
21476    for ac_f
21477    do
21478      case $ac_f in
21479      -) ac_f="$ac_tmp/stdin";;
21480      *) # Look for the file first in the build tree, then in the source tree
21481	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21482	 # because $ac_f cannot contain ':'.
21483	 test -f "$ac_f" ||
21484	   case $ac_f in
21485	   [\\/$]*) false;;
21486	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21487	   esac ||
21488	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21489      esac
21490      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21491      as_fn_append ac_file_inputs " '$ac_f'"
21492    done
21493
21494    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21495    # use $as_me), people would be surprised to read:
21496    #    /* config.h.  Generated by config.status.  */
21497    configure_input='Generated from '`
21498	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21499	`' by configure.'
21500    if test x"$ac_file" != x-; then
21501      configure_input="$ac_file.  $configure_input"
21502      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21503printf "%s\n" "$as_me: creating $ac_file" >&6;}
21504    fi
21505    # Neutralize special characters interpreted by sed in replacement strings.
21506    case $configure_input in #(
21507    *\&* | *\|* | *\\* )
21508       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21509       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21510    *) ac_sed_conf_input=$configure_input;;
21511    esac
21512
21513    case $ac_tag in
21514    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21515      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21516    esac
21517    ;;
21518  esac
21519
21520  ac_dir=`$as_dirname -- "$ac_file" ||
21521$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21522	 X"$ac_file" : 'X\(//\)[^/]' \| \
21523	 X"$ac_file" : 'X\(//\)$' \| \
21524	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21525printf "%s\n" X"$ac_file" |
21526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21527	    s//\1/
21528	    q
21529	  }
21530	  /^X\(\/\/\)[^/].*/{
21531	    s//\1/
21532	    q
21533	  }
21534	  /^X\(\/\/\)$/{
21535	    s//\1/
21536	    q
21537	  }
21538	  /^X\(\/\).*/{
21539	    s//\1/
21540	    q
21541	  }
21542	  s/.*/./; q'`
21543  as_dir="$ac_dir"; as_fn_mkdir_p
21544  ac_builddir=.
21545
21546case "$ac_dir" in
21547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21548*)
21549  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21550  # A ".." for each directory in $ac_dir_suffix.
21551  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21552  case $ac_top_builddir_sub in
21553  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21554  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21555  esac ;;
21556esac
21557ac_abs_top_builddir=$ac_pwd
21558ac_abs_builddir=$ac_pwd$ac_dir_suffix
21559# for backward compatibility:
21560ac_top_builddir=$ac_top_build_prefix
21561
21562case $srcdir in
21563  .)  # We are building in place.
21564    ac_srcdir=.
21565    ac_top_srcdir=$ac_top_builddir_sub
21566    ac_abs_top_srcdir=$ac_pwd ;;
21567  [\\/]* | ?:[\\/]* )  # Absolute name.
21568    ac_srcdir=$srcdir$ac_dir_suffix;
21569    ac_top_srcdir=$srcdir
21570    ac_abs_top_srcdir=$srcdir ;;
21571  *) # Relative name.
21572    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21573    ac_top_srcdir=$ac_top_build_prefix$srcdir
21574    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21575esac
21576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21577
21578
21579  case $ac_mode in
21580  :F)
21581  #
21582  # CONFIG_FILE
21583  #
21584
21585  case $INSTALL in
21586  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21587  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21588  esac
21589  ac_MKDIR_P=$MKDIR_P
21590  case $MKDIR_P in
21591  [\\/$]* | ?:[\\/]* ) ;;
21592  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21593  esac
21594_ACEOF
21595
21596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597# If the template does not know about datarootdir, expand it.
21598# FIXME: This hack should be removed a few years after 2.60.
21599ac_datarootdir_hack=; ac_datarootdir_seen=
21600ac_sed_dataroot='
21601/datarootdir/ {
21602  p
21603  q
21604}
21605/@datadir@/p
21606/@docdir@/p
21607/@infodir@/p
21608/@localedir@/p
21609/@mandir@/p'
21610case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21611*datarootdir*) ac_datarootdir_seen=yes;;
21612*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21614printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21615_ACEOF
21616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21617  ac_datarootdir_hack='
21618  s&@datadir@&$datadir&g
21619  s&@docdir@&$docdir&g
21620  s&@infodir@&$infodir&g
21621  s&@localedir@&$localedir&g
21622  s&@mandir@&$mandir&g
21623  s&\\\${datarootdir}&$datarootdir&g' ;;
21624esac
21625_ACEOF
21626
21627# Neutralize VPATH when '$srcdir' = '.'.
21628# Shell code in configure.ac might set extrasub.
21629# FIXME: do we really want to maintain this feature?
21630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21631ac_sed_extra="$ac_vpsub
21632$extrasub
21633_ACEOF
21634cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21635:t
21636/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21637s|@configure_input@|$ac_sed_conf_input|;t t
21638s&@top_builddir@&$ac_top_builddir_sub&;t t
21639s&@top_build_prefix@&$ac_top_build_prefix&;t t
21640s&@srcdir@&$ac_srcdir&;t t
21641s&@abs_srcdir@&$ac_abs_srcdir&;t t
21642s&@top_srcdir@&$ac_top_srcdir&;t t
21643s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21644s&@builddir@&$ac_builddir&;t t
21645s&@abs_builddir@&$ac_abs_builddir&;t t
21646s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21647s&@INSTALL@&$ac_INSTALL&;t t
21648s&@MKDIR_P@&$ac_MKDIR_P&;t t
21649$ac_datarootdir_hack
21650"
21651eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21652  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21653
21654test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21655  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21656  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21657      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21659which seems to be undefined.  Please make sure it is defined" >&5
21660printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21661which seems to be undefined.  Please make sure it is defined" >&2;}
21662
21663  rm -f "$ac_tmp/stdin"
21664  case $ac_file in
21665  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21666  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21667  esac \
21668  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21669 ;;
21670  :H)
21671  #
21672  # CONFIG_HEADER
21673  #
21674  if test x"$ac_file" != x-; then
21675    {
21676      printf "%s\n" "/* $configure_input  */" >&1 \
21677      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21678    } >"$ac_tmp/config.h" \
21679      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21680    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21681      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21682printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21683    else
21684      rm -f "$ac_file"
21685      mv "$ac_tmp/config.h" "$ac_file" \
21686	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21687    fi
21688  else
21689    printf "%s\n" "/* $configure_input  */" >&1 \
21690      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21691      || as_fn_error $? "could not create -" "$LINENO" 5
21692  fi
21693# Compute "$ac_file"'s index in $config_headers.
21694_am_arg="$ac_file"
21695_am_stamp_count=1
21696for _am_header in $config_headers :; do
21697  case $_am_header in
21698    $_am_arg | $_am_arg:* )
21699      break ;;
21700    * )
21701      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21702  esac
21703done
21704echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21705$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21706	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21707	 X"$_am_arg" : 'X\(//\)$' \| \
21708	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21709printf "%s\n" X"$_am_arg" |
21710    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21711	    s//\1/
21712	    q
21713	  }
21714	  /^X\(\/\/\)[^/].*/{
21715	    s//\1/
21716	    q
21717	  }
21718	  /^X\(\/\/\)$/{
21719	    s//\1/
21720	    q
21721	  }
21722	  /^X\(\/\).*/{
21723	    s//\1/
21724	    q
21725	  }
21726	  s/.*/./; q'`/stamp-h$_am_stamp_count
21727 ;;
21728
21729  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21730printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21731 ;;
21732  esac
21733
21734
21735  case $ac_file$ac_mode in
21736    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21737  # Older Autoconf quotes --file arguments for eval, but not when files
21738  # are listed without --file.  Let's play safe and only enable the eval
21739  # if we detect the quoting.
21740  # TODO: see whether this extra hack can be removed once we start
21741  # requiring Autoconf 2.70 or later.
21742  case $CONFIG_FILES in #(
21743  *\'*) :
21744    eval set x "$CONFIG_FILES" ;; #(
21745  *) :
21746    set x $CONFIG_FILES ;; #(
21747  *) :
21748     ;;
21749esac
21750  shift
21751  # Used to flag and report bootstrapping failures.
21752  am_rc=0
21753  for am_mf
21754  do
21755    # Strip MF so we end up with the name of the file.
21756    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21757    # Check whether this is an Automake generated Makefile which includes
21758    # dependency-tracking related rules and includes.
21759    # Grep'ing the whole file directly is not great: AIX grep has a line
21760    # limit of 2048, but all sed's we know have understand at least 4000.
21761    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21762      || continue
21763    am_dirpart=`$as_dirname -- "$am_mf" ||
21764$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21765	 X"$am_mf" : 'X\(//\)[^/]' \| \
21766	 X"$am_mf" : 'X\(//\)$' \| \
21767	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21768printf "%s\n" X"$am_mf" |
21769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21770	    s//\1/
21771	    q
21772	  }
21773	  /^X\(\/\/\)[^/].*/{
21774	    s//\1/
21775	    q
21776	  }
21777	  /^X\(\/\/\)$/{
21778	    s//\1/
21779	    q
21780	  }
21781	  /^X\(\/\).*/{
21782	    s//\1/
21783	    q
21784	  }
21785	  s/.*/./; q'`
21786    am_filepart=`$as_basename -- "$am_mf" ||
21787$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21788	 X"$am_mf" : 'X\(//\)$' \| \
21789	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21790printf "%s\n" X/"$am_mf" |
21791    sed '/^.*\/\([^/][^/]*\)\/*$/{
21792	    s//\1/
21793	    q
21794	  }
21795	  /^X\/\(\/\/\)$/{
21796	    s//\1/
21797	    q
21798	  }
21799	  /^X\/\(\/\).*/{
21800	    s//\1/
21801	    q
21802	  }
21803	  s/.*/./; q'`
21804    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21805      && sed -e '/# am--include-marker/d' "$am_filepart" \
21806        | $MAKE -f - am--depfiles" >&5
21807   (cd "$am_dirpart" \
21808      && sed -e '/# am--include-marker/d' "$am_filepart" \
21809        | $MAKE -f - am--depfiles) >&5 2>&5
21810   ac_status=$?
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); } || am_rc=$?
21813  done
21814  if test $am_rc -ne 0; then
21815    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21816printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21817as_fn_error $? "Something went wrong bootstrapping makefile fragments
21818    for automatic dependency tracking.  If GNU make was not used, consider
21819    re-running the configure script with MAKE=\"gmake\" (or whatever is
21820    necessary).  You can also try re-running configure with the
21821    '--disable-dependency-tracking' option to at least be able to build
21822    the package (albeit without support for automatic dependency tracking).
21823See 'config.log' for more details" "$LINENO" 5; }
21824  fi
21825  { am_dirpart=; unset am_dirpart;}
21826  { am_filepart=; unset am_filepart;}
21827  { am_mf=; unset am_mf;}
21828  { am_rc=; unset am_rc;}
21829  rm -f conftest-deps.mk
21830}
21831 ;;
21832    "libtool":C)
21833
21834    # See if we are running on zsh, and set the options that allow our
21835    # commands through without removal of \ escapes.
21836    if test -n "${ZSH_VERSION+set}"; then
21837      setopt NO_GLOB_SUBST
21838    fi
21839
21840    cfgfile=${ofile}T
21841    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21842    $RM "$cfgfile"
21843
21844    cat <<_LT_EOF >> "$cfgfile"
21845#! $SHELL
21846# Generated automatically by $as_me ($PACKAGE) $VERSION
21847# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21848# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21849
21850# Provide generalized library-building support services.
21851# Written by Gordon Matzigkeit, 1996
21852
21853# Copyright (C) 2014 Free Software Foundation, Inc.
21854# This is free software; see the source for copying conditions.  There is NO
21855# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21856
21857# GNU Libtool is free software; you can redistribute it and/or modify
21858# it under the terms of the GNU General Public License as published by
21859# the Free Software Foundation; either version 2 of of the License, or
21860# (at your option) any later version.
21861#
21862# As a special exception to the GNU General Public License, if you
21863# distribute this file as part of a program or library that is built
21864# using GNU Libtool, you may include this file under the  same
21865# distribution terms that you use for the rest of that program.
21866#
21867# GNU Libtool is distributed in the hope that it will be useful, but
21868# WITHOUT ANY WARRANTY; without even the implied warranty of
21869# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21870# GNU General Public License for more details.
21871#
21872# You should have received a copy of the GNU General Public License
21873# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21874
21875
21876# The names of the tagged configurations supported by this script.
21877available_tags=''
21878
21879# Configured defaults for sys_lib_dlsearch_path munging.
21880: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21881
21882# ### BEGIN LIBTOOL CONFIG
21883
21884# Which release of libtool.m4 was used?
21885macro_version=$macro_version
21886macro_revision=$macro_revision
21887
21888# Whether or not to build shared libraries.
21889build_libtool_libs=$enable_shared
21890
21891# Whether or not to build static libraries.
21892build_old_libs=$enable_static
21893
21894# What type of objects to build.
21895pic_mode=$pic_mode
21896
21897# Whether or not to optimize for fast installation.
21898fast_install=$enable_fast_install
21899
21900# Shared archive member basename,for filename based shared library versioning on AIX.
21901shared_archive_member_spec=$shared_archive_member_spec
21902
21903# Shell to use when invoking shell scripts.
21904SHELL=$lt_SHELL
21905
21906# An echo program that protects backslashes.
21907ECHO=$lt_ECHO
21908
21909# The PATH separator for the build system.
21910PATH_SEPARATOR=$lt_PATH_SEPARATOR
21911
21912# The host system.
21913host_alias=$host_alias
21914host=$host
21915host_os=$host_os
21916
21917# The build system.
21918build_alias=$build_alias
21919build=$build
21920build_os=$build_os
21921
21922# A sed program that does not truncate output.
21923SED=$lt_SED
21924
21925# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21926Xsed="\$SED -e 1s/^X//"
21927
21928# A grep program that handles long lines.
21929GREP=$lt_GREP
21930
21931# An ERE matcher.
21932EGREP=$lt_EGREP
21933
21934# A literal string matcher.
21935FGREP=$lt_FGREP
21936
21937# A BSD- or MS-compatible name lister.
21938NM=$lt_NM
21939
21940# Whether we need soft or hard links.
21941LN_S=$lt_LN_S
21942
21943# What is the maximum length of a command?
21944max_cmd_len=$max_cmd_len
21945
21946# Object file suffix (normally "o").
21947objext=$ac_objext
21948
21949# Executable file suffix (normally "").
21950exeext=$exeext
21951
21952# whether the shell understands "unset".
21953lt_unset=$lt_unset
21954
21955# turn spaces into newlines.
21956SP2NL=$lt_lt_SP2NL
21957
21958# turn newlines into spaces.
21959NL2SP=$lt_lt_NL2SP
21960
21961# convert \$build file names to \$host format.
21962to_host_file_cmd=$lt_cv_to_host_file_cmd
21963
21964# convert \$build files to toolchain format.
21965to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21966
21967# A file(cmd) program that detects file types.
21968FILECMD=$lt_FILECMD
21969
21970# An object symbol dumper.
21971OBJDUMP=$lt_OBJDUMP
21972
21973# Method to check whether dependent libraries are shared objects.
21974deplibs_check_method=$lt_deplibs_check_method
21975
21976# Command to use when deplibs_check_method = "file_magic".
21977file_magic_cmd=$lt_file_magic_cmd
21978
21979# How to find potential files when deplibs_check_method = "file_magic".
21980file_magic_glob=$lt_file_magic_glob
21981
21982# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21983want_nocaseglob=$lt_want_nocaseglob
21984
21985# DLL creation program.
21986DLLTOOL=$lt_DLLTOOL
21987
21988# Command to associate shared and link libraries.
21989sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21990
21991# The archiver.
21992AR=$lt_AR
21993
21994# Flags to create an archive (by configure).
21995lt_ar_flags=$lt_ar_flags
21996
21997# Flags to create an archive.
21998AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21999
22000# How to feed a file listing to the archiver.
22001archiver_list_spec=$lt_archiver_list_spec
22002
22003# A symbol stripping program.
22004STRIP=$lt_STRIP
22005
22006# Commands used to install an old-style archive.
22007RANLIB=$lt_RANLIB
22008old_postinstall_cmds=$lt_old_postinstall_cmds
22009old_postuninstall_cmds=$lt_old_postuninstall_cmds
22010
22011# Whether to use a lock for old archive extraction.
22012lock_old_archive_extraction=$lock_old_archive_extraction
22013
22014# A C compiler.
22015LTCC=$lt_CC
22016
22017# LTCC compiler flags.
22018LTCFLAGS=$lt_CFLAGS
22019
22020# Take the output of nm and produce a listing of raw symbols and C names.
22021global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22022
22023# Transform the output of nm in a proper C declaration.
22024global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22025
22026# Transform the output of nm into a list of symbols to manually relocate.
22027global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22028
22029# Transform the output of nm in a C name address pair.
22030global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22031
22032# Transform the output of nm in a C name address pair when lib prefix is needed.
22033global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22034
22035# The name lister interface.
22036nm_interface=$lt_lt_cv_nm_interface
22037
22038# Specify filename containing input files for \$NM.
22039nm_file_list_spec=$lt_nm_file_list_spec
22040
22041# The root where to search for dependent libraries,and where our libraries should be installed.
22042lt_sysroot=$lt_sysroot
22043
22044# Command to truncate a binary pipe.
22045lt_truncate_bin=$lt_lt_cv_truncate_bin
22046
22047# The name of the directory that contains temporary libtool files.
22048objdir=$objdir
22049
22050# Used to examine libraries when file_magic_cmd begins with "file".
22051MAGIC_CMD=$MAGIC_CMD
22052
22053# Must we lock files when doing compilation?
22054need_locks=$lt_need_locks
22055
22056# Manifest tool.
22057MANIFEST_TOOL=$lt_MANIFEST_TOOL
22058
22059# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22060DSYMUTIL=$lt_DSYMUTIL
22061
22062# Tool to change global to local symbols on Mac OS X.
22063NMEDIT=$lt_NMEDIT
22064
22065# Tool to manipulate fat objects and archives on Mac OS X.
22066LIPO=$lt_LIPO
22067
22068# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22069OTOOL=$lt_OTOOL
22070
22071# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22072OTOOL64=$lt_OTOOL64
22073
22074# Old archive suffix (normally "a").
22075libext=$libext
22076
22077# Shared library suffix (normally ".so").
22078shrext_cmds=$lt_shrext_cmds
22079
22080# The commands to extract the exported symbol list from a shared archive.
22081extract_expsyms_cmds=$lt_extract_expsyms_cmds
22082
22083# Variables whose values should be saved in libtool wrapper scripts and
22084# restored at link time.
22085variables_saved_for_relink=$lt_variables_saved_for_relink
22086
22087# Do we need the "lib" prefix for modules?
22088need_lib_prefix=$need_lib_prefix
22089
22090# Do we need a version for libraries?
22091need_version=$need_version
22092
22093# Library versioning type.
22094version_type=$version_type
22095
22096# Shared library runtime path variable.
22097runpath_var=$runpath_var
22098
22099# Shared library path variable.
22100shlibpath_var=$shlibpath_var
22101
22102# Is shlibpath searched before the hard-coded library search path?
22103shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22104
22105# Format of library name prefix.
22106libname_spec=$lt_libname_spec
22107
22108# List of archive names.  First name is the real one, the rest are links.
22109# The last name is the one that the linker finds with -lNAME
22110library_names_spec=$lt_library_names_spec
22111
22112# The coded name of the library, if different from the real name.
22113soname_spec=$lt_soname_spec
22114
22115# Permission mode override for installation of shared libraries.
22116install_override_mode=$lt_install_override_mode
22117
22118# Command to use after installation of a shared archive.
22119postinstall_cmds=$lt_postinstall_cmds
22120
22121# Command to use after uninstallation of a shared archive.
22122postuninstall_cmds=$lt_postuninstall_cmds
22123
22124# Commands used to finish a libtool library installation in a directory.
22125finish_cmds=$lt_finish_cmds
22126
22127# As "finish_cmds", except a single script fragment to be evaled but
22128# not shown.
22129finish_eval=$lt_finish_eval
22130
22131# Whether we should hardcode library paths into libraries.
22132hardcode_into_libs=$hardcode_into_libs
22133
22134# Compile-time system search path for libraries.
22135sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22136
22137# Detected run-time system search path for libraries.
22138sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22139
22140# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22141configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22142
22143# Whether dlopen is supported.
22144dlopen_support=$enable_dlopen
22145
22146# Whether dlopen of programs is supported.
22147dlopen_self=$enable_dlopen_self
22148
22149# Whether dlopen of statically linked programs is supported.
22150dlopen_self_static=$enable_dlopen_self_static
22151
22152# Commands to strip libraries.
22153old_striplib=$lt_old_striplib
22154striplib=$lt_striplib
22155
22156
22157# The linker used to build libraries.
22158LD=$lt_LD
22159
22160# How to create reloadable object files.
22161reload_flag=$lt_reload_flag
22162reload_cmds=$lt_reload_cmds
22163
22164# Commands used to build an old-style archive.
22165old_archive_cmds=$lt_old_archive_cmds
22166
22167# A language specific compiler.
22168CC=$lt_compiler
22169
22170# Is the compiler the GNU compiler?
22171with_gcc=$GCC
22172
22173# Compiler flag to turn off builtin functions.
22174no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22175
22176# Additional compiler flags for building library objects.
22177pic_flag=$lt_lt_prog_compiler_pic
22178
22179# How to pass a linker flag through the compiler.
22180wl=$lt_lt_prog_compiler_wl
22181
22182# Compiler flag to prevent dynamic linking.
22183link_static_flag=$lt_lt_prog_compiler_static
22184
22185# Does compiler simultaneously support -c and -o options?
22186compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22187
22188# Whether or not to add -lc for building shared libraries.
22189build_libtool_need_lc=$archive_cmds_need_lc
22190
22191# Whether or not to disallow shared libs when runtime libs are static.
22192allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22193
22194# Compiler flag to allow reflexive dlopens.
22195export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22196
22197# Compiler flag to generate shared objects directly from archives.
22198whole_archive_flag_spec=$lt_whole_archive_flag_spec
22199
22200# Whether the compiler copes with passing no objects directly.
22201compiler_needs_object=$lt_compiler_needs_object
22202
22203# Create an old-style archive from a shared archive.
22204old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22205
22206# Create a temporary old-style archive to link instead of a shared archive.
22207old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22208
22209# Commands used to build a shared archive.
22210archive_cmds=$lt_archive_cmds
22211archive_expsym_cmds=$lt_archive_expsym_cmds
22212
22213# Commands used to build a loadable module if different from building
22214# a shared archive.
22215module_cmds=$lt_module_cmds
22216module_expsym_cmds=$lt_module_expsym_cmds
22217
22218# Whether we are building with GNU ld or not.
22219with_gnu_ld=$lt_with_gnu_ld
22220
22221# Flag that allows shared libraries with undefined symbols to be built.
22222allow_undefined_flag=$lt_allow_undefined_flag
22223
22224# Flag that enforces no undefined symbols.
22225no_undefined_flag=$lt_no_undefined_flag
22226
22227# Flag to hardcode \$libdir into a binary during linking.
22228# This must work even if \$libdir does not exist
22229hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22230
22231# Whether we need a single "-rpath" flag with a separated argument.
22232hardcode_libdir_separator=$lt_hardcode_libdir_separator
22233
22234# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22235# DIR into the resulting binary.
22236hardcode_direct=$hardcode_direct
22237
22238# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22239# DIR into the resulting binary and the resulting library dependency is
22240# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22241# library is relocated.
22242hardcode_direct_absolute=$hardcode_direct_absolute
22243
22244# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22245# into the resulting binary.
22246hardcode_minus_L=$hardcode_minus_L
22247
22248# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22249# into the resulting binary.
22250hardcode_shlibpath_var=$hardcode_shlibpath_var
22251
22252# Set to "yes" if building a shared library automatically hardcodes DIR
22253# into the library and all subsequent libraries and executables linked
22254# against it.
22255hardcode_automatic=$hardcode_automatic
22256
22257# Set to yes if linker adds runtime paths of dependent libraries
22258# to runtime path list.
22259inherit_rpath=$inherit_rpath
22260
22261# Whether libtool must link a program against all its dependency libraries.
22262link_all_deplibs=$link_all_deplibs
22263
22264# Set to "yes" if exported symbols are required.
22265always_export_symbols=$always_export_symbols
22266
22267# The commands to list exported symbols.
22268export_symbols_cmds=$lt_export_symbols_cmds
22269
22270# Symbols that should not be listed in the preloaded symbols.
22271exclude_expsyms=$lt_exclude_expsyms
22272
22273# Symbols that must always be exported.
22274include_expsyms=$lt_include_expsyms
22275
22276# Commands necessary for linking programs (against libraries) with templates.
22277prelink_cmds=$lt_prelink_cmds
22278
22279# Commands necessary for finishing linking programs.
22280postlink_cmds=$lt_postlink_cmds
22281
22282# Specify filename containing input files.
22283file_list_spec=$lt_file_list_spec
22284
22285# How to hardcode a shared library path into an executable.
22286hardcode_action=$hardcode_action
22287
22288# ### END LIBTOOL CONFIG
22289
22290_LT_EOF
22291
22292    cat <<'_LT_EOF' >> "$cfgfile"
22293
22294# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22295
22296# func_munge_path_list VARIABLE PATH
22297# -----------------------------------
22298# VARIABLE is name of variable containing _space_ separated list of
22299# directories to be munged by the contents of PATH, which is string
22300# having a format:
22301# "DIR[:DIR]:"
22302#       string "DIR[ DIR]" will be prepended to VARIABLE
22303# ":DIR[:DIR]"
22304#       string "DIR[ DIR]" will be appended to VARIABLE
22305# "DIRP[:DIRP]::[DIRA:]DIRA"
22306#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22307#       "DIRA[ DIRA]" will be appended to VARIABLE
22308# "DIR[:DIR]"
22309#       VARIABLE will be replaced by "DIR[ DIR]"
22310func_munge_path_list ()
22311{
22312    case x$2 in
22313    x)
22314        ;;
22315    *:)
22316        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22317        ;;
22318    x:*)
22319        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22320        ;;
22321    *::*)
22322        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22323        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22324        ;;
22325    *)
22326        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22327        ;;
22328    esac
22329}
22330
22331
22332# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22333func_cc_basename ()
22334{
22335    for cc_temp in $*""; do
22336      case $cc_temp in
22337        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22338        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22339        \-*) ;;
22340        *) break;;
22341      esac
22342    done
22343    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22344}
22345
22346
22347# ### END FUNCTIONS SHARED WITH CONFIGURE
22348
22349_LT_EOF
22350
22351  case $host_os in
22352  aix3*)
22353    cat <<\_LT_EOF >> "$cfgfile"
22354# AIX sometimes has problems with the GCC collect2 program.  For some
22355# reason, if we set the COLLECT_NAMES environment variable, the problems
22356# vanish in a puff of smoke.
22357if test set != "${COLLECT_NAMES+set}"; then
22358  COLLECT_NAMES=
22359  export COLLECT_NAMES
22360fi
22361_LT_EOF
22362    ;;
22363  esac
22364
22365
22366
22367ltmain=$ac_aux_dir/ltmain.sh
22368
22369
22370  # We use sed instead of cat because bash on DJGPP gets confused if
22371  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22372  # text mode, it properly converts lines to CR/LF.  This bash problem
22373  # is reportedly fixed, but why not run on old versions too?
22374  $SED '$q' "$ltmain" >> "$cfgfile" \
22375     || (rm -f "$cfgfile"; exit 1)
22376
22377   mv -f "$cfgfile" "$ofile" ||
22378    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22379  chmod +x "$ofile"
22380
22381 ;;
22382
22383  esac
22384done # for ac_tag
22385
22386
22387as_fn_exit 0
22388_ACEOF
22389ac_clean_files=$ac_clean_files_save
22390
22391test $ac_write_fail = 0 ||
22392  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22393
22394
22395# configure is writing to config.log, and then calls config.status.
22396# config.status does its own redirection, appending to config.log.
22397# Unfortunately, on DOS this fails, as config.log is still kept open
22398# by configure, so config.status won't be able to write to it; its
22399# output is simply discarded.  So we exec the FD to /dev/null,
22400# effectively closing config.log, so it can be properly (re)opened and
22401# appended to by config.status.  When coming back to configure, we
22402# need to make the FD available again.
22403if test "$no_create" != yes; then
22404  ac_cs_success=:
22405  ac_config_status_args=
22406  test "$silent" = yes &&
22407    ac_config_status_args="$ac_config_status_args --quiet"
22408  exec 5>/dev/null
22409  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22410  exec 5>>config.log
22411  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22412  # would make configure fail if this is the last instruction.
22413  $ac_cs_success || as_fn_exit 1
22414fi
22415if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22417printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22418fi
22419
22420
22421