1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libxshmfence 1.3.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/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/libxshmfence/-/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='libxshmfence'
617PACKAGE_TARNAME='libxshmfence'
618PACKAGE_VERSION='1.3.3'
619PACKAGE_STRING='libxshmfence 1.3.3'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/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=
656enable_year2038=no
657ac_subst_vars='am__EXEEXT_FALSE
658am__EXEEXT_TRUE
659LTLIBOBJS
660LIBOBJS
661XPROTO_LIBS
662XPROTO_CFLAGS
663PTHREAD_FALSE
664PTHREAD_TRUE
665FUTEX_FALSE
666FUTEX_TRUE
667PTHREAD_LIBS
668LINT_FALSE
669LINT_TRUE
670LINT_FLAGS
671LINT
672MAN_SUBSTS
673XORG_MAN_PAGE
674ADMIN_MAN_DIR
675DRIVER_MAN_DIR
676MISC_MAN_DIR
677FILE_MAN_DIR
678LIB_MAN_DIR
679APP_MAN_DIR
680ADMIN_MAN_SUFFIX
681DRIVER_MAN_SUFFIX
682MISC_MAN_SUFFIX
683FILE_MAN_SUFFIX
684LIB_MAN_SUFFIX
685APP_MAN_SUFFIX
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694LT_SYS_LIBRARY_PATH
695OTOOL64
696OTOOL
697LIPO
698NMEDIT
699DSYMUTIL
700MANIFEST_TOOL
701RANLIB
702ac_ct_AR
703AR
704DLLTOOL
705OBJDUMP
706FILECMD
707LN_S
708NM
709ac_ct_DUMPBIN
710DUMPBIN
711LD
712FGREP
713EGREP
714GREP
715SED
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
724LIBTOOL
725am__xargs_n
726am__rm_f_notfound
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731CSCOPE
732ETAGS
733CTAGS
734am__fastdepCC_FALSE
735am__fastdepCC_TRUE
736CCDEPMODE
737am__nodep
738AMDEPBACKSLASH
739AMDEP_FALSE
740AMDEP_TRUE
741am__include
742DEPDIR
743am__untar
744am__tar
745AMTAR
746am__leading_dot
747SET_MAKE
748AWK
749mkdir_p
750MKDIR_P
751INSTALL_STRIP_PROGRAM
752STRIP
753install_sh
754MAKEINFO
755AUTOHEADER
756AUTOMAKE
757AUTOCONF
758ACLOCAL
759VERSION
760PACKAGE
761CYGPATH_W
762am__isrc
763INSTALL_DATA
764INSTALL_SCRIPT
765INSTALL_PROGRAM
766OBJEXT
767EXEEXT
768ac_ct_CC
769CPPFLAGS
770LDFLAGS
771CFLAGS
772CC
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792runstatedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL
812am__quote'
813ac_subst_files=''
814ac_user_opts='
815enable_option_checking
816enable_dependency_tracking
817enable_silent_rules
818enable_shared
819enable_static
820enable_pic
821with_pic
822enable_fast_install
823enable_aix_soname
824with_aix_soname
825with_gnu_ld
826with_sysroot
827enable_libtool_lock
828enable_selective_werror
829enable_strict_compilation
830with_lint
831enable_largefile
832enable_futex
833enable_visibility
834with_shared_memory_dir
835enable_year2038
836'
837      ac_precious_vars='build_alias
838host_alias
839target_alias
840CC
841CFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845LT_SYS_LIBRARY_PATH
846PKG_CONFIG
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
849LINT
850LINT_FLAGS
851XPROTO_CFLAGS
852XPROTO_LIBS'
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858ac_unrecognized_opts=
859ac_unrecognized_sep=
860# The variables have the same names as the options, with
861# dashes changed to underlines.
862cache_file=/dev/null
863exec_prefix=NONE
864no_create=
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
873verbose=
874x_includes=NONE
875x_libraries=NONE
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
882# (The list follows the same order as the GNU Coding Standards.)
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
891runstatedir='${localstatedir}/run'
892includedir='${prefix}/include'
893oldincludedir='/usr/include'
894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895infodir='${datarootdir}/info'
896htmldir='${docdir}'
897dvidir='${docdir}'
898pdfdir='${docdir}'
899psdir='${docdir}'
900libdir='${exec_prefix}/lib'
901localedir='${datarootdir}/locale'
902mandir='${datarootdir}/man'
903
904ac_prev=
905ac_dashdash=
906for ac_option
907do
908  # If the previous option needs an argument, assign it.
909  if test -n "$ac_prev"; then
910    eval $ac_prev=\$ac_option
911    ac_prev=
912    continue
913  fi
914
915  case $ac_option in
916  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917  *=)   ac_optarg= ;;
918  *)    ac_optarg=yes ;;
919  esac
920
921  case $ac_dashdash$ac_option in
922  --)
923    ac_dashdash=yes ;;
924
925  -bindir | --bindir | --bindi | --bind | --bin | --bi)
926    ac_prev=bindir ;;
927  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928    bindir=$ac_optarg ;;
929
930  -build | --build | --buil | --bui | --bu)
931    ac_prev=build_alias ;;
932  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933    build_alias=$ac_optarg ;;
934
935  -cache-file | --cache-file | --cache-fil | --cache-fi \
936  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937    ac_prev=cache_file ;;
938  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940    cache_file=$ac_optarg ;;
941
942  --config-cache | -C)
943    cache_file=config.cache ;;
944
945  -datadir | --datadir | --datadi | --datad)
946    ac_prev=datadir ;;
947  -datadir=* | --datadir=* | --datadi=* | --datad=*)
948    datadir=$ac_optarg ;;
949
950  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951  | --dataroo | --dataro | --datar)
952    ac_prev=datarootdir ;;
953  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955    datarootdir=$ac_optarg ;;
956
957  -disable-* | --disable-*)
958    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959    # Reject names that are not valid shell variable names.
960    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961      as_fn_error $? "invalid feature name: '$ac_useropt'"
962    ac_useropt_orig=$ac_useropt
963    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
964    case $ac_user_opts in
965      *"
966"enable_$ac_useropt"
967"*) ;;
968      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969	 ac_unrecognized_sep=', ';;
970    esac
971    eval enable_$ac_useropt=no ;;
972
973  -docdir | --docdir | --docdi | --doc | --do)
974    ac_prev=docdir ;;
975  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976    docdir=$ac_optarg ;;
977
978  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979    ac_prev=dvidir ;;
980  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981    dvidir=$ac_optarg ;;
982
983  -enable-* | --enable-*)
984    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985    # Reject names that are not valid shell variable names.
986    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987      as_fn_error $? "invalid feature name: '$ac_useropt'"
988    ac_useropt_orig=$ac_useropt
989    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
990    case $ac_user_opts in
991      *"
992"enable_$ac_useropt"
993"*) ;;
994      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995	 ac_unrecognized_sep=', ';;
996    esac
997    eval enable_$ac_useropt=\$ac_optarg ;;
998
999  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001  | --exec | --exe | --ex)
1002    ac_prev=exec_prefix ;;
1003  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005  | --exec=* | --exe=* | --ex=*)
1006    exec_prefix=$ac_optarg ;;
1007
1008  -gas | --gas | --ga | --g)
1009    # Obsolete; use --with-gas.
1010    with_gas=yes ;;
1011
1012  -help | --help | --hel | --he | -h)
1013    ac_init_help=long ;;
1014  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015    ac_init_help=recursive ;;
1016  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017    ac_init_help=short ;;
1018
1019  -host | --host | --hos | --ho)
1020    ac_prev=host_alias ;;
1021  -host=* | --host=* | --hos=* | --ho=*)
1022    host_alias=$ac_optarg ;;
1023
1024  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025    ac_prev=htmldir ;;
1026  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027  | --ht=*)
1028    htmldir=$ac_optarg ;;
1029
1030  -includedir | --includedir | --includedi | --included | --include \
1031  | --includ | --inclu | --incl | --inc)
1032    ac_prev=includedir ;;
1033  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034  | --includ=* | --inclu=* | --incl=* | --inc=*)
1035    includedir=$ac_optarg ;;
1036
1037  -infodir | --infodir | --infodi | --infod | --info | --inf)
1038    ac_prev=infodir ;;
1039  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040    infodir=$ac_optarg ;;
1041
1042  -libdir | --libdir | --libdi | --libd)
1043    ac_prev=libdir ;;
1044  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045    libdir=$ac_optarg ;;
1046
1047  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048  | --libexe | --libex | --libe)
1049    ac_prev=libexecdir ;;
1050  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051  | --libexe=* | --libex=* | --libe=*)
1052    libexecdir=$ac_optarg ;;
1053
1054  -localedir | --localedir | --localedi | --localed | --locale)
1055    ac_prev=localedir ;;
1056  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057    localedir=$ac_optarg ;;
1058
1059  -localstatedir | --localstatedir | --localstatedi | --localstated \
1060  | --localstate | --localstat | --localsta | --localst | --locals)
1061    ac_prev=localstatedir ;;
1062  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064    localstatedir=$ac_optarg ;;
1065
1066  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067    ac_prev=mandir ;;
1068  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069    mandir=$ac_optarg ;;
1070
1071  -nfp | --nfp | --nf)
1072    # Obsolete; use --without-fp.
1073    with_fp=no ;;
1074
1075  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076  | --no-cr | --no-c | -n)
1077    no_create=yes ;;
1078
1079  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081    no_recursion=yes ;;
1082
1083  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085  | --oldin | --oldi | --old | --ol | --o)
1086    ac_prev=oldincludedir ;;
1087  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090    oldincludedir=$ac_optarg ;;
1091
1092  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093    ac_prev=prefix ;;
1094  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095    prefix=$ac_optarg ;;
1096
1097  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098  | --program-pre | --program-pr | --program-p)
1099    ac_prev=program_prefix ;;
1100  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102    program_prefix=$ac_optarg ;;
1103
1104  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105  | --program-suf | --program-su | --program-s)
1106    ac_prev=program_suffix ;;
1107  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109    program_suffix=$ac_optarg ;;
1110
1111  -program-transform-name | --program-transform-name \
1112  | --program-transform-nam | --program-transform-na \
1113  | --program-transform-n | --program-transform- \
1114  | --program-transform | --program-transfor \
1115  | --program-transfo | --program-transf \
1116  | --program-trans | --program-tran \
1117  | --progr-tra | --program-tr | --program-t)
1118    ac_prev=program_transform_name ;;
1119  -program-transform-name=* | --program-transform-name=* \
1120  | --program-transform-nam=* | --program-transform-na=* \
1121  | --program-transform-n=* | --program-transform-=* \
1122  | --program-transform=* | --program-transfor=* \
1123  | --program-transfo=* | --program-transf=* \
1124  | --program-trans=* | --program-tran=* \
1125  | --progr-tra=* | --program-tr=* | --program-t=*)
1126    program_transform_name=$ac_optarg ;;
1127
1128  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129    ac_prev=pdfdir ;;
1130  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131    pdfdir=$ac_optarg ;;
1132
1133  -psdir | --psdir | --psdi | --psd | --ps)
1134    ac_prev=psdir ;;
1135  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136    psdir=$ac_optarg ;;
1137
1138  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139  | -silent | --silent | --silen | --sile | --sil)
1140    silent=yes ;;
1141
1142  -runstatedir | --runstatedir | --runstatedi | --runstated \
1143  | --runstate | --runstat | --runsta | --runst | --runs \
1144  | --run | --ru | --r)
1145    ac_prev=runstatedir ;;
1146  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1147  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1148  | --run=* | --ru=* | --r=*)
1149    runstatedir=$ac_optarg ;;
1150
1151  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152    ac_prev=sbindir ;;
1153  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154  | --sbi=* | --sb=*)
1155    sbindir=$ac_optarg ;;
1156
1157  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159  | --sharedst | --shareds | --shared | --share | --shar \
1160  | --sha | --sh)
1161    ac_prev=sharedstatedir ;;
1162  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165  | --sha=* | --sh=*)
1166    sharedstatedir=$ac_optarg ;;
1167
1168  -site | --site | --sit)
1169    ac_prev=site ;;
1170  -site=* | --site=* | --sit=*)
1171    site=$ac_optarg ;;
1172
1173  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174    ac_prev=srcdir ;;
1175  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176    srcdir=$ac_optarg ;;
1177
1178  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179  | --syscon | --sysco | --sysc | --sys | --sy)
1180    ac_prev=sysconfdir ;;
1181  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183    sysconfdir=$ac_optarg ;;
1184
1185  -target | --target | --targe | --targ | --tar | --ta | --t)
1186    ac_prev=target_alias ;;
1187  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188    target_alias=$ac_optarg ;;
1189
1190  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191    verbose=yes ;;
1192
1193  -version | --version | --versio | --versi | --vers | -V)
1194    ac_init_version=: ;;
1195
1196  -with-* | --with-*)
1197    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198    # Reject names that are not valid shell variable names.
1199    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200      as_fn_error $? "invalid package name: '$ac_useropt'"
1201    ac_useropt_orig=$ac_useropt
1202    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203    case $ac_user_opts in
1204      *"
1205"with_$ac_useropt"
1206"*) ;;
1207      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208	 ac_unrecognized_sep=', ';;
1209    esac
1210    eval with_$ac_useropt=\$ac_optarg ;;
1211
1212  -without-* | --without-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: '$ac_useropt'"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=no ;;
1227
1228  --x)
1229    # Obsolete; use --with-x.
1230    with_x=yes ;;
1231
1232  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233  | --x-incl | --x-inc | --x-in | --x-i)
1234    ac_prev=x_includes ;;
1235  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237    x_includes=$ac_optarg ;;
1238
1239  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241    ac_prev=x_libraries ;;
1242  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244    x_libraries=$ac_optarg ;;
1245
1246  -*) as_fn_error $? "unrecognized option: '$ac_option'
1247Try '$0 --help' for more information"
1248    ;;
1249
1250  *=*)
1251    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252    # Reject names that are not valid shell variable names.
1253    case $ac_envvar in #(
1254      '' | [0-9]* | *[!_$as_cr_alnum]* )
1255      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1256    esac
1257    eval $ac_envvar=\$ac_optarg
1258    export $ac_envvar ;;
1259
1260  *)
1261    # FIXME: should be removed in autoconf 3.0.
1262    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1263    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1265    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266    ;;
1267
1268  esac
1269done
1270
1271if test -n "$ac_prev"; then
1272  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273  as_fn_error $? "missing argument to $ac_option"
1274fi
1275
1276if test -n "$ac_unrecognized_opts"; then
1277  case $enable_option_checking in
1278    no) ;;
1279    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281  esac
1282fi
1283
1284# Check all directory arguments for consistency.
1285for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286		datadir sysconfdir sharedstatedir localstatedir includedir \
1287		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288		libdir localedir mandir runstatedir
1289do
1290  eval ac_val=\$$ac_var
1291  # Remove trailing slashes.
1292  case $ac_val in
1293    */ )
1294      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295      eval $ac_var=\$ac_val;;
1296  esac
1297  # Be sure to have absolute directory names.
1298  case $ac_val in
1299    [\\/$]* | ?:[\\/]* )  continue;;
1300    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301  esac
1302  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303done
1304
1305# There might be people who depend on the old broken behavior: '$host'
1306# used to hold the argument of --host etc.
1307# FIXME: To remove some day.
1308build=$build_alias
1309host=$host_alias
1310target=$target_alias
1311
1312# FIXME: To remove some day.
1313if test "x$host_alias" != x; then
1314  if test "x$build_alias" = x; then
1315    cross_compiling=maybe
1316  elif test "x$build_alias" != "x$host_alias"; then
1317    cross_compiling=yes
1318  fi
1319fi
1320
1321ac_tool_prefix=
1322test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324test "$silent" = yes && exec 6>/dev/null
1325
1326
1327ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328ac_ls_di=`ls -di .` &&
1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330  as_fn_error $? "working directory cannot be determined"
1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332  as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335# Find the source files, if location was not specified.
1336if test -z "$srcdir"; then
1337  ac_srcdir_defaulted=yes
1338  # Try the directory containing this script, then the parent directory.
1339  ac_confdir=`$as_dirname -- "$as_myself" ||
1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341	 X"$as_myself" : 'X\(//\)[^/]' \| \
1342	 X"$as_myself" : 'X\(//\)$' \| \
1343	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344printf "%s\n" X"$as_myself" |
1345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)[^/].*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\/\)$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\).*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  s/.*/./; q'`
1362  srcdir=$ac_confdir
1363  if test ! -r "$srcdir/$ac_unique_file"; then
1364    srcdir=..
1365  fi
1366else
1367  ac_srcdir_defaulted=no
1368fi
1369if test ! -r "$srcdir/$ac_unique_file"; then
1370  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372fi
1373ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376	pwd)`
1377# When building in place, set srcdir=.
1378if test "$ac_abs_confdir" = "$ac_pwd"; then
1379  srcdir=.
1380fi
1381# Remove unnecessary trailing slashes from srcdir.
1382# Double slashes in file names in object file debugging info
1383# mess up M-x gdb in Emacs.
1384case $srcdir in
1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386esac
1387for ac_var in $ac_precious_vars; do
1388  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389  eval ac_env_${ac_var}_value=\$${ac_var}
1390  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392done
1393
1394#
1395# Report the --help message.
1396#
1397if test "$ac_init_help" = "long"; then
1398  # Omit some internal or obsolete options to make the list less imposing.
1399  # This message is too long to be a string in the A/UX 3.1 sh.
1400  cat <<_ACEOF
1401'configure' configures libxshmfence 1.3.3 to adapt to many kinds of systems.
1402
1403Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408Defaults for the options are specified in brackets.
1409
1410Configuration:
1411  -h, --help              display this help and exit
1412      --help=short        display options specific to this package
1413      --help=recursive    display the short help of all the included packages
1414  -V, --version           display version information and exit
1415  -q, --quiet, --silent   do not print 'checking ...' messages
1416      --cache-file=FILE   cache test results in FILE [disabled]
1417  -C, --config-cache      alias for '--cache-file=config.cache'
1418  -n, --no-create         do not create output files
1419      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1420
1421Installation directories:
1422  --prefix=PREFIX         install architecture-independent files in PREFIX
1423                          [$ac_default_prefix]
1424  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                          [PREFIX]
1426
1427By default, 'make install' will install all the files in
1428'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1429an installation prefix other than '$ac_default_prefix' using '--prefix',
1430for instance '--prefix=\$HOME'.
1431
1432For better control, use the options below.
1433
1434Fine tuning of the installation directories:
1435  --bindir=DIR            user executables [EPREFIX/bin]
1436  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1437  --libexecdir=DIR        program executables [EPREFIX/libexec]
1438  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1439  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1440  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1441  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1442  --libdir=DIR            object code libraries [EPREFIX/lib]
1443  --includedir=DIR        C header files [PREFIX/include]
1444  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR           info documentation [DATAROOTDIR/info]
1448  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR            man documentation [DATAROOTDIR/man]
1450  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxshmfence]
1451  --htmldir=DIR           html documentation [DOCDIR]
1452  --dvidir=DIR            dvi documentation [DOCDIR]
1453  --pdfdir=DIR            pdf documentation [DOCDIR]
1454  --psdir=DIR             ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459Program names:
1460  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464System types:
1465  --build=BUILD     configure for building on BUILD [guessed]
1466  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471  case $ac_init_help in
1472     short | recursive ) echo "Configuration of libxshmfence 1.3.3:";;
1473   esac
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-option-checking  ignore unrecognized --enable/--with options
1478  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480  --enable-dependency-tracking
1481                          do not reject slow dependency extractors
1482  --disable-dependency-tracking
1483                          speeds up one-time build
1484  --enable-silent-rules   less verbose build output (undo: "make V=1")
1485  --disable-silent-rules  verbose build output (undo: "make V=0")
1486  --enable-shared[=PKGS]  build shared libraries [default=yes]
1487  --enable-static[=PKGS]  build static libraries [default=yes]
1488  --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
1489                          both]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --enable-aix-soname=aix|svr4|both
1493                          shared library versioning (aka "SONAME") variant to
1494                          provide on AIX, [default=aix].
1495  --disable-libtool-lock  avoid locking (might break parallel builds)
1496  --disable-selective-werror
1497                          Turn off selective compiler errors. (default:
1498                          enabled)
1499  --enable-strict-compilation
1500                          Enable all warnings from compiler and make them
1501                          errors (default: disabled)
1502  --disable-largefile     omit support for large files
1503  --enable-futex          Enable futexes (default: auto)
1504  --enable-visibility     Enable symbol visibility (default: auto)
1505  --enable-year2038       support timestamps after 2038
1506
1507Optional Packages:
1508  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1511  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1512                          compiler's sysroot if not specified).
1513  --with-lint             Use a lint-style source code checker (default:
1514                          disabled)
1515  --with-shared-memory-dir=PATH
1516                          Path to directory in a world-writable temporary
1517                          directory for anonymous shared memory (default:
1518                          auto)
1519
1520Some influential environment variables:
1521  CC          C compiler command
1522  CFLAGS      C compiler flags
1523  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1524              nonstandard directory <lib dir>
1525  LIBS        libraries to pass to the linker, e.g. -l<library>
1526  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527              you have headers in a nonstandard directory <include dir>
1528  LT_SYS_LIBRARY_PATH
1529              User-defined run-time library search path.
1530  PKG_CONFIG  path to pkg-config utility
1531  PKG_CONFIG_PATH
1532              directories to add to pkg-config's search path
1533  PKG_CONFIG_LIBDIR
1534              path overriding pkg-config's built-in search path
1535  LINT        Path to a lint-style command
1536  LINT_FLAGS  Flags for the lint-style command
1537  XPROTO_CFLAGS
1538              C compiler flags for XPROTO, overriding pkg-config
1539  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1540
1541Use these variables to override the choices made by 'configure' or to help
1542it to find libraries and programs with nonstandard names/locations.
1543
1544Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>.
1545_ACEOF
1546ac_status=$?
1547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550  # If there are subdirs, report their specific --help.
1551  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552    test -d "$ac_dir" ||
1553      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554      continue
1555    ac_builddir=.
1556
1557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
1560  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1561  # A ".." for each directory in $ac_dir_suffix.
1562  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563  case $ac_top_builddir_sub in
1564  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566  esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
1572
1573case $srcdir in
1574  .)  # We are building in place.
1575    ac_srcdir=.
1576    ac_top_srcdir=$ac_top_builddir_sub
1577    ac_abs_top_srcdir=$ac_pwd ;;
1578  [\\/]* | ?:[\\/]* )  # Absolute name.
1579    ac_srcdir=$srcdir$ac_dir_suffix;
1580    ac_top_srcdir=$srcdir
1581    ac_abs_top_srcdir=$srcdir ;;
1582  *) # Relative name.
1583    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584    ac_top_srcdir=$ac_top_build_prefix$srcdir
1585    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586esac
1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589    cd "$ac_dir" || { ac_status=$?; continue; }
1590    # Check for configure.gnu first; this name is used for a wrapper for
1591    # Metaconfig's "Configure" on case-insensitive file systems.
1592    if test -f "$ac_srcdir/configure.gnu"; then
1593      echo &&
1594      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595    elif test -f "$ac_srcdir/configure"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure" --help=recursive
1598    else
1599      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600    fi || ac_status=$?
1601    cd "$ac_pwd" || { ac_status=$?; break; }
1602  done
1603fi
1604
1605test -n "$ac_init_help" && exit $ac_status
1606if $ac_init_version; then
1607  cat <<\_ACEOF
1608libxshmfence configure 1.3.3
1609generated by GNU Autoconf 2.72
1610
1611Copyright (C) 2023 Free Software Foundation, Inc.
1612This configure script is free software; the Free Software Foundation
1613gives unlimited permission to copy, distribute and modify it.
1614_ACEOF
1615  exit
1616fi
1617
1618## ------------------------ ##
1619## Autoconf initialization. ##
1620## ------------------------ ##
1621
1622# ac_fn_c_try_compile LINENO
1623# --------------------------
1624# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_compile ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  rm -f conftest.$ac_objext conftest.beam
1629  if { { ac_try="$ac_compile"
1630case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635printf "%s\n" "$ac_try_echo"; } >&5
1636  (eval "$ac_compile") 2>conftest.err
1637  ac_status=$?
1638  if test -s conftest.err; then
1639    grep -v '^ *+' conftest.err >conftest.er1
1640    cat conftest.er1 >&5
1641    mv -f conftest.er1 conftest.err
1642  fi
1643  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644  test $ac_status = 0; } && {
1645	 test -z "$ac_c_werror_flag" ||
1646	 test ! -s conftest.err
1647       } && test -s conftest.$ac_objext
1648then :
1649  ac_retval=0
1650else case e in #(
1651  e) printf "%s\n" "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654	ac_retval=1 ;;
1655esac
1656fi
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_compile
1661
1662# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663# -------------------------------------------------------
1664# Tests whether HEADER exists and can be compiled using the include files in
1665# INCLUDES, setting the cache variable VAR accordingly.
1666ac_fn_c_check_header_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670printf %s "checking for $2... " >&6; }
1671if eval test \${$3+y}
1672then :
1673  printf %s "(cached) " >&6
1674else case e in #(
1675  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h.  */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"
1681then :
1682  eval "$3=yes"
1683else case e in #(
1684  e) eval "$3=no" ;;
1685esac
1686fi
1687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1688esac
1689fi
1690eval ac_res=\$$3
1691	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692printf "%s\n" "$ac_res" >&6; }
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
1695} # ac_fn_c_check_header_compile
1696
1697# ac_fn_c_try_link LINENO
1698# -----------------------
1699# Try to link conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_link ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1704  if { { ac_try="$ac_link"
1705case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710printf "%s\n" "$ac_try_echo"; } >&5
1711  (eval "$ac_link") 2>conftest.err
1712  ac_status=$?
1713  if test -s conftest.err; then
1714    grep -v '^ *+' conftest.err >conftest.er1
1715    cat conftest.er1 >&5
1716    mv -f conftest.er1 conftest.err
1717  fi
1718  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } && {
1720	 test -z "$ac_c_werror_flag" ||
1721	 test ! -s conftest.err
1722       } && test -s conftest$ac_exeext && {
1723	 test "$cross_compiling" = yes ||
1724	 test -x conftest$ac_exeext
1725       }
1726then :
1727  ac_retval=0
1728else case e in #(
1729  e) printf "%s\n" "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732	ac_retval=1 ;;
1733esac
1734fi
1735  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737  # interfere with the next link command; also delete a directory that is
1738  # left behind by Apple's compiler.  We do this before executing the actions.
1739  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741  as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_link
1744
1745# ac_fn_c_check_func LINENO FUNC VAR
1746# ----------------------------------
1747# Tests whether FUNC exists, setting the cache variable VAR accordingly
1748ac_fn_c_check_func ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752printf %s "checking for $2... " >&6; }
1753if eval test \${$3+y}
1754then :
1755  printf %s "(cached) " >&6
1756else case e in #(
1757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h.  */
1759/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1761#define $2 innocuous_$2
1762
1763/* System header to define __stub macros and hopefully few prototypes,
1764   which can conflict with char $2 (void); below.  */
1765
1766#include <limits.h>
1767#undef $2
1768
1769/* Override any GCC internal prototype to avoid an error.
1770   Use char because int might match the return type of a GCC
1771   builtin and then its argument prototype would still apply.  */
1772#ifdef __cplusplus
1773extern "C"
1774#endif
1775char $2 (void);
1776/* The GNU C library defines this for functions which it implements
1777    to always fail with ENOSYS.  Some functions are actually named
1778    something starting with __ and the normal name is an alias.  */
1779#if defined __stub_$2 || defined __stub___$2
1780choke me
1781#endif
1782
1783int
1784main (void)
1785{
1786return $2 ();
1787  ;
1788  return 0;
1789}
1790_ACEOF
1791if ac_fn_c_try_link "$LINENO"
1792then :
1793  eval "$3=yes"
1794else case e in #(
1795  e) eval "$3=no" ;;
1796esac
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.beam \
1799    conftest$ac_exeext conftest.$ac_ext ;;
1800esac
1801fi
1802eval ac_res=\$$3
1803	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804printf "%s\n" "$ac_res" >&6; }
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807} # ac_fn_c_check_func
1808
1809# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1810# ------------------------------------------------------------------
1811# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1812# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1813ac_fn_check_decl ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  as_decl_name=`echo $2|sed 's/ *(.*//'`
1817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1818printf %s "checking whether $as_decl_name is declared... " >&6; }
1819if eval test \${$3+y}
1820then :
1821  printf %s "(cached) " >&6
1822else case e in #(
1823  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1824  eval ac_save_FLAGS=\$$6
1825  as_fn_append $6 " $5"
1826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828$4
1829int
1830main (void)
1831{
1832#ifndef $as_decl_name
1833#ifdef __cplusplus
1834  (void) $as_decl_use;
1835#else
1836  (void) $as_decl_name;
1837#endif
1838#endif
1839
1840  ;
1841  return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"
1845then :
1846  eval "$3=yes"
1847else case e in #(
1848  e) eval "$3=no" ;;
1849esac
1850fi
1851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1852  eval $6=\$ac_save_FLAGS
1853 ;;
1854esac
1855fi
1856eval ac_res=\$$3
1857	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858printf "%s\n" "$ac_res" >&6; }
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_check_decl
1862ac_configure_args_raw=
1863for ac_arg
1864do
1865  case $ac_arg in
1866  *\'*)
1867    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868  esac
1869  as_fn_append ac_configure_args_raw " '$ac_arg'"
1870done
1871
1872case $ac_configure_args_raw in
1873  *$as_nl*)
1874    ac_safe_unquote= ;;
1875  *)
1876    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1877    ac_unsafe_a="$ac_unsafe_z#~"
1878    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1879    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1880esac
1881
1882cat >config.log <<_ACEOF
1883This file contains any messages produced by compilers while
1884running configure, to aid debugging if configure makes a mistake.
1885
1886It was created by libxshmfence $as_me 1.3.3, which was
1887generated by GNU Autoconf 2.72.  Invocation command line was
1888
1889  $ $0$ac_configure_args_raw
1890
1891_ACEOF
1892exec 5>>config.log
1893{
1894cat <<_ASUNAME
1895## --------- ##
1896## Platform. ##
1897## --------- ##
1898
1899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1907
1908/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1909/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1912/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1913/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1914/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1915
1916_ASUNAME
1917
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  case $as_dir in #(((
1923    '') as_dir=./ ;;
1924    */) ;;
1925    *) as_dir=$as_dir/ ;;
1926  esac
1927    printf "%s\n" "PATH: $as_dir"
1928  done
1929IFS=$as_save_IFS
1930
1931} >&5
1932
1933cat >&5 <<_ACEOF
1934
1935
1936## ----------- ##
1937## Core tests. ##
1938## ----------- ##
1939
1940_ACEOF
1941
1942
1943# Keep a trace of the command line.
1944# Strip out --no-create and --no-recursion so they do not pile up.
1945# Strip out --silent because we don't want to record it for future runs.
1946# Also quote any args containing shell meta-characters.
1947# Make two passes to allow for proper duplicate-argument suppression.
1948ac_configure_args=
1949ac_configure_args0=
1950ac_configure_args1=
1951ac_must_keep_next=false
1952for ac_pass in 1 2
1953do
1954  for ac_arg
1955  do
1956    case $ac_arg in
1957    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959    | -silent | --silent | --silen | --sile | --sil)
1960      continue ;;
1961    *\'*)
1962      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963    esac
1964    case $ac_pass in
1965    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966    2)
1967      as_fn_append ac_configure_args1 " '$ac_arg'"
1968      if test $ac_must_keep_next = true; then
1969	ac_must_keep_next=false # Got value, back to normal.
1970      else
1971	case $ac_arg in
1972	  *=* | --config-cache | -C | -disable-* | --disable-* \
1973	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975	  | -with-* | --with-* | -without-* | --without-* | --x)
1976	    case "$ac_configure_args0 " in
1977	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978	    esac
1979	    ;;
1980	  -* ) ac_must_keep_next=true ;;
1981	esac
1982      fi
1983      as_fn_append ac_configure_args " '$ac_arg'"
1984      ;;
1985    esac
1986  done
1987done
1988{ ac_configure_args0=; unset ac_configure_args0;}
1989{ ac_configure_args1=; unset ac_configure_args1;}
1990
1991# When interrupted or exit'd, cleanup temporary files, and complete
1992# config.log.  We remove comments because anyway the quotes in there
1993# would cause problems or look ugly.
1994# WARNING: Use '\'' to represent an apostrophe within the trap.
1995# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996trap 'exit_status=$?
1997  # Sanitize IFS.
1998  IFS=" ""	$as_nl"
1999  # Save into config.log some information that might help in debugging.
2000  {
2001    echo
2002
2003    printf "%s\n" "## ---------------- ##
2004## Cache variables. ##
2005## ---------------- ##"
2006    echo
2007    # The following way of writing the cache mishandles newlines in values,
2008(
2009  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010    eval ac_val=\$$ac_var
2011    case $ac_val in #(
2012    *${as_nl}*)
2013      case $ac_var in #(
2014      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016      esac
2017      case $ac_var in #(
2018      _ | IFS | as_nl) ;; #(
2019      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020      *) { eval $ac_var=; unset $ac_var;} ;;
2021      esac ;;
2022    esac
2023  done
2024  (set) 2>&1 |
2025    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026    *${as_nl}ac_space=\ *)
2027      sed -n \
2028	"s/'\''/'\''\\\\'\'''\''/g;
2029	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030      ;; #(
2031    *)
2032      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033      ;;
2034    esac |
2035    sort
2036)
2037    echo
2038
2039    printf "%s\n" "## ----------------- ##
2040## Output variables. ##
2041## ----------------- ##"
2042    echo
2043    for ac_var in $ac_subst_vars
2044    do
2045      eval ac_val=\$$ac_var
2046      case $ac_val in
2047      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048      esac
2049      printf "%s\n" "$ac_var='\''$ac_val'\''"
2050    done | sort
2051    echo
2052
2053    if test -n "$ac_subst_files"; then
2054      printf "%s\n" "## ------------------- ##
2055## File substitutions. ##
2056## ------------------- ##"
2057      echo
2058      for ac_var in $ac_subst_files
2059      do
2060	eval ac_val=\$$ac_var
2061	case $ac_val in
2062	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063	esac
2064	printf "%s\n" "$ac_var='\''$ac_val'\''"
2065      done | sort
2066      echo
2067    fi
2068
2069    if test -s confdefs.h; then
2070      printf "%s\n" "## ----------- ##
2071## confdefs.h. ##
2072## ----------- ##"
2073      echo
2074      cat confdefs.h
2075      echo
2076    fi
2077    test "$ac_signal" != 0 &&
2078      printf "%s\n" "$as_me: caught signal $ac_signal"
2079    printf "%s\n" "$as_me: exit $exit_status"
2080  } >&5
2081  rm -f core *.core core.conftest.* &&
2082    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2083    exit $exit_status
2084' 0
2085for ac_signal in 1 2 13 15; do
2086  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2087done
2088ac_signal=0
2089
2090# confdefs.h avoids OS command line length limits that DEFS can exceed.
2091rm -f -r conftest* confdefs.h
2092
2093printf "%s\n" "/* confdefs.h */" > confdefs.h
2094
2095# Predefined preprocessor variables.
2096
2097printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2098
2099printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2100
2101printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2102
2103printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2104
2105printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2106
2107printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2108
2109
2110# Let the site file select an alternate cache file if it wants to.
2111# Prefer an explicitly selected file to automatically selected ones.
2112if test -n "$CONFIG_SITE"; then
2113  ac_site_files="$CONFIG_SITE"
2114elif test "x$prefix" != xNONE; then
2115  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2116else
2117  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2118fi
2119
2120for ac_site_file in $ac_site_files
2121do
2122  case $ac_site_file in #(
2123  */*) :
2124     ;; #(
2125  *) :
2126    ac_site_file=./$ac_site_file ;;
2127esac
2128  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2129    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2130printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2131    sed 's/^/| /' "$ac_site_file" >&5
2132    . "$ac_site_file" \
2133      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2134printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2135as_fn_error $? "failed to load site script $ac_site_file
2136See 'config.log' for more details" "$LINENO" 5; }
2137  fi
2138done
2139
2140if test -r "$cache_file"; then
2141  # Some versions of bash will fail to source /dev/null (special files
2142  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2143  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2146    case $cache_file in
2147      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148      *)                      . "./$cache_file";;
2149    esac
2150  fi
2151else
2152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2154  >$cache_file
2155fi
2156
2157as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2158# Test code for whether the C compiler supports C89 (global declarations)
2159ac_c_conftest_c89_globals='
2160/* Does the compiler advertise C89 conformance?
2161   Do not test the value of __STDC__, because some compilers set it to 0
2162   while being otherwise adequately conformant. */
2163#if !defined __STDC__
2164# error "Compiler does not advertise C89 conformance"
2165#endif
2166
2167#include <stddef.h>
2168#include <stdarg.h>
2169struct stat;
2170/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2171struct buf { int x; };
2172struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2173static char *e (char **p, int i)
2174{
2175  return p[i];
2176}
2177static char *f (char * (*g) (char **, int), char **p, ...)
2178{
2179  char *s;
2180  va_list v;
2181  va_start (v,p);
2182  s = g (p, va_arg (v,int));
2183  va_end (v);
2184  return s;
2185}
2186
2187/* C89 style stringification. */
2188#define noexpand_stringify(a) #a
2189const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2190
2191/* C89 style token pasting.  Exercises some of the corner cases that
2192   e.g. old MSVC gets wrong, but not very hard. */
2193#define noexpand_concat(a,b) a##b
2194#define expand_concat(a,b) noexpand_concat(a,b)
2195extern int vA;
2196extern int vbee;
2197#define aye A
2198#define bee B
2199int *pvA = &expand_concat(v,aye);
2200int *pvbee = &noexpand_concat(v,bee);
2201
2202/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2203   function prototypes and stuff, but not \xHH hex character constants.
2204   These do not provoke an error unfortunately, instead are silently treated
2205   as an "x".  The following induces an error, until -std is added to get
2206   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2207   array size at least.  It is necessary to write \x00 == 0 to get something
2208   that is true only with -std.  */
2209int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2210
2211/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2212   inside strings and character constants.  */
2213#define FOO(x) '\''x'\''
2214int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2215
2216int test (int i, double x);
2217struct s1 {int (*f) (int a);};
2218struct s2 {int (*f) (double a);};
2219int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2220               int, int);'
2221
2222# Test code for whether the C compiler supports C89 (body of main).
2223ac_c_conftest_c89_main='
2224ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2225'
2226
2227# Test code for whether the C compiler supports C99 (global declarations)
2228ac_c_conftest_c99_globals='
2229/* Does the compiler advertise C99 conformance? */
2230#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2231# error "Compiler does not advertise C99 conformance"
2232#endif
2233
2234// See if C++-style comments work.
2235
2236#include <stdbool.h>
2237extern int puts (const char *);
2238extern int printf (const char *, ...);
2239extern int dprintf (int, const char *, ...);
2240extern void *malloc (size_t);
2241extern void free (void *);
2242
2243// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2244// dprintf is used instead of fprintf to avoid needing to declare
2245// FILE and stderr.
2246#define debug(...) dprintf (2, __VA_ARGS__)
2247#define showlist(...) puts (#__VA_ARGS__)
2248#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2249static void
2250test_varargs_macros (void)
2251{
2252  int x = 1234;
2253  int y = 5678;
2254  debug ("Flag");
2255  debug ("X = %d\n", x);
2256  showlist (The first, second, and third items.);
2257  report (x>y, "x is %d but y is %d", x, y);
2258}
2259
2260// Check long long types.
2261#define BIG64 18446744073709551615ull
2262#define BIG32 4294967295ul
2263#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2264#if !BIG_OK
2265  #error "your preprocessor is broken"
2266#endif
2267#if BIG_OK
2268#else
2269  #error "your preprocessor is broken"
2270#endif
2271static long long int bignum = -9223372036854775807LL;
2272static unsigned long long int ubignum = BIG64;
2273
2274struct incomplete_array
2275{
2276  int datasize;
2277  double data[];
2278};
2279
2280struct named_init {
2281  int number;
2282  const wchar_t *name;
2283  double average;
2284};
2285
2286typedef const char *ccp;
2287
2288static inline int
2289test_restrict (ccp restrict text)
2290{
2291  // Iterate through items via the restricted pointer.
2292  // Also check for declarations in for loops.
2293  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294    continue;
2295  return 0;
2296}
2297
2298// Check varargs and va_copy.
2299static bool
2300test_varargs (const char *format, ...)
2301{
2302  va_list args;
2303  va_start (args, format);
2304  va_list args_copy;
2305  va_copy (args_copy, args);
2306
2307  const char *str = "";
2308  int number = 0;
2309  float fnumber = 0;
2310
2311  while (*format)
2312    {
2313      switch (*format++)
2314	{
2315	case '\''s'\'': // string
2316	  str = va_arg (args_copy, const char *);
2317	  break;
2318	case '\''d'\'': // int
2319	  number = va_arg (args_copy, int);
2320	  break;
2321	case '\''f'\'': // float
2322	  fnumber = va_arg (args_copy, double);
2323	  break;
2324	default:
2325	  break;
2326	}
2327    }
2328  va_end (args_copy);
2329  va_end (args);
2330
2331  return *str && number && fnumber;
2332}
2333'
2334
2335# Test code for whether the C compiler supports C99 (body of main).
2336ac_c_conftest_c99_main='
2337  // Check bool.
2338  _Bool success = false;
2339  success |= (argc != 0);
2340
2341  // Check restrict.
2342  if (test_restrict ("String literal") == 0)
2343    success = true;
2344  char *restrict newvar = "Another string";
2345
2346  // Check varargs.
2347  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348  test_varargs_macros ();
2349
2350  // Check flexible array members.
2351  struct incomplete_array *ia =
2352    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353  ia->datasize = 10;
2354  for (int i = 0; i < ia->datasize; ++i)
2355    ia->data[i] = i * 1.234;
2356  // Work around memory leak warnings.
2357  free (ia);
2358
2359  // Check named initializers.
2360  struct named_init ni = {
2361    .number = 34,
2362    .name = L"Test wide string",
2363    .average = 543.34343,
2364  };
2365
2366  ni.number = 58;
2367
2368  int dynamic_array[ni.number];
2369  dynamic_array[0] = argv[0][0];
2370  dynamic_array[ni.number - 1] = 543;
2371
2372  // work around unused variable warnings
2373  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2374	 || dynamic_array[ni.number - 1] != 543);
2375'
2376
2377# Test code for whether the C compiler supports C11 (global declarations)
2378ac_c_conftest_c11_globals='
2379/* Does the compiler advertise C11 conformance? */
2380#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2381# error "Compiler does not advertise C11 conformance"
2382#endif
2383
2384// Check _Alignas.
2385char _Alignas (double) aligned_as_double;
2386char _Alignas (0) no_special_alignment;
2387extern char aligned_as_int;
2388char _Alignas (0) _Alignas (int) aligned_as_int;
2389
2390// Check _Alignof.
2391enum
2392{
2393  int_alignment = _Alignof (int),
2394  int_array_alignment = _Alignof (int[100]),
2395  char_alignment = _Alignof (char)
2396};
2397_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2398
2399// Check _Noreturn.
2400int _Noreturn does_not_return (void) { for (;;) continue; }
2401
2402// Check _Static_assert.
2403struct test_static_assert
2404{
2405  int x;
2406  _Static_assert (sizeof (int) <= sizeof (long int),
2407                  "_Static_assert does not work in struct");
2408  long int y;
2409};
2410
2411// Check UTF-8 literals.
2412#define u8 syntax error!
2413char const utf8_literal[] = u8"happens to be ASCII" "another string";
2414
2415// Check duplicate typedefs.
2416typedef long *long_ptr;
2417typedef long int *long_ptr;
2418typedef long_ptr long_ptr;
2419
2420// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2421struct anonymous
2422{
2423  union {
2424    struct { int i; int j; };
2425    struct { int k; long int l; } w;
2426  };
2427  int m;
2428} v1;
2429'
2430
2431# Test code for whether the C compiler supports C11 (body of main).
2432ac_c_conftest_c11_main='
2433  _Static_assert ((offsetof (struct anonymous, i)
2434		   == offsetof (struct anonymous, w.k)),
2435		  "Anonymous union alignment botch");
2436  v1.i = 2;
2437  v1.w.k = 5;
2438  ok |= v1.i != 5;
2439'
2440
2441# Test code for whether the C compiler supports C11 (complete).
2442ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2443${ac_c_conftest_c99_globals}
2444${ac_c_conftest_c11_globals}
2445
2446int
2447main (int argc, char **argv)
2448{
2449  int ok = 0;
2450  ${ac_c_conftest_c89_main}
2451  ${ac_c_conftest_c99_main}
2452  ${ac_c_conftest_c11_main}
2453  return ok;
2454}
2455"
2456
2457# Test code for whether the C compiler supports C99 (complete).
2458ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2459${ac_c_conftest_c99_globals}
2460
2461int
2462main (int argc, char **argv)
2463{
2464  int ok = 0;
2465  ${ac_c_conftest_c89_main}
2466  ${ac_c_conftest_c99_main}
2467  return ok;
2468}
2469"
2470
2471# Test code for whether the C compiler supports C89 (complete).
2472ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2473
2474int
2475main (int argc, char **argv)
2476{
2477  int ok = 0;
2478  ${ac_c_conftest_c89_main}
2479  return ok;
2480}
2481"
2482
2483as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2484as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2485as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2486as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2487as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2488as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2489as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2490as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2491as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2492as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2493
2494# Auxiliary files required by this configure script.
2495ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2496
2497# Locations in which to look for auxiliary files.
2498ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2499
2500# Search for a directory containing all of the required auxiliary files,
2501# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2502# If we don't find one directory that contains all the files we need,
2503# we report the set of missing files from the *first* directory in
2504# $ac_aux_dir_candidates and give up.
2505ac_missing_aux_files=""
2506ac_first_candidate=:
2507printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509as_found=false
2510for as_dir in $ac_aux_dir_candidates
2511do
2512  IFS=$as_save_IFS
2513  case $as_dir in #(((
2514    '') as_dir=./ ;;
2515    */) ;;
2516    *) as_dir=$as_dir/ ;;
2517  esac
2518  as_found=:
2519
2520  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2521  ac_aux_dir_found=yes
2522  ac_install_sh=
2523  for ac_aux in $ac_aux_files
2524  do
2525    # As a special case, if "install-sh" is required, that requirement
2526    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2527    # and $ac_install_sh is set appropriately for whichever one is found.
2528    if test x"$ac_aux" = x"install-sh"
2529    then
2530      if test -f "${as_dir}install-sh"; then
2531        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2532        ac_install_sh="${as_dir}install-sh -c"
2533      elif test -f "${as_dir}install.sh"; then
2534        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2535        ac_install_sh="${as_dir}install.sh -c"
2536      elif test -f "${as_dir}shtool"; then
2537        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2538        ac_install_sh="${as_dir}shtool install -c"
2539      else
2540        ac_aux_dir_found=no
2541        if $ac_first_candidate; then
2542          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2543        else
2544          break
2545        fi
2546      fi
2547    else
2548      if test -f "${as_dir}${ac_aux}"; then
2549        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2550      else
2551        ac_aux_dir_found=no
2552        if $ac_first_candidate; then
2553          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2554        else
2555          break
2556        fi
2557      fi
2558    fi
2559  done
2560  if test "$ac_aux_dir_found" = yes; then
2561    ac_aux_dir="$as_dir"
2562    break
2563  fi
2564  ac_first_candidate=false
2565
2566  as_found=false
2567done
2568IFS=$as_save_IFS
2569if $as_found
2570then :
2571
2572else case e in #(
2573  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2574esac
2575fi
2576
2577
2578# These three variables are undocumented and unsupported,
2579# and are intended to be withdrawn in a future Autoconf release.
2580# They can cause serious problems if a builder's source tree is in a directory
2581# whose full name contains unusual characters.
2582if test -f "${ac_aux_dir}config.guess"; then
2583  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2584fi
2585if test -f "${ac_aux_dir}config.sub"; then
2586  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2587fi
2588if test -f "$ac_aux_dir/configure"; then
2589  ac_configure="$SHELL ${ac_aux_dir}configure"
2590fi
2591
2592# Check that the precious variables saved in the cache have kept the same
2593# value.
2594ac_cache_corrupted=false
2595for ac_var in $ac_precious_vars; do
2596  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597  eval ac_new_set=\$ac_env_${ac_var}_set
2598  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599  eval ac_new_val=\$ac_env_${ac_var}_value
2600  case $ac_old_set,$ac_new_set in
2601    set,)
2602      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2603printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2604      ac_cache_corrupted=: ;;
2605    ,set)
2606      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2607printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2608      ac_cache_corrupted=: ;;
2609    ,);;
2610    *)
2611      if test "x$ac_old_val" != "x$ac_new_val"; then
2612	# differences in whitespace do not lead to failure.
2613	ac_old_val_w=`echo x $ac_old_val`
2614	ac_new_val_w=`echo x $ac_new_val`
2615	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2617printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2618	  ac_cache_corrupted=:
2619	else
2620	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2621printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2622	  eval $ac_var=\$ac_old_val
2623	fi
2624	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2625printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2627printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2628      fi;;
2629  esac
2630  # Pass precious variables to config.status.
2631  if test "$ac_new_set" = set; then
2632    case $ac_new_val in
2633    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634    *) ac_arg=$ac_var=$ac_new_val ;;
2635    esac
2636    case " $ac_configure_args " in
2637      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2638      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2639    esac
2640  fi
2641done
2642if $ac_cache_corrupted; then
2643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2644printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2647  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2648	    and start over" "$LINENO" 5
2649fi
2650## -------------------- ##
2651## Main body of script. ##
2652## -------------------- ##
2653
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661
2662ac_config_headers="$ac_config_headers config.h"
2663
2664
2665
2666# Set common system defines for POSIX extensions, such as _GNU_SOURCE
2667# Must be called before any macros that run the compiler (like LT_INIT
2668# or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680# Expand $ac_aux_dir to an absolute path.
2681am_aux_dir=`cd "$ac_aux_dir" && pwd`
2682
2683ac_ext=c
2684ac_cpp='$CPP $CPPFLAGS'
2685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688if test -n "$ac_tool_prefix"; then
2689  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2690set dummy ${ac_tool_prefix}gcc; ac_word=$2
2691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692printf %s "checking for $ac_word... " >&6; }
2693if test ${ac_cv_prog_CC+y}
2694then :
2695  printf %s "(cached) " >&6
2696else case e in #(
2697  e) if test -n "$CC"; then
2698  ac_cv_prog_CC="$CC" # Let the user override the test.
2699else
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703  IFS=$as_save_IFS
2704  case $as_dir in #(((
2705    '') as_dir=./ ;;
2706    */) ;;
2707    *) as_dir=$as_dir/ ;;
2708  esac
2709    for ac_exec_ext in '' $ac_executable_extensions; do
2710  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2711    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2713    break 2
2714  fi
2715done
2716  done
2717IFS=$as_save_IFS
2718
2719fi ;;
2720esac
2721fi
2722CC=$ac_cv_prog_CC
2723if test -n "$CC"; then
2724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725printf "%s\n" "$CC" >&6; }
2726else
2727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728printf "%s\n" "no" >&6; }
2729fi
2730
2731
2732fi
2733if test -z "$ac_cv_prog_CC"; then
2734  ac_ct_CC=$CC
2735  # Extract the first word of "gcc", so it can be a program name with args.
2736set dummy gcc; ac_word=$2
2737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738printf %s "checking for $ac_word... " >&6; }
2739if test ${ac_cv_prog_ac_ct_CC+y}
2740then :
2741  printf %s "(cached) " >&6
2742else case e in #(
2743  e) if test -n "$ac_ct_CC"; then
2744  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745else
2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747for as_dir in $PATH
2748do
2749  IFS=$as_save_IFS
2750  case $as_dir in #(((
2751    '') as_dir=./ ;;
2752    */) ;;
2753    *) as_dir=$as_dir/ ;;
2754  esac
2755    for ac_exec_ext in '' $ac_executable_extensions; do
2756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2757    ac_cv_prog_ac_ct_CC="gcc"
2758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2759    break 2
2760  fi
2761done
2762  done
2763IFS=$as_save_IFS
2764
2765fi ;;
2766esac
2767fi
2768ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769if test -n "$ac_ct_CC"; then
2770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771printf "%s\n" "$ac_ct_CC" >&6; }
2772else
2773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774printf "%s\n" "no" >&6; }
2775fi
2776
2777  if test "x$ac_ct_CC" = x; then
2778    CC=""
2779  else
2780    case $cross_compiling:$ac_tool_warned in
2781yes:)
2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784ac_tool_warned=yes ;;
2785esac
2786    CC=$ac_ct_CC
2787  fi
2788else
2789  CC="$ac_cv_prog_CC"
2790fi
2791
2792if test -z "$CC"; then
2793          if test -n "$ac_tool_prefix"; then
2794    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2795set dummy ${ac_tool_prefix}cc; ac_word=$2
2796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797printf %s "checking for $ac_word... " >&6; }
2798if test ${ac_cv_prog_CC+y}
2799then :
2800  printf %s "(cached) " >&6
2801else case e in #(
2802  e) if test -n "$CC"; then
2803  ac_cv_prog_CC="$CC" # Let the user override the test.
2804else
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808  IFS=$as_save_IFS
2809  case $as_dir in #(((
2810    '') as_dir=./ ;;
2811    */) ;;
2812    *) as_dir=$as_dir/ ;;
2813  esac
2814    for ac_exec_ext in '' $ac_executable_extensions; do
2815  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2816    ac_cv_prog_CC="${ac_tool_prefix}cc"
2817    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2818    break 2
2819  fi
2820done
2821  done
2822IFS=$as_save_IFS
2823
2824fi ;;
2825esac
2826fi
2827CC=$ac_cv_prog_CC
2828if test -n "$CC"; then
2829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830printf "%s\n" "$CC" >&6; }
2831else
2832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833printf "%s\n" "no" >&6; }
2834fi
2835
2836
2837  fi
2838fi
2839if test -z "$CC"; then
2840  # Extract the first word of "cc", so it can be a program name with args.
2841set dummy cc; ac_word=$2
2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843printf %s "checking for $ac_word... " >&6; }
2844if test ${ac_cv_prog_CC+y}
2845then :
2846  printf %s "(cached) " >&6
2847else case e in #(
2848  e) if test -n "$CC"; then
2849  ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851  ac_prog_rejected=no
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  case $as_dir in #(((
2857    '') as_dir=./ ;;
2858    */) ;;
2859    *) as_dir=$as_dir/ ;;
2860  esac
2861    for ac_exec_ext in '' $ac_executable_extensions; do
2862  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2864       ac_prog_rejected=yes
2865       continue
2866     fi
2867    ac_cv_prog_CC="cc"
2868    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872  done
2873IFS=$as_save_IFS
2874
2875if test $ac_prog_rejected = yes; then
2876  # We found a bogon in the path, so make sure we never use it.
2877  set dummy $ac_cv_prog_CC
2878  shift
2879  if test $# != 0; then
2880    # We chose a different compiler from the bogus one.
2881    # However, it has the same basename, so the bogon will be chosen
2882    # first if we set CC to just the basename; use the full file name.
2883    shift
2884    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2885  fi
2886fi
2887fi ;;
2888esac
2889fi
2890CC=$ac_cv_prog_CC
2891if test -n "$CC"; then
2892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893printf "%s\n" "$CC" >&6; }
2894else
2895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896printf "%s\n" "no" >&6; }
2897fi
2898
2899
2900fi
2901if test -z "$CC"; then
2902  if test -n "$ac_tool_prefix"; then
2903  for ac_prog in cl.exe
2904  do
2905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908printf %s "checking for $ac_word... " >&6; }
2909if test ${ac_cv_prog_CC+y}
2910then :
2911  printf %s "(cached) " >&6
2912else case e in #(
2913  e) if test -n "$CC"; then
2914  ac_cv_prog_CC="$CC" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919  IFS=$as_save_IFS
2920  case $as_dir in #(((
2921    '') as_dir=./ ;;
2922    */) ;;
2923    *) as_dir=$as_dir/ ;;
2924  esac
2925    for ac_exec_ext in '' $ac_executable_extensions; do
2926  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2927    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2929    break 2
2930  fi
2931done
2932  done
2933IFS=$as_save_IFS
2934
2935fi ;;
2936esac
2937fi
2938CC=$ac_cv_prog_CC
2939if test -n "$CC"; then
2940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941printf "%s\n" "$CC" >&6; }
2942else
2943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944printf "%s\n" "no" >&6; }
2945fi
2946
2947
2948    test -n "$CC" && break
2949  done
2950fi
2951if test -z "$CC"; then
2952  ac_ct_CC=$CC
2953  for ac_prog in cl.exe
2954do
2955  # Extract the first word of "$ac_prog", so it can be a program name with args.
2956set dummy $ac_prog; ac_word=$2
2957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958printf %s "checking for $ac_word... " >&6; }
2959if test ${ac_cv_prog_ac_ct_CC+y}
2960then :
2961  printf %s "(cached) " >&6
2962else case e in #(
2963  e) if test -n "$ac_ct_CC"; then
2964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965else
2966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969  IFS=$as_save_IFS
2970  case $as_dir in #(((
2971    '') as_dir=./ ;;
2972    */) ;;
2973    *) as_dir=$as_dir/ ;;
2974  esac
2975    for ac_exec_ext in '' $ac_executable_extensions; do
2976  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2977    ac_cv_prog_ac_ct_CC="$ac_prog"
2978    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2979    break 2
2980  fi
2981done
2982  done
2983IFS=$as_save_IFS
2984
2985fi ;;
2986esac
2987fi
2988ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989if test -n "$ac_ct_CC"; then
2990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991printf "%s\n" "$ac_ct_CC" >&6; }
2992else
2993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994printf "%s\n" "no" >&6; }
2995fi
2996
2997
2998  test -n "$ac_ct_CC" && break
2999done
3000
3001  if test "x$ac_ct_CC" = x; then
3002    CC=""
3003  else
3004    case $cross_compiling:$ac_tool_warned in
3005yes:)
3006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008ac_tool_warned=yes ;;
3009esac
3010    CC=$ac_ct_CC
3011  fi
3012fi
3013
3014fi
3015if test -z "$CC"; then
3016  if test -n "$ac_tool_prefix"; then
3017  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3018set dummy ${ac_tool_prefix}clang; ac_word=$2
3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020printf %s "checking for $ac_word... " >&6; }
3021if test ${ac_cv_prog_CC+y}
3022then :
3023  printf %s "(cached) " >&6
3024else case e in #(
3025  e) if test -n "$CC"; then
3026  ac_cv_prog_CC="$CC" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031  IFS=$as_save_IFS
3032  case $as_dir in #(((
3033    '') as_dir=./ ;;
3034    */) ;;
3035    *) as_dir=$as_dir/ ;;
3036  esac
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3039    ac_cv_prog_CC="${ac_tool_prefix}clang"
3040    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi ;;
3048esac
3049fi
3050CC=$ac_cv_prog_CC
3051if test -n "$CC"; then
3052  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053printf "%s\n" "$CC" >&6; }
3054else
3055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056printf "%s\n" "no" >&6; }
3057fi
3058
3059
3060fi
3061if test -z "$ac_cv_prog_CC"; then
3062  ac_ct_CC=$CC
3063  # Extract the first word of "clang", so it can be a program name with args.
3064set dummy clang; ac_word=$2
3065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066printf %s "checking for $ac_word... " >&6; }
3067if test ${ac_cv_prog_ac_ct_CC+y}
3068then :
3069  printf %s "(cached) " >&6
3070else case e in #(
3071  e) if test -n "$ac_ct_CC"; then
3072  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073else
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077  IFS=$as_save_IFS
3078  case $as_dir in #(((
3079    '') as_dir=./ ;;
3080    */) ;;
3081    *) as_dir=$as_dir/ ;;
3082  esac
3083    for ac_exec_ext in '' $ac_executable_extensions; do
3084  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3085    ac_cv_prog_ac_ct_CC="clang"
3086    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090  done
3091IFS=$as_save_IFS
3092
3093fi ;;
3094esac
3095fi
3096ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097if test -n "$ac_ct_CC"; then
3098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099printf "%s\n" "$ac_ct_CC" >&6; }
3100else
3101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102printf "%s\n" "no" >&6; }
3103fi
3104
3105  if test "x$ac_ct_CC" = x; then
3106    CC=""
3107  else
3108    case $cross_compiling:$ac_tool_warned in
3109yes:)
3110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112ac_tool_warned=yes ;;
3113esac
3114    CC=$ac_ct_CC
3115  fi
3116else
3117  CC="$ac_cv_prog_CC"
3118fi
3119
3120fi
3121
3122
3123test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3124printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3125as_fn_error $? "no acceptable C compiler found in \$PATH
3126See 'config.log' for more details" "$LINENO" 5; }
3127
3128# Provide some information about the compiler.
3129printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3130set X $ac_compile
3131ac_compiler=$2
3132for ac_option in --version -v -V -qversion -version; do
3133  { { ac_try="$ac_compiler $ac_option >&5"
3134case "(($ac_try" in
3135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136  *) ac_try_echo=$ac_try;;
3137esac
3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139printf "%s\n" "$ac_try_echo"; } >&5
3140  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141  ac_status=$?
3142  if test -s conftest.err; then
3143    sed '10a\
3144... rest of stderr output deleted ...
3145         10q' conftest.err >conftest.er1
3146    cat conftest.er1 >&5
3147  fi
3148  rm -f conftest.er1 conftest.err
3149  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150  test $ac_status = 0; }
3151done
3152
3153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154/* end confdefs.h.  */
3155
3156int
3157main (void)
3158{
3159
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164ac_clean_files_save=$ac_clean_files
3165ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3166# Try to create an executable without -o first, disregard a.out.
3167# It will help us diagnose broken compilers, and finding out an intuition
3168# of exeext.
3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170printf %s "checking whether the C compiler works... " >&6; }
3171ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172
3173# The possible output files:
3174ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175
3176ac_rmfiles=
3177for ac_file in $ac_files
3178do
3179  case $ac_file in
3180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182  esac
3183done
3184rm -f $ac_rmfiles
3185
3186if { { ac_try="$ac_link_default"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192printf "%s\n" "$ac_try_echo"; } >&5
3193  (eval "$ac_link_default") 2>&5
3194  ac_status=$?
3195  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196  test $ac_status = 0; }
3197then :
3198  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3199# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3200# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3201# so that the user can short-circuit this test for compilers unknown to
3202# Autoconf.
3203for ac_file in $ac_files ''
3204do
3205  test -f "$ac_file" || continue
3206  case $ac_file in
3207    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3208	;;
3209    [ab].out )
3210	# We found the default executable, but exeext='' is most
3211	# certainly right.
3212	break;;
3213    *.* )
3214	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3215	then :; else
3216	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217	fi
3218	# We set ac_cv_exeext here because the later test for it is not
3219	# safe: cross compilers may not add the suffix if given an '-o'
3220	# argument, so we may need to know it at that point already.
3221	# Even if this section looks crufty: it has the advantage of
3222	# actually working.
3223	break;;
3224    * )
3225	break;;
3226  esac
3227done
3228test "$ac_cv_exeext" = no && ac_cv_exeext=
3229
3230else case e in #(
3231  e) ac_file='' ;;
3232esac
3233fi
3234if test -z "$ac_file"
3235then :
3236  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237printf "%s\n" "no" >&6; }
3238printf "%s\n" "$as_me: failed program was:" >&5
3239sed 's/^/| /' conftest.$ac_ext >&5
3240
3241{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3242printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3243as_fn_error 77 "C compiler cannot create executables
3244See 'config.log' for more details" "$LINENO" 5; }
3245else case e in #(
3246  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247printf "%s\n" "yes" >&6; } ;;
3248esac
3249fi
3250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3251printf %s "checking for C compiler default output file name... " >&6; }
3252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253printf "%s\n" "$ac_file" >&6; }
3254ac_exeext=$ac_cv_exeext
3255
3256rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3257ac_clean_files=$ac_clean_files_save
3258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3259printf %s "checking for suffix of executables... " >&6; }
3260if { { ac_try="$ac_link"
3261case "(($ac_try" in
3262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263  *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266printf "%s\n" "$ac_try_echo"; } >&5
3267  (eval "$ac_link") 2>&5
3268  ac_status=$?
3269  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270  test $ac_status = 0; }
3271then :
3272  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3273# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3274# work properly (i.e., refer to 'conftest.exe'), while it won't with
3275# 'rm'.
3276for ac_file in conftest.exe conftest conftest.*; do
3277  test -f "$ac_file" || continue
3278  case $ac_file in
3279    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281	  break;;
3282    * ) break;;
3283  esac
3284done
3285else case e in #(
3286  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3287printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3288as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3289See 'config.log' for more details" "$LINENO" 5; } ;;
3290esac
3291fi
3292rm -f conftest conftest$ac_cv_exeext
3293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294printf "%s\n" "$ac_cv_exeext" >&6; }
3295
3296rm -f conftest.$ac_ext
3297EXEEXT=$ac_cv_exeext
3298ac_exeext=$EXEEXT
3299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h.  */
3301#include <stdio.h>
3302int
3303main (void)
3304{
3305FILE *f = fopen ("conftest.out", "w");
3306 if (!f)
3307  return 1;
3308 return ferror (f) || fclose (f) != 0;
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314ac_clean_files="$ac_clean_files conftest.out"
3315# Check that the compiler produces executables we can run.  If not, either
3316# the compiler is broken, or we cross compile.
3317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318printf %s "checking whether we are cross compiling... " >&6; }
3319if test "$cross_compiling" != yes; then
3320  { { ac_try="$ac_link"
3321case "(($ac_try" in
3322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323  *) ac_try_echo=$ac_try;;
3324esac
3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326printf "%s\n" "$ac_try_echo"; } >&5
3327  (eval "$ac_link") 2>&5
3328  ac_status=$?
3329  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330  test $ac_status = 0; }
3331  if { ac_try='./conftest$ac_cv_exeext'
3332  { { case "(($ac_try" in
3333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334  *) ac_try_echo=$ac_try;;
3335esac
3336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337printf "%s\n" "$ac_try_echo"; } >&5
3338  (eval "$ac_try") 2>&5
3339  ac_status=$?
3340  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341  test $ac_status = 0; }; }; then
3342    cross_compiling=no
3343  else
3344    if test "$cross_compiling" = maybe; then
3345	cross_compiling=yes
3346    else
3347	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3348printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3349as_fn_error 77 "cannot run C compiled programs.
3350If you meant to cross compile, use '--host'.
3351See 'config.log' for more details" "$LINENO" 5; }
3352    fi
3353  fi
3354fi
3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356printf "%s\n" "$cross_compiling" >&6; }
3357
3358rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3359  conftest.o conftest.obj conftest.out
3360ac_clean_files=$ac_clean_files_save
3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3362printf %s "checking for suffix of object files... " >&6; }
3363if test ${ac_cv_objext+y}
3364then :
3365  printf %s "(cached) " >&6
3366else case e in #(
3367  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h.  */
3369
3370int
3371main (void)
3372{
3373
3374  ;
3375  return 0;
3376}
3377_ACEOF
3378rm -f conftest.o conftest.obj
3379if { { ac_try="$ac_compile"
3380case "(($ac_try" in
3381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382  *) ac_try_echo=$ac_try;;
3383esac
3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385printf "%s\n" "$ac_try_echo"; } >&5
3386  (eval "$ac_compile") 2>&5
3387  ac_status=$?
3388  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389  test $ac_status = 0; }
3390then :
3391  for ac_file in conftest.o conftest.obj conftest.*; do
3392  test -f "$ac_file" || continue;
3393  case $ac_file in
3394    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396       break;;
3397  esac
3398done
3399else case e in #(
3400  e) printf "%s\n" "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3404printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3405as_fn_error $? "cannot compute suffix of object files: cannot compile
3406See 'config.log' for more details" "$LINENO" 5; } ;;
3407esac
3408fi
3409rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3410esac
3411fi
3412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3413printf "%s\n" "$ac_cv_objext" >&6; }
3414OBJEXT=$ac_cv_objext
3415ac_objext=$OBJEXT
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3417printf %s "checking whether the compiler supports GNU C... " >&6; }
3418if test ${ac_cv_c_compiler_gnu+y}
3419then :
3420  printf %s "(cached) " >&6
3421else case e in #(
3422  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424
3425int
3426main (void)
3427{
3428#ifndef __GNUC__
3429       choke me
3430#endif
3431
3432  ;
3433  return 0;
3434}
3435_ACEOF
3436if ac_fn_c_try_compile "$LINENO"
3437then :
3438  ac_compiler_gnu=yes
3439else case e in #(
3440  e) ac_compiler_gnu=no ;;
3441esac
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3444ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445 ;;
3446esac
3447fi
3448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452if test $ac_compiler_gnu = yes; then
3453  GCC=yes
3454else
3455  GCC=
3456fi
3457ac_test_CFLAGS=${CFLAGS+y}
3458ac_save_CFLAGS=$CFLAGS
3459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460printf %s "checking whether $CC accepts -g... " >&6; }
3461if test ${ac_cv_prog_cc_g+y}
3462then :
3463  printf %s "(cached) " >&6
3464else case e in #(
3465  e) ac_save_c_werror_flag=$ac_c_werror_flag
3466   ac_c_werror_flag=yes
3467   ac_cv_prog_cc_g=no
3468   CFLAGS="-g"
3469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471
3472int
3473main (void)
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480if ac_fn_c_try_compile "$LINENO"
3481then :
3482  ac_cv_prog_cc_g=yes
3483else case e in #(
3484  e) CFLAGS=""
3485      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486/* end confdefs.h.  */
3487
3488int
3489main (void)
3490{
3491
3492  ;
3493  return 0;
3494}
3495_ACEOF
3496if ac_fn_c_try_compile "$LINENO"
3497then :
3498
3499else case e in #(
3500  e) ac_c_werror_flag=$ac_save_c_werror_flag
3501	 CFLAGS="-g"
3502	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504
3505int
3506main (void)
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"
3514then :
3515  ac_cv_prog_cc_g=yes
3516fi
3517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3518esac
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3521esac
3522fi
3523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3524   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3525esac
3526fi
3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3528printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3529if test $ac_test_CFLAGS; then
3530  CFLAGS=$ac_save_CFLAGS
3531elif test $ac_cv_prog_cc_g = yes; then
3532  if test "$GCC" = yes; then
3533    CFLAGS="-g -O2"
3534  else
3535    CFLAGS="-g"
3536  fi
3537else
3538  if test "$GCC" = yes; then
3539    CFLAGS="-O2"
3540  else
3541    CFLAGS=
3542  fi
3543fi
3544ac_prog_cc_stdc=no
3545if test x$ac_prog_cc_stdc = xno
3546then :
3547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3548printf %s "checking for $CC option to enable C11 features... " >&6; }
3549if test ${ac_cv_prog_cc_c11+y}
3550then :
3551  printf %s "(cached) " >&6
3552else case e in #(
3553  e) ac_cv_prog_cc_c11=no
3554ac_save_CC=$CC
3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h.  */
3557$ac_c_conftest_c11_program
3558_ACEOF
3559for ac_arg in '' -std=gnu11
3560do
3561  CC="$ac_save_CC $ac_arg"
3562  if ac_fn_c_try_compile "$LINENO"
3563then :
3564  ac_cv_prog_cc_c11=$ac_arg
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.beam
3567  test "x$ac_cv_prog_cc_c11" != "xno" && break
3568done
3569rm -f conftest.$ac_ext
3570CC=$ac_save_CC ;;
3571esac
3572fi
3573
3574if test "x$ac_cv_prog_cc_c11" = xno
3575then :
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577printf "%s\n" "unsupported" >&6; }
3578else case e in #(
3579  e) if test "x$ac_cv_prog_cc_c11" = x
3580then :
3581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582printf "%s\n" "none needed" >&6; }
3583else case e in #(
3584  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3585printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3586     CC="$CC $ac_cv_prog_cc_c11" ;;
3587esac
3588fi
3589  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3590  ac_prog_cc_stdc=c11 ;;
3591esac
3592fi
3593fi
3594if test x$ac_prog_cc_stdc = xno
3595then :
3596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3597printf %s "checking for $CC option to enable C99 features... " >&6; }
3598if test ${ac_cv_prog_cc_c99+y}
3599then :
3600  printf %s "(cached) " >&6
3601else case e in #(
3602  e) ac_cv_prog_cc_c99=no
3603ac_save_CC=$CC
3604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h.  */
3606$ac_c_conftest_c99_program
3607_ACEOF
3608for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3609do
3610  CC="$ac_save_CC $ac_arg"
3611  if ac_fn_c_try_compile "$LINENO"
3612then :
3613  ac_cv_prog_cc_c99=$ac_arg
3614fi
3615rm -f core conftest.err conftest.$ac_objext conftest.beam
3616  test "x$ac_cv_prog_cc_c99" != "xno" && break
3617done
3618rm -f conftest.$ac_ext
3619CC=$ac_save_CC ;;
3620esac
3621fi
3622
3623if test "x$ac_cv_prog_cc_c99" = xno
3624then :
3625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626printf "%s\n" "unsupported" >&6; }
3627else case e in #(
3628  e) if test "x$ac_cv_prog_cc_c99" = x
3629then :
3630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3631printf "%s\n" "none needed" >&6; }
3632else case e in #(
3633  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3634printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3635     CC="$CC $ac_cv_prog_cc_c99" ;;
3636esac
3637fi
3638  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3639  ac_prog_cc_stdc=c99 ;;
3640esac
3641fi
3642fi
3643if test x$ac_prog_cc_stdc = xno
3644then :
3645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3646printf %s "checking for $CC option to enable C89 features... " >&6; }
3647if test ${ac_cv_prog_cc_c89+y}
3648then :
3649  printf %s "(cached) " >&6
3650else case e in #(
3651  e) ac_cv_prog_cc_c89=no
3652ac_save_CC=$CC
3653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h.  */
3655$ac_c_conftest_c89_program
3656_ACEOF
3657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658do
3659  CC="$ac_save_CC $ac_arg"
3660  if ac_fn_c_try_compile "$LINENO"
3661then :
3662  ac_cv_prog_cc_c89=$ac_arg
3663fi
3664rm -f core conftest.err conftest.$ac_objext conftest.beam
3665  test "x$ac_cv_prog_cc_c89" != "xno" && break
3666done
3667rm -f conftest.$ac_ext
3668CC=$ac_save_CC ;;
3669esac
3670fi
3671
3672if test "x$ac_cv_prog_cc_c89" = xno
3673then :
3674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675printf "%s\n" "unsupported" >&6; }
3676else case e in #(
3677  e) if test "x$ac_cv_prog_cc_c89" = x
3678then :
3679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680printf "%s\n" "none needed" >&6; }
3681else case e in #(
3682  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3683printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3684     CC="$CC $ac_cv_prog_cc_c89" ;;
3685esac
3686fi
3687  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3688  ac_prog_cc_stdc=c89 ;;
3689esac
3690fi
3691fi
3692
3693ac_ext=c
3694ac_cpp='$CPP $CPPFLAGS'
3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699
3700  ac_ext=c
3701ac_cpp='$CPP $CPPFLAGS'
3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3706printf %s "checking whether $CC understands -c and -o together... " >&6; }
3707if test ${am_cv_prog_cc_c_o+y}
3708then :
3709  printf %s "(cached) " >&6
3710else case e in #(
3711  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712/* end confdefs.h.  */
3713
3714int
3715main (void)
3716{
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722  # Make sure it works both with $CC and with simple cc.
3723  # Following AC_PROG_CC_C_O, we do the test twice because some
3724  # compilers refuse to overwrite an existing .o file with -o,
3725  # though they will create one.
3726  am_cv_prog_cc_c_o=yes
3727  for am_i in 1 2; do
3728    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3729   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3730   ac_status=$?
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); } \
3733         && test -f conftest2.$ac_objext; then
3734      : OK
3735    else
3736      am_cv_prog_cc_c_o=no
3737      break
3738    fi
3739  done
3740  rm -f core conftest*
3741  unset am_i ;;
3742esac
3743fi
3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3745printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3746if test "$am_cv_prog_cc_c_o" != yes; then
3747   # Losing compiler, so override with the script.
3748   # FIXME: It is wrong to rewrite CC.
3749   # But if we don't then we get into trouble of one sort or another.
3750   # A longer-term fix would be to have automake use am__CC in this case,
3751   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3752   CC="$am_aux_dir/compile $CC"
3753fi
3754ac_ext=c
3755ac_cpp='$CPP $CPPFLAGS'
3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759
3760
3761
3762ac_header= ac_cache=
3763for ac_item in $ac_header_c_list
3764do
3765  if test $ac_cache; then
3766    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3767    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3768      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3769    fi
3770    ac_header= ac_cache=
3771  elif test $ac_header; then
3772    ac_cache=$ac_item
3773  else
3774    ac_header=$ac_item
3775  fi
3776done
3777
3778
3779
3780
3781
3782
3783
3784
3785if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3786then :
3787
3788printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3789
3790fi
3791
3792
3793
3794
3795
3796
3797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3798printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3799if test ${ac_cv_safe_to_define___extensions__+y}
3800then :
3801  printf %s "(cached) " >&6
3802else case e in #(
3803  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h.  */
3805
3806#         define __EXTENSIONS__ 1
3807          $ac_includes_default
3808int
3809main (void)
3810{
3811
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816if ac_fn_c_try_compile "$LINENO"
3817then :
3818  ac_cv_safe_to_define___extensions__=yes
3819else case e in #(
3820  e) ac_cv_safe_to_define___extensions__=no ;;
3821esac
3822fi
3823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3824esac
3825fi
3826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3827printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3828
3829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3830printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3831if test ${ac_cv_should_define__xopen_source+y}
3832then :
3833  printf %s "(cached) " >&6
3834else case e in #(
3835  e) ac_cv_should_define__xopen_source=no
3836    if test $ac_cv_header_wchar_h = yes
3837then :
3838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h.  */
3840
3841          #include <wchar.h>
3842          mbstate_t x;
3843int
3844main (void)
3845{
3846
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851if ac_fn_c_try_compile "$LINENO"
3852then :
3853
3854else case e in #(
3855  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856/* end confdefs.h.  */
3857
3858            #define _XOPEN_SOURCE 500
3859            #include <wchar.h>
3860            mbstate_t x;
3861int
3862main (void)
3863{
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869if ac_fn_c_try_compile "$LINENO"
3870then :
3871  ac_cv_should_define__xopen_source=yes
3872fi
3873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3874esac
3875fi
3876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3877fi ;;
3878esac
3879fi
3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3881printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3882
3883  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3884
3885  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3886
3887  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3888
3889  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3890
3891  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3892
3893  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3894
3895  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3896
3897  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3898
3899  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3900
3901  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3902
3903  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3904
3905  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3906
3907  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3908
3909  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3910
3911  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3912
3913  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3914
3915  if test $ac_cv_header_minix_config_h = yes
3916then :
3917  MINIX=yes
3918    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3919
3920    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3921
3922    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3923
3924else case e in #(
3925  e) MINIX= ;;
3926esac
3927fi
3928  if test $ac_cv_safe_to_define___extensions__ = yes
3929then :
3930  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3931
3932fi
3933  if test $ac_cv_should_define__xopen_source = yes
3934then :
3935  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3936
3937fi
3938
3939
3940# Initialize Automake
3941am__api_version='1.17'
3942
3943
3944  # Find a good install program.  We prefer a C program (faster),
3945# so one script is as good as another.  But avoid the broken or
3946# incompatible versions:
3947# SysV /etc/install, /usr/sbin/install
3948# SunOS /usr/etc/install
3949# IRIX /sbin/install
3950# AIX /bin/install
3951# AmigaOS /C/install, which installs bootblocks on floppy discs
3952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3955# OS/2's system install, which has a completely different semantic
3956# ./install, which can be erroneously created by make from ./install.sh.
3957# Reject install programs that cannot install multiple files.
3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3959printf %s "checking for a BSD-compatible install... " >&6; }
3960if test -z "$INSTALL"; then
3961if test ${ac_cv_path_install+y}
3962then :
3963  printf %s "(cached) " >&6
3964else case e in #(
3965  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968  IFS=$as_save_IFS
3969  case $as_dir in #(((
3970    '') as_dir=./ ;;
3971    */) ;;
3972    *) as_dir=$as_dir/ ;;
3973  esac
3974    # Account for fact that we put trailing slashes in our PATH walk.
3975case $as_dir in #((
3976  ./ | /[cC]/* | \
3977  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3978  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3979  /usr/ucb/* ) ;;
3980  *)
3981    # OSF1 and SCO ODT 3.0 have their own names for install.
3982    # Don't use installbsd from OSF since it installs stuff as root
3983    # by default.
3984    for ac_prog in ginstall scoinst install; do
3985      for ac_exec_ext in '' $ac_executable_extensions; do
3986	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3987	  if test $ac_prog = install &&
3988	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3989	    # AIX install.  It has an incompatible calling convention.
3990	    :
3991	  elif test $ac_prog = install &&
3992	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3993	    # program-specific install script used by HP pwplus--don't use.
3994	    :
3995	  else
3996	    rm -rf conftest.one conftest.two conftest.dir
3997	    echo one > conftest.one
3998	    echo two > conftest.two
3999	    mkdir conftest.dir
4000	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4001	      test -s conftest.one && test -s conftest.two &&
4002	      test -s conftest.dir/conftest.one &&
4003	      test -s conftest.dir/conftest.two
4004	    then
4005	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4006	      break 3
4007	    fi
4008	  fi
4009	fi
4010      done
4011    done
4012    ;;
4013esac
4014
4015  done
4016IFS=$as_save_IFS
4017
4018rm -rf conftest.one conftest.two conftest.dir
4019 ;;
4020esac
4021fi
4022  if test ${ac_cv_path_install+y}; then
4023    INSTALL=$ac_cv_path_install
4024  else
4025    # As a last resort, use the slow shell script.  Don't cache a
4026    # value for INSTALL within a source directory, because that will
4027    # break other packages using the cache if that directory is
4028    # removed, or if the value is a relative name.
4029    INSTALL=$ac_install_sh
4030  fi
4031fi
4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4033printf "%s\n" "$INSTALL" >&6; }
4034
4035# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4036# It thinks the first close brace ends the variable substitution.
4037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4038
4039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4040
4041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4042
4043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4044printf %s "checking whether sleep supports fractional seconds... " >&6; }
4045if test ${am_cv_sleep_fractional_seconds+y}
4046then :
4047  printf %s "(cached) " >&6
4048else case e in #(
4049  e) if sleep 0.001 2>/dev/null
4050then :
4051  am_cv_sleep_fractional_seconds=yes
4052else case e in #(
4053  e) am_cv_sleep_fractional_seconds=no ;;
4054esac
4055fi
4056 ;;
4057esac
4058fi
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4060printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4061
4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4063printf %s "checking filesystem timestamp resolution... " >&6; }
4064if test ${am_cv_filesystem_timestamp_resolution+y}
4065then :
4066  printf %s "(cached) " >&6
4067else case e in #(
4068  e) # Default to the worst case.
4069am_cv_filesystem_timestamp_resolution=2
4070
4071# Only try to go finer than 1 sec if sleep can do it.
4072# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4073# - 1 sec is not much of a win compared to 2 sec, and
4074# - it takes 2 seconds to perform the test whether 1 sec works.
4075#
4076# Instead, just use the default 2s on platforms that have 1s resolution,
4077# accept the extra 1s delay when using $sleep in the Automake tests, in
4078# exchange for not incurring the 2s delay for running the test for all
4079# packages.
4080#
4081am_try_resolutions=
4082if test "$am_cv_sleep_fractional_seconds" = yes; then
4083  # Even a millisecond often causes a bunch of false positives,
4084  # so just try a hundredth of a second. The time saved between .001 and
4085  # .01 is not terribly consequential.
4086  am_try_resolutions="0.01 0.1 $am_try_resolutions"
4087fi
4088
4089# In order to catch current-generation FAT out, we must *modify* files
4090# that already exist; the *creation* timestamp is finer.  Use names
4091# that make ls -t sort them differently when they have equal
4092# timestamps than when they have distinct timestamps, keeping
4093# in mind that ls -t prints the *newest* file first.
4094rm -f conftest.ts?
4095: > conftest.ts1
4096: > conftest.ts2
4097: > conftest.ts3
4098
4099# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
4100# clobber the current shell's arguments. (Outer-level square brackets
4101# are removed by m4; they're present so that m4 does not expand
4102# <dollar><star>; be careful, easy to get confused.)
4103if (
4104     set X `ls -t conftest.ts[12]` &&
4105     {
4106       test "$*" != "X conftest.ts1 conftest.ts2" ||
4107       test "$*" != "X conftest.ts2 conftest.ts1";
4108     }
4109); then :; else
4110  # If neither matched, then we have a broken ls.  This can happen
4111  # if, for instance, CONFIG_SHELL is bash and it inherits a
4112  # broken ls alias from the environment.  This has actually
4113  # happened.  Such a system could not be considered "sane".
4114  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4115  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4116printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4117as_fn_error $? "ls -t produces unexpected output.
4118Make sure there is not a broken ls alias in your environment.
4119See 'config.log' for more details" "$LINENO" 5; }
4120fi
4121
4122for am_try_res in $am_try_resolutions; do
4123  # Any one fine-grained sleep might happen to cross the boundary
4124  # between two values of a coarser actual resolution, but if we do
4125  # two fine-grained sleeps in a row, at least one of them will fall
4126  # entirely within a coarse interval.
4127  echo alpha > conftest.ts1
4128  sleep $am_try_res
4129  echo beta > conftest.ts2
4130  sleep $am_try_res
4131  echo gamma > conftest.ts3
4132
4133  # We assume that 'ls -t' will make use of high-resolution
4134  # timestamps if the operating system supports them at all.
4135  if (set X `ls -t conftest.ts?` &&
4136      test "$2" = conftest.ts3 &&
4137      test "$3" = conftest.ts2 &&
4138      test "$4" = conftest.ts1); then
4139    #
4140    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4141    # because we don't need to test make.
4142    make_ok=true
4143    if test $am_try_res != 1; then
4144      # But if we've succeeded so far with a subsecond resolution, we
4145      # have one more thing to check: make. It can happen that
4146      # everything else supports the subsecond mtimes, but make doesn't;
4147      # notably on macOS, which ships make 3.81 from 2006 (the last one
4148      # released under GPLv2). https://bugs.gnu.org/68808
4149      #
4150      # We test $MAKE if it is defined in the environment, else "make".
4151      # It might get overridden later, but our hope is that in practice
4152      # it does not matter: it is the system "make" which is (by far)
4153      # the most likely to be broken, whereas if the user overrides it,
4154      # probably they did so with a better, or at least not worse, make.
4155      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4156      #
4157      # Create a Makefile (real tab character here):
4158      rm -f conftest.mk
4159      echo 'conftest.ts1: conftest.ts2' >conftest.mk
4160      echo '	touch conftest.ts2' >>conftest.mk
4161      #
4162      # Now, running
4163      #   touch conftest.ts1; touch conftest.ts2; make
4164      # should touch ts1 because ts2 is newer. This could happen by luck,
4165      # but most often, it will fail if make's support is insufficient. So
4166      # test for several consecutive successes.
4167      #
4168      # (We reuse conftest.ts[12] because we still want to modify existing
4169      # files, not create new ones, per above.)
4170      n=0
4171      make=${MAKE-make}
4172      until test $n -eq 3; do
4173        echo one > conftest.ts1
4174        sleep $am_try_res
4175        echo two > conftest.ts2 # ts2 should now be newer than ts1
4176        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4177          make_ok=false
4178          break # out of $n loop
4179        fi
4180        n=`expr $n + 1`
4181      done
4182    fi
4183    #
4184    if $make_ok; then
4185      # Everything we know to check worked out, so call this resolution good.
4186      am_cv_filesystem_timestamp_resolution=$am_try_res
4187      break # out of $am_try_res loop
4188    fi
4189    # Otherwise, we'll go on to check the next resolution.
4190  fi
4191done
4192rm -f conftest.ts?
4193# (end _am_filesystem_timestamp_resolution)
4194 ;;
4195esac
4196fi
4197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4198printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4199
4200# This check should not be cached, as it may vary across builds of
4201# different projects.
4202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4203printf %s "checking whether build environment is sane... " >&6; }
4204# Reject unsafe characters in $srcdir or the absolute working directory
4205# name.  Accept space and tab only in the latter.
4206am_lf='
4207'
4208case `pwd` in
4209  *[\\\"\#\$\&\'\`$am_lf]*)
4210    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4211esac
4212case $srcdir in
4213  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4214    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4215esac
4216
4217# Do 'set' in a subshell so we don't clobber the current shell's
4218# arguments.  Must try -L first in case configure is actually a
4219# symlink; some systems play weird games with the mod time of symlinks
4220# (eg FreeBSD returns the mod time of the symlink's containing
4221# directory).
4222am_build_env_is_sane=no
4223am_has_slept=no
4224rm -f conftest.file
4225for am_try in 1 2; do
4226  echo "timestamp, slept: $am_has_slept" > conftest.file
4227  if (
4228    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4229    if test "$*" = "X"; then
4230      # -L didn't work.
4231      set X `ls -t "$srcdir/configure" conftest.file`
4232    fi
4233    test "$2" = conftest.file
4234  ); then
4235    am_build_env_is_sane=yes
4236    break
4237  fi
4238  # Just in case.
4239  sleep "$am_cv_filesystem_timestamp_resolution"
4240  am_has_slept=yes
4241done
4242
4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4244printf "%s\n" "$am_build_env_is_sane" >&6; }
4245if test "$am_build_env_is_sane" = no; then
4246  as_fn_error $? "newly created file is older than distributed files!
4247Check your system clock" "$LINENO" 5
4248fi
4249
4250# If we didn't sleep, we still need to ensure time stamps of config.status and
4251# generated files are strictly newer.
4252am_sleep_pid=
4253if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4254then :
4255
4256else case e in #(
4257  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4258  am_sleep_pid=$!
4259 ;;
4260esac
4261fi
4262
4263rm -f conftest.file
4264
4265test "$program_prefix" != NONE &&
4266  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4267# Use a double $ so make ignores it.
4268test "$program_suffix" != NONE &&
4269  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4270# Double any \ or $.
4271# By default was 's,x,x', remove it if useless.
4272ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4273program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4274
4275
4276  if test x"${MISSING+set}" != xset; then
4277  MISSING="\${SHELL} '$am_aux_dir/missing'"
4278fi
4279# Use eval to expand $SHELL
4280if eval "$MISSING --is-lightweight"; then
4281  am_missing_run="$MISSING "
4282else
4283  am_missing_run=
4284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4285printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4286fi
4287
4288if test x"${install_sh+set}" != xset; then
4289  case $am_aux_dir in
4290  *\ * | *\	*)
4291    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4292  *)
4293    install_sh="\${SHELL} $am_aux_dir/install-sh"
4294  esac
4295fi
4296
4297# Installed binaries are usually stripped using 'strip' when the user
4298# run "make install-strip".  However 'strip' might not be the right
4299# tool to use in cross-compilation environments, therefore Automake
4300# will honor the 'STRIP' environment variable to overrule this program.
4301if test "$cross_compiling" != no; then
4302  if test -n "$ac_tool_prefix"; then
4303  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4304set dummy ${ac_tool_prefix}strip; ac_word=$2
4305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306printf %s "checking for $ac_word... " >&6; }
4307if test ${ac_cv_prog_STRIP+y}
4308then :
4309  printf %s "(cached) " >&6
4310else case e in #(
4311  e) if test -n "$STRIP"; then
4312  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317  IFS=$as_save_IFS
4318  case $as_dir in #(((
4319    '') as_dir=./ ;;
4320    */) ;;
4321    *) as_dir=$as_dir/ ;;
4322  esac
4323    for ac_exec_ext in '' $ac_executable_extensions; do
4324  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4325    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4326    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4327    break 2
4328  fi
4329done
4330  done
4331IFS=$as_save_IFS
4332
4333fi ;;
4334esac
4335fi
4336STRIP=$ac_cv_prog_STRIP
4337if test -n "$STRIP"; then
4338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4339printf "%s\n" "$STRIP" >&6; }
4340else
4341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342printf "%s\n" "no" >&6; }
4343fi
4344
4345
4346fi
4347if test -z "$ac_cv_prog_STRIP"; then
4348  ac_ct_STRIP=$STRIP
4349  # Extract the first word of "strip", so it can be a program name with args.
4350set dummy strip; ac_word=$2
4351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352printf %s "checking for $ac_word... " >&6; }
4353if test ${ac_cv_prog_ac_ct_STRIP+y}
4354then :
4355  printf %s "(cached) " >&6
4356else case e in #(
4357  e) if test -n "$ac_ct_STRIP"; then
4358  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363  IFS=$as_save_IFS
4364  case $as_dir in #(((
4365    '') as_dir=./ ;;
4366    */) ;;
4367    *) as_dir=$as_dir/ ;;
4368  esac
4369    for ac_exec_ext in '' $ac_executable_extensions; do
4370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4371    ac_cv_prog_ac_ct_STRIP="strip"
4372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4373    break 2
4374  fi
4375done
4376  done
4377IFS=$as_save_IFS
4378
4379fi ;;
4380esac
4381fi
4382ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4383if test -n "$ac_ct_STRIP"; then
4384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4385printf "%s\n" "$ac_ct_STRIP" >&6; }
4386else
4387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388printf "%s\n" "no" >&6; }
4389fi
4390
4391  if test "x$ac_ct_STRIP" = x; then
4392    STRIP=":"
4393  else
4394    case $cross_compiling:$ac_tool_warned in
4395yes:)
4396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398ac_tool_warned=yes ;;
4399esac
4400    STRIP=$ac_ct_STRIP
4401  fi
4402else
4403  STRIP="$ac_cv_prog_STRIP"
4404fi
4405
4406fi
4407INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4408
4409
4410  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4411printf %s "checking for a race-free mkdir -p... " >&6; }
4412if test -z "$MKDIR_P"; then
4413  if test ${ac_cv_path_mkdir+y}
4414then :
4415  printf %s "(cached) " >&6
4416else case e in #(
4417  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4419do
4420  IFS=$as_save_IFS
4421  case $as_dir in #(((
4422    '') as_dir=./ ;;
4423    */) ;;
4424    *) as_dir=$as_dir/ ;;
4425  esac
4426    for ac_prog in mkdir gmkdir; do
4427	 for ac_exec_ext in '' $ac_executable_extensions; do
4428	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4429	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4430	     'mkdir ('*'coreutils) '* | \
4431	     *'BusyBox '* | \
4432	     'mkdir (fileutils) '4.1*)
4433	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4434	       break 3;;
4435	   esac
4436	 done
4437       done
4438  done
4439IFS=$as_save_IFS
4440 ;;
4441esac
4442fi
4443
4444  test -d ./--version && rmdir ./--version
4445  if test ${ac_cv_path_mkdir+y}; then
4446    MKDIR_P="$ac_cv_path_mkdir -p"
4447  else
4448    # As a last resort, use plain mkdir -p,
4449    # in the hope it doesn't have the bugs of ancient mkdir.
4450    MKDIR_P='mkdir -p'
4451  fi
4452fi
4453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4454printf "%s\n" "$MKDIR_P" >&6; }
4455
4456for ac_prog in gawk mawk nawk awk
4457do
4458  # Extract the first word of "$ac_prog", so it can be a program name with args.
4459set dummy $ac_prog; ac_word=$2
4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461printf %s "checking for $ac_word... " >&6; }
4462if test ${ac_cv_prog_AWK+y}
4463then :
4464  printf %s "(cached) " >&6
4465else case e in #(
4466  e) if test -n "$AWK"; then
4467  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472  IFS=$as_save_IFS
4473  case $as_dir in #(((
4474    '') as_dir=./ ;;
4475    */) ;;
4476    *) as_dir=$as_dir/ ;;
4477  esac
4478    for ac_exec_ext in '' $ac_executable_extensions; do
4479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4480    ac_cv_prog_AWK="$ac_prog"
4481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4482    break 2
4483  fi
4484done
4485  done
4486IFS=$as_save_IFS
4487
4488fi ;;
4489esac
4490fi
4491AWK=$ac_cv_prog_AWK
4492if test -n "$AWK"; then
4493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4494printf "%s\n" "$AWK" >&6; }
4495else
4496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497printf "%s\n" "no" >&6; }
4498fi
4499
4500
4501  test -n "$AWK" && break
4502done
4503
4504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4505printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4506set x ${MAKE-make}
4507ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4508if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4509then :
4510  printf %s "(cached) " >&6
4511else case e in #(
4512  e) cat >conftest.make <<\_ACEOF
4513SHELL = /bin/sh
4514all:
4515	@echo '@@@%%%=$(MAKE)=@@@%%%'
4516_ACEOF
4517# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4518case `${MAKE-make} -f conftest.make 2>/dev/null` in
4519  *@@@%%%=?*=@@@%%%*)
4520    eval ac_cv_prog_make_${ac_make}_set=yes;;
4521  *)
4522    eval ac_cv_prog_make_${ac_make}_set=no;;
4523esac
4524rm -f conftest.make ;;
4525esac
4526fi
4527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4529printf "%s\n" "yes" >&6; }
4530  SET_MAKE=
4531else
4532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533printf "%s\n" "no" >&6; }
4534  SET_MAKE="MAKE=${MAKE-make}"
4535fi
4536
4537rm -rf .tst 2>/dev/null
4538mkdir .tst 2>/dev/null
4539if test -d .tst; then
4540  am__leading_dot=.
4541else
4542  am__leading_dot=_
4543fi
4544rmdir .tst 2>/dev/null
4545
4546DEPDIR="${am__leading_dot}deps"
4547
4548ac_config_commands="$ac_config_commands depfiles"
4549
4550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4551printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4552cat > confinc.mk << 'END'
4553am__doit:
4554	@echo this is the am__doit target >confinc.out
4555.PHONY: am__doit
4556END
4557am__include="#"
4558am__quote=
4559# BSD make does it like this.
4560echo '.include "confinc.mk" # ignored' > confmf.BSD
4561# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4562echo 'include confinc.mk # ignored' > confmf.GNU
4563_am_result=no
4564for s in GNU BSD; do
4565  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4566   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }
4570  case $?:`cat confinc.out 2>/dev/null` in #(
4571  '0:this is the am__doit target') :
4572    case $s in #(
4573  BSD) :
4574    am__include='.include' am__quote='"' ;; #(
4575  *) :
4576    am__include='include' am__quote='' ;;
4577esac ;; #(
4578  *) :
4579     ;;
4580esac
4581  if test "$am__include" != "#"; then
4582    _am_result="yes ($s style)"
4583    break
4584  fi
4585done
4586rm -f confinc.* confmf.*
4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4588printf "%s\n" "${_am_result}" >&6; }
4589
4590# Check whether --enable-dependency-tracking was given.
4591if test ${enable_dependency_tracking+y}
4592then :
4593  enableval=$enable_dependency_tracking;
4594fi
4595
4596if test "x$enable_dependency_tracking" != xno; then
4597  am_depcomp="$ac_aux_dir/depcomp"
4598  AMDEPBACKSLASH='\'
4599  am__nodep='_no'
4600fi
4601 if test "x$enable_dependency_tracking" != xno; then
4602  AMDEP_TRUE=
4603  AMDEP_FALSE='#'
4604else
4605  AMDEP_TRUE='#'
4606  AMDEP_FALSE=
4607fi
4608
4609
4610AM_DEFAULT_VERBOSITY=1
4611# Check whether --enable-silent-rules was given.
4612if test ${enable_silent_rules+y}
4613then :
4614  enableval=$enable_silent_rules;
4615fi
4616
4617am_make=${MAKE-make}
4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4619printf %s "checking whether $am_make supports nested variables... " >&6; }
4620if test ${am_cv_make_support_nested_variables+y}
4621then :
4622  printf %s "(cached) " >&6
4623else case e in #(
4624  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4625BAR0=false
4626BAR1=true
4627V=1
4628am__doit:
4629	@$(TRUE)
4630.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4631  am_cv_make_support_nested_variables=yes
4632else
4633  am_cv_make_support_nested_variables=no
4634fi ;;
4635esac
4636fi
4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4638printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4639AM_BACKSLASH='\'
4640
4641am__rm_f_notfound=
4642if (rm -f && rm -fr && rm -rf) 2>/dev/null
4643then :
4644
4645else case e in #(
4646  e) am__rm_f_notfound='""' ;;
4647esac
4648fi
4649
4650
4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4652printf %s "checking xargs -n works... " >&6; }
4653if test ${am_cv_xargs_n_works+y}
4654then :
4655  printf %s "(cached) " >&6
4656else case e in #(
4657  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
46583"
4659then :
4660  am_cv_xargs_n_works=yes
4661else case e in #(
4662  e) am_cv_xargs_n_works=no ;;
4663esac
4664fi ;;
4665esac
4666fi
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4668printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4669if test "$am_cv_xargs_n_works" = yes
4670then :
4671  am__xargs_n='xargs -n'
4672else case e in #(
4673  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4674 ;;
4675esac
4676fi
4677
4678if test "`cd $srcdir && pwd`" != "`pwd`"; then
4679  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4680  # is not polluted with repeated "-I."
4681  am__isrc=' -I$(srcdir)'
4682  # test to see if srcdir already configured
4683  if test -f $srcdir/config.status; then
4684    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4685  fi
4686fi
4687
4688# test whether we have cygpath
4689if test -z "$CYGPATH_W"; then
4690  if (cygpath --version) >/dev/null 2>/dev/null; then
4691    CYGPATH_W='cygpath -w'
4692  else
4693    CYGPATH_W=echo
4694  fi
4695fi
4696
4697
4698# Define the identity of the package.
4699 PACKAGE='libxshmfence'
4700 VERSION='1.3.3'
4701
4702
4703printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4704
4705
4706printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4707
4708# Some tools Automake needs.
4709
4710ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4711
4712
4713AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4714
4715
4716AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4717
4718
4719AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4720
4721
4722MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4723
4724# For better backward compatibility.  To be removed once Automake 1.9.x
4725# dies out for good.  For more background, see:
4726# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4727# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4728mkdir_p='$(MKDIR_P)'
4729
4730# We need awk for the "check" target (and possibly the TAP driver).  The
4731# system "awk" is bad on some platforms.
4732# Always define AMTAR for backward compatibility.  Yes, it's still used
4733# in the wild :-(  We should find a proper way to deprecate it ...
4734AMTAR='$${TAR-tar}'
4735
4736
4737# We'll loop over all known methods to create a tar archive until one works.
4738_am_tools='gnutar  pax cpio none'
4739
4740am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4741
4742
4743
4744
4745
4746depcc="$CC"   am_compiler_list=
4747
4748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4749printf %s "checking dependency style of $depcc... " >&6; }
4750if test ${am_cv_CC_dependencies_compiler_type+y}
4751then :
4752  printf %s "(cached) " >&6
4753else case e in #(
4754  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4755  # We make a subdir and do the tests there.  Otherwise we can end up
4756  # making bogus files that we don't know about and never remove.  For
4757  # instance it was reported that on HP-UX the gcc test will end up
4758  # making a dummy file named 'D' -- because '-MD' means "put the output
4759  # in D".
4760  rm -rf conftest.dir
4761  mkdir conftest.dir
4762  # Copy depcomp to subdir because otherwise we won't find it if we're
4763  # using a relative directory.
4764  cp "$am_depcomp" conftest.dir
4765  cd conftest.dir
4766  # We will build objects and dependencies in a subdirectory because
4767  # it helps to detect inapplicable dependency modes.  For instance
4768  # both Tru64's cc and ICC support -MD to output dependencies as a
4769  # side effect of compilation, but ICC will put the dependencies in
4770  # the current directory while Tru64 will put them in the object
4771  # directory.
4772  mkdir sub
4773
4774  am_cv_CC_dependencies_compiler_type=none
4775  if test "$am_compiler_list" = ""; then
4776     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4777  fi
4778  am__universal=false
4779  case " $depcc " in #(
4780     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4781     esac
4782
4783  for depmode in $am_compiler_list; do
4784    # Setup a source with many dependencies, because some compilers
4785    # like to wrap large dependency lists on column 80 (with \), and
4786    # we should not choose a depcomp mode which is confused by this.
4787    #
4788    # We need to recreate these files for each test, as the compiler may
4789    # overwrite some of them when testing with obscure command lines.
4790    # This happens at least with the AIX C compiler.
4791    : > sub/conftest.c
4792    for i in 1 2 3 4 5 6; do
4793      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4794      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4795      # Solaris 10 /bin/sh.
4796      echo '/* dummy */' > sub/conftst$i.h
4797    done
4798    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4799
4800    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4801    # mode.  It turns out that the SunPro C++ compiler does not properly
4802    # handle '-M -o', and we need to detect this.  Also, some Intel
4803    # versions had trouble with output in subdirs.
4804    am__obj=sub/conftest.${OBJEXT-o}
4805    am__minus_obj="-o $am__obj"
4806    case $depmode in
4807    gcc)
4808      # This depmode causes a compiler race in universal mode.
4809      test "$am__universal" = false || continue
4810      ;;
4811    nosideeffect)
4812      # After this tag, mechanisms are not by side-effect, so they'll
4813      # only be used when explicitly requested.
4814      if test "x$enable_dependency_tracking" = xyes; then
4815	continue
4816      else
4817	break
4818      fi
4819      ;;
4820    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4821      # This compiler won't grok '-c -o', but also, the minuso test has
4822      # not run yet.  These depmodes are late enough in the game, and
4823      # so weak that their functioning should not be impacted.
4824      am__obj=conftest.${OBJEXT-o}
4825      am__minus_obj=
4826      ;;
4827    none) break ;;
4828    esac
4829    if depmode=$depmode \
4830       source=sub/conftest.c object=$am__obj \
4831       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4832       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4833         >/dev/null 2>conftest.err &&
4834       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4835       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4836       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4837       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4838      # icc doesn't choke on unknown options, it will just issue warnings
4839      # or remarks (even with -Werror).  So we grep stderr for any message
4840      # that says an option was ignored or not supported.
4841      # When given -MP, icc 7.0 and 7.1 complain thus:
4842      #   icc: Command line warning: ignoring option '-M'; no argument required
4843      # The diagnosis changed in icc 8.0:
4844      #   icc: Command line remark: option '-MP' not supported
4845      if (grep 'ignoring option' conftest.err ||
4846          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4847        am_cv_CC_dependencies_compiler_type=$depmode
4848        break
4849      fi
4850    fi
4851  done
4852
4853  cd ..
4854  rm -rf conftest.dir
4855else
4856  am_cv_CC_dependencies_compiler_type=none
4857fi
4858 ;;
4859esac
4860fi
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4862printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4863CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4864
4865 if
4866  test "x$enable_dependency_tracking" != xno \
4867  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4868  am__fastdepCC_TRUE=
4869  am__fastdepCC_FALSE='#'
4870else
4871  am__fastdepCC_TRUE='#'
4872  am__fastdepCC_FALSE=
4873fi
4874
4875
4876# Variables for tags utilities; see am/tags.am
4877if test -z "$CTAGS"; then
4878  CTAGS=ctags
4879fi
4880
4881if test -z "$ETAGS"; then
4882  ETAGS=etags
4883fi
4884
4885if test -z "$CSCOPE"; then
4886  CSCOPE=cscope
4887fi
4888
4889
4890
4891
4892
4893
4894
4895
4896# Initialize libtool
4897case `pwd` in
4898  *\ * | *\	*)
4899    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4900printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4901esac
4902
4903
4904
4905macro_version='2.5.4'
4906macro_revision='2.5.4'
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921ltmain=$ac_aux_dir/ltmain.sh
4922
4923
4924
4925  # Make sure we can run config.sub.
4926$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4927  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4928
4929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4930printf %s "checking build system type... " >&6; }
4931if test ${ac_cv_build+y}
4932then :
4933  printf %s "(cached) " >&6
4934else case e in #(
4935  e) ac_build_alias=$build_alias
4936test "x$ac_build_alias" = x &&
4937  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4938test "x$ac_build_alias" = x &&
4939  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4940ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4941  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4942 ;;
4943esac
4944fi
4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4946printf "%s\n" "$ac_cv_build" >&6; }
4947case $ac_cv_build in
4948*-*-*) ;;
4949*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4950esac
4951build=$ac_cv_build
4952ac_save_IFS=$IFS; IFS='-'
4953set x $ac_cv_build
4954shift
4955build_cpu=$1
4956build_vendor=$2
4957shift; shift
4958# Remember, the first character of IFS is used to create $*,
4959# except with old shells:
4960build_os=$*
4961IFS=$ac_save_IFS
4962case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4963
4964
4965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4966printf %s "checking host system type... " >&6; }
4967if test ${ac_cv_host+y}
4968then :
4969  printf %s "(cached) " >&6
4970else case e in #(
4971  e) if test "x$host_alias" = x; then
4972  ac_cv_host=$ac_cv_build
4973else
4974  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4975    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4976fi
4977 ;;
4978esac
4979fi
4980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4981printf "%s\n" "$ac_cv_host" >&6; }
4982case $ac_cv_host in
4983*-*-*) ;;
4984*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4985esac
4986host=$ac_cv_host
4987ac_save_IFS=$IFS; IFS='-'
4988set x $ac_cv_host
4989shift
4990host_cpu=$1
4991host_vendor=$2
4992shift; shift
4993# Remember, the first character of IFS is used to create $*,
4994# except with old shells:
4995host_os=$*
4996IFS=$ac_save_IFS
4997case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4998
4999
5000# Backslashify metacharacters that are still active within
5001# double-quoted strings.
5002sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5003
5004# Same as above, but do not quote variable references.
5005double_quote_subst='s/\(["`\\]\)/\\\1/g'
5006
5007# Sed substitution to delay expansion of an escaped shell variable in a
5008# double_quote_subst'ed string.
5009delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5010
5011# Sed substitution to delay expansion of an escaped single quote.
5012delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5013
5014# Sed substitution to avoid accidental globbing in evaled expressions
5015no_glob_subst='s/\*/\\\*/g'
5016
5017ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5018ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5019ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5020
5021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5022printf %s "checking how to print strings... " >&6; }
5023# Test print first, because it will be a builtin if present.
5024if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5025   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5026  ECHO='print -r --'
5027elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5028  ECHO='printf %s\n'
5029else
5030  # Use this function as a fallback that always works.
5031  func_fallback_echo ()
5032  {
5033    eval 'cat <<_LTECHO_EOF
5034$1
5035_LTECHO_EOF'
5036  }
5037  ECHO='func_fallback_echo'
5038fi
5039
5040# func_echo_all arg...
5041# Invoke $ECHO with all args, space-separated.
5042func_echo_all ()
5043{
5044    $ECHO ""
5045}
5046
5047case $ECHO in
5048  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5049printf "%s\n" "printf" >&6; } ;;
5050  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5051printf "%s\n" "print -r" >&6; } ;;
5052  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5053printf "%s\n" "cat" >&6; } ;;
5054esac
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5070printf %s "checking for a sed that does not truncate output... " >&6; }
5071if test ${ac_cv_path_SED+y}
5072then :
5073  printf %s "(cached) " >&6
5074else case e in #(
5075  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5076     for ac_i in 1 2 3 4 5 6 7; do
5077       ac_script="$ac_script$as_nl$ac_script"
5078     done
5079     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5080     { ac_script=; unset ac_script;}
5081     if test -z "$SED"; then
5082  ac_path_SED_found=false
5083  # Loop through the user's path and test for each of PROGNAME-LIST
5084  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087  IFS=$as_save_IFS
5088  case $as_dir in #(((
5089    '') as_dir=./ ;;
5090    */) ;;
5091    *) as_dir=$as_dir/ ;;
5092  esac
5093    for ac_prog in sed gsed
5094   do
5095    for ac_exec_ext in '' $ac_executable_extensions; do
5096      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5097      as_fn_executable_p "$ac_path_SED" || continue
5098# Check for GNU ac_path_SED and select it if it is found.
5099  # Check for GNU $ac_path_SED
5100case `"$ac_path_SED" --version 2>&1` in #(
5101*GNU*)
5102  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5103#(
5104*)
5105  ac_count=0
5106  printf %s 0123456789 >"conftest.in"
5107  while :
5108  do
5109    cat "conftest.in" "conftest.in" >"conftest.tmp"
5110    mv "conftest.tmp" "conftest.in"
5111    cp "conftest.in" "conftest.nl"
5112    printf "%s\n" '' >> "conftest.nl"
5113    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5114    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5115    as_fn_arith $ac_count + 1 && ac_count=$as_val
5116    if test $ac_count -gt ${ac_path_SED_max-0}; then
5117      # Best one so far, save it but keep looking for a better one
5118      ac_cv_path_SED="$ac_path_SED"
5119      ac_path_SED_max=$ac_count
5120    fi
5121    # 10*(2^10) chars as input seems more than enough
5122    test $ac_count -gt 10 && break
5123  done
5124  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5125esac
5126
5127      $ac_path_SED_found && break 3
5128    done
5129  done
5130  done
5131IFS=$as_save_IFS
5132  if test -z "$ac_cv_path_SED"; then
5133    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5134  fi
5135else
5136  ac_cv_path_SED=$SED
5137fi
5138 ;;
5139esac
5140fi
5141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5142printf "%s\n" "$ac_cv_path_SED" >&6; }
5143 SED="$ac_cv_path_SED"
5144  rm -f conftest.sed
5145
5146test -z "$SED" && SED=sed
5147Xsed="$SED -e 1s/^X//"
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5160printf %s "checking for grep that handles long lines and -e... " >&6; }
5161if test ${ac_cv_path_GREP+y}
5162then :
5163  printf %s "(cached) " >&6
5164else case e in #(
5165  e) if test -z "$GREP"; then
5166  ac_path_GREP_found=false
5167  # Loop through the user's path and test for each of PROGNAME-LIST
5168  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170do
5171  IFS=$as_save_IFS
5172  case $as_dir in #(((
5173    '') as_dir=./ ;;
5174    */) ;;
5175    *) as_dir=$as_dir/ ;;
5176  esac
5177    for ac_prog in grep ggrep
5178   do
5179    for ac_exec_ext in '' $ac_executable_extensions; do
5180      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5181      as_fn_executable_p "$ac_path_GREP" || continue
5182# Check for GNU ac_path_GREP and select it if it is found.
5183  # Check for GNU $ac_path_GREP
5184case `"$ac_path_GREP" --version 2>&1` in #(
5185*GNU*)
5186  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5187#(
5188*)
5189  ac_count=0
5190  printf %s 0123456789 >"conftest.in"
5191  while :
5192  do
5193    cat "conftest.in" "conftest.in" >"conftest.tmp"
5194    mv "conftest.tmp" "conftest.in"
5195    cp "conftest.in" "conftest.nl"
5196    printf "%s\n" 'GREP' >> "conftest.nl"
5197    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199    as_fn_arith $ac_count + 1 && ac_count=$as_val
5200    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5201      # Best one so far, save it but keep looking for a better one
5202      ac_cv_path_GREP="$ac_path_GREP"
5203      ac_path_GREP_max=$ac_count
5204    fi
5205    # 10*(2^10) chars as input seems more than enough
5206    test $ac_count -gt 10 && break
5207  done
5208  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209esac
5210
5211      $ac_path_GREP_found && break 3
5212    done
5213  done
5214  done
5215IFS=$as_save_IFS
5216  if test -z "$ac_cv_path_GREP"; then
5217    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218  fi
5219else
5220  ac_cv_path_GREP=$GREP
5221fi
5222 ;;
5223esac
5224fi
5225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5226printf "%s\n" "$ac_cv_path_GREP" >&6; }
5227 GREP="$ac_cv_path_GREP"
5228
5229
5230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5231printf %s "checking for egrep... " >&6; }
5232if test ${ac_cv_path_EGREP+y}
5233then :
5234  printf %s "(cached) " >&6
5235else case e in #(
5236  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5237   then ac_cv_path_EGREP="$GREP -E"
5238   else
5239     if test -z "$EGREP"; then
5240  ac_path_EGREP_found=false
5241  # Loop through the user's path and test for each of PROGNAME-LIST
5242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244do
5245  IFS=$as_save_IFS
5246  case $as_dir in #(((
5247    '') as_dir=./ ;;
5248    */) ;;
5249    *) as_dir=$as_dir/ ;;
5250  esac
5251    for ac_prog in egrep
5252   do
5253    for ac_exec_ext in '' $ac_executable_extensions; do
5254      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5255      as_fn_executable_p "$ac_path_EGREP" || continue
5256# Check for GNU ac_path_EGREP and select it if it is found.
5257  # Check for GNU $ac_path_EGREP
5258case `"$ac_path_EGREP" --version 2>&1` in #(
5259*GNU*)
5260  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5261#(
5262*)
5263  ac_count=0
5264  printf %s 0123456789 >"conftest.in"
5265  while :
5266  do
5267    cat "conftest.in" "conftest.in" >"conftest.tmp"
5268    mv "conftest.tmp" "conftest.in"
5269    cp "conftest.in" "conftest.nl"
5270    printf "%s\n" 'EGREP' >> "conftest.nl"
5271    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5272    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5273    as_fn_arith $ac_count + 1 && ac_count=$as_val
5274    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5275      # Best one so far, save it but keep looking for a better one
5276      ac_cv_path_EGREP="$ac_path_EGREP"
5277      ac_path_EGREP_max=$ac_count
5278    fi
5279    # 10*(2^10) chars as input seems more than enough
5280    test $ac_count -gt 10 && break
5281  done
5282  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283esac
5284
5285      $ac_path_EGREP_found && break 3
5286    done
5287  done
5288  done
5289IFS=$as_save_IFS
5290  if test -z "$ac_cv_path_EGREP"; then
5291    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292  fi
5293else
5294  ac_cv_path_EGREP=$EGREP
5295fi
5296
5297   fi ;;
5298esac
5299fi
5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5301printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5302 EGREP="$ac_cv_path_EGREP"
5303
5304         EGREP_TRADITIONAL=$EGREP
5305 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5306
5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5308printf %s "checking for fgrep... " >&6; }
5309if test ${ac_cv_path_FGREP+y}
5310then :
5311  printf %s "(cached) " >&6
5312else case e in #(
5313  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5314   then ac_cv_path_FGREP="$GREP -F"
5315   else
5316     if test -z "$FGREP"; then
5317  ac_path_FGREP_found=false
5318  # Loop through the user's path and test for each of PROGNAME-LIST
5319  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321do
5322  IFS=$as_save_IFS
5323  case $as_dir in #(((
5324    '') as_dir=./ ;;
5325    */) ;;
5326    *) as_dir=$as_dir/ ;;
5327  esac
5328    for ac_prog in fgrep
5329   do
5330    for ac_exec_ext in '' $ac_executable_extensions; do
5331      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5332      as_fn_executable_p "$ac_path_FGREP" || continue
5333# Check for GNU ac_path_FGREP and select it if it is found.
5334  # Check for GNU $ac_path_FGREP
5335case `"$ac_path_FGREP" --version 2>&1` in #(
5336*GNU*)
5337  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5338#(
5339*)
5340  ac_count=0
5341  printf %s 0123456789 >"conftest.in"
5342  while :
5343  do
5344    cat "conftest.in" "conftest.in" >"conftest.tmp"
5345    mv "conftest.tmp" "conftest.in"
5346    cp "conftest.in" "conftest.nl"
5347    printf "%s\n" 'FGREP' >> "conftest.nl"
5348    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350    as_fn_arith $ac_count + 1 && ac_count=$as_val
5351    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5352      # Best one so far, save it but keep looking for a better one
5353      ac_cv_path_FGREP="$ac_path_FGREP"
5354      ac_path_FGREP_max=$ac_count
5355    fi
5356    # 10*(2^10) chars as input seems more than enough
5357    test $ac_count -gt 10 && break
5358  done
5359  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360esac
5361
5362      $ac_path_FGREP_found && break 3
5363    done
5364  done
5365  done
5366IFS=$as_save_IFS
5367  if test -z "$ac_cv_path_FGREP"; then
5368    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369  fi
5370else
5371  ac_cv_path_FGREP=$FGREP
5372fi
5373
5374   fi ;;
5375esac
5376fi
5377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5378printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5379 FGREP="$ac_cv_path_FGREP"
5380
5381
5382test -z "$GREP" && GREP=grep
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402# Check whether --with-gnu-ld was given.
5403if test ${with_gnu_ld+y}
5404then :
5405  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5406else case e in #(
5407  e) with_gnu_ld=no ;;
5408esac
5409fi
5410
5411ac_prog=ld
5412if test yes = "$GCC"; then
5413  # Check if gcc -print-prog-name=ld gives a path.
5414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5415printf %s "checking for ld used by $CC... " >&6; }
5416  case $host in
5417  *-*-mingw* | *-*-windows*)
5418    # gcc leaves a trailing carriage return, which upsets mingw
5419    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5420  *)
5421    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5422  esac
5423  case $ac_prog in
5424    # Accept absolute paths.
5425    [\\/]* | ?:[\\/]*)
5426      re_direlt='/[^/][^/]*/\.\./'
5427      # Canonicalize the pathname of ld
5428      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5429      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5430	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5431      done
5432      test -z "$LD" && LD=$ac_prog
5433      ;;
5434  "")
5435    # If it fails, then pretend we aren't using GCC.
5436    ac_prog=ld
5437    ;;
5438  *)
5439    # If it is relative, then search for the first ld in PATH.
5440    with_gnu_ld=unknown
5441    ;;
5442  esac
5443elif test yes = "$with_gnu_ld"; then
5444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5445printf %s "checking for GNU ld... " >&6; }
5446else
5447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5448printf %s "checking for non-GNU ld... " >&6; }
5449fi
5450if test ${lt_cv_path_LD+y}
5451then :
5452  printf %s "(cached) " >&6
5453else case e in #(
5454  e) if test -z "$LD"; then
5455  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5456  for ac_dir in $PATH; do
5457    IFS=$lt_save_ifs
5458    test -z "$ac_dir" && ac_dir=.
5459    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5460      lt_cv_path_LD=$ac_dir/$ac_prog
5461      # Check to see if the program is GNU ld.  I'd rather use --version,
5462      # but apparently some variants of GNU ld only accept -v.
5463      # Break only if it was the GNU/non-GNU ld that we prefer.
5464      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5465      *GNU* | *'with BFD'*)
5466	test no != "$with_gnu_ld" && break
5467	;;
5468      *)
5469	test yes != "$with_gnu_ld" && break
5470	;;
5471      esac
5472    fi
5473  done
5474  IFS=$lt_save_ifs
5475else
5476  lt_cv_path_LD=$LD # Let the user override the test with a path.
5477fi ;;
5478esac
5479fi
5480
5481LD=$lt_cv_path_LD
5482if test -n "$LD"; then
5483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5484printf "%s\n" "$LD" >&6; }
5485else
5486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487printf "%s\n" "no" >&6; }
5488fi
5489test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5491printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5492if test ${lt_cv_prog_gnu_ld+y}
5493then :
5494  printf %s "(cached) " >&6
5495else case e in #(
5496  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5497case `$LD -v 2>&1 </dev/null` in
5498*GNU* | *'with BFD'*)
5499  lt_cv_prog_gnu_ld=yes
5500  ;;
5501*)
5502  lt_cv_prog_gnu_ld=no
5503  ;;
5504esac ;;
5505esac
5506fi
5507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5508printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5509with_gnu_ld=$lt_cv_prog_gnu_ld
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5520printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5521if test ${lt_cv_path_NM+y}
5522then :
5523  printf %s "(cached) " >&6
5524else case e in #(
5525  e) if test -n "$NM"; then
5526  # Let the user override the test.
5527  lt_cv_path_NM=$NM
5528else
5529  lt_nm_to_check=${ac_tool_prefix}nm
5530  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5531    lt_nm_to_check="$lt_nm_to_check nm"
5532  fi
5533  for lt_tmp_nm in $lt_nm_to_check; do
5534    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5535    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5536      IFS=$lt_save_ifs
5537      test -z "$ac_dir" && ac_dir=.
5538      tmp_nm=$ac_dir/$lt_tmp_nm
5539      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5540	# Check to see if the nm accepts a BSD-compat flag.
5541	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5542	#   nm: unknown option "B" ignored
5543	# Tru64's nm complains that /dev/null is an invalid object file
5544	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5545	case $build_os in
5546	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5547	*) lt_bad_file=/dev/null ;;
5548	esac
5549	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5550	*$lt_bad_file* | *'Invalid file or object type'*)
5551	  lt_cv_path_NM="$tmp_nm -B"
5552	  break 2
5553	  ;;
5554	*)
5555	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5556	  */dev/null*)
5557	    lt_cv_path_NM="$tmp_nm -p"
5558	    break 2
5559	    ;;
5560	  *)
5561	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5562	    continue # so that we can try to find one that supports BSD flags
5563	    ;;
5564	  esac
5565	  ;;
5566	esac
5567      fi
5568    done
5569    IFS=$lt_save_ifs
5570  done
5571  : ${lt_cv_path_NM=no}
5572fi ;;
5573esac
5574fi
5575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5576printf "%s\n" "$lt_cv_path_NM" >&6; }
5577if test no != "$lt_cv_path_NM"; then
5578  NM=$lt_cv_path_NM
5579else
5580  # Didn't find any BSD compatible name lister, look for dumpbin.
5581  if test -n "$DUMPBIN"; then :
5582    # Let the user override the test.
5583  else
5584    if test -n "$ac_tool_prefix"; then
5585  for ac_prog in dumpbin "link -dump"
5586  do
5587    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590printf %s "checking for $ac_word... " >&6; }
5591if test ${ac_cv_prog_DUMPBIN+y}
5592then :
5593  printf %s "(cached) " >&6
5594else case e in #(
5595  e) if test -n "$DUMPBIN"; then
5596  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601  IFS=$as_save_IFS
5602  case $as_dir in #(((
5603    '') as_dir=./ ;;
5604    */) ;;
5605    *) as_dir=$as_dir/ ;;
5606  esac
5607    for ac_exec_ext in '' $ac_executable_extensions; do
5608  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5609    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5610    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5611    break 2
5612  fi
5613done
5614  done
5615IFS=$as_save_IFS
5616
5617fi ;;
5618esac
5619fi
5620DUMPBIN=$ac_cv_prog_DUMPBIN
5621if test -n "$DUMPBIN"; then
5622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5623printf "%s\n" "$DUMPBIN" >&6; }
5624else
5625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626printf "%s\n" "no" >&6; }
5627fi
5628
5629
5630    test -n "$DUMPBIN" && break
5631  done
5632fi
5633if test -z "$DUMPBIN"; then
5634  ac_ct_DUMPBIN=$DUMPBIN
5635  for ac_prog in dumpbin "link -dump"
5636do
5637  # Extract the first word of "$ac_prog", so it can be a program name with args.
5638set dummy $ac_prog; ac_word=$2
5639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640printf %s "checking for $ac_word... " >&6; }
5641if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5642then :
5643  printf %s "(cached) " >&6
5644else case e in #(
5645  e) if test -n "$ac_ct_DUMPBIN"; then
5646  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5647else
5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649for as_dir in $PATH
5650do
5651  IFS=$as_save_IFS
5652  case $as_dir in #(((
5653    '') as_dir=./ ;;
5654    */) ;;
5655    *) as_dir=$as_dir/ ;;
5656  esac
5657    for ac_exec_ext in '' $ac_executable_extensions; do
5658  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5659    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5660    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5661    break 2
5662  fi
5663done
5664  done
5665IFS=$as_save_IFS
5666
5667fi ;;
5668esac
5669fi
5670ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5671if test -n "$ac_ct_DUMPBIN"; then
5672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5673printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5674else
5675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676printf "%s\n" "no" >&6; }
5677fi
5678
5679
5680  test -n "$ac_ct_DUMPBIN" && break
5681done
5682
5683  if test "x$ac_ct_DUMPBIN" = x; then
5684    DUMPBIN=":"
5685  else
5686    case $cross_compiling:$ac_tool_warned in
5687yes:)
5688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690ac_tool_warned=yes ;;
5691esac
5692    DUMPBIN=$ac_ct_DUMPBIN
5693  fi
5694fi
5695
5696    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5697    *COFF*)
5698      DUMPBIN="$DUMPBIN -symbols -headers"
5699      ;;
5700    *)
5701      DUMPBIN=:
5702      ;;
5703    esac
5704  fi
5705
5706  if test : != "$DUMPBIN"; then
5707    NM=$DUMPBIN
5708  fi
5709fi
5710test -z "$NM" && NM=nm
5711
5712
5713
5714
5715
5716
5717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5718printf %s "checking the name lister ($NM) interface... " >&6; }
5719if test ${lt_cv_nm_interface+y}
5720then :
5721  printf %s "(cached) " >&6
5722else case e in #(
5723  e) lt_cv_nm_interface="BSD nm"
5724  echo "int some_variable = 0;" > conftest.$ac_ext
5725  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5726  (eval "$ac_compile" 2>conftest.err)
5727  cat conftest.err >&5
5728  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5729  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5730  cat conftest.err >&5
5731  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5732  cat conftest.out >&5
5733  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5734    lt_cv_nm_interface="MS dumpbin"
5735  fi
5736  rm -f conftest* ;;
5737esac
5738fi
5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5740printf "%s\n" "$lt_cv_nm_interface" >&6; }
5741
5742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5743printf %s "checking whether ln -s works... " >&6; }
5744LN_S=$as_ln_s
5745if test "$LN_S" = "ln -s"; then
5746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5747printf "%s\n" "yes" >&6; }
5748else
5749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5750printf "%s\n" "no, using $LN_S" >&6; }
5751fi
5752
5753# find the maximum length of command line arguments
5754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5755printf %s "checking the maximum length of command line arguments... " >&6; }
5756if test ${lt_cv_sys_max_cmd_len+y}
5757then :
5758  printf %s "(cached) " >&6
5759else case e in #(
5760  e)   i=0
5761  teststring=ABCD
5762
5763  case $build_os in
5764  msdosdjgpp*)
5765    # On DJGPP, this test can blow up pretty badly due to problems in libc
5766    # (any single argument exceeding 2000 bytes causes a buffer overrun
5767    # during glob expansion).  Even if it were fixed, the result of this
5768    # check would be larger than it should be.
5769    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5770    ;;
5771
5772  gnu* | ironclad*)
5773    # Under GNU Hurd and Ironclad, this test is not required because there
5774    # is no limit to the length of command line arguments.
5775    # Libtool will interpret -1 as no limit whatsoever
5776    lt_cv_sys_max_cmd_len=-1;
5777    ;;
5778
5779  cygwin* | mingw* | windows* | cegcc*)
5780    # On Win9x/ME, this test blows up -- it succeeds, but takes
5781    # about 5 minutes as the teststring grows exponentially.
5782    # Worse, since 9x/ME are not pre-emptively multitasking,
5783    # you end up with a "frozen" computer, even though with patience
5784    # the test eventually succeeds (with a max line length of 256k).
5785    # Instead, let's just punt: use the minimum linelength reported by
5786    # all of the supported platforms: 8192 (on NT/2K/XP).
5787    lt_cv_sys_max_cmd_len=8192;
5788    ;;
5789
5790  mint*)
5791    # On MiNT this can take a long time and run out of memory.
5792    lt_cv_sys_max_cmd_len=8192;
5793    ;;
5794
5795  amigaos*)
5796    # On AmigaOS with pdksh, this test takes hours, literally.
5797    # So we just punt and use a minimum line length of 8192.
5798    lt_cv_sys_max_cmd_len=8192;
5799    ;;
5800
5801  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5802    # This has been around since 386BSD, at least.  Likely further.
5803    if test -x /sbin/sysctl; then
5804      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5805    elif test -x /usr/sbin/sysctl; then
5806      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5807    else
5808      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5809    fi
5810    # And add a safety zone
5811    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5812    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5813    ;;
5814
5815  interix*)
5816    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5817    lt_cv_sys_max_cmd_len=196608
5818    ;;
5819
5820  os2*)
5821    # The test takes a long time on OS/2.
5822    lt_cv_sys_max_cmd_len=8192
5823    ;;
5824
5825  osf*)
5826    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5827    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5828    # nice to cause kernel panics so lets avoid the loop below.
5829    # First set a reasonable default.
5830    lt_cv_sys_max_cmd_len=16384
5831    #
5832    if test -x /sbin/sysconfig; then
5833      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5834        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5835      esac
5836    fi
5837    ;;
5838  sco3.2v5*)
5839    lt_cv_sys_max_cmd_len=102400
5840    ;;
5841  sysv5* | sco5v6* | sysv4.2uw2*)
5842    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5843    if test -n "$kargmax"; then
5844      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5845    else
5846      lt_cv_sys_max_cmd_len=32768
5847    fi
5848    ;;
5849  *)
5850    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5851    if test -n "$lt_cv_sys_max_cmd_len" && \
5852       test undefined != "$lt_cv_sys_max_cmd_len"; then
5853      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5854      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5855    else
5856      # Make teststring a little bigger before we do anything with it.
5857      # a 1K string should be a reasonable start.
5858      for i in 1 2 3 4 5 6 7 8; do
5859        teststring=$teststring$teststring
5860      done
5861      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5862      # If test is not a shell built-in, we'll probably end up computing a
5863      # maximum length that is only half of the actual maximum length, but
5864      # we can't tell.
5865      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5866	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5867	      test 17 != "$i" # 1/2 MB should be enough
5868      do
5869        i=`expr $i + 1`
5870        teststring=$teststring$teststring
5871      done
5872      # Only check the string length outside the loop.
5873      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5874      teststring=
5875      # Add a significant safety factor because C++ compilers can tack on
5876      # massive amounts of additional arguments before passing them to the
5877      # linker.  It appears as though 1/2 is a usable value.
5878      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5879    fi
5880    ;;
5881  esac
5882 ;;
5883esac
5884fi
5885
5886if test -n "$lt_cv_sys_max_cmd_len"; then
5887  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5888printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5889else
5890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5891printf "%s\n" "none" >&6; }
5892fi
5893max_cmd_len=$lt_cv_sys_max_cmd_len
5894
5895
5896
5897
5898
5899
5900: ${CP="cp -f"}
5901: ${MV="mv -f"}
5902: ${RM="rm -f"}
5903
5904if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5905  lt_unset=unset
5906else
5907  lt_unset=false
5908fi
5909
5910
5911
5912
5913
5914# test EBCDIC or ASCII
5915case `echo X|tr X '\101'` in
5916 A) # ASCII based system
5917    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5918  lt_SP2NL='tr \040 \012'
5919  lt_NL2SP='tr \015\012 \040\040'
5920  ;;
5921 *) # EBCDIC based system
5922  lt_SP2NL='tr \100 \n'
5923  lt_NL2SP='tr \r\n \100\100'
5924  ;;
5925esac
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5936printf %s "checking how to convert $build file names to $host format... " >&6; }
5937if test ${lt_cv_to_host_file_cmd+y}
5938then :
5939  printf %s "(cached) " >&6
5940else case e in #(
5941  e) case $host in
5942  *-*-mingw* )
5943    case $build in
5944      *-*-mingw* | *-*-windows* ) # actually msys
5945        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5946        ;;
5947      *-*-cygwin* )
5948        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5949        ;;
5950      * ) # otherwise, assume *nix
5951        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5952        ;;
5953    esac
5954    ;;
5955  *-*-cygwin* )
5956    case $build in
5957      *-*-mingw* | *-*-windows* ) # actually msys
5958        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5959        ;;
5960      *-*-cygwin* )
5961        lt_cv_to_host_file_cmd=func_convert_file_noop
5962        ;;
5963      * ) # otherwise, assume *nix
5964        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5965        ;;
5966    esac
5967    ;;
5968  * ) # unhandled hosts (and "normal" native builds)
5969    lt_cv_to_host_file_cmd=func_convert_file_noop
5970    ;;
5971esac
5972 ;;
5973esac
5974fi
5975
5976to_host_file_cmd=$lt_cv_to_host_file_cmd
5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5978printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5979
5980
5981
5982
5983
5984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5985printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5986if test ${lt_cv_to_tool_file_cmd+y}
5987then :
5988  printf %s "(cached) " >&6
5989else case e in #(
5990  e) #assume ordinary cross tools, or native build.
5991lt_cv_to_tool_file_cmd=func_convert_file_noop
5992case $host in
5993  *-*-mingw* | *-*-windows* )
5994    case $build in
5995      *-*-mingw* | *-*-windows* ) # actually msys
5996        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5997        ;;
5998    esac
5999    ;;
6000esac
6001 ;;
6002esac
6003fi
6004
6005to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6007printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6008
6009
6010
6011
6012
6013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6014printf %s "checking for $LD option to reload object files... " >&6; }
6015if test ${lt_cv_ld_reload_flag+y}
6016then :
6017  printf %s "(cached) " >&6
6018else case e in #(
6019  e) lt_cv_ld_reload_flag='-r' ;;
6020esac
6021fi
6022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6023printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6024reload_flag=$lt_cv_ld_reload_flag
6025case $reload_flag in
6026"" | " "*) ;;
6027*) reload_flag=" $reload_flag" ;;
6028esac
6029reload_cmds='$LD$reload_flag -o $output$reload_objs'
6030case $host_os in
6031  cygwin* | mingw* | windows* | pw32* | cegcc*)
6032    if test yes != "$GCC"; then
6033      reload_cmds=false
6034    fi
6035    ;;
6036  darwin*)
6037    if test yes = "$GCC"; then
6038      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6039    else
6040      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6041    fi
6042    ;;
6043esac
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053# Extract the first word of "file", so it can be a program name with args.
6054set dummy file; 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_FILECMD+y}
6058then :
6059  printf %s "(cached) " >&6
6060else case e in #(
6061  e) if test -n "$FILECMD"; then
6062  ac_cv_prog_FILECMD="$FILECMD" # 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_FILECMD="file"
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
6083  test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6084fi ;;
6085esac
6086fi
6087FILECMD=$ac_cv_prog_FILECMD
6088if test -n "$FILECMD"; then
6089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6090printf "%s\n" "$FILECMD" >&6; }
6091else
6092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093printf "%s\n" "no" >&6; }
6094fi
6095
6096
6097
6098
6099
6100
6101
6102
6103if test -n "$ac_tool_prefix"; then
6104  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6105set dummy ${ac_tool_prefix}objdump; ac_word=$2
6106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107printf %s "checking for $ac_word... " >&6; }
6108if test ${ac_cv_prog_OBJDUMP+y}
6109then :
6110  printf %s "(cached) " >&6
6111else case e in #(
6112  e) if test -n "$OBJDUMP"; then
6113  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118  IFS=$as_save_IFS
6119  case $as_dir in #(((
6120    '') as_dir=./ ;;
6121    */) ;;
6122    *) as_dir=$as_dir/ ;;
6123  esac
6124    for ac_exec_ext in '' $ac_executable_extensions; do
6125  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6126    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6127    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6128    break 2
6129  fi
6130done
6131  done
6132IFS=$as_save_IFS
6133
6134fi ;;
6135esac
6136fi
6137OBJDUMP=$ac_cv_prog_OBJDUMP
6138if test -n "$OBJDUMP"; then
6139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6140printf "%s\n" "$OBJDUMP" >&6; }
6141else
6142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143printf "%s\n" "no" >&6; }
6144fi
6145
6146
6147fi
6148if test -z "$ac_cv_prog_OBJDUMP"; then
6149  ac_ct_OBJDUMP=$OBJDUMP
6150  # Extract the first word of "objdump", so it can be a program name with args.
6151set dummy objdump; ac_word=$2
6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153printf %s "checking for $ac_word... " >&6; }
6154if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6155then :
6156  printf %s "(cached) " >&6
6157else case e in #(
6158  e) if test -n "$ac_ct_OBJDUMP"; then
6159  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164  IFS=$as_save_IFS
6165  case $as_dir in #(((
6166    '') as_dir=./ ;;
6167    */) ;;
6168    *) as_dir=$as_dir/ ;;
6169  esac
6170    for ac_exec_ext in '' $ac_executable_extensions; do
6171  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6172    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6173    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6174    break 2
6175  fi
6176done
6177  done
6178IFS=$as_save_IFS
6179
6180fi ;;
6181esac
6182fi
6183ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6184if test -n "$ac_ct_OBJDUMP"; then
6185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6186printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6187else
6188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189printf "%s\n" "no" >&6; }
6190fi
6191
6192  if test "x$ac_ct_OBJDUMP" = x; then
6193    OBJDUMP="false"
6194  else
6195    case $cross_compiling:$ac_tool_warned in
6196yes:)
6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199ac_tool_warned=yes ;;
6200esac
6201    OBJDUMP=$ac_ct_OBJDUMP
6202  fi
6203else
6204  OBJDUMP="$ac_cv_prog_OBJDUMP"
6205fi
6206
6207test -z "$OBJDUMP" && OBJDUMP=objdump
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6218printf %s "checking how to recognize dependent libraries... " >&6; }
6219if test ${lt_cv_deplibs_check_method+y}
6220then :
6221  printf %s "(cached) " >&6
6222else case e in #(
6223  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6224lt_cv_file_magic_test_file=
6225lt_cv_deplibs_check_method='unknown'
6226# Need to set the preceding variable on all platforms that support
6227# interlibrary dependencies.
6228# 'none' -- dependencies not supported.
6229# 'unknown' -- same as none, but documents that we really don't know.
6230# 'pass_all' -- all dependencies passed with no checks.
6231# 'file_magic [[regex]]' -- check by looking for files in library path
6232# that responds to the $file_magic_cmd with a given extended regex.
6233# If you have 'file' or equivalent on your system and you're not sure
6234# whether 'pass_all' will *always* work, you probably want this one.
6235
6236case $host_os in
6237aix[4-9]*)
6238  lt_cv_deplibs_check_method=pass_all
6239  ;;
6240
6241beos*)
6242  lt_cv_deplibs_check_method=pass_all
6243  ;;
6244
6245bsdi[45]*)
6246  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6247  lt_cv_file_magic_cmd='$FILECMD -L'
6248  lt_cv_file_magic_test_file=/shlib/libc.so
6249  ;;
6250
6251cygwin*)
6252  # func_win32_libid is a shell function defined in ltmain.sh
6253  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6254  lt_cv_file_magic_cmd='func_win32_libid'
6255  ;;
6256
6257mingw* | windows* | pw32*)
6258  # Base MSYS/MinGW do not provide the 'file' command needed by
6259  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6260  # unless we find 'file', for example because we are cross-compiling.
6261  if ( file / ) >/dev/null 2>&1; then
6262    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6263    lt_cv_file_magic_cmd='func_win32_libid'
6264  else
6265    # Keep this pattern in sync with the one in func_win32_libid.
6266    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6267    lt_cv_file_magic_cmd='$OBJDUMP -f'
6268  fi
6269  ;;
6270
6271cegcc*)
6272  # use the weaker test based on 'objdump'. See mingw*.
6273  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6274  lt_cv_file_magic_cmd='$OBJDUMP -f'
6275  ;;
6276
6277darwin* | rhapsody*)
6278  lt_cv_deplibs_check_method=pass_all
6279  ;;
6280
6281freebsd* | dragonfly* | midnightbsd*)
6282  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6283    case $host_cpu in
6284    i*86 )
6285      # Not sure whether the presence of OpenBSD here was a mistake.
6286      # Let's accept both of them until this is cleared up.
6287      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6288      lt_cv_file_magic_cmd=$FILECMD
6289      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6290      ;;
6291    esac
6292  else
6293    lt_cv_deplibs_check_method=pass_all
6294  fi
6295  ;;
6296
6297haiku*)
6298  lt_cv_deplibs_check_method=pass_all
6299  ;;
6300
6301hpux10.20* | hpux11*)
6302  lt_cv_file_magic_cmd=$FILECMD
6303  case $host_cpu in
6304  ia64*)
6305    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6306    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6307    ;;
6308  hppa*64*)
6309    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]'
6310    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6311    ;;
6312  *)
6313    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6314    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6315    ;;
6316  esac
6317  ;;
6318
6319interix[3-9]*)
6320  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6321  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6322  ;;
6323
6324irix5* | irix6* | nonstopux*)
6325  case $LD in
6326  *-32|*"-32 ") libmagic=32-bit;;
6327  *-n32|*"-n32 ") libmagic=N32;;
6328  *-64|*"-64 ") libmagic=64-bit;;
6329  *) libmagic=never-match;;
6330  esac
6331  lt_cv_deplibs_check_method=pass_all
6332  ;;
6333
6334# This must be glibc/ELF.
6335linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6336  lt_cv_deplibs_check_method=pass_all
6337  ;;
6338
6339*-mlibc)
6340  lt_cv_deplibs_check_method=pass_all
6341  ;;
6342
6343netbsd* | netbsdelf*-gnu)
6344  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6345    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6346  else
6347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6348  fi
6349  ;;
6350
6351newos6*)
6352  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6353  lt_cv_file_magic_cmd=$FILECMD
6354  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6355  ;;
6356
6357*nto* | *qnx*)
6358  lt_cv_deplibs_check_method=pass_all
6359  ;;
6360
6361openbsd*)
6362  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6363    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6364  else
6365    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6366  fi
6367  ;;
6368
6369osf3* | osf4* | osf5*)
6370  lt_cv_deplibs_check_method=pass_all
6371  ;;
6372
6373rdos*)
6374  lt_cv_deplibs_check_method=pass_all
6375  ;;
6376
6377serenity*)
6378  lt_cv_deplibs_check_method=pass_all
6379  ;;
6380
6381solaris*)
6382  lt_cv_deplibs_check_method=pass_all
6383  ;;
6384
6385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6386  lt_cv_deplibs_check_method=pass_all
6387  ;;
6388
6389sysv4 | sysv4.3*)
6390  case $host_vendor in
6391  motorola)
6392    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]'
6393    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6394    ;;
6395  ncr)
6396    lt_cv_deplibs_check_method=pass_all
6397    ;;
6398  sequent)
6399    lt_cv_file_magic_cmd='/bin/file'
6400    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6401    ;;
6402  sni)
6403    lt_cv_file_magic_cmd='/bin/file'
6404    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6405    lt_cv_file_magic_test_file=/lib/libc.so
6406    ;;
6407  siemens)
6408    lt_cv_deplibs_check_method=pass_all
6409    ;;
6410  pc)
6411    lt_cv_deplibs_check_method=pass_all
6412    ;;
6413  esac
6414  ;;
6415
6416tpf*)
6417  lt_cv_deplibs_check_method=pass_all
6418  ;;
6419os2*)
6420  lt_cv_deplibs_check_method=pass_all
6421  ;;
6422esac
6423 ;;
6424esac
6425fi
6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6427printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6428
6429file_magic_glob=
6430want_nocaseglob=no
6431if test "$build" = "$host"; then
6432  case $host_os in
6433  mingw* | windows* | pw32*)
6434    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6435      want_nocaseglob=yes
6436    else
6437      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6438    fi
6439    ;;
6440  esac
6441fi
6442
6443file_magic_cmd=$lt_cv_file_magic_cmd
6444deplibs_check_method=$lt_cv_deplibs_check_method
6445test -z "$deplibs_check_method" && deplibs_check_method=unknown
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468if test -n "$ac_tool_prefix"; then
6469  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6470set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472printf %s "checking for $ac_word... " >&6; }
6473if test ${ac_cv_prog_DLLTOOL+y}
6474then :
6475  printf %s "(cached) " >&6
6476else case e in #(
6477  e) if test -n "$DLLTOOL"; then
6478  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  case $as_dir in #(((
6485    '') as_dir=./ ;;
6486    */) ;;
6487    *) as_dir=$as_dir/ ;;
6488  esac
6489    for ac_exec_ext in '' $ac_executable_extensions; do
6490  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6491    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6492    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6493    break 2
6494  fi
6495done
6496  done
6497IFS=$as_save_IFS
6498
6499fi ;;
6500esac
6501fi
6502DLLTOOL=$ac_cv_prog_DLLTOOL
6503if test -n "$DLLTOOL"; then
6504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6505printf "%s\n" "$DLLTOOL" >&6; }
6506else
6507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508printf "%s\n" "no" >&6; }
6509fi
6510
6511
6512fi
6513if test -z "$ac_cv_prog_DLLTOOL"; then
6514  ac_ct_DLLTOOL=$DLLTOOL
6515  # Extract the first word of "dlltool", so it can be a program name with args.
6516set dummy dlltool; ac_word=$2
6517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518printf %s "checking for $ac_word... " >&6; }
6519if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6520then :
6521  printf %s "(cached) " >&6
6522else case e in #(
6523  e) if test -n "$ac_ct_DLLTOOL"; then
6524  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6525else
6526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529  IFS=$as_save_IFS
6530  case $as_dir in #(((
6531    '') as_dir=./ ;;
6532    */) ;;
6533    *) as_dir=$as_dir/ ;;
6534  esac
6535    for ac_exec_ext in '' $ac_executable_extensions; do
6536  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6537    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6538    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6539    break 2
6540  fi
6541done
6542  done
6543IFS=$as_save_IFS
6544
6545fi ;;
6546esac
6547fi
6548ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6549if test -n "$ac_ct_DLLTOOL"; then
6550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6551printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6552else
6553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554printf "%s\n" "no" >&6; }
6555fi
6556
6557  if test "x$ac_ct_DLLTOOL" = x; then
6558    DLLTOOL="false"
6559  else
6560    case $cross_compiling:$ac_tool_warned in
6561yes:)
6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564ac_tool_warned=yes ;;
6565esac
6566    DLLTOOL=$ac_ct_DLLTOOL
6567  fi
6568else
6569  DLLTOOL="$ac_cv_prog_DLLTOOL"
6570fi
6571
6572test -z "$DLLTOOL" && DLLTOOL=dlltool
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6584printf %s "checking how to associate runtime and link libraries... " >&6; }
6585if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6586then :
6587  printf %s "(cached) " >&6
6588else case e in #(
6589  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6590
6591case $host_os in
6592cygwin* | mingw* | windows* | pw32* | cegcc*)
6593  # two different shell functions defined in ltmain.sh;
6594  # decide which one to use based on capabilities of $DLLTOOL
6595  case `$DLLTOOL --help 2>&1` in
6596  *--identify-strict*)
6597    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6598    ;;
6599  *)
6600    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6601    ;;
6602  esac
6603  ;;
6604*)
6605  # fallback: assume linklib IS sharedlib
6606  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6607  ;;
6608esac
6609 ;;
6610esac
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6613printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6614sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6615test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6616
6617
6618
6619
6620
6621
6622
6623if test -n "$ac_tool_prefix"; then
6624  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627printf %s "checking for $ac_word... " >&6; }
6628if test ${ac_cv_prog_RANLIB+y}
6629then :
6630  printf %s "(cached) " >&6
6631else case e in #(
6632  e) if test -n "$RANLIB"; then
6633  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638  IFS=$as_save_IFS
6639  case $as_dir in #(((
6640    '') as_dir=./ ;;
6641    */) ;;
6642    *) as_dir=$as_dir/ ;;
6643  esac
6644    for ac_exec_ext in '' $ac_executable_extensions; do
6645  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6646    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6648    break 2
6649  fi
6650done
6651  done
6652IFS=$as_save_IFS
6653
6654fi ;;
6655esac
6656fi
6657RANLIB=$ac_cv_prog_RANLIB
6658if test -n "$RANLIB"; then
6659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6660printf "%s\n" "$RANLIB" >&6; }
6661else
6662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663printf "%s\n" "no" >&6; }
6664fi
6665
6666
6667fi
6668if test -z "$ac_cv_prog_RANLIB"; then
6669  ac_ct_RANLIB=$RANLIB
6670  # Extract the first word of "ranlib", so it can be a program name with args.
6671set dummy ranlib; ac_word=$2
6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673printf %s "checking for $ac_word... " >&6; }
6674if test ${ac_cv_prog_ac_ct_RANLIB+y}
6675then :
6676  printf %s "(cached) " >&6
6677else case e in #(
6678  e) if test -n "$ac_ct_RANLIB"; then
6679  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6680else
6681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682for as_dir in $PATH
6683do
6684  IFS=$as_save_IFS
6685  case $as_dir in #(((
6686    '') as_dir=./ ;;
6687    */) ;;
6688    *) as_dir=$as_dir/ ;;
6689  esac
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6692    ac_cv_prog_ac_ct_RANLIB="ranlib"
6693    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi ;;
6701esac
6702fi
6703ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6704if test -n "$ac_ct_RANLIB"; then
6705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6706printf "%s\n" "$ac_ct_RANLIB" >&6; }
6707else
6708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709printf "%s\n" "no" >&6; }
6710fi
6711
6712  if test "x$ac_ct_RANLIB" = x; then
6713    RANLIB=":"
6714  else
6715    case $cross_compiling:$ac_tool_warned in
6716yes:)
6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719ac_tool_warned=yes ;;
6720esac
6721    RANLIB=$ac_ct_RANLIB
6722  fi
6723else
6724  RANLIB="$ac_cv_prog_RANLIB"
6725fi
6726
6727if test -n "$ac_tool_prefix"; then
6728  for ac_prog in ar
6729  do
6730    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733printf %s "checking for $ac_word... " >&6; }
6734if test ${ac_cv_prog_AR+y}
6735then :
6736  printf %s "(cached) " >&6
6737else case e in #(
6738  e) if test -n "$AR"; then
6739  ac_cv_prog_AR="$AR" # Let the user override the test.
6740else
6741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742for as_dir in $PATH
6743do
6744  IFS=$as_save_IFS
6745  case $as_dir in #(((
6746    '') as_dir=./ ;;
6747    */) ;;
6748    *) as_dir=$as_dir/ ;;
6749  esac
6750    for ac_exec_ext in '' $ac_executable_extensions; do
6751  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6752    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6753    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757  done
6758IFS=$as_save_IFS
6759
6760fi ;;
6761esac
6762fi
6763AR=$ac_cv_prog_AR
6764if test -n "$AR"; then
6765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6766printf "%s\n" "$AR" >&6; }
6767else
6768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769printf "%s\n" "no" >&6; }
6770fi
6771
6772
6773    test -n "$AR" && break
6774  done
6775fi
6776if test -z "$AR"; then
6777  ac_ct_AR=$AR
6778  for ac_prog in ar
6779do
6780  # Extract the first word of "$ac_prog", so it can be a program name with args.
6781set dummy $ac_prog; ac_word=$2
6782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783printf %s "checking for $ac_word... " >&6; }
6784if test ${ac_cv_prog_ac_ct_AR+y}
6785then :
6786  printf %s "(cached) " >&6
6787else case e in #(
6788  e) if test -n "$ac_ct_AR"; then
6789  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794  IFS=$as_save_IFS
6795  case $as_dir in #(((
6796    '') as_dir=./ ;;
6797    */) ;;
6798    *) as_dir=$as_dir/ ;;
6799  esac
6800    for ac_exec_ext in '' $ac_executable_extensions; do
6801  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6802    ac_cv_prog_ac_ct_AR="$ac_prog"
6803    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6804    break 2
6805  fi
6806done
6807  done
6808IFS=$as_save_IFS
6809
6810fi ;;
6811esac
6812fi
6813ac_ct_AR=$ac_cv_prog_ac_ct_AR
6814if test -n "$ac_ct_AR"; then
6815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6816printf "%s\n" "$ac_ct_AR" >&6; }
6817else
6818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819printf "%s\n" "no" >&6; }
6820fi
6821
6822
6823  test -n "$ac_ct_AR" && break
6824done
6825
6826  if test "x$ac_ct_AR" = x; then
6827    AR="false"
6828  else
6829    case $cross_compiling:$ac_tool_warned in
6830yes:)
6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833ac_tool_warned=yes ;;
6834esac
6835    AR=$ac_ct_AR
6836  fi
6837fi
6838
6839: ${AR=ar}
6840
6841
6842
6843
6844
6845
6846# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6847# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6848# higher priority because that's what people were doing historically (setting
6849# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6850# variable obsoleted/removed.
6851
6852test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6853lt_ar_flags=$AR_FLAGS
6854
6855
6856
6857
6858
6859
6860# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6861# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6862
6863
6864
6865
6866
6867
6868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6869printf %s "checking for archiver @FILE support... " >&6; }
6870if test ${lt_cv_ar_at_file+y}
6871then :
6872  printf %s "(cached) " >&6
6873else case e in #(
6874  e) lt_cv_ar_at_file=no
6875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876/* end confdefs.h.  */
6877
6878int
6879main (void)
6880{
6881
6882  ;
6883  return 0;
6884}
6885_ACEOF
6886if ac_fn_c_try_compile "$LINENO"
6887then :
6888  echo conftest.$ac_objext > conftest.lst
6889      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6890      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6891  (eval $lt_ar_try) 2>&5
6892  ac_status=$?
6893  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894  test $ac_status = 0; }
6895      if test 0 -eq "$ac_status"; then
6896	# Ensure the archiver fails upon bogus file names.
6897	rm -f conftest.$ac_objext libconftest.a
6898	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6899  (eval $lt_ar_try) 2>&5
6900  ac_status=$?
6901  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902  test $ac_status = 0; }
6903	if test 0 -ne "$ac_status"; then
6904          lt_cv_ar_at_file=@
6905        fi
6906      fi
6907      rm -f conftest.* libconftest.a
6908
6909fi
6910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6911   ;;
6912esac
6913fi
6914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6915printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6916
6917if test no = "$lt_cv_ar_at_file"; then
6918  archiver_list_spec=
6919else
6920  archiver_list_spec=$lt_cv_ar_at_file
6921fi
6922
6923
6924
6925
6926
6927
6928
6929if test -n "$ac_tool_prefix"; then
6930  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6931set dummy ${ac_tool_prefix}strip; ac_word=$2
6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933printf %s "checking for $ac_word... " >&6; }
6934if test ${ac_cv_prog_STRIP+y}
6935then :
6936  printf %s "(cached) " >&6
6937else case e in #(
6938  e) if test -n "$STRIP"; then
6939  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  case $as_dir in #(((
6946    '') as_dir=./ ;;
6947    */) ;;
6948    *) as_dir=$as_dir/ ;;
6949  esac
6950    for ac_exec_ext in '' $ac_executable_extensions; do
6951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6952    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6954    break 2
6955  fi
6956done
6957  done
6958IFS=$as_save_IFS
6959
6960fi ;;
6961esac
6962fi
6963STRIP=$ac_cv_prog_STRIP
6964if test -n "$STRIP"; then
6965  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6966printf "%s\n" "$STRIP" >&6; }
6967else
6968  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969printf "%s\n" "no" >&6; }
6970fi
6971
6972
6973fi
6974if test -z "$ac_cv_prog_STRIP"; then
6975  ac_ct_STRIP=$STRIP
6976  # Extract the first word of "strip", so it can be a program name with args.
6977set dummy strip; ac_word=$2
6978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979printf %s "checking for $ac_word... " >&6; }
6980if test ${ac_cv_prog_ac_ct_STRIP+y}
6981then :
6982  printf %s "(cached) " >&6
6983else case e in #(
6984  e) if test -n "$ac_ct_STRIP"; then
6985  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  case $as_dir in #(((
6992    '') as_dir=./ ;;
6993    */) ;;
6994    *) as_dir=$as_dir/ ;;
6995  esac
6996    for ac_exec_ext in '' $ac_executable_extensions; do
6997  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6998    ac_cv_prog_ac_ct_STRIP="strip"
6999    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7000    break 2
7001  fi
7002done
7003  done
7004IFS=$as_save_IFS
7005
7006fi ;;
7007esac
7008fi
7009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7010if test -n "$ac_ct_STRIP"; then
7011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7012printf "%s\n" "$ac_ct_STRIP" >&6; }
7013else
7014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015printf "%s\n" "no" >&6; }
7016fi
7017
7018  if test "x$ac_ct_STRIP" = x; then
7019    STRIP=":"
7020  else
7021    case $cross_compiling:$ac_tool_warned in
7022yes:)
7023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025ac_tool_warned=yes ;;
7026esac
7027    STRIP=$ac_ct_STRIP
7028  fi
7029else
7030  STRIP="$ac_cv_prog_STRIP"
7031fi
7032
7033test -z "$STRIP" && STRIP=:
7034
7035
7036
7037
7038
7039
7040
7041test -z "$RANLIB" && RANLIB=:
7042
7043
7044
7045
7046
7047
7048# Determine commands to create old-style static archives.
7049old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7050old_postinstall_cmds='chmod 644 $oldlib'
7051old_postuninstall_cmds=
7052
7053if test -n "$RANLIB"; then
7054  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7055  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7056fi
7057
7058case $host_os in
7059  darwin*)
7060    lock_old_archive_extraction=yes ;;
7061  *)
7062    lock_old_archive_extraction=no ;;
7063esac
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103# If no C compiler was specified, use CC.
7104LTCC=${LTCC-"$CC"}
7105
7106# If no C compiler flags were specified, use CFLAGS.
7107LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7108
7109# Allow CC to be a program name with arguments.
7110compiler=$CC
7111
7112
7113# Check for command to grab the raw symbol name followed by C symbol from nm.
7114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7115printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7116if test ${lt_cv_sys_global_symbol_pipe+y}
7117then :
7118  printf %s "(cached) " >&6
7119else case e in #(
7120  e)
7121# These are sane defaults that work on at least a few old systems.
7122# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7123
7124# Character class describing NM global symbol codes.
7125symcode='[BCDEGRST]'
7126
7127# Regexp to match symbols that can be accessed directly from C.
7128sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7129
7130# Define system-specific variables.
7131case $host_os in
7132aix*)
7133  symcode='[BCDT]'
7134  ;;
7135cygwin* | mingw* | windows* | pw32* | cegcc*)
7136  symcode='[ABCDGISTW]'
7137  ;;
7138hpux*)
7139  if test ia64 = "$host_cpu"; then
7140    symcode='[ABCDEGRST]'
7141  fi
7142  ;;
7143irix* | nonstopux*)
7144  symcode='[BCDEGRST]'
7145  ;;
7146osf*)
7147  symcode='[BCDEGQRST]'
7148  ;;
7149solaris*)
7150  symcode='[BCDRT]'
7151  ;;
7152sco3.2v5*)
7153  symcode='[DT]'
7154  ;;
7155sysv4.2uw2*)
7156  symcode='[DT]'
7157  ;;
7158sysv5* | sco5v6* | unixware* | OpenUNIX*)
7159  symcode='[ABDT]'
7160  ;;
7161sysv4)
7162  symcode='[DFNSTU]'
7163  ;;
7164esac
7165
7166# If we're using GNU nm, then use its standard symbol codes.
7167case `$NM -V 2>&1` in
7168*GNU* | *'with BFD'*)
7169  symcode='[ABCDGIRSTW]' ;;
7170esac
7171
7172if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173  # Gets list of data symbols to import.
7174  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7175  # Adjust the below global symbol transforms to fixup imported variables.
7176  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7177  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7178  lt_c_name_lib_hook="\
7179  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7180  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7181else
7182  # Disable hooks by default.
7183  lt_cv_sys_global_symbol_to_import=
7184  lt_cdecl_hook=
7185  lt_c_name_hook=
7186  lt_c_name_lib_hook=
7187fi
7188
7189# Transform an extracted symbol line into a proper C declaration.
7190# Some systems (esp. on ia64) link data and code symbols differently,
7191# so use this general approach.
7192lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7193$lt_cdecl_hook\
7194" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7195" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7196
7197# Transform an extracted symbol line into symbol name and symbol address
7198lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7199$lt_c_name_hook\
7200" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7201" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7202
7203# Transform an extracted symbol line into symbol name with lib prefix and
7204# symbol address.
7205lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7206$lt_c_name_lib_hook\
7207" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7208" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7209" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7210
7211# Handle CRLF in mingw tool chain
7212opt_cr=
7213case $build_os in
7214mingw* | windows*)
7215  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7216  ;;
7217esac
7218
7219# Try without a prefix underscore, then with it.
7220for ac_symprfx in "" "_"; do
7221
7222  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7223  symxfrm="\\1 $ac_symprfx\\2 \\2"
7224
7225  # Write the raw and C identifiers.
7226  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7227    # Fake it for dumpbin and say T for any non-static function,
7228    # D for any global variable and I for any imported variable.
7229    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7230    # which start with @ or ?.
7231    lt_cv_sys_global_symbol_pipe="$AWK '"\
7232"     {last_section=section; section=\$ 3};"\
7233"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7234"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7235"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7236"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7237"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7238"     \$ 0!~/External *\|/{next};"\
7239"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7240"     {if(hide[section]) next};"\
7241"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7242"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7243"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7244"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7245"     ' prfx=^$ac_symprfx"
7246  else
7247    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7248  fi
7249  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7250
7251  # Check to see that the pipe works correctly.
7252  pipe_works=no
7253
7254  rm -f conftest*
7255  cat > conftest.$ac_ext <<_LT_EOF
7256#ifdef __cplusplus
7257extern "C" {
7258#endif
7259char nm_test_var;
7260void nm_test_func(void);
7261void nm_test_func(void){}
7262#ifdef __cplusplus
7263}
7264#endif
7265int main(void){nm_test_var='a';nm_test_func();return(0);}
7266_LT_EOF
7267
7268  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7269  (eval $ac_compile) 2>&5
7270  ac_status=$?
7271  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272  test $ac_status = 0; }; then
7273    # Now try to grab the symbols.
7274    nlist=conftest.nm
7275    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7276    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7277      # Try sorting and uniquifying the output.
7278      if sort "$nlist" | uniq > "$nlist"T; then
7279	mv -f "$nlist"T "$nlist"
7280      else
7281	rm -f "$nlist"T
7282      fi
7283
7284      # Make sure that we snagged all the symbols we need.
7285      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7286	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7287	  cat <<_LT_EOF > conftest.$ac_ext
7288/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7289#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7290/* DATA imports from DLLs on WIN32 can't be const, because runtime
7291   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7292# define LT_DLSYM_CONST
7293#elif defined __osf__
7294/* This system does not cope well with relocations in const data.  */
7295# define LT_DLSYM_CONST
7296#else
7297# define LT_DLSYM_CONST const
7298#endif
7299
7300#ifdef __cplusplus
7301extern "C" {
7302#endif
7303
7304_LT_EOF
7305	  # Now generate the symbol file.
7306	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7307
7308	  cat <<_LT_EOF >> conftest.$ac_ext
7309
7310/* The mapping between symbol names and symbols.  */
7311LT_DLSYM_CONST struct {
7312  const char *name;
7313  void       *address;
7314}
7315lt__PROGRAM__LTX_preloaded_symbols[] =
7316{
7317  { "@PROGRAM@", (void *) 0 },
7318_LT_EOF
7319	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7320	  cat <<\_LT_EOF >> conftest.$ac_ext
7321  {0, (void *) 0}
7322};
7323
7324/* This works around a problem in FreeBSD linker */
7325#ifdef FREEBSD_WORKAROUND
7326static const void *lt_preloaded_setup() {
7327  return lt__PROGRAM__LTX_preloaded_symbols;
7328}
7329#endif
7330
7331#ifdef __cplusplus
7332}
7333#endif
7334_LT_EOF
7335	  # Now try linking the two files.
7336	  mv conftest.$ac_objext conftstm.$ac_objext
7337	  lt_globsym_save_LIBS=$LIBS
7338	  lt_globsym_save_CFLAGS=$CFLAGS
7339	  LIBS=conftstm.$ac_objext
7340	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7341	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7342  (eval $ac_link) 2>&5
7343  ac_status=$?
7344  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7346	    pipe_works=yes
7347	  fi
7348	  LIBS=$lt_globsym_save_LIBS
7349	  CFLAGS=$lt_globsym_save_CFLAGS
7350	else
7351	  echo "cannot find nm_test_func in $nlist" >&5
7352	fi
7353      else
7354	echo "cannot find nm_test_var in $nlist" >&5
7355      fi
7356    else
7357      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7358    fi
7359  else
7360    echo "$progname: failed program was:" >&5
7361    cat conftest.$ac_ext >&5
7362  fi
7363  rm -rf conftest* conftst*
7364
7365  # Do not use the global_symbol_pipe unless it works.
7366  if test yes = "$pipe_works"; then
7367    break
7368  else
7369    lt_cv_sys_global_symbol_pipe=
7370  fi
7371done
7372 ;;
7373esac
7374fi
7375
7376if test -z "$lt_cv_sys_global_symbol_pipe"; then
7377  lt_cv_sys_global_symbol_to_cdecl=
7378fi
7379if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7381printf "%s\n" "failed" >&6; }
7382else
7383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7384printf "%s\n" "ok" >&6; }
7385fi
7386
7387# Response file support.
7388if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7389  nm_file_list_spec='@'
7390elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7391  nm_file_list_spec='@'
7392fi
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7431printf %s "checking for sysroot... " >&6; }
7432
7433# Check whether --with-sysroot was given.
7434if test ${with_sysroot+y}
7435then :
7436  withval=$with_sysroot;
7437else case e in #(
7438  e) with_sysroot=no ;;
7439esac
7440fi
7441
7442
7443lt_sysroot=
7444case $with_sysroot in #(
7445 yes)
7446   if test yes = "$GCC"; then
7447     # Trim trailing / since we'll always append absolute paths and we want
7448     # to avoid //, if only for less confusing output for the user.
7449     lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7450   fi
7451   ;; #(
7452 /*)
7453   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7454   ;; #(
7455 no|'')
7456   ;; #(
7457 *)
7458   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7459printf "%s\n" "$with_sysroot" >&6; }
7460   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7461   ;;
7462esac
7463
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7465printf "%s\n" "${lt_sysroot:-no}" >&6; }
7466
7467
7468
7469
7470
7471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7472printf %s "checking for a working dd... " >&6; }
7473if test ${ac_cv_path_lt_DD+y}
7474then :
7475  printf %s "(cached) " >&6
7476else case e in #(
7477  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7478cat conftest.i conftest.i >conftest2.i
7479: ${lt_DD:=$DD}
7480if test -z "$lt_DD"; then
7481  ac_path_lt_DD_found=false
7482  # Loop through the user's path and test for each of PROGNAME-LIST
7483  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  case $as_dir in #(((
7488    '') as_dir=./ ;;
7489    */) ;;
7490    *) as_dir=$as_dir/ ;;
7491  esac
7492    for ac_prog in dd
7493   do
7494    for ac_exec_ext in '' $ac_executable_extensions; do
7495      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7496      as_fn_executable_p "$ac_path_lt_DD" || continue
7497if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7498  cmp -s conftest.i conftest.out \
7499  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7500fi
7501      $ac_path_lt_DD_found && break 3
7502    done
7503  done
7504  done
7505IFS=$as_save_IFS
7506  if test -z "$ac_cv_path_lt_DD"; then
7507    :
7508  fi
7509else
7510  ac_cv_path_lt_DD=$lt_DD
7511fi
7512
7513rm -f conftest.i conftest2.i conftest.out ;;
7514esac
7515fi
7516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7517printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7518
7519
7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7521printf %s "checking how to truncate binary pipes... " >&6; }
7522if test ${lt_cv_truncate_bin+y}
7523then :
7524  printf %s "(cached) " >&6
7525else case e in #(
7526  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7527cat conftest.i conftest.i >conftest2.i
7528lt_cv_truncate_bin=
7529if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7530  cmp -s conftest.i conftest.out \
7531  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7532fi
7533rm -f conftest.i conftest2.i conftest.out
7534test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7535esac
7536fi
7537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7538printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7539
7540
7541
7542
7543
7544
7545
7546# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7547func_cc_basename ()
7548{
7549    for cc_temp in $*""; do
7550      case $cc_temp in
7551        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7552        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7553        \-*) ;;
7554        *) break;;
7555      esac
7556    done
7557    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7558}
7559
7560# Check whether --enable-libtool-lock was given.
7561if test ${enable_libtool_lock+y}
7562then :
7563  enableval=$enable_libtool_lock;
7564fi
7565
7566test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7567
7568# Some flags need to be propagated to the compiler or linker for good
7569# libtool support.
7570case $host in
7571ia64-*-hpux*)
7572  # Find out what ABI is being produced by ac_compile, and set mode
7573  # options accordingly.
7574  echo 'int i;' > conftest.$ac_ext
7575  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7576  (eval $ac_compile) 2>&5
7577  ac_status=$?
7578  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579  test $ac_status = 0; }; then
7580    case `$FILECMD conftest.$ac_objext` in
7581      *ELF-32*)
7582	HPUX_IA64_MODE=32
7583	;;
7584      *ELF-64*)
7585	HPUX_IA64_MODE=64
7586	;;
7587    esac
7588  fi
7589  rm -rf conftest*
7590  ;;
7591*-*-irix6*)
7592  # Find out what ABI is being produced by ac_compile, and set linker
7593  # options accordingly.
7594  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7596  (eval $ac_compile) 2>&5
7597  ac_status=$?
7598  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599  test $ac_status = 0; }; then
7600    if test yes = "$lt_cv_prog_gnu_ld"; then
7601      case `$FILECMD conftest.$ac_objext` in
7602	*32-bit*)
7603	  LD="${LD-ld} -melf32bsmip"
7604	  ;;
7605	*N32*)
7606	  LD="${LD-ld} -melf32bmipn32"
7607	  ;;
7608	*64-bit*)
7609	  LD="${LD-ld} -melf64bmip"
7610	;;
7611      esac
7612    else
7613      case `$FILECMD conftest.$ac_objext` in
7614	*32-bit*)
7615	  LD="${LD-ld} -32"
7616	  ;;
7617	*N32*)
7618	  LD="${LD-ld} -n32"
7619	  ;;
7620	*64-bit*)
7621	  LD="${LD-ld} -64"
7622	  ;;
7623      esac
7624    fi
7625  fi
7626  rm -rf conftest*
7627  ;;
7628
7629mips64*-*linux*)
7630  # Find out what ABI is being produced by ac_compile, and set linker
7631  # options accordingly.
7632  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7633  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7634  (eval $ac_compile) 2>&5
7635  ac_status=$?
7636  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637  test $ac_status = 0; }; then
7638    emul=elf
7639    case `$FILECMD conftest.$ac_objext` in
7640      *32-bit*)
7641	emul="${emul}32"
7642	;;
7643      *64-bit*)
7644	emul="${emul}64"
7645	;;
7646    esac
7647    case `$FILECMD conftest.$ac_objext` in
7648      *MSB*)
7649	emul="${emul}btsmip"
7650	;;
7651      *LSB*)
7652	emul="${emul}ltsmip"
7653	;;
7654    esac
7655    case `$FILECMD conftest.$ac_objext` in
7656      *N32*)
7657	emul="${emul}n32"
7658	;;
7659    esac
7660    LD="${LD-ld} -m $emul"
7661  fi
7662  rm -rf conftest*
7663  ;;
7664
7665x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7666s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7667  # Find out what ABI is being produced by ac_compile, and set linker
7668  # options accordingly.  Note that the listed cases only cover the
7669  # situations where additional linker options are needed (such as when
7670  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7671  # vice versa); the common cases where no linker options are needed do
7672  # not appear in the list.
7673  echo 'int i;' > conftest.$ac_ext
7674  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7675  (eval $ac_compile) 2>&5
7676  ac_status=$?
7677  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678  test $ac_status = 0; }; then
7679    case `$FILECMD conftest.o` in
7680      *32-bit*)
7681	case $host in
7682	  x86_64-*kfreebsd*-gnu)
7683	    LD="${LD-ld} -m elf_i386_fbsd"
7684	    ;;
7685	  x86_64-*linux*|x86_64-gnu*)
7686	    case `$FILECMD conftest.o` in
7687	      *x86-64*)
7688		LD="${LD-ld} -m elf32_x86_64"
7689		;;
7690	      *)
7691		LD="${LD-ld} -m elf_i386"
7692		;;
7693	    esac
7694	    ;;
7695	  powerpc64le-*linux*)
7696	    LD="${LD-ld} -m elf32lppclinux"
7697	    ;;
7698	  powerpc64-*linux*)
7699	    LD="${LD-ld} -m elf32ppclinux"
7700	    ;;
7701	  s390x-*linux*)
7702	    LD="${LD-ld} -m elf_s390"
7703	    ;;
7704	  sparc64-*linux*)
7705	    LD="${LD-ld} -m elf32_sparc"
7706	    ;;
7707	esac
7708	;;
7709      *64-bit*)
7710	case $host in
7711	  x86_64-*kfreebsd*-gnu)
7712	    LD="${LD-ld} -m elf_x86_64_fbsd"
7713	    ;;
7714	  x86_64-*linux*|x86_64-gnu*)
7715	    LD="${LD-ld} -m elf_x86_64"
7716	    ;;
7717	  powerpcle-*linux*)
7718	    LD="${LD-ld} -m elf64lppc"
7719	    ;;
7720	  powerpc-*linux*)
7721	    LD="${LD-ld} -m elf64ppc"
7722	    ;;
7723	  s390*-*linux*|s390*-*tpf*)
7724	    LD="${LD-ld} -m elf64_s390"
7725	    ;;
7726	  sparc*-*linux*)
7727	    LD="${LD-ld} -m elf64_sparc"
7728	    ;;
7729	esac
7730	;;
7731    esac
7732  fi
7733  rm -rf conftest*
7734  ;;
7735
7736*-*-sco3.2v5*)
7737  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7738  SAVE_CFLAGS=$CFLAGS
7739  CFLAGS="$CFLAGS -belf"
7740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7741printf %s "checking whether the C compiler needs -belf... " >&6; }
7742if test ${lt_cv_cc_needs_belf+y}
7743then :
7744  printf %s "(cached) " >&6
7745else case e in #(
7746  e) ac_ext=c
7747ac_cpp='$CPP $CPPFLAGS'
7748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751
7752     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754
7755int
7756main (void)
7757{
7758
7759  ;
7760  return 0;
7761}
7762_ACEOF
7763if ac_fn_c_try_link "$LINENO"
7764then :
7765  lt_cv_cc_needs_belf=yes
7766else case e in #(
7767  e) lt_cv_cc_needs_belf=no ;;
7768esac
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.beam \
7771    conftest$ac_exeext conftest.$ac_ext
7772     ac_ext=c
7773ac_cpp='$CPP $CPPFLAGS'
7774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777 ;;
7778esac
7779fi
7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7781printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7782  if test yes != "$lt_cv_cc_needs_belf"; then
7783    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7784    CFLAGS=$SAVE_CFLAGS
7785  fi
7786  ;;
7787*-*solaris*)
7788  # Find out what ABI is being produced by ac_compile, and set linker
7789  # options accordingly.
7790  echo 'int i;' > conftest.$ac_ext
7791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7792  (eval $ac_compile) 2>&5
7793  ac_status=$?
7794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795  test $ac_status = 0; }; then
7796    case `$FILECMD conftest.o` in
7797    *64-bit*)
7798      case $lt_cv_prog_gnu_ld in
7799      yes*)
7800        case $host in
7801        i?86-*-solaris*|x86_64-*-solaris*)
7802          LD="${LD-ld} -m elf_x86_64"
7803          ;;
7804        sparc*-*-solaris*)
7805          LD="${LD-ld} -m elf64_sparc"
7806          ;;
7807        esac
7808        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7809        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7810          LD=${LD-ld}_sol2
7811        fi
7812        ;;
7813      *)
7814	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7815	  LD="${LD-ld} -64"
7816	fi
7817	;;
7818      esac
7819      ;;
7820    esac
7821  fi
7822  rm -rf conftest*
7823  ;;
7824esac
7825
7826need_locks=$enable_libtool_lock
7827
7828if test -n "$ac_tool_prefix"; then
7829  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7830set dummy ${ac_tool_prefix}mt; ac_word=$2
7831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832printf %s "checking for $ac_word... " >&6; }
7833if test ${ac_cv_prog_MANIFEST_TOOL+y}
7834then :
7835  printf %s "(cached) " >&6
7836else case e in #(
7837  e) if test -n "$MANIFEST_TOOL"; then
7838  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7839else
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843  IFS=$as_save_IFS
7844  case $as_dir in #(((
7845    '') as_dir=./ ;;
7846    */) ;;
7847    *) as_dir=$as_dir/ ;;
7848  esac
7849    for ac_exec_ext in '' $ac_executable_extensions; do
7850  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7851    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7852    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7853    break 2
7854  fi
7855done
7856  done
7857IFS=$as_save_IFS
7858
7859fi ;;
7860esac
7861fi
7862MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7863if test -n "$MANIFEST_TOOL"; then
7864  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7865printf "%s\n" "$MANIFEST_TOOL" >&6; }
7866else
7867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868printf "%s\n" "no" >&6; }
7869fi
7870
7871
7872fi
7873if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7874  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7875  # Extract the first word of "mt", so it can be a program name with args.
7876set dummy mt; ac_word=$2
7877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878printf %s "checking for $ac_word... " >&6; }
7879if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7880then :
7881  printf %s "(cached) " >&6
7882else case e in #(
7883  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7884  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7885else
7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889  IFS=$as_save_IFS
7890  case $as_dir in #(((
7891    '') as_dir=./ ;;
7892    */) ;;
7893    *) as_dir=$as_dir/ ;;
7894  esac
7895    for ac_exec_ext in '' $ac_executable_extensions; do
7896  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7898    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899    break 2
7900  fi
7901done
7902  done
7903IFS=$as_save_IFS
7904
7905fi ;;
7906esac
7907fi
7908ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7909if test -n "$ac_ct_MANIFEST_TOOL"; then
7910  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7911printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7912else
7913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914printf "%s\n" "no" >&6; }
7915fi
7916
7917  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7918    MANIFEST_TOOL=":"
7919  else
7920    case $cross_compiling:$ac_tool_warned in
7921yes:)
7922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7927  fi
7928else
7929  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7930fi
7931
7932test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7934printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7935if test ${lt_cv_path_manifest_tool+y}
7936then :
7937  printf %s "(cached) " >&6
7938else case e in #(
7939  e) lt_cv_path_manifest_tool=no
7940  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7941  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7942  cat conftest.err >&5
7943  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7944    lt_cv_path_manifest_tool=yes
7945  fi
7946  rm -f conftest* ;;
7947esac
7948fi
7949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7950printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7951if test yes != "$lt_cv_path_manifest_tool"; then
7952  MANIFEST_TOOL=:
7953fi
7954
7955
7956
7957
7958
7959
7960  case $host_os in
7961    rhapsody* | darwin*)
7962    if test -n "$ac_tool_prefix"; then
7963  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7964set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966printf %s "checking for $ac_word... " >&6; }
7967if test ${ac_cv_prog_DSYMUTIL+y}
7968then :
7969  printf %s "(cached) " >&6
7970else case e in #(
7971  e) if test -n "$DSYMUTIL"; then
7972  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7973else
7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977  IFS=$as_save_IFS
7978  case $as_dir in #(((
7979    '') as_dir=./ ;;
7980    */) ;;
7981    *) as_dir=$as_dir/ ;;
7982  esac
7983    for ac_exec_ext in '' $ac_executable_extensions; do
7984  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7985    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7986    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7987    break 2
7988  fi
7989done
7990  done
7991IFS=$as_save_IFS
7992
7993fi ;;
7994esac
7995fi
7996DSYMUTIL=$ac_cv_prog_DSYMUTIL
7997if test -n "$DSYMUTIL"; then
7998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7999printf "%s\n" "$DSYMUTIL" >&6; }
8000else
8001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002printf "%s\n" "no" >&6; }
8003fi
8004
8005
8006fi
8007if test -z "$ac_cv_prog_DSYMUTIL"; then
8008  ac_ct_DSYMUTIL=$DSYMUTIL
8009  # Extract the first word of "dsymutil", so it can be a program name with args.
8010set dummy dsymutil; ac_word=$2
8011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012printf %s "checking for $ac_word... " >&6; }
8013if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8014then :
8015  printf %s "(cached) " >&6
8016else case e in #(
8017  e) if test -n "$ac_ct_DSYMUTIL"; then
8018  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023  IFS=$as_save_IFS
8024  case $as_dir in #(((
8025    '') as_dir=./ ;;
8026    */) ;;
8027    *) as_dir=$as_dir/ ;;
8028  esac
8029    for ac_exec_ext in '' $ac_executable_extensions; do
8030  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8031    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8032    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8033    break 2
8034  fi
8035done
8036  done
8037IFS=$as_save_IFS
8038
8039fi ;;
8040esac
8041fi
8042ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8043if test -n "$ac_ct_DSYMUTIL"; then
8044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8045printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8046else
8047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048printf "%s\n" "no" >&6; }
8049fi
8050
8051  if test "x$ac_ct_DSYMUTIL" = x; then
8052    DSYMUTIL=":"
8053  else
8054    case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
8060    DSYMUTIL=$ac_ct_DSYMUTIL
8061  fi
8062else
8063  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8064fi
8065
8066    if test -n "$ac_tool_prefix"; then
8067  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8068set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070printf %s "checking for $ac_word... " >&6; }
8071if test ${ac_cv_prog_NMEDIT+y}
8072then :
8073  printf %s "(cached) " >&6
8074else case e in #(
8075  e) if test -n "$NMEDIT"; then
8076  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8077else
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081  IFS=$as_save_IFS
8082  case $as_dir in #(((
8083    '') as_dir=./ ;;
8084    */) ;;
8085    *) as_dir=$as_dir/ ;;
8086  esac
8087    for ac_exec_ext in '' $ac_executable_extensions; do
8088  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8089    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8090    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8091    break 2
8092  fi
8093done
8094  done
8095IFS=$as_save_IFS
8096
8097fi ;;
8098esac
8099fi
8100NMEDIT=$ac_cv_prog_NMEDIT
8101if test -n "$NMEDIT"; then
8102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8103printf "%s\n" "$NMEDIT" >&6; }
8104else
8105  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106printf "%s\n" "no" >&6; }
8107fi
8108
8109
8110fi
8111if test -z "$ac_cv_prog_NMEDIT"; then
8112  ac_ct_NMEDIT=$NMEDIT
8113  # Extract the first word of "nmedit", so it can be a program name with args.
8114set dummy nmedit; ac_word=$2
8115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116printf %s "checking for $ac_word... " >&6; }
8117if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8118then :
8119  printf %s "(cached) " >&6
8120else case e in #(
8121  e) if test -n "$ac_ct_NMEDIT"; then
8122  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127  IFS=$as_save_IFS
8128  case $as_dir in #(((
8129    '') as_dir=./ ;;
8130    */) ;;
8131    *) as_dir=$as_dir/ ;;
8132  esac
8133    for ac_exec_ext in '' $ac_executable_extensions; do
8134  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8135    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8136    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8137    break 2
8138  fi
8139done
8140  done
8141IFS=$as_save_IFS
8142
8143fi ;;
8144esac
8145fi
8146ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8147if test -n "$ac_ct_NMEDIT"; then
8148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8149printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8150else
8151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152printf "%s\n" "no" >&6; }
8153fi
8154
8155  if test "x$ac_ct_NMEDIT" = x; then
8156    NMEDIT=":"
8157  else
8158    case $cross_compiling:$ac_tool_warned in
8159yes:)
8160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8161printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8162ac_tool_warned=yes ;;
8163esac
8164    NMEDIT=$ac_ct_NMEDIT
8165  fi
8166else
8167  NMEDIT="$ac_cv_prog_NMEDIT"
8168fi
8169
8170    if test -n "$ac_tool_prefix"; then
8171  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8172set dummy ${ac_tool_prefix}lipo; ac_word=$2
8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174printf %s "checking for $ac_word... " >&6; }
8175if test ${ac_cv_prog_LIPO+y}
8176then :
8177  printf %s "(cached) " >&6
8178else case e in #(
8179  e) if test -n "$LIPO"; then
8180  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8181else
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185  IFS=$as_save_IFS
8186  case $as_dir in #(((
8187    '') as_dir=./ ;;
8188    */) ;;
8189    *) as_dir=$as_dir/ ;;
8190  esac
8191    for ac_exec_ext in '' $ac_executable_extensions; do
8192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8193    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8195    break 2
8196  fi
8197done
8198  done
8199IFS=$as_save_IFS
8200
8201fi ;;
8202esac
8203fi
8204LIPO=$ac_cv_prog_LIPO
8205if test -n "$LIPO"; then
8206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8207printf "%s\n" "$LIPO" >&6; }
8208else
8209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210printf "%s\n" "no" >&6; }
8211fi
8212
8213
8214fi
8215if test -z "$ac_cv_prog_LIPO"; then
8216  ac_ct_LIPO=$LIPO
8217  # Extract the first word of "lipo", so it can be a program name with args.
8218set dummy lipo; ac_word=$2
8219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220printf %s "checking for $ac_word... " >&6; }
8221if test ${ac_cv_prog_ac_ct_LIPO+y}
8222then :
8223  printf %s "(cached) " >&6
8224else case e in #(
8225  e) if test -n "$ac_ct_LIPO"; then
8226  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8227else
8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231  IFS=$as_save_IFS
8232  case $as_dir in #(((
8233    '') as_dir=./ ;;
8234    */) ;;
8235    *) as_dir=$as_dir/ ;;
8236  esac
8237    for ac_exec_ext in '' $ac_executable_extensions; do
8238  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8239    ac_cv_prog_ac_ct_LIPO="lipo"
8240    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8241    break 2
8242  fi
8243done
8244  done
8245IFS=$as_save_IFS
8246
8247fi ;;
8248esac
8249fi
8250ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8251if test -n "$ac_ct_LIPO"; then
8252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8253printf "%s\n" "$ac_ct_LIPO" >&6; }
8254else
8255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256printf "%s\n" "no" >&6; }
8257fi
8258
8259  if test "x$ac_ct_LIPO" = x; then
8260    LIPO=":"
8261  else
8262    case $cross_compiling:$ac_tool_warned in
8263yes:)
8264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8265printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8266ac_tool_warned=yes ;;
8267esac
8268    LIPO=$ac_ct_LIPO
8269  fi
8270else
8271  LIPO="$ac_cv_prog_LIPO"
8272fi
8273
8274    if test -n "$ac_tool_prefix"; then
8275  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8276set dummy ${ac_tool_prefix}otool; ac_word=$2
8277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278printf %s "checking for $ac_word... " >&6; }
8279if test ${ac_cv_prog_OTOOL+y}
8280then :
8281  printf %s "(cached) " >&6
8282else case e in #(
8283  e) if test -n "$OTOOL"; then
8284  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8285else
8286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289  IFS=$as_save_IFS
8290  case $as_dir in #(((
8291    '') as_dir=./ ;;
8292    */) ;;
8293    *) as_dir=$as_dir/ ;;
8294  esac
8295    for ac_exec_ext in '' $ac_executable_extensions; do
8296  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8297    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8298    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8299    break 2
8300  fi
8301done
8302  done
8303IFS=$as_save_IFS
8304
8305fi ;;
8306esac
8307fi
8308OTOOL=$ac_cv_prog_OTOOL
8309if test -n "$OTOOL"; then
8310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8311printf "%s\n" "$OTOOL" >&6; }
8312else
8313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314printf "%s\n" "no" >&6; }
8315fi
8316
8317
8318fi
8319if test -z "$ac_cv_prog_OTOOL"; then
8320  ac_ct_OTOOL=$OTOOL
8321  # Extract the first word of "otool", so it can be a program name with args.
8322set dummy otool; ac_word=$2
8323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324printf %s "checking for $ac_word... " >&6; }
8325if test ${ac_cv_prog_ac_ct_OTOOL+y}
8326then :
8327  printf %s "(cached) " >&6
8328else case e in #(
8329  e) if test -n "$ac_ct_OTOOL"; then
8330  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8331else
8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335  IFS=$as_save_IFS
8336  case $as_dir in #(((
8337    '') as_dir=./ ;;
8338    */) ;;
8339    *) as_dir=$as_dir/ ;;
8340  esac
8341    for ac_exec_ext in '' $ac_executable_extensions; do
8342  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8343    ac_cv_prog_ac_ct_OTOOL="otool"
8344    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8345    break 2
8346  fi
8347done
8348  done
8349IFS=$as_save_IFS
8350
8351fi ;;
8352esac
8353fi
8354ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8355if test -n "$ac_ct_OTOOL"; then
8356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8357printf "%s\n" "$ac_ct_OTOOL" >&6; }
8358else
8359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360printf "%s\n" "no" >&6; }
8361fi
8362
8363  if test "x$ac_ct_OTOOL" = x; then
8364    OTOOL=":"
8365  else
8366    case $cross_compiling:$ac_tool_warned in
8367yes:)
8368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370ac_tool_warned=yes ;;
8371esac
8372    OTOOL=$ac_ct_OTOOL
8373  fi
8374else
8375  OTOOL="$ac_cv_prog_OTOOL"
8376fi
8377
8378    if test -n "$ac_tool_prefix"; then
8379  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8380set dummy ${ac_tool_prefix}otool64; ac_word=$2
8381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382printf %s "checking for $ac_word... " >&6; }
8383if test ${ac_cv_prog_OTOOL64+y}
8384then :
8385  printf %s "(cached) " >&6
8386else case e in #(
8387  e) if test -n "$OTOOL64"; then
8388  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8389else
8390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391for as_dir in $PATH
8392do
8393  IFS=$as_save_IFS
8394  case $as_dir in #(((
8395    '') as_dir=./ ;;
8396    */) ;;
8397    *) as_dir=$as_dir/ ;;
8398  esac
8399    for ac_exec_ext in '' $ac_executable_extensions; do
8400  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8401    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8402    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8403    break 2
8404  fi
8405done
8406  done
8407IFS=$as_save_IFS
8408
8409fi ;;
8410esac
8411fi
8412OTOOL64=$ac_cv_prog_OTOOL64
8413if test -n "$OTOOL64"; then
8414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8415printf "%s\n" "$OTOOL64" >&6; }
8416else
8417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418printf "%s\n" "no" >&6; }
8419fi
8420
8421
8422fi
8423if test -z "$ac_cv_prog_OTOOL64"; then
8424  ac_ct_OTOOL64=$OTOOL64
8425  # Extract the first word of "otool64", so it can be a program name with args.
8426set dummy otool64; ac_word=$2
8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428printf %s "checking for $ac_word... " >&6; }
8429if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8430then :
8431  printf %s "(cached) " >&6
8432else case e in #(
8433  e) if test -n "$ac_ct_OTOOL64"; then
8434  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8435else
8436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439  IFS=$as_save_IFS
8440  case $as_dir in #(((
8441    '') as_dir=./ ;;
8442    */) ;;
8443    *) as_dir=$as_dir/ ;;
8444  esac
8445    for ac_exec_ext in '' $ac_executable_extensions; do
8446  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8447    ac_cv_prog_ac_ct_OTOOL64="otool64"
8448    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8449    break 2
8450  fi
8451done
8452  done
8453IFS=$as_save_IFS
8454
8455fi ;;
8456esac
8457fi
8458ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8459if test -n "$ac_ct_OTOOL64"; then
8460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8461printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8462else
8463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464printf "%s\n" "no" >&6; }
8465fi
8466
8467  if test "x$ac_ct_OTOOL64" = x; then
8468    OTOOL64=":"
8469  else
8470    case $cross_compiling:$ac_tool_warned in
8471yes:)
8472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474ac_tool_warned=yes ;;
8475esac
8476    OTOOL64=$ac_ct_OTOOL64
8477  fi
8478else
8479  OTOOL64="$ac_cv_prog_OTOOL64"
8480fi
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8509printf %s "checking for -single_module linker flag... " >&6; }
8510if test ${lt_cv_apple_cc_single_mod+y}
8511then :
8512  printf %s "(cached) " >&6
8513else case e in #(
8514  e) lt_cv_apple_cc_single_mod=no
8515      if test -z "$LT_MULTI_MODULE"; then
8516	# By default we will add the -single_module flag. You can override
8517	# by either setting the environment variable LT_MULTI_MODULE
8518	# non-empty at configure time, or by adding -multi_module to the
8519	# link flags.
8520	rm -rf libconftest.dylib*
8521	echo "int foo(void){return 1;}" > conftest.c
8522	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8523-dynamiclib -Wl,-single_module conftest.c" >&5
8524	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8525	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8526        _lt_result=$?
8527	# If there is a non-empty error log, and "single_module"
8528	# appears in it, assume the flag caused a linker warning
8529        if test -s conftest.err && $GREP single_module conftest.err; then
8530	  cat conftest.err >&5
8531	# Otherwise, if the output was created with a 0 exit code from
8532	# the compiler, it worked.
8533	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8534	  lt_cv_apple_cc_single_mod=yes
8535	else
8536	  cat conftest.err >&5
8537	fi
8538	rm -rf libconftest.dylib*
8539	rm -f conftest.*
8540      fi ;;
8541esac
8542fi
8543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8544printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8545
8546    # Feature test to disable chained fixups since it is not
8547    # compatible with '-undefined dynamic_lookup'
8548    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8549printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8550if test ${lt_cv_support_no_fixup_chains+y}
8551then :
8552  printf %s "(cached) " >&6
8553else case e in #(
8554  e)  save_LDFLAGS=$LDFLAGS
8555        LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8556        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558
8559int
8560main (void)
8561{
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567if ac_fn_c_try_link "$LINENO"
8568then :
8569  lt_cv_support_no_fixup_chains=yes
8570else case e in #(
8571  e) lt_cv_support_no_fixup_chains=no
8572         ;;
8573esac
8574fi
8575rm -f core conftest.err conftest.$ac_objext conftest.beam \
8576    conftest$ac_exeext conftest.$ac_ext
8577        LDFLAGS=$save_LDFLAGS
8578
8579     ;;
8580esac
8581fi
8582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8583printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8584
8585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8586printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8587if test ${lt_cv_ld_exported_symbols_list+y}
8588then :
8589  printf %s "(cached) " >&6
8590else case e in #(
8591  e) lt_cv_ld_exported_symbols_list=no
8592      save_LDFLAGS=$LDFLAGS
8593      echo "_main" > conftest.sym
8594      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8595      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596/* end confdefs.h.  */
8597
8598int
8599main (void)
8600{
8601
8602  ;
8603  return 0;
8604}
8605_ACEOF
8606if ac_fn_c_try_link "$LINENO"
8607then :
8608  lt_cv_ld_exported_symbols_list=yes
8609else case e in #(
8610  e) lt_cv_ld_exported_symbols_list=no ;;
8611esac
8612fi
8613rm -f core conftest.err conftest.$ac_objext conftest.beam \
8614    conftest$ac_exeext conftest.$ac_ext
8615	LDFLAGS=$save_LDFLAGS
8616     ;;
8617esac
8618fi
8619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8620printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8621
8622    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8623printf %s "checking for -force_load linker flag... " >&6; }
8624if test ${lt_cv_ld_force_load+y}
8625then :
8626  printf %s "(cached) " >&6
8627else case e in #(
8628  e) lt_cv_ld_force_load=no
8629      cat > conftest.c << _LT_EOF
8630int forced_loaded() { return 2;}
8631_LT_EOF
8632      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8633      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8634      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8635      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8636      echo "$RANLIB libconftest.a" >&5
8637      $RANLIB libconftest.a 2>&5
8638      cat > conftest.c << _LT_EOF
8639int main(void) { return 0;}
8640_LT_EOF
8641      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8642      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8643      _lt_result=$?
8644      if test -s conftest.err && $GREP force_load conftest.err; then
8645	cat conftest.err >&5
8646      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8647	lt_cv_ld_force_load=yes
8648      else
8649	cat conftest.err >&5
8650      fi
8651        rm -f conftest.err libconftest.a conftest conftest.c
8652        rm -rf conftest.dSYM
8653     ;;
8654esac
8655fi
8656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8657printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8658    case $host_os in
8659    rhapsody* | darwin1.[012])
8660      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8661    darwin1.*)
8662      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8663    darwin*)
8664      case $MACOSX_DEPLOYMENT_TARGET,$host in
8665        10.[012],*|,*powerpc*-darwin[5-8]*)
8666          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8667        *)
8668          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8669          if test yes = "$lt_cv_support_no_fixup_chains"; then
8670            as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8671          fi
8672        ;;
8673      esac
8674    ;;
8675  esac
8676    if test yes = "$lt_cv_apple_cc_single_mod"; then
8677      _lt_dar_single_mod='$single_module'
8678    fi
8679    _lt_dar_needs_single_mod=no
8680    case $host_os in
8681    rhapsody* | darwin1.*)
8682      _lt_dar_needs_single_mod=yes ;;
8683    darwin*)
8684      # When targeting Mac OS X 10.4 (darwin 8) or later,
8685      # -single_module is the default and -multi_module is unsupported.
8686      # The toolchain on macOS 10.14 (darwin 18) and later cannot
8687      # target any OS version that needs -single_module.
8688      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8689      10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8690        _lt_dar_needs_single_mod=yes ;;
8691      esac
8692    ;;
8693    esac
8694    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8695      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8696    else
8697      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8698    fi
8699    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8700      _lt_dsymutil='~$DSYMUTIL $lib || :'
8701    else
8702      _lt_dsymutil=
8703    fi
8704    ;;
8705  esac
8706
8707# func_munge_path_list VARIABLE PATH
8708# -----------------------------------
8709# VARIABLE is name of variable containing _space_ separated list of
8710# directories to be munged by the contents of PATH, which is string
8711# having a format:
8712# "DIR[:DIR]:"
8713#       string "DIR[ DIR]" will be prepended to VARIABLE
8714# ":DIR[:DIR]"
8715#       string "DIR[ DIR]" will be appended to VARIABLE
8716# "DIRP[:DIRP]::[DIRA:]DIRA"
8717#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8718#       "DIRA[ DIRA]" will be appended to VARIABLE
8719# "DIR[:DIR]"
8720#       VARIABLE will be replaced by "DIR[ DIR]"
8721func_munge_path_list ()
8722{
8723    case x$2 in
8724    x)
8725        ;;
8726    *:)
8727        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8728        ;;
8729    x:*)
8730        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8731        ;;
8732    *::*)
8733        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8734        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8735        ;;
8736    *)
8737        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8738        ;;
8739    esac
8740}
8741
8742ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8743"
8744if test "x$ac_cv_header_dlfcn_h" = xyes
8745then :
8746  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8747
8748fi
8749
8750
8751
8752
8753
8754# Set options
8755
8756
8757
8758        enable_dlopen=no
8759
8760
8761  enable_win32_dll=no
8762
8763
8764            # Check whether --enable-shared was given.
8765if test ${enable_shared+y}
8766then :
8767  enableval=$enable_shared; p=${PACKAGE-default}
8768    case $enableval in
8769    yes) enable_shared=yes ;;
8770    no) enable_shared=no ;;
8771    *)
8772      enable_shared=no
8773      # Look at the argument we got.  We use all the common list separators.
8774      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8775      for pkg in $enableval; do
8776	IFS=$lt_save_ifs
8777	if test "X$pkg" = "X$p"; then
8778	  enable_shared=yes
8779	fi
8780      done
8781      IFS=$lt_save_ifs
8782      ;;
8783    esac
8784else case e in #(
8785  e) enable_shared=yes ;;
8786esac
8787fi
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797  # Check whether --enable-static was given.
8798if test ${enable_static+y}
8799then :
8800  enableval=$enable_static; p=${PACKAGE-default}
8801    case $enableval in
8802    yes) enable_static=yes ;;
8803    no) enable_static=no ;;
8804    *)
8805     enable_static=no
8806      # Look at the argument we got.  We use all the common list separators.
8807      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8808      for pkg in $enableval; do
8809	IFS=$lt_save_ifs
8810	if test "X$pkg" = "X$p"; then
8811	  enable_static=yes
8812	fi
8813      done
8814      IFS=$lt_save_ifs
8815      ;;
8816    esac
8817else case e in #(
8818  e) enable_static=yes ;;
8819esac
8820fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830  # Check whether --enable-pic was given.
8831if test ${enable_pic+y}
8832then :
8833  enableval=$enable_pic; lt_p=${PACKAGE-default}
8834     case $enableval in
8835     yes|no) pic_mode=$enableval ;;
8836     *)
8837       pic_mode=default
8838       # Look at the argument we got.  We use all the common list separators.
8839       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8840       for lt_pkg in $enableval; do
8841	 IFS=$lt_save_ifs
8842	 if test "X$lt_pkg" = "X$lt_p"; then
8843	   pic_mode=yes
8844	 fi
8845       done
8846       IFS=$lt_save_ifs
8847       ;;
8848     esac
8849else case e in #(
8850  e)           # Check whether --with-pic was given.
8851if test ${with_pic+y}
8852then :
8853  withval=$with_pic; lt_p=${PACKAGE-default}
8854	 case $withval in
8855	 yes|no) pic_mode=$withval ;;
8856	 *)
8857	   pic_mode=default
8858	   # Look at the argument we got.  We use all the common list separators.
8859	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8860	   for lt_pkg in $withval; do
8861	     IFS=$lt_save_ifs
8862	     if test "X$lt_pkg" = "X$lt_p"; then
8863	       pic_mode=yes
8864	     fi
8865	   done
8866	   IFS=$lt_save_ifs
8867	   ;;
8868	 esac
8869else case e in #(
8870  e) pic_mode=default ;;
8871esac
8872fi
8873
8874     ;;
8875esac
8876fi
8877
8878
8879
8880
8881
8882
8883
8884
8885  # Check whether --enable-fast-install was given.
8886if test ${enable_fast_install+y}
8887then :
8888  enableval=$enable_fast_install; p=${PACKAGE-default}
8889    case $enableval in
8890    yes) enable_fast_install=yes ;;
8891    no) enable_fast_install=no ;;
8892    *)
8893      enable_fast_install=no
8894      # Look at the argument we got.  We use all the common list separators.
8895      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8896      for pkg in $enableval; do
8897	IFS=$lt_save_ifs
8898	if test "X$pkg" = "X$p"; then
8899	  enable_fast_install=yes
8900	fi
8901      done
8902      IFS=$lt_save_ifs
8903      ;;
8904    esac
8905else case e in #(
8906  e) enable_fast_install=yes ;;
8907esac
8908fi
8909
8910
8911
8912
8913
8914
8915
8916
8917  shared_archive_member_spec=
8918case $host,$enable_shared in
8919power*-*-aix[5-9]*,yes)
8920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8921printf %s "checking which variant of shared library versioning to provide... " >&6; }
8922  # Check whether --enable-aix-soname was given.
8923if test ${enable_aix_soname+y}
8924then :
8925  enableval=$enable_aix_soname; case $enableval in
8926     aix|svr4|both)
8927       ;;
8928     *)
8929       as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8930       ;;
8931     esac
8932     lt_cv_with_aix_soname=$enable_aix_soname
8933else case e in #(
8934  e) # Check whether --with-aix-soname was given.
8935if test ${with_aix_soname+y}
8936then :
8937  withval=$with_aix_soname; case $withval in
8938         aix|svr4|both)
8939           ;;
8940         *)
8941           as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8942           ;;
8943         esac
8944         lt_cv_with_aix_soname=$with_aix_soname
8945else case e in #(
8946  e) if test ${lt_cv_with_aix_soname+y}
8947then :
8948  printf %s "(cached) " >&6
8949else case e in #(
8950  e) lt_cv_with_aix_soname=aix ;;
8951esac
8952fi
8953 ;;
8954esac
8955fi
8956
8957     enable_aix_soname=$lt_cv_with_aix_soname ;;
8958esac
8959fi
8960
8961  with_aix_soname=$enable_aix_soname
8962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8963printf "%s\n" "$with_aix_soname" >&6; }
8964  if test aix != "$with_aix_soname"; then
8965    # For the AIX way of multilib, we name the shared archive member
8966    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8967    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8968    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8969    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8970    if test 64 = "${OBJECT_MODE-32}"; then
8971      shared_archive_member_spec=shr_64
8972    else
8973      shared_archive_member_spec=shr
8974    fi
8975  fi
8976  ;;
8977*)
8978  with_aix_soname=aix
8979  ;;
8980esac
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991# This can be used to rebuild libtool when needed
8992LIBTOOL_DEPS=$ltmain
8993
8994# Always use our own libtool.
8995LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026test -z "$LN_S" && LN_S="ln -s"
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041if test -n "${ZSH_VERSION+set}"; then
9042   setopt NO_GLOB_SUBST
9043fi
9044
9045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9046printf %s "checking for objdir... " >&6; }
9047if test ${lt_cv_objdir+y}
9048then :
9049  printf %s "(cached) " >&6
9050else case e in #(
9051  e) rm -f .libs 2>/dev/null
9052mkdir .libs 2>/dev/null
9053if test -d .libs; then
9054  lt_cv_objdir=.libs
9055else
9056  # MS-DOS does not allow filenames that begin with a dot.
9057  lt_cv_objdir=_libs
9058fi
9059rmdir .libs 2>/dev/null ;;
9060esac
9061fi
9062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9063printf "%s\n" "$lt_cv_objdir" >&6; }
9064objdir=$lt_cv_objdir
9065
9066
9067
9068
9069
9070printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9071
9072
9073
9074
9075case $host_os in
9076aix3*)
9077  # AIX sometimes has problems with the GCC collect2 program.  For some
9078  # reason, if we set the COLLECT_NAMES environment variable, the problems
9079  # vanish in a puff of smoke.
9080  if test set != "${COLLECT_NAMES+set}"; then
9081    COLLECT_NAMES=
9082    export COLLECT_NAMES
9083  fi
9084  ;;
9085esac
9086
9087# Global variables:
9088ofile=libtool
9089can_build_shared=yes
9090
9091# All known linkers require a '.a' archive for static linking (except MSVC and
9092# ICC, which need '.lib').
9093libext=a
9094
9095with_gnu_ld=$lt_cv_prog_gnu_ld
9096
9097old_CC=$CC
9098old_CFLAGS=$CFLAGS
9099
9100# Set sane defaults for various variables
9101test -z "$CC" && CC=cc
9102test -z "$LTCC" && LTCC=$CC
9103test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9104test -z "$LD" && LD=ld
9105test -z "$ac_objext" && ac_objext=o
9106
9107func_cc_basename $compiler
9108cc_basename=$func_cc_basename_result
9109
9110
9111# Only perform the check for file, if the check method requires it
9112test -z "$MAGIC_CMD" && MAGIC_CMD=file
9113case $deplibs_check_method in
9114file_magic*)
9115  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9116    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9117printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9118if test ${lt_cv_path_MAGIC_CMD+y}
9119then :
9120  printf %s "(cached) " >&6
9121else case e in #(
9122  e) case $MAGIC_CMD in
9123[\\/*] |  ?:[\\/]*)
9124  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9125  ;;
9126*)
9127  lt_save_MAGIC_CMD=$MAGIC_CMD
9128  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9129  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9130  for ac_dir in $ac_dummy; do
9131    IFS=$lt_save_ifs
9132    test -z "$ac_dir" && ac_dir=.
9133    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9134      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9135      if test -n "$file_magic_test_file"; then
9136	case $deplibs_check_method in
9137	"file_magic "*)
9138	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9139	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9140	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9141	    $EGREP "$file_magic_regex" > /dev/null; then
9142	    :
9143	  else
9144	    cat <<_LT_EOF 1>&2
9145
9146*** Warning: the command libtool uses to detect shared libraries,
9147*** $file_magic_cmd, produces output that libtool cannot recognize.
9148*** The result is that libtool may fail to recognize shared libraries
9149*** as such.  This will affect the creation of libtool libraries that
9150*** depend on shared libraries, but programs linked with such libtool
9151*** libraries will work regardless of this problem.  Nevertheless, you
9152*** may want to report the problem to your system manager and/or to
9153*** bug-libtool@gnu.org
9154
9155_LT_EOF
9156	  fi ;;
9157	esac
9158      fi
9159      break
9160    fi
9161  done
9162  IFS=$lt_save_ifs
9163  MAGIC_CMD=$lt_save_MAGIC_CMD
9164  ;;
9165esac ;;
9166esac
9167fi
9168
9169MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9170if test -n "$MAGIC_CMD"; then
9171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9172printf "%s\n" "$MAGIC_CMD" >&6; }
9173else
9174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175printf "%s\n" "no" >&6; }
9176fi
9177
9178
9179
9180
9181
9182if test -z "$lt_cv_path_MAGIC_CMD"; then
9183  if test -n "$ac_tool_prefix"; then
9184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9185printf %s "checking for file... " >&6; }
9186if test ${lt_cv_path_MAGIC_CMD+y}
9187then :
9188  printf %s "(cached) " >&6
9189else case e in #(
9190  e) case $MAGIC_CMD in
9191[\\/*] |  ?:[\\/]*)
9192  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9193  ;;
9194*)
9195  lt_save_MAGIC_CMD=$MAGIC_CMD
9196  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9197  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9198  for ac_dir in $ac_dummy; do
9199    IFS=$lt_save_ifs
9200    test -z "$ac_dir" && ac_dir=.
9201    if test -f "$ac_dir/file"; then
9202      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9203      if test -n "$file_magic_test_file"; then
9204	case $deplibs_check_method in
9205	"file_magic "*)
9206	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9207	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9208	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9209	    $EGREP "$file_magic_regex" > /dev/null; then
9210	    :
9211	  else
9212	    cat <<_LT_EOF 1>&2
9213
9214*** Warning: the command libtool uses to detect shared libraries,
9215*** $file_magic_cmd, produces output that libtool cannot recognize.
9216*** The result is that libtool may fail to recognize shared libraries
9217*** as such.  This will affect the creation of libtool libraries that
9218*** depend on shared libraries, but programs linked with such libtool
9219*** libraries will work regardless of this problem.  Nevertheless, you
9220*** may want to report the problem to your system manager and/or to
9221*** bug-libtool@gnu.org
9222
9223_LT_EOF
9224	  fi ;;
9225	esac
9226      fi
9227      break
9228    fi
9229  done
9230  IFS=$lt_save_ifs
9231  MAGIC_CMD=$lt_save_MAGIC_CMD
9232  ;;
9233esac ;;
9234esac
9235fi
9236
9237MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9238if test -n "$MAGIC_CMD"; then
9239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9240printf "%s\n" "$MAGIC_CMD" >&6; }
9241else
9242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243printf "%s\n" "no" >&6; }
9244fi
9245
9246
9247  else
9248    MAGIC_CMD=:
9249  fi
9250fi
9251
9252  fi
9253  ;;
9254esac
9255
9256# Use C for the default configuration in the libtool script
9257
9258lt_save_CC=$CC
9259ac_ext=c
9260ac_cpp='$CPP $CPPFLAGS'
9261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9263ac_compiler_gnu=$ac_cv_c_compiler_gnu
9264
9265
9266# Source file extension for C test sources.
9267ac_ext=c
9268
9269# Object file extension for compiled C test sources.
9270objext=o
9271objext=$objext
9272
9273# Code to be used in simple compile tests
9274lt_simple_compile_test_code="int some_variable = 0;"
9275
9276# Code to be used in simple link tests
9277lt_simple_link_test_code='int main(void){return(0);}'
9278
9279
9280
9281
9282
9283
9284
9285# If no C compiler was specified, use CC.
9286LTCC=${LTCC-"$CC"}
9287
9288# If no C compiler flags were specified, use CFLAGS.
9289LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9290
9291# Allow CC to be a program name with arguments.
9292compiler=$CC
9293
9294# Save the default compiler, since it gets overwritten when the other
9295# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9296compiler_DEFAULT=$CC
9297
9298# save warnings/boilerplate of simple test code
9299ac_outfile=conftest.$ac_objext
9300echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9301eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9302_lt_compiler_boilerplate=`cat conftest.err`
9303$RM conftest*
9304
9305ac_outfile=conftest.$ac_objext
9306echo "$lt_simple_link_test_code" >conftest.$ac_ext
9307eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9308_lt_linker_boilerplate=`cat conftest.err`
9309$RM -r conftest*
9310
9311
9312## CAVEAT EMPTOR:
9313## There is no encapsulation within the following macros, do not change
9314## the running order or otherwise move them around unless you know exactly
9315## what you are doing...
9316if test -n "$compiler"; then
9317
9318lt_prog_compiler_no_builtin_flag=
9319
9320if test yes = "$GCC"; then
9321  case $cc_basename in
9322  nvcc*)
9323    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9324  *)
9325    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9326  esac
9327
9328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9329printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9330if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9331then :
9332  printf %s "(cached) " >&6
9333else case e in #(
9334  e) lt_cv_prog_compiler_rtti_exceptions=no
9335   ac_outfile=conftest.$ac_objext
9336   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9337   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9338   # Insert the option either (1) after the last *FLAGS variable, or
9339   # (2) before a word containing "conftest.", or (3) at the end.
9340   # Note that $ac_compile itself does not contain backslashes and begins
9341   # with a dollar sign (not a hyphen), so the echo should work correctly.
9342   # The option is referenced via a variable to avoid confusing sed.
9343   lt_compile=`echo "$ac_compile" | $SED \
9344   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9345   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9346   -e 's:$: $lt_compiler_flag:'`
9347   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9348   (eval "$lt_compile" 2>conftest.err)
9349   ac_status=$?
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   if (exit $ac_status) && test -s "$ac_outfile"; then
9353     # The compiler can only warn and ignore the option if not recognized
9354     # So say no if there are warnings other than the usual output.
9355     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9356     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9357     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9358       lt_cv_prog_compiler_rtti_exceptions=yes
9359     fi
9360   fi
9361   $RM conftest*
9362 ;;
9363esac
9364fi
9365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9366printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9367
9368if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9369    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9370else
9371    :
9372fi
9373
9374fi
9375
9376
9377
9378
9379
9380
9381  lt_prog_compiler_wl=
9382lt_prog_compiler_pic=
9383lt_prog_compiler_static=
9384
9385
9386  if test yes = "$GCC"; then
9387    lt_prog_compiler_wl='-Wl,'
9388    lt_prog_compiler_static='-static'
9389
9390    case $host_os in
9391      aix*)
9392      # All AIX code is PIC.
9393      if test ia64 = "$host_cpu"; then
9394	# AIX 5 now supports IA64 processor
9395	lt_prog_compiler_static='-Bstatic'
9396      fi
9397      lt_prog_compiler_pic='-fPIC'
9398      ;;
9399
9400    amigaos*)
9401      case $host_cpu in
9402      powerpc)
9403            # see comment about AmigaOS4 .so support
9404            lt_prog_compiler_pic='-fPIC'
9405        ;;
9406      m68k)
9407            # FIXME: we need at least 68020 code to build shared libraries, but
9408            # adding the '-m68020' flag to GCC prevents building anything better,
9409            # like '-m68040'.
9410            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9411        ;;
9412      esac
9413      ;;
9414
9415    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9416      # PIC is the default for these OSes.
9417      ;;
9418
9419    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9420      # This hack is so that the source file can tell whether it is being
9421      # built for inclusion in a dll (and should export symbols for example).
9422      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9423      # (--disable-auto-import) libraries
9424      lt_prog_compiler_pic='-DDLL_EXPORT'
9425      case $host_os in
9426      os2*)
9427	lt_prog_compiler_static='$wl-static'
9428	;;
9429      esac
9430      ;;
9431
9432    darwin* | rhapsody*)
9433      # PIC is the default on this platform
9434      # Common symbols not allowed in MH_DYLIB files
9435      lt_prog_compiler_pic='-fno-common'
9436      ;;
9437
9438    haiku*)
9439      # PIC is the default for Haiku.
9440      # The "-static" flag exists, but is broken.
9441      lt_prog_compiler_static=
9442      ;;
9443
9444    hpux*)
9445      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9446      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9447      # sets the default TLS model and affects inlining.
9448      case $host_cpu in
9449      hppa*64*)
9450	# +Z the default
9451	;;
9452      *)
9453	lt_prog_compiler_pic='-fPIC'
9454	;;
9455      esac
9456      ;;
9457
9458    interix[3-9]*)
9459      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9460      # Instead, we relocate shared libraries at runtime.
9461      ;;
9462
9463    msdosdjgpp*)
9464      # Just because we use GCC doesn't mean we suddenly get shared libraries
9465      # on systems that don't support them.
9466      lt_prog_compiler_can_build_shared=no
9467      enable_shared=no
9468      ;;
9469
9470    *nto* | *qnx*)
9471      # QNX uses GNU C++, but need to define -shared option too, otherwise
9472      # it will coredump.
9473      lt_prog_compiler_pic='-fPIC -shared'
9474      ;;
9475
9476    sysv4*MP*)
9477      if test -d /usr/nec; then
9478	lt_prog_compiler_pic=-Kconform_pic
9479      fi
9480      ;;
9481
9482    *)
9483      lt_prog_compiler_pic='-fPIC'
9484      ;;
9485    esac
9486
9487    case $cc_basename in
9488    nvcc*) # Cuda Compiler Driver 2.2
9489      lt_prog_compiler_wl='-Xlinker '
9490      if test -n "$lt_prog_compiler_pic"; then
9491        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9492      fi
9493      ;;
9494    esac
9495  else
9496    # PORTME Check for flag to pass linker flags through the system compiler.
9497    case $host_os in
9498    aix*)
9499      lt_prog_compiler_wl='-Wl,'
9500      if test ia64 = "$host_cpu"; then
9501	# AIX 5 now supports IA64 processor
9502	lt_prog_compiler_static='-Bstatic'
9503      else
9504	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9505      fi
9506      ;;
9507
9508    darwin* | rhapsody*)
9509      # PIC is the default on this platform
9510      # Common symbols not allowed in MH_DYLIB files
9511      lt_prog_compiler_pic='-fno-common'
9512      case $cc_basename in
9513      nagfor*)
9514        # NAG Fortran compiler
9515        lt_prog_compiler_wl='-Wl,-Wl,,'
9516        lt_prog_compiler_pic='-PIC'
9517        lt_prog_compiler_static='-Bstatic'
9518        ;;
9519      esac
9520      ;;
9521
9522    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9523      # This hack is so that the source file can tell whether it is being
9524      # built for inclusion in a dll (and should export symbols for example).
9525      lt_prog_compiler_pic='-DDLL_EXPORT'
9526      case $host_os in
9527      os2*)
9528	lt_prog_compiler_static='$wl-static'
9529	;;
9530      esac
9531      ;;
9532
9533    hpux9* | hpux10* | hpux11*)
9534      lt_prog_compiler_wl='-Wl,'
9535      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9536      # not for PA HP-UX.
9537      case $host_cpu in
9538      hppa*64*|ia64*)
9539	# +Z the default
9540	;;
9541      *)
9542	lt_prog_compiler_pic='+Z'
9543	;;
9544      esac
9545      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9546      lt_prog_compiler_static='$wl-a ${wl}archive'
9547      ;;
9548
9549    irix5* | irix6* | nonstopux*)
9550      lt_prog_compiler_wl='-Wl,'
9551      # PIC (with -KPIC) is the default.
9552      lt_prog_compiler_static='-non_shared'
9553      ;;
9554
9555    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9556      case $cc_basename in
9557      # old Intel for x86_64, which still supported -KPIC.
9558      ecc*)
9559	lt_prog_compiler_wl='-Wl,'
9560	lt_prog_compiler_pic='-KPIC'
9561	lt_prog_compiler_static='-static'
9562        ;;
9563      *flang* | ftn | f18* | f95*)
9564        # Flang compiler.
9565	lt_prog_compiler_wl='-Wl,'
9566	lt_prog_compiler_pic='-fPIC'
9567	lt_prog_compiler_static='-static'
9568        ;;
9569      # icc used to be incompatible with GCC.
9570      # ICC 10 doesn't accept -KPIC any more.
9571      icc* | ifort*)
9572	lt_prog_compiler_wl='-Wl,'
9573	lt_prog_compiler_pic='-fPIC'
9574	lt_prog_compiler_static='-static'
9575        ;;
9576      # Lahey Fortran 8.1.
9577      lf95*)
9578	lt_prog_compiler_wl='-Wl,'
9579	lt_prog_compiler_pic='--shared'
9580	lt_prog_compiler_static='--static'
9581	;;
9582      nagfor*)
9583	# NAG Fortran compiler
9584	lt_prog_compiler_wl='-Wl,-Wl,,'
9585	lt_prog_compiler_pic='-PIC'
9586	lt_prog_compiler_static='-Bstatic'
9587	;;
9588      tcc*)
9589	# Fabrice Bellard et al's Tiny C Compiler
9590	lt_prog_compiler_wl='-Wl,'
9591	lt_prog_compiler_pic='-fPIC'
9592	lt_prog_compiler_static='-static'
9593	;;
9594      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9595        # Portland Group compilers (*not* the Pentium gcc compiler,
9596	# which looks to be a dead project)
9597	lt_prog_compiler_wl='-Wl,'
9598	lt_prog_compiler_pic='-fpic'
9599	lt_prog_compiler_static='-Bstatic'
9600        ;;
9601      ccc*)
9602        lt_prog_compiler_wl='-Wl,'
9603        # All Alpha code is PIC.
9604        lt_prog_compiler_static='-non_shared'
9605        ;;
9606      xl* | bgxl* | bgf* | mpixl*)
9607	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9608	lt_prog_compiler_wl='-Wl,'
9609	lt_prog_compiler_pic='-qpic'
9610	lt_prog_compiler_static='-qstaticlink'
9611	;;
9612      *)
9613	case `$CC -V 2>&1 | $SED 5q` in
9614	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9615	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9616	  lt_prog_compiler_pic='-KPIC'
9617	  lt_prog_compiler_static='-Bstatic'
9618	  lt_prog_compiler_wl=''
9619	  ;;
9620	*Sun\ F* | *Sun*Fortran*)
9621	  lt_prog_compiler_pic='-KPIC'
9622	  lt_prog_compiler_static='-Bstatic'
9623	  lt_prog_compiler_wl='-Qoption ld '
9624	  ;;
9625	*Sun\ C*)
9626	  # Sun C 5.9
9627	  lt_prog_compiler_pic='-KPIC'
9628	  lt_prog_compiler_static='-Bstatic'
9629	  lt_prog_compiler_wl='-Wl,'
9630	  ;;
9631        *Intel*\ [CF]*Compiler*)
9632	  lt_prog_compiler_wl='-Wl,'
9633	  lt_prog_compiler_pic='-fPIC'
9634	  lt_prog_compiler_static='-static'
9635	  ;;
9636	*Portland\ Group*)
9637	  lt_prog_compiler_wl='-Wl,'
9638	  lt_prog_compiler_pic='-fpic'
9639	  lt_prog_compiler_static='-Bstatic'
9640	  ;;
9641	esac
9642	;;
9643      esac
9644      ;;
9645
9646    newsos6)
9647      lt_prog_compiler_pic='-KPIC'
9648      lt_prog_compiler_static='-Bstatic'
9649      ;;
9650
9651    *-mlibc)
9652      lt_prog_compiler_wl='-Wl,'
9653      lt_prog_compiler_pic='-fPIC'
9654      lt_prog_compiler_static='-static'
9655      ;;
9656
9657    *nto* | *qnx*)
9658      # QNX uses GNU C++, but need to define -shared option too, otherwise
9659      # it will coredump.
9660      lt_prog_compiler_pic='-fPIC -shared'
9661      ;;
9662
9663    osf3* | osf4* | osf5*)
9664      lt_prog_compiler_wl='-Wl,'
9665      # All OSF/1 code is PIC.
9666      lt_prog_compiler_static='-non_shared'
9667      ;;
9668
9669    rdos*)
9670      lt_prog_compiler_static='-non_shared'
9671      ;;
9672
9673    serenity*)
9674      ;;
9675
9676    solaris*)
9677      lt_prog_compiler_pic='-KPIC'
9678      lt_prog_compiler_static='-Bstatic'
9679      case $cc_basename in
9680      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9681	lt_prog_compiler_wl='-Qoption ld ';;
9682      *)
9683	lt_prog_compiler_wl='-Wl,';;
9684      esac
9685      ;;
9686
9687    sunos4*)
9688      lt_prog_compiler_wl='-Qoption ld '
9689      lt_prog_compiler_pic='-PIC'
9690      lt_prog_compiler_static='-Bstatic'
9691      ;;
9692
9693    sysv4 | sysv4.2uw2* | sysv4.3*)
9694      lt_prog_compiler_wl='-Wl,'
9695      lt_prog_compiler_pic='-KPIC'
9696      lt_prog_compiler_static='-Bstatic'
9697      ;;
9698
9699    sysv4*MP*)
9700      if test -d /usr/nec; then
9701	lt_prog_compiler_pic='-Kconform_pic'
9702	lt_prog_compiler_static='-Bstatic'
9703      fi
9704      ;;
9705
9706    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9707      lt_prog_compiler_wl='-Wl,'
9708      lt_prog_compiler_pic='-KPIC'
9709      lt_prog_compiler_static='-Bstatic'
9710      ;;
9711
9712    unicos*)
9713      lt_prog_compiler_wl='-Wl,'
9714      lt_prog_compiler_can_build_shared=no
9715      ;;
9716
9717    uts4*)
9718      lt_prog_compiler_pic='-pic'
9719      lt_prog_compiler_static='-Bstatic'
9720      ;;
9721
9722    *)
9723      lt_prog_compiler_can_build_shared=no
9724      ;;
9725    esac
9726  fi
9727
9728case $host_os in
9729  # For platforms that do not support PIC, -DPIC is meaningless:
9730  *djgpp*)
9731    lt_prog_compiler_pic=
9732    ;;
9733  *)
9734    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9735    ;;
9736esac
9737
9738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9739printf %s "checking for $compiler option to produce PIC... " >&6; }
9740if test ${lt_cv_prog_compiler_pic+y}
9741then :
9742  printf %s "(cached) " >&6
9743else case e in #(
9744  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9745esac
9746fi
9747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9748printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9749lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9750
9751#
9752# Check to make sure the PIC flag actually works.
9753#
9754if test -n "$lt_prog_compiler_pic"; then
9755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9756printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9757if test ${lt_cv_prog_compiler_pic_works+y}
9758then :
9759  printf %s "(cached) " >&6
9760else case e in #(
9761  e) lt_cv_prog_compiler_pic_works=no
9762   ac_outfile=conftest.$ac_objext
9763   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9764   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9765   # Insert the option either (1) after the last *FLAGS variable, or
9766   # (2) before a word containing "conftest.", or (3) at the end.
9767   # Note that $ac_compile itself does not contain backslashes and begins
9768   # with a dollar sign (not a hyphen), so the echo should work correctly.
9769   # The option is referenced via a variable to avoid confusing sed.
9770   lt_compile=`echo "$ac_compile" | $SED \
9771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9773   -e 's:$: $lt_compiler_flag:'`
9774   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9775   (eval "$lt_compile" 2>conftest.err)
9776   ac_status=$?
9777   cat conftest.err >&5
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   if (exit $ac_status) && test -s "$ac_outfile"; then
9780     # The compiler can only warn and ignore the option if not recognized
9781     # So say no if there are warnings other than the usual output.
9782     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9783     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9784     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9785       lt_cv_prog_compiler_pic_works=yes
9786     fi
9787   fi
9788   $RM conftest*
9789 ;;
9790esac
9791fi
9792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9793printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9794
9795if test yes = "$lt_cv_prog_compiler_pic_works"; then
9796    case $lt_prog_compiler_pic in
9797     "" | " "*) ;;
9798     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9799     esac
9800else
9801    lt_prog_compiler_pic=
9802     lt_prog_compiler_can_build_shared=no
9803fi
9804
9805fi
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817#
9818# Check to make sure the static flag actually works.
9819#
9820wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9822printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9823if test ${lt_cv_prog_compiler_static_works+y}
9824then :
9825  printf %s "(cached) " >&6
9826else case e in #(
9827  e) lt_cv_prog_compiler_static_works=no
9828   save_LDFLAGS=$LDFLAGS
9829   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9830   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9831   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9832     # The linker can only warn and ignore the option if not recognized
9833     # So say no if there are warnings
9834     if test -s conftest.err; then
9835       # Append any errors to the config.log.
9836       cat conftest.err 1>&5
9837       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9838       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9839       if diff conftest.exp conftest.er2 >/dev/null; then
9840         lt_cv_prog_compiler_static_works=yes
9841       fi
9842     else
9843       lt_cv_prog_compiler_static_works=yes
9844     fi
9845   fi
9846   $RM -r conftest*
9847   LDFLAGS=$save_LDFLAGS
9848 ;;
9849esac
9850fi
9851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9852printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9853
9854if test yes = "$lt_cv_prog_compiler_static_works"; then
9855    :
9856else
9857    lt_prog_compiler_static=
9858fi
9859
9860
9861
9862
9863
9864
9865
9866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9867printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9868if test ${lt_cv_prog_compiler_c_o+y}
9869then :
9870  printf %s "(cached) " >&6
9871else case e in #(
9872  e) lt_cv_prog_compiler_c_o=no
9873   $RM -r conftest 2>/dev/null
9874   mkdir conftest
9875   cd conftest
9876   mkdir out
9877   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9878
9879   lt_compiler_flag="-o out/conftest2.$ac_objext"
9880   # Insert the option either (1) after the last *FLAGS variable, or
9881   # (2) before a word containing "conftest.", or (3) at the end.
9882   # Note that $ac_compile itself does not contain backslashes and begins
9883   # with a dollar sign (not a hyphen), so the echo should work correctly.
9884   lt_compile=`echo "$ac_compile" | $SED \
9885   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9886   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9887   -e 's:$: $lt_compiler_flag:'`
9888   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9889   (eval "$lt_compile" 2>out/conftest.err)
9890   ac_status=$?
9891   cat out/conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9894   then
9895     # The compiler can only warn and ignore the option if not recognized
9896     # So say no if there are warnings
9897     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9898     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9899     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9900       lt_cv_prog_compiler_c_o=yes
9901     fi
9902   fi
9903   chmod u+w . 2>&5
9904   $RM conftest*
9905   # SGI C++ compiler will create directory out/ii_files/ for
9906   # template instantiation
9907   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9908   $RM out/* && rmdir out
9909   cd ..
9910   $RM -r conftest
9911   $RM conftest*
9912 ;;
9913esac
9914fi
9915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9916printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9917
9918
9919
9920
9921
9922
9923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9924printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9925if test ${lt_cv_prog_compiler_c_o+y}
9926then :
9927  printf %s "(cached) " >&6
9928else case e in #(
9929  e) lt_cv_prog_compiler_c_o=no
9930   $RM -r conftest 2>/dev/null
9931   mkdir conftest
9932   cd conftest
9933   mkdir out
9934   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9935
9936   lt_compiler_flag="-o out/conftest2.$ac_objext"
9937   # Insert the option either (1) after the last *FLAGS variable, or
9938   # (2) before a word containing "conftest.", or (3) at the end.
9939   # Note that $ac_compile itself does not contain backslashes and begins
9940   # with a dollar sign (not a hyphen), so the echo should work correctly.
9941   lt_compile=`echo "$ac_compile" | $SED \
9942   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9943   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9944   -e 's:$: $lt_compiler_flag:'`
9945   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9946   (eval "$lt_compile" 2>out/conftest.err)
9947   ac_status=$?
9948   cat out/conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9951   then
9952     # The compiler can only warn and ignore the option if not recognized
9953     # So say no if there are warnings
9954     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9955     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9956     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9957       lt_cv_prog_compiler_c_o=yes
9958     fi
9959   fi
9960   chmod u+w . 2>&5
9961   $RM conftest*
9962   # SGI C++ compiler will create directory out/ii_files/ for
9963   # template instantiation
9964   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9965   $RM out/* && rmdir out
9966   cd ..
9967   $RM -r conftest
9968   $RM conftest*
9969 ;;
9970esac
9971fi
9972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9973printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9974
9975
9976
9977
9978hard_links=nottested
9979if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9980  # do not overwrite the value of need_locks provided by the user
9981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9982printf %s "checking if we can lock with hard links... " >&6; }
9983  hard_links=yes
9984  $RM conftest*
9985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9986  touch conftest.a
9987  ln conftest.a conftest.b 2>&5 || hard_links=no
9988  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9990printf "%s\n" "$hard_links" >&6; }
9991  if test no = "$hard_links"; then
9992    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9993printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9994    need_locks=warn
9995  fi
9996else
9997  need_locks=no
9998fi
9999
10000
10001
10002
10003
10004
10005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10006printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10007
10008  runpath_var=
10009  allow_undefined_flag=
10010  always_export_symbols=no
10011  archive_cmds=
10012  archive_expsym_cmds=
10013  compiler_needs_object=no
10014  enable_shared_with_static_runtimes=no
10015  export_dynamic_flag_spec=
10016  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10017  hardcode_automatic=no
10018  hardcode_direct=no
10019  hardcode_direct_absolute=no
10020  hardcode_libdir_flag_spec=
10021  hardcode_libdir_separator=
10022  hardcode_minus_L=no
10023  hardcode_shlibpath_var=unsupported
10024  inherit_rpath=no
10025  link_all_deplibs=unknown
10026  module_cmds=
10027  module_expsym_cmds=
10028  old_archive_from_new_cmds=
10029  old_archive_from_expsyms_cmds=
10030  thread_safe_flag_spec=
10031  whole_archive_flag_spec=
10032  # include_expsyms should be a list of space-separated symbols to be *always*
10033  # included in the symbol list
10034  include_expsyms=
10035  # exclude_expsyms can be an extended regexp of symbols to exclude
10036  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10037  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10038  # as well as any symbol that contains 'd'.
10039  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10040  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10041  # platforms (ab)use it in PIC code, but their linkers get confused if
10042  # the symbol is explicitly referenced.  Since portable code cannot
10043  # rely on this symbol name, it's probably fine to never include it in
10044  # preloaded symbol tables.
10045  # Exclude shared library initialization/finalization symbols.
10046  extract_expsyms_cmds=
10047
10048  case $host_os in
10049  cygwin* | mingw* | windows* | pw32* | cegcc*)
10050    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10051    # When not using gcc, we currently assume that we are using
10052    # Microsoft Visual C++ or Intel C++ Compiler.
10053    if test yes != "$GCC"; then
10054      with_gnu_ld=no
10055    fi
10056    ;;
10057  interix*)
10058    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10059    with_gnu_ld=yes
10060    ;;
10061  esac
10062
10063  ld_shlibs=yes
10064
10065  # On some targets, GNU ld is compatible enough with the native linker
10066  # that we're better off using the native interface for both.
10067  lt_use_gnu_ld_interface=no
10068  if test yes = "$with_gnu_ld"; then
10069    case $host_os in
10070      aix*)
10071	# The AIX port of GNU ld has always aspired to compatibility
10072	# with the native linker.  However, as the warning in the GNU ld
10073	# block says, versions before 2.19.5* couldn't really create working
10074	# shared libraries, regardless of the interface used.
10075	case `$LD -v 2>&1` in
10076	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10077	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10078	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10079	  *)
10080	    lt_use_gnu_ld_interface=yes
10081	    ;;
10082	esac
10083	;;
10084      *)
10085	lt_use_gnu_ld_interface=yes
10086	;;
10087    esac
10088  fi
10089
10090  if test yes = "$lt_use_gnu_ld_interface"; then
10091    # If archive_cmds runs LD, not CC, wlarc should be empty
10092    wlarc='$wl'
10093
10094    # Set some defaults for GNU ld with shared library support. These
10095    # are reset later if shared libraries are not supported. Putting them
10096    # here allows them to be overridden if necessary.
10097    runpath_var=LD_RUN_PATH
10098    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10099    export_dynamic_flag_spec='$wl--export-dynamic'
10100    # ancient GNU ld didn't support --whole-archive et. al.
10101    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10102      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10103    else
10104      whole_archive_flag_spec=
10105    fi
10106    supports_anon_versioning=no
10107    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10108      *GNU\ gold*) supports_anon_versioning=yes ;;
10109      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10110      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10111      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10112      *\ 2.11.*) ;; # other 2.11 versions
10113      *) supports_anon_versioning=yes ;;
10114    esac
10115
10116    # See if GNU ld supports shared libraries.
10117    case $host_os in
10118    aix[3-9]*)
10119      # On AIX/PPC, the GNU linker is very broken
10120      if test ia64 != "$host_cpu"; then
10121	ld_shlibs=no
10122	cat <<_LT_EOF 1>&2
10123
10124*** Warning: the GNU linker, at least up to release 2.19, is reported
10125*** to be unable to reliably create shared libraries on AIX.
10126*** Therefore, libtool is disabling shared libraries support.  If you
10127*** really care for shared libraries, you may want to install binutils
10128*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10129*** You will then need to restart the configuration process.
10130
10131_LT_EOF
10132      fi
10133      ;;
10134
10135    amigaos*)
10136      case $host_cpu in
10137      powerpc)
10138            # see comment about AmigaOS4 .so support
10139            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10140            archive_expsym_cmds=''
10141        ;;
10142      m68k)
10143            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)'
10144            hardcode_libdir_flag_spec='-L$libdir'
10145            hardcode_minus_L=yes
10146        ;;
10147      esac
10148      ;;
10149
10150    beos*)
10151      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10152	allow_undefined_flag=unsupported
10153	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10154	# support --undefined.  This deserves some investigation.  FIXME
10155	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10156      else
10157	ld_shlibs=no
10158      fi
10159      ;;
10160
10161    cygwin* | mingw* | windows* | pw32* | cegcc*)
10162      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10163      # as there is no search path for DLLs.
10164      hardcode_libdir_flag_spec='-L$libdir'
10165      export_dynamic_flag_spec='$wl--export-all-symbols'
10166      allow_undefined_flag=unsupported
10167      always_export_symbols=no
10168      enable_shared_with_static_runtimes=yes
10169      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'
10170      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10171      file_list_spec='@'
10172
10173      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10174        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10175	# If the export-symbols file already is a .def file, use it as
10176	# is; otherwise, prepend EXPORTS...
10177	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10178          cp $export_symbols $output_objdir/$soname.def;
10179        else
10180          echo EXPORTS > $output_objdir/$soname.def;
10181          cat $export_symbols >> $output_objdir/$soname.def;
10182        fi~
10183        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10184      else
10185	ld_shlibs=no
10186      fi
10187      ;;
10188
10189    haiku*)
10190      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191      link_all_deplibs=no
10192      ;;
10193
10194    os2*)
10195      hardcode_libdir_flag_spec='-L$libdir'
10196      hardcode_minus_L=yes
10197      allow_undefined_flag=unsupported
10198      shrext_cmds=.dll
10199      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10200	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10201	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10202	$ECHO EXPORTS >> $output_objdir/$libname.def~
10203	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10204	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10205	emximp -o $lib $output_objdir/$libname.def'
10206      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10207	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10208	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10209	$ECHO EXPORTS >> $output_objdir/$libname.def~
10210	prefix_cmds="$SED"~
10211	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10212	  prefix_cmds="$prefix_cmds -e 1d";
10213	fi~
10214	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10215	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10216	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10217	emximp -o $lib $output_objdir/$libname.def'
10218      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10219      enable_shared_with_static_runtimes=yes
10220      file_list_spec='@'
10221      ;;
10222
10223    interix[3-9]*)
10224      hardcode_direct=no
10225      hardcode_shlibpath_var=no
10226      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10227      export_dynamic_flag_spec='$wl-E'
10228      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10229      # Instead, shared libraries are loaded at an image base (0x10000000 by
10230      # default) and relocated if they conflict, which is a slow very memory
10231      # consuming and fragmenting process.  To avoid this, we pick a random,
10232      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10233      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10234      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10235      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'
10236      ;;
10237
10238    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10239      tmp_diet=no
10240      if test linux-dietlibc = "$host_os"; then
10241	case $cc_basename in
10242	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10243	esac
10244      fi
10245      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10246	 && test no = "$tmp_diet"
10247      then
10248	tmp_addflag=' $pic_flag'
10249	tmp_sharedflag='-shared'
10250	case $cc_basename,$host_cpu in
10251        pgcc*)				# Portland Group C compiler
10252	  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'
10253	  tmp_addflag=' $pic_flag'
10254	  ;;
10255	pgf77* | pgf90* | pgf95* | pgfortran*)
10256					# Portland Group f77 and f90 compilers
10257	  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'
10258	  tmp_addflag=' $pic_flag -Mnomain' ;;
10259	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10260	  tmp_addflag=' -i_dynamic' ;;
10261	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10262	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10263	ifc* | ifort*)			# Intel Fortran compiler
10264	  tmp_addflag=' -nofor_main' ;;
10265	lf95*)				# Lahey Fortran 8.1
10266	  whole_archive_flag_spec=
10267	  tmp_sharedflag='--shared' ;;
10268        nagfor*)                        # NAGFOR 5.3
10269          tmp_sharedflag='-Wl,-shared' ;;
10270	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10271	  tmp_sharedflag='-qmkshrobj'
10272	  tmp_addflag= ;;
10273	nvcc*)	# Cuda Compiler Driver 2.2
10274	  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'
10275	  compiler_needs_object=yes
10276	  ;;
10277	esac
10278	case `$CC -V 2>&1 | $SED 5q` in
10279	*Sun\ C*)			# Sun C 5.9
10280	  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'
10281	  compiler_needs_object=yes
10282	  tmp_sharedflag='-G' ;;
10283	*Sun\ F*)			# Sun Fortran 8.3
10284	  tmp_sharedflag='-G' ;;
10285	esac
10286	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10287
10288        if test yes = "$supports_anon_versioning"; then
10289          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10290            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10291            echo "local: *; };" >> $output_objdir/$libname.ver~
10292            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10293        fi
10294
10295	case $cc_basename in
10296	tcc*)
10297	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10298	  export_dynamic_flag_spec='-rdynamic'
10299	  ;;
10300	xlf* | bgf* | bgxlf* | mpixlf*)
10301	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10302	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10303	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10304	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10305	  if test yes = "$supports_anon_versioning"; then
10306	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10307              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10308              echo "local: *; };" >> $output_objdir/$libname.ver~
10309              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10310	  fi
10311	  ;;
10312	esac
10313      else
10314        ld_shlibs=no
10315      fi
10316      ;;
10317
10318    *-mlibc)
10319	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10320	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10321      ;;
10322
10323    netbsd* | netbsdelf*-gnu)
10324      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10325	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10326	wlarc=
10327      else
10328	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10329	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10330      fi
10331      ;;
10332
10333    solaris*)
10334      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10335	ld_shlibs=no
10336	cat <<_LT_EOF 1>&2
10337
10338*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10339*** create shared libraries on Solaris systems.  Therefore, libtool
10340*** is disabling shared libraries support.  We urge you to upgrade GNU
10341*** binutils to release 2.9.1 or newer.  Another option is to modify
10342*** your PATH or compiler configuration so that the native linker is
10343*** used, and then restart.
10344
10345_LT_EOF
10346      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10347	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10348	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10349      else
10350	ld_shlibs=no
10351      fi
10352      ;;
10353
10354    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10355      case `$LD -v 2>&1` in
10356        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10357	ld_shlibs=no
10358	cat <<_LT_EOF 1>&2
10359
10360*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10361*** reliably create shared libraries on SCO systems.  Therefore, libtool
10362*** is disabling shared libraries support.  We urge you to upgrade GNU
10363*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10364*** your PATH or compiler configuration so that the native linker is
10365*** used, and then restart.
10366
10367_LT_EOF
10368	;;
10369	*)
10370	  # For security reasons, it is highly recommended that you always
10371	  # use absolute paths for naming shared libraries, and exclude the
10372	  # DT_RUNPATH tag from executables and libraries.  But doing so
10373	  # requires that you compile everything twice, which is a pain.
10374	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10376	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10377	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10378	  else
10379	    ld_shlibs=no
10380	  fi
10381	;;
10382      esac
10383      ;;
10384
10385    sunos4*)
10386      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10387      wlarc=
10388      hardcode_direct=yes
10389      hardcode_shlibpath_var=no
10390      ;;
10391
10392    *)
10393      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10394	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10395	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10396      else
10397	ld_shlibs=no
10398      fi
10399      ;;
10400    esac
10401
10402    if test no = "$ld_shlibs"; then
10403      runpath_var=
10404      hardcode_libdir_flag_spec=
10405      export_dynamic_flag_spec=
10406      whole_archive_flag_spec=
10407    fi
10408  else
10409    # PORTME fill in a description of your system's linker (not GNU ld)
10410    case $host_os in
10411    aix3*)
10412      allow_undefined_flag=unsupported
10413      always_export_symbols=yes
10414      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'
10415      # Note: this linker hardcodes the directories in LIBPATH if there
10416      # are no directories specified by -L.
10417      hardcode_minus_L=yes
10418      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10419	# Neither direct hardcoding nor static linking is supported with a
10420	# broken collect2.
10421	hardcode_direct=unsupported
10422      fi
10423      ;;
10424
10425    aix[4-9]*)
10426      if test ia64 = "$host_cpu"; then
10427	# On IA64, the linker does run time linking by default, so we don't
10428	# have to do anything special.
10429	aix_use_runtimelinking=no
10430	exp_sym_flag='-Bexport'
10431	no_entry_flag=
10432      else
10433	# If we're using GNU nm, then we don't want the "-C" option.
10434	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10435	# Without the "-l" option, or with the "-B" option, AIX nm treats
10436	# weak defined symbols like other global defined symbols, whereas
10437	# GNU nm marks them as "W".
10438	# While the 'weak' keyword is ignored in the Export File, we need
10439	# it in the Import File for the 'aix-soname' feature, so we have
10440	# to replace the "-B" option with "-P" for AIX nm.
10441	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10442	  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'
10443	else
10444	  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'
10445	fi
10446	aix_use_runtimelinking=no
10447
10448	# Test if we are trying to use run time linking or normal
10449	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10450	# have runtime linking enabled, and use it for executables.
10451	# For shared libraries, we enable/disable runtime linking
10452	# depending on the kind of the shared library created -
10453	# when "with_aix_soname,aix_use_runtimelinking" is:
10454	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10455	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10456	#            lib.a           static archive
10457	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10458	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10459	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10460	#            lib.a(lib.so.V) shared, rtl:no
10461	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10462	#            lib.a           static archive
10463	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10464	  for ld_flag in $LDFLAGS; do
10465	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10466	    aix_use_runtimelinking=yes
10467	    break
10468	  fi
10469	  done
10470	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10471	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10472	    # so we don't have lib.a shared libs to link our executables.
10473	    # We have to force runtime linking in this case.
10474	    aix_use_runtimelinking=yes
10475	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10476	  fi
10477	  ;;
10478	esac
10479
10480	exp_sym_flag='-bexport'
10481	no_entry_flag='-bnoentry'
10482      fi
10483
10484      # When large executables or shared objects are built, AIX ld can
10485      # have problems creating the table of contents.  If linking a library
10486      # or program results in "error TOC overflow" add -mminimal-toc to
10487      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10488      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10489
10490      archive_cmds=''
10491      hardcode_direct=yes
10492      hardcode_direct_absolute=yes
10493      hardcode_libdir_separator=':'
10494      link_all_deplibs=yes
10495      file_list_spec='$wl-f,'
10496      case $with_aix_soname,$aix_use_runtimelinking in
10497      aix,*) ;; # traditional, no import file
10498      svr4,* | *,yes) # use import file
10499	# The Import File defines what to hardcode.
10500	hardcode_direct=no
10501	hardcode_direct_absolute=no
10502	;;
10503      esac
10504
10505      if test yes = "$GCC"; then
10506	case $host_os in aix4.[012]|aix4.[012].*)
10507	# We only want to do this on AIX 4.2 and lower, the check
10508	# below for broken collect2 doesn't work under 4.3+
10509	  collect2name=`$CC -print-prog-name=collect2`
10510	  if test -f "$collect2name" &&
10511	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10512	  then
10513	  # We have reworked collect2
10514	  :
10515	  else
10516	  # We have old collect2
10517	  hardcode_direct=unsupported
10518	  # It fails to find uninstalled libraries when the uninstalled
10519	  # path is not listed in the libpath.  Setting hardcode_minus_L
10520	  # to unsupported forces relinking
10521	  hardcode_minus_L=yes
10522	  hardcode_libdir_flag_spec='-L$libdir'
10523	  hardcode_libdir_separator=
10524	  fi
10525	  ;;
10526	esac
10527	shared_flag='-shared'
10528	if test yes = "$aix_use_runtimelinking"; then
10529	  shared_flag="$shared_flag "'$wl-G'
10530	fi
10531	# Need to ensure runtime linking is disabled for the traditional
10532	# shared library, or the linker may eventually find shared libraries
10533	# /with/ Import File - we do not want to mix them.
10534	shared_flag_aix='-shared'
10535	shared_flag_svr4='-shared $wl-G'
10536      else
10537	# not using gcc
10538	if test ia64 = "$host_cpu"; then
10539	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10540	# chokes on -Wl,-G. The following line is correct:
10541	  shared_flag='-G'
10542	else
10543	  if test yes = "$aix_use_runtimelinking"; then
10544	    shared_flag='$wl-G'
10545	  else
10546	    shared_flag='$wl-bM:SRE'
10547	  fi
10548	  shared_flag_aix='$wl-bM:SRE'
10549	  shared_flag_svr4='$wl-G'
10550	fi
10551      fi
10552
10553      export_dynamic_flag_spec='$wl-bexpall'
10554      # It seems that -bexpall does not export symbols beginning with
10555      # underscore (_), so it is better to generate a list of symbols to export.
10556      always_export_symbols=yes
10557      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10558	# Warning - without using the other runtime loading flags (-brtl),
10559	# -berok will link without error, but may produce a broken library.
10560	allow_undefined_flag='-berok'
10561        # Determine the default libpath from the value encoded in an
10562        # empty executable.
10563        if test set = "${lt_cv_aix_libpath+set}"; then
10564  aix_libpath=$lt_cv_aix_libpath
10565else
10566  if test ${lt_cv_aix_libpath_+y}
10567then :
10568  printf %s "(cached) " >&6
10569else case e in #(
10570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h.  */
10572
10573int
10574main (void)
10575{
10576
10577  ;
10578  return 0;
10579}
10580_ACEOF
10581if ac_fn_c_try_link "$LINENO"
10582then :
10583
10584  lt_aix_libpath_sed='
10585      /Import File Strings/,/^$/ {
10586	  /^0/ {
10587	      s/^0  *\([^ ]*\) *$/\1/
10588	      p
10589	  }
10590      }'
10591  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10592  # Check for a 64-bit object if we didn't find anything.
10593  if test -z "$lt_cv_aix_libpath_"; then
10594    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10595  fi
10596fi
10597rm -f core conftest.err conftest.$ac_objext conftest.beam \
10598    conftest$ac_exeext conftest.$ac_ext
10599  if test -z "$lt_cv_aix_libpath_"; then
10600    lt_cv_aix_libpath_=/usr/lib:/lib
10601  fi
10602   ;;
10603esac
10604fi
10605
10606  aix_libpath=$lt_cv_aix_libpath_
10607fi
10608
10609        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10610        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
10611      else
10612	if test ia64 = "$host_cpu"; then
10613	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10614	  allow_undefined_flag="-z nodefs"
10615	  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"
10616	else
10617	 # Determine the default libpath from the value encoded in an
10618	 # empty executable.
10619	 if test set = "${lt_cv_aix_libpath+set}"; then
10620  aix_libpath=$lt_cv_aix_libpath
10621else
10622  if test ${lt_cv_aix_libpath_+y}
10623then :
10624  printf %s "(cached) " >&6
10625else case e in #(
10626  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h.  */
10628
10629int
10630main (void)
10631{
10632
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_link "$LINENO"
10638then :
10639
10640  lt_aix_libpath_sed='
10641      /Import File Strings/,/^$/ {
10642	  /^0/ {
10643	      s/^0  *\([^ ]*\) *$/\1/
10644	      p
10645	  }
10646      }'
10647  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10648  # Check for a 64-bit object if we didn't find anything.
10649  if test -z "$lt_cv_aix_libpath_"; then
10650    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10651  fi
10652fi
10653rm -f core conftest.err conftest.$ac_objext conftest.beam \
10654    conftest$ac_exeext conftest.$ac_ext
10655  if test -z "$lt_cv_aix_libpath_"; then
10656    lt_cv_aix_libpath_=/usr/lib:/lib
10657  fi
10658   ;;
10659esac
10660fi
10661
10662  aix_libpath=$lt_cv_aix_libpath_
10663fi
10664
10665	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10666	  # Warning - without using the other run time loading flags,
10667	  # -berok will link without error, but may produce a broken library.
10668	  no_undefined_flag=' $wl-bernotok'
10669	  allow_undefined_flag=' $wl-berok'
10670	  if test yes = "$with_gnu_ld"; then
10671	    # We only use this code for GNU lds that support --whole-archive.
10672	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10673	  else
10674	    # Exported symbols can be pulled into shared objects from archives
10675	    whole_archive_flag_spec='$convenience'
10676	  fi
10677	  archive_cmds_need_lc=yes
10678	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10679	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10680	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10681	  if test svr4 != "$with_aix_soname"; then
10682	    # This is similar to how AIX traditionally builds its shared libraries.
10683	    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'
10684	  fi
10685	  if test aix != "$with_aix_soname"; then
10686	    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'
10687	  else
10688	    # used by -dlpreopen to get the symbols
10689	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10690	  fi
10691	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10692	fi
10693      fi
10694      ;;
10695
10696    amigaos*)
10697      case $host_cpu in
10698      powerpc)
10699            # see comment about AmigaOS4 .so support
10700            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10701            archive_expsym_cmds=''
10702        ;;
10703      m68k)
10704            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)'
10705            hardcode_libdir_flag_spec='-L$libdir'
10706            hardcode_minus_L=yes
10707        ;;
10708      esac
10709      ;;
10710
10711    bsdi[45]*)
10712      export_dynamic_flag_spec=-rdynamic
10713      ;;
10714
10715    cygwin* | mingw* | windows* | pw32* | cegcc*)
10716      # When not using gcc, we currently assume that we are using
10717      # Microsoft Visual C++ or Intel C++ Compiler.
10718      # hardcode_libdir_flag_spec is actually meaningless, as there is
10719      # no search path for DLLs.
10720      case $cc_basename in
10721      cl* | icl*)
10722	# Native MSVC or ICC
10723	hardcode_libdir_flag_spec=' '
10724	allow_undefined_flag=unsupported
10725	always_export_symbols=yes
10726	file_list_spec='@'
10727	# Tell ltmain to make .lib files, not .a files.
10728	libext=lib
10729	# Tell ltmain to make .dll files, not .so files.
10730	shrext_cmds=.dll
10731	# FIXME: Setting linknames here is a bad hack.
10732	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10733	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10734            cp "$export_symbols" "$output_objdir/$soname.def";
10735            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10736          else
10737            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10738          fi~
10739          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10740          linknames='
10741	# The linker will not automatically build a static lib if we build a DLL.
10742	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10743	enable_shared_with_static_runtimes=yes
10744	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10745	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10746	# Don't use ranlib
10747	old_postinstall_cmds='chmod 644 $oldlib'
10748	postlink_cmds='lt_outputfile="@OUTPUT@"~
10749          lt_tool_outputfile="@TOOL_OUTPUT@"~
10750          case $lt_outputfile in
10751            *.exe|*.EXE) ;;
10752            *)
10753              lt_outputfile=$lt_outputfile.exe
10754              lt_tool_outputfile=$lt_tool_outputfile.exe
10755              ;;
10756          esac~
10757          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10758            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10759            $RM "$lt_outputfile.manifest";
10760          fi'
10761	;;
10762      *)
10763	# Assume MSVC and ICC wrapper
10764	hardcode_libdir_flag_spec=' '
10765	allow_undefined_flag=unsupported
10766	# Tell ltmain to make .lib files, not .a files.
10767	libext=lib
10768	# Tell ltmain to make .dll files, not .so files.
10769	shrext_cmds=.dll
10770	# FIXME: Setting linknames here is a bad hack.
10771	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10772	# The linker will automatically build a .lib file if we build a DLL.
10773	old_archive_from_new_cmds='true'
10774	# FIXME: Should let the user specify the lib program.
10775	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10776	enable_shared_with_static_runtimes=yes
10777	;;
10778      esac
10779      ;;
10780
10781    darwin* | rhapsody*)
10782
10783
10784  archive_cmds_need_lc=no
10785  hardcode_direct=no
10786  hardcode_automatic=yes
10787  hardcode_shlibpath_var=unsupported
10788  if test yes = "$lt_cv_ld_force_load"; then
10789    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\"`'
10790
10791  else
10792    whole_archive_flag_spec=''
10793  fi
10794  link_all_deplibs=yes
10795  allow_undefined_flag=$_lt_dar_allow_undefined
10796  case $cc_basename in
10797     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10798     *) _lt_dar_can_shared=$GCC ;;
10799  esac
10800  if test yes = "$_lt_dar_can_shared"; then
10801    output_verbose_link_cmd=func_echo_all
10802    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10803    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10804    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"
10805    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"
10806
10807  else
10808  ld_shlibs=no
10809  fi
10810
10811      ;;
10812
10813    dgux*)
10814      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815      hardcode_libdir_flag_spec='-L$libdir'
10816      hardcode_shlibpath_var=no
10817      ;;
10818
10819    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10820    # support.  Future versions do this automatically, but an explicit c++rt0.o
10821    # does not break anything, and helps significantly (at the cost of a little
10822    # extra space).
10823    freebsd2.2*)
10824      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10825      hardcode_libdir_flag_spec='-R$libdir'
10826      hardcode_direct=yes
10827      hardcode_shlibpath_var=no
10828      ;;
10829
10830    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10831    freebsd2.*)
10832      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10833      hardcode_direct=yes
10834      hardcode_minus_L=yes
10835      hardcode_shlibpath_var=no
10836      ;;
10837
10838    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10839    freebsd* | dragonfly* | midnightbsd*)
10840      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10841      hardcode_libdir_flag_spec='-R$libdir'
10842      hardcode_direct=yes
10843      hardcode_shlibpath_var=no
10844      ;;
10845
10846    hpux9*)
10847      if test yes = "$GCC"; then
10848	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'
10849      else
10850	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'
10851      fi
10852      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10853      hardcode_libdir_separator=:
10854      hardcode_direct=yes
10855
10856      # hardcode_minus_L: Not really in the search PATH,
10857      # but as the default location of the library.
10858      hardcode_minus_L=yes
10859      export_dynamic_flag_spec='$wl-E'
10860      ;;
10861
10862    hpux10*)
10863      if test yes,no = "$GCC,$with_gnu_ld"; then
10864	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10865      else
10866	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10867      fi
10868      if test no = "$with_gnu_ld"; then
10869	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10870	hardcode_libdir_separator=:
10871	hardcode_direct=yes
10872	hardcode_direct_absolute=yes
10873	export_dynamic_flag_spec='$wl-E'
10874	# hardcode_minus_L: Not really in the search PATH,
10875	# but as the default location of the library.
10876	hardcode_minus_L=yes
10877      fi
10878      ;;
10879
10880    hpux11*)
10881      if test yes,no = "$GCC,$with_gnu_ld"; then
10882	case $host_cpu in
10883	hppa*64*)
10884	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10885	  ;;
10886	ia64*)
10887	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10888	  ;;
10889	*)
10890	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10891	  ;;
10892	esac
10893      else
10894	case $host_cpu in
10895	hppa*64*)
10896	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10897	  ;;
10898	ia64*)
10899	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10900	  ;;
10901	*)
10902
10903	  # Older versions of the 11.00 compiler do not understand -b yet
10904	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10905	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10906printf %s "checking if $CC understands -b... " >&6; }
10907if test ${lt_cv_prog_compiler__b+y}
10908then :
10909  printf %s "(cached) " >&6
10910else case e in #(
10911  e) lt_cv_prog_compiler__b=no
10912   save_LDFLAGS=$LDFLAGS
10913   LDFLAGS="$LDFLAGS -b"
10914   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10915   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10916     # The linker can only warn and ignore the option if not recognized
10917     # So say no if there are warnings
10918     if test -s conftest.err; then
10919       # Append any errors to the config.log.
10920       cat conftest.err 1>&5
10921       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10922       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10923       if diff conftest.exp conftest.er2 >/dev/null; then
10924         lt_cv_prog_compiler__b=yes
10925       fi
10926     else
10927       lt_cv_prog_compiler__b=yes
10928     fi
10929   fi
10930   $RM -r conftest*
10931   LDFLAGS=$save_LDFLAGS
10932 ;;
10933esac
10934fi
10935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10936printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10937
10938if test yes = "$lt_cv_prog_compiler__b"; then
10939    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10940else
10941    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10942fi
10943
10944	  ;;
10945	esac
10946      fi
10947      if test no = "$with_gnu_ld"; then
10948	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10949	hardcode_libdir_separator=:
10950
10951	case $host_cpu in
10952	hppa*64*|ia64*)
10953	  hardcode_direct=no
10954	  hardcode_shlibpath_var=no
10955	  ;;
10956	*)
10957	  hardcode_direct=yes
10958	  hardcode_direct_absolute=yes
10959	  export_dynamic_flag_spec='$wl-E'
10960
10961	  # hardcode_minus_L: Not really in the search PATH,
10962	  # but as the default location of the library.
10963	  hardcode_minus_L=yes
10964	  ;;
10965	esac
10966      fi
10967      ;;
10968
10969    irix5* | irix6* | nonstopux*)
10970      if test yes = "$GCC"; then
10971	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'
10972	# Try to use the -exported_symbol ld option, if it does not
10973	# work, assume that -exports_file does not work either and
10974	# implicitly export all symbols.
10975	# This should be the same for all languages, so no per-tag cache variable.
10976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10977printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10978if test ${lt_cv_irix_exported_symbol+y}
10979then :
10980  printf %s "(cached) " >&6
10981else case e in #(
10982  e) save_LDFLAGS=$LDFLAGS
10983	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10984	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h.  */
10986int foo (void) { return 0; }
10987_ACEOF
10988if ac_fn_c_try_link "$LINENO"
10989then :
10990  lt_cv_irix_exported_symbol=yes
10991else case e in #(
10992  e) lt_cv_irix_exported_symbol=no ;;
10993esac
10994fi
10995rm -f core conftest.err conftest.$ac_objext conftest.beam \
10996    conftest$ac_exeext conftest.$ac_ext
10997           LDFLAGS=$save_LDFLAGS ;;
10998esac
10999fi
11000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11001printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11002	if test yes = "$lt_cv_irix_exported_symbol"; then
11003          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'
11004	fi
11005      else
11006	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'
11007	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'
11008      fi
11009      archive_cmds_need_lc='no'
11010      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11011      hardcode_libdir_separator=:
11012      inherit_rpath=yes
11013      link_all_deplibs=yes
11014      ;;
11015
11016    linux*)
11017      case $cc_basename in
11018      tcc*)
11019	# Fabrice Bellard et al's Tiny C Compiler
11020	ld_shlibs=yes
11021	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11022	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11023	;;
11024      esac
11025      ;;
11026
11027    *-mlibc)
11028      ;;
11029
11030    netbsd* | netbsdelf*-gnu)
11031      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11032	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11033      else
11034	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11035      fi
11036      hardcode_libdir_flag_spec='-R$libdir'
11037      hardcode_direct=yes
11038      hardcode_shlibpath_var=no
11039      ;;
11040
11041    newsos6)
11042      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043      hardcode_direct=yes
11044      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11045      hardcode_libdir_separator=:
11046      hardcode_shlibpath_var=no
11047      ;;
11048
11049    *nto* | *qnx*)
11050      ;;
11051
11052    openbsd*)
11053      if test -f /usr/libexec/ld.so; then
11054	hardcode_direct=yes
11055	hardcode_shlibpath_var=no
11056	hardcode_direct_absolute=yes
11057	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11058	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11059	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11060	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11061	  export_dynamic_flag_spec='$wl-E'
11062	else
11063	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11064	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11065	fi
11066      else
11067	ld_shlibs=no
11068      fi
11069      ;;
11070
11071    os2*)
11072      hardcode_libdir_flag_spec='-L$libdir'
11073      hardcode_minus_L=yes
11074      allow_undefined_flag=unsupported
11075      shrext_cmds=.dll
11076      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11077	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11078	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11079	$ECHO EXPORTS >> $output_objdir/$libname.def~
11080	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11081	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11082	emximp -o $lib $output_objdir/$libname.def'
11083      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11084	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11085	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11086	$ECHO EXPORTS >> $output_objdir/$libname.def~
11087	prefix_cmds="$SED"~
11088	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11089	  prefix_cmds="$prefix_cmds -e 1d";
11090	fi~
11091	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11092	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11093	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11094	emximp -o $lib $output_objdir/$libname.def'
11095      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11096      enable_shared_with_static_runtimes=yes
11097      file_list_spec='@'
11098      ;;
11099
11100    osf3*)
11101      if test yes = "$GCC"; then
11102	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11103	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'
11104      else
11105	allow_undefined_flag=' -expect_unresolved \*'
11106	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'
11107      fi
11108      archive_cmds_need_lc='no'
11109      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11110      hardcode_libdir_separator=:
11111      ;;
11112
11113    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11114      if test yes = "$GCC"; then
11115	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11116	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'
11117	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11118      else
11119	allow_undefined_flag=' -expect_unresolved \*'
11120	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'
11121	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~
11122          $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'
11123
11124	# Both c and cxx compiler support -rpath directly
11125	hardcode_libdir_flag_spec='-rpath $libdir'
11126      fi
11127      archive_cmds_need_lc='no'
11128      hardcode_libdir_separator=:
11129      ;;
11130
11131    serenity*)
11132      ;;
11133
11134    solaris*)
11135      no_undefined_flag=' -z defs'
11136      if test yes = "$GCC"; then
11137	wlarc='$wl'
11138	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11139	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11140          $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'
11141      else
11142	case `$CC -V 2>&1` in
11143	*"Compilers 5.0"*)
11144	  wlarc=''
11145	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11146	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11147            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11148	  ;;
11149	*)
11150	  wlarc='$wl'
11151	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11152	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11153            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11154	  ;;
11155	esac
11156      fi
11157      hardcode_libdir_flag_spec='-R$libdir'
11158      hardcode_shlibpath_var=no
11159      case $host_os in
11160      solaris2.[0-5] | solaris2.[0-5].*) ;;
11161      *)
11162	# The compiler driver will combine and reorder linker options,
11163	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11164	# but is careful enough not to reorder.
11165	# Supported since Solaris 2.6 (maybe 2.5.1?)
11166	if test yes = "$GCC"; then
11167	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11168	else
11169	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11170	fi
11171	;;
11172      esac
11173      link_all_deplibs=yes
11174      ;;
11175
11176    sunos4*)
11177      if test sequent = "$host_vendor"; then
11178	# Use $CC to link under sequent, because it throws in some extra .o
11179	# files that make .init and .fini sections work.
11180	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11181      else
11182	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11183      fi
11184      hardcode_libdir_flag_spec='-L$libdir'
11185      hardcode_direct=yes
11186      hardcode_minus_L=yes
11187      hardcode_shlibpath_var=no
11188      ;;
11189
11190    sysv4)
11191      case $host_vendor in
11192	sni)
11193	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11194	  hardcode_direct=yes # is this really true???
11195	;;
11196	siemens)
11197	  ## LD is ld it makes a PLAMLIB
11198	  ## CC just makes a GrossModule.
11199	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11200	  reload_cmds='$CC -r -o $output$reload_objs'
11201	  hardcode_direct=no
11202        ;;
11203	motorola)
11204	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11205	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11206	;;
11207      esac
11208      runpath_var='LD_RUN_PATH'
11209      hardcode_shlibpath_var=no
11210      ;;
11211
11212    sysv4.3*)
11213      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11214      hardcode_shlibpath_var=no
11215      export_dynamic_flag_spec='-Bexport'
11216      ;;
11217
11218    sysv4*MP*)
11219      if test -d /usr/nec; then
11220	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221	hardcode_shlibpath_var=no
11222	runpath_var=LD_RUN_PATH
11223	hardcode_runpath_var=yes
11224	ld_shlibs=yes
11225      fi
11226      ;;
11227
11228    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11229      no_undefined_flag='$wl-z,text'
11230      archive_cmds_need_lc=no
11231      hardcode_shlibpath_var=no
11232      runpath_var='LD_RUN_PATH'
11233
11234      if test yes = "$GCC"; then
11235	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11236	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11237      else
11238	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11239	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11240      fi
11241      ;;
11242
11243    sysv5* | sco3.2v5* | sco5v6*)
11244      # Note: We CANNOT use -z defs as we might desire, because we do not
11245      # link with -lc, and that would cause any symbols used from libc to
11246      # always be unresolved, which means just about no library would
11247      # ever link correctly.  If we're not using GNU ld we use -z text
11248      # though, which does catch some bad symbols but isn't as heavy-handed
11249      # as -z defs.
11250      no_undefined_flag='$wl-z,text'
11251      allow_undefined_flag='$wl-z,nodefs'
11252      archive_cmds_need_lc=no
11253      hardcode_shlibpath_var=no
11254      hardcode_libdir_flag_spec='$wl-R,$libdir'
11255      hardcode_libdir_separator=':'
11256      link_all_deplibs=yes
11257      export_dynamic_flag_spec='$wl-Bexport'
11258      runpath_var='LD_RUN_PATH'
11259
11260      if test yes = "$GCC"; then
11261	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11262	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11263      else
11264	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11266      fi
11267      ;;
11268
11269    uts4*)
11270      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271      hardcode_libdir_flag_spec='-L$libdir'
11272      hardcode_shlibpath_var=no
11273      ;;
11274
11275    *)
11276      ld_shlibs=no
11277      ;;
11278    esac
11279
11280    if test sni = "$host_vendor"; then
11281      case $host in
11282      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11283	export_dynamic_flag_spec='$wl-Blargedynsym'
11284	;;
11285      esac
11286    fi
11287  fi
11288
11289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11290printf "%s\n" "$ld_shlibs" >&6; }
11291test no = "$ld_shlibs" && can_build_shared=no
11292
11293with_gnu_ld=$with_gnu_ld
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309#
11310# Do we need to explicitly link libc?
11311#
11312case "x$archive_cmds_need_lc" in
11313x|xyes)
11314  # Assume -lc should be added
11315  archive_cmds_need_lc=yes
11316
11317  if test yes,yes = "$GCC,$enable_shared"; then
11318    case $archive_cmds in
11319    *'~'*)
11320      # FIXME: we may have to deal with multi-command sequences.
11321      ;;
11322    '$CC '*)
11323      # Test whether the compiler implicitly links with -lc since on some
11324      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11325      # to ld, don't add -lc before -lgcc.
11326      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11327printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11328if test ${lt_cv_archive_cmds_need_lc+y}
11329then :
11330  printf %s "(cached) " >&6
11331else case e in #(
11332  e) $RM conftest*
11333	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11334
11335	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11336  (eval $ac_compile) 2>&5
11337  ac_status=$?
11338  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339  test $ac_status = 0; } 2>conftest.err; then
11340	  soname=conftest
11341	  lib=conftest
11342	  libobjs=conftest.$ac_objext
11343	  deplibs=
11344	  wl=$lt_prog_compiler_wl
11345	  pic_flag=$lt_prog_compiler_pic
11346	  compiler_flags=-v
11347	  linker_flags=-v
11348	  verstring=
11349	  output_objdir=.
11350	  libname=conftest
11351	  lt_save_allow_undefined_flag=$allow_undefined_flag
11352	  allow_undefined_flag=
11353	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11354  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11355  ac_status=$?
11356  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11357  test $ac_status = 0; }
11358	  then
11359	    lt_cv_archive_cmds_need_lc=no
11360	  else
11361	    lt_cv_archive_cmds_need_lc=yes
11362	  fi
11363	  allow_undefined_flag=$lt_save_allow_undefined_flag
11364	else
11365	  cat conftest.err 1>&5
11366	fi
11367	$RM conftest*
11368	 ;;
11369esac
11370fi
11371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11372printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11373      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11374      ;;
11375    esac
11376  fi
11377  ;;
11378esac
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11532printf %s "checking dynamic linker characteristics... " >&6; }
11533
11534if test yes = "$GCC"; then
11535  case $host_os in
11536    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11537    *) lt_awk_arg='/^libraries:/' ;;
11538  esac
11539  case $host_os in
11540    mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11541    *) lt_sed_strip_eq='s|=/|/|g' ;;
11542  esac
11543  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11544  case $lt_search_path_spec in
11545  *\;*)
11546    # if the path contains ";" then we assume it to be the separator
11547    # otherwise default to the standard path separator (i.e. ":") - it is
11548    # assumed that no part of a normal pathname contains ";" but that should
11549    # okay in the real world where ";" in dirpaths is itself problematic.
11550    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11551    ;;
11552  *)
11553    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11554    ;;
11555  esac
11556  # Ok, now we have the path, separated by spaces, we can step through it
11557  # and add multilib dir if necessary...
11558  lt_tmp_lt_search_path_spec=
11559  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11560  # ...but if some path component already ends with the multilib dir we assume
11561  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11562  case "$lt_multi_os_dir; $lt_search_path_spec " in
11563  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11564    lt_multi_os_dir=
11565    ;;
11566  esac
11567  for lt_sys_path in $lt_search_path_spec; do
11568    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11569      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11570    elif test -n "$lt_multi_os_dir"; then
11571      test -d "$lt_sys_path" && \
11572	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11573    fi
11574  done
11575  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11576BEGIN {RS = " "; FS = "/|\n";} {
11577  lt_foo = "";
11578  lt_count = 0;
11579  for (lt_i = NF; lt_i > 0; lt_i--) {
11580    if ($lt_i != "" && $lt_i != ".") {
11581      if ($lt_i == "..") {
11582        lt_count++;
11583      } else {
11584        if (lt_count == 0) {
11585          lt_foo = "/" $lt_i lt_foo;
11586        } else {
11587          lt_count--;
11588        }
11589      }
11590    }
11591  }
11592  if (lt_foo != "") { lt_freq[lt_foo]++; }
11593  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11594}'`
11595  # AWK program above erroneously prepends '/' to C:/dos/paths
11596  # for these hosts.
11597  case $host_os in
11598    mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11599      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11600  esac
11601  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11602else
11603  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11604fi
11605library_names_spec=
11606libname_spec='lib$name'
11607soname_spec=
11608shrext_cmds=.so
11609postinstall_cmds=
11610postuninstall_cmds=
11611finish_cmds=
11612finish_eval=
11613shlibpath_var=
11614shlibpath_overrides_runpath=unknown
11615version_type=none
11616dynamic_linker="$host_os ld.so"
11617sys_lib_dlsearch_path_spec="/lib /usr/lib"
11618need_lib_prefix=unknown
11619hardcode_into_libs=no
11620
11621# when you set need_version to no, make sure it does not cause -set_version
11622# flags to be left without arguments
11623need_version=unknown
11624
11625
11626
11627case $host_os in
11628aix3*)
11629  version_type=linux # correct to gnu/linux during the next big refactor
11630  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11631  shlibpath_var=LIBPATH
11632
11633  # AIX 3 has no versioning support, so we append a major version to the name.
11634  soname_spec='$libname$release$shared_ext$major'
11635  ;;
11636
11637aix[4-9]*)
11638  version_type=linux # correct to gnu/linux during the next big refactor
11639  need_lib_prefix=no
11640  need_version=no
11641  hardcode_into_libs=yes
11642  if test ia64 = "$host_cpu"; then
11643    # AIX 5 supports IA64
11644    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11645    shlibpath_var=LD_LIBRARY_PATH
11646  else
11647    # With GCC up to 2.95.x, collect2 would create an import file
11648    # for dependence libraries.  The import file would start with
11649    # the line '#! .'.  This would cause the generated library to
11650    # depend on '.', always an invalid library.  This was fixed in
11651    # development snapshots of GCC prior to 3.0.
11652    case $host_os in
11653      aix4 | aix4.[01] | aix4.[01].*)
11654      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11655	   echo ' yes '
11656	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11657	:
11658      else
11659	can_build_shared=no
11660      fi
11661      ;;
11662    esac
11663    # Using Import Files as archive members, it is possible to support
11664    # filename-based versioning of shared library archives on AIX. While
11665    # this would work for both with and without runtime linking, it will
11666    # prevent static linking of such archives. So we do filename-based
11667    # shared library versioning with .so extension only, which is used
11668    # when both runtime linking and shared linking is enabled.
11669    # Unfortunately, runtime linking may impact performance, so we do
11670    # not want this to be the default eventually. Also, we use the
11671    # versioned .so libs for executables only if there is the -brtl
11672    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11673    # To allow for filename-based versioning support, we need to create
11674    # libNAME.so.V as an archive file, containing:
11675    # *) an Import File, referring to the versioned filename of the
11676    #    archive as well as the shared archive member, telling the
11677    #    bitwidth (32 or 64) of that shared object, and providing the
11678    #    list of exported symbols of that shared object, eventually
11679    #    decorated with the 'weak' keyword
11680    # *) the shared object with the F_LOADONLY flag set, to really avoid
11681    #    it being seen by the linker.
11682    # At run time we better use the real file rather than another symlink,
11683    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11684
11685    case $with_aix_soname,$aix_use_runtimelinking in
11686    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11687    # soname into executable. Probably we can add versioning support to
11688    # collect2, so additional links can be useful in future.
11689    aix,yes) # traditional libtool
11690      dynamic_linker='AIX unversionable lib.so'
11691      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11692      # instead of lib<name>.a to let people know that these are not
11693      # typical AIX shared libraries.
11694      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695      ;;
11696    aix,no) # traditional AIX only
11697      dynamic_linker='AIX lib.a(lib.so.V)'
11698      # We preserve .a as extension for shared libraries through AIX4.2
11699      # and later when we are not doing run time linking.
11700      library_names_spec='$libname$release.a $libname.a'
11701      soname_spec='$libname$release$shared_ext$major'
11702      ;;
11703    svr4,*) # full svr4 only
11704      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11705      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11706      # We do not specify a path in Import Files, so LIBPATH fires.
11707      shlibpath_overrides_runpath=yes
11708      ;;
11709    *,yes) # both, prefer svr4
11710      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11711      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11712      # unpreferred sharedlib libNAME.a needs extra handling
11713      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"'
11714      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"'
11715      # We do not specify a path in Import Files, so LIBPATH fires.
11716      shlibpath_overrides_runpath=yes
11717      ;;
11718    *,no) # both, prefer aix
11719      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11720      library_names_spec='$libname$release.a $libname.a'
11721      soname_spec='$libname$release$shared_ext$major'
11722      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11723      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)'
11724      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"'
11725      ;;
11726    esac
11727    shlibpath_var=LIBPATH
11728  fi
11729  ;;
11730
11731amigaos*)
11732  case $host_cpu in
11733  powerpc)
11734    # Since July 2007 AmigaOS4 officially supports .so libraries.
11735    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11736    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11737    ;;
11738  m68k)
11739    library_names_spec='$libname.ixlibrary $libname.a'
11740    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11741    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'
11742    ;;
11743  esac
11744  ;;
11745
11746beos*)
11747  library_names_spec='$libname$shared_ext'
11748  dynamic_linker="$host_os ld.so"
11749  shlibpath_var=LIBRARY_PATH
11750  ;;
11751
11752bsdi[45]*)
11753  version_type=linux # correct to gnu/linux during the next big refactor
11754  need_version=no
11755  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756  soname_spec='$libname$release$shared_ext$major'
11757  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11758  shlibpath_var=LD_LIBRARY_PATH
11759  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11760  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11761  # the default ld.so.conf also contains /usr/contrib/lib and
11762  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11763  # libtool to hard-code these into programs
11764  ;;
11765
11766cygwin* | mingw* | windows* | pw32* | cegcc*)
11767  version_type=windows
11768  shrext_cmds=.dll
11769  need_version=no
11770  need_lib_prefix=no
11771
11772  case $GCC,$cc_basename in
11773  yes,*)
11774    # gcc
11775    library_names_spec='$libname.dll.a'
11776    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11777    # If user builds GCC with multilib enabled,
11778    # it should just install on $(libdir)
11779    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11780    if test xyes = x"$multilib"; then
11781      postinstall_cmds='base_file=`basename \$file`~
11782        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11783        dldir=$destdir/`dirname \$dlpath`~
11784        $install_prog $dir/$dlname $destdir/$dlname~
11785        chmod a+x $destdir/$dlname~
11786        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11787          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11788        fi'
11789    else
11790      postinstall_cmds='base_file=`basename \$file`~
11791        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11792        dldir=$destdir/`dirname \$dlpath`~
11793        test -d \$dldir || mkdir -p \$dldir~
11794        $install_prog $dir/$dlname \$dldir/$dlname~
11795        chmod a+x \$dldir/$dlname~
11796        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11797          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11798        fi'
11799    fi
11800    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11801      dlpath=$dir/\$dldll~
11802       $RM \$dlpath'
11803    shlibpath_overrides_runpath=yes
11804
11805    case $host_os in
11806    cygwin*)
11807      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11808      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11809
11810      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11811      ;;
11812    mingw* | windows* | cegcc*)
11813      # MinGW DLLs use traditional 'lib' prefix
11814      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11815      ;;
11816    pw32*)
11817      # pw32 DLLs use 'pw' prefix rather than 'lib'
11818      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11819      ;;
11820    esac
11821    dynamic_linker='Win32 ld.exe'
11822    ;;
11823
11824  *,cl* | *,icl*)
11825    # Native MSVC or ICC
11826    libname_spec='$name'
11827    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11828    library_names_spec='$libname.dll.lib'
11829
11830    case $build_os in
11831    mingw* | windows*)
11832      sys_lib_search_path_spec=
11833      lt_save_ifs=$IFS
11834      IFS=';'
11835      for lt_path in $LIB
11836      do
11837        IFS=$lt_save_ifs
11838        # Let DOS variable expansion print the short 8.3 style file name.
11839        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11840        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11841      done
11842      IFS=$lt_save_ifs
11843      # Convert to MSYS style.
11844      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11845      ;;
11846    cygwin*)
11847      # Convert to unix form, then to dos form, then back to unix form
11848      # but this time dos style (no spaces!) so that the unix form looks
11849      # like /cygdrive/c/PROGRA~1:/cygdr...
11850      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11851      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11852      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11853      ;;
11854    *)
11855      sys_lib_search_path_spec=$LIB
11856      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11857        # It is most probably a Windows format PATH.
11858        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11859      else
11860        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11861      fi
11862      # FIXME: find the short name or the path components, as spaces are
11863      # common. (e.g. "Program Files" -> "PROGRA~1")
11864      ;;
11865    esac
11866
11867    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11868    postinstall_cmds='base_file=`basename \$file`~
11869      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11870      dldir=$destdir/`dirname \$dlpath`~
11871      test -d \$dldir || mkdir -p \$dldir~
11872      $install_prog $dir/$dlname \$dldir/$dlname'
11873    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11874      dlpath=$dir/\$dldll~
11875       $RM \$dlpath'
11876    shlibpath_overrides_runpath=yes
11877    dynamic_linker='Win32 link.exe'
11878    ;;
11879
11880  *)
11881    # Assume MSVC and ICC wrapper
11882    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11883    dynamic_linker='Win32 ld.exe'
11884    ;;
11885  esac
11886  # FIXME: first we should search . and the directory the executable is in
11887  shlibpath_var=PATH
11888  ;;
11889
11890darwin* | rhapsody*)
11891  dynamic_linker="$host_os dyld"
11892  version_type=darwin
11893  need_lib_prefix=no
11894  need_version=no
11895  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11896  soname_spec='$libname$release$major$shared_ext'
11897  shlibpath_overrides_runpath=yes
11898  shlibpath_var=DYLD_LIBRARY_PATH
11899  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11900
11901  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11902  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11903  ;;
11904
11905dgux*)
11906  version_type=linux # correct to gnu/linux during the next big refactor
11907  need_lib_prefix=no
11908  need_version=no
11909  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11910  soname_spec='$libname$release$shared_ext$major'
11911  shlibpath_var=LD_LIBRARY_PATH
11912  ;;
11913
11914freebsd* | dragonfly* | midnightbsd*)
11915  # DragonFly does not have aout.  When/if they implement a new
11916  # versioning mechanism, adjust this.
11917  if test -x /usr/bin/objformat; then
11918    objformat=`/usr/bin/objformat`
11919  else
11920    case $host_os in
11921    freebsd[23].*) objformat=aout ;;
11922    *) objformat=elf ;;
11923    esac
11924  fi
11925  version_type=freebsd-$objformat
11926  case $version_type in
11927    freebsd-elf*)
11928      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11929      soname_spec='$libname$release$shared_ext$major'
11930      need_version=no
11931      need_lib_prefix=no
11932      ;;
11933    freebsd-*)
11934      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11935      need_version=yes
11936      ;;
11937  esac
11938  case $host_cpu in
11939    powerpc64)
11940      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11941      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11942      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943/* end confdefs.h.  */
11944int test_pointer_size[sizeof (void *) - 5];
11945
11946_ACEOF
11947if ac_fn_c_try_compile "$LINENO"
11948then :
11949  shlibpath_var=LD_LIBRARY_PATH
11950else case e in #(
11951  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11952esac
11953fi
11954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11955      ;;
11956    *)
11957      shlibpath_var=LD_LIBRARY_PATH
11958      ;;
11959  esac
11960  case $host_os in
11961  freebsd2.*)
11962    shlibpath_overrides_runpath=yes
11963    ;;
11964  freebsd3.[01]* | freebsdelf3.[01]*)
11965    shlibpath_overrides_runpath=yes
11966    hardcode_into_libs=yes
11967    ;;
11968  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11969  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11970    shlibpath_overrides_runpath=no
11971    hardcode_into_libs=yes
11972    ;;
11973  *) # from 4.6 on, and DragonFly
11974    shlibpath_overrides_runpath=yes
11975    hardcode_into_libs=yes
11976    ;;
11977  esac
11978  ;;
11979
11980haiku*)
11981  version_type=linux # correct to gnu/linux during the next big refactor
11982  need_lib_prefix=no
11983  need_version=no
11984  dynamic_linker="$host_os runtime_loader"
11985  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986  soname_spec='$libname$release$shared_ext$major'
11987  shlibpath_var=LIBRARY_PATH
11988  shlibpath_overrides_runpath=no
11989  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
11990  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
11991  hardcode_into_libs=no
11992  ;;
11993
11994hpux9* | hpux10* | hpux11*)
11995  # Give a soname corresponding to the major version so that dld.sl refuses to
11996  # link against other versions.
11997  version_type=sunos
11998  need_lib_prefix=no
11999  need_version=no
12000  case $host_cpu in
12001  ia64*)
12002    shrext_cmds='.so'
12003    hardcode_into_libs=yes
12004    dynamic_linker="$host_os dld.so"
12005    shlibpath_var=LD_LIBRARY_PATH
12006    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12007    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12008    soname_spec='$libname$release$shared_ext$major'
12009    if test 32 = "$HPUX_IA64_MODE"; then
12010      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12011      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12012    else
12013      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12014      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12015    fi
12016    ;;
12017  hppa*64*)
12018    shrext_cmds='.sl'
12019    hardcode_into_libs=yes
12020    dynamic_linker="$host_os dld.sl"
12021    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12022    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12023    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024    soname_spec='$libname$release$shared_ext$major'
12025    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12026    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12027    ;;
12028  *)
12029    shrext_cmds='.sl'
12030    dynamic_linker="$host_os dld.sl"
12031    shlibpath_var=SHLIB_PATH
12032    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12033    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12034    soname_spec='$libname$release$shared_ext$major'
12035    ;;
12036  esac
12037  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12038  postinstall_cmds='chmod 555 $lib'
12039  # or fails outright, so override atomically:
12040  install_override_mode=555
12041  ;;
12042
12043interix[3-9]*)
12044  version_type=linux # correct to gnu/linux during the next big refactor
12045  need_lib_prefix=no
12046  need_version=no
12047  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12048  soname_spec='$libname$release$shared_ext$major'
12049  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12050  shlibpath_var=LD_LIBRARY_PATH
12051  shlibpath_overrides_runpath=no
12052  hardcode_into_libs=yes
12053  ;;
12054
12055irix5* | irix6* | nonstopux*)
12056  case $host_os in
12057    nonstopux*) version_type=nonstopux ;;
12058    *)
12059	if test yes = "$lt_cv_prog_gnu_ld"; then
12060		version_type=linux # correct to gnu/linux during the next big refactor
12061	else
12062		version_type=irix
12063	fi ;;
12064  esac
12065  need_lib_prefix=no
12066  need_version=no
12067  soname_spec='$libname$release$shared_ext$major'
12068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12069  case $host_os in
12070  irix5* | nonstopux*)
12071    libsuff= shlibsuff=
12072    ;;
12073  *)
12074    case $LD in # libtool.m4 will add one of these switches to LD
12075    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12076      libsuff= shlibsuff= libmagic=32-bit;;
12077    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12078      libsuff=32 shlibsuff=N32 libmagic=N32;;
12079    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12080      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12081    *) libsuff= shlibsuff= libmagic=never-match;;
12082    esac
12083    ;;
12084  esac
12085  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12086  shlibpath_overrides_runpath=no
12087  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12088  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12089  hardcode_into_libs=yes
12090  ;;
12091
12092# No shared lib support for Linux oldld, aout, or coff.
12093linux*oldld* | linux*aout* | linux*coff*)
12094  dynamic_linker=no
12095  ;;
12096
12097linux*android*)
12098  version_type=none # Android doesn't support versioned libraries.
12099  need_lib_prefix=no
12100  need_version=no
12101  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12102  soname_spec='$libname$release$shared_ext'
12103  finish_cmds=
12104  shlibpath_var=LD_LIBRARY_PATH
12105  shlibpath_overrides_runpath=yes
12106
12107  # This implies no fast_install, which is unacceptable.
12108  # Some rework will be needed to allow for fast_install
12109  # before this can be enabled.
12110  hardcode_into_libs=yes
12111
12112  dynamic_linker='Android linker'
12113  # -rpath works at least for libraries that are not overridden by
12114  # libraries installed in system locations.
12115  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12116  ;;
12117
12118# This must be glibc/ELF.
12119linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12120  version_type=linux # correct to gnu/linux during the next big refactor
12121  need_lib_prefix=no
12122  need_version=no
12123  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12124  soname_spec='$libname$release$shared_ext$major'
12125  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12126  shlibpath_var=LD_LIBRARY_PATH
12127  shlibpath_overrides_runpath=no
12128
12129  # Some binutils ld are patched to set DT_RUNPATH
12130  if test ${lt_cv_shlibpath_overrides_runpath+y}
12131then :
12132  printf %s "(cached) " >&6
12133else case e in #(
12134  e) lt_cv_shlibpath_overrides_runpath=no
12135    save_LDFLAGS=$LDFLAGS
12136    save_libdir=$libdir
12137    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12138	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h.  */
12141
12142int
12143main (void)
12144{
12145
12146  ;
12147  return 0;
12148}
12149_ACEOF
12150if ac_fn_c_try_link "$LINENO"
12151then :
12152  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12153then :
12154  lt_cv_shlibpath_overrides_runpath=yes
12155fi
12156fi
12157rm -f core conftest.err conftest.$ac_objext conftest.beam \
12158    conftest$ac_exeext conftest.$ac_ext
12159    LDFLAGS=$save_LDFLAGS
12160    libdir=$save_libdir
12161     ;;
12162esac
12163fi
12164
12165  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12166
12167  # This implies no fast_install, which is unacceptable.
12168  # Some rework will be needed to allow for fast_install
12169  # before this can be enabled.
12170  hardcode_into_libs=yes
12171
12172  # Ideally, we could use ldconfig to report *all* directories which are
12173  # searched for libraries, however this is still not possible.  Aside from not
12174  # being certain /sbin/ldconfig is available, command
12175  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12176  # even though it is searched at run-time.  Try to do the best guess by
12177  # appending ld.so.conf contents (and includes) to the search path.
12178  if test -f /etc/ld.so.conf; then
12179    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' ' '`
12180    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12181  fi
12182
12183  # We used to test for /lib/ld.so.1 and disable shared libraries on
12184  # powerpc, because MkLinux only supported shared libraries with the
12185  # GNU dynamic linker.  Since this was broken with cross compilers,
12186  # most powerpc-linux boxes support dynamic linking these days and
12187  # people can always --disable-shared, the test was removed, and we
12188  # assume the GNU/Linux dynamic linker is in use.
12189  dynamic_linker='GNU/Linux ld.so'
12190  ;;
12191
12192netbsdelf*-gnu)
12193  version_type=linux
12194  need_lib_prefix=no
12195  need_version=no
12196  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12197  soname_spec='$libname$release$shared_ext$major'
12198  shlibpath_var=LD_LIBRARY_PATH
12199  shlibpath_overrides_runpath=no
12200  hardcode_into_libs=yes
12201  dynamic_linker='NetBSD ld.elf_so'
12202  ;;
12203
12204netbsd*)
12205  version_type=sunos
12206  need_lib_prefix=no
12207  need_version=no
12208  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12209    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12210    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12211    dynamic_linker='NetBSD (a.out) ld.so'
12212  else
12213    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214    soname_spec='$libname$release$shared_ext$major'
12215    dynamic_linker='NetBSD ld.elf_so'
12216  fi
12217  shlibpath_var=LD_LIBRARY_PATH
12218  shlibpath_overrides_runpath=yes
12219  hardcode_into_libs=yes
12220  ;;
12221
12222*-mlibc)
12223  version_type=linux # correct to gnu/linux during the next big refactor
12224  need_lib_prefix=no
12225  need_version=no
12226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227  soname_spec='$libname$release$shared_ext$major'
12228  dynamic_linker='mlibc ld.so'
12229  shlibpath_var=LD_LIBRARY_PATH
12230  shlibpath_overrides_runpath=no
12231  hardcode_into_libs=yes
12232  ;;
12233
12234newsos6)
12235  version_type=linux # correct to gnu/linux during the next big refactor
12236  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237  shlibpath_var=LD_LIBRARY_PATH
12238  shlibpath_overrides_runpath=yes
12239  ;;
12240
12241*nto* | *qnx*)
12242  version_type=qnx
12243  need_lib_prefix=no
12244  need_version=no
12245  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12246  soname_spec='$libname$release$shared_ext$major'
12247  shlibpath_var=LD_LIBRARY_PATH
12248  shlibpath_overrides_runpath=no
12249  hardcode_into_libs=yes
12250  dynamic_linker='ldqnx.so'
12251  ;;
12252
12253openbsd*)
12254  version_type=sunos
12255  sys_lib_dlsearch_path_spec=/usr/lib
12256  need_lib_prefix=no
12257  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12258    need_version=no
12259  else
12260    need_version=yes
12261  fi
12262  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12263  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264  shlibpath_var=LD_LIBRARY_PATH
12265  shlibpath_overrides_runpath=yes
12266  ;;
12267
12268os2*)
12269  libname_spec='$name'
12270  version_type=windows
12271  shrext_cmds=.dll
12272  need_version=no
12273  need_lib_prefix=no
12274  # OS/2 can only load a DLL with a base name of 8 characters or less.
12275  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12276    v=$($ECHO $release$versuffix | tr -d .-);
12277    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12278    $ECHO $n$v`$shared_ext'
12279  library_names_spec='${libname}_dll.$libext'
12280  dynamic_linker='OS/2 ld.exe'
12281  shlibpath_var=BEGINLIBPATH
12282  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12283  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12284  postinstall_cmds='base_file=`basename \$file`~
12285    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12286    dldir=$destdir/`dirname \$dlpath`~
12287    test -d \$dldir || mkdir -p \$dldir~
12288    $install_prog $dir/$dlname \$dldir/$dlname~
12289    chmod a+x \$dldir/$dlname~
12290    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12291      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12292    fi'
12293  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12294    dlpath=$dir/\$dldll~
12295    $RM \$dlpath'
12296  ;;
12297
12298osf3* | osf4* | osf5*)
12299  version_type=osf
12300  need_lib_prefix=no
12301  need_version=no
12302  soname_spec='$libname$release$shared_ext$major'
12303  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12304  shlibpath_var=LD_LIBRARY_PATH
12305  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12306  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12307  ;;
12308
12309rdos*)
12310  dynamic_linker=no
12311  ;;
12312
12313serenity*)
12314  version_type=linux # correct to gnu/linux during the next big refactor
12315  need_lib_prefix=no
12316  need_version=no
12317  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318  soname_spec='$libname$release$shared_ext$major'
12319  shlibpath_var=LD_LIBRARY_PATH
12320  shlibpath_overrides_runpath=no
12321  dynamic_linker='SerenityOS LibELF'
12322  ;;
12323
12324solaris*)
12325  version_type=linux # correct to gnu/linux during the next big refactor
12326  need_lib_prefix=no
12327  need_version=no
12328  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12329  soname_spec='$libname$release$shared_ext$major'
12330  shlibpath_var=LD_LIBRARY_PATH
12331  shlibpath_overrides_runpath=yes
12332  hardcode_into_libs=yes
12333  # ldd complains unless libraries are executable
12334  postinstall_cmds='chmod +x $lib'
12335  ;;
12336
12337sunos4*)
12338  version_type=sunos
12339  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12340  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12341  shlibpath_var=LD_LIBRARY_PATH
12342  shlibpath_overrides_runpath=yes
12343  if test yes = "$with_gnu_ld"; then
12344    need_lib_prefix=no
12345  fi
12346  need_version=yes
12347  ;;
12348
12349sysv4 | sysv4.3*)
12350  version_type=linux # correct to gnu/linux during the next big refactor
12351  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12352  soname_spec='$libname$release$shared_ext$major'
12353  shlibpath_var=LD_LIBRARY_PATH
12354  case $host_vendor in
12355    sni)
12356      shlibpath_overrides_runpath=no
12357      need_lib_prefix=no
12358      runpath_var=LD_RUN_PATH
12359      ;;
12360    siemens)
12361      need_lib_prefix=no
12362      ;;
12363    motorola)
12364      need_lib_prefix=no
12365      need_version=no
12366      shlibpath_overrides_runpath=no
12367      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12368      ;;
12369  esac
12370  ;;
12371
12372sysv4*MP*)
12373  if test -d /usr/nec; then
12374    version_type=linux # correct to gnu/linux during the next big refactor
12375    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12376    soname_spec='$libname$shared_ext.$major'
12377    shlibpath_var=LD_LIBRARY_PATH
12378  fi
12379  ;;
12380
12381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12382  version_type=sco
12383  need_lib_prefix=no
12384  need_version=no
12385  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12386  soname_spec='$libname$release$shared_ext$major'
12387  shlibpath_var=LD_LIBRARY_PATH
12388  shlibpath_overrides_runpath=yes
12389  hardcode_into_libs=yes
12390  if test yes = "$with_gnu_ld"; then
12391    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12392  else
12393    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12394    case $host_os in
12395      sco3.2v5*)
12396        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12397	;;
12398    esac
12399  fi
12400  sys_lib_dlsearch_path_spec='/usr/lib'
12401  ;;
12402
12403tpf*)
12404  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12405  version_type=linux # correct to gnu/linux during the next big refactor
12406  need_lib_prefix=no
12407  need_version=no
12408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409  shlibpath_var=LD_LIBRARY_PATH
12410  shlibpath_overrides_runpath=no
12411  hardcode_into_libs=yes
12412  ;;
12413
12414uts4*)
12415  version_type=linux # correct to gnu/linux during the next big refactor
12416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12417  soname_spec='$libname$release$shared_ext$major'
12418  shlibpath_var=LD_LIBRARY_PATH
12419  ;;
12420
12421emscripten*)
12422  version_type=none
12423  need_lib_prefix=no
12424  need_version=no
12425  library_names_spec='$libname$release$shared_ext'
12426  soname_spec='$libname$release$shared_ext'
12427  finish_cmds=
12428  dynamic_linker="Emscripten linker"
12429  lt_prog_compiler_wl=
12430lt_prog_compiler_pic=
12431lt_prog_compiler_static=
12432
12433
12434  if test yes = "$GCC"; then
12435    lt_prog_compiler_wl='-Wl,'
12436    lt_prog_compiler_static='-static'
12437
12438    case $host_os in
12439      aix*)
12440      # All AIX code is PIC.
12441      if test ia64 = "$host_cpu"; then
12442	# AIX 5 now supports IA64 processor
12443	lt_prog_compiler_static='-Bstatic'
12444      fi
12445      lt_prog_compiler_pic='-fPIC'
12446      ;;
12447
12448    amigaos*)
12449      case $host_cpu in
12450      powerpc)
12451            # see comment about AmigaOS4 .so support
12452            lt_prog_compiler_pic='-fPIC'
12453        ;;
12454      m68k)
12455            # FIXME: we need at least 68020 code to build shared libraries, but
12456            # adding the '-m68020' flag to GCC prevents building anything better,
12457            # like '-m68040'.
12458            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12459        ;;
12460      esac
12461      ;;
12462
12463    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12464      # PIC is the default for these OSes.
12465      ;;
12466
12467    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12468      # This hack is so that the source file can tell whether it is being
12469      # built for inclusion in a dll (and should export symbols for example).
12470      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12471      # (--disable-auto-import) libraries
12472      lt_prog_compiler_pic='-DDLL_EXPORT'
12473      case $host_os in
12474      os2*)
12475	lt_prog_compiler_static='$wl-static'
12476	;;
12477      esac
12478      ;;
12479
12480    darwin* | rhapsody*)
12481      # PIC is the default on this platform
12482      # Common symbols not allowed in MH_DYLIB files
12483      lt_prog_compiler_pic='-fno-common'
12484      ;;
12485
12486    haiku*)
12487      # PIC is the default for Haiku.
12488      # The "-static" flag exists, but is broken.
12489      lt_prog_compiler_static=
12490      ;;
12491
12492    hpux*)
12493      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12494      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12495      # sets the default TLS model and affects inlining.
12496      case $host_cpu in
12497      hppa*64*)
12498	# +Z the default
12499	;;
12500      *)
12501	lt_prog_compiler_pic='-fPIC'
12502	;;
12503      esac
12504      ;;
12505
12506    interix[3-9]*)
12507      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12508      # Instead, we relocate shared libraries at runtime.
12509      ;;
12510
12511    msdosdjgpp*)
12512      # Just because we use GCC doesn't mean we suddenly get shared libraries
12513      # on systems that don't support them.
12514      lt_prog_compiler_can_build_shared=no
12515      enable_shared=no
12516      ;;
12517
12518    *nto* | *qnx*)
12519      # QNX uses GNU C++, but need to define -shared option too, otherwise
12520      # it will coredump.
12521      lt_prog_compiler_pic='-fPIC -shared'
12522      ;;
12523
12524    sysv4*MP*)
12525      if test -d /usr/nec; then
12526	lt_prog_compiler_pic=-Kconform_pic
12527      fi
12528      ;;
12529
12530    *)
12531      lt_prog_compiler_pic='-fPIC'
12532      ;;
12533    esac
12534
12535    case $cc_basename in
12536    nvcc*) # Cuda Compiler Driver 2.2
12537      lt_prog_compiler_wl='-Xlinker '
12538      if test -n "$lt_prog_compiler_pic"; then
12539        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12540      fi
12541      ;;
12542    esac
12543  else
12544    # PORTME Check for flag to pass linker flags through the system compiler.
12545    case $host_os in
12546    aix*)
12547      lt_prog_compiler_wl='-Wl,'
12548      if test ia64 = "$host_cpu"; then
12549	# AIX 5 now supports IA64 processor
12550	lt_prog_compiler_static='-Bstatic'
12551      else
12552	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12553      fi
12554      ;;
12555
12556    darwin* | rhapsody*)
12557      # PIC is the default on this platform
12558      # Common symbols not allowed in MH_DYLIB files
12559      lt_prog_compiler_pic='-fno-common'
12560      case $cc_basename in
12561      nagfor*)
12562        # NAG Fortran compiler
12563        lt_prog_compiler_wl='-Wl,-Wl,,'
12564        lt_prog_compiler_pic='-PIC'
12565        lt_prog_compiler_static='-Bstatic'
12566        ;;
12567      esac
12568      ;;
12569
12570    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12571      # This hack is so that the source file can tell whether it is being
12572      # built for inclusion in a dll (and should export symbols for example).
12573      lt_prog_compiler_pic='-DDLL_EXPORT'
12574      case $host_os in
12575      os2*)
12576	lt_prog_compiler_static='$wl-static'
12577	;;
12578      esac
12579      ;;
12580
12581    hpux9* | hpux10* | hpux11*)
12582      lt_prog_compiler_wl='-Wl,'
12583      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12584      # not for PA HP-UX.
12585      case $host_cpu in
12586      hppa*64*|ia64*)
12587	# +Z the default
12588	;;
12589      *)
12590	lt_prog_compiler_pic='+Z'
12591	;;
12592      esac
12593      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12594      lt_prog_compiler_static='$wl-a ${wl}archive'
12595      ;;
12596
12597    irix5* | irix6* | nonstopux*)
12598      lt_prog_compiler_wl='-Wl,'
12599      # PIC (with -KPIC) is the default.
12600      lt_prog_compiler_static='-non_shared'
12601      ;;
12602
12603    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12604      case $cc_basename in
12605      # old Intel for x86_64, which still supported -KPIC.
12606      ecc*)
12607	lt_prog_compiler_wl='-Wl,'
12608	lt_prog_compiler_pic='-KPIC'
12609	lt_prog_compiler_static='-static'
12610        ;;
12611      *flang* | ftn | f18* | f95*)
12612        # Flang compiler.
12613	lt_prog_compiler_wl='-Wl,'
12614	lt_prog_compiler_pic='-fPIC'
12615	lt_prog_compiler_static='-static'
12616        ;;
12617      # icc used to be incompatible with GCC.
12618      # ICC 10 doesn't accept -KPIC any more.
12619      icc* | ifort*)
12620	lt_prog_compiler_wl='-Wl,'
12621	lt_prog_compiler_pic='-fPIC'
12622	lt_prog_compiler_static='-static'
12623        ;;
12624      # Lahey Fortran 8.1.
12625      lf95*)
12626	lt_prog_compiler_wl='-Wl,'
12627	lt_prog_compiler_pic='--shared'
12628	lt_prog_compiler_static='--static'
12629	;;
12630      nagfor*)
12631	# NAG Fortran compiler
12632	lt_prog_compiler_wl='-Wl,-Wl,,'
12633	lt_prog_compiler_pic='-PIC'
12634	lt_prog_compiler_static='-Bstatic'
12635	;;
12636      tcc*)
12637	# Fabrice Bellard et al's Tiny C Compiler
12638	lt_prog_compiler_wl='-Wl,'
12639	lt_prog_compiler_pic='-fPIC'
12640	lt_prog_compiler_static='-static'
12641	;;
12642      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12643        # Portland Group compilers (*not* the Pentium gcc compiler,
12644	# which looks to be a dead project)
12645	lt_prog_compiler_wl='-Wl,'
12646	lt_prog_compiler_pic='-fpic'
12647	lt_prog_compiler_static='-Bstatic'
12648        ;;
12649      ccc*)
12650        lt_prog_compiler_wl='-Wl,'
12651        # All Alpha code is PIC.
12652        lt_prog_compiler_static='-non_shared'
12653        ;;
12654      xl* | bgxl* | bgf* | mpixl*)
12655	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12656	lt_prog_compiler_wl='-Wl,'
12657	lt_prog_compiler_pic='-qpic'
12658	lt_prog_compiler_static='-qstaticlink'
12659	;;
12660      *)
12661	case `$CC -V 2>&1 | $SED 5q` in
12662	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12663	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12664	  lt_prog_compiler_pic='-KPIC'
12665	  lt_prog_compiler_static='-Bstatic'
12666	  lt_prog_compiler_wl=''
12667	  ;;
12668	*Sun\ F* | *Sun*Fortran*)
12669	  lt_prog_compiler_pic='-KPIC'
12670	  lt_prog_compiler_static='-Bstatic'
12671	  lt_prog_compiler_wl='-Qoption ld '
12672	  ;;
12673	*Sun\ C*)
12674	  # Sun C 5.9
12675	  lt_prog_compiler_pic='-KPIC'
12676	  lt_prog_compiler_static='-Bstatic'
12677	  lt_prog_compiler_wl='-Wl,'
12678	  ;;
12679        *Intel*\ [CF]*Compiler*)
12680	  lt_prog_compiler_wl='-Wl,'
12681	  lt_prog_compiler_pic='-fPIC'
12682	  lt_prog_compiler_static='-static'
12683	  ;;
12684	*Portland\ Group*)
12685	  lt_prog_compiler_wl='-Wl,'
12686	  lt_prog_compiler_pic='-fpic'
12687	  lt_prog_compiler_static='-Bstatic'
12688	  ;;
12689	esac
12690	;;
12691      esac
12692      ;;
12693
12694    newsos6)
12695      lt_prog_compiler_pic='-KPIC'
12696      lt_prog_compiler_static='-Bstatic'
12697      ;;
12698
12699    *-mlibc)
12700      lt_prog_compiler_wl='-Wl,'
12701      lt_prog_compiler_pic='-fPIC'
12702      lt_prog_compiler_static='-static'
12703      ;;
12704
12705    *nto* | *qnx*)
12706      # QNX uses GNU C++, but need to define -shared option too, otherwise
12707      # it will coredump.
12708      lt_prog_compiler_pic='-fPIC -shared'
12709      ;;
12710
12711    osf3* | osf4* | osf5*)
12712      lt_prog_compiler_wl='-Wl,'
12713      # All OSF/1 code is PIC.
12714      lt_prog_compiler_static='-non_shared'
12715      ;;
12716
12717    rdos*)
12718      lt_prog_compiler_static='-non_shared'
12719      ;;
12720
12721    serenity*)
12722      ;;
12723
12724    solaris*)
12725      lt_prog_compiler_pic='-KPIC'
12726      lt_prog_compiler_static='-Bstatic'
12727      case $cc_basename in
12728      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12729	lt_prog_compiler_wl='-Qoption ld ';;
12730      *)
12731	lt_prog_compiler_wl='-Wl,';;
12732      esac
12733      ;;
12734
12735    sunos4*)
12736      lt_prog_compiler_wl='-Qoption ld '
12737      lt_prog_compiler_pic='-PIC'
12738      lt_prog_compiler_static='-Bstatic'
12739      ;;
12740
12741    sysv4 | sysv4.2uw2* | sysv4.3*)
12742      lt_prog_compiler_wl='-Wl,'
12743      lt_prog_compiler_pic='-KPIC'
12744      lt_prog_compiler_static='-Bstatic'
12745      ;;
12746
12747    sysv4*MP*)
12748      if test -d /usr/nec; then
12749	lt_prog_compiler_pic='-Kconform_pic'
12750	lt_prog_compiler_static='-Bstatic'
12751      fi
12752      ;;
12753
12754    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12755      lt_prog_compiler_wl='-Wl,'
12756      lt_prog_compiler_pic='-KPIC'
12757      lt_prog_compiler_static='-Bstatic'
12758      ;;
12759
12760    unicos*)
12761      lt_prog_compiler_wl='-Wl,'
12762      lt_prog_compiler_can_build_shared=no
12763      ;;
12764
12765    uts4*)
12766      lt_prog_compiler_pic='-pic'
12767      lt_prog_compiler_static='-Bstatic'
12768      ;;
12769
12770    *)
12771      lt_prog_compiler_can_build_shared=no
12772      ;;
12773    esac
12774  fi
12775
12776case $host_os in
12777  # For platforms that do not support PIC, -DPIC is meaningless:
12778  *djgpp*)
12779    lt_prog_compiler_pic=
12780    ;;
12781  *)
12782    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12783    ;;
12784esac
12785
12786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12787printf %s "checking for $compiler option to produce PIC... " >&6; }
12788if test ${lt_cv_prog_compiler_pic+y}
12789then :
12790  printf %s "(cached) " >&6
12791else case e in #(
12792  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12793esac
12794fi
12795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12796printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12797lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12798
12799#
12800# Check to make sure the PIC flag actually works.
12801#
12802if test -n "$lt_prog_compiler_pic"; then
12803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12804printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12805if test ${lt_cv_prog_compiler_pic_works+y}
12806then :
12807  printf %s "(cached) " >&6
12808else case e in #(
12809  e) lt_cv_prog_compiler_pic_works=no
12810   ac_outfile=conftest.$ac_objext
12811   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12812   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12813   # Insert the option either (1) after the last *FLAGS variable, or
12814   # (2) before a word containing "conftest.", or (3) at the end.
12815   # Note that $ac_compile itself does not contain backslashes and begins
12816   # with a dollar sign (not a hyphen), so the echo should work correctly.
12817   # The option is referenced via a variable to avoid confusing sed.
12818   lt_compile=`echo "$ac_compile" | $SED \
12819   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12820   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12821   -e 's:$: $lt_compiler_flag:'`
12822   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12823   (eval "$lt_compile" 2>conftest.err)
12824   ac_status=$?
12825   cat conftest.err >&5
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   if (exit $ac_status) && test -s "$ac_outfile"; then
12828     # The compiler can only warn and ignore the option if not recognized
12829     # So say no if there are warnings other than the usual output.
12830     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12831     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12832     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12833       lt_cv_prog_compiler_pic_works=yes
12834     fi
12835   fi
12836   $RM conftest*
12837 ;;
12838esac
12839fi
12840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12841printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12842
12843if test yes = "$lt_cv_prog_compiler_pic_works"; then
12844    case $lt_prog_compiler_pic in
12845     "" | " "*) ;;
12846     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12847     esac
12848else
12849    lt_prog_compiler_pic=
12850     lt_prog_compiler_can_build_shared=no
12851fi
12852
12853fi
12854
12855
12856
12857
12858
12859#
12860# Check to make sure the static flag actually works.
12861#
12862wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12864printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12865if test ${lt_cv_prog_compiler_static_works+y}
12866then :
12867  printf %s "(cached) " >&6
12868else case e in #(
12869  e) lt_cv_prog_compiler_static_works=no
12870   save_LDFLAGS=$LDFLAGS
12871   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12872   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12873   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12874     # The linker can only warn and ignore the option if not recognized
12875     # So say no if there are warnings
12876     if test -s conftest.err; then
12877       # Append any errors to the config.log.
12878       cat conftest.err 1>&5
12879       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12880       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12881       if diff conftest.exp conftest.er2 >/dev/null; then
12882         lt_cv_prog_compiler_static_works=yes
12883       fi
12884     else
12885       lt_cv_prog_compiler_static_works=yes
12886     fi
12887   fi
12888   $RM -r conftest*
12889   LDFLAGS=$save_LDFLAGS
12890 ;;
12891esac
12892fi
12893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12894printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12895
12896if test yes = "$lt_cv_prog_compiler_static_works"; then
12897    :
12898else
12899    lt_prog_compiler_static=
12900fi
12901
12902
12903
12904='-fPIC'
12905  archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12906  archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12907  archive_cmds_need_lc=no
12908  no_undefined_flag=
12909  ;;
12910
12911*)
12912  dynamic_linker=no
12913  ;;
12914esac
12915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12916printf "%s\n" "$dynamic_linker" >&6; }
12917test no = "$dynamic_linker" && can_build_shared=no
12918
12919variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12920if test yes = "$GCC"; then
12921  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12922fi
12923
12924if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12925  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12926fi
12927
12928if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12929  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12930fi
12931
12932# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12933configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12934
12935# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12936func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12937
12938# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12939configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13038printf %s "checking how to hardcode library paths into programs... " >&6; }
13039hardcode_action=
13040if test -n "$hardcode_libdir_flag_spec" ||
13041   test -n "$runpath_var" ||
13042   test yes = "$hardcode_automatic"; then
13043
13044  # We can hardcode non-existent directories.
13045  if test no != "$hardcode_direct" &&
13046     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13047     # have to relink, otherwise we might link with an installed library
13048     # when we should be linking with a yet-to-be-installed one
13049     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13050     test no != "$hardcode_minus_L"; then
13051    # Linking always hardcodes the temporary library directory.
13052    hardcode_action=relink
13053  else
13054    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13055    hardcode_action=immediate
13056  fi
13057else
13058  # We cannot hardcode anything, or else we can only hardcode existing
13059  # directories.
13060  hardcode_action=unsupported
13061fi
13062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13063printf "%s\n" "$hardcode_action" >&6; }
13064
13065if test relink = "$hardcode_action" ||
13066   test yes = "$inherit_rpath"; then
13067  # Fast installation is not supported
13068  enable_fast_install=no
13069elif test yes = "$shlibpath_overrides_runpath" ||
13070     test no = "$enable_shared"; then
13071  # Fast installation is not necessary
13072  enable_fast_install=needless
13073fi
13074
13075
13076
13077
13078
13079
13080  if test yes != "$enable_dlopen"; then
13081  enable_dlopen=unknown
13082  enable_dlopen_self=unknown
13083  enable_dlopen_self_static=unknown
13084else
13085  lt_cv_dlopen=no
13086  lt_cv_dlopen_libs=
13087
13088  case $host_os in
13089  beos*)
13090    lt_cv_dlopen=load_add_on
13091    lt_cv_dlopen_libs=
13092    lt_cv_dlopen_self=yes
13093    ;;
13094
13095  mingw* | windows* | pw32* | cegcc*)
13096    lt_cv_dlopen=LoadLibrary
13097    lt_cv_dlopen_libs=
13098    ;;
13099
13100  cygwin*)
13101    lt_cv_dlopen=dlopen
13102    lt_cv_dlopen_libs=
13103    ;;
13104
13105  darwin*)
13106    # if libdl is installed we need to link against it
13107    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13108printf %s "checking for dlopen in -ldl... " >&6; }
13109if test ${ac_cv_lib_dl_dlopen+y}
13110then :
13111  printf %s "(cached) " >&6
13112else case e in #(
13113  e) ac_check_lib_save_LIBS=$LIBS
13114LIBS="-ldl  $LIBS"
13115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116/* end confdefs.h.  */
13117
13118/* Override any GCC internal prototype to avoid an error.
13119   Use char because int might match the return type of a GCC
13120   builtin and then its argument prototype would still apply.
13121   The 'extern "C"' is for builds by C++ compilers;
13122   although this is not generally supported in C code supporting it here
13123   has little cost and some practical benefit (sr 110532).  */
13124#ifdef __cplusplus
13125extern "C"
13126#endif
13127char dlopen (void);
13128int
13129main (void)
13130{
13131return dlopen ();
13132  ;
13133  return 0;
13134}
13135_ACEOF
13136if ac_fn_c_try_link "$LINENO"
13137then :
13138  ac_cv_lib_dl_dlopen=yes
13139else case e in #(
13140  e) ac_cv_lib_dl_dlopen=no ;;
13141esac
13142fi
13143rm -f core conftest.err conftest.$ac_objext conftest.beam \
13144    conftest$ac_exeext conftest.$ac_ext
13145LIBS=$ac_check_lib_save_LIBS ;;
13146esac
13147fi
13148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13149printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13150if test "x$ac_cv_lib_dl_dlopen" = xyes
13151then :
13152  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13153else case e in #(
13154  e)
13155    lt_cv_dlopen=dyld
13156    lt_cv_dlopen_libs=
13157    lt_cv_dlopen_self=yes
13158     ;;
13159esac
13160fi
13161
13162    ;;
13163
13164  tpf*)
13165    # Don't try to run any link tests for TPF.  We know it's impossible
13166    # because TPF is a cross-compiler, and we know how we open DSOs.
13167    lt_cv_dlopen=dlopen
13168    lt_cv_dlopen_libs=
13169    lt_cv_dlopen_self=no
13170    ;;
13171
13172  *)
13173    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13174if test "x$ac_cv_func_shl_load" = xyes
13175then :
13176  lt_cv_dlopen=shl_load
13177else case e in #(
13178  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13179printf %s "checking for shl_load in -ldld... " >&6; }
13180if test ${ac_cv_lib_dld_shl_load+y}
13181then :
13182  printf %s "(cached) " >&6
13183else case e in #(
13184  e) ac_check_lib_save_LIBS=$LIBS
13185LIBS="-ldld  $LIBS"
13186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187/* end confdefs.h.  */
13188
13189/* Override any GCC internal prototype to avoid an error.
13190   Use char because int might match the return type of a GCC
13191   builtin and then its argument prototype would still apply.
13192   The 'extern "C"' is for builds by C++ compilers;
13193   although this is not generally supported in C code supporting it here
13194   has little cost and some practical benefit (sr 110532).  */
13195#ifdef __cplusplus
13196extern "C"
13197#endif
13198char shl_load (void);
13199int
13200main (void)
13201{
13202return shl_load ();
13203  ;
13204  return 0;
13205}
13206_ACEOF
13207if ac_fn_c_try_link "$LINENO"
13208then :
13209  ac_cv_lib_dld_shl_load=yes
13210else case e in #(
13211  e) ac_cv_lib_dld_shl_load=no ;;
13212esac
13213fi
13214rm -f core conftest.err conftest.$ac_objext conftest.beam \
13215    conftest$ac_exeext conftest.$ac_ext
13216LIBS=$ac_check_lib_save_LIBS ;;
13217esac
13218fi
13219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13220printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13221if test "x$ac_cv_lib_dld_shl_load" = xyes
13222then :
13223  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13224else case e in #(
13225  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13226if test "x$ac_cv_func_dlopen" = xyes
13227then :
13228  lt_cv_dlopen=dlopen
13229else case e in #(
13230  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13231printf %s "checking for dlopen in -ldl... " >&6; }
13232if test ${ac_cv_lib_dl_dlopen+y}
13233then :
13234  printf %s "(cached) " >&6
13235else case e in #(
13236  e) ac_check_lib_save_LIBS=$LIBS
13237LIBS="-ldl  $LIBS"
13238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239/* end confdefs.h.  */
13240
13241/* Override any GCC internal prototype to avoid an error.
13242   Use char because int might match the return type of a GCC
13243   builtin and then its argument prototype would still apply.
13244   The 'extern "C"' is for builds by C++ compilers;
13245   although this is not generally supported in C code supporting it here
13246   has little cost and some practical benefit (sr 110532).  */
13247#ifdef __cplusplus
13248extern "C"
13249#endif
13250char dlopen (void);
13251int
13252main (void)
13253{
13254return dlopen ();
13255  ;
13256  return 0;
13257}
13258_ACEOF
13259if ac_fn_c_try_link "$LINENO"
13260then :
13261  ac_cv_lib_dl_dlopen=yes
13262else case e in #(
13263  e) ac_cv_lib_dl_dlopen=no ;;
13264esac
13265fi
13266rm -f core conftest.err conftest.$ac_objext conftest.beam \
13267    conftest$ac_exeext conftest.$ac_ext
13268LIBS=$ac_check_lib_save_LIBS ;;
13269esac
13270fi
13271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13272printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13273if test "x$ac_cv_lib_dl_dlopen" = xyes
13274then :
13275  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13276else case e in #(
13277  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13278printf %s "checking for dlopen in -lsvld... " >&6; }
13279if test ${ac_cv_lib_svld_dlopen+y}
13280then :
13281  printf %s "(cached) " >&6
13282else case e in #(
13283  e) ac_check_lib_save_LIBS=$LIBS
13284LIBS="-lsvld  $LIBS"
13285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286/* end confdefs.h.  */
13287
13288/* Override any GCC internal prototype to avoid an error.
13289   Use char because int might match the return type of a GCC
13290   builtin and then its argument prototype would still apply.
13291   The 'extern "C"' is for builds by C++ compilers;
13292   although this is not generally supported in C code supporting it here
13293   has little cost and some practical benefit (sr 110532).  */
13294#ifdef __cplusplus
13295extern "C"
13296#endif
13297char dlopen (void);
13298int
13299main (void)
13300{
13301return dlopen ();
13302  ;
13303  return 0;
13304}
13305_ACEOF
13306if ac_fn_c_try_link "$LINENO"
13307then :
13308  ac_cv_lib_svld_dlopen=yes
13309else case e in #(
13310  e) ac_cv_lib_svld_dlopen=no ;;
13311esac
13312fi
13313rm -f core conftest.err conftest.$ac_objext conftest.beam \
13314    conftest$ac_exeext conftest.$ac_ext
13315LIBS=$ac_check_lib_save_LIBS ;;
13316esac
13317fi
13318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13319printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13320if test "x$ac_cv_lib_svld_dlopen" = xyes
13321then :
13322  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13323else case e in #(
13324  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13325printf %s "checking for dld_link in -ldld... " >&6; }
13326if test ${ac_cv_lib_dld_dld_link+y}
13327then :
13328  printf %s "(cached) " >&6
13329else case e in #(
13330  e) ac_check_lib_save_LIBS=$LIBS
13331LIBS="-ldld  $LIBS"
13332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333/* end confdefs.h.  */
13334
13335/* Override any GCC internal prototype to avoid an error.
13336   Use char because int might match the return type of a GCC
13337   builtin and then its argument prototype would still apply.
13338   The 'extern "C"' is for builds by C++ compilers;
13339   although this is not generally supported in C code supporting it here
13340   has little cost and some practical benefit (sr 110532).  */
13341#ifdef __cplusplus
13342extern "C"
13343#endif
13344char dld_link (void);
13345int
13346main (void)
13347{
13348return dld_link ();
13349  ;
13350  return 0;
13351}
13352_ACEOF
13353if ac_fn_c_try_link "$LINENO"
13354then :
13355  ac_cv_lib_dld_dld_link=yes
13356else case e in #(
13357  e) ac_cv_lib_dld_dld_link=no ;;
13358esac
13359fi
13360rm -f core conftest.err conftest.$ac_objext conftest.beam \
13361    conftest$ac_exeext conftest.$ac_ext
13362LIBS=$ac_check_lib_save_LIBS ;;
13363esac
13364fi
13365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13366printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13367if test "x$ac_cv_lib_dld_dld_link" = xyes
13368then :
13369  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13370fi
13371
13372	       ;;
13373esac
13374fi
13375
13376	     ;;
13377esac
13378fi
13379
13380	   ;;
13381esac
13382fi
13383
13384	 ;;
13385esac
13386fi
13387
13388       ;;
13389esac
13390fi
13391
13392    ;;
13393  esac
13394
13395  if test no = "$lt_cv_dlopen"; then
13396    enable_dlopen=no
13397  else
13398    enable_dlopen=yes
13399  fi
13400
13401  case $lt_cv_dlopen in
13402  dlopen)
13403    save_CPPFLAGS=$CPPFLAGS
13404    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13405
13406    save_LDFLAGS=$LDFLAGS
13407    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13408
13409    save_LIBS=$LIBS
13410    LIBS="$lt_cv_dlopen_libs $LIBS"
13411
13412    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13413printf %s "checking whether a program can dlopen itself... " >&6; }
13414if test ${lt_cv_dlopen_self+y}
13415then :
13416  printf %s "(cached) " >&6
13417else case e in #(
13418  e) 	  if test yes = "$cross_compiling"; then :
13419  lt_cv_dlopen_self=cross
13420else
13421  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13422  lt_status=$lt_dlunknown
13423  cat > conftest.$ac_ext <<_LT_EOF
13424#line $LINENO "configure"
13425#include "confdefs.h"
13426
13427#if HAVE_DLFCN_H
13428#include <dlfcn.h>
13429#endif
13430
13431#include <stdio.h>
13432
13433#ifdef RTLD_GLOBAL
13434#  define LT_DLGLOBAL		RTLD_GLOBAL
13435#else
13436#  ifdef DL_GLOBAL
13437#    define LT_DLGLOBAL		DL_GLOBAL
13438#  else
13439#    define LT_DLGLOBAL		0
13440#  endif
13441#endif
13442
13443/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13444   find out it does not work in some platform. */
13445#ifndef LT_DLLAZY_OR_NOW
13446#  ifdef RTLD_LAZY
13447#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13448#  else
13449#    ifdef DL_LAZY
13450#      define LT_DLLAZY_OR_NOW		DL_LAZY
13451#    else
13452#      ifdef RTLD_NOW
13453#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13454#      else
13455#        ifdef DL_NOW
13456#          define LT_DLLAZY_OR_NOW	DL_NOW
13457#        else
13458#          define LT_DLLAZY_OR_NOW	0
13459#        endif
13460#      endif
13461#    endif
13462#  endif
13463#endif
13464
13465/* When -fvisibility=hidden is used, assume the code has been annotated
13466   correspondingly for the symbols needed.  */
13467#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13468int fnord (void) __attribute__((visibility("default")));
13469#endif
13470
13471int fnord (void) { return 42; }
13472int main (void)
13473{
13474  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13475  int status = $lt_dlunknown;
13476
13477  if (self)
13478    {
13479      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13480      else
13481        {
13482	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13483          else puts (dlerror ());
13484	}
13485      /* dlclose (self); */
13486    }
13487  else
13488    puts (dlerror ());
13489
13490  return status;
13491}
13492_LT_EOF
13493  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13494  (eval $ac_link) 2>&5
13495  ac_status=$?
13496  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13497  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13498    (./conftest; exit; ) >&5 2>/dev/null
13499    lt_status=$?
13500    case x$lt_status in
13501      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13502      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13503      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13504    esac
13505  else :
13506    # compilation failed
13507    lt_cv_dlopen_self=no
13508  fi
13509fi
13510rm -fr conftest*
13511
13512     ;;
13513esac
13514fi
13515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13516printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13517
13518    if test yes = "$lt_cv_dlopen_self"; then
13519      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13520      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13521printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13522if test ${lt_cv_dlopen_self_static+y}
13523then :
13524  printf %s "(cached) " >&6
13525else case e in #(
13526  e) 	  if test yes = "$cross_compiling"; then :
13527  lt_cv_dlopen_self_static=cross
13528else
13529  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13530  lt_status=$lt_dlunknown
13531  cat > conftest.$ac_ext <<_LT_EOF
13532#line $LINENO "configure"
13533#include "confdefs.h"
13534
13535#if HAVE_DLFCN_H
13536#include <dlfcn.h>
13537#endif
13538
13539#include <stdio.h>
13540
13541#ifdef RTLD_GLOBAL
13542#  define LT_DLGLOBAL		RTLD_GLOBAL
13543#else
13544#  ifdef DL_GLOBAL
13545#    define LT_DLGLOBAL		DL_GLOBAL
13546#  else
13547#    define LT_DLGLOBAL		0
13548#  endif
13549#endif
13550
13551/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13552   find out it does not work in some platform. */
13553#ifndef LT_DLLAZY_OR_NOW
13554#  ifdef RTLD_LAZY
13555#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13556#  else
13557#    ifdef DL_LAZY
13558#      define LT_DLLAZY_OR_NOW		DL_LAZY
13559#    else
13560#      ifdef RTLD_NOW
13561#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13562#      else
13563#        ifdef DL_NOW
13564#          define LT_DLLAZY_OR_NOW	DL_NOW
13565#        else
13566#          define LT_DLLAZY_OR_NOW	0
13567#        endif
13568#      endif
13569#    endif
13570#  endif
13571#endif
13572
13573/* When -fvisibility=hidden is used, assume the code has been annotated
13574   correspondingly for the symbols needed.  */
13575#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13576int fnord (void) __attribute__((visibility("default")));
13577#endif
13578
13579int fnord (void) { return 42; }
13580int main (void)
13581{
13582  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13583  int status = $lt_dlunknown;
13584
13585  if (self)
13586    {
13587      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13588      else
13589        {
13590	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13591          else puts (dlerror ());
13592	}
13593      /* dlclose (self); */
13594    }
13595  else
13596    puts (dlerror ());
13597
13598  return status;
13599}
13600_LT_EOF
13601  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13602  (eval $ac_link) 2>&5
13603  ac_status=$?
13604  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13606    (./conftest; exit; ) >&5 2>/dev/null
13607    lt_status=$?
13608    case x$lt_status in
13609      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13610      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13611      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13612    esac
13613  else :
13614    # compilation failed
13615    lt_cv_dlopen_self_static=no
13616  fi
13617fi
13618rm -fr conftest*
13619
13620       ;;
13621esac
13622fi
13623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13624printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13625    fi
13626
13627    CPPFLAGS=$save_CPPFLAGS
13628    LDFLAGS=$save_LDFLAGS
13629    LIBS=$save_LIBS
13630    ;;
13631  esac
13632
13633  case $lt_cv_dlopen_self in
13634  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13635  *) enable_dlopen_self=unknown ;;
13636  esac
13637
13638  case $lt_cv_dlopen_self_static in
13639  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13640  *) enable_dlopen_self_static=unknown ;;
13641  esac
13642fi
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660striplib=
13661old_striplib=
13662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13663printf %s "checking whether stripping libraries is possible... " >&6; }
13664if test -z "$STRIP"; then
13665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666printf "%s\n" "no" >&6; }
13667else
13668  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13669    old_striplib="$STRIP --strip-debug"
13670    striplib="$STRIP --strip-unneeded"
13671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13672printf "%s\n" "yes" >&6; }
13673  else
13674    case $host_os in
13675    darwin*)
13676      # FIXME - insert some real tests, host_os isn't really good enough
13677      striplib="$STRIP -x"
13678      old_striplib="$STRIP -S"
13679      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13680printf "%s\n" "yes" >&6; }
13681      ;;
13682    freebsd*)
13683      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13684        old_striplib="$STRIP --strip-debug"
13685        striplib="$STRIP --strip-unneeded"
13686        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13687printf "%s\n" "yes" >&6; }
13688      else
13689        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690printf "%s\n" "no" >&6; }
13691      fi
13692      ;;
13693    *)
13694      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695printf "%s\n" "no" >&6; }
13696      ;;
13697    esac
13698  fi
13699fi
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712  # Report what library types will actually be built
13713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13714printf %s "checking if libtool supports shared libraries... " >&6; }
13715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13716printf "%s\n" "$can_build_shared" >&6; }
13717
13718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13719printf %s "checking whether to build shared libraries... " >&6; }
13720  test no = "$can_build_shared" && enable_shared=no
13721
13722  # On AIX, shared libraries and static libraries use the same namespace, and
13723  # are all built from PIC.
13724  case $host_os in
13725  aix3*)
13726    test yes = "$enable_shared" && enable_static=no
13727    if test -n "$RANLIB"; then
13728      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13729      postinstall_cmds='$RANLIB $lib'
13730    fi
13731    ;;
13732
13733  aix[4-9]*)
13734    if test ia64 != "$host_cpu"; then
13735      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13736      yes,aix,yes) ;;			# shared object as lib.so file only
13737      yes,svr4,*) ;;			# shared object as lib.so archive member only
13738      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13739      esac
13740    fi
13741    ;;
13742  esac
13743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13744printf "%s\n" "$enable_shared" >&6; }
13745
13746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13747printf %s "checking whether to build static libraries... " >&6; }
13748  # Make sure either enable_shared or enable_static is yes.
13749  test yes = "$enable_shared" || enable_static=yes
13750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13751printf "%s\n" "$enable_static" >&6; }
13752
13753
13754
13755
13756fi
13757ac_ext=c
13758ac_cpp='$CPP $CPPFLAGS'
13759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762
13763CC=$lt_save_CC
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779        ac_config_commands="$ac_config_commands libtool"
13780
13781
13782
13783
13784# Only expand once:
13785
13786
13787
13788# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13801printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13802if test ${ac_cv_c_undeclared_builtin_options+y}
13803then :
13804  printf %s "(cached) " >&6
13805else case e in #(
13806  e) ac_save_CFLAGS=$CFLAGS
13807   ac_cv_c_undeclared_builtin_options='cannot detect'
13808   for ac_arg in '' -fno-builtin; do
13809     CFLAGS="$ac_save_CFLAGS $ac_arg"
13810     # This test program should *not* compile successfully.
13811     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812/* end confdefs.h.  */
13813
13814int
13815main (void)
13816{
13817(void) strchr;
13818  ;
13819  return 0;
13820}
13821_ACEOF
13822if ac_fn_c_try_compile "$LINENO"
13823then :
13824
13825else case e in #(
13826  e) # This test program should compile successfully.
13827        # No library function is consistently available on
13828        # freestanding implementations, so test against a dummy
13829        # declaration.  Include always-available headers on the
13830        # off chance that they somehow elicit warnings.
13831        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832/* end confdefs.h.  */
13833#include <float.h>
13834#include <limits.h>
13835#include <stdarg.h>
13836#include <stddef.h>
13837extern void ac_decl (int, char *);
13838
13839int
13840main (void)
13841{
13842(void) ac_decl (0, (char *) 0);
13843  (void) ac_decl;
13844
13845  ;
13846  return 0;
13847}
13848_ACEOF
13849if ac_fn_c_try_compile "$LINENO"
13850then :
13851  if test x"$ac_arg" = x
13852then :
13853  ac_cv_c_undeclared_builtin_options='none needed'
13854else case e in #(
13855  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13856esac
13857fi
13858          break
13859fi
13860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13861esac
13862fi
13863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13864    done
13865    CFLAGS=$ac_save_CFLAGS
13866   ;;
13867esac
13868fi
13869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13870printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13871  case $ac_cv_c_undeclared_builtin_options in #(
13872  'cannot detect') :
13873    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13874printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13875as_fn_error $? "cannot make $CC report undeclared builtins
13876See 'config.log' for more details" "$LINENO" 5; } ;; #(
13877  'none needed') :
13878    ac_c_undeclared_builtin_options='' ;; #(
13879  *) :
13880    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13881esac
13882
13883
13884
13885
13886
13887ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13888if test "x$ac_cv_have_decl___clang__" = xyes
13889then :
13890  CLANGCC="yes"
13891else case e in #(
13892  e) CLANGCC="no" ;;
13893esac
13894fi
13895ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13896if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13897then :
13898  INTELCC="yes"
13899else case e in #(
13900  e) INTELCC="no" ;;
13901esac
13902fi
13903ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13904if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13905then :
13906  SUNCC="yes"
13907else case e in #(
13908  e) SUNCC="no" ;;
13909esac
13910fi
13911
13912
13913
13914
13915
13916
13917
13918
13919if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13920	if test -n "$ac_tool_prefix"; then
13921  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13922set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13924printf %s "checking for $ac_word... " >&6; }
13925if test ${ac_cv_path_PKG_CONFIG+y}
13926then :
13927  printf %s "(cached) " >&6
13928else case e in #(
13929  e) case $PKG_CONFIG in
13930  [\\/]* | ?:[\\/]*)
13931  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13932  ;;
13933  *)
13934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935for as_dir in $PATH
13936do
13937  IFS=$as_save_IFS
13938  case $as_dir in #(((
13939    '') as_dir=./ ;;
13940    */) ;;
13941    *) as_dir=$as_dir/ ;;
13942  esac
13943    for ac_exec_ext in '' $ac_executable_extensions; do
13944  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13945    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13946    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13947    break 2
13948  fi
13949done
13950  done
13951IFS=$as_save_IFS
13952
13953  ;;
13954esac ;;
13955esac
13956fi
13957PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13958if test -n "$PKG_CONFIG"; then
13959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13960printf "%s\n" "$PKG_CONFIG" >&6; }
13961else
13962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13963printf "%s\n" "no" >&6; }
13964fi
13965
13966
13967fi
13968if test -z "$ac_cv_path_PKG_CONFIG"; then
13969  ac_pt_PKG_CONFIG=$PKG_CONFIG
13970  # Extract the first word of "pkg-config", so it can be a program name with args.
13971set dummy pkg-config; ac_word=$2
13972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13973printf %s "checking for $ac_word... " >&6; }
13974if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13975then :
13976  printf %s "(cached) " >&6
13977else case e in #(
13978  e) case $ac_pt_PKG_CONFIG in
13979  [\\/]* | ?:[\\/]*)
13980  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13981  ;;
13982  *)
13983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984for as_dir in $PATH
13985do
13986  IFS=$as_save_IFS
13987  case $as_dir in #(((
13988    '') as_dir=./ ;;
13989    */) ;;
13990    *) as_dir=$as_dir/ ;;
13991  esac
13992    for ac_exec_ext in '' $ac_executable_extensions; do
13993  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13994    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13995    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13996    break 2
13997  fi
13998done
13999  done
14000IFS=$as_save_IFS
14001
14002  ;;
14003esac ;;
14004esac
14005fi
14006ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14007if test -n "$ac_pt_PKG_CONFIG"; then
14008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14009printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14010else
14011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012printf "%s\n" "no" >&6; }
14013fi
14014
14015  if test "x$ac_pt_PKG_CONFIG" = x; then
14016    PKG_CONFIG=""
14017  else
14018    case $cross_compiling:$ac_tool_warned in
14019yes:)
14020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14022ac_tool_warned=yes ;;
14023esac
14024    PKG_CONFIG=$ac_pt_PKG_CONFIG
14025  fi
14026else
14027  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14028fi
14029
14030fi
14031if test -n "$PKG_CONFIG"; then
14032	_pkg_min_version=0.9.0
14033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14034printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14035	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037printf "%s\n" "yes" >&6; }
14038	else
14039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040printf "%s\n" "no" >&6; }
14041		PKG_CONFIG=""
14042	fi
14043fi
14044
14045
14046
14047
14048
14049# Check whether --enable-selective-werror was given.
14050if test ${enable_selective_werror+y}
14051then :
14052  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14053else case e in #(
14054  e) SELECTIVE_WERROR=yes ;;
14055esac
14056fi
14057
14058
14059
14060
14061
14062# -v is too short to test reliably with XORG_TESTSET_CFLAG
14063if test "x$SUNCC" = "xyes"; then
14064    BASE_CFLAGS="-v"
14065else
14066    BASE_CFLAGS=""
14067fi
14068
14069# This chunk of warnings were those that existed in the legacy CWARNFLAGS
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083xorg_testset_save_CFLAGS="$CFLAGS"
14084
14085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14089if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14090then :
14091  printf %s "(cached) " >&6
14092else case e in #(
14093  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094/* end confdefs.h.  */
14095int i;
14096_ACEOF
14097if ac_fn_c_try_compile "$LINENO"
14098then :
14099  xorg_cv_cc_flag_unknown_warning_option=yes
14100else case e in #(
14101  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14102esac
14103fi
14104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14105esac
14106fi
14107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14110	CFLAGS="$xorg_testset_save_CFLAGS"
14111fi
14112
14113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14116	fi
14117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14120if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14121then :
14122  printf %s "(cached) " >&6
14123else case e in #(
14124  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125/* end confdefs.h.  */
14126int i;
14127_ACEOF
14128if ac_fn_c_try_compile "$LINENO"
14129then :
14130  xorg_cv_cc_flag_unused_command_line_argument=yes
14131else case e in #(
14132  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14133esac
14134fi
14135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14136esac
14137fi
14138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14141	CFLAGS="$xorg_testset_save_CFLAGS"
14142fi
14143
14144found="no"
14145
14146	if test $found = "no" ; then
14147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14149		fi
14150
14151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14153		fi
14154
14155		CFLAGS="$CFLAGS -Wall"
14156
14157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14158printf %s "checking if $CC supports -Wall... " >&6; }
14159		cacheid=xorg_cv_cc_flag__Wall
14160		if eval test \${$cacheid+y}
14161then :
14162  printf %s "(cached) " >&6
14163else case e in #(
14164  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165/* end confdefs.h.  */
14166int i;
14167int
14168main (void)
14169{
14170
14171  ;
14172  return 0;
14173}
14174_ACEOF
14175if ac_fn_c_try_link "$LINENO"
14176then :
14177  eval $cacheid=yes
14178else case e in #(
14179  e) eval $cacheid=no ;;
14180esac
14181fi
14182rm -f core conftest.err conftest.$ac_objext conftest.beam \
14183    conftest$ac_exeext conftest.$ac_ext ;;
14184esac
14185fi
14186
14187
14188		CFLAGS="$xorg_testset_save_CFLAGS"
14189
14190		eval supported=\$$cacheid
14191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14192printf "%s\n" "$supported" >&6; }
14193		if test "$supported" = "yes" ; then
14194			BASE_CFLAGS="$BASE_CFLAGS -Wall"
14195			found="yes"
14196		fi
14197	fi
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213xorg_testset_save_CFLAGS="$CFLAGS"
14214
14215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14216	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14217	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14219if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14220then :
14221  printf %s "(cached) " >&6
14222else case e in #(
14223  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224/* end confdefs.h.  */
14225int i;
14226_ACEOF
14227if ac_fn_c_try_compile "$LINENO"
14228then :
14229  xorg_cv_cc_flag_unknown_warning_option=yes
14230else case e in #(
14231  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14232esac
14233fi
14234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14235esac
14236fi
14237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14240	CFLAGS="$xorg_testset_save_CFLAGS"
14241fi
14242
14243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14246	fi
14247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14250if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14251then :
14252  printf %s "(cached) " >&6
14253else case e in #(
14254  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255/* end confdefs.h.  */
14256int i;
14257_ACEOF
14258if ac_fn_c_try_compile "$LINENO"
14259then :
14260  xorg_cv_cc_flag_unused_command_line_argument=yes
14261else case e in #(
14262  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14263esac
14264fi
14265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14266esac
14267fi
14268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14270	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14271	CFLAGS="$xorg_testset_save_CFLAGS"
14272fi
14273
14274found="no"
14275
14276	if test $found = "no" ; then
14277		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14279		fi
14280
14281		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14283		fi
14284
14285		CFLAGS="$CFLAGS -Wpointer-arith"
14286
14287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14288printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14289		cacheid=xorg_cv_cc_flag__Wpointer_arith
14290		if eval test \${$cacheid+y}
14291then :
14292  printf %s "(cached) " >&6
14293else case e in #(
14294  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295/* end confdefs.h.  */
14296int i;
14297int
14298main (void)
14299{
14300
14301  ;
14302  return 0;
14303}
14304_ACEOF
14305if ac_fn_c_try_link "$LINENO"
14306then :
14307  eval $cacheid=yes
14308else case e in #(
14309  e) eval $cacheid=no ;;
14310esac
14311fi
14312rm -f core conftest.err conftest.$ac_objext conftest.beam \
14313    conftest$ac_exeext conftest.$ac_ext ;;
14314esac
14315fi
14316
14317
14318		CFLAGS="$xorg_testset_save_CFLAGS"
14319
14320		eval supported=\$$cacheid
14321		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14322printf "%s\n" "$supported" >&6; }
14323		if test "$supported" = "yes" ; then
14324			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14325			found="yes"
14326		fi
14327	fi
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343xorg_testset_save_CFLAGS="$CFLAGS"
14344
14345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14347	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14349if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14350then :
14351  printf %s "(cached) " >&6
14352else case e in #(
14353  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354/* end confdefs.h.  */
14355int i;
14356_ACEOF
14357if ac_fn_c_try_compile "$LINENO"
14358then :
14359  xorg_cv_cc_flag_unknown_warning_option=yes
14360else case e in #(
14361  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14362esac
14363fi
14364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14365esac
14366fi
14367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14369	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14370	CFLAGS="$xorg_testset_save_CFLAGS"
14371fi
14372
14373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14374	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14375		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14376	fi
14377	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14380if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14381then :
14382  printf %s "(cached) " >&6
14383else case e in #(
14384  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385/* end confdefs.h.  */
14386int i;
14387_ACEOF
14388if ac_fn_c_try_compile "$LINENO"
14389then :
14390  xorg_cv_cc_flag_unused_command_line_argument=yes
14391else case e in #(
14392  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14393esac
14394fi
14395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14396esac
14397fi
14398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14399printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14401	CFLAGS="$xorg_testset_save_CFLAGS"
14402fi
14403
14404found="no"
14405
14406	if test $found = "no" ; then
14407		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14409		fi
14410
14411		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14413		fi
14414
14415		CFLAGS="$CFLAGS -Wmissing-declarations"
14416
14417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14418printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14419		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14420		if eval test \${$cacheid+y}
14421then :
14422  printf %s "(cached) " >&6
14423else case e in #(
14424  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h.  */
14426int i;
14427int
14428main (void)
14429{
14430
14431  ;
14432  return 0;
14433}
14434_ACEOF
14435if ac_fn_c_try_link "$LINENO"
14436then :
14437  eval $cacheid=yes
14438else case e in #(
14439  e) eval $cacheid=no ;;
14440esac
14441fi
14442rm -f core conftest.err conftest.$ac_objext conftest.beam \
14443    conftest$ac_exeext conftest.$ac_ext ;;
14444esac
14445fi
14446
14447
14448		CFLAGS="$xorg_testset_save_CFLAGS"
14449
14450		eval supported=\$$cacheid
14451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14452printf "%s\n" "$supported" >&6; }
14453		if test "$supported" = "yes" ; then
14454			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14455			found="yes"
14456		fi
14457	fi
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473xorg_testset_save_CFLAGS="$CFLAGS"
14474
14475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14479if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14480then :
14481  printf %s "(cached) " >&6
14482else case e in #(
14483  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484/* end confdefs.h.  */
14485int i;
14486_ACEOF
14487if ac_fn_c_try_compile "$LINENO"
14488then :
14489  xorg_cv_cc_flag_unknown_warning_option=yes
14490else case e in #(
14491  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14492esac
14493fi
14494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14495esac
14496fi
14497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14500	CFLAGS="$xorg_testset_save_CFLAGS"
14501fi
14502
14503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14506	fi
14507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14508	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14510if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14511then :
14512  printf %s "(cached) " >&6
14513else case e in #(
14514  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515/* end confdefs.h.  */
14516int i;
14517_ACEOF
14518if ac_fn_c_try_compile "$LINENO"
14519then :
14520  xorg_cv_cc_flag_unused_command_line_argument=yes
14521else case e in #(
14522  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14523esac
14524fi
14525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14526esac
14527fi
14528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14529printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14530	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14531	CFLAGS="$xorg_testset_save_CFLAGS"
14532fi
14533
14534found="no"
14535
14536	if test $found = "no" ; then
14537		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14538			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14539		fi
14540
14541		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14542			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14543		fi
14544
14545		CFLAGS="$CFLAGS -Wformat=2"
14546
14547		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14548printf %s "checking if $CC supports -Wformat=2... " >&6; }
14549		cacheid=xorg_cv_cc_flag__Wformat_2
14550		if eval test \${$cacheid+y}
14551then :
14552  printf %s "(cached) " >&6
14553else case e in #(
14554  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555/* end confdefs.h.  */
14556int i;
14557int
14558main (void)
14559{
14560
14561  ;
14562  return 0;
14563}
14564_ACEOF
14565if ac_fn_c_try_link "$LINENO"
14566then :
14567  eval $cacheid=yes
14568else case e in #(
14569  e) eval $cacheid=no ;;
14570esac
14571fi
14572rm -f core conftest.err conftest.$ac_objext conftest.beam \
14573    conftest$ac_exeext conftest.$ac_ext ;;
14574esac
14575fi
14576
14577
14578		CFLAGS="$xorg_testset_save_CFLAGS"
14579
14580		eval supported=\$$cacheid
14581		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14582printf "%s\n" "$supported" >&6; }
14583		if test "$supported" = "yes" ; then
14584			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14585			found="yes"
14586		fi
14587	fi
14588
14589	if test $found = "no" ; then
14590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592		fi
14593
14594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14596		fi
14597
14598		CFLAGS="$CFLAGS -Wformat"
14599
14600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14601printf %s "checking if $CC supports -Wformat... " >&6; }
14602		cacheid=xorg_cv_cc_flag__Wformat
14603		if eval test \${$cacheid+y}
14604then :
14605  printf %s "(cached) " >&6
14606else case e in #(
14607  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608/* end confdefs.h.  */
14609int i;
14610int
14611main (void)
14612{
14613
14614  ;
14615  return 0;
14616}
14617_ACEOF
14618if ac_fn_c_try_link "$LINENO"
14619then :
14620  eval $cacheid=yes
14621else case e in #(
14622  e) eval $cacheid=no ;;
14623esac
14624fi
14625rm -f core conftest.err conftest.$ac_objext conftest.beam \
14626    conftest$ac_exeext conftest.$ac_ext ;;
14627esac
14628fi
14629
14630
14631		CFLAGS="$xorg_testset_save_CFLAGS"
14632
14633		eval supported=\$$cacheid
14634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14635printf "%s\n" "$supported" >&6; }
14636		if test "$supported" = "yes" ; then
14637			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14638			found="yes"
14639		fi
14640	fi
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658xorg_testset_save_CFLAGS="$CFLAGS"
14659
14660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14663printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14664if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14665then :
14666  printf %s "(cached) " >&6
14667else case e in #(
14668  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669/* end confdefs.h.  */
14670int i;
14671_ACEOF
14672if ac_fn_c_try_compile "$LINENO"
14673then :
14674  xorg_cv_cc_flag_unknown_warning_option=yes
14675else case e in #(
14676  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14677esac
14678fi
14679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14680esac
14681fi
14682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14685	CFLAGS="$xorg_testset_save_CFLAGS"
14686fi
14687
14688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14691	fi
14692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14695if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14696then :
14697  printf %s "(cached) " >&6
14698else case e in #(
14699  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700/* end confdefs.h.  */
14701int i;
14702_ACEOF
14703if ac_fn_c_try_compile "$LINENO"
14704then :
14705  xorg_cv_cc_flag_unused_command_line_argument=yes
14706else case e in #(
14707  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14708esac
14709fi
14710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14711esac
14712fi
14713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14714printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14716	CFLAGS="$xorg_testset_save_CFLAGS"
14717fi
14718
14719found="no"
14720
14721	if test $found = "no" ; then
14722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14724		fi
14725
14726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14728		fi
14729
14730		CFLAGS="$CFLAGS -Wstrict-prototypes"
14731
14732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14733printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14734		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14735		if eval test \${$cacheid+y}
14736then :
14737  printf %s "(cached) " >&6
14738else case e in #(
14739  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h.  */
14741int i;
14742int
14743main (void)
14744{
14745
14746  ;
14747  return 0;
14748}
14749_ACEOF
14750if ac_fn_c_try_link "$LINENO"
14751then :
14752  eval $cacheid=yes
14753else case e in #(
14754  e) eval $cacheid=no ;;
14755esac
14756fi
14757rm -f core conftest.err conftest.$ac_objext conftest.beam \
14758    conftest$ac_exeext conftest.$ac_ext ;;
14759esac
14760fi
14761
14762
14763		CFLAGS="$xorg_testset_save_CFLAGS"
14764
14765		eval supported=\$$cacheid
14766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14767printf "%s\n" "$supported" >&6; }
14768		if test "$supported" = "yes" ; then
14769			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14770			found="yes"
14771		fi
14772	fi
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788xorg_testset_save_CFLAGS="$CFLAGS"
14789
14790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14794if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14795then :
14796  printf %s "(cached) " >&6
14797else case e in #(
14798  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799/* end confdefs.h.  */
14800int i;
14801_ACEOF
14802if ac_fn_c_try_compile "$LINENO"
14803then :
14804  xorg_cv_cc_flag_unknown_warning_option=yes
14805else case e in #(
14806  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14807esac
14808fi
14809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14810esac
14811fi
14812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14813printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14815	CFLAGS="$xorg_testset_save_CFLAGS"
14816fi
14817
14818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14821	fi
14822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14823	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14824printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14825if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14826then :
14827  printf %s "(cached) " >&6
14828else case e in #(
14829  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830/* end confdefs.h.  */
14831int i;
14832_ACEOF
14833if ac_fn_c_try_compile "$LINENO"
14834then :
14835  xorg_cv_cc_flag_unused_command_line_argument=yes
14836else case e in #(
14837  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14838esac
14839fi
14840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14841esac
14842fi
14843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14846	CFLAGS="$xorg_testset_save_CFLAGS"
14847fi
14848
14849found="no"
14850
14851	if test $found = "no" ; then
14852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14854		fi
14855
14856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14858		fi
14859
14860		CFLAGS="$CFLAGS -Wmissing-prototypes"
14861
14862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14863printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14864		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14865		if eval test \${$cacheid+y}
14866then :
14867  printf %s "(cached) " >&6
14868else case e in #(
14869  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870/* end confdefs.h.  */
14871int i;
14872int
14873main (void)
14874{
14875
14876  ;
14877  return 0;
14878}
14879_ACEOF
14880if ac_fn_c_try_link "$LINENO"
14881then :
14882  eval $cacheid=yes
14883else case e in #(
14884  e) eval $cacheid=no ;;
14885esac
14886fi
14887rm -f core conftest.err conftest.$ac_objext conftest.beam \
14888    conftest$ac_exeext conftest.$ac_ext ;;
14889esac
14890fi
14891
14892
14893		CFLAGS="$xorg_testset_save_CFLAGS"
14894
14895		eval supported=\$$cacheid
14896		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14897printf "%s\n" "$supported" >&6; }
14898		if test "$supported" = "yes" ; then
14899			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14900			found="yes"
14901		fi
14902	fi
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918xorg_testset_save_CFLAGS="$CFLAGS"
14919
14920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14925then :
14926  printf %s "(cached) " >&6
14927else case e in #(
14928  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929/* end confdefs.h.  */
14930int i;
14931_ACEOF
14932if ac_fn_c_try_compile "$LINENO"
14933then :
14934  xorg_cv_cc_flag_unknown_warning_option=yes
14935else case e in #(
14936  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14937esac
14938fi
14939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14940esac
14941fi
14942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14945	CFLAGS="$xorg_testset_save_CFLAGS"
14946fi
14947
14948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14951	fi
14952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14956then :
14957  printf %s "(cached) " >&6
14958else case e in #(
14959  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h.  */
14961int i;
14962_ACEOF
14963if ac_fn_c_try_compile "$LINENO"
14964then :
14965  xorg_cv_cc_flag_unused_command_line_argument=yes
14966else case e in #(
14967  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14968esac
14969fi
14970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14971esac
14972fi
14973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14974printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14975	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14976	CFLAGS="$xorg_testset_save_CFLAGS"
14977fi
14978
14979found="no"
14980
14981	if test $found = "no" ; then
14982		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14983			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14984		fi
14985
14986		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14987			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14988		fi
14989
14990		CFLAGS="$CFLAGS -Wnested-externs"
14991
14992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14993printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14994		cacheid=xorg_cv_cc_flag__Wnested_externs
14995		if eval test \${$cacheid+y}
14996then :
14997  printf %s "(cached) " >&6
14998else case e in #(
14999  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000/* end confdefs.h.  */
15001int i;
15002int
15003main (void)
15004{
15005
15006  ;
15007  return 0;
15008}
15009_ACEOF
15010if ac_fn_c_try_link "$LINENO"
15011then :
15012  eval $cacheid=yes
15013else case e in #(
15014  e) eval $cacheid=no ;;
15015esac
15016fi
15017rm -f core conftest.err conftest.$ac_objext conftest.beam \
15018    conftest$ac_exeext conftest.$ac_ext ;;
15019esac
15020fi
15021
15022
15023		CFLAGS="$xorg_testset_save_CFLAGS"
15024
15025		eval supported=\$$cacheid
15026		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15027printf "%s\n" "$supported" >&6; }
15028		if test "$supported" = "yes" ; then
15029			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15030			found="yes"
15031		fi
15032	fi
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048xorg_testset_save_CFLAGS="$CFLAGS"
15049
15050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15051	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15054if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15055then :
15056  printf %s "(cached) " >&6
15057else case e in #(
15058  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059/* end confdefs.h.  */
15060int i;
15061_ACEOF
15062if ac_fn_c_try_compile "$LINENO"
15063then :
15064  xorg_cv_cc_flag_unknown_warning_option=yes
15065else case e in #(
15066  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15067esac
15068fi
15069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15070esac
15071fi
15072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15073printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15075	CFLAGS="$xorg_testset_save_CFLAGS"
15076fi
15077
15078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15081	fi
15082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15084printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15085if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15086then :
15087  printf %s "(cached) " >&6
15088else case e in #(
15089  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090/* end confdefs.h.  */
15091int i;
15092_ACEOF
15093if ac_fn_c_try_compile "$LINENO"
15094then :
15095  xorg_cv_cc_flag_unused_command_line_argument=yes
15096else case e in #(
15097  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15098esac
15099fi
15100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15101esac
15102fi
15103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15104printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15106	CFLAGS="$xorg_testset_save_CFLAGS"
15107fi
15108
15109found="no"
15110
15111	if test $found = "no" ; then
15112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15114		fi
15115
15116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15118		fi
15119
15120		CFLAGS="$CFLAGS -Wbad-function-cast"
15121
15122		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15123printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15124		cacheid=xorg_cv_cc_flag__Wbad_function_cast
15125		if eval test \${$cacheid+y}
15126then :
15127  printf %s "(cached) " >&6
15128else case e in #(
15129  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130/* end confdefs.h.  */
15131int i;
15132int
15133main (void)
15134{
15135
15136  ;
15137  return 0;
15138}
15139_ACEOF
15140if ac_fn_c_try_link "$LINENO"
15141then :
15142  eval $cacheid=yes
15143else case e in #(
15144  e) eval $cacheid=no ;;
15145esac
15146fi
15147rm -f core conftest.err conftest.$ac_objext conftest.beam \
15148    conftest$ac_exeext conftest.$ac_ext ;;
15149esac
15150fi
15151
15152
15153		CFLAGS="$xorg_testset_save_CFLAGS"
15154
15155		eval supported=\$$cacheid
15156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15157printf "%s\n" "$supported" >&6; }
15158		if test "$supported" = "yes" ; then
15159			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15160			found="yes"
15161		fi
15162	fi
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178xorg_testset_save_CFLAGS="$CFLAGS"
15179
15180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15183printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15184if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15185then :
15186  printf %s "(cached) " >&6
15187else case e in #(
15188  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189/* end confdefs.h.  */
15190int i;
15191_ACEOF
15192if ac_fn_c_try_compile "$LINENO"
15193then :
15194  xorg_cv_cc_flag_unknown_warning_option=yes
15195else case e in #(
15196  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15197esac
15198fi
15199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15200esac
15201fi
15202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15205	CFLAGS="$xorg_testset_save_CFLAGS"
15206fi
15207
15208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15211	fi
15212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15216then :
15217  printf %s "(cached) " >&6
15218else case e in #(
15219  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220/* end confdefs.h.  */
15221int i;
15222_ACEOF
15223if ac_fn_c_try_compile "$LINENO"
15224then :
15225  xorg_cv_cc_flag_unused_command_line_argument=yes
15226else case e in #(
15227  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15228esac
15229fi
15230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15231esac
15232fi
15233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15234printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15236	CFLAGS="$xorg_testset_save_CFLAGS"
15237fi
15238
15239found="no"
15240
15241	if test $found = "no" ; then
15242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15244		fi
15245
15246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15248		fi
15249
15250		CFLAGS="$CFLAGS -Wold-style-definition"
15251
15252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15253printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15254		cacheid=xorg_cv_cc_flag__Wold_style_definition
15255		if eval test \${$cacheid+y}
15256then :
15257  printf %s "(cached) " >&6
15258else case e in #(
15259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260/* end confdefs.h.  */
15261int i;
15262int
15263main (void)
15264{
15265
15266  ;
15267  return 0;
15268}
15269_ACEOF
15270if ac_fn_c_try_link "$LINENO"
15271then :
15272  eval $cacheid=yes
15273else case e in #(
15274  e) eval $cacheid=no ;;
15275esac
15276fi
15277rm -f core conftest.err conftest.$ac_objext conftest.beam \
15278    conftest$ac_exeext conftest.$ac_ext ;;
15279esac
15280fi
15281
15282
15283		CFLAGS="$xorg_testset_save_CFLAGS"
15284
15285		eval supported=\$$cacheid
15286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15287printf "%s\n" "$supported" >&6; }
15288		if test "$supported" = "yes" ; then
15289			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15290			found="yes"
15291		fi
15292	fi
15293
15294	if test $found = "no" ; then
15295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15297		fi
15298
15299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15301		fi
15302
15303		CFLAGS="$CFLAGS -fd"
15304
15305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15306printf %s "checking if $CC supports -fd... " >&6; }
15307		cacheid=xorg_cv_cc_flag__fd
15308		if eval test \${$cacheid+y}
15309then :
15310  printf %s "(cached) " >&6
15311else case e in #(
15312  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313/* end confdefs.h.  */
15314int i;
15315int
15316main (void)
15317{
15318
15319  ;
15320  return 0;
15321}
15322_ACEOF
15323if ac_fn_c_try_link "$LINENO"
15324then :
15325  eval $cacheid=yes
15326else case e in #(
15327  e) eval $cacheid=no ;;
15328esac
15329fi
15330rm -f core conftest.err conftest.$ac_objext conftest.beam \
15331    conftest$ac_exeext conftest.$ac_ext ;;
15332esac
15333fi
15334
15335
15336		CFLAGS="$xorg_testset_save_CFLAGS"
15337
15338		eval supported=\$$cacheid
15339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15340printf "%s\n" "$supported" >&6; }
15341		if test "$supported" = "yes" ; then
15342			BASE_CFLAGS="$BASE_CFLAGS -fd"
15343			found="yes"
15344		fi
15345	fi
15346
15347
15348
15349
15350
15351# This chunk adds additional warnings that could catch undesired effects.
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365xorg_testset_save_CFLAGS="$CFLAGS"
15366
15367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15368	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15371if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15372then :
15373  printf %s "(cached) " >&6
15374else case e in #(
15375  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376/* end confdefs.h.  */
15377int i;
15378_ACEOF
15379if ac_fn_c_try_compile "$LINENO"
15380then :
15381  xorg_cv_cc_flag_unknown_warning_option=yes
15382else case e in #(
15383  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15384esac
15385fi
15386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15387esac
15388fi
15389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15392	CFLAGS="$xorg_testset_save_CFLAGS"
15393fi
15394
15395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398	fi
15399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15402if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15403then :
15404  printf %s "(cached) " >&6
15405else case e in #(
15406  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407/* end confdefs.h.  */
15408int i;
15409_ACEOF
15410if ac_fn_c_try_compile "$LINENO"
15411then :
15412  xorg_cv_cc_flag_unused_command_line_argument=yes
15413else case e in #(
15414  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15415esac
15416fi
15417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15418esac
15419fi
15420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15423	CFLAGS="$xorg_testset_save_CFLAGS"
15424fi
15425
15426found="no"
15427
15428	if test $found = "no" ; then
15429		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431		fi
15432
15433		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15435		fi
15436
15437		CFLAGS="$CFLAGS -Wunused"
15438
15439		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15440printf %s "checking if $CC supports -Wunused... " >&6; }
15441		cacheid=xorg_cv_cc_flag__Wunused
15442		if eval test \${$cacheid+y}
15443then :
15444  printf %s "(cached) " >&6
15445else case e in #(
15446  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447/* end confdefs.h.  */
15448int i;
15449int
15450main (void)
15451{
15452
15453  ;
15454  return 0;
15455}
15456_ACEOF
15457if ac_fn_c_try_link "$LINENO"
15458then :
15459  eval $cacheid=yes
15460else case e in #(
15461  e) eval $cacheid=no ;;
15462esac
15463fi
15464rm -f core conftest.err conftest.$ac_objext conftest.beam \
15465    conftest$ac_exeext conftest.$ac_ext ;;
15466esac
15467fi
15468
15469
15470		CFLAGS="$xorg_testset_save_CFLAGS"
15471
15472		eval supported=\$$cacheid
15473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474printf "%s\n" "$supported" >&6; }
15475		if test "$supported" = "yes" ; then
15476			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15477			found="yes"
15478		fi
15479	fi
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495xorg_testset_save_CFLAGS="$CFLAGS"
15496
15497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15501if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15502then :
15503  printf %s "(cached) " >&6
15504else case e in #(
15505  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506/* end confdefs.h.  */
15507int i;
15508_ACEOF
15509if ac_fn_c_try_compile "$LINENO"
15510then :
15511  xorg_cv_cc_flag_unknown_warning_option=yes
15512else case e in #(
15513  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15514esac
15515fi
15516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15517esac
15518fi
15519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15522	CFLAGS="$xorg_testset_save_CFLAGS"
15523fi
15524
15525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528	fi
15529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15532if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15533then :
15534  printf %s "(cached) " >&6
15535else case e in #(
15536  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537/* end confdefs.h.  */
15538int i;
15539_ACEOF
15540if ac_fn_c_try_compile "$LINENO"
15541then :
15542  xorg_cv_cc_flag_unused_command_line_argument=yes
15543else case e in #(
15544  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15545esac
15546fi
15547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15548esac
15549fi
15550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15553	CFLAGS="$xorg_testset_save_CFLAGS"
15554fi
15555
15556found="no"
15557
15558	if test $found = "no" ; then
15559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15561		fi
15562
15563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565		fi
15566
15567		CFLAGS="$CFLAGS -Wuninitialized"
15568
15569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15570printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15571		cacheid=xorg_cv_cc_flag__Wuninitialized
15572		if eval test \${$cacheid+y}
15573then :
15574  printf %s "(cached) " >&6
15575else case e in #(
15576  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577/* end confdefs.h.  */
15578int i;
15579int
15580main (void)
15581{
15582
15583  ;
15584  return 0;
15585}
15586_ACEOF
15587if ac_fn_c_try_link "$LINENO"
15588then :
15589  eval $cacheid=yes
15590else case e in #(
15591  e) eval $cacheid=no ;;
15592esac
15593fi
15594rm -f core conftest.err conftest.$ac_objext conftest.beam \
15595    conftest$ac_exeext conftest.$ac_ext ;;
15596esac
15597fi
15598
15599
15600		CFLAGS="$xorg_testset_save_CFLAGS"
15601
15602		eval supported=\$$cacheid
15603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15604printf "%s\n" "$supported" >&6; }
15605		if test "$supported" = "yes" ; then
15606			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15607			found="yes"
15608		fi
15609	fi
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625xorg_testset_save_CFLAGS="$CFLAGS"
15626
15627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15631if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15632then :
15633  printf %s "(cached) " >&6
15634else case e in #(
15635  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637int i;
15638_ACEOF
15639if ac_fn_c_try_compile "$LINENO"
15640then :
15641  xorg_cv_cc_flag_unknown_warning_option=yes
15642else case e in #(
15643  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15644esac
15645fi
15646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15647esac
15648fi
15649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652	CFLAGS="$xorg_testset_save_CFLAGS"
15653fi
15654
15655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658	fi
15659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15663then :
15664  printf %s "(cached) " >&6
15665else case e in #(
15666  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667/* end confdefs.h.  */
15668int i;
15669_ACEOF
15670if ac_fn_c_try_compile "$LINENO"
15671then :
15672  xorg_cv_cc_flag_unused_command_line_argument=yes
15673else case e in #(
15674  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15675esac
15676fi
15677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15678esac
15679fi
15680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15683	CFLAGS="$xorg_testset_save_CFLAGS"
15684fi
15685
15686found="no"
15687
15688	if test $found = "no" ; then
15689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15691		fi
15692
15693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15695		fi
15696
15697		CFLAGS="$CFLAGS -Wshadow"
15698
15699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15700printf %s "checking if $CC supports -Wshadow... " >&6; }
15701		cacheid=xorg_cv_cc_flag__Wshadow
15702		if eval test \${$cacheid+y}
15703then :
15704  printf %s "(cached) " >&6
15705else case e in #(
15706  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707/* end confdefs.h.  */
15708int i;
15709int
15710main (void)
15711{
15712
15713  ;
15714  return 0;
15715}
15716_ACEOF
15717if ac_fn_c_try_link "$LINENO"
15718then :
15719  eval $cacheid=yes
15720else case e in #(
15721  e) eval $cacheid=no ;;
15722esac
15723fi
15724rm -f core conftest.err conftest.$ac_objext conftest.beam \
15725    conftest$ac_exeext conftest.$ac_ext ;;
15726esac
15727fi
15728
15729
15730		CFLAGS="$xorg_testset_save_CFLAGS"
15731
15732		eval supported=\$$cacheid
15733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15734printf "%s\n" "$supported" >&6; }
15735		if test "$supported" = "yes" ; then
15736			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15737			found="yes"
15738		fi
15739	fi
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755xorg_testset_save_CFLAGS="$CFLAGS"
15756
15757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15758	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15761if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15762then :
15763  printf %s "(cached) " >&6
15764else case e in #(
15765  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766/* end confdefs.h.  */
15767int i;
15768_ACEOF
15769if ac_fn_c_try_compile "$LINENO"
15770then :
15771  xorg_cv_cc_flag_unknown_warning_option=yes
15772else case e in #(
15773  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15774esac
15775fi
15776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15777esac
15778fi
15779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15782	CFLAGS="$xorg_testset_save_CFLAGS"
15783fi
15784
15785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788	fi
15789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15790	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15792if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15793then :
15794  printf %s "(cached) " >&6
15795else case e in #(
15796  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15797/* end confdefs.h.  */
15798int i;
15799_ACEOF
15800if ac_fn_c_try_compile "$LINENO"
15801then :
15802  xorg_cv_cc_flag_unused_command_line_argument=yes
15803else case e in #(
15804  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15805esac
15806fi
15807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15808esac
15809fi
15810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15812	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15813	CFLAGS="$xorg_testset_save_CFLAGS"
15814fi
15815
15816found="no"
15817
15818	if test $found = "no" ; then
15819		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15820			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15821		fi
15822
15823		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15824			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825		fi
15826
15827		CFLAGS="$CFLAGS -Wmissing-noreturn"
15828
15829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15830printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15831		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15832		if eval test \${$cacheid+y}
15833then :
15834  printf %s "(cached) " >&6
15835else case e in #(
15836  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837/* end confdefs.h.  */
15838int i;
15839int
15840main (void)
15841{
15842
15843  ;
15844  return 0;
15845}
15846_ACEOF
15847if ac_fn_c_try_link "$LINENO"
15848then :
15849  eval $cacheid=yes
15850else case e in #(
15851  e) eval $cacheid=no ;;
15852esac
15853fi
15854rm -f core conftest.err conftest.$ac_objext conftest.beam \
15855    conftest$ac_exeext conftest.$ac_ext ;;
15856esac
15857fi
15858
15859
15860		CFLAGS="$xorg_testset_save_CFLAGS"
15861
15862		eval supported=\$$cacheid
15863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15864printf "%s\n" "$supported" >&6; }
15865		if test "$supported" = "yes" ; then
15866			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15867			found="yes"
15868		fi
15869	fi
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885xorg_testset_save_CFLAGS="$CFLAGS"
15886
15887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15889	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15891if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15892then :
15893  printf %s "(cached) " >&6
15894else case e in #(
15895  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896/* end confdefs.h.  */
15897int i;
15898_ACEOF
15899if ac_fn_c_try_compile "$LINENO"
15900then :
15901  xorg_cv_cc_flag_unknown_warning_option=yes
15902else case e in #(
15903  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15904esac
15905fi
15906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15907esac
15908fi
15909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15912	CFLAGS="$xorg_testset_save_CFLAGS"
15913fi
15914
15915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15918	fi
15919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15922if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15923then :
15924  printf %s "(cached) " >&6
15925else case e in #(
15926  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927/* end confdefs.h.  */
15928int i;
15929_ACEOF
15930if ac_fn_c_try_compile "$LINENO"
15931then :
15932  xorg_cv_cc_flag_unused_command_line_argument=yes
15933else case e in #(
15934  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15935esac
15936fi
15937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15938esac
15939fi
15940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15943	CFLAGS="$xorg_testset_save_CFLAGS"
15944fi
15945
15946found="no"
15947
15948	if test $found = "no" ; then
15949		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15951		fi
15952
15953		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15955		fi
15956
15957		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15958
15959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15960printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15961		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15962		if eval test \${$cacheid+y}
15963then :
15964  printf %s "(cached) " >&6
15965else case e in #(
15966  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967/* end confdefs.h.  */
15968int i;
15969int
15970main (void)
15971{
15972
15973  ;
15974  return 0;
15975}
15976_ACEOF
15977if ac_fn_c_try_link "$LINENO"
15978then :
15979  eval $cacheid=yes
15980else case e in #(
15981  e) eval $cacheid=no ;;
15982esac
15983fi
15984rm -f core conftest.err conftest.$ac_objext conftest.beam \
15985    conftest$ac_exeext conftest.$ac_ext ;;
15986esac
15987fi
15988
15989
15990		CFLAGS="$xorg_testset_save_CFLAGS"
15991
15992		eval supported=\$$cacheid
15993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15994printf "%s\n" "$supported" >&6; }
15995		if test "$supported" = "yes" ; then
15996			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15997			found="yes"
15998		fi
15999	fi
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015xorg_testset_save_CFLAGS="$CFLAGS"
16016
16017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16021if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16022then :
16023  printf %s "(cached) " >&6
16024else case e in #(
16025  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026/* end confdefs.h.  */
16027int i;
16028_ACEOF
16029if ac_fn_c_try_compile "$LINENO"
16030then :
16031  xorg_cv_cc_flag_unknown_warning_option=yes
16032else case e in #(
16033  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16034esac
16035fi
16036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16037esac
16038fi
16039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16042	CFLAGS="$xorg_testset_save_CFLAGS"
16043fi
16044
16045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16048	fi
16049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16053then :
16054  printf %s "(cached) " >&6
16055else case e in #(
16056  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057/* end confdefs.h.  */
16058int i;
16059_ACEOF
16060if ac_fn_c_try_compile "$LINENO"
16061then :
16062  xorg_cv_cc_flag_unused_command_line_argument=yes
16063else case e in #(
16064  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16065esac
16066fi
16067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16068esac
16069fi
16070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16073	CFLAGS="$xorg_testset_save_CFLAGS"
16074fi
16075
16076found="no"
16077
16078	if test $found = "no" ; then
16079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16081		fi
16082
16083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16085		fi
16086
16087		CFLAGS="$CFLAGS -Wredundant-decls"
16088
16089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16090printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16091		cacheid=xorg_cv_cc_flag__Wredundant_decls
16092		if eval test \${$cacheid+y}
16093then :
16094  printf %s "(cached) " >&6
16095else case e in #(
16096  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097/* end confdefs.h.  */
16098int i;
16099int
16100main (void)
16101{
16102
16103  ;
16104  return 0;
16105}
16106_ACEOF
16107if ac_fn_c_try_link "$LINENO"
16108then :
16109  eval $cacheid=yes
16110else case e in #(
16111  e) eval $cacheid=no ;;
16112esac
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.beam \
16115    conftest$ac_exeext conftest.$ac_ext ;;
16116esac
16117fi
16118
16119
16120		CFLAGS="$xorg_testset_save_CFLAGS"
16121
16122		eval supported=\$$cacheid
16123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16124printf "%s\n" "$supported" >&6; }
16125		if test "$supported" = "yes" ; then
16126			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16127			found="yes"
16128		fi
16129	fi
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145xorg_testset_save_CFLAGS="$CFLAGS"
16146
16147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16151if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16152then :
16153  printf %s "(cached) " >&6
16154else case e in #(
16155  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157int i;
16158_ACEOF
16159if ac_fn_c_try_compile "$LINENO"
16160then :
16161  xorg_cv_cc_flag_unknown_warning_option=yes
16162else case e in #(
16163  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16164esac
16165fi
16166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16167esac
16168fi
16169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16172	CFLAGS="$xorg_testset_save_CFLAGS"
16173fi
16174
16175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178	fi
16179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16180	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16182if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16183then :
16184  printf %s "(cached) " >&6
16185else case e in #(
16186  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187/* end confdefs.h.  */
16188int i;
16189_ACEOF
16190if ac_fn_c_try_compile "$LINENO"
16191then :
16192  xorg_cv_cc_flag_unused_command_line_argument=yes
16193else case e in #(
16194  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16195esac
16196fi
16197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16198esac
16199fi
16200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16203	CFLAGS="$xorg_testset_save_CFLAGS"
16204fi
16205
16206found="no"
16207
16208	if test $found = "no" ; then
16209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16211		fi
16212
16213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16215		fi
16216
16217		CFLAGS="$CFLAGS -Wlogical-op"
16218
16219		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16220printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16221		cacheid=xorg_cv_cc_flag__Wlogical_op
16222		if eval test \${$cacheid+y}
16223then :
16224  printf %s "(cached) " >&6
16225else case e in #(
16226  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16227/* end confdefs.h.  */
16228int i;
16229int
16230main (void)
16231{
16232
16233  ;
16234  return 0;
16235}
16236_ACEOF
16237if ac_fn_c_try_link "$LINENO"
16238then :
16239  eval $cacheid=yes
16240else case e in #(
16241  e) eval $cacheid=no ;;
16242esac
16243fi
16244rm -f core conftest.err conftest.$ac_objext conftest.beam \
16245    conftest$ac_exeext conftest.$ac_ext ;;
16246esac
16247fi
16248
16249
16250		CFLAGS="$xorg_testset_save_CFLAGS"
16251
16252		eval supported=\$$cacheid
16253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16254printf "%s\n" "$supported" >&6; }
16255		if test "$supported" = "yes" ; then
16256			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16257			found="yes"
16258		fi
16259	fi
16260
16261
16262
16263# These are currently disabled because they are noisy.  They will be enabled
16264# in the future once the codebase is sufficiently modernized to silence
16265# them.  For now, I don't want them to drown out the other warnings.
16266# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16267# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16268# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16269
16270# Turn some warnings into errors, so we don't accidentally get successful builds
16271# when there are problems that should be fixed.
16272
16273if test "x$SELECTIVE_WERROR" = "xyes" ; then
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287xorg_testset_save_CFLAGS="$CFLAGS"
16288
16289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16291	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16292printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16293if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16294then :
16295  printf %s "(cached) " >&6
16296else case e in #(
16297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16298/* end confdefs.h.  */
16299int i;
16300_ACEOF
16301if ac_fn_c_try_compile "$LINENO"
16302then :
16303  xorg_cv_cc_flag_unknown_warning_option=yes
16304else case e in #(
16305  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16306esac
16307fi
16308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16309esac
16310fi
16311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16314	CFLAGS="$xorg_testset_save_CFLAGS"
16315fi
16316
16317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16320	fi
16321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16324if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16325then :
16326  printf %s "(cached) " >&6
16327else case e in #(
16328  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329/* end confdefs.h.  */
16330int i;
16331_ACEOF
16332if ac_fn_c_try_compile "$LINENO"
16333then :
16334  xorg_cv_cc_flag_unused_command_line_argument=yes
16335else case e in #(
16336  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16337esac
16338fi
16339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16340esac
16341fi
16342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16343printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16345	CFLAGS="$xorg_testset_save_CFLAGS"
16346fi
16347
16348found="no"
16349
16350	if test $found = "no" ; then
16351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16353		fi
16354
16355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16357		fi
16358
16359		CFLAGS="$CFLAGS -Werror=implicit"
16360
16361		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16362printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16363		cacheid=xorg_cv_cc_flag__Werror_implicit
16364		if eval test \${$cacheid+y}
16365then :
16366  printf %s "(cached) " >&6
16367else case e in #(
16368  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369/* end confdefs.h.  */
16370int i;
16371int
16372main (void)
16373{
16374
16375  ;
16376  return 0;
16377}
16378_ACEOF
16379if ac_fn_c_try_link "$LINENO"
16380then :
16381  eval $cacheid=yes
16382else case e in #(
16383  e) eval $cacheid=no ;;
16384esac
16385fi
16386rm -f core conftest.err conftest.$ac_objext conftest.beam \
16387    conftest$ac_exeext conftest.$ac_ext ;;
16388esac
16389fi
16390
16391
16392		CFLAGS="$xorg_testset_save_CFLAGS"
16393
16394		eval supported=\$$cacheid
16395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16396printf "%s\n" "$supported" >&6; }
16397		if test "$supported" = "yes" ; then
16398			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16399			found="yes"
16400		fi
16401	fi
16402
16403	if test $found = "no" ; then
16404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16406		fi
16407
16408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16410		fi
16411
16412		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16413
16414		{ 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
16415printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16416		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16417		if eval test \${$cacheid+y}
16418then :
16419  printf %s "(cached) " >&6
16420else case e in #(
16421  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422/* end confdefs.h.  */
16423int i;
16424int
16425main (void)
16426{
16427
16428  ;
16429  return 0;
16430}
16431_ACEOF
16432if ac_fn_c_try_link "$LINENO"
16433then :
16434  eval $cacheid=yes
16435else case e in #(
16436  e) eval $cacheid=no ;;
16437esac
16438fi
16439rm -f core conftest.err conftest.$ac_objext conftest.beam \
16440    conftest$ac_exeext conftest.$ac_ext ;;
16441esac
16442fi
16443
16444
16445		CFLAGS="$xorg_testset_save_CFLAGS"
16446
16447		eval supported=\$$cacheid
16448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16449printf "%s\n" "$supported" >&6; }
16450		if test "$supported" = "yes" ; then
16451			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16452			found="yes"
16453		fi
16454	fi
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470xorg_testset_save_CFLAGS="$CFLAGS"
16471
16472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16476if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16477then :
16478  printf %s "(cached) " >&6
16479else case e in #(
16480  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481/* end confdefs.h.  */
16482int i;
16483_ACEOF
16484if ac_fn_c_try_compile "$LINENO"
16485then :
16486  xorg_cv_cc_flag_unknown_warning_option=yes
16487else case e in #(
16488  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16489esac
16490fi
16491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16492esac
16493fi
16494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16497	CFLAGS="$xorg_testset_save_CFLAGS"
16498fi
16499
16500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16503	fi
16504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16507if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16508then :
16509  printf %s "(cached) " >&6
16510else case e in #(
16511  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512/* end confdefs.h.  */
16513int i;
16514_ACEOF
16515if ac_fn_c_try_compile "$LINENO"
16516then :
16517  xorg_cv_cc_flag_unused_command_line_argument=yes
16518else case e in #(
16519  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16520esac
16521fi
16522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16523esac
16524fi
16525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16527	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16528	CFLAGS="$xorg_testset_save_CFLAGS"
16529fi
16530
16531found="no"
16532
16533	if test $found = "no" ; then
16534		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16535			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16536		fi
16537
16538		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16539			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16540		fi
16541
16542		CFLAGS="$CFLAGS -Werror=nonnull"
16543
16544		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16545printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16546		cacheid=xorg_cv_cc_flag__Werror_nonnull
16547		if eval test \${$cacheid+y}
16548then :
16549  printf %s "(cached) " >&6
16550else case e in #(
16551  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552/* end confdefs.h.  */
16553int i;
16554int
16555main (void)
16556{
16557
16558  ;
16559  return 0;
16560}
16561_ACEOF
16562if ac_fn_c_try_link "$LINENO"
16563then :
16564  eval $cacheid=yes
16565else case e in #(
16566  e) eval $cacheid=no ;;
16567esac
16568fi
16569rm -f core conftest.err conftest.$ac_objext conftest.beam \
16570    conftest$ac_exeext conftest.$ac_ext ;;
16571esac
16572fi
16573
16574
16575		CFLAGS="$xorg_testset_save_CFLAGS"
16576
16577		eval supported=\$$cacheid
16578		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16579printf "%s\n" "$supported" >&6; }
16580		if test "$supported" = "yes" ; then
16581			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16582			found="yes"
16583		fi
16584	fi
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600xorg_testset_save_CFLAGS="$CFLAGS"
16601
16602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16603	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16604	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16606if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16607then :
16608  printf %s "(cached) " >&6
16609else case e in #(
16610  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611/* end confdefs.h.  */
16612int i;
16613_ACEOF
16614if ac_fn_c_try_compile "$LINENO"
16615then :
16616  xorg_cv_cc_flag_unknown_warning_option=yes
16617else case e in #(
16618  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16619esac
16620fi
16621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16622esac
16623fi
16624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16627	CFLAGS="$xorg_testset_save_CFLAGS"
16628fi
16629
16630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16633	fi
16634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16635	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16637if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16638then :
16639  printf %s "(cached) " >&6
16640else case e in #(
16641  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642/* end confdefs.h.  */
16643int i;
16644_ACEOF
16645if ac_fn_c_try_compile "$LINENO"
16646then :
16647  xorg_cv_cc_flag_unused_command_line_argument=yes
16648else case e in #(
16649  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16650esac
16651fi
16652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16653esac
16654fi
16655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16656printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16657	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16658	CFLAGS="$xorg_testset_save_CFLAGS"
16659fi
16660
16661found="no"
16662
16663	if test $found = "no" ; then
16664		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16665			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16666		fi
16667
16668		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16669			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16670		fi
16671
16672		CFLAGS="$CFLAGS -Werror=init-self"
16673
16674		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16675printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16676		cacheid=xorg_cv_cc_flag__Werror_init_self
16677		if eval test \${$cacheid+y}
16678then :
16679  printf %s "(cached) " >&6
16680else case e in #(
16681  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682/* end confdefs.h.  */
16683int i;
16684int
16685main (void)
16686{
16687
16688  ;
16689  return 0;
16690}
16691_ACEOF
16692if ac_fn_c_try_link "$LINENO"
16693then :
16694  eval $cacheid=yes
16695else case e in #(
16696  e) eval $cacheid=no ;;
16697esac
16698fi
16699rm -f core conftest.err conftest.$ac_objext conftest.beam \
16700    conftest$ac_exeext conftest.$ac_ext ;;
16701esac
16702fi
16703
16704
16705		CFLAGS="$xorg_testset_save_CFLAGS"
16706
16707		eval supported=\$$cacheid
16708		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16709printf "%s\n" "$supported" >&6; }
16710		if test "$supported" = "yes" ; then
16711			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16712			found="yes"
16713		fi
16714	fi
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730xorg_testset_save_CFLAGS="$CFLAGS"
16731
16732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16733	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16734	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16735printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16736if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16737then :
16738  printf %s "(cached) " >&6
16739else case e in #(
16740  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h.  */
16742int i;
16743_ACEOF
16744if ac_fn_c_try_compile "$LINENO"
16745then :
16746  xorg_cv_cc_flag_unknown_warning_option=yes
16747else case e in #(
16748  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16749esac
16750fi
16751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16752esac
16753fi
16754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16757	CFLAGS="$xorg_testset_save_CFLAGS"
16758fi
16759
16760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16763	fi
16764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16765	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16767if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16768then :
16769  printf %s "(cached) " >&6
16770else case e in #(
16771  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772/* end confdefs.h.  */
16773int i;
16774_ACEOF
16775if ac_fn_c_try_compile "$LINENO"
16776then :
16777  xorg_cv_cc_flag_unused_command_line_argument=yes
16778else case e in #(
16779  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16780esac
16781fi
16782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16783esac
16784fi
16785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16788	CFLAGS="$xorg_testset_save_CFLAGS"
16789fi
16790
16791found="no"
16792
16793	if test $found = "no" ; then
16794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16796		fi
16797
16798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16800		fi
16801
16802		CFLAGS="$CFLAGS -Werror=main"
16803
16804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16805printf %s "checking if $CC supports -Werror=main... " >&6; }
16806		cacheid=xorg_cv_cc_flag__Werror_main
16807		if eval test \${$cacheid+y}
16808then :
16809  printf %s "(cached) " >&6
16810else case e in #(
16811  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812/* end confdefs.h.  */
16813int i;
16814int
16815main (void)
16816{
16817
16818  ;
16819  return 0;
16820}
16821_ACEOF
16822if ac_fn_c_try_link "$LINENO"
16823then :
16824  eval $cacheid=yes
16825else case e in #(
16826  e) eval $cacheid=no ;;
16827esac
16828fi
16829rm -f core conftest.err conftest.$ac_objext conftest.beam \
16830    conftest$ac_exeext conftest.$ac_ext ;;
16831esac
16832fi
16833
16834
16835		CFLAGS="$xorg_testset_save_CFLAGS"
16836
16837		eval supported=\$$cacheid
16838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16839printf "%s\n" "$supported" >&6; }
16840		if test "$supported" = "yes" ; then
16841			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16842			found="yes"
16843		fi
16844	fi
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860xorg_testset_save_CFLAGS="$CFLAGS"
16861
16862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16864	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16866if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16867then :
16868  printf %s "(cached) " >&6
16869else case e in #(
16870  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16871/* end confdefs.h.  */
16872int i;
16873_ACEOF
16874if ac_fn_c_try_compile "$LINENO"
16875then :
16876  xorg_cv_cc_flag_unknown_warning_option=yes
16877else case e in #(
16878  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16879esac
16880fi
16881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16882esac
16883fi
16884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16887	CFLAGS="$xorg_testset_save_CFLAGS"
16888fi
16889
16890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16893	fi
16894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16895	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16897if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16898then :
16899  printf %s "(cached) " >&6
16900else case e in #(
16901  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h.  */
16903int i;
16904_ACEOF
16905if ac_fn_c_try_compile "$LINENO"
16906then :
16907  xorg_cv_cc_flag_unused_command_line_argument=yes
16908else case e in #(
16909  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16910esac
16911fi
16912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16913esac
16914fi
16915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16916printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16918	CFLAGS="$xorg_testset_save_CFLAGS"
16919fi
16920
16921found="no"
16922
16923	if test $found = "no" ; then
16924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16926		fi
16927
16928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16930		fi
16931
16932		CFLAGS="$CFLAGS -Werror=missing-braces"
16933
16934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16935printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16936		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16937		if eval test \${$cacheid+y}
16938then :
16939  printf %s "(cached) " >&6
16940else case e in #(
16941  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16942/* end confdefs.h.  */
16943int i;
16944int
16945main (void)
16946{
16947
16948  ;
16949  return 0;
16950}
16951_ACEOF
16952if ac_fn_c_try_link "$LINENO"
16953then :
16954  eval $cacheid=yes
16955else case e in #(
16956  e) eval $cacheid=no ;;
16957esac
16958fi
16959rm -f core conftest.err conftest.$ac_objext conftest.beam \
16960    conftest$ac_exeext conftest.$ac_ext ;;
16961esac
16962fi
16963
16964
16965		CFLAGS="$xorg_testset_save_CFLAGS"
16966
16967		eval supported=\$$cacheid
16968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16969printf "%s\n" "$supported" >&6; }
16970		if test "$supported" = "yes" ; then
16971			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16972			found="yes"
16973		fi
16974	fi
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990xorg_testset_save_CFLAGS="$CFLAGS"
16991
16992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16996if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16997then :
16998  printf %s "(cached) " >&6
16999else case e in #(
17000  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001/* end confdefs.h.  */
17002int i;
17003_ACEOF
17004if ac_fn_c_try_compile "$LINENO"
17005then :
17006  xorg_cv_cc_flag_unknown_warning_option=yes
17007else case e in #(
17008  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17009esac
17010fi
17011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17012esac
17013fi
17014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17015printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17016	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17017	CFLAGS="$xorg_testset_save_CFLAGS"
17018fi
17019
17020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17021	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17022		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17023	fi
17024	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17025	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17026printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17027if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17028then :
17029  printf %s "(cached) " >&6
17030else case e in #(
17031  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032/* end confdefs.h.  */
17033int i;
17034_ACEOF
17035if ac_fn_c_try_compile "$LINENO"
17036then :
17037  xorg_cv_cc_flag_unused_command_line_argument=yes
17038else case e in #(
17039  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17040esac
17041fi
17042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17043esac
17044fi
17045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17048	CFLAGS="$xorg_testset_save_CFLAGS"
17049fi
17050
17051found="no"
17052
17053	if test $found = "no" ; then
17054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17056		fi
17057
17058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17060		fi
17061
17062		CFLAGS="$CFLAGS -Werror=sequence-point"
17063
17064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17065printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17066		cacheid=xorg_cv_cc_flag__Werror_sequence_point
17067		if eval test \${$cacheid+y}
17068then :
17069  printf %s "(cached) " >&6
17070else case e in #(
17071  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072/* end confdefs.h.  */
17073int i;
17074int
17075main (void)
17076{
17077
17078  ;
17079  return 0;
17080}
17081_ACEOF
17082if ac_fn_c_try_link "$LINENO"
17083then :
17084  eval $cacheid=yes
17085else case e in #(
17086  e) eval $cacheid=no ;;
17087esac
17088fi
17089rm -f core conftest.err conftest.$ac_objext conftest.beam \
17090    conftest$ac_exeext conftest.$ac_ext ;;
17091esac
17092fi
17093
17094
17095		CFLAGS="$xorg_testset_save_CFLAGS"
17096
17097		eval supported=\$$cacheid
17098		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17099printf "%s\n" "$supported" >&6; }
17100		if test "$supported" = "yes" ; then
17101			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17102			found="yes"
17103		fi
17104	fi
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120xorg_testset_save_CFLAGS="$CFLAGS"
17121
17122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17126if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17127then :
17128  printf %s "(cached) " >&6
17129else case e in #(
17130  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131/* end confdefs.h.  */
17132int i;
17133_ACEOF
17134if ac_fn_c_try_compile "$LINENO"
17135then :
17136  xorg_cv_cc_flag_unknown_warning_option=yes
17137else case e in #(
17138  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17139esac
17140fi
17141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17142esac
17143fi
17144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17146	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17147	CFLAGS="$xorg_testset_save_CFLAGS"
17148fi
17149
17150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17151	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17153	fi
17154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17155	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17157if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17158then :
17159  printf %s "(cached) " >&6
17160else case e in #(
17161  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162/* end confdefs.h.  */
17163int i;
17164_ACEOF
17165if ac_fn_c_try_compile "$LINENO"
17166then :
17167  xorg_cv_cc_flag_unused_command_line_argument=yes
17168else case e in #(
17169  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17170esac
17171fi
17172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17173esac
17174fi
17175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17176printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17177	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17178	CFLAGS="$xorg_testset_save_CFLAGS"
17179fi
17180
17181found="no"
17182
17183	if test $found = "no" ; then
17184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186		fi
17187
17188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17190		fi
17191
17192		CFLAGS="$CFLAGS -Werror=return-type"
17193
17194		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17195printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17196		cacheid=xorg_cv_cc_flag__Werror_return_type
17197		if eval test \${$cacheid+y}
17198then :
17199  printf %s "(cached) " >&6
17200else case e in #(
17201  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202/* end confdefs.h.  */
17203int i;
17204int
17205main (void)
17206{
17207
17208  ;
17209  return 0;
17210}
17211_ACEOF
17212if ac_fn_c_try_link "$LINENO"
17213then :
17214  eval $cacheid=yes
17215else case e in #(
17216  e) eval $cacheid=no ;;
17217esac
17218fi
17219rm -f core conftest.err conftest.$ac_objext conftest.beam \
17220    conftest$ac_exeext conftest.$ac_ext ;;
17221esac
17222fi
17223
17224
17225		CFLAGS="$xorg_testset_save_CFLAGS"
17226
17227		eval supported=\$$cacheid
17228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17229printf "%s\n" "$supported" >&6; }
17230		if test "$supported" = "yes" ; then
17231			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17232			found="yes"
17233		fi
17234	fi
17235
17236	if test $found = "no" ; then
17237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17239		fi
17240
17241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17243		fi
17244
17245		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17246
17247		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17248printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17249		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17250		if eval test \${$cacheid+y}
17251then :
17252  printf %s "(cached) " >&6
17253else case e in #(
17254  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255/* end confdefs.h.  */
17256int i;
17257int
17258main (void)
17259{
17260
17261  ;
17262  return 0;
17263}
17264_ACEOF
17265if ac_fn_c_try_link "$LINENO"
17266then :
17267  eval $cacheid=yes
17268else case e in #(
17269  e) eval $cacheid=no ;;
17270esac
17271fi
17272rm -f core conftest.err conftest.$ac_objext conftest.beam \
17273    conftest$ac_exeext conftest.$ac_ext ;;
17274esac
17275fi
17276
17277
17278		CFLAGS="$xorg_testset_save_CFLAGS"
17279
17280		eval supported=\$$cacheid
17281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17282printf "%s\n" "$supported" >&6; }
17283		if test "$supported" = "yes" ; then
17284			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17285			found="yes"
17286		fi
17287	fi
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303xorg_testset_save_CFLAGS="$CFLAGS"
17304
17305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17308printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17309if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17310then :
17311  printf %s "(cached) " >&6
17312else case e in #(
17313  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314/* end confdefs.h.  */
17315int i;
17316_ACEOF
17317if ac_fn_c_try_compile "$LINENO"
17318then :
17319  xorg_cv_cc_flag_unknown_warning_option=yes
17320else case e in #(
17321  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17322esac
17323fi
17324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17325esac
17326fi
17327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17330	CFLAGS="$xorg_testset_save_CFLAGS"
17331fi
17332
17333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17336	fi
17337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17340if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17341then :
17342  printf %s "(cached) " >&6
17343else case e in #(
17344  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h.  */
17346int i;
17347_ACEOF
17348if ac_fn_c_try_compile "$LINENO"
17349then :
17350  xorg_cv_cc_flag_unused_command_line_argument=yes
17351else case e in #(
17352  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17353esac
17354fi
17355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17356esac
17357fi
17358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17359printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17361	CFLAGS="$xorg_testset_save_CFLAGS"
17362fi
17363
17364found="no"
17365
17366	if test $found = "no" ; then
17367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17369		fi
17370
17371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17373		fi
17374
17375		CFLAGS="$CFLAGS -Werror=trigraphs"
17376
17377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17378printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17379		cacheid=xorg_cv_cc_flag__Werror_trigraphs
17380		if eval test \${$cacheid+y}
17381then :
17382  printf %s "(cached) " >&6
17383else case e in #(
17384  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385/* end confdefs.h.  */
17386int i;
17387int
17388main (void)
17389{
17390
17391  ;
17392  return 0;
17393}
17394_ACEOF
17395if ac_fn_c_try_link "$LINENO"
17396then :
17397  eval $cacheid=yes
17398else case e in #(
17399  e) eval $cacheid=no ;;
17400esac
17401fi
17402rm -f core conftest.err conftest.$ac_objext conftest.beam \
17403    conftest$ac_exeext conftest.$ac_ext ;;
17404esac
17405fi
17406
17407
17408		CFLAGS="$xorg_testset_save_CFLAGS"
17409
17410		eval supported=\$$cacheid
17411		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17412printf "%s\n" "$supported" >&6; }
17413		if test "$supported" = "yes" ; then
17414			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17415			found="yes"
17416		fi
17417	fi
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433xorg_testset_save_CFLAGS="$CFLAGS"
17434
17435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17436	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17437	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17438printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17439if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17440then :
17441  printf %s "(cached) " >&6
17442else case e in #(
17443  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444/* end confdefs.h.  */
17445int i;
17446_ACEOF
17447if ac_fn_c_try_compile "$LINENO"
17448then :
17449  xorg_cv_cc_flag_unknown_warning_option=yes
17450else case e in #(
17451  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17452esac
17453fi
17454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17455esac
17456fi
17457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17460	CFLAGS="$xorg_testset_save_CFLAGS"
17461fi
17462
17463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17466	fi
17467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17471then :
17472  printf %s "(cached) " >&6
17473else case e in #(
17474  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475/* end confdefs.h.  */
17476int i;
17477_ACEOF
17478if ac_fn_c_try_compile "$LINENO"
17479then :
17480  xorg_cv_cc_flag_unused_command_line_argument=yes
17481else case e in #(
17482  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17483esac
17484fi
17485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17486esac
17487fi
17488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17489printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17491	CFLAGS="$xorg_testset_save_CFLAGS"
17492fi
17493
17494found="no"
17495
17496	if test $found = "no" ; then
17497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17499		fi
17500
17501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17503		fi
17504
17505		CFLAGS="$CFLAGS -Werror=array-bounds"
17506
17507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17508printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17509		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17510		if eval test \${$cacheid+y}
17511then :
17512  printf %s "(cached) " >&6
17513else case e in #(
17514  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515/* end confdefs.h.  */
17516int i;
17517int
17518main (void)
17519{
17520
17521  ;
17522  return 0;
17523}
17524_ACEOF
17525if ac_fn_c_try_link "$LINENO"
17526then :
17527  eval $cacheid=yes
17528else case e in #(
17529  e) eval $cacheid=no ;;
17530esac
17531fi
17532rm -f core conftest.err conftest.$ac_objext conftest.beam \
17533    conftest$ac_exeext conftest.$ac_ext ;;
17534esac
17535fi
17536
17537
17538		CFLAGS="$xorg_testset_save_CFLAGS"
17539
17540		eval supported=\$$cacheid
17541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17542printf "%s\n" "$supported" >&6; }
17543		if test "$supported" = "yes" ; then
17544			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17545			found="yes"
17546		fi
17547	fi
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563xorg_testset_save_CFLAGS="$CFLAGS"
17564
17565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17569if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17570then :
17571  printf %s "(cached) " >&6
17572else case e in #(
17573  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574/* end confdefs.h.  */
17575int i;
17576_ACEOF
17577if ac_fn_c_try_compile "$LINENO"
17578then :
17579  xorg_cv_cc_flag_unknown_warning_option=yes
17580else case e in #(
17581  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17582esac
17583fi
17584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17585esac
17586fi
17587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17588printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17590	CFLAGS="$xorg_testset_save_CFLAGS"
17591fi
17592
17593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17596	fi
17597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17599printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17600if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17601then :
17602  printf %s "(cached) " >&6
17603else case e in #(
17604  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17605/* end confdefs.h.  */
17606int i;
17607_ACEOF
17608if ac_fn_c_try_compile "$LINENO"
17609then :
17610  xorg_cv_cc_flag_unused_command_line_argument=yes
17611else case e in #(
17612  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17613esac
17614fi
17615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17616esac
17617fi
17618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17620	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17621	CFLAGS="$xorg_testset_save_CFLAGS"
17622fi
17623
17624found="no"
17625
17626	if test $found = "no" ; then
17627		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17628			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17629		fi
17630
17631		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17632			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17633		fi
17634
17635		CFLAGS="$CFLAGS -Werror=write-strings"
17636
17637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17638printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17639		cacheid=xorg_cv_cc_flag__Werror_write_strings
17640		if eval test \${$cacheid+y}
17641then :
17642  printf %s "(cached) " >&6
17643else case e in #(
17644  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645/* end confdefs.h.  */
17646int i;
17647int
17648main (void)
17649{
17650
17651  ;
17652  return 0;
17653}
17654_ACEOF
17655if ac_fn_c_try_link "$LINENO"
17656then :
17657  eval $cacheid=yes
17658else case e in #(
17659  e) eval $cacheid=no ;;
17660esac
17661fi
17662rm -f core conftest.err conftest.$ac_objext conftest.beam \
17663    conftest$ac_exeext conftest.$ac_ext ;;
17664esac
17665fi
17666
17667
17668		CFLAGS="$xorg_testset_save_CFLAGS"
17669
17670		eval supported=\$$cacheid
17671		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17672printf "%s\n" "$supported" >&6; }
17673		if test "$supported" = "yes" ; then
17674			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17675			found="yes"
17676		fi
17677	fi
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693xorg_testset_save_CFLAGS="$CFLAGS"
17694
17695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17696	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17697	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17699if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17700then :
17701  printf %s "(cached) " >&6
17702else case e in #(
17703  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704/* end confdefs.h.  */
17705int i;
17706_ACEOF
17707if ac_fn_c_try_compile "$LINENO"
17708then :
17709  xorg_cv_cc_flag_unknown_warning_option=yes
17710else case e in #(
17711  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17712esac
17713fi
17714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17715esac
17716fi
17717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17720	CFLAGS="$xorg_testset_save_CFLAGS"
17721fi
17722
17723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17726	fi
17727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17728	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17730if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17731then :
17732  printf %s "(cached) " >&6
17733else case e in #(
17734  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735/* end confdefs.h.  */
17736int i;
17737_ACEOF
17738if ac_fn_c_try_compile "$LINENO"
17739then :
17740  xorg_cv_cc_flag_unused_command_line_argument=yes
17741else case e in #(
17742  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17743esac
17744fi
17745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17746esac
17747fi
17748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17751	CFLAGS="$xorg_testset_save_CFLAGS"
17752fi
17753
17754found="no"
17755
17756	if test $found = "no" ; then
17757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17759		fi
17760
17761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17763		fi
17764
17765		CFLAGS="$CFLAGS -Werror=address"
17766
17767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17768printf %s "checking if $CC supports -Werror=address... " >&6; }
17769		cacheid=xorg_cv_cc_flag__Werror_address
17770		if eval test \${$cacheid+y}
17771then :
17772  printf %s "(cached) " >&6
17773else case e in #(
17774  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775/* end confdefs.h.  */
17776int i;
17777int
17778main (void)
17779{
17780
17781  ;
17782  return 0;
17783}
17784_ACEOF
17785if ac_fn_c_try_link "$LINENO"
17786then :
17787  eval $cacheid=yes
17788else case e in #(
17789  e) eval $cacheid=no ;;
17790esac
17791fi
17792rm -f core conftest.err conftest.$ac_objext conftest.beam \
17793    conftest$ac_exeext conftest.$ac_ext ;;
17794esac
17795fi
17796
17797
17798		CFLAGS="$xorg_testset_save_CFLAGS"
17799
17800		eval supported=\$$cacheid
17801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17802printf "%s\n" "$supported" >&6; }
17803		if test "$supported" = "yes" ; then
17804			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17805			found="yes"
17806		fi
17807	fi
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823xorg_testset_save_CFLAGS="$CFLAGS"
17824
17825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17829if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17830then :
17831  printf %s "(cached) " >&6
17832else case e in #(
17833  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834/* end confdefs.h.  */
17835int i;
17836_ACEOF
17837if ac_fn_c_try_compile "$LINENO"
17838then :
17839  xorg_cv_cc_flag_unknown_warning_option=yes
17840else case e in #(
17841  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17842esac
17843fi
17844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17845esac
17846fi
17847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17848printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17850	CFLAGS="$xorg_testset_save_CFLAGS"
17851fi
17852
17853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17856	fi
17857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17858	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17859printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17860if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17861then :
17862  printf %s "(cached) " >&6
17863else case e in #(
17864  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865/* end confdefs.h.  */
17866int i;
17867_ACEOF
17868if ac_fn_c_try_compile "$LINENO"
17869then :
17870  xorg_cv_cc_flag_unused_command_line_argument=yes
17871else case e in #(
17872  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17873esac
17874fi
17875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17876esac
17877fi
17878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17881	CFLAGS="$xorg_testset_save_CFLAGS"
17882fi
17883
17884found="no"
17885
17886	if test $found = "no" ; then
17887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17889		fi
17890
17891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17893		fi
17894
17895		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17896
17897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17898printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17899		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17900		if eval test \${$cacheid+y}
17901then :
17902  printf %s "(cached) " >&6
17903else case e in #(
17904  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905/* end confdefs.h.  */
17906int i;
17907int
17908main (void)
17909{
17910
17911  ;
17912  return 0;
17913}
17914_ACEOF
17915if ac_fn_c_try_link "$LINENO"
17916then :
17917  eval $cacheid=yes
17918else case e in #(
17919  e) eval $cacheid=no ;;
17920esac
17921fi
17922rm -f core conftest.err conftest.$ac_objext conftest.beam \
17923    conftest$ac_exeext conftest.$ac_ext ;;
17924esac
17925fi
17926
17927
17928		CFLAGS="$xorg_testset_save_CFLAGS"
17929
17930		eval supported=\$$cacheid
17931		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17932printf "%s\n" "$supported" >&6; }
17933		if test "$supported" = "yes" ; then
17934			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17935			found="yes"
17936		fi
17937	fi
17938
17939	if test $found = "no" ; then
17940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17942		fi
17943
17944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17946		fi
17947
17948		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17949
17950		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17951printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17952		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17953		if eval test \${$cacheid+y}
17954then :
17955  printf %s "(cached) " >&6
17956else case e in #(
17957  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958/* end confdefs.h.  */
17959int i;
17960int
17961main (void)
17962{
17963
17964  ;
17965  return 0;
17966}
17967_ACEOF
17968if ac_fn_c_try_link "$LINENO"
17969then :
17970  eval $cacheid=yes
17971else case e in #(
17972  e) eval $cacheid=no ;;
17973esac
17974fi
17975rm -f core conftest.err conftest.$ac_objext conftest.beam \
17976    conftest$ac_exeext conftest.$ac_ext ;;
17977esac
17978fi
17979
17980
17981		CFLAGS="$xorg_testset_save_CFLAGS"
17982
17983		eval supported=\$$cacheid
17984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17985printf "%s\n" "$supported" >&6; }
17986		if test "$supported" = "yes" ; then
17987			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17988			found="yes"
17989		fi
17990	fi
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006xorg_testset_save_CFLAGS="$CFLAGS"
18007
18008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18010	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18012if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18013then :
18014  printf %s "(cached) " >&6
18015else case e in #(
18016  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017/* end confdefs.h.  */
18018int i;
18019_ACEOF
18020if ac_fn_c_try_compile "$LINENO"
18021then :
18022  xorg_cv_cc_flag_unknown_warning_option=yes
18023else case e in #(
18024  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18025esac
18026fi
18027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18028esac
18029fi
18030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18033	CFLAGS="$xorg_testset_save_CFLAGS"
18034fi
18035
18036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18039	fi
18040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18043if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18044then :
18045  printf %s "(cached) " >&6
18046else case e in #(
18047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18048/* end confdefs.h.  */
18049int i;
18050_ACEOF
18051if ac_fn_c_try_compile "$LINENO"
18052then :
18053  xorg_cv_cc_flag_unused_command_line_argument=yes
18054else case e in #(
18055  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18056esac
18057fi
18058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18059esac
18060fi
18061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18064	CFLAGS="$xorg_testset_save_CFLAGS"
18065fi
18066
18067found="no"
18068
18069	if test $found = "no" ; then
18070		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18072		fi
18073
18074		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18076		fi
18077
18078		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18079
18080		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18081printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18082		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18083		if eval test \${$cacheid+y}
18084then :
18085  printf %s "(cached) " >&6
18086else case e in #(
18087  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18088/* end confdefs.h.  */
18089int i;
18090int
18091main (void)
18092{
18093
18094  ;
18095  return 0;
18096}
18097_ACEOF
18098if ac_fn_c_try_link "$LINENO"
18099then :
18100  eval $cacheid=yes
18101else case e in #(
18102  e) eval $cacheid=no ;;
18103esac
18104fi
18105rm -f core conftest.err conftest.$ac_objext conftest.beam \
18106    conftest$ac_exeext conftest.$ac_ext ;;
18107esac
18108fi
18109
18110
18111		CFLAGS="$xorg_testset_save_CFLAGS"
18112
18113		eval supported=\$$cacheid
18114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18115printf "%s\n" "$supported" >&6; }
18116		if test "$supported" = "yes" ; then
18117			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18118			found="yes"
18119		fi
18120	fi
18121
18122 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18123else
18124{ 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
18125printf "%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;}
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139xorg_testset_save_CFLAGS="$CFLAGS"
18140
18141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18143	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18144printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18145if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18146then :
18147  printf %s "(cached) " >&6
18148else case e in #(
18149  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150/* end confdefs.h.  */
18151int i;
18152_ACEOF
18153if ac_fn_c_try_compile "$LINENO"
18154then :
18155  xorg_cv_cc_flag_unknown_warning_option=yes
18156else case e in #(
18157  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18158esac
18159fi
18160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18161esac
18162fi
18163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18165	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18166	CFLAGS="$xorg_testset_save_CFLAGS"
18167fi
18168
18169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18170	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18171		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18172	fi
18173	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18176if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18177then :
18178  printf %s "(cached) " >&6
18179else case e in #(
18180  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h.  */
18182int i;
18183_ACEOF
18184if ac_fn_c_try_compile "$LINENO"
18185then :
18186  xorg_cv_cc_flag_unused_command_line_argument=yes
18187else case e in #(
18188  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18189esac
18190fi
18191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18192esac
18193fi
18194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18195printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18196	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18197	CFLAGS="$xorg_testset_save_CFLAGS"
18198fi
18199
18200found="no"
18201
18202	if test $found = "no" ; then
18203		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18204			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18205		fi
18206
18207		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18208			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18209		fi
18210
18211		CFLAGS="$CFLAGS -Wimplicit"
18212
18213		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18214printf %s "checking if $CC supports -Wimplicit... " >&6; }
18215		cacheid=xorg_cv_cc_flag__Wimplicit
18216		if eval test \${$cacheid+y}
18217then :
18218  printf %s "(cached) " >&6
18219else case e in #(
18220  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221/* end confdefs.h.  */
18222int i;
18223int
18224main (void)
18225{
18226
18227  ;
18228  return 0;
18229}
18230_ACEOF
18231if ac_fn_c_try_link "$LINENO"
18232then :
18233  eval $cacheid=yes
18234else case e in #(
18235  e) eval $cacheid=no ;;
18236esac
18237fi
18238rm -f core conftest.err conftest.$ac_objext conftest.beam \
18239    conftest$ac_exeext conftest.$ac_ext ;;
18240esac
18241fi
18242
18243
18244		CFLAGS="$xorg_testset_save_CFLAGS"
18245
18246		eval supported=\$$cacheid
18247		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18248printf "%s\n" "$supported" >&6; }
18249		if test "$supported" = "yes" ; then
18250			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18251			found="yes"
18252		fi
18253	fi
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269xorg_testset_save_CFLAGS="$CFLAGS"
18270
18271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18273	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18275if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18276then :
18277  printf %s "(cached) " >&6
18278else case e in #(
18279  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280/* end confdefs.h.  */
18281int i;
18282_ACEOF
18283if ac_fn_c_try_compile "$LINENO"
18284then :
18285  xorg_cv_cc_flag_unknown_warning_option=yes
18286else case e in #(
18287  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18288esac
18289fi
18290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18291esac
18292fi
18293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18294printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18296	CFLAGS="$xorg_testset_save_CFLAGS"
18297fi
18298
18299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18302	fi
18303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18305printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18306if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18307then :
18308  printf %s "(cached) " >&6
18309else case e in #(
18310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311/* end confdefs.h.  */
18312int i;
18313_ACEOF
18314if ac_fn_c_try_compile "$LINENO"
18315then :
18316  xorg_cv_cc_flag_unused_command_line_argument=yes
18317else case e in #(
18318  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18319esac
18320fi
18321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18322esac
18323fi
18324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18327	CFLAGS="$xorg_testset_save_CFLAGS"
18328fi
18329
18330found="no"
18331
18332	if test $found = "no" ; then
18333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18335		fi
18336
18337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18339		fi
18340
18341		CFLAGS="$CFLAGS -Wnonnull"
18342
18343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18344printf %s "checking if $CC supports -Wnonnull... " >&6; }
18345		cacheid=xorg_cv_cc_flag__Wnonnull
18346		if eval test \${$cacheid+y}
18347then :
18348  printf %s "(cached) " >&6
18349else case e in #(
18350  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351/* end confdefs.h.  */
18352int i;
18353int
18354main (void)
18355{
18356
18357  ;
18358  return 0;
18359}
18360_ACEOF
18361if ac_fn_c_try_link "$LINENO"
18362then :
18363  eval $cacheid=yes
18364else case e in #(
18365  e) eval $cacheid=no ;;
18366esac
18367fi
18368rm -f core conftest.err conftest.$ac_objext conftest.beam \
18369    conftest$ac_exeext conftest.$ac_ext ;;
18370esac
18371fi
18372
18373
18374		CFLAGS="$xorg_testset_save_CFLAGS"
18375
18376		eval supported=\$$cacheid
18377		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18378printf "%s\n" "$supported" >&6; }
18379		if test "$supported" = "yes" ; then
18380			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18381			found="yes"
18382		fi
18383	fi
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399xorg_testset_save_CFLAGS="$CFLAGS"
18400
18401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18402	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18404printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18405if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18406then :
18407  printf %s "(cached) " >&6
18408else case e in #(
18409  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410/* end confdefs.h.  */
18411int i;
18412_ACEOF
18413if ac_fn_c_try_compile "$LINENO"
18414then :
18415  xorg_cv_cc_flag_unknown_warning_option=yes
18416else case e in #(
18417  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18418esac
18419fi
18420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18421esac
18422fi
18423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18425	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18426	CFLAGS="$xorg_testset_save_CFLAGS"
18427fi
18428
18429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18430	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18431		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18432	fi
18433	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18434	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18436if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18437then :
18438  printf %s "(cached) " >&6
18439else case e in #(
18440  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441/* end confdefs.h.  */
18442int i;
18443_ACEOF
18444if ac_fn_c_try_compile "$LINENO"
18445then :
18446  xorg_cv_cc_flag_unused_command_line_argument=yes
18447else case e in #(
18448  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18449esac
18450fi
18451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18452esac
18453fi
18454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18455printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18456	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18457	CFLAGS="$xorg_testset_save_CFLAGS"
18458fi
18459
18460found="no"
18461
18462	if test $found = "no" ; then
18463		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18464			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18465		fi
18466
18467		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18468			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18469		fi
18470
18471		CFLAGS="$CFLAGS -Winit-self"
18472
18473		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18474printf %s "checking if $CC supports -Winit-self... " >&6; }
18475		cacheid=xorg_cv_cc_flag__Winit_self
18476		if eval test \${$cacheid+y}
18477then :
18478  printf %s "(cached) " >&6
18479else case e in #(
18480  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481/* end confdefs.h.  */
18482int i;
18483int
18484main (void)
18485{
18486
18487  ;
18488  return 0;
18489}
18490_ACEOF
18491if ac_fn_c_try_link "$LINENO"
18492then :
18493  eval $cacheid=yes
18494else case e in #(
18495  e) eval $cacheid=no ;;
18496esac
18497fi
18498rm -f core conftest.err conftest.$ac_objext conftest.beam \
18499    conftest$ac_exeext conftest.$ac_ext ;;
18500esac
18501fi
18502
18503
18504		CFLAGS="$xorg_testset_save_CFLAGS"
18505
18506		eval supported=\$$cacheid
18507		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18508printf "%s\n" "$supported" >&6; }
18509		if test "$supported" = "yes" ; then
18510			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18511			found="yes"
18512		fi
18513	fi
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529xorg_testset_save_CFLAGS="$CFLAGS"
18530
18531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18536then :
18537  printf %s "(cached) " >&6
18538else case e in #(
18539  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18540/* end confdefs.h.  */
18541int i;
18542_ACEOF
18543if ac_fn_c_try_compile "$LINENO"
18544then :
18545  xorg_cv_cc_flag_unknown_warning_option=yes
18546else case e in #(
18547  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18548esac
18549fi
18550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18551esac
18552fi
18553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18556	CFLAGS="$xorg_testset_save_CFLAGS"
18557fi
18558
18559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18562	fi
18563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18566if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18567then :
18568  printf %s "(cached) " >&6
18569else case e in #(
18570  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571/* end confdefs.h.  */
18572int i;
18573_ACEOF
18574if ac_fn_c_try_compile "$LINENO"
18575then :
18576  xorg_cv_cc_flag_unused_command_line_argument=yes
18577else case e in #(
18578  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18579esac
18580fi
18581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18582esac
18583fi
18584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18587	CFLAGS="$xorg_testset_save_CFLAGS"
18588fi
18589
18590found="no"
18591
18592	if test $found = "no" ; then
18593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18595		fi
18596
18597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18599		fi
18600
18601		CFLAGS="$CFLAGS -Wmain"
18602
18603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18604printf %s "checking if $CC supports -Wmain... " >&6; }
18605		cacheid=xorg_cv_cc_flag__Wmain
18606		if eval test \${$cacheid+y}
18607then :
18608  printf %s "(cached) " >&6
18609else case e in #(
18610  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611/* end confdefs.h.  */
18612int i;
18613int
18614main (void)
18615{
18616
18617  ;
18618  return 0;
18619}
18620_ACEOF
18621if ac_fn_c_try_link "$LINENO"
18622then :
18623  eval $cacheid=yes
18624else case e in #(
18625  e) eval $cacheid=no ;;
18626esac
18627fi
18628rm -f core conftest.err conftest.$ac_objext conftest.beam \
18629    conftest$ac_exeext conftest.$ac_ext ;;
18630esac
18631fi
18632
18633
18634		CFLAGS="$xorg_testset_save_CFLAGS"
18635
18636		eval supported=\$$cacheid
18637		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18638printf "%s\n" "$supported" >&6; }
18639		if test "$supported" = "yes" ; then
18640			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18641			found="yes"
18642		fi
18643	fi
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659xorg_testset_save_CFLAGS="$CFLAGS"
18660
18661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18663	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18665if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18666then :
18667  printf %s "(cached) " >&6
18668else case e in #(
18669  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670/* end confdefs.h.  */
18671int i;
18672_ACEOF
18673if ac_fn_c_try_compile "$LINENO"
18674then :
18675  xorg_cv_cc_flag_unknown_warning_option=yes
18676else case e in #(
18677  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18678esac
18679fi
18680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18681esac
18682fi
18683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18686	CFLAGS="$xorg_testset_save_CFLAGS"
18687fi
18688
18689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18692	fi
18693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18696if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18697then :
18698  printf %s "(cached) " >&6
18699else case e in #(
18700  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701/* end confdefs.h.  */
18702int i;
18703_ACEOF
18704if ac_fn_c_try_compile "$LINENO"
18705then :
18706  xorg_cv_cc_flag_unused_command_line_argument=yes
18707else case e in #(
18708  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18709esac
18710fi
18711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18712esac
18713fi
18714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18717	CFLAGS="$xorg_testset_save_CFLAGS"
18718fi
18719
18720found="no"
18721
18722	if test $found = "no" ; then
18723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18725		fi
18726
18727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18729		fi
18730
18731		CFLAGS="$CFLAGS -Wmissing-braces"
18732
18733		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18734printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18735		cacheid=xorg_cv_cc_flag__Wmissing_braces
18736		if eval test \${$cacheid+y}
18737then :
18738  printf %s "(cached) " >&6
18739else case e in #(
18740  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741/* end confdefs.h.  */
18742int i;
18743int
18744main (void)
18745{
18746
18747  ;
18748  return 0;
18749}
18750_ACEOF
18751if ac_fn_c_try_link "$LINENO"
18752then :
18753  eval $cacheid=yes
18754else case e in #(
18755  e) eval $cacheid=no ;;
18756esac
18757fi
18758rm -f core conftest.err conftest.$ac_objext conftest.beam \
18759    conftest$ac_exeext conftest.$ac_ext ;;
18760esac
18761fi
18762
18763
18764		CFLAGS="$xorg_testset_save_CFLAGS"
18765
18766		eval supported=\$$cacheid
18767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18768printf "%s\n" "$supported" >&6; }
18769		if test "$supported" = "yes" ; then
18770			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18771			found="yes"
18772		fi
18773	fi
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789xorg_testset_save_CFLAGS="$CFLAGS"
18790
18791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18794printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18795if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18796then :
18797  printf %s "(cached) " >&6
18798else case e in #(
18799  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800/* end confdefs.h.  */
18801int i;
18802_ACEOF
18803if ac_fn_c_try_compile "$LINENO"
18804then :
18805  xorg_cv_cc_flag_unknown_warning_option=yes
18806else case e in #(
18807  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18808esac
18809fi
18810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18811esac
18812fi
18813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18816	CFLAGS="$xorg_testset_save_CFLAGS"
18817fi
18818
18819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18822	fi
18823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18826if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18827then :
18828  printf %s "(cached) " >&6
18829else case e in #(
18830  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831/* end confdefs.h.  */
18832int i;
18833_ACEOF
18834if ac_fn_c_try_compile "$LINENO"
18835then :
18836  xorg_cv_cc_flag_unused_command_line_argument=yes
18837else case e in #(
18838  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18839esac
18840fi
18841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18842esac
18843fi
18844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18847	CFLAGS="$xorg_testset_save_CFLAGS"
18848fi
18849
18850found="no"
18851
18852	if test $found = "no" ; then
18853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18855		fi
18856
18857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18859		fi
18860
18861		CFLAGS="$CFLAGS -Wsequence-point"
18862
18863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18864printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18865		cacheid=xorg_cv_cc_flag__Wsequence_point
18866		if eval test \${$cacheid+y}
18867then :
18868  printf %s "(cached) " >&6
18869else case e in #(
18870  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h.  */
18872int i;
18873int
18874main (void)
18875{
18876
18877  ;
18878  return 0;
18879}
18880_ACEOF
18881if ac_fn_c_try_link "$LINENO"
18882then :
18883  eval $cacheid=yes
18884else case e in #(
18885  e) eval $cacheid=no ;;
18886esac
18887fi
18888rm -f core conftest.err conftest.$ac_objext conftest.beam \
18889    conftest$ac_exeext conftest.$ac_ext ;;
18890esac
18891fi
18892
18893
18894		CFLAGS="$xorg_testset_save_CFLAGS"
18895
18896		eval supported=\$$cacheid
18897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18898printf "%s\n" "$supported" >&6; }
18899		if test "$supported" = "yes" ; then
18900			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18901			found="yes"
18902		fi
18903	fi
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919xorg_testset_save_CFLAGS="$CFLAGS"
18920
18921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18925if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18926then :
18927  printf %s "(cached) " >&6
18928else case e in #(
18929  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930/* end confdefs.h.  */
18931int i;
18932_ACEOF
18933if ac_fn_c_try_compile "$LINENO"
18934then :
18935  xorg_cv_cc_flag_unknown_warning_option=yes
18936else case e in #(
18937  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18938esac
18939fi
18940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18941esac
18942fi
18943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18944printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18945	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18946	CFLAGS="$xorg_testset_save_CFLAGS"
18947fi
18948
18949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18950	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18951		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18952	fi
18953	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18954	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18955printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18956if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18957then :
18958  printf %s "(cached) " >&6
18959else case e in #(
18960  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961/* end confdefs.h.  */
18962int i;
18963_ACEOF
18964if ac_fn_c_try_compile "$LINENO"
18965then :
18966  xorg_cv_cc_flag_unused_command_line_argument=yes
18967else case e in #(
18968  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18969esac
18970fi
18971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18972esac
18973fi
18974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18975printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18977	CFLAGS="$xorg_testset_save_CFLAGS"
18978fi
18979
18980found="no"
18981
18982	if test $found = "no" ; then
18983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18985		fi
18986
18987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18989		fi
18990
18991		CFLAGS="$CFLAGS -Wreturn-type"
18992
18993		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18994printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18995		cacheid=xorg_cv_cc_flag__Wreturn_type
18996		if eval test \${$cacheid+y}
18997then :
18998  printf %s "(cached) " >&6
18999else case e in #(
19000  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001/* end confdefs.h.  */
19002int i;
19003int
19004main (void)
19005{
19006
19007  ;
19008  return 0;
19009}
19010_ACEOF
19011if ac_fn_c_try_link "$LINENO"
19012then :
19013  eval $cacheid=yes
19014else case e in #(
19015  e) eval $cacheid=no ;;
19016esac
19017fi
19018rm -f core conftest.err conftest.$ac_objext conftest.beam \
19019    conftest$ac_exeext conftest.$ac_ext ;;
19020esac
19021fi
19022
19023
19024		CFLAGS="$xorg_testset_save_CFLAGS"
19025
19026		eval supported=\$$cacheid
19027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19028printf "%s\n" "$supported" >&6; }
19029		if test "$supported" = "yes" ; then
19030			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19031			found="yes"
19032		fi
19033	fi
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049xorg_testset_save_CFLAGS="$CFLAGS"
19050
19051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19052	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19053	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19055if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19056then :
19057  printf %s "(cached) " >&6
19058else case e in #(
19059  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19060/* end confdefs.h.  */
19061int i;
19062_ACEOF
19063if ac_fn_c_try_compile "$LINENO"
19064then :
19065  xorg_cv_cc_flag_unknown_warning_option=yes
19066else case e in #(
19067  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19068esac
19069fi
19070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19071esac
19072fi
19073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19074printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19075	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19076	CFLAGS="$xorg_testset_save_CFLAGS"
19077fi
19078
19079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19080	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19081		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19082	fi
19083	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19084	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19085printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19086if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19087then :
19088  printf %s "(cached) " >&6
19089else case e in #(
19090  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091/* end confdefs.h.  */
19092int i;
19093_ACEOF
19094if ac_fn_c_try_compile "$LINENO"
19095then :
19096  xorg_cv_cc_flag_unused_command_line_argument=yes
19097else case e in #(
19098  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19099esac
19100fi
19101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19102esac
19103fi
19104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19106	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19107	CFLAGS="$xorg_testset_save_CFLAGS"
19108fi
19109
19110found="no"
19111
19112	if test $found = "no" ; then
19113		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19115		fi
19116
19117		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19119		fi
19120
19121		CFLAGS="$CFLAGS -Wtrigraphs"
19122
19123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19124printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19125		cacheid=xorg_cv_cc_flag__Wtrigraphs
19126		if eval test \${$cacheid+y}
19127then :
19128  printf %s "(cached) " >&6
19129else case e in #(
19130  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131/* end confdefs.h.  */
19132int i;
19133int
19134main (void)
19135{
19136
19137  ;
19138  return 0;
19139}
19140_ACEOF
19141if ac_fn_c_try_link "$LINENO"
19142then :
19143  eval $cacheid=yes
19144else case e in #(
19145  e) eval $cacheid=no ;;
19146esac
19147fi
19148rm -f core conftest.err conftest.$ac_objext conftest.beam \
19149    conftest$ac_exeext conftest.$ac_ext ;;
19150esac
19151fi
19152
19153
19154		CFLAGS="$xorg_testset_save_CFLAGS"
19155
19156		eval supported=\$$cacheid
19157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19158printf "%s\n" "$supported" >&6; }
19159		if test "$supported" = "yes" ; then
19160			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19161			found="yes"
19162		fi
19163	fi
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179xorg_testset_save_CFLAGS="$CFLAGS"
19180
19181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19182	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19185if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19186then :
19187  printf %s "(cached) " >&6
19188else case e in #(
19189  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190/* end confdefs.h.  */
19191int i;
19192_ACEOF
19193if ac_fn_c_try_compile "$LINENO"
19194then :
19195  xorg_cv_cc_flag_unknown_warning_option=yes
19196else case e in #(
19197  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19198esac
19199fi
19200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19201esac
19202fi
19203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19206	CFLAGS="$xorg_testset_save_CFLAGS"
19207fi
19208
19209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19212	fi
19213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19216if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19217then :
19218  printf %s "(cached) " >&6
19219else case e in #(
19220  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221/* end confdefs.h.  */
19222int i;
19223_ACEOF
19224if ac_fn_c_try_compile "$LINENO"
19225then :
19226  xorg_cv_cc_flag_unused_command_line_argument=yes
19227else case e in #(
19228  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19229esac
19230fi
19231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19232esac
19233fi
19234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19237	CFLAGS="$xorg_testset_save_CFLAGS"
19238fi
19239
19240found="no"
19241
19242	if test $found = "no" ; then
19243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19245		fi
19246
19247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19249		fi
19250
19251		CFLAGS="$CFLAGS -Warray-bounds"
19252
19253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19254printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19255		cacheid=xorg_cv_cc_flag__Warray_bounds
19256		if eval test \${$cacheid+y}
19257then :
19258  printf %s "(cached) " >&6
19259else case e in #(
19260  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19261/* end confdefs.h.  */
19262int i;
19263int
19264main (void)
19265{
19266
19267  ;
19268  return 0;
19269}
19270_ACEOF
19271if ac_fn_c_try_link "$LINENO"
19272then :
19273  eval $cacheid=yes
19274else case e in #(
19275  e) eval $cacheid=no ;;
19276esac
19277fi
19278rm -f core conftest.err conftest.$ac_objext conftest.beam \
19279    conftest$ac_exeext conftest.$ac_ext ;;
19280esac
19281fi
19282
19283
19284		CFLAGS="$xorg_testset_save_CFLAGS"
19285
19286		eval supported=\$$cacheid
19287		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19288printf "%s\n" "$supported" >&6; }
19289		if test "$supported" = "yes" ; then
19290			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19291			found="yes"
19292		fi
19293	fi
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309xorg_testset_save_CFLAGS="$CFLAGS"
19310
19311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19313	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19314printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19315if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19316then :
19317  printf %s "(cached) " >&6
19318else case e in #(
19319  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320/* end confdefs.h.  */
19321int i;
19322_ACEOF
19323if ac_fn_c_try_compile "$LINENO"
19324then :
19325  xorg_cv_cc_flag_unknown_warning_option=yes
19326else case e in #(
19327  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19328esac
19329fi
19330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19331esac
19332fi
19333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19336	CFLAGS="$xorg_testset_save_CFLAGS"
19337fi
19338
19339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19342	fi
19343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19347then :
19348  printf %s "(cached) " >&6
19349else case e in #(
19350  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19351/* end confdefs.h.  */
19352int i;
19353_ACEOF
19354if ac_fn_c_try_compile "$LINENO"
19355then :
19356  xorg_cv_cc_flag_unused_command_line_argument=yes
19357else case e in #(
19358  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19359esac
19360fi
19361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19362esac
19363fi
19364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19367	CFLAGS="$xorg_testset_save_CFLAGS"
19368fi
19369
19370found="no"
19371
19372	if test $found = "no" ; then
19373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19375		fi
19376
19377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19379		fi
19380
19381		CFLAGS="$CFLAGS -Wwrite-strings"
19382
19383		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19384printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19385		cacheid=xorg_cv_cc_flag__Wwrite_strings
19386		if eval test \${$cacheid+y}
19387then :
19388  printf %s "(cached) " >&6
19389else case e in #(
19390  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391/* end confdefs.h.  */
19392int i;
19393int
19394main (void)
19395{
19396
19397  ;
19398  return 0;
19399}
19400_ACEOF
19401if ac_fn_c_try_link "$LINENO"
19402then :
19403  eval $cacheid=yes
19404else case e in #(
19405  e) eval $cacheid=no ;;
19406esac
19407fi
19408rm -f core conftest.err conftest.$ac_objext conftest.beam \
19409    conftest$ac_exeext conftest.$ac_ext ;;
19410esac
19411fi
19412
19413
19414		CFLAGS="$xorg_testset_save_CFLAGS"
19415
19416		eval supported=\$$cacheid
19417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19418printf "%s\n" "$supported" >&6; }
19419		if test "$supported" = "yes" ; then
19420			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19421			found="yes"
19422		fi
19423	fi
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439xorg_testset_save_CFLAGS="$CFLAGS"
19440
19441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19443	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19445if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19446then :
19447  printf %s "(cached) " >&6
19448else case e in #(
19449  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19450/* end confdefs.h.  */
19451int i;
19452_ACEOF
19453if ac_fn_c_try_compile "$LINENO"
19454then :
19455  xorg_cv_cc_flag_unknown_warning_option=yes
19456else case e in #(
19457  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19458esac
19459fi
19460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19461esac
19462fi
19463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19465	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19466	CFLAGS="$xorg_testset_save_CFLAGS"
19467fi
19468
19469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19470	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19471		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19472	fi
19473	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19474	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19476if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19477then :
19478  printf %s "(cached) " >&6
19479else case e in #(
19480  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19481/* end confdefs.h.  */
19482int i;
19483_ACEOF
19484if ac_fn_c_try_compile "$LINENO"
19485then :
19486  xorg_cv_cc_flag_unused_command_line_argument=yes
19487else case e in #(
19488  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19489esac
19490fi
19491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19492esac
19493fi
19494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19497	CFLAGS="$xorg_testset_save_CFLAGS"
19498fi
19499
19500found="no"
19501
19502	if test $found = "no" ; then
19503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19505		fi
19506
19507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19509		fi
19510
19511		CFLAGS="$CFLAGS -Waddress"
19512
19513		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19514printf %s "checking if $CC supports -Waddress... " >&6; }
19515		cacheid=xorg_cv_cc_flag__Waddress
19516		if eval test \${$cacheid+y}
19517then :
19518  printf %s "(cached) " >&6
19519else case e in #(
19520  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521/* end confdefs.h.  */
19522int i;
19523int
19524main (void)
19525{
19526
19527  ;
19528  return 0;
19529}
19530_ACEOF
19531if ac_fn_c_try_link "$LINENO"
19532then :
19533  eval $cacheid=yes
19534else case e in #(
19535  e) eval $cacheid=no ;;
19536esac
19537fi
19538rm -f core conftest.err conftest.$ac_objext conftest.beam \
19539    conftest$ac_exeext conftest.$ac_ext ;;
19540esac
19541fi
19542
19543
19544		CFLAGS="$xorg_testset_save_CFLAGS"
19545
19546		eval supported=\$$cacheid
19547		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19548printf "%s\n" "$supported" >&6; }
19549		if test "$supported" = "yes" ; then
19550			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19551			found="yes"
19552		fi
19553	fi
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569xorg_testset_save_CFLAGS="$CFLAGS"
19570
19571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19572	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19575if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19576then :
19577  printf %s "(cached) " >&6
19578else case e in #(
19579  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580/* end confdefs.h.  */
19581int i;
19582_ACEOF
19583if ac_fn_c_try_compile "$LINENO"
19584then :
19585  xorg_cv_cc_flag_unknown_warning_option=yes
19586else case e in #(
19587  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19588esac
19589fi
19590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19591esac
19592fi
19593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19594printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19595	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19596	CFLAGS="$xorg_testset_save_CFLAGS"
19597fi
19598
19599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19600	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19601		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19602	fi
19603	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19604	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19605printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19606if test ${xorg_cv_cc_flag_unused_command_line_argument+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;
19613_ACEOF
19614if ac_fn_c_try_compile "$LINENO"
19615then :
19616  xorg_cv_cc_flag_unused_command_line_argument=yes
19617else case e in #(
19618  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19619esac
19620fi
19621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19622esac
19623fi
19624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19625printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19627	CFLAGS="$xorg_testset_save_CFLAGS"
19628fi
19629
19630found="no"
19631
19632	if test $found = "no" ; then
19633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19635		fi
19636
19637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19639		fi
19640
19641		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19642
19643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19644printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19645		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19646		if eval test \${$cacheid+y}
19647then :
19648  printf %s "(cached) " >&6
19649else case e in #(
19650  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651/* end confdefs.h.  */
19652int i;
19653int
19654main (void)
19655{
19656
19657  ;
19658  return 0;
19659}
19660_ACEOF
19661if ac_fn_c_try_link "$LINENO"
19662then :
19663  eval $cacheid=yes
19664else case e in #(
19665  e) eval $cacheid=no ;;
19666esac
19667fi
19668rm -f core conftest.err conftest.$ac_objext conftest.beam \
19669    conftest$ac_exeext conftest.$ac_ext ;;
19670esac
19671fi
19672
19673
19674		CFLAGS="$xorg_testset_save_CFLAGS"
19675
19676		eval supported=\$$cacheid
19677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19678printf "%s\n" "$supported" >&6; }
19679		if test "$supported" = "yes" ; then
19680			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19681			found="yes"
19682		fi
19683	fi
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699xorg_testset_save_CFLAGS="$CFLAGS"
19700
19701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19705if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19706then :
19707  printf %s "(cached) " >&6
19708else case e in #(
19709  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710/* end confdefs.h.  */
19711int i;
19712_ACEOF
19713if ac_fn_c_try_compile "$LINENO"
19714then :
19715  xorg_cv_cc_flag_unknown_warning_option=yes
19716else case e in #(
19717  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19718esac
19719fi
19720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19721esac
19722fi
19723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19724printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19725	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19726	CFLAGS="$xorg_testset_save_CFLAGS"
19727fi
19728
19729if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19730	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19731		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19732	fi
19733	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19734	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19735printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19736if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19737then :
19738  printf %s "(cached) " >&6
19739else case e in #(
19740  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19741/* end confdefs.h.  */
19742int i;
19743_ACEOF
19744if ac_fn_c_try_compile "$LINENO"
19745then :
19746  xorg_cv_cc_flag_unused_command_line_argument=yes
19747else case e in #(
19748  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19749esac
19750fi
19751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19752esac
19753fi
19754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19756	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19757	CFLAGS="$xorg_testset_save_CFLAGS"
19758fi
19759
19760found="no"
19761
19762	if test $found = "no" ; then
19763		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19765		fi
19766
19767		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19769		fi
19770
19771		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19772
19773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19774printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19775		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19776		if eval test \${$cacheid+y}
19777then :
19778  printf %s "(cached) " >&6
19779else case e in #(
19780  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19781/* end confdefs.h.  */
19782int i;
19783int
19784main (void)
19785{
19786
19787  ;
19788  return 0;
19789}
19790_ACEOF
19791if ac_fn_c_try_link "$LINENO"
19792then :
19793  eval $cacheid=yes
19794else case e in #(
19795  e) eval $cacheid=no ;;
19796esac
19797fi
19798rm -f core conftest.err conftest.$ac_objext conftest.beam \
19799    conftest$ac_exeext conftest.$ac_ext ;;
19800esac
19801fi
19802
19803
19804		CFLAGS="$xorg_testset_save_CFLAGS"
19805
19806		eval supported=\$$cacheid
19807		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19808printf "%s\n" "$supported" >&6; }
19809		if test "$supported" = "yes" ; then
19810			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19811			found="yes"
19812		fi
19813	fi
19814
19815
19816fi
19817
19818
19819
19820
19821
19822
19823
19824		CWARNFLAGS="$BASE_CFLAGS"
19825		if  test "x$GCC" = xyes ; then
19826		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19827		fi
19828
19829
19830
19831
19832
19833
19834
19835
19836# Check whether --enable-strict-compilation was given.
19837if test ${enable_strict_compilation+y}
19838then :
19839  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19840else case e in #(
19841  e) STRICT_COMPILE=no ;;
19842esac
19843fi
19844
19845
19846
19847
19848
19849
19850STRICT_CFLAGS=""
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864xorg_testset_save_CFLAGS="$CFLAGS"
19865
19866if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19867	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19868	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19869printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19870if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19871then :
19872  printf %s "(cached) " >&6
19873else case e in #(
19874  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875/* end confdefs.h.  */
19876int i;
19877_ACEOF
19878if ac_fn_c_try_compile "$LINENO"
19879then :
19880  xorg_cv_cc_flag_unknown_warning_option=yes
19881else case e in #(
19882  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19883esac
19884fi
19885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19886esac
19887fi
19888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19891	CFLAGS="$xorg_testset_save_CFLAGS"
19892fi
19893
19894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19897	fi
19898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19901if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19902then :
19903  printf %s "(cached) " >&6
19904else case e in #(
19905  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19906/* end confdefs.h.  */
19907int i;
19908_ACEOF
19909if ac_fn_c_try_compile "$LINENO"
19910then :
19911  xorg_cv_cc_flag_unused_command_line_argument=yes
19912else case e in #(
19913  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19914esac
19915fi
19916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19917esac
19918fi
19919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19920printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19921	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19922	CFLAGS="$xorg_testset_save_CFLAGS"
19923fi
19924
19925found="no"
19926
19927	if test $found = "no" ; then
19928		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19929			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19930		fi
19931
19932		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19933			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19934		fi
19935
19936		CFLAGS="$CFLAGS -pedantic"
19937
19938		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19939printf %s "checking if $CC supports -pedantic... " >&6; }
19940		cacheid=xorg_cv_cc_flag__pedantic
19941		if eval test \${$cacheid+y}
19942then :
19943  printf %s "(cached) " >&6
19944else case e in #(
19945  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946/* end confdefs.h.  */
19947int i;
19948int
19949main (void)
19950{
19951
19952  ;
19953  return 0;
19954}
19955_ACEOF
19956if ac_fn_c_try_link "$LINENO"
19957then :
19958  eval $cacheid=yes
19959else case e in #(
19960  e) eval $cacheid=no ;;
19961esac
19962fi
19963rm -f core conftest.err conftest.$ac_objext conftest.beam \
19964    conftest$ac_exeext conftest.$ac_ext ;;
19965esac
19966fi
19967
19968
19969		CFLAGS="$xorg_testset_save_CFLAGS"
19970
19971		eval supported=\$$cacheid
19972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19973printf "%s\n" "$supported" >&6; }
19974		if test "$supported" = "yes" ; then
19975			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19976			found="yes"
19977		fi
19978	fi
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994xorg_testset_save_CFLAGS="$CFLAGS"
19995
19996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20000if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20001then :
20002  printf %s "(cached) " >&6
20003else case e in #(
20004  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005/* end confdefs.h.  */
20006int i;
20007_ACEOF
20008if ac_fn_c_try_compile "$LINENO"
20009then :
20010  xorg_cv_cc_flag_unknown_warning_option=yes
20011else case e in #(
20012  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20013esac
20014fi
20015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20016esac
20017fi
20018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20019printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20021	CFLAGS="$xorg_testset_save_CFLAGS"
20022fi
20023
20024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20027	fi
20028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20030printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20031if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20032then :
20033  printf %s "(cached) " >&6
20034else case e in #(
20035  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036/* end confdefs.h.  */
20037int i;
20038_ACEOF
20039if ac_fn_c_try_compile "$LINENO"
20040then :
20041  xorg_cv_cc_flag_unused_command_line_argument=yes
20042else case e in #(
20043  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20044esac
20045fi
20046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20047esac
20048fi
20049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20050printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20052	CFLAGS="$xorg_testset_save_CFLAGS"
20053fi
20054
20055found="no"
20056
20057	if test $found = "no" ; then
20058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20060		fi
20061
20062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20064		fi
20065
20066		CFLAGS="$CFLAGS -Werror"
20067
20068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20069printf %s "checking if $CC supports -Werror... " >&6; }
20070		cacheid=xorg_cv_cc_flag__Werror
20071		if eval test \${$cacheid+y}
20072then :
20073  printf %s "(cached) " >&6
20074else case e in #(
20075  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076/* end confdefs.h.  */
20077int i;
20078int
20079main (void)
20080{
20081
20082  ;
20083  return 0;
20084}
20085_ACEOF
20086if ac_fn_c_try_link "$LINENO"
20087then :
20088  eval $cacheid=yes
20089else case e in #(
20090  e) eval $cacheid=no ;;
20091esac
20092fi
20093rm -f core conftest.err conftest.$ac_objext conftest.beam \
20094    conftest$ac_exeext conftest.$ac_ext ;;
20095esac
20096fi
20097
20098
20099		CFLAGS="$xorg_testset_save_CFLAGS"
20100
20101		eval supported=\$$cacheid
20102		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20103printf "%s\n" "$supported" >&6; }
20104		if test "$supported" = "yes" ; then
20105			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20106			found="yes"
20107		fi
20108	fi
20109
20110	if test $found = "no" ; then
20111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20113		fi
20114
20115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20117		fi
20118
20119		CFLAGS="$CFLAGS -errwarn"
20120
20121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20122printf %s "checking if $CC supports -errwarn... " >&6; }
20123		cacheid=xorg_cv_cc_flag__errwarn
20124		if eval test \${$cacheid+y}
20125then :
20126  printf %s "(cached) " >&6
20127else case e in #(
20128  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129/* end confdefs.h.  */
20130int i;
20131int
20132main (void)
20133{
20134
20135  ;
20136  return 0;
20137}
20138_ACEOF
20139if ac_fn_c_try_link "$LINENO"
20140then :
20141  eval $cacheid=yes
20142else case e in #(
20143  e) eval $cacheid=no ;;
20144esac
20145fi
20146rm -f core conftest.err conftest.$ac_objext conftest.beam \
20147    conftest$ac_exeext conftest.$ac_ext ;;
20148esac
20149fi
20150
20151
20152		CFLAGS="$xorg_testset_save_CFLAGS"
20153
20154		eval supported=\$$cacheid
20155		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20156printf "%s\n" "$supported" >&6; }
20157		if test "$supported" = "yes" ; then
20158			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20159			found="yes"
20160		fi
20161	fi
20162
20163
20164
20165# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20166# activate it with -Werror, so we add it here explicitly.
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180xorg_testset_save_CFLAGS="$CFLAGS"
20181
20182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20186if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20187then :
20188  printf %s "(cached) " >&6
20189else case e in #(
20190  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191/* end confdefs.h.  */
20192int i;
20193_ACEOF
20194if ac_fn_c_try_compile "$LINENO"
20195then :
20196  xorg_cv_cc_flag_unknown_warning_option=yes
20197else case e in #(
20198  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20199esac
20200fi
20201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20202esac
20203fi
20204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20205printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20206	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20207	CFLAGS="$xorg_testset_save_CFLAGS"
20208fi
20209
20210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20211	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20212		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20213	fi
20214	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20216printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20217if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20218then :
20219  printf %s "(cached) " >&6
20220else case e in #(
20221  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20222/* end confdefs.h.  */
20223int i;
20224_ACEOF
20225if ac_fn_c_try_compile "$LINENO"
20226then :
20227  xorg_cv_cc_flag_unused_command_line_argument=yes
20228else case e in #(
20229  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20230esac
20231fi
20232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20233esac
20234fi
20235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20238	CFLAGS="$xorg_testset_save_CFLAGS"
20239fi
20240
20241found="no"
20242
20243	if test $found = "no" ; then
20244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20246		fi
20247
20248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20250		fi
20251
20252		CFLAGS="$CFLAGS -Werror=attributes"
20253
20254		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20255printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20256		cacheid=xorg_cv_cc_flag__Werror_attributes
20257		if eval test \${$cacheid+y}
20258then :
20259  printf %s "(cached) " >&6
20260else case e in #(
20261  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262/* end confdefs.h.  */
20263int i;
20264int
20265main (void)
20266{
20267
20268  ;
20269  return 0;
20270}
20271_ACEOF
20272if ac_fn_c_try_link "$LINENO"
20273then :
20274  eval $cacheid=yes
20275else case e in #(
20276  e) eval $cacheid=no ;;
20277esac
20278fi
20279rm -f core conftest.err conftest.$ac_objext conftest.beam \
20280    conftest$ac_exeext conftest.$ac_ext ;;
20281esac
20282fi
20283
20284
20285		CFLAGS="$xorg_testset_save_CFLAGS"
20286
20287		eval supported=\$$cacheid
20288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20289printf "%s\n" "$supported" >&6; }
20290		if test "$supported" = "yes" ; then
20291			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20292			found="yes"
20293		fi
20294	fi
20295
20296
20297
20298if test "x$STRICT_COMPILE" = "xyes"; then
20299    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20300    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20301fi
20302
20303
20304
20305
20306
20307
20308
20309
20310cat >>confdefs.h <<_ACEOF
20311#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20312_ACEOF
20313
20314	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20315	if test "x$PVM" = "x"; then
20316		PVM="0"
20317	fi
20318
20319printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20320
20321	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20322	if test "x$PVP" = "x"; then
20323		PVP="0"
20324	fi
20325
20326printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20327
20328
20329
20330CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20331mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20332|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20333touch \$(top_srcdir)/ChangeLog; \
20334echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20335
20336
20337
20338
20339macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20340INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20341mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20342|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20343touch \$(top_srcdir)/INSTALL; \
20344echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20345
20346
20347
20348
20349
20350
20351case $host_os in
20352    solaris*)
20353        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20354        # check for a man page file found in later versions that use
20355        # traditional section numbers instead
20356        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20357printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20358if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20359then :
20360  printf %s "(cached) " >&6
20361else case e in #(
20362  e) test "$cross_compiling" = yes &&
20363  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20364if test -r "/usr/share/man/man7/attributes.7"; then
20365  ac_cv_file__usr_share_man_man7_attributes_7=yes
20366else
20367  ac_cv_file__usr_share_man_man7_attributes_7=no
20368fi ;;
20369esac
20370fi
20371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20372printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20373if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20374then :
20375  SYSV_MAN_SECTIONS=false
20376else case e in #(
20377  e) SYSV_MAN_SECTIONS=true ;;
20378esac
20379fi
20380
20381        ;;
20382    *) SYSV_MAN_SECTIONS=false ;;
20383esac
20384
20385if test x$APP_MAN_SUFFIX = x    ; then
20386    APP_MAN_SUFFIX=1
20387fi
20388if test x$APP_MAN_DIR = x    ; then
20389    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20390fi
20391
20392if test x$LIB_MAN_SUFFIX = x    ; then
20393    LIB_MAN_SUFFIX=3
20394fi
20395if test x$LIB_MAN_DIR = x    ; then
20396    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20397fi
20398
20399if test x$FILE_MAN_SUFFIX = x    ; then
20400    case $SYSV_MAN_SECTIONS in
20401	true)				FILE_MAN_SUFFIX=4  ;;
20402	*)				FILE_MAN_SUFFIX=5  ;;
20403    esac
20404fi
20405if test x$FILE_MAN_DIR = x    ; then
20406    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20407fi
20408
20409if test x$MISC_MAN_SUFFIX = x    ; then
20410    case $SYSV_MAN_SECTIONS in
20411	true)				MISC_MAN_SUFFIX=5  ;;
20412	*)				MISC_MAN_SUFFIX=7  ;;
20413    esac
20414fi
20415if test x$MISC_MAN_DIR = x    ; then
20416    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20417fi
20418
20419if test x$DRIVER_MAN_SUFFIX = x    ; then
20420    case $SYSV_MAN_SECTIONS in
20421	true)				DRIVER_MAN_SUFFIX=7  ;;
20422	*)				DRIVER_MAN_SUFFIX=4  ;;
20423    esac
20424fi
20425if test x$DRIVER_MAN_DIR = x    ; then
20426    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20427fi
20428
20429if test x$ADMIN_MAN_SUFFIX = x    ; then
20430    case $SYSV_MAN_SECTIONS in
20431	true)				ADMIN_MAN_SUFFIX=1m ;;
20432	*)				ADMIN_MAN_SUFFIX=8  ;;
20433    esac
20434fi
20435if test x$ADMIN_MAN_DIR = x    ; then
20436    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20437fi
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453XORG_MAN_PAGE="X Version 11"
20454
20455MAN_SUBSTS="\
20456	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20457	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20458	-e 's|__xservername__|Xorg|g' \
20459	-e 's|__xconfigfile__|xorg.conf|g' \
20460	-e 's|__projectroot__|\$(prefix)|g' \
20461	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
20462	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20463	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20464	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20465	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20466	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20467	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20468
20469
20470
20471
20472AM_DEFAULT_VERBOSITY=0
20473
20474
20475
20476
20477
20478
20479
20480
20481# Check whether --with-lint was given.
20482if test ${with_lint+y}
20483then :
20484  withval=$with_lint; use_lint=$withval
20485else case e in #(
20486  e) use_lint=no ;;
20487esac
20488fi
20489
20490
20491# Obtain platform specific info like program name and options
20492# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20493case $host_os in
20494  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20495	lint_name=splint
20496	lint_options="-badflag"
20497	;;
20498  *freebsd* | *netbsd*)
20499	lint_name=lint
20500	lint_options="-u -b"
20501	;;
20502  *solaris*)
20503	lint_name=lint
20504	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20505	;;
20506esac
20507
20508# Test for the presence of the program (either guessed by the code or spelled out by the user)
20509if test "x$use_lint" = x"yes" ; then
20510   # Extract the first word of "$lint_name", so it can be a program name with args.
20511set dummy $lint_name; ac_word=$2
20512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20513printf %s "checking for $ac_word... " >&6; }
20514if test ${ac_cv_path_LINT+y}
20515then :
20516  printf %s "(cached) " >&6
20517else case e in #(
20518  e) case $LINT in
20519  [\\/]* | ?:[\\/]*)
20520  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20521  ;;
20522  *)
20523  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20524for as_dir in $PATH
20525do
20526  IFS=$as_save_IFS
20527  case $as_dir in #(((
20528    '') as_dir=./ ;;
20529    */) ;;
20530    *) as_dir=$as_dir/ ;;
20531  esac
20532    for ac_exec_ext in '' $ac_executable_extensions; do
20533  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20534    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20535    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20536    break 2
20537  fi
20538done
20539  done
20540IFS=$as_save_IFS
20541
20542  ;;
20543esac ;;
20544esac
20545fi
20546LINT=$ac_cv_path_LINT
20547if test -n "$LINT"; then
20548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20549printf "%s\n" "$LINT" >&6; }
20550else
20551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20552printf "%s\n" "no" >&6; }
20553fi
20554
20555
20556   if test "x$LINT" = "x"; then
20557        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20558   fi
20559elif test "x$use_lint" = x"no" ; then
20560   if test "x$LINT" != "x"; then
20561      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20562printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20563   fi
20564else
20565   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20566fi
20567
20568# User supplied flags override default flags
20569if test "x$LINT_FLAGS" != "x"; then
20570   lint_options=$LINT_FLAGS
20571fi
20572
20573LINT_FLAGS=$lint_options
20574
20575 if test "x$LINT" != x; then
20576  LINT_TRUE=
20577  LINT_FALSE='#'
20578else
20579  LINT_TRUE='#'
20580  LINT_FALSE=
20581fi
20582
20583
20584
20585LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
20586
20587# Checks for typedefs, structures, and compiler characteristics.
20588# Check whether --enable-largefile was given.
20589if test ${enable_largefile+y}
20590then :
20591  enableval=$enable_largefile;
20592fi
20593if test "$enable_largefile,$enable_year2038" != no,no
20594then :
20595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20596printf %s "checking for $CC option to enable large file support... " >&6; }
20597if test ${ac_cv_sys_largefile_opts+y}
20598then :
20599  printf %s "(cached) " >&6
20600else case e in #(
20601  e) ac_save_CC="$CC"
20602  ac_opt_found=no
20603  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20604    if test x"$ac_opt" != x"none needed"
20605then :
20606  CC="$ac_save_CC $ac_opt"
20607fi
20608    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20609/* end confdefs.h.  */
20610#include <sys/types.h>
20611#ifndef FTYPE
20612# define FTYPE off_t
20613#endif
20614 /* Check that FTYPE can represent 2**63 - 1 correctly.
20615    We can't simply define LARGE_FTYPE to be 9223372036854775807,
20616    since some C++ compilers masquerading as C compilers
20617    incorrectly reject 9223372036854775807.  */
20618#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20619  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20620		       && LARGE_FTYPE % 2147483647 == 1)
20621		      ? 1 : -1];
20622int
20623main (void)
20624{
20625
20626  ;
20627  return 0;
20628}
20629_ACEOF
20630if ac_fn_c_try_compile "$LINENO"
20631then :
20632  if test x"$ac_opt" = x"none needed"
20633then :
20634  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20635	 CC="$CC -DFTYPE=ino_t"
20636	 if ac_fn_c_try_compile "$LINENO"
20637then :
20638
20639else case e in #(
20640  e) CC="$CC -D_FILE_OFFSET_BITS=64"
20641	    if ac_fn_c_try_compile "$LINENO"
20642then :
20643  ac_opt='-D_FILE_OFFSET_BITS=64'
20644fi
20645rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20646esac
20647fi
20648rm -f core conftest.err conftest.$ac_objext conftest.beam
20649fi
20650      ac_cv_sys_largefile_opts=$ac_opt
20651      ac_opt_found=yes
20652fi
20653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20654    test $ac_opt_found = no || break
20655  done
20656  CC="$ac_save_CC"
20657
20658  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20659esac
20660fi
20661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20662printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20663
20664ac_have_largefile=yes
20665case $ac_cv_sys_largefile_opts in #(
20666  "none needed") :
20667     ;; #(
20668  "supported through gnulib") :
20669     ;; #(
20670  "support not detected") :
20671    ac_have_largefile=no ;; #(
20672  "-D_FILE_OFFSET_BITS=64") :
20673
20674printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
20675 ;; #(
20676  "-D_LARGE_FILES=1") :
20677
20678printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
20679 ;; #(
20680  "-n32") :
20681    CC="$CC -n32" ;; #(
20682  *) :
20683    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
20684esac
20685
20686if test "$enable_year2038" != no
20687then :
20688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
20689printf %s "checking for $CC option for timestamps after 2038... " >&6; }
20690if test ${ac_cv_sys_year2038_opts+y}
20691then :
20692  printf %s "(cached) " >&6
20693else case e in #(
20694  e) ac_save_CPPFLAGS="$CPPFLAGS"
20695  ac_opt_found=no
20696  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
20697    if test x"$ac_opt" != x"none needed"
20698then :
20699  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
20700fi
20701    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20702/* end confdefs.h.  */
20703
20704  #include <time.h>
20705  /* Check that time_t can represent 2**32 - 1 correctly.  */
20706  #define LARGE_TIME_T \\
20707    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
20708  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
20709                           && LARGE_TIME_T % 65537 == 0)
20710                          ? 1 : -1];
20711
20712int
20713main (void)
20714{
20715
20716  ;
20717  return 0;
20718}
20719_ACEOF
20720if ac_fn_c_try_compile "$LINENO"
20721then :
20722  ac_cv_sys_year2038_opts="$ac_opt"
20723      ac_opt_found=yes
20724fi
20725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20726    test $ac_opt_found = no || break
20727  done
20728  CPPFLAGS="$ac_save_CPPFLAGS"
20729  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
20730esac
20731fi
20732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
20733printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
20734
20735ac_have_year2038=yes
20736case $ac_cv_sys_year2038_opts in #(
20737  "none needed") :
20738     ;; #(
20739  "support not detected") :
20740    ac_have_year2038=no ;; #(
20741  "-D_TIME_BITS=64") :
20742
20743printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
20744 ;; #(
20745  "-D__MINGW_USE_VC2005_COMPAT") :
20746
20747printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
20748 ;; #(
20749  "-U_USE_32_BIT_TIME_T"*) :
20750    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20751printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20752as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
20753will stop working after mid-January 2038. Remove
20754_USE_32BIT_TIME_T from the compiler flags.
20755See 'config.log' for more details" "$LINENO" 5; } ;; #(
20756  *) :
20757    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
20758esac
20759
20760fi
20761
20762fi
20763
20764
20765# Check whether --enable-futex was given.
20766if test ${enable_futex+y}
20767then :
20768  enableval=$enable_futex; FUTEX=$enableval
20769else case e in #(
20770  e) FUTEX=auto ;;
20771esac
20772fi
20773
20774
20775if test "x$FUTEX" = "xauto"; then
20776	ac_fn_c_check_header_compile "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default"
20777if test "x$ac_cv_header_linux_futex_h" = xyes
20778then :
20779  FUTEX=yes
20780fi
20781
20782fi
20783
20784if test "x$FUTEX" = "xauto"; then
20785	ac_fn_c_check_header_compile "$LINENO" "sys/umtx.h" "ac_cv_header_sys_umtx_h" "#include <errno.h>
20786	     #include <sys/types.h>
20787"
20788if test "x$ac_cv_header_sys_umtx_h" = xyes
20789then :
20790  FUTEX=yes
20791else case e in #(
20792  e) FUTEX=no ;;
20793esac
20794fi
20795
20796	if test "x$FUTEX" = "xyes"; then
20797
20798printf "%s\n" "#define HAVE_UMTX 1" >>confdefs.h
20799
20800	fi
20801fi
20802
20803if test "x$FUTEX" = "xyes"; then
20804	PTHREAD=no
20805
20806printf "%s\n" "#define HAVE_FUTEX 1" >>confdefs.h
20807
20808else
20809	PTHREAD=yes
20810
20811printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20812
20813fi
20814
20815PTHREAD_LIBS=
20816if test "x$PTHREAD" = "xyes"; then
20817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
20818printf %s "checking for pthread_create in -lpthread... " >&6; }
20819if test ${ac_cv_lib_pthread_pthread_create+y}
20820then :
20821  printf %s "(cached) " >&6
20822else case e in #(
20823  e) ac_check_lib_save_LIBS=$LIBS
20824LIBS="-lpthread  $LIBS"
20825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826/* end confdefs.h.  */
20827
20828/* Override any GCC internal prototype to avoid an error.
20829   Use char because int might match the return type of a GCC
20830   builtin and then its argument prototype would still apply.
20831   The 'extern "C"' is for builds by C++ compilers;
20832   although this is not generally supported in C code supporting it here
20833   has little cost and some practical benefit (sr 110532).  */
20834#ifdef __cplusplus
20835extern "C"
20836#endif
20837char pthread_create (void);
20838int
20839main (void)
20840{
20841return pthread_create ();
20842  ;
20843  return 0;
20844}
20845_ACEOF
20846if ac_fn_c_try_link "$LINENO"
20847then :
20848  ac_cv_lib_pthread_pthread_create=yes
20849else case e in #(
20850  e) ac_cv_lib_pthread_pthread_create=no ;;
20851esac
20852fi
20853rm -f core conftest.err conftest.$ac_objext conftest.beam \
20854    conftest$ac_exeext conftest.$ac_ext
20855LIBS=$ac_check_lib_save_LIBS ;;
20856esac
20857fi
20858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
20859printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
20860if test "x$ac_cv_lib_pthread_pthread_create" = xyes
20861then :
20862  PTHREAD_LIBS=-lpthread
20863else case e in #(
20864  e) PTHREAD_LIBS= ;;
20865esac
20866fi
20867
20868fi
20869
20870
20871
20872 if test x"$FUTEX" = xyes; then
20873  FUTEX_TRUE=
20874  FUTEX_FALSE='#'
20875else
20876  FUTEX_TRUE='#'
20877  FUTEX_FALSE=
20878fi
20879
20880 if test x"$PTHREAD" = xyes; then
20881  PTHREAD_TRUE=
20882  PTHREAD_FALSE='#'
20883else
20884  PTHREAD_TRUE='#'
20885  PTHREAD_FALSE=
20886fi
20887
20888
20889
20890pkg_failed=no
20891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
20892printf %s "checking for XPROTO... " >&6; }
20893
20894if test -n "$XPROTO_CFLAGS"; then
20895    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
20896 elif test -n "$PKG_CONFIG"; then
20897    if test -n "$PKG_CONFIG" && \
20898    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20899  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20900  ac_status=$?
20901  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20902  test $ac_status = 0; }; then
20903  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20904		      test "x$?" != "x0" && pkg_failed=yes
20905else
20906  pkg_failed=yes
20907fi
20908 else
20909    pkg_failed=untried
20910fi
20911if test -n "$XPROTO_LIBS"; then
20912    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
20913 elif test -n "$PKG_CONFIG"; then
20914    if test -n "$PKG_CONFIG" && \
20915    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20916  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20917  ac_status=$?
20918  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919  test $ac_status = 0; }; then
20920  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20921		      test "x$?" != "x0" && pkg_failed=yes
20922else
20923  pkg_failed=yes
20924fi
20925 else
20926    pkg_failed=untried
20927fi
20928
20929
20930
20931if test $pkg_failed = yes; then
20932   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20933printf "%s\n" "no" >&6; }
20934
20935if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20936        _pkg_short_errors_supported=yes
20937else
20938        _pkg_short_errors_supported=no
20939fi
20940        if test $_pkg_short_errors_supported = yes; then
20941	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
20942        else
20943	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
20944        fi
20945	# Put the nasty error message in config.log where it belongs
20946	echo "$XPROTO_PKG_ERRORS" >&5
20947
20948	as_fn_error $? "Package requirements (xproto) were not met:
20949
20950$XPROTO_PKG_ERRORS
20951
20952Consider adjusting the PKG_CONFIG_PATH environment variable if you
20953installed software in a non-standard prefix.
20954
20955Alternatively, you may set the environment variables XPROTO_CFLAGS
20956and XPROTO_LIBS to avoid the need to call pkg-config.
20957See the pkg-config man page for more details." "$LINENO" 5
20958elif test $pkg_failed = untried; then
20959     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960printf "%s\n" "no" >&6; }
20961	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20962printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20963as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20964is in your PATH or set the PKG_CONFIG environment variable to the full
20965path to pkg-config.
20966
20967Alternatively, you may set the environment variables XPROTO_CFLAGS
20968and XPROTO_LIBS to avoid the need to call pkg-config.
20969See the pkg-config man page for more details.
20970
20971To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20972See 'config.log' for more details" "$LINENO" 5; }
20973else
20974	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
20975	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
20976        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20977printf "%s\n" "yes" >&6; }
20978
20979fi
20980
20981
20982
20983CFLAGS="$CFLAGS $XPROTO_CFLAGS"
20984
20985ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
20986if test "x$ac_cv_func_memfd_create" = xyes
20987then :
20988  printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
20989
20990fi
20991ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
20992if test "x$ac_cv_func_mkostemp" = xyes
20993then :
20994  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
20995
20996fi
20997
20998
20999ac_fn_check_decl "$LINENO" "__NR_memfd_create" "ac_cv_have_decl___NR_memfd_create" "#include <asm/unistd.h>
21000" "$ac_c_undeclared_builtin_options" "CFLAGS"
21001if test "x$ac_cv_have_decl___NR_memfd_create" = xyes
21002then :
21003  ac_have_decl=1
21004else case e in #(
21005  e) ac_have_decl=0 ;;
21006esac
21007fi
21008printf "%s\n" "#define HAVE_DECL___NR_MEMFD_CREATE $ac_have_decl" >>confdefs.h
21009
21010
21011       for ac_header in sys/memfd.h
21012do :
21013  ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
21014if test "x$ac_cv_header_sys_memfd_h" = xyes
21015then :
21016  printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
21017
21018printf "%s\n" "#define HAVE_MEMFD_H 1" >>confdefs.h
21019
21020fi
21021
21022done
21023
21024# Check whether --enable-visibility was given.
21025if test ${enable_visibility+y}
21026then :
21027  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
21028else case e in #(
21029  e) SYMBOL_VISIBILITY=auto ;;
21030esac
21031fi
21032
21033
21034symbol_visibility=
21035have_visibility=disabled
21036if test x$SYMBOL_VISIBILITY != xno; then
21037    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
21038printf %s "checking for symbol visibility support... " >&6; }
21039    if test x$GCC = xyes; then
21040	VISIBILITY_CFLAGS="-fvisibility=hidden"
21041    else
21042	if test x$SUNCC = xyes; then
21043	    VISIBILITY_CFLAGS="-xldscope=hidden"
21044	else
21045	    have_visibility=no
21046	fi
21047    fi
21048    if test x$have_visibility != xno; then
21049	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050/* end confdefs.h.  */
21051#include <X11/Xfuncproto.h>
21052	     extern _X_HIDDEN int hidden_int;
21053	     extern _X_EXPORT int public_int;
21054	     extern _X_HIDDEN int hidden_int_func(void);
21055	     extern _X_EXPORT int public_int_func(void);
21056int
21057main (void)
21058{
21059
21060  ;
21061  return 0;
21062}
21063_ACEOF
21064if ac_fn_c_try_compile "$LINENO"
21065then :
21066  have_visibility=yes
21067else case e in #(
21068  e) have_visibility=no ;;
21069esac
21070fi
21071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21072    fi
21073    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
21074printf "%s\n" "$have_visibility" >&6; }
21075    if test x$have_visibility != xno; then
21076	symbol_visibility=$VISIBILITY_CFLAGS
21077	CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
21078    fi
21079fi
21080
21081
21082# Check whether --with-shared-memory-dir was given.
21083if test ${with_shared_memory_dir+y}
21084then :
21085  withval=$with_shared_memory_dir;
21086else case e in #(
21087  e) with_shared_memory_dir=yes ;;
21088esac
21089fi
21090
21091
21092shmdirs="/run/shm /dev/shm /var/tmp /tmp"
21093
21094case x"$with_shared_memory_dir" in
21095xyes)
21096	for dir in $shmdirs; do
21097		case x"$with_shared_memory_dir" in
21098		xyes)
21099			echo Checking temp dir "$dir"
21100			if test -d "$dir"; then
21101				with_shared_memory_dir="$dir"
21102			fi
21103			;;
21104		esac
21105	done
21106	;;
21107x/*)
21108	;;
21109xno)
21110	;;
21111*)
21112	as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5
21113	;;
21114esac
21115
21116case x"$with_shared_memory_dir" in
21117xyes)
21118	as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5
21119	;;
21120xno)
21121	;;
21122*)
21123
21124printf "%s\n" "#define SHMDIR \"$with_shared_memory_dir\"" >>confdefs.h
21125
21126	;;
21127esac
21128
21129ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile xshmfence.pc"
21130
21131cat >confcache <<\_ACEOF
21132# This file is a shell script that caches the results of configure
21133# tests run on this system so they can be shared between configure
21134# scripts and configure runs, see configure's option --config-cache.
21135# It is not useful on other systems.  If it contains results you don't
21136# want to keep, you may remove or edit it.
21137#
21138# config.status only pays attention to the cache file if you give it
21139# the --recheck option to rerun configure.
21140#
21141# 'ac_cv_env_foo' variables (set or unset) will be overridden when
21142# loading this file, other *unset* 'ac_cv_foo' will be assigned the
21143# following values.
21144
21145_ACEOF
21146
21147# The following way of writing the cache mishandles newlines in values,
21148# but we know of no workaround that is simple, portable, and efficient.
21149# So, we kill variables containing newlines.
21150# Ultrix sh set writes to stderr and can't be redirected directly,
21151# and sets the high bit in the cache file unless we assign to the vars.
21152(
21153  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21154    eval ac_val=\$$ac_var
21155    case $ac_val in #(
21156    *${as_nl}*)
21157      case $ac_var in #(
21158      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21159printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21160      esac
21161      case $ac_var in #(
21162      _ | IFS | as_nl) ;; #(
21163      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21164      *) { eval $ac_var=; unset $ac_var;} ;;
21165      esac ;;
21166    esac
21167  done
21168
21169  (set) 2>&1 |
21170    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21171    *${as_nl}ac_space=\ *)
21172      # 'set' does not quote correctly, so add quotes: double-quote
21173      # substitution turns \\\\ into \\, and sed turns \\ into \.
21174      sed -n \
21175	"s/'/'\\\\''/g;
21176	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21177      ;; #(
21178    *)
21179      # 'set' quotes correctly as required by POSIX, so do not add quotes.
21180      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21181      ;;
21182    esac |
21183    sort
21184) |
21185  sed '
21186     /^ac_cv_env_/b end
21187     t clear
21188     :clear
21189     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21190     t end
21191     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21192     :end' >>confcache
21193if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21194  if test -w "$cache_file"; then
21195    if test "x$cache_file" != "x/dev/null"; then
21196      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21197printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21198      if test ! -f "$cache_file" || test -h "$cache_file"; then
21199	cat confcache >"$cache_file"
21200      else
21201        case $cache_file in #(
21202        */* | ?:*)
21203	  mv -f confcache "$cache_file"$$ &&
21204	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21205        *)
21206	  mv -f confcache "$cache_file" ;;
21207	esac
21208      fi
21209    fi
21210  else
21211    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21212printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21213  fi
21214fi
21215rm -f confcache
21216
21217test "x$prefix" = xNONE && prefix=$ac_default_prefix
21218# Let make expand exec_prefix.
21219test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21220
21221DEFS=-DHAVE_CONFIG_H
21222
21223ac_libobjs=
21224ac_ltlibobjs=
21225U=
21226for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21227  # 1. Remove the extension, and $U if already installed.
21228  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21229  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21230  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21231  #    will be set to the directory where LIBOBJS objects are built.
21232  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21233  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21234done
21235LIBOBJS=$ac_libobjs
21236
21237LTLIBOBJS=$ac_ltlibobjs
21238
21239
21240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21241printf %s "checking that generated files are newer than configure... " >&6; }
21242   if test -n "$am_sleep_pid"; then
21243     # Hide warnings about reused PIDs.
21244     wait $am_sleep_pid 2>/dev/null
21245   fi
21246   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21247printf "%s\n" "done" >&6; }
21248if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21249  as_fn_error $? "conditional \"AMDEP\" was never defined.
21250Usually this means the macro was only invoked conditionally." "$LINENO" 5
21251fi
21252if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21253  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21254Usually this means the macro was only invoked conditionally." "$LINENO" 5
21255fi
21256case $enable_silent_rules in # (((
21257  yes) AM_DEFAULT_VERBOSITY=0;;
21258   no) AM_DEFAULT_VERBOSITY=1;;
21259esac
21260if test $am_cv_make_support_nested_variables = yes; then
21261    AM_V='$(V)'
21262  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21263else
21264  AM_V=$AM_DEFAULT_VERBOSITY
21265  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21266fi
21267
21268 if test -n "$EXEEXT"; then
21269  am__EXEEXT_TRUE=
21270  am__EXEEXT_FALSE='#'
21271else
21272  am__EXEEXT_TRUE='#'
21273  am__EXEEXT_FALSE=
21274fi
21275
21276if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21277  as_fn_error $? "conditional \"LINT\" was never defined.
21278Usually this means the macro was only invoked conditionally." "$LINENO" 5
21279fi
21280# Check whether --enable-year2038 was given.
21281if test ${enable_year2038+y}
21282then :
21283  enableval=$enable_year2038;
21284fi
21285
21286if test -z "${FUTEX_TRUE}" && test -z "${FUTEX_FALSE}"; then
21287  as_fn_error $? "conditional \"FUTEX\" was never defined.
21288Usually this means the macro was only invoked conditionally." "$LINENO" 5
21289fi
21290if test -z "${PTHREAD_TRUE}" && test -z "${PTHREAD_FALSE}"; then
21291  as_fn_error $? "conditional \"PTHREAD\" was never defined.
21292Usually this means the macro was only invoked conditionally." "$LINENO" 5
21293fi
21294
21295: "${CONFIG_STATUS=./config.status}"
21296ac_write_fail=0
21297ac_clean_files_save=$ac_clean_files
21298ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21300printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21301as_write_fail=0
21302cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21303#! $SHELL
21304# Generated by $as_me.
21305# Run this file to recreate the current configuration.
21306# Compiler output produced by configure, useful for debugging
21307# configure, is in config.log if it exists.
21308
21309debug=false
21310ac_cs_recheck=false
21311ac_cs_silent=false
21312
21313SHELL=\${CONFIG_SHELL-$SHELL}
21314export SHELL
21315_ASEOF
21316cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21317## -------------------- ##
21318## M4sh Initialization. ##
21319## -------------------- ##
21320
21321# Be more Bourne compatible
21322DUALCASE=1; export DUALCASE # for MKS sh
21323if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21324then :
21325  emulate sh
21326  NULLCMD=:
21327  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21328  # is contrary to our usage.  Disable this feature.
21329  alias -g '${1+"$@"}'='"$@"'
21330  setopt NO_GLOB_SUBST
21331else case e in #(
21332  e) case `(set -o) 2>/dev/null` in #(
21333  *posix*) :
21334    set -o posix ;; #(
21335  *) :
21336     ;;
21337esac ;;
21338esac
21339fi
21340
21341
21342
21343# Reset variables that may have inherited troublesome values from
21344# the environment.
21345
21346# IFS needs to be set, to space, tab, and newline, in precisely that order.
21347# (If _AS_PATH_WALK were called with IFS unset, it would have the
21348# side effect of setting IFS to empty, thus disabling word splitting.)
21349# Quoting is to prevent editors from complaining about space-tab.
21350as_nl='
21351'
21352export as_nl
21353IFS=" ""	$as_nl"
21354
21355PS1='$ '
21356PS2='> '
21357PS4='+ '
21358
21359# Ensure predictable behavior from utilities with locale-dependent output.
21360LC_ALL=C
21361export LC_ALL
21362LANGUAGE=C
21363export LANGUAGE
21364
21365# We cannot yet rely on "unset" to work, but we need these variables
21366# to be unset--not just set to an empty or harmless value--now, to
21367# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
21368# also avoids known problems related to "unset" and subshell syntax
21369# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21370for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21371do eval test \${$as_var+y} \
21372  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21373done
21374
21375# Ensure that fds 0, 1, and 2 are open.
21376if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21377if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21378if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
21379
21380# The user is always right.
21381if ${PATH_SEPARATOR+false} :; then
21382  PATH_SEPARATOR=:
21383  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21384    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21385      PATH_SEPARATOR=';'
21386  }
21387fi
21388
21389
21390# Find who we are.  Look in the path if we contain no directory separator.
21391as_myself=
21392case $0 in #((
21393  *[\\/]* ) as_myself=$0 ;;
21394  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21395for as_dir in $PATH
21396do
21397  IFS=$as_save_IFS
21398  case $as_dir in #(((
21399    '') as_dir=./ ;;
21400    */) ;;
21401    *) as_dir=$as_dir/ ;;
21402  esac
21403    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21404  done
21405IFS=$as_save_IFS
21406
21407     ;;
21408esac
21409# We did not find ourselves, most probably we were run as 'sh COMMAND'
21410# in which case we are not to be found in the path.
21411if test "x$as_myself" = x; then
21412  as_myself=$0
21413fi
21414if test ! -f "$as_myself"; then
21415  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21416  exit 1
21417fi
21418
21419
21420
21421# as_fn_error STATUS ERROR [LINENO LOG_FD]
21422# ----------------------------------------
21423# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21424# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21425# script with STATUS, using 1 if that was 0.
21426as_fn_error ()
21427{
21428  as_status=$1; test $as_status -eq 0 && as_status=1
21429  if test "$4"; then
21430    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21431    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21432  fi
21433  printf "%s\n" "$as_me: error: $2" >&2
21434  as_fn_exit $as_status
21435} # as_fn_error
21436
21437
21438# as_fn_set_status STATUS
21439# -----------------------
21440# Set $? to STATUS, without forking.
21441as_fn_set_status ()
21442{
21443  return $1
21444} # as_fn_set_status
21445
21446# as_fn_exit STATUS
21447# -----------------
21448# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21449as_fn_exit ()
21450{
21451  set +e
21452  as_fn_set_status $1
21453  exit $1
21454} # as_fn_exit
21455
21456# as_fn_unset VAR
21457# ---------------
21458# Portably unset VAR.
21459as_fn_unset ()
21460{
21461  { eval $1=; unset $1;}
21462}
21463as_unset=as_fn_unset
21464
21465# as_fn_append VAR VALUE
21466# ----------------------
21467# Append the text in VALUE to the end of the definition contained in VAR. Take
21468# advantage of any shell optimizations that allow amortized linear growth over
21469# repeated appends, instead of the typical quadratic growth present in naive
21470# implementations.
21471if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21472then :
21473  eval 'as_fn_append ()
21474  {
21475    eval $1+=\$2
21476  }'
21477else case e in #(
21478  e) as_fn_append ()
21479  {
21480    eval $1=\$$1\$2
21481  } ;;
21482esac
21483fi # as_fn_append
21484
21485# as_fn_arith ARG...
21486# ------------------
21487# Perform arithmetic evaluation on the ARGs, and store the result in the
21488# global $as_val. Take advantage of shells that can avoid forks. The arguments
21489# must be portable across $(()) and expr.
21490if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21491then :
21492  eval 'as_fn_arith ()
21493  {
21494    as_val=$(( $* ))
21495  }'
21496else case e in #(
21497  e) as_fn_arith ()
21498  {
21499    as_val=`expr "$@" || test $? -eq 1`
21500  } ;;
21501esac
21502fi # as_fn_arith
21503
21504
21505if expr a : '\(a\)' >/dev/null 2>&1 &&
21506   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21507  as_expr=expr
21508else
21509  as_expr=false
21510fi
21511
21512if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21513  as_basename=basename
21514else
21515  as_basename=false
21516fi
21517
21518if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21519  as_dirname=dirname
21520else
21521  as_dirname=false
21522fi
21523
21524as_me=`$as_basename -- "$0" ||
21525$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21526	 X"$0" : 'X\(//\)$' \| \
21527	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21528printf "%s\n" X/"$0" |
21529    sed '/^.*\/\([^/][^/]*\)\/*$/{
21530	    s//\1/
21531	    q
21532	  }
21533	  /^X\/\(\/\/\)$/{
21534	    s//\1/
21535	    q
21536	  }
21537	  /^X\/\(\/\).*/{
21538	    s//\1/
21539	    q
21540	  }
21541	  s/.*/./; q'`
21542
21543# Avoid depending upon Character Ranges.
21544as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547as_cr_digits='0123456789'
21548as_cr_alnum=$as_cr_Letters$as_cr_digits
21549
21550
21551# Determine whether it's possible to make 'echo' print without a newline.
21552# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21553# for compatibility with existing Makefiles.
21554ECHO_C= ECHO_N= ECHO_T=
21555case `echo -n x` in #(((((
21556-n*)
21557  case `echo 'xy\c'` in
21558  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21559  xy)  ECHO_C='\c';;
21560  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21561       ECHO_T='	';;
21562  esac;;
21563*)
21564  ECHO_N='-n';;
21565esac
21566
21567# For backward compatibility with old third-party macros, we provide
21568# the shell variables $as_echo and $as_echo_n.  New code should use
21569# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21570as_echo='printf %s\n'
21571as_echo_n='printf %s'
21572
21573rm -f conf$$ conf$$.exe conf$$.file
21574if test -d conf$$.dir; then
21575  rm -f conf$$.dir/conf$$.file
21576else
21577  rm -f conf$$.dir
21578  mkdir conf$$.dir 2>/dev/null
21579fi
21580if (echo >conf$$.file) 2>/dev/null; then
21581  if ln -s conf$$.file conf$$ 2>/dev/null; then
21582    as_ln_s='ln -s'
21583    # ... but there are two gotchas:
21584    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21585    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21586    # In both cases, we have to default to 'cp -pR'.
21587    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21588      as_ln_s='cp -pR'
21589  elif ln conf$$.file conf$$ 2>/dev/null; then
21590    as_ln_s=ln
21591  else
21592    as_ln_s='cp -pR'
21593  fi
21594else
21595  as_ln_s='cp -pR'
21596fi
21597rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21598rmdir conf$$.dir 2>/dev/null
21599
21600
21601# as_fn_mkdir_p
21602# -------------
21603# Create "$as_dir" as a directory, including parents if necessary.
21604as_fn_mkdir_p ()
21605{
21606
21607  case $as_dir in #(
21608  -*) as_dir=./$as_dir;;
21609  esac
21610  test -d "$as_dir" || eval $as_mkdir_p || {
21611    as_dirs=
21612    while :; do
21613      case $as_dir in #(
21614      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21615      *) as_qdir=$as_dir;;
21616      esac
21617      as_dirs="'$as_qdir' $as_dirs"
21618      as_dir=`$as_dirname -- "$as_dir" ||
21619$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620	 X"$as_dir" : 'X\(//\)[^/]' \| \
21621	 X"$as_dir" : 'X\(//\)$' \| \
21622	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21623printf "%s\n" X"$as_dir" |
21624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21625	    s//\1/
21626	    q
21627	  }
21628	  /^X\(\/\/\)[^/].*/{
21629	    s//\1/
21630	    q
21631	  }
21632	  /^X\(\/\/\)$/{
21633	    s//\1/
21634	    q
21635	  }
21636	  /^X\(\/\).*/{
21637	    s//\1/
21638	    q
21639	  }
21640	  s/.*/./; q'`
21641      test -d "$as_dir" && break
21642    done
21643    test -z "$as_dirs" || eval "mkdir $as_dirs"
21644  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21645
21646
21647} # as_fn_mkdir_p
21648if mkdir -p . 2>/dev/null; then
21649  as_mkdir_p='mkdir -p "$as_dir"'
21650else
21651  test -d ./-p && rmdir ./-p
21652  as_mkdir_p=false
21653fi
21654
21655
21656# as_fn_executable_p FILE
21657# -----------------------
21658# Test if FILE is an executable regular file.
21659as_fn_executable_p ()
21660{
21661  test -f "$1" && test -x "$1"
21662} # as_fn_executable_p
21663as_test_x='test -x'
21664as_executable_p=as_fn_executable_p
21665
21666# Sed expression to map a string onto a valid CPP name.
21667as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21668as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21669
21670# Sed expression to map a string onto a valid variable name.
21671as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21672as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21673
21674
21675exec 6>&1
21676## ----------------------------------- ##
21677## Main body of $CONFIG_STATUS script. ##
21678## ----------------------------------- ##
21679_ASEOF
21680test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21681
21682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21683# Save the log message, to keep $0 and so on meaningful, and to
21684# report actual input values of CONFIG_FILES etc. instead of their
21685# values after options handling.
21686ac_log="
21687This file was extended by libxshmfence $as_me 1.3.3, which was
21688generated by GNU Autoconf 2.72.  Invocation command line was
21689
21690  CONFIG_FILES    = $CONFIG_FILES
21691  CONFIG_HEADERS  = $CONFIG_HEADERS
21692  CONFIG_LINKS    = $CONFIG_LINKS
21693  CONFIG_COMMANDS = $CONFIG_COMMANDS
21694  $ $0 $@
21695
21696on `(hostname || uname -n) 2>/dev/null | sed 1q`
21697"
21698
21699_ACEOF
21700
21701case $ac_config_files in *"
21702"*) set x $ac_config_files; shift; ac_config_files=$*;;
21703esac
21704
21705case $ac_config_headers in *"
21706"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21707esac
21708
21709
21710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21711# Files that config.status was made for.
21712config_files="$ac_config_files"
21713config_headers="$ac_config_headers"
21714config_commands="$ac_config_commands"
21715
21716_ACEOF
21717
21718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21719ac_cs_usage="\
21720'$as_me' instantiates files and other configuration actions
21721from templates according to the current configuration.  Unless the files
21722and actions are specified as TAGs, all are instantiated by default.
21723
21724Usage: $0 [OPTION]... [TAG]...
21725
21726  -h, --help       print this help, then exit
21727  -V, --version    print version number and configuration settings, then exit
21728      --config     print configuration, then exit
21729  -q, --quiet, --silent
21730                   do not print progress messages
21731  -d, --debug      don't remove temporary files
21732      --recheck    update $as_me by reconfiguring in the same conditions
21733      --file=FILE[:TEMPLATE]
21734                   instantiate the configuration file FILE
21735      --header=FILE[:TEMPLATE]
21736                   instantiate the configuration header FILE
21737
21738Configuration files:
21739$config_files
21740
21741Configuration headers:
21742$config_headers
21743
21744Configuration commands:
21745$config_commands
21746
21747Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>."
21748
21749_ACEOF
21750ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21751ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21753ac_cs_config='$ac_cs_config_escaped'
21754ac_cs_version="\\
21755libxshmfence config.status 1.3.3
21756configured by $0, generated by GNU Autoconf 2.72,
21757  with options \\"\$ac_cs_config\\"
21758
21759Copyright (C) 2023 Free Software Foundation, Inc.
21760This config.status script is free software; the Free Software Foundation
21761gives unlimited permission to copy, distribute and modify it."
21762
21763ac_pwd='$ac_pwd'
21764srcdir='$srcdir'
21765INSTALL='$INSTALL'
21766MKDIR_P='$MKDIR_P'
21767AWK='$AWK'
21768test -n "\$AWK" || AWK=awk
21769_ACEOF
21770
21771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21772# The default lists apply if the user does not specify any file.
21773ac_need_defaults=:
21774while test $# != 0
21775do
21776  case $1 in
21777  --*=?*)
21778    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21779    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21780    ac_shift=:
21781    ;;
21782  --*=)
21783    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21784    ac_optarg=
21785    ac_shift=:
21786    ;;
21787  *)
21788    ac_option=$1
21789    ac_optarg=$2
21790    ac_shift=shift
21791    ;;
21792  esac
21793
21794  case $ac_option in
21795  # Handling of the options.
21796  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21797    ac_cs_recheck=: ;;
21798  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21799    printf "%s\n" "$ac_cs_version"; exit ;;
21800  --config | --confi | --conf | --con | --co | --c )
21801    printf "%s\n" "$ac_cs_config"; exit ;;
21802  --debug | --debu | --deb | --de | --d | -d )
21803    debug=: ;;
21804  --file | --fil | --fi | --f )
21805    $ac_shift
21806    case $ac_optarg in
21807    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21808    '') as_fn_error $? "missing file argument" ;;
21809    esac
21810    as_fn_append CONFIG_FILES " '$ac_optarg'"
21811    ac_need_defaults=false;;
21812  --header | --heade | --head | --hea )
21813    $ac_shift
21814    case $ac_optarg in
21815    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21816    esac
21817    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21818    ac_need_defaults=false;;
21819  --he | --h)
21820    # Conflict between --help and --header
21821    as_fn_error $? "ambiguous option: '$1'
21822Try '$0 --help' for more information.";;
21823  --help | --hel | -h )
21824    printf "%s\n" "$ac_cs_usage"; exit ;;
21825  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21826  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21827    ac_cs_silent=: ;;
21828
21829  # This is an error.
21830  -*) as_fn_error $? "unrecognized option: '$1'
21831Try '$0 --help' for more information." ;;
21832
21833  *) as_fn_append ac_config_targets " $1"
21834     ac_need_defaults=false ;;
21835
21836  esac
21837  shift
21838done
21839
21840ac_configure_extra_args=
21841
21842if $ac_cs_silent; then
21843  exec 6>/dev/null
21844  ac_configure_extra_args="$ac_configure_extra_args --silent"
21845fi
21846
21847_ACEOF
21848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21849if \$ac_cs_recheck; then
21850  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21851  shift
21852  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21853  CONFIG_SHELL='$SHELL'
21854  export CONFIG_SHELL
21855  exec "\$@"
21856fi
21857
21858_ACEOF
21859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21860exec 5>>config.log
21861{
21862  echo
21863  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21864## Running $as_me. ##
21865_ASBOX
21866  printf "%s\n" "$ac_log"
21867} >&5
21868
21869_ACEOF
21870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21871#
21872# INIT-COMMANDS
21873#
21874AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21875
21876
21877# The HP-UX ksh and POSIX shell print the target directory to stdout
21878# if CDPATH is set.
21879(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21880
21881sed_quote_subst='$sed_quote_subst'
21882double_quote_subst='$double_quote_subst'
21883delay_variable_subst='$delay_variable_subst'
21884macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21885macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21886enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21887enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21888pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21889enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21890shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21891SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21892ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21893PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21894host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21895host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21896host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21897build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21898build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21899build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21900SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21901Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21902GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21903EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21904FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21905LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21906NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21907LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21908max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21909ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21910exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21911lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21912lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21913lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21914lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21915lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21916reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21917reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21918FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21919OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21920deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21921file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21922file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21923want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21924DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21925sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21926AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21927lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21928AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21929archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21930STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21931RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21932old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21933old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21934old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21935lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21936CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21937CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21938compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21939GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21940lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21941lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21942lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21943lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21944lt_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"`'
21945lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21946nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21947lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21948lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21949objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21950MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21951lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21952lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21953lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21954lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21955lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21956need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21957MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21958DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21959NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21960LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21961OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21962OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21963libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21964shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21965extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21966archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21967enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21968export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21969whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21970compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21971old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21972old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21973archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21974archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21975module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21976module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21977with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21978allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21979no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21980hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21981hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21982hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21983hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21984hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21985hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21986hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21987inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21988link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21989always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21990export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21991exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21992include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21993prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21994postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21995file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21996variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21997need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21998need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21999version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22000runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22001shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22002shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22003libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22004library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22005soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22006install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22007postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22008postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22009finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22010finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22011hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22012sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22013configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22014configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22015hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22016enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22017enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22018enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22019old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22020striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22021
22022LTCC='$LTCC'
22023LTCFLAGS='$LTCFLAGS'
22024compiler='$compiler_DEFAULT'
22025
22026# A function that is used when there is no print builtin or printf.
22027func_fallback_echo ()
22028{
22029  eval 'cat <<_LTECHO_EOF
22030\$1
22031_LTECHO_EOF'
22032}
22033
22034# Quote evaled strings.
22035for var in SHELL \
22036ECHO \
22037PATH_SEPARATOR \
22038SED \
22039GREP \
22040EGREP \
22041FGREP \
22042LD \
22043NM \
22044LN_S \
22045lt_SP2NL \
22046lt_NL2SP \
22047reload_flag \
22048FILECMD \
22049OBJDUMP \
22050deplibs_check_method \
22051file_magic_cmd \
22052file_magic_glob \
22053want_nocaseglob \
22054DLLTOOL \
22055sharedlib_from_linklib_cmd \
22056AR \
22057archiver_list_spec \
22058STRIP \
22059RANLIB \
22060CC \
22061CFLAGS \
22062compiler \
22063lt_cv_sys_global_symbol_pipe \
22064lt_cv_sys_global_symbol_to_cdecl \
22065lt_cv_sys_global_symbol_to_import \
22066lt_cv_sys_global_symbol_to_c_name_address \
22067lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22068lt_cv_nm_interface \
22069nm_file_list_spec \
22070lt_cv_truncate_bin \
22071lt_prog_compiler_no_builtin_flag \
22072lt_prog_compiler_pic \
22073lt_prog_compiler_wl \
22074lt_prog_compiler_static \
22075lt_cv_prog_compiler_c_o \
22076need_locks \
22077MANIFEST_TOOL \
22078DSYMUTIL \
22079NMEDIT \
22080LIPO \
22081OTOOL \
22082OTOOL64 \
22083shrext_cmds \
22084export_dynamic_flag_spec \
22085whole_archive_flag_spec \
22086compiler_needs_object \
22087with_gnu_ld \
22088allow_undefined_flag \
22089no_undefined_flag \
22090hardcode_libdir_flag_spec \
22091hardcode_libdir_separator \
22092exclude_expsyms \
22093include_expsyms \
22094file_list_spec \
22095variables_saved_for_relink \
22096libname_spec \
22097library_names_spec \
22098soname_spec \
22099install_override_mode \
22100finish_eval \
22101old_striplib \
22102striplib; do
22103    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22104    *[\\\\\\\`\\"\\\$]*)
22105      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22106      ;;
22107    *)
22108      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22109      ;;
22110    esac
22111done
22112
22113# Double-quote double-evaled strings.
22114for var in reload_cmds \
22115old_postinstall_cmds \
22116old_postuninstall_cmds \
22117old_archive_cmds \
22118extract_expsyms_cmds \
22119old_archive_from_new_cmds \
22120old_archive_from_expsyms_cmds \
22121archive_cmds \
22122archive_expsym_cmds \
22123module_cmds \
22124module_expsym_cmds \
22125export_symbols_cmds \
22126prelink_cmds \
22127postlink_cmds \
22128postinstall_cmds \
22129postuninstall_cmds \
22130finish_cmds \
22131sys_lib_search_path_spec \
22132configure_time_dlsearch_path \
22133configure_time_lt_sys_library_path; do
22134    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22135    *[\\\\\\\`\\"\\\$]*)
22136      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22137      ;;
22138    *)
22139      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22140      ;;
22141    esac
22142done
22143
22144ac_aux_dir='$ac_aux_dir'
22145
22146# See if we are running on zsh, and set the options that allow our
22147# commands through without removal of \ escapes INIT.
22148if test -n "\${ZSH_VERSION+set}"; then
22149   setopt NO_GLOB_SUBST
22150fi
22151
22152
22153    PACKAGE='$PACKAGE'
22154    VERSION='$VERSION'
22155    RM='$RM'
22156    ofile='$ofile'
22157
22158
22159
22160
22161_ACEOF
22162
22163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22164
22165# Handling of arguments.
22166for ac_config_target in $ac_config_targets
22167do
22168  case $ac_config_target in
22169    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22170    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22171    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22172    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22173    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22174    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
22175    "xshmfence.pc") CONFIG_FILES="$CONFIG_FILES xshmfence.pc" ;;
22176
22177  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22178  esac
22179done
22180
22181
22182# If the user did not use the arguments to specify the items to instantiate,
22183# then the envvar interface is used.  Set only those that are not.
22184# We use the long form for the default assignment because of an extremely
22185# bizarre bug on SunOS 4.1.3.
22186if $ac_need_defaults; then
22187  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22188  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22189  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22190fi
22191
22192# Have a temporary directory for convenience.  Make it in the build tree
22193# simply because there is no reason against having it here, and in addition,
22194# creating and moving files from /tmp can sometimes cause problems.
22195# Hook for its removal unless debugging.
22196# Note that there is a small window in which the directory will not be cleaned:
22197# after its creation but before its name has been assigned to '$tmp'.
22198$debug ||
22199{
22200  tmp= ac_tmp=
22201  trap 'exit_status=$?
22202  : "${ac_tmp:=$tmp}"
22203  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22204' 0
22205  trap 'as_fn_exit 1' 1 2 13 15
22206}
22207# Create a (secure) tmp directory for tmp files.
22208
22209{
22210  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22211  test -d "$tmp"
22212}  ||
22213{
22214  tmp=./conf$$-$RANDOM
22215  (umask 077 && mkdir "$tmp")
22216} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22217ac_tmp=$tmp
22218
22219# Set up the scripts for CONFIG_FILES section.
22220# No need to generate them if there are no CONFIG_FILES.
22221# This happens for instance with './config.status config.h'.
22222if test -n "$CONFIG_FILES"; then
22223
22224
22225ac_cr=`echo X | tr X '\015'`
22226# On cygwin, bash can eat \r inside `` if the user requested igncr.
22227# But we know of no other shell where ac_cr would be empty at this
22228# point, so we can use a bashism as a fallback.
22229if test "x$ac_cr" = x; then
22230  eval ac_cr=\$\'\\r\'
22231fi
22232ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22233if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22234  ac_cs_awk_cr='\\r'
22235else
22236  ac_cs_awk_cr=$ac_cr
22237fi
22238
22239echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22240_ACEOF
22241
22242
22243{
22244  echo "cat >conf$$subs.awk <<_ACEOF" &&
22245  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22246  echo "_ACEOF"
22247} >conf$$subs.sh ||
22248  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22249ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22250ac_delim='%!_!# '
22251for ac_last_try in false false false false false :; do
22252  . ./conf$$subs.sh ||
22253    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22254
22255  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22256  if test $ac_delim_n = $ac_delim_num; then
22257    break
22258  elif $ac_last_try; then
22259    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22260  else
22261    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22262  fi
22263done
22264rm -f conf$$subs.sh
22265
22266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22267cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22268_ACEOF
22269sed -n '
22270h
22271s/^/S["/; s/!.*/"]=/
22272p
22273g
22274s/^[^!]*!//
22275:repl
22276t repl
22277s/'"$ac_delim"'$//
22278t delim
22279:nl
22280h
22281s/\(.\{148\}\)..*/\1/
22282t more1
22283s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22284p
22285n
22286b repl
22287:more1
22288s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22289p
22290g
22291s/.\{148\}//
22292t nl
22293:delim
22294h
22295s/\(.\{148\}\)..*/\1/
22296t more2
22297s/["\\]/\\&/g; s/^/"/; s/$/"/
22298p
22299b
22300:more2
22301s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22302p
22303g
22304s/.\{148\}//
22305t delim
22306' <conf$$subs.awk | sed '
22307/^[^""]/{
22308  N
22309  s/\n//
22310}
22311' >>$CONFIG_STATUS || ac_write_fail=1
22312rm -f conf$$subs.awk
22313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22314_ACAWK
22315cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22316  for (key in S) S_is_set[key] = 1
22317  FS = ""
22318
22319}
22320{
22321  line = $ 0
22322  nfields = split(line, field, "@")
22323  substed = 0
22324  len = length(field[1])
22325  for (i = 2; i < nfields; i++) {
22326    key = field[i]
22327    keylen = length(key)
22328    if (S_is_set[key]) {
22329      value = S[key]
22330      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22331      len += length(value) + length(field[++i])
22332      substed = 1
22333    } else
22334      len += 1 + keylen
22335  }
22336
22337  print line
22338}
22339
22340_ACAWK
22341_ACEOF
22342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22343if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22344  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22345else
22346  cat
22347fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22348  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22349_ACEOF
22350
22351# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22352# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22353# trailing colons and then remove the whole line if VPATH becomes empty
22354# (actually we leave an empty line to preserve line numbers).
22355if test "x$srcdir" = x.; then
22356  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22357h
22358s///
22359s/^/:/
22360s/[	 ]*$/:/
22361s/:\$(srcdir):/:/g
22362s/:\${srcdir}:/:/g
22363s/:@srcdir@:/:/g
22364s/^:*//
22365s/:*$//
22366x
22367s/\(=[	 ]*\).*/\1/
22368G
22369s/\n//
22370s/^[^=]*=[	 ]*$//
22371}'
22372fi
22373
22374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22375fi # test -n "$CONFIG_FILES"
22376
22377# Set up the scripts for CONFIG_HEADERS section.
22378# No need to generate them if there are no CONFIG_HEADERS.
22379# This happens for instance with './config.status Makefile'.
22380if test -n "$CONFIG_HEADERS"; then
22381cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22382BEGIN {
22383_ACEOF
22384
22385# Transform confdefs.h into an awk script 'defines.awk', embedded as
22386# here-document in config.status, that substitutes the proper values into
22387# config.h.in to produce config.h.
22388
22389# Create a delimiter string that does not exist in confdefs.h, to ease
22390# handling of long lines.
22391ac_delim='%!_!# '
22392for ac_last_try in false false :; do
22393  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22394  if test -z "$ac_tt"; then
22395    break
22396  elif $ac_last_try; then
22397    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22398  else
22399    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22400  fi
22401done
22402
22403# For the awk script, D is an array of macro values keyed by name,
22404# likewise P contains macro parameters if any.  Preserve backslash
22405# newline sequences.
22406
22407ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22408sed -n '
22409s/.\{148\}/&'"$ac_delim"'/g
22410t rset
22411:rset
22412s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22413t def
22414d
22415:def
22416s/\\$//
22417t bsnl
22418s/["\\]/\\&/g
22419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22420D["\1"]=" \3"/p
22421s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22422d
22423:bsnl
22424s/["\\]/\\&/g
22425s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22426D["\1"]=" \3\\\\\\n"\\/p
22427t cont
22428s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22429t cont
22430d
22431:cont
22432n
22433s/.\{148\}/&'"$ac_delim"'/g
22434t clear
22435:clear
22436s/\\$//
22437t bsnlc
22438s/["\\]/\\&/g; s/^/"/; s/$/"/p
22439d
22440:bsnlc
22441s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22442b cont
22443' <confdefs.h | sed '
22444s/'"$ac_delim"'/"\\\
22445"/g' >>$CONFIG_STATUS || ac_write_fail=1
22446
22447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22448  for (key in D) D_is_set[key] = 1
22449  FS = ""
22450}
22451/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22452  line = \$ 0
22453  split(line, arg, " ")
22454  if (arg[1] == "#") {
22455    defundef = arg[2]
22456    mac1 = arg[3]
22457  } else {
22458    defundef = substr(arg[1], 2)
22459    mac1 = arg[2]
22460  }
22461  split(mac1, mac2, "(") #)
22462  macro = mac2[1]
22463  prefix = substr(line, 1, index(line, defundef) - 1)
22464  if (D_is_set[macro]) {
22465    # Preserve the white space surrounding the "#".
22466    print prefix "define", macro P[macro] D[macro]
22467    next
22468  } else {
22469    # Replace #undef with comments.  This is necessary, for example,
22470    # in the case of _POSIX_SOURCE, which is predefined and required
22471    # on some systems where configure will not decide to define it.
22472    if (defundef == "undef") {
22473      print "/*", prefix defundef, macro, "*/"
22474      next
22475    }
22476  }
22477}
22478{ print }
22479_ACAWK
22480_ACEOF
22481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22482  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22483fi # test -n "$CONFIG_HEADERS"
22484
22485
22486eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22487shift
22488for ac_tag
22489do
22490  case $ac_tag in
22491  :[FHLC]) ac_mode=$ac_tag; continue;;
22492  esac
22493  case $ac_mode$ac_tag in
22494  :[FHL]*:*);;
22495  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22496  :[FH]-) ac_tag=-:-;;
22497  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22498  esac
22499  ac_save_IFS=$IFS
22500  IFS=:
22501  set x $ac_tag
22502  IFS=$ac_save_IFS
22503  shift
22504  ac_file=$1
22505  shift
22506
22507  case $ac_mode in
22508  :L) ac_source=$1;;
22509  :[FH])
22510    ac_file_inputs=
22511    for ac_f
22512    do
22513      case $ac_f in
22514      -) ac_f="$ac_tmp/stdin";;
22515      *) # Look for the file first in the build tree, then in the source tree
22516	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22517	 # because $ac_f cannot contain ':'.
22518	 test -f "$ac_f" ||
22519	   case $ac_f in
22520	   [\\/$]*) false;;
22521	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22522	   esac ||
22523	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22524      esac
22525      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22526      as_fn_append ac_file_inputs " '$ac_f'"
22527    done
22528
22529    # Let's still pretend it is 'configure' which instantiates (i.e., don't
22530    # use $as_me), people would be surprised to read:
22531    #    /* config.h.  Generated by config.status.  */
22532    configure_input='Generated from '`
22533	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22534	`' by configure.'
22535    if test x"$ac_file" != x-; then
22536      configure_input="$ac_file.  $configure_input"
22537      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22538printf "%s\n" "$as_me: creating $ac_file" >&6;}
22539    fi
22540    # Neutralize special characters interpreted by sed in replacement strings.
22541    case $configure_input in #(
22542    *\&* | *\|* | *\\* )
22543       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22544       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22545    *) ac_sed_conf_input=$configure_input;;
22546    esac
22547
22548    case $ac_tag in
22549    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22550      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22551    esac
22552    ;;
22553  esac
22554
22555  ac_dir=`$as_dirname -- "$ac_file" ||
22556$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22557	 X"$ac_file" : 'X\(//\)[^/]' \| \
22558	 X"$ac_file" : 'X\(//\)$' \| \
22559	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22560printf "%s\n" X"$ac_file" |
22561    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22562	    s//\1/
22563	    q
22564	  }
22565	  /^X\(\/\/\)[^/].*/{
22566	    s//\1/
22567	    q
22568	  }
22569	  /^X\(\/\/\)$/{
22570	    s//\1/
22571	    q
22572	  }
22573	  /^X\(\/\).*/{
22574	    s//\1/
22575	    q
22576	  }
22577	  s/.*/./; q'`
22578  as_dir="$ac_dir"; as_fn_mkdir_p
22579  ac_builddir=.
22580
22581case "$ac_dir" in
22582.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22583*)
22584  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22585  # A ".." for each directory in $ac_dir_suffix.
22586  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22587  case $ac_top_builddir_sub in
22588  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22589  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22590  esac ;;
22591esac
22592ac_abs_top_builddir=$ac_pwd
22593ac_abs_builddir=$ac_pwd$ac_dir_suffix
22594# for backward compatibility:
22595ac_top_builddir=$ac_top_build_prefix
22596
22597case $srcdir in
22598  .)  # We are building in place.
22599    ac_srcdir=.
22600    ac_top_srcdir=$ac_top_builddir_sub
22601    ac_abs_top_srcdir=$ac_pwd ;;
22602  [\\/]* | ?:[\\/]* )  # Absolute name.
22603    ac_srcdir=$srcdir$ac_dir_suffix;
22604    ac_top_srcdir=$srcdir
22605    ac_abs_top_srcdir=$srcdir ;;
22606  *) # Relative name.
22607    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22608    ac_top_srcdir=$ac_top_build_prefix$srcdir
22609    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22610esac
22611ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22612
22613
22614  case $ac_mode in
22615  :F)
22616  #
22617  # CONFIG_FILE
22618  #
22619
22620  case $INSTALL in
22621  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22622  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22623  esac
22624  ac_MKDIR_P=$MKDIR_P
22625  case $MKDIR_P in
22626  [\\/$]* | ?:[\\/]* ) ;;
22627  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22628  esac
22629_ACEOF
22630
22631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22632# If the template does not know about datarootdir, expand it.
22633# FIXME: This hack should be removed a few years after 2.60.
22634ac_datarootdir_hack=; ac_datarootdir_seen=
22635ac_sed_dataroot='
22636/datarootdir/ {
22637  p
22638  q
22639}
22640/@datadir@/p
22641/@docdir@/p
22642/@infodir@/p
22643/@localedir@/p
22644/@mandir@/p'
22645case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22646*datarootdir*) ac_datarootdir_seen=yes;;
22647*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22649printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22650_ACEOF
22651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22652  ac_datarootdir_hack='
22653  s&@datadir@&$datadir&g
22654  s&@docdir@&$docdir&g
22655  s&@infodir@&$infodir&g
22656  s&@localedir@&$localedir&g
22657  s&@mandir@&$mandir&g
22658  s&\\\${datarootdir}&$datarootdir&g' ;;
22659esac
22660_ACEOF
22661
22662# Neutralize VPATH when '$srcdir' = '.'.
22663# Shell code in configure.ac might set extrasub.
22664# FIXME: do we really want to maintain this feature?
22665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22666ac_sed_extra="$ac_vpsub
22667$extrasub
22668_ACEOF
22669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22670:t
22671/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22672s|@configure_input@|$ac_sed_conf_input|;t t
22673s&@top_builddir@&$ac_top_builddir_sub&;t t
22674s&@top_build_prefix@&$ac_top_build_prefix&;t t
22675s&@srcdir@&$ac_srcdir&;t t
22676s&@abs_srcdir@&$ac_abs_srcdir&;t t
22677s&@top_srcdir@&$ac_top_srcdir&;t t
22678s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22679s&@builddir@&$ac_builddir&;t t
22680s&@abs_builddir@&$ac_abs_builddir&;t t
22681s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22682s&@INSTALL@&$ac_INSTALL&;t t
22683s&@MKDIR_P@&$ac_MKDIR_P&;t t
22684$ac_datarootdir_hack
22685"
22686eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22687  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22688
22689test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22690  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22691  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22692      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22694which seems to be undefined.  Please make sure it is defined" >&5
22695printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22696which seems to be undefined.  Please make sure it is defined" >&2;}
22697
22698  rm -f "$ac_tmp/stdin"
22699  case $ac_file in
22700  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22701  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22702  esac \
22703  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22704 ;;
22705  :H)
22706  #
22707  # CONFIG_HEADER
22708  #
22709  if test x"$ac_file" != x-; then
22710    {
22711      printf "%s\n" "/* $configure_input  */" >&1 \
22712      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22713    } >"$ac_tmp/config.h" \
22714      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22715    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22716      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22717printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22718    else
22719      rm -f "$ac_file"
22720      mv "$ac_tmp/config.h" "$ac_file" \
22721	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22722    fi
22723  else
22724    printf "%s\n" "/* $configure_input  */" >&1 \
22725      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22726      || as_fn_error $? "could not create -" "$LINENO" 5
22727  fi
22728# Compute "$ac_file"'s index in $config_headers.
22729_am_arg="$ac_file"
22730_am_stamp_count=1
22731for _am_header in $config_headers :; do
22732  case $_am_header in
22733    $_am_arg | $_am_arg:* )
22734      break ;;
22735    * )
22736      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22737  esac
22738done
22739echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22740$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22741	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22742	 X"$_am_arg" : 'X\(//\)$' \| \
22743	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22744printf "%s\n" X"$_am_arg" |
22745    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22746	    s//\1/
22747	    q
22748	  }
22749	  /^X\(\/\/\)[^/].*/{
22750	    s//\1/
22751	    q
22752	  }
22753	  /^X\(\/\/\)$/{
22754	    s//\1/
22755	    q
22756	  }
22757	  /^X\(\/\).*/{
22758	    s//\1/
22759	    q
22760	  }
22761	  s/.*/./; q'`/stamp-h$_am_stamp_count
22762 ;;
22763
22764  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22765printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22766 ;;
22767  esac
22768
22769
22770  case $ac_file$ac_mode in
22771    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22772  # Older Autoconf quotes --file arguments for eval, but not when files
22773  # are listed without --file.  Let's play safe and only enable the eval
22774  # if we detect the quoting.
22775  # TODO: see whether this extra hack can be removed once we start
22776  # requiring Autoconf 2.70 or later.
22777  case $CONFIG_FILES in #(
22778  *\'*) :
22779    eval set x "$CONFIG_FILES" ;; #(
22780  *) :
22781    set x $CONFIG_FILES ;; #(
22782  *) :
22783     ;;
22784esac
22785  shift
22786  # Used to flag and report bootstrapping failures.
22787  am_rc=0
22788  for am_mf
22789  do
22790    # Strip MF so we end up with the name of the file.
22791    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22792    # Check whether this is an Automake generated Makefile which includes
22793    # dependency-tracking related rules and includes.
22794    # Grep'ing the whole file directly is not great: AIX grep has a line
22795    # limit of 2048, but all sed's we know have understand at least 4000.
22796    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22797      || continue
22798    am_dirpart=`$as_dirname -- "$am_mf" ||
22799$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22800	 X"$am_mf" : 'X\(//\)[^/]' \| \
22801	 X"$am_mf" : 'X\(//\)$' \| \
22802	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22803printf "%s\n" X"$am_mf" |
22804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22805	    s//\1/
22806	    q
22807	  }
22808	  /^X\(\/\/\)[^/].*/{
22809	    s//\1/
22810	    q
22811	  }
22812	  /^X\(\/\/\)$/{
22813	    s//\1/
22814	    q
22815	  }
22816	  /^X\(\/\).*/{
22817	    s//\1/
22818	    q
22819	  }
22820	  s/.*/./; q'`
22821    am_filepart=`$as_basename -- "$am_mf" ||
22822$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22823	 X"$am_mf" : 'X\(//\)$' \| \
22824	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22825printf "%s\n" X/"$am_mf" |
22826    sed '/^.*\/\([^/][^/]*\)\/*$/{
22827	    s//\1/
22828	    q
22829	  }
22830	  /^X\/\(\/\/\)$/{
22831	    s//\1/
22832	    q
22833	  }
22834	  /^X\/\(\/\).*/{
22835	    s//\1/
22836	    q
22837	  }
22838	  s/.*/./; q'`
22839    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22840      && sed -e '/# am--include-marker/d' "$am_filepart" \
22841        | $MAKE -f - am--depfiles" >&5
22842   (cd "$am_dirpart" \
22843      && sed -e '/# am--include-marker/d' "$am_filepart" \
22844        | $MAKE -f - am--depfiles) >&5 2>&5
22845   ac_status=$?
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); } || am_rc=$?
22848  done
22849  if test $am_rc -ne 0; then
22850    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22851printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22852as_fn_error $? "Something went wrong bootstrapping makefile fragments
22853    for automatic dependency tracking.  If GNU make was not used, consider
22854    re-running the configure script with MAKE=\"gmake\" (or whatever is
22855    necessary).  You can also try re-running configure with the
22856    '--disable-dependency-tracking' option to at least be able to build
22857    the package (albeit without support for automatic dependency tracking).
22858See 'config.log' for more details" "$LINENO" 5; }
22859  fi
22860  { am_dirpart=; unset am_dirpart;}
22861  { am_filepart=; unset am_filepart;}
22862  { am_mf=; unset am_mf;}
22863  { am_rc=; unset am_rc;}
22864  rm -f conftest-deps.mk
22865}
22866 ;;
22867    "libtool":C)
22868
22869    # See if we are running on zsh, and set the options that allow our
22870    # commands through without removal of \ escapes.
22871    if test -n "${ZSH_VERSION+set}"; then
22872      setopt NO_GLOB_SUBST
22873    fi
22874
22875    cfgfile=${ofile}T
22876    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22877    $RM "$cfgfile"
22878
22879    cat <<_LT_EOF >> "$cfgfile"
22880#! $SHELL
22881# Generated automatically by $as_me ($PACKAGE) $VERSION
22882# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22883
22884# Provide generalized library-building support services.
22885# Written by Gordon Matzigkeit, 1996
22886
22887# Copyright (C) 2024 Free Software Foundation, Inc.
22888# This is free software; see the source for copying conditions.  There is NO
22889# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22890
22891# GNU Libtool is free software; you can redistribute it and/or modify
22892# it under the terms of the GNU General Public License as published by
22893# the Free Software Foundation; either version 2 of the License, or
22894# (at your option) any later version.
22895#
22896# As a special exception to the GNU General Public License, if you
22897# distribute this file as part of a program or library that is built
22898# using GNU Libtool, you may include this file under the  same
22899# distribution terms that you use for the rest of that program.
22900#
22901# GNU Libtool is distributed in the hope that it will be useful, but
22902# WITHOUT ANY WARRANTY; without even the implied warranty of
22903# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22904# GNU General Public License for more details.
22905#
22906# You should have received a copy of the GNU General Public License
22907# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22908
22909
22910# The names of the tagged configurations supported by this script.
22911available_tags=''
22912
22913# Configured defaults for sys_lib_dlsearch_path munging.
22914: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22915
22916# ### BEGIN LIBTOOL CONFIG
22917
22918# Which release of libtool.m4 was used?
22919macro_version=$macro_version
22920macro_revision=$macro_revision
22921
22922# Whether or not to build shared libraries.
22923build_libtool_libs=$enable_shared
22924
22925# Whether or not to build static libraries.
22926build_old_libs=$enable_static
22927
22928# What type of objects to build.
22929pic_mode=$pic_mode
22930
22931# Whether or not to optimize for fast installation.
22932fast_install=$enable_fast_install
22933
22934# Shared archive member basename,for filename based shared library versioning on AIX.
22935shared_archive_member_spec=$shared_archive_member_spec
22936
22937# Shell to use when invoking shell scripts.
22938SHELL=$lt_SHELL
22939
22940# An echo program that protects backslashes.
22941ECHO=$lt_ECHO
22942
22943# The PATH separator for the build system.
22944PATH_SEPARATOR=$lt_PATH_SEPARATOR
22945
22946# The host system.
22947host_alias=$host_alias
22948host=$host
22949host_os=$host_os
22950
22951# The build system.
22952build_alias=$build_alias
22953build=$build
22954build_os=$build_os
22955
22956# A sed program that does not truncate output.
22957SED=$lt_SED
22958
22959# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22960Xsed="\$SED -e 1s/^X//"
22961
22962# A grep program that handles long lines.
22963GREP=$lt_GREP
22964
22965# An ERE matcher.
22966EGREP=$lt_EGREP
22967
22968# A literal string matcher.
22969FGREP=$lt_FGREP
22970
22971# A BSD- or MS-compatible name lister.
22972NM=$lt_NM
22973
22974# Whether we need soft or hard links.
22975LN_S=$lt_LN_S
22976
22977# What is the maximum length of a command?
22978max_cmd_len=$max_cmd_len
22979
22980# Object file suffix (normally "o").
22981objext=$ac_objext
22982
22983# Executable file suffix (normally "").
22984exeext=$exeext
22985
22986# whether the shell understands "unset".
22987lt_unset=$lt_unset
22988
22989# turn spaces into newlines.
22990SP2NL=$lt_lt_SP2NL
22991
22992# turn newlines into spaces.
22993NL2SP=$lt_lt_NL2SP
22994
22995# convert \$build file names to \$host format.
22996to_host_file_cmd=$lt_cv_to_host_file_cmd
22997
22998# convert \$build files to toolchain format.
22999to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23000
23001# A file(cmd) program that detects file types.
23002FILECMD=$lt_FILECMD
23003
23004# An object symbol dumper.
23005OBJDUMP=$lt_OBJDUMP
23006
23007# Method to check whether dependent libraries are shared objects.
23008deplibs_check_method=$lt_deplibs_check_method
23009
23010# Command to use when deplibs_check_method = "file_magic".
23011file_magic_cmd=$lt_file_magic_cmd
23012
23013# How to find potential files when deplibs_check_method = "file_magic".
23014file_magic_glob=$lt_file_magic_glob
23015
23016# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23017want_nocaseglob=$lt_want_nocaseglob
23018
23019# DLL creation program.
23020DLLTOOL=$lt_DLLTOOL
23021
23022# Command to associate shared and link libraries.
23023sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23024
23025# The archiver.
23026AR=$lt_AR
23027
23028# Flags to create an archive (by configure).
23029lt_ar_flags=$lt_ar_flags
23030
23031# Flags to create an archive.
23032AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23033
23034# How to feed a file listing to the archiver.
23035archiver_list_spec=$lt_archiver_list_spec
23036
23037# A symbol stripping program.
23038STRIP=$lt_STRIP
23039
23040# Commands used to install an old-style archive.
23041RANLIB=$lt_RANLIB
23042old_postinstall_cmds=$lt_old_postinstall_cmds
23043old_postuninstall_cmds=$lt_old_postuninstall_cmds
23044
23045# Whether to use a lock for old archive extraction.
23046lock_old_archive_extraction=$lock_old_archive_extraction
23047
23048# A C compiler.
23049LTCC=$lt_CC
23050
23051# LTCC compiler flags.
23052LTCFLAGS=$lt_CFLAGS
23053
23054# Take the output of nm and produce a listing of raw symbols and C names.
23055global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23056
23057# Transform the output of nm in a proper C declaration.
23058global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23059
23060# Transform the output of nm into a list of symbols to manually relocate.
23061global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23062
23063# Transform the output of nm in a C name address pair.
23064global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23065
23066# Transform the output of nm in a C name address pair when lib prefix is needed.
23067global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23068
23069# The name lister interface.
23070nm_interface=$lt_lt_cv_nm_interface
23071
23072# Specify filename containing input files for \$NM.
23073nm_file_list_spec=$lt_nm_file_list_spec
23074
23075# The root where to search for dependent libraries,and where our libraries should be installed.
23076lt_sysroot=$lt_sysroot
23077
23078# Command to truncate a binary pipe.
23079lt_truncate_bin=$lt_lt_cv_truncate_bin
23080
23081# The name of the directory that contains temporary libtool files.
23082objdir=$objdir
23083
23084# Used to examine libraries when file_magic_cmd begins with "file".
23085MAGIC_CMD=$MAGIC_CMD
23086
23087# Must we lock files when doing compilation?
23088need_locks=$lt_need_locks
23089
23090# Manifest tool.
23091MANIFEST_TOOL=$lt_MANIFEST_TOOL
23092
23093# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23094DSYMUTIL=$lt_DSYMUTIL
23095
23096# Tool to change global to local symbols on Mac OS X.
23097NMEDIT=$lt_NMEDIT
23098
23099# Tool to manipulate fat objects and archives on Mac OS X.
23100LIPO=$lt_LIPO
23101
23102# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23103OTOOL=$lt_OTOOL
23104
23105# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23106OTOOL64=$lt_OTOOL64
23107
23108# Old archive suffix (normally "a").
23109libext=$libext
23110
23111# Shared library suffix (normally ".so").
23112shrext_cmds=$lt_shrext_cmds
23113
23114# The commands to extract the exported symbol list from a shared archive.
23115extract_expsyms_cmds=$lt_extract_expsyms_cmds
23116
23117# Variables whose values should be saved in libtool wrapper scripts and
23118# restored at link time.
23119variables_saved_for_relink=$lt_variables_saved_for_relink
23120
23121# Do we need the "lib" prefix for modules?
23122need_lib_prefix=$need_lib_prefix
23123
23124# Do we need a version for libraries?
23125need_version=$need_version
23126
23127# Library versioning type.
23128version_type=$version_type
23129
23130# Shared library runtime path variable.
23131runpath_var=$runpath_var
23132
23133# Shared library path variable.
23134shlibpath_var=$shlibpath_var
23135
23136# Is shlibpath searched before the hard-coded library search path?
23137shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23138
23139# Format of library name prefix.
23140libname_spec=$lt_libname_spec
23141
23142# List of archive names.  First name is the real one, the rest are links.
23143# The last name is the one that the linker finds with -lNAME
23144library_names_spec=$lt_library_names_spec
23145
23146# The coded name of the library, if different from the real name.
23147soname_spec=$lt_soname_spec
23148
23149# Permission mode override for installation of shared libraries.
23150install_override_mode=$lt_install_override_mode
23151
23152# Command to use after installation of a shared archive.
23153postinstall_cmds=$lt_postinstall_cmds
23154
23155# Command to use after uninstallation of a shared archive.
23156postuninstall_cmds=$lt_postuninstall_cmds
23157
23158# Commands used to finish a libtool library installation in a directory.
23159finish_cmds=$lt_finish_cmds
23160
23161# As "finish_cmds", except a single script fragment to be evaled but
23162# not shown.
23163finish_eval=$lt_finish_eval
23164
23165# Whether we should hardcode library paths into libraries.
23166hardcode_into_libs=$hardcode_into_libs
23167
23168# Compile-time system search path for libraries.
23169sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23170
23171# Detected run-time system search path for libraries.
23172sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23173
23174# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23175configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23176
23177# Whether dlopen is supported.
23178dlopen_support=$enable_dlopen
23179
23180# Whether dlopen of programs is supported.
23181dlopen_self=$enable_dlopen_self
23182
23183# Whether dlopen of statically linked programs is supported.
23184dlopen_self_static=$enable_dlopen_self_static
23185
23186# Commands to strip libraries.
23187old_striplib=$lt_old_striplib
23188striplib=$lt_striplib
23189
23190
23191# The linker used to build libraries.
23192LD=$lt_LD
23193
23194# How to create reloadable object files.
23195reload_flag=$lt_reload_flag
23196reload_cmds=$lt_reload_cmds
23197
23198# Commands used to build an old-style archive.
23199old_archive_cmds=$lt_old_archive_cmds
23200
23201# A language specific compiler.
23202CC=$lt_compiler
23203
23204# Is the compiler the GNU compiler?
23205with_gcc=$GCC
23206
23207# Compiler flag to turn off builtin functions.
23208no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23209
23210# Additional compiler flags for building library objects.
23211pic_flag=$lt_lt_prog_compiler_pic
23212
23213# How to pass a linker flag through the compiler.
23214wl=$lt_lt_prog_compiler_wl
23215
23216# Compiler flag to prevent dynamic linking.
23217link_static_flag=$lt_lt_prog_compiler_static
23218
23219# Does compiler simultaneously support -c and -o options?
23220compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23221
23222# Whether or not to add -lc for building shared libraries.
23223build_libtool_need_lc=$archive_cmds_need_lc
23224
23225# Whether or not to disallow shared libs when runtime libs are static.
23226allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23227
23228# Compiler flag to allow reflexive dlopens.
23229export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23230
23231# Compiler flag to generate shared objects directly from archives.
23232whole_archive_flag_spec=$lt_whole_archive_flag_spec
23233
23234# Whether the compiler copes with passing no objects directly.
23235compiler_needs_object=$lt_compiler_needs_object
23236
23237# Create an old-style archive from a shared archive.
23238old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23239
23240# Create a temporary old-style archive to link instead of a shared archive.
23241old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23242
23243# Commands used to build a shared archive.
23244archive_cmds=$lt_archive_cmds
23245archive_expsym_cmds=$lt_archive_expsym_cmds
23246
23247# Commands used to build a loadable module if different from building
23248# a shared archive.
23249module_cmds=$lt_module_cmds
23250module_expsym_cmds=$lt_module_expsym_cmds
23251
23252# Whether we are building with GNU ld or not.
23253with_gnu_ld=$lt_with_gnu_ld
23254
23255# Flag that allows shared libraries with undefined symbols to be built.
23256allow_undefined_flag=$lt_allow_undefined_flag
23257
23258# Flag that enforces no undefined symbols.
23259no_undefined_flag=$lt_no_undefined_flag
23260
23261# Flag to hardcode \$libdir into a binary during linking.
23262# This must work even if \$libdir does not exist
23263hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23264
23265# Whether we need a single "-rpath" flag with a separated argument.
23266hardcode_libdir_separator=$lt_hardcode_libdir_separator
23267
23268# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23269# DIR into the resulting binary.
23270hardcode_direct=$hardcode_direct
23271
23272# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23273# DIR into the resulting binary and the resulting library dependency is
23274# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23275# library is relocated.
23276hardcode_direct_absolute=$hardcode_direct_absolute
23277
23278# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23279# into the resulting binary.
23280hardcode_minus_L=$hardcode_minus_L
23281
23282# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23283# into the resulting binary.
23284hardcode_shlibpath_var=$hardcode_shlibpath_var
23285
23286# Set to "yes" if building a shared library automatically hardcodes DIR
23287# into the library and all subsequent libraries and executables linked
23288# against it.
23289hardcode_automatic=$hardcode_automatic
23290
23291# Set to yes if linker adds runtime paths of dependent libraries
23292# to runtime path list.
23293inherit_rpath=$inherit_rpath
23294
23295# Whether libtool must link a program against all its dependency libraries.
23296link_all_deplibs=$link_all_deplibs
23297
23298# Set to "yes" if exported symbols are required.
23299always_export_symbols=$always_export_symbols
23300
23301# The commands to list exported symbols.
23302export_symbols_cmds=$lt_export_symbols_cmds
23303
23304# Symbols that should not be listed in the preloaded symbols.
23305exclude_expsyms=$lt_exclude_expsyms
23306
23307# Symbols that must always be exported.
23308include_expsyms=$lt_include_expsyms
23309
23310# Commands necessary for linking programs (against libraries) with templates.
23311prelink_cmds=$lt_prelink_cmds
23312
23313# Commands necessary for finishing linking programs.
23314postlink_cmds=$lt_postlink_cmds
23315
23316# Specify filename containing input files.
23317file_list_spec=$lt_file_list_spec
23318
23319# How to hardcode a shared library path into an executable.
23320hardcode_action=$hardcode_action
23321
23322# ### END LIBTOOL CONFIG
23323
23324_LT_EOF
23325
23326    cat <<'_LT_EOF' >> "$cfgfile"
23327
23328# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23329
23330# func_munge_path_list VARIABLE PATH
23331# -----------------------------------
23332# VARIABLE is name of variable containing _space_ separated list of
23333# directories to be munged by the contents of PATH, which is string
23334# having a format:
23335# "DIR[:DIR]:"
23336#       string "DIR[ DIR]" will be prepended to VARIABLE
23337# ":DIR[:DIR]"
23338#       string "DIR[ DIR]" will be appended to VARIABLE
23339# "DIRP[:DIRP]::[DIRA:]DIRA"
23340#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23341#       "DIRA[ DIRA]" will be appended to VARIABLE
23342# "DIR[:DIR]"
23343#       VARIABLE will be replaced by "DIR[ DIR]"
23344func_munge_path_list ()
23345{
23346    case x$2 in
23347    x)
23348        ;;
23349    *:)
23350        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23351        ;;
23352    x:*)
23353        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23354        ;;
23355    *::*)
23356        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23357        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23358        ;;
23359    *)
23360        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23361        ;;
23362    esac
23363}
23364
23365
23366# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23367func_cc_basename ()
23368{
23369    for cc_temp in $*""; do
23370      case $cc_temp in
23371        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23372        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23373        \-*) ;;
23374        *) break;;
23375      esac
23376    done
23377    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23378}
23379
23380
23381# ### END FUNCTIONS SHARED WITH CONFIGURE
23382
23383_LT_EOF
23384
23385  case $host_os in
23386  aix3*)
23387    cat <<\_LT_EOF >> "$cfgfile"
23388# AIX sometimes has problems with the GCC collect2 program.  For some
23389# reason, if we set the COLLECT_NAMES environment variable, the problems
23390# vanish in a puff of smoke.
23391if test set != "${COLLECT_NAMES+set}"; then
23392  COLLECT_NAMES=
23393  export COLLECT_NAMES
23394fi
23395_LT_EOF
23396    ;;
23397  esac
23398
23399
23400
23401ltmain=$ac_aux_dir/ltmain.sh
23402
23403
23404  # We use sed instead of cat because bash on DJGPP gets confused if
23405  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23406  # text mode, it properly converts lines to CR/LF.  This bash problem
23407  # is reportedly fixed, but why not run on old versions too?
23408  $SED '$q' "$ltmain" >> "$cfgfile" \
23409     || (rm -f "$cfgfile"; exit 1)
23410
23411   mv -f "$cfgfile" "$ofile" ||
23412    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23413  chmod +x "$ofile"
23414
23415 ;;
23416
23417  esac
23418done # for ac_tag
23419
23420
23421as_fn_exit 0
23422_ACEOF
23423ac_clean_files=$ac_clean_files_save
23424
23425test $ac_write_fail = 0 ||
23426  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23427
23428
23429# configure is writing to config.log, and then calls config.status.
23430# config.status does its own redirection, appending to config.log.
23431# Unfortunately, on DOS this fails, as config.log is still kept open
23432# by configure, so config.status won't be able to write to it; its
23433# output is simply discarded.  So we exec the FD to /dev/null,
23434# effectively closing config.log, so it can be properly (re)opened and
23435# appended to by config.status.  When coming back to configure, we
23436# need to make the FD available again.
23437if test "$no_create" != yes; then
23438  ac_cs_success=:
23439  ac_config_status_args=
23440  test "$silent" = yes &&
23441    ac_config_status_args="$ac_config_status_args --quiet"
23442  exec 5>/dev/null
23443  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23444  exec 5>>config.log
23445  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23446  # would make configure fail if this is the last instruction.
23447  $ac_cs_success || as_fn_exit 1
23448fi
23449if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23451printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23452fi
23453
23454
23455