configure revision 084f91cc
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-input-vmmouse 13.2.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-vmmouse/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || 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"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/driver/xf86-input-vmmouse/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='xf86-input-vmmouse'
624PACKAGE_TARNAME='xf86-input-vmmouse'
625PACKAGE_VERSION='13.2.0'
626PACKAGE_STRING='xf86-input-vmmouse 13.2.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-vmmouse/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667XORG_LIBS
668XORG_CFLAGS
669LIBUDEV_LIBS
670LIBUDEV_CFLAGS
671HAS_UDEV_RULES_DIR_FALSE
672HAS_UDEV_RULES_DIR_TRUE
673UDEV_RULES_DIR
674HAL_FDI_DIR
675HAL_CALLOUTS_DIR
676HAL_BIN_DIR
677HAS_XORG_CONF_DIR_FALSE
678HAS_XORG_CONF_DIR_TRUE
679XORG_CONF_DIR
680inputdir
681LT_SYS_LIBRARY_PATH
682OTOOL64
683OTOOL
684LIPO
685NMEDIT
686DSYMUTIL
687MANIFEST_TOOL
688RANLIB
689ac_ct_AR
690AR
691DLLTOOL
692OBJDUMP
693FILECMD
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700EGREP
701GREP
702LIBTOOL
703DRIVER_NAME
704MAN_SUBSTS
705XORG_MAN_PAGE
706ADMIN_MAN_DIR
707DRIVER_MAN_DIR
708MISC_MAN_DIR
709FILE_MAN_DIR
710LIB_MAN_DIR
711APP_MAN_DIR
712ADMIN_MAN_SUFFIX
713DRIVER_MAN_SUFFIX
714MISC_MAN_SUFFIX
715FILE_MAN_SUFFIX
716LIB_MAN_SUFFIX
717APP_MAN_SUFFIX
718SED
719host_os
720host_vendor
721host_cpu
722host
723build_os
724build_vendor
725build_cpu
726build
727INSTALL_CMD
728PKG_CONFIG_LIBDIR
729PKG_CONFIG_PATH
730PKG_CONFIG
731CHANGELOG_CMD
732STRICT_CFLAGS
733CWARNFLAGS
734BASE_CFLAGS
735am__fastdepCC_FALSE
736am__fastdepCC_TRUE
737CCDEPMODE
738am__nodep
739AMDEPBACKSLASH
740AMDEP_FALSE
741AMDEP_TRUE
742am__include
743DEPDIR
744OBJEXT
745EXEEXT
746ac_ct_CC
747CPPFLAGS
748LDFLAGS
749CFLAGS
750CC
751AM_BACKSLASH
752AM_DEFAULT_VERBOSITY
753AM_DEFAULT_V
754AM_V
755CSCOPE
756ETAGS
757CTAGS
758am__untar
759am__tar
760AMTAR
761am__leading_dot
762SET_MAKE
763AWK
764mkdir_p
765MKDIR_P
766INSTALL_STRIP_PROGRAM
767STRIP
768install_sh
769MAKEINFO
770AUTOHEADER
771AUTOMAKE
772AUTOCONF
773ACLOCAL
774VERSION
775PACKAGE
776CYGPATH_W
777am__isrc
778INSTALL_DATA
779INSTALL_SCRIPT
780INSTALL_PROGRAM
781target_alias
782host_alias
783build_alias
784LIBS
785ECHO_T
786ECHO_N
787ECHO_C
788DEFS
789mandir
790localedir
791libdir
792psdir
793pdfdir
794dvidir
795htmldir
796infodir
797docdir
798oldincludedir
799includedir
800runstatedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL
820am__quote'
821ac_subst_files=''
822ac_user_opts='
823enable_option_checking
824enable_silent_rules
825enable_dependency_tracking
826enable_selective_werror
827enable_strict_compilation
828enable_static
829enable_shared
830with_pic
831enable_fast_install
832with_aix_soname
833with_gnu_ld
834with_sysroot
835enable_libtool_lock
836with_xorg_module_dir
837with_xorg_conf_dir
838with_hal_bin_dir
839with_hal_callouts_dir
840with_hal_fdi_dir
841with_udev_rules_dir
842with_libudev
843'
844      ac_precious_vars='build_alias
845host_alias
846target_alias
847CC
848CFLAGS
849LDFLAGS
850LIBS
851CPPFLAGS
852PKG_CONFIG
853PKG_CONFIG_PATH
854PKG_CONFIG_LIBDIR
855LT_SYS_LIBRARY_PATH
856LIBUDEV_CFLAGS
857LIBUDEV_LIBS
858XORG_CFLAGS
859XORG_LIBS'
860
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
865ac_unrecognized_opts=
866ac_unrecognized_sep=
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
889# (The list follows the same order as the GNU Coding Standards.)
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
898runstatedir='${localstatedir}/run'
899includedir='${prefix}/include'
900oldincludedir='/usr/include'
901docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902infodir='${datarootdir}/info'
903htmldir='${docdir}'
904dvidir='${docdir}'
905pdfdir='${docdir}'
906psdir='${docdir}'
907libdir='${exec_prefix}/lib'
908localedir='${datarootdir}/locale'
909mandir='${datarootdir}/man'
910
911ac_prev=
912ac_dashdash=
913for ac_option
914do
915  # If the previous option needs an argument, assign it.
916  if test -n "$ac_prev"; then
917    eval $ac_prev=\$ac_option
918    ac_prev=
919    continue
920  fi
921
922  case $ac_option in
923  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924  *=)   ac_optarg= ;;
925  *)    ac_optarg=yes ;;
926  esac
927
928  case $ac_dashdash$ac_option in
929  --)
930    ac_dashdash=yes ;;
931
932  -bindir | --bindir | --bindi | --bind | --bin | --bi)
933    ac_prev=bindir ;;
934  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935    bindir=$ac_optarg ;;
936
937  -build | --build | --buil | --bui | --bu)
938    ac_prev=build_alias ;;
939  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940    build_alias=$ac_optarg ;;
941
942  -cache-file | --cache-file | --cache-fil | --cache-fi \
943  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944    ac_prev=cache_file ;;
945  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947    cache_file=$ac_optarg ;;
948
949  --config-cache | -C)
950    cache_file=config.cache ;;
951
952  -datadir | --datadir | --datadi | --datad)
953    ac_prev=datadir ;;
954  -datadir=* | --datadir=* | --datadi=* | --datad=*)
955    datadir=$ac_optarg ;;
956
957  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958  | --dataroo | --dataro | --datar)
959    ac_prev=datarootdir ;;
960  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962    datarootdir=$ac_optarg ;;
963
964  -disable-* | --disable-*)
965    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966    # Reject names that are not valid shell variable names.
967    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968      as_fn_error $? "invalid feature name: \`$ac_useropt'"
969    ac_useropt_orig=$ac_useropt
970    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
971    case $ac_user_opts in
972      *"
973"enable_$ac_useropt"
974"*) ;;
975      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976	 ac_unrecognized_sep=', ';;
977    esac
978    eval enable_$ac_useropt=no ;;
979
980  -docdir | --docdir | --docdi | --doc | --do)
981    ac_prev=docdir ;;
982  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983    docdir=$ac_optarg ;;
984
985  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986    ac_prev=dvidir ;;
987  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988    dvidir=$ac_optarg ;;
989
990  -enable-* | --enable-*)
991    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992    # Reject names that are not valid shell variable names.
993    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994      as_fn_error $? "invalid feature name: \`$ac_useropt'"
995    ac_useropt_orig=$ac_useropt
996    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
997    case $ac_user_opts in
998      *"
999"enable_$ac_useropt"
1000"*) ;;
1001      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002	 ac_unrecognized_sep=', ';;
1003    esac
1004    eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008  | --exec | --exe | --ex)
1009    ac_prev=exec_prefix ;;
1010  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012  | --exec=* | --exe=* | --ex=*)
1013    exec_prefix=$ac_optarg ;;
1014
1015  -gas | --gas | --ga | --g)
1016    # Obsolete; use --with-gas.
1017    with_gas=yes ;;
1018
1019  -help | --help | --hel | --he | -h)
1020    ac_init_help=long ;;
1021  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022    ac_init_help=recursive ;;
1023  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024    ac_init_help=short ;;
1025
1026  -host | --host | --hos | --ho)
1027    ac_prev=host_alias ;;
1028  -host=* | --host=* | --hos=* | --ho=*)
1029    host_alias=$ac_optarg ;;
1030
1031  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032    ac_prev=htmldir ;;
1033  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034  | --ht=*)
1035    htmldir=$ac_optarg ;;
1036
1037  -includedir | --includedir | --includedi | --included | --include \
1038  | --includ | --inclu | --incl | --inc)
1039    ac_prev=includedir ;;
1040  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041  | --includ=* | --inclu=* | --incl=* | --inc=*)
1042    includedir=$ac_optarg ;;
1043
1044  -infodir | --infodir | --infodi | --infod | --info | --inf)
1045    ac_prev=infodir ;;
1046  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047    infodir=$ac_optarg ;;
1048
1049  -libdir | --libdir | --libdi | --libd)
1050    ac_prev=libdir ;;
1051  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052    libdir=$ac_optarg ;;
1053
1054  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055  | --libexe | --libex | --libe)
1056    ac_prev=libexecdir ;;
1057  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058  | --libexe=* | --libex=* | --libe=*)
1059    libexecdir=$ac_optarg ;;
1060
1061  -localedir | --localedir | --localedi | --localed | --locale)
1062    ac_prev=localedir ;;
1063  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064    localedir=$ac_optarg ;;
1065
1066  -localstatedir | --localstatedir | --localstatedi | --localstated \
1067  | --localstate | --localstat | --localsta | --localst | --locals)
1068    ac_prev=localstatedir ;;
1069  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071    localstatedir=$ac_optarg ;;
1072
1073  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074    ac_prev=mandir ;;
1075  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076    mandir=$ac_optarg ;;
1077
1078  -nfp | --nfp | --nf)
1079    # Obsolete; use --without-fp.
1080    with_fp=no ;;
1081
1082  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083  | --no-cr | --no-c | -n)
1084    no_create=yes ;;
1085
1086  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088    no_recursion=yes ;;
1089
1090  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092  | --oldin | --oldi | --old | --ol | --o)
1093    ac_prev=oldincludedir ;;
1094  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097    oldincludedir=$ac_optarg ;;
1098
1099  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100    ac_prev=prefix ;;
1101  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102    prefix=$ac_optarg ;;
1103
1104  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105  | --program-pre | --program-pr | --program-p)
1106    ac_prev=program_prefix ;;
1107  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109    program_prefix=$ac_optarg ;;
1110
1111  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112  | --program-suf | --program-su | --program-s)
1113    ac_prev=program_suffix ;;
1114  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116    program_suffix=$ac_optarg ;;
1117
1118  -program-transform-name | --program-transform-name \
1119  | --program-transform-nam | --program-transform-na \
1120  | --program-transform-n | --program-transform- \
1121  | --program-transform | --program-transfor \
1122  | --program-transfo | --program-transf \
1123  | --program-trans | --program-tran \
1124  | --progr-tra | --program-tr | --program-t)
1125    ac_prev=program_transform_name ;;
1126  -program-transform-name=* | --program-transform-name=* \
1127  | --program-transform-nam=* | --program-transform-na=* \
1128  | --program-transform-n=* | --program-transform-=* \
1129  | --program-transform=* | --program-transfor=* \
1130  | --program-transfo=* | --program-transf=* \
1131  | --program-trans=* | --program-tran=* \
1132  | --progr-tra=* | --program-tr=* | --program-t=*)
1133    program_transform_name=$ac_optarg ;;
1134
1135  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136    ac_prev=pdfdir ;;
1137  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138    pdfdir=$ac_optarg ;;
1139
1140  -psdir | --psdir | --psdi | --psd | --ps)
1141    ac_prev=psdir ;;
1142  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143    psdir=$ac_optarg ;;
1144
1145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146  | -silent | --silent | --silen | --sile | --sil)
1147    silent=yes ;;
1148
1149  -runstatedir | --runstatedir | --runstatedi | --runstated \
1150  | --runstate | --runstat | --runsta | --runst | --runs \
1151  | --run | --ru | --r)
1152    ac_prev=runstatedir ;;
1153  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1154  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1155  | --run=* | --ru=* | --r=*)
1156    runstatedir=$ac_optarg ;;
1157
1158  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159    ac_prev=sbindir ;;
1160  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161  | --sbi=* | --sb=*)
1162    sbindir=$ac_optarg ;;
1163
1164  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166  | --sharedst | --shareds | --shared | --share | --shar \
1167  | --sha | --sh)
1168    ac_prev=sharedstatedir ;;
1169  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172  | --sha=* | --sh=*)
1173    sharedstatedir=$ac_optarg ;;
1174
1175  -site | --site | --sit)
1176    ac_prev=site ;;
1177  -site=* | --site=* | --sit=*)
1178    site=$ac_optarg ;;
1179
1180  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181    ac_prev=srcdir ;;
1182  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183    srcdir=$ac_optarg ;;
1184
1185  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186  | --syscon | --sysco | --sysc | --sys | --sy)
1187    ac_prev=sysconfdir ;;
1188  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190    sysconfdir=$ac_optarg ;;
1191
1192  -target | --target | --targe | --targ | --tar | --ta | --t)
1193    ac_prev=target_alias ;;
1194  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195    target_alias=$ac_optarg ;;
1196
1197  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198    verbose=yes ;;
1199
1200  -version | --version | --versio | --versi | --vers | -V)
1201    ac_init_version=: ;;
1202
1203  -with-* | --with-*)
1204    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205    # Reject names that are not valid shell variable names.
1206    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207      as_fn_error $? "invalid package name: \`$ac_useropt'"
1208    ac_useropt_orig=$ac_useropt
1209    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1210    case $ac_user_opts in
1211      *"
1212"with_$ac_useropt"
1213"*) ;;
1214      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215	 ac_unrecognized_sep=', ';;
1216    esac
1217    eval with_$ac_useropt=\$ac_optarg ;;
1218
1219  -without-* | --without-*)
1220    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223      as_fn_error $? "invalid package name: \`$ac_useropt'"
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"with_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval with_$ac_useropt=no ;;
1234
1235  --x)
1236    # Obsolete; use --with-x.
1237    with_x=yes ;;
1238
1239  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240  | --x-incl | --x-inc | --x-in | --x-i)
1241    ac_prev=x_includes ;;
1242  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244    x_includes=$ac_optarg ;;
1245
1246  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248    ac_prev=x_libraries ;;
1249  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251    x_libraries=$ac_optarg ;;
1252
1253  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information"
1255    ;;
1256
1257  *=*)
1258    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259    # Reject names that are not valid shell variable names.
1260    case $ac_envvar in #(
1261      '' | [0-9]* | *[!_$as_cr_alnum]* )
1262      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263    esac
1264    eval $ac_envvar=\$ac_optarg
1265    export $ac_envvar ;;
1266
1267  *)
1268    # FIXME: should be removed in autoconf 3.0.
1269    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1270    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1272    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273    ;;
1274
1275  esac
1276done
1277
1278if test -n "$ac_prev"; then
1279  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280  as_fn_error $? "missing argument to $ac_option"
1281fi
1282
1283if test -n "$ac_unrecognized_opts"; then
1284  case $enable_option_checking in
1285    no) ;;
1286    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288  esac
1289fi
1290
1291# Check all directory arguments for consistency.
1292for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293		datadir sysconfdir sharedstatedir localstatedir includedir \
1294		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295		libdir localedir mandir runstatedir
1296do
1297  eval ac_val=\$$ac_var
1298  # Remove trailing slashes.
1299  case $ac_val in
1300    */ )
1301      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302      eval $ac_var=\$ac_val;;
1303  esac
1304  # Be sure to have absolute directory names.
1305  case $ac_val in
1306    [\\/$]* | ?:[\\/]* )  continue;;
1307    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308  esac
1309  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310done
1311
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
1318
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321  if test "x$build_alias" = x; then
1322    cross_compiling=maybe
1323  elif test "x$build_alias" != "x$host_alias"; then
1324    cross_compiling=yes
1325  fi
1326fi
1327
1328ac_tool_prefix=
1329test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331test "$silent" = yes && exec 6>/dev/null
1332
1333
1334ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335ac_ls_di=`ls -di .` &&
1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337  as_fn_error $? "working directory cannot be determined"
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339  as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342# Find the source files, if location was not specified.
1343if test -z "$srcdir"; then
1344  ac_srcdir_defaulted=yes
1345  # Try the directory containing this script, then the parent directory.
1346  ac_confdir=`$as_dirname -- "$as_myself" ||
1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348	 X"$as_myself" : 'X\(//\)[^/]' \| \
1349	 X"$as_myself" : 'X\(//\)$' \| \
1350	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351printf "%s\n" X"$as_myself" |
1352    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)[^/].*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\/\)$/{
1361	    s//\1/
1362	    q
1363	  }
1364	  /^X\(\/\).*/{
1365	    s//\1/
1366	    q
1367	  }
1368	  s/.*/./; q'`
1369  srcdir=$ac_confdir
1370  if test ! -r "$srcdir/$ac_unique_file"; then
1371    srcdir=..
1372  fi
1373else
1374  ac_srcdir_defaulted=no
1375fi
1376if test ! -r "$srcdir/$ac_unique_file"; then
1377  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383	pwd)`
1384# When building in place, set srcdir=.
1385if test "$ac_abs_confdir" = "$ac_pwd"; then
1386  srcdir=.
1387fi
1388# Remove unnecessary trailing slashes from srcdir.
1389# Double slashes in file names in object file debugging info
1390# mess up M-x gdb in Emacs.
1391case $srcdir in
1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393esac
1394for ac_var in $ac_precious_vars; do
1395  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396  eval ac_env_${ac_var}_value=\$${ac_var}
1397  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405  # Omit some internal or obsolete options to make the list less imposing.
1406  # This message is too long to be a string in the A/UX 3.1 sh.
1407  cat <<_ACEOF
1408\`configure' configures xf86-input-vmmouse 13.2.0 to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418  -h, --help              display this help and exit
1419      --help=short        display options specific to this package
1420      --help=recursive    display the short help of all the included packages
1421  -V, --version           display version information and exit
1422  -q, --quiet, --silent   do not print \`checking ...' messages
1423      --cache-file=FILE   cache test results in FILE [disabled]
1424  -C, --config-cache      alias for \`--cache-file=config.cache'
1425  -n, --no-create         do not create output files
1426      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428Installation directories:
1429  --prefix=PREFIX         install architecture-independent files in PREFIX
1430                          [$ac_default_prefix]
1431  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                          [PREFIX]
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
1442  --bindir=DIR            user executables [EPREFIX/bin]
1443  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444  --libexecdir=DIR        program executables [EPREFIX/libexec]
1445  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1449  --libdir=DIR            object code libraries [EPREFIX/lib]
1450  --includedir=DIR        C header files [PREFIX/include]
1451  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR           info documentation [DATAROOTDIR/info]
1455  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR            man documentation [DATAROOTDIR/man]
1457  --docdir=DIR            documentation root
1458                          [DATAROOTDIR/doc/xf86-input-vmmouse]
1459  --htmldir=DIR           html documentation [DOCDIR]
1460  --dvidir=DIR            dvi documentation [DOCDIR]
1461  --pdfdir=DIR            pdf documentation [DOCDIR]
1462  --psdir=DIR             ps documentation [DOCDIR]
1463_ACEOF
1464
1465  cat <<\_ACEOF
1466
1467Program names:
1468  --program-prefix=PREFIX            prepend PREFIX to installed program names
1469  --program-suffix=SUFFIX            append SUFFIX to installed program names
1470  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472System types:
1473  --build=BUILD     configure for building on BUILD [guessed]
1474  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475_ACEOF
1476fi
1477
1478if test -n "$ac_init_help"; then
1479  case $ac_init_help in
1480     short | recursive ) echo "Configuration of xf86-input-vmmouse 13.2.0:";;
1481   esac
1482  cat <<\_ACEOF
1483
1484Optional Features:
1485  --disable-option-checking  ignore unrecognized --enable/--with options
1486  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488  --enable-silent-rules   less verbose build output (undo: "make V=1")
1489  --disable-silent-rules  verbose build output (undo: "make V=0")
1490  --enable-dependency-tracking
1491                          do not reject slow dependency extractors
1492  --disable-dependency-tracking
1493                          speeds up one-time build
1494  --disable-selective-werror
1495                          Turn off selective compiler errors. (default:
1496                          enabled)
1497  --enable-strict-compilation
1498                          Enable all warnings from compiler and make them
1499                          errors (default: disabled)
1500  --enable-static[=PKGS]  build static libraries [default=no]
1501  --enable-shared[=PKGS]  build shared libraries [default=yes]
1502  --enable-fast-install[=PKGS]
1503                          optimize for fast installation [default=yes]
1504  --disable-libtool-lock  avoid locking (might break parallel builds)
1505
1506Optional Packages:
1507  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1510                          both]
1511  --with-aix-soname=aix|svr4|both
1512                          shared library versioning (aka "SONAME") variant to
1513                          provide on AIX, [default=aix].
1514  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1515  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1516                          compiler's sysroot if not specified).
1517  --with-xorg-module-dir=DIR
1518                          Default xorg module directory
1519                          [[default=$libdir/xorg/modules]]
1520  --with-xorg-conf-dir=DIR
1521                          Default xorg.conf.d directory [[default=from
1522                          $PKG_CONFIG xorg-server]]
1523  --with-hal-bin-dir=DIR  Directory where HAL binaries where installed
1524                          [[default=$bindir]]
1525  --with-hal-callouts-dir=DIR
1526                          Directory where HAL expects its callout scripts to
1527                          be located [[default=$libdir/hal]]
1528  --with-hal-fdi-dir=DIR  Directory where HAL expects its fdi files to be
1529                          located
1530                          [[default=$datadir/hal/fdi/policy/20thirdparty]]
1531  --with-udev-rules-dir=DIR
1532                          Directory where udev expects its rules files
1533                          [[default=$libdir/udev/rules.d]]
1534  --without-libudev       Use to build without libudev on linux
1535
1536Some influential environment variables:
1537  CC          C compiler command
1538  CFLAGS      C compiler flags
1539  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1540              nonstandard directory <lib dir>
1541  LIBS        libraries to pass to the linker, e.g. -l<library>
1542  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543              you have headers in a nonstandard directory <include dir>
1544  PKG_CONFIG  path to pkg-config utility
1545  PKG_CONFIG_PATH
1546              directories to add to pkg-config's search path
1547  PKG_CONFIG_LIBDIR
1548              path overriding pkg-config's built-in search path
1549  LT_SYS_LIBRARY_PATH
1550              User-defined run-time library search path.
1551  LIBUDEV_CFLAGS
1552              C compiler flags for LIBUDEV, overriding pkg-config
1553  LIBUDEV_LIBS
1554              linker flags for LIBUDEV, overriding pkg-config
1555  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1556  XORG_LIBS   linker flags for XORG, overriding pkg-config
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-vmmouse/issues>.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567  # If there are subdirs, report their specific --help.
1568  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569    test -d "$ac_dir" ||
1570      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571      continue
1572    ac_builddir=.
1573
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1578  # A ".." for each directory in $ac_dir_suffix.
1579  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580  case $ac_top_builddir_sub in
1581  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583  esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
1589
1590case $srcdir in
1591  .)  # We are building in place.
1592    ac_srcdir=.
1593    ac_top_srcdir=$ac_top_builddir_sub
1594    ac_abs_top_srcdir=$ac_pwd ;;
1595  [\\/]* | ?:[\\/]* )  # Absolute name.
1596    ac_srcdir=$srcdir$ac_dir_suffix;
1597    ac_top_srcdir=$srcdir
1598    ac_abs_top_srcdir=$srcdir ;;
1599  *) # Relative name.
1600    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601    ac_top_srcdir=$ac_top_build_prefix$srcdir
1602    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603esac
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606    cd "$ac_dir" || { ac_status=$?; continue; }
1607    # Check for configure.gnu first; this name is used for a wrapper for
1608    # Metaconfig's "Configure" on case-insensitive file systems.
1609    if test -f "$ac_srcdir/configure.gnu"; then
1610      echo &&
1611      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612    elif test -f "$ac_srcdir/configure"; then
1613      echo &&
1614      $SHELL "$ac_srcdir/configure" --help=recursive
1615    else
1616      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617    fi || ac_status=$?
1618    cd "$ac_pwd" || { ac_status=$?; break; }
1619  done
1620fi
1621
1622test -n "$ac_init_help" && exit $ac_status
1623if $ac_init_version; then
1624  cat <<\_ACEOF
1625xf86-input-vmmouse configure 13.2.0
1626generated by GNU Autoconf 2.71
1627
1628Copyright (C) 2021 Free Software Foundation, Inc.
1629This configure script is free software; the Free Software Foundation
1630gives unlimited permission to copy, distribute and modify it.
1631_ACEOF
1632  exit
1633fi
1634
1635## ------------------------ ##
1636## Autoconf initialization. ##
1637## ------------------------ ##
1638
1639# ac_fn_c_try_compile LINENO
1640# --------------------------
1641# Try to compile conftest.$ac_ext, and return whether this succeeded.
1642ac_fn_c_try_compile ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  rm -f conftest.$ac_objext conftest.beam
1646  if { { ac_try="$ac_compile"
1647case "(($ac_try" in
1648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649  *) ac_try_echo=$ac_try;;
1650esac
1651eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652printf "%s\n" "$ac_try_echo"; } >&5
1653  (eval "$ac_compile") 2>conftest.err
1654  ac_status=$?
1655  if test -s conftest.err; then
1656    grep -v '^ *+' conftest.err >conftest.er1
1657    cat conftest.er1 >&5
1658    mv -f conftest.er1 conftest.err
1659  fi
1660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && {
1662	 test -z "$ac_c_werror_flag" ||
1663	 test ! -s conftest.err
1664       } && test -s conftest.$ac_objext
1665then :
1666  ac_retval=0
1667else $as_nop
1668  printf "%s\n" "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671	ac_retval=1
1672fi
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_compile
1677
1678# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1679# ------------------------------------------------------------------
1680# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1681# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1682ac_fn_check_decl ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  as_decl_name=`echo $2|sed 's/ *(.*//'`
1686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1687printf %s "checking whether $as_decl_name is declared... " >&6; }
1688if eval test \${$3+y}
1689then :
1690  printf %s "(cached) " >&6
1691else $as_nop
1692  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1693  eval ac_save_FLAGS=\$$6
1694  as_fn_append $6 " $5"
1695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696/* end confdefs.h.  */
1697$4
1698int
1699main (void)
1700{
1701#ifndef $as_decl_name
1702#ifdef __cplusplus
1703  (void) $as_decl_use;
1704#else
1705  (void) $as_decl_name;
1706#endif
1707#endif
1708
1709  ;
1710  return 0;
1711}
1712_ACEOF
1713if ac_fn_c_try_compile "$LINENO"
1714then :
1715  eval "$3=yes"
1716else $as_nop
1717  eval "$3=no"
1718fi
1719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1720  eval $6=\$ac_save_FLAGS
1721
1722fi
1723eval ac_res=\$$3
1724	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725printf "%s\n" "$ac_res" >&6; }
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728} # ac_fn_check_decl
1729
1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731# -------------------------------------------------------
1732# Tests whether HEADER exists and can be compiled using the include files in
1733# INCLUDES, setting the cache variable VAR accordingly.
1734ac_fn_c_check_header_compile ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738printf %s "checking for $2... " >&6; }
1739if eval test \${$3+y}
1740then :
1741  printf %s "(cached) " >&6
1742else $as_nop
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"
1749then :
1750  eval "$3=yes"
1751else $as_nop
1752  eval "$3=no"
1753fi
1754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1755fi
1756eval ac_res=\$$3
1757	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758printf "%s\n" "$ac_res" >&6; }
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761} # ac_fn_c_check_header_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1770  if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773  *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776printf "%s\n" "$ac_try_echo"; } >&5
1777  (eval "$ac_link") 2>conftest.err
1778  ac_status=$?
1779  if test -s conftest.err; then
1780    grep -v '^ *+' conftest.err >conftest.er1
1781    cat conftest.er1 >&5
1782    mv -f conftest.er1 conftest.err
1783  fi
1784  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785  test $ac_status = 0; } && {
1786	 test -z "$ac_c_werror_flag" ||
1787	 test ! -s conftest.err
1788       } && test -s conftest$ac_exeext && {
1789	 test "$cross_compiling" = yes ||
1790	 test -x conftest$ac_exeext
1791       }
1792then :
1793  ac_retval=0
1794else $as_nop
1795  printf "%s\n" "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
1797
1798	ac_retval=1
1799fi
1800  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802  # interfere with the next link command; also delete a directory that is
1803  # left behind by Apple's compiler.  We do this before executing the actions.
1804  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806  as_fn_set_status $ac_retval
1807
1808} # ac_fn_c_try_link
1809
1810# ac_fn_c_check_func LINENO FUNC VAR
1811# ----------------------------------
1812# Tests whether FUNC exists, setting the cache variable VAR accordingly
1813ac_fn_c_check_func ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817printf %s "checking for $2... " >&6; }
1818if eval test \${$3+y}
1819then :
1820  printf %s "(cached) " >&6
1821else $as_nop
1822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h.  */
1824/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1826#define $2 innocuous_$2
1827
1828/* System header to define __stub macros and hopefully few prototypes,
1829   which can conflict with char $2 (); below.  */
1830
1831#include <limits.h>
1832#undef $2
1833
1834/* Override any GCC internal prototype to avoid an error.
1835   Use char because int might match the return type of a GCC
1836   builtin and then its argument prototype would still apply.  */
1837#ifdef __cplusplus
1838extern "C"
1839#endif
1840char $2 ();
1841/* The GNU C library defines this for functions which it implements
1842    to always fail with ENOSYS.  Some functions are actually named
1843    something starting with __ and the normal name is an alias.  */
1844#if defined __stub_$2 || defined __stub___$2
1845choke me
1846#endif
1847
1848int
1849main (void)
1850{
1851return $2 ();
1852  ;
1853  return 0;
1854}
1855_ACEOF
1856if ac_fn_c_try_link "$LINENO"
1857then :
1858  eval "$3=yes"
1859else $as_nop
1860  eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.beam \
1863    conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867printf "%s\n" "$ac_res" >&6; }
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870} # ac_fn_c_check_func
1871ac_configure_args_raw=
1872for ac_arg
1873do
1874  case $ac_arg in
1875  *\'*)
1876    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1877  esac
1878  as_fn_append ac_configure_args_raw " '$ac_arg'"
1879done
1880
1881case $ac_configure_args_raw in
1882  *$as_nl*)
1883    ac_safe_unquote= ;;
1884  *)
1885    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1886    ac_unsafe_a="$ac_unsafe_z#~"
1887    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1888    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1889esac
1890
1891cat >config.log <<_ACEOF
1892This file contains any messages produced by compilers while
1893running configure, to aid debugging if configure makes a mistake.
1894
1895It was created by xf86-input-vmmouse $as_me 13.2.0, which was
1896generated by GNU Autoconf 2.71.  Invocation command line was
1897
1898  $ $0$ac_configure_args_raw
1899
1900_ACEOF
1901exec 5>>config.log
1902{
1903cat <<_ASUNAME
1904## --------- ##
1905## Platform. ##
1906## --------- ##
1907
1908hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1916
1917/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1918/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1919/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1920/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1921/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1922/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1923/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1924
1925_ASUNAME
1926
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930  IFS=$as_save_IFS
1931  case $as_dir in #(((
1932    '') as_dir=./ ;;
1933    */) ;;
1934    *) as_dir=$as_dir/ ;;
1935  esac
1936    printf "%s\n" "PATH: $as_dir"
1937  done
1938IFS=$as_save_IFS
1939
1940} >&5
1941
1942cat >&5 <<_ACEOF
1943
1944
1945## ----------- ##
1946## Core tests. ##
1947## ----------- ##
1948
1949_ACEOF
1950
1951
1952# Keep a trace of the command line.
1953# Strip out --no-create and --no-recursion so they do not pile up.
1954# Strip out --silent because we don't want to record it for future runs.
1955# Also quote any args containing shell meta-characters.
1956# Make two passes to allow for proper duplicate-argument suppression.
1957ac_configure_args=
1958ac_configure_args0=
1959ac_configure_args1=
1960ac_must_keep_next=false
1961for ac_pass in 1 2
1962do
1963  for ac_arg
1964  do
1965    case $ac_arg in
1966    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1967    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1968    | -silent | --silent | --silen | --sile | --sil)
1969      continue ;;
1970    *\'*)
1971      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1972    esac
1973    case $ac_pass in
1974    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1975    2)
1976      as_fn_append ac_configure_args1 " '$ac_arg'"
1977      if test $ac_must_keep_next = true; then
1978	ac_must_keep_next=false # Got value, back to normal.
1979      else
1980	case $ac_arg in
1981	  *=* | --config-cache | -C | -disable-* | --disable-* \
1982	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1983	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1984	  | -with-* | --with-* | -without-* | --without-* | --x)
1985	    case "$ac_configure_args0 " in
1986	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1987	    esac
1988	    ;;
1989	  -* ) ac_must_keep_next=true ;;
1990	esac
1991      fi
1992      as_fn_append ac_configure_args " '$ac_arg'"
1993      ;;
1994    esac
1995  done
1996done
1997{ ac_configure_args0=; unset ac_configure_args0;}
1998{ ac_configure_args1=; unset ac_configure_args1;}
1999
2000# When interrupted or exit'd, cleanup temporary files, and complete
2001# config.log.  We remove comments because anyway the quotes in there
2002# would cause problems or look ugly.
2003# WARNING: Use '\'' to represent an apostrophe within the trap.
2004# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2005trap 'exit_status=$?
2006  # Sanitize IFS.
2007  IFS=" ""	$as_nl"
2008  # Save into config.log some information that might help in debugging.
2009  {
2010    echo
2011
2012    printf "%s\n" "## ---------------- ##
2013## Cache variables. ##
2014## ---------------- ##"
2015    echo
2016    # The following way of writing the cache mishandles newlines in values,
2017(
2018  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019    eval ac_val=\$$ac_var
2020    case $ac_val in #(
2021    *${as_nl}*)
2022      case $ac_var in #(
2023      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025      esac
2026      case $ac_var in #(
2027      _ | IFS | as_nl) ;; #(
2028      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029      *) { eval $ac_var=; unset $ac_var;} ;;
2030      esac ;;
2031    esac
2032  done
2033  (set) 2>&1 |
2034    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035    *${as_nl}ac_space=\ *)
2036      sed -n \
2037	"s/'\''/'\''\\\\'\'''\''/g;
2038	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039      ;; #(
2040    *)
2041      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042      ;;
2043    esac |
2044    sort
2045)
2046    echo
2047
2048    printf "%s\n" "## ----------------- ##
2049## Output variables. ##
2050## ----------------- ##"
2051    echo
2052    for ac_var in $ac_subst_vars
2053    do
2054      eval ac_val=\$$ac_var
2055      case $ac_val in
2056      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057      esac
2058      printf "%s\n" "$ac_var='\''$ac_val'\''"
2059    done | sort
2060    echo
2061
2062    if test -n "$ac_subst_files"; then
2063      printf "%s\n" "## ------------------- ##
2064## File substitutions. ##
2065## ------------------- ##"
2066      echo
2067      for ac_var in $ac_subst_files
2068      do
2069	eval ac_val=\$$ac_var
2070	case $ac_val in
2071	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072	esac
2073	printf "%s\n" "$ac_var='\''$ac_val'\''"
2074      done | sort
2075      echo
2076    fi
2077
2078    if test -s confdefs.h; then
2079      printf "%s\n" "## ----------- ##
2080## confdefs.h. ##
2081## ----------- ##"
2082      echo
2083      cat confdefs.h
2084      echo
2085    fi
2086    test "$ac_signal" != 0 &&
2087      printf "%s\n" "$as_me: caught signal $ac_signal"
2088    printf "%s\n" "$as_me: exit $exit_status"
2089  } >&5
2090  rm -f core *.core core.conftest.* &&
2091    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092    exit $exit_status
2093' 0
2094for ac_signal in 1 2 13 15; do
2095  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096done
2097ac_signal=0
2098
2099# confdefs.h avoids OS command line length limits that DEFS can exceed.
2100rm -f -r conftest* confdefs.h
2101
2102printf "%s\n" "/* confdefs.h */" > confdefs.h
2103
2104# Predefined preprocessor variables.
2105
2106printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2107
2108printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2109
2110printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2111
2112printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2113
2114printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2115
2116printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2117
2118
2119# Let the site file select an alternate cache file if it wants to.
2120# Prefer an explicitly selected file to automatically selected ones.
2121if test -n "$CONFIG_SITE"; then
2122  ac_site_files="$CONFIG_SITE"
2123elif test "x$prefix" != xNONE; then
2124  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2125else
2126  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2127fi
2128
2129for ac_site_file in $ac_site_files
2130do
2131  case $ac_site_file in #(
2132  */*) :
2133     ;; #(
2134  *) :
2135    ac_site_file=./$ac_site_file ;;
2136esac
2137  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2140    sed 's/^/| /' "$ac_site_file" >&5
2141    . "$ac_site_file" \
2142      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2144as_fn_error $? "failed to load site script $ac_site_file
2145See \`config.log' for more details" "$LINENO" 5; }
2146  fi
2147done
2148
2149if test -r "$cache_file"; then
2150  # Some versions of bash will fail to source /dev/null (special files
2151  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2152  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2155    case $cache_file in
2156      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157      *)                      . "./$cache_file";;
2158    esac
2159  fi
2160else
2161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2163  >$cache_file
2164fi
2165
2166# Test code for whether the C compiler supports C89 (global declarations)
2167ac_c_conftest_c89_globals='
2168/* Does the compiler advertise C89 conformance?
2169   Do not test the value of __STDC__, because some compilers set it to 0
2170   while being otherwise adequately conformant. */
2171#if !defined __STDC__
2172# error "Compiler does not advertise C89 conformance"
2173#endif
2174
2175#include <stddef.h>
2176#include <stdarg.h>
2177struct stat;
2178/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2179struct buf { int x; };
2180struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2181static char *e (p, i)
2182     char **p;
2183     int i;
2184{
2185  return p[i];
2186}
2187static char *f (char * (*g) (char **, int), char **p, ...)
2188{
2189  char *s;
2190  va_list v;
2191  va_start (v,p);
2192  s = g (p, va_arg (v,int));
2193  va_end (v);
2194  return s;
2195}
2196
2197/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2198   function prototypes and stuff, but not \xHH hex character constants.
2199   These do not provoke an error unfortunately, instead are silently treated
2200   as an "x".  The following induces an error, until -std is added to get
2201   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2202   array size at least.  It is necessary to write \x00 == 0 to get something
2203   that is true only with -std.  */
2204int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2205
2206/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2207   inside strings and character constants.  */
2208#define FOO(x) '\''x'\''
2209int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2210
2211int test (int i, double x);
2212struct s1 {int (*f) (int a);};
2213struct s2 {int (*f) (double a);};
2214int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2215               int, int);'
2216
2217# Test code for whether the C compiler supports C89 (body of main).
2218ac_c_conftest_c89_main='
2219ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2220'
2221
2222# Test code for whether the C compiler supports C99 (global declarations)
2223ac_c_conftest_c99_globals='
2224// Does the compiler advertise C99 conformance?
2225#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2226# error "Compiler does not advertise C99 conformance"
2227#endif
2228
2229#include <stdbool.h>
2230extern int puts (const char *);
2231extern int printf (const char *, ...);
2232extern int dprintf (int, const char *, ...);
2233extern void *malloc (size_t);
2234
2235// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2236// dprintf is used instead of fprintf to avoid needing to declare
2237// FILE and stderr.
2238#define debug(...) dprintf (2, __VA_ARGS__)
2239#define showlist(...) puts (#__VA_ARGS__)
2240#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2241static void
2242test_varargs_macros (void)
2243{
2244  int x = 1234;
2245  int y = 5678;
2246  debug ("Flag");
2247  debug ("X = %d\n", x);
2248  showlist (The first, second, and third items.);
2249  report (x>y, "x is %d but y is %d", x, y);
2250}
2251
2252// Check long long types.
2253#define BIG64 18446744073709551615ull
2254#define BIG32 4294967295ul
2255#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2256#if !BIG_OK
2257  #error "your preprocessor is broken"
2258#endif
2259#if BIG_OK
2260#else
2261  #error "your preprocessor is broken"
2262#endif
2263static long long int bignum = -9223372036854775807LL;
2264static unsigned long long int ubignum = BIG64;
2265
2266struct incomplete_array
2267{
2268  int datasize;
2269  double data[];
2270};
2271
2272struct named_init {
2273  int number;
2274  const wchar_t *name;
2275  double average;
2276};
2277
2278typedef const char *ccp;
2279
2280static inline int
2281test_restrict (ccp restrict text)
2282{
2283  // See if C++-style comments work.
2284  // Iterate through items via the restricted pointer.
2285  // Also check for declarations in for loops.
2286  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2287    continue;
2288  return 0;
2289}
2290
2291// Check varargs and va_copy.
2292static bool
2293test_varargs (const char *format, ...)
2294{
2295  va_list args;
2296  va_start (args, format);
2297  va_list args_copy;
2298  va_copy (args_copy, args);
2299
2300  const char *str = "";
2301  int number = 0;
2302  float fnumber = 0;
2303
2304  while (*format)
2305    {
2306      switch (*format++)
2307	{
2308	case '\''s'\'': // string
2309	  str = va_arg (args_copy, const char *);
2310	  break;
2311	case '\''d'\'': // int
2312	  number = va_arg (args_copy, int);
2313	  break;
2314	case '\''f'\'': // float
2315	  fnumber = va_arg (args_copy, double);
2316	  break;
2317	default:
2318	  break;
2319	}
2320    }
2321  va_end (args_copy);
2322  va_end (args);
2323
2324  return *str && number && fnumber;
2325}
2326'
2327
2328# Test code for whether the C compiler supports C99 (body of main).
2329ac_c_conftest_c99_main='
2330  // Check bool.
2331  _Bool success = false;
2332  success |= (argc != 0);
2333
2334  // Check restrict.
2335  if (test_restrict ("String literal") == 0)
2336    success = true;
2337  char *restrict newvar = "Another string";
2338
2339  // Check varargs.
2340  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2341  test_varargs_macros ();
2342
2343  // Check flexible array members.
2344  struct incomplete_array *ia =
2345    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2346  ia->datasize = 10;
2347  for (int i = 0; i < ia->datasize; ++i)
2348    ia->data[i] = i * 1.234;
2349
2350  // Check named initializers.
2351  struct named_init ni = {
2352    .number = 34,
2353    .name = L"Test wide string",
2354    .average = 543.34343,
2355  };
2356
2357  ni.number = 58;
2358
2359  int dynamic_array[ni.number];
2360  dynamic_array[0] = argv[0][0];
2361  dynamic_array[ni.number - 1] = 543;
2362
2363  // work around unused variable warnings
2364  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2365	 || dynamic_array[ni.number - 1] != 543);
2366'
2367
2368# Test code for whether the C compiler supports C11 (global declarations)
2369ac_c_conftest_c11_globals='
2370// Does the compiler advertise C11 conformance?
2371#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2372# error "Compiler does not advertise C11 conformance"
2373#endif
2374
2375// Check _Alignas.
2376char _Alignas (double) aligned_as_double;
2377char _Alignas (0) no_special_alignment;
2378extern char aligned_as_int;
2379char _Alignas (0) _Alignas (int) aligned_as_int;
2380
2381// Check _Alignof.
2382enum
2383{
2384  int_alignment = _Alignof (int),
2385  int_array_alignment = _Alignof (int[100]),
2386  char_alignment = _Alignof (char)
2387};
2388_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2389
2390// Check _Noreturn.
2391int _Noreturn does_not_return (void) { for (;;) continue; }
2392
2393// Check _Static_assert.
2394struct test_static_assert
2395{
2396  int x;
2397  _Static_assert (sizeof (int) <= sizeof (long int),
2398                  "_Static_assert does not work in struct");
2399  long int y;
2400};
2401
2402// Check UTF-8 literals.
2403#define u8 syntax error!
2404char const utf8_literal[] = u8"happens to be ASCII" "another string";
2405
2406// Check duplicate typedefs.
2407typedef long *long_ptr;
2408typedef long int *long_ptr;
2409typedef long_ptr long_ptr;
2410
2411// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2412struct anonymous
2413{
2414  union {
2415    struct { int i; int j; };
2416    struct { int k; long int l; } w;
2417  };
2418  int m;
2419} v1;
2420'
2421
2422# Test code for whether the C compiler supports C11 (body of main).
2423ac_c_conftest_c11_main='
2424  _Static_assert ((offsetof (struct anonymous, i)
2425		   == offsetof (struct anonymous, w.k)),
2426		  "Anonymous union alignment botch");
2427  v1.i = 2;
2428  v1.w.k = 5;
2429  ok |= v1.i != 5;
2430'
2431
2432# Test code for whether the C compiler supports C11 (complete).
2433ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2434${ac_c_conftest_c99_globals}
2435${ac_c_conftest_c11_globals}
2436
2437int
2438main (int argc, char **argv)
2439{
2440  int ok = 0;
2441  ${ac_c_conftest_c89_main}
2442  ${ac_c_conftest_c99_main}
2443  ${ac_c_conftest_c11_main}
2444  return ok;
2445}
2446"
2447
2448# Test code for whether the C compiler supports C99 (complete).
2449ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2450${ac_c_conftest_c99_globals}
2451
2452int
2453main (int argc, char **argv)
2454{
2455  int ok = 0;
2456  ${ac_c_conftest_c89_main}
2457  ${ac_c_conftest_c99_main}
2458  return ok;
2459}
2460"
2461
2462# Test code for whether the C compiler supports C89 (complete).
2463ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2464
2465int
2466main (int argc, char **argv)
2467{
2468  int ok = 0;
2469  ${ac_c_conftest_c89_main}
2470  return ok;
2471}
2472"
2473
2474as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2475as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2476as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2477as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2478as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2479as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2480as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2481as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2482as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2483
2484# Auxiliary files required by this configure script.
2485ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2486
2487# Locations in which to look for auxiliary files.
2488ac_aux_dir_candidates="${srcdir}/."
2489
2490# Search for a directory containing all of the required auxiliary files,
2491# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2492# If we don't find one directory that contains all the files we need,
2493# we report the set of missing files from the *first* directory in
2494# $ac_aux_dir_candidates and give up.
2495ac_missing_aux_files=""
2496ac_first_candidate=:
2497printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499as_found=false
2500for as_dir in $ac_aux_dir_candidates
2501do
2502  IFS=$as_save_IFS
2503  case $as_dir in #(((
2504    '') as_dir=./ ;;
2505    */) ;;
2506    *) as_dir=$as_dir/ ;;
2507  esac
2508  as_found=:
2509
2510  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2511  ac_aux_dir_found=yes
2512  ac_install_sh=
2513  for ac_aux in $ac_aux_files
2514  do
2515    # As a special case, if "install-sh" is required, that requirement
2516    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2517    # and $ac_install_sh is set appropriately for whichever one is found.
2518    if test x"$ac_aux" = x"install-sh"
2519    then
2520      if test -f "${as_dir}install-sh"; then
2521        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2522        ac_install_sh="${as_dir}install-sh -c"
2523      elif test -f "${as_dir}install.sh"; then
2524        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2525        ac_install_sh="${as_dir}install.sh -c"
2526      elif test -f "${as_dir}shtool"; then
2527        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2528        ac_install_sh="${as_dir}shtool install -c"
2529      else
2530        ac_aux_dir_found=no
2531        if $ac_first_candidate; then
2532          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2533        else
2534          break
2535        fi
2536      fi
2537    else
2538      if test -f "${as_dir}${ac_aux}"; then
2539        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2540      else
2541        ac_aux_dir_found=no
2542        if $ac_first_candidate; then
2543          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2544        else
2545          break
2546        fi
2547      fi
2548    fi
2549  done
2550  if test "$ac_aux_dir_found" = yes; then
2551    ac_aux_dir="$as_dir"
2552    break
2553  fi
2554  ac_first_candidate=false
2555
2556  as_found=false
2557done
2558IFS=$as_save_IFS
2559if $as_found
2560then :
2561
2562else $as_nop
2563  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2564fi
2565
2566
2567# These three variables are undocumented and unsupported,
2568# and are intended to be withdrawn in a future Autoconf release.
2569# They can cause serious problems if a builder's source tree is in a directory
2570# whose full name contains unusual characters.
2571if test -f "${ac_aux_dir}config.guess"; then
2572  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2573fi
2574if test -f "${ac_aux_dir}config.sub"; then
2575  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2576fi
2577if test -f "$ac_aux_dir/configure"; then
2578  ac_configure="$SHELL ${ac_aux_dir}configure"
2579fi
2580
2581# Check that the precious variables saved in the cache have kept the same
2582# value.
2583ac_cache_corrupted=false
2584for ac_var in $ac_precious_vars; do
2585  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586  eval ac_new_set=\$ac_env_${ac_var}_set
2587  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588  eval ac_new_val=\$ac_env_${ac_var}_value
2589  case $ac_old_set,$ac_new_set in
2590    set,)
2591      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593      ac_cache_corrupted=: ;;
2594    ,set)
2595      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597      ac_cache_corrupted=: ;;
2598    ,);;
2599    *)
2600      if test "x$ac_old_val" != "x$ac_new_val"; then
2601	# differences in whitespace do not lead to failure.
2602	ac_old_val_w=`echo x $ac_old_val`
2603	ac_new_val_w=`echo x $ac_new_val`
2604	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607	  ac_cache_corrupted=:
2608	else
2609	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611	  eval $ac_var=\$ac_old_val
2612	fi
2613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2614printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2616printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2617      fi;;
2618  esac
2619  # Pass precious variables to config.status.
2620  if test "$ac_new_set" = set; then
2621    case $ac_new_val in
2622    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623    *) ac_arg=$ac_var=$ac_new_val ;;
2624    esac
2625    case " $ac_configure_args " in
2626      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2627      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628    esac
2629  fi
2630done
2631if $ac_cache_corrupted; then
2632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2636  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2637	    and start over" "$LINENO" 5
2638fi
2639## -------------------- ##
2640## Main body of script. ##
2641## -------------------- ##
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648
2649
2650
2651
2652
2653ac_config_headers="$ac_config_headers config.h"
2654
2655
2656am__api_version='1.16'
2657
2658
2659
2660  # Find a good install program.  We prefer a C program (faster),
2661# so one script is as good as another.  But avoid the broken or
2662# incompatible versions:
2663# SysV /etc/install, /usr/sbin/install
2664# SunOS /usr/etc/install
2665# IRIX /sbin/install
2666# AIX /bin/install
2667# AmigaOS /C/install, which installs bootblocks on floppy discs
2668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2669# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2671# OS/2's system install, which has a completely different semantic
2672# ./install, which can be erroneously created by make from ./install.sh.
2673# Reject install programs that cannot install multiple files.
2674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2675printf %s "checking for a BSD-compatible install... " >&6; }
2676if test -z "$INSTALL"; then
2677if test ${ac_cv_path_install+y}
2678then :
2679  printf %s "(cached) " >&6
2680else $as_nop
2681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  case $as_dir in #(((
2686    '') as_dir=./ ;;
2687    */) ;;
2688    *) as_dir=$as_dir/ ;;
2689  esac
2690    # Account for fact that we put trailing slashes in our PATH walk.
2691case $as_dir in #((
2692  ./ | /[cC]/* | \
2693  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2694  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2695  /usr/ucb/* ) ;;
2696  *)
2697    # OSF1 and SCO ODT 3.0 have their own names for install.
2698    # Don't use installbsd from OSF since it installs stuff as root
2699    # by default.
2700    for ac_prog in ginstall scoinst install; do
2701      for ac_exec_ext in '' $ac_executable_extensions; do
2702	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2703	  if test $ac_prog = install &&
2704	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2705	    # AIX install.  It has an incompatible calling convention.
2706	    :
2707	  elif test $ac_prog = install &&
2708	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709	    # program-specific install script used by HP pwplus--don't use.
2710	    :
2711	  else
2712	    rm -rf conftest.one conftest.two conftest.dir
2713	    echo one > conftest.one
2714	    echo two > conftest.two
2715	    mkdir conftest.dir
2716	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2717	      test -s conftest.one && test -s conftest.two &&
2718	      test -s conftest.dir/conftest.one &&
2719	      test -s conftest.dir/conftest.two
2720	    then
2721	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2722	      break 3
2723	    fi
2724	  fi
2725	fi
2726      done
2727    done
2728    ;;
2729esac
2730
2731  done
2732IFS=$as_save_IFS
2733
2734rm -rf conftest.one conftest.two conftest.dir
2735
2736fi
2737  if test ${ac_cv_path_install+y}; then
2738    INSTALL=$ac_cv_path_install
2739  else
2740    # As a last resort, use the slow shell script.  Don't cache a
2741    # value for INSTALL within a source directory, because that will
2742    # break other packages using the cache if that directory is
2743    # removed, or if the value is a relative name.
2744    INSTALL=$ac_install_sh
2745  fi
2746fi
2747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2748printf "%s\n" "$INSTALL" >&6; }
2749
2750# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2751# It thinks the first close brace ends the variable substitution.
2752test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2753
2754test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2755
2756test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2757
2758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2759printf %s "checking whether build environment is sane... " >&6; }
2760# Reject unsafe characters in $srcdir or the absolute working directory
2761# name.  Accept space and tab only in the latter.
2762am_lf='
2763'
2764case `pwd` in
2765  *[\\\"\#\$\&\'\`$am_lf]*)
2766    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2767esac
2768case $srcdir in
2769  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2770    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2771esac
2772
2773# Do 'set' in a subshell so we don't clobber the current shell's
2774# arguments.  Must try -L first in case configure is actually a
2775# symlink; some systems play weird games with the mod time of symlinks
2776# (eg FreeBSD returns the mod time of the symlink's containing
2777# directory).
2778if (
2779   am_has_slept=no
2780   for am_try in 1 2; do
2781     echo "timestamp, slept: $am_has_slept" > conftest.file
2782     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2783     if test "$*" = "X"; then
2784	# -L didn't work.
2785	set X `ls -t "$srcdir/configure" conftest.file`
2786     fi
2787     if test "$*" != "X $srcdir/configure conftest.file" \
2788	&& test "$*" != "X conftest.file $srcdir/configure"; then
2789
2790	# If neither matched, then we have a broken ls.  This can happen
2791	# if, for instance, CONFIG_SHELL is bash and it inherits a
2792	# broken ls alias from the environment.  This has actually
2793	# happened.  Such a system could not be considered "sane".
2794	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2795  alias in your environment" "$LINENO" 5
2796     fi
2797     if test "$2" = conftest.file || test $am_try -eq 2; then
2798       break
2799     fi
2800     # Just in case.
2801     sleep 1
2802     am_has_slept=yes
2803   done
2804   test "$2" = conftest.file
2805   )
2806then
2807   # Ok.
2808   :
2809else
2810   as_fn_error $? "newly created file is older than distributed files!
2811Check your system clock" "$LINENO" 5
2812fi
2813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814printf "%s\n" "yes" >&6; }
2815# If we didn't sleep, we still need to ensure time stamps of config.status and
2816# generated files are strictly newer.
2817am_sleep_pid=
2818if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2819  ( sleep 1 ) &
2820  am_sleep_pid=$!
2821fi
2822
2823rm -f conftest.file
2824
2825test "$program_prefix" != NONE &&
2826  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2827# Use a double $ so make ignores it.
2828test "$program_suffix" != NONE &&
2829  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2830# Double any \ or $.
2831# By default was `s,x,x', remove it if useless.
2832ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2833program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2834
2835
2836# Expand $ac_aux_dir to an absolute path.
2837am_aux_dir=`cd "$ac_aux_dir" && pwd`
2838
2839
2840  if test x"${MISSING+set}" != xset; then
2841  MISSING="\${SHELL} '$am_aux_dir/missing'"
2842fi
2843# Use eval to expand $SHELL
2844if eval "$MISSING --is-lightweight"; then
2845  am_missing_run="$MISSING "
2846else
2847  am_missing_run=
2848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2850fi
2851
2852if test x"${install_sh+set}" != xset; then
2853  case $am_aux_dir in
2854  *\ * | *\	*)
2855    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856  *)
2857    install_sh="\${SHELL} $am_aux_dir/install-sh"
2858  esac
2859fi
2860
2861# Installed binaries are usually stripped using 'strip' when the user
2862# run "make install-strip".  However 'strip' might not be the right
2863# tool to use in cross-compilation environments, therefore Automake
2864# will honor the 'STRIP' environment variable to overrule this program.
2865if test "$cross_compiling" != no; then
2866  if test -n "$ac_tool_prefix"; then
2867  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868set dummy ${ac_tool_prefix}strip; ac_word=$2
2869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870printf %s "checking for $ac_word... " >&6; }
2871if test ${ac_cv_prog_STRIP+y}
2872then :
2873  printf %s "(cached) " >&6
2874else $as_nop
2875  if test -n "$STRIP"; then
2876  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881  IFS=$as_save_IFS
2882  case $as_dir in #(((
2883    '') as_dir=./ ;;
2884    */) ;;
2885    *) as_dir=$as_dir/ ;;
2886  esac
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2889    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899STRIP=$ac_cv_prog_STRIP
2900if test -n "$STRIP"; then
2901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2902printf "%s\n" "$STRIP" >&6; }
2903else
2904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905printf "%s\n" "no" >&6; }
2906fi
2907
2908
2909fi
2910if test -z "$ac_cv_prog_STRIP"; then
2911  ac_ct_STRIP=$STRIP
2912  # Extract the first word of "strip", so it can be a program name with args.
2913set dummy strip; ac_word=$2
2914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915printf %s "checking for $ac_word... " >&6; }
2916if test ${ac_cv_prog_ac_ct_STRIP+y}
2917then :
2918  printf %s "(cached) " >&6
2919else $as_nop
2920  if test -n "$ac_ct_STRIP"; then
2921  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  case $as_dir in #(((
2928    '') as_dir=./ ;;
2929    */) ;;
2930    *) as_dir=$as_dir/ ;;
2931  esac
2932    for ac_exec_ext in '' $ac_executable_extensions; do
2933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2934    ac_cv_prog_ac_ct_STRIP="strip"
2935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2936    break 2
2937  fi
2938done
2939  done
2940IFS=$as_save_IFS
2941
2942fi
2943fi
2944ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2945if test -n "$ac_ct_STRIP"; then
2946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2947printf "%s\n" "$ac_ct_STRIP" >&6; }
2948else
2949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950printf "%s\n" "no" >&6; }
2951fi
2952
2953  if test "x$ac_ct_STRIP" = x; then
2954    STRIP=":"
2955  else
2956    case $cross_compiling:$ac_tool_warned in
2957yes:)
2958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960ac_tool_warned=yes ;;
2961esac
2962    STRIP=$ac_ct_STRIP
2963  fi
2964else
2965  STRIP="$ac_cv_prog_STRIP"
2966fi
2967
2968fi
2969INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2970
2971
2972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2973printf %s "checking for a race-free mkdir -p... " >&6; }
2974if test -z "$MKDIR_P"; then
2975  if test ${ac_cv_path_mkdir+y}
2976then :
2977  printf %s "(cached) " >&6
2978else $as_nop
2979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2981do
2982  IFS=$as_save_IFS
2983  case $as_dir in #(((
2984    '') as_dir=./ ;;
2985    */) ;;
2986    *) as_dir=$as_dir/ ;;
2987  esac
2988    for ac_prog in mkdir gmkdir; do
2989	 for ac_exec_ext in '' $ac_executable_extensions; do
2990	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2991	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2992	     'mkdir ('*'coreutils) '* | \
2993	     'BusyBox '* | \
2994	     'mkdir (fileutils) '4.1*)
2995	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2996	       break 3;;
2997	   esac
2998	 done
2999       done
3000  done
3001IFS=$as_save_IFS
3002
3003fi
3004
3005  test -d ./--version && rmdir ./--version
3006  if test ${ac_cv_path_mkdir+y}; then
3007    MKDIR_P="$ac_cv_path_mkdir -p"
3008  else
3009    # As a last resort, use the slow shell script.  Don't cache a
3010    # value for MKDIR_P within a source directory, because that will
3011    # break other packages using the cache if that directory is
3012    # removed, or if the value is a relative name.
3013    MKDIR_P="$ac_install_sh -d"
3014  fi
3015fi
3016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3017printf "%s\n" "$MKDIR_P" >&6; }
3018
3019for ac_prog in gawk mawk nawk awk
3020do
3021  # Extract the first word of "$ac_prog", so it can be a program name with args.
3022set dummy $ac_prog; ac_word=$2
3023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024printf %s "checking for $ac_word... " >&6; }
3025if test ${ac_cv_prog_AWK+y}
3026then :
3027  printf %s "(cached) " >&6
3028else $as_nop
3029  if test -n "$AWK"; then
3030  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  case $as_dir in #(((
3037    '') as_dir=./ ;;
3038    */) ;;
3039    *) as_dir=$as_dir/ ;;
3040  esac
3041    for ac_exec_ext in '' $ac_executable_extensions; do
3042  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3043    ac_cv_prog_AWK="$ac_prog"
3044    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3045    break 2
3046  fi
3047done
3048  done
3049IFS=$as_save_IFS
3050
3051fi
3052fi
3053AWK=$ac_cv_prog_AWK
3054if test -n "$AWK"; then
3055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3056printf "%s\n" "$AWK" >&6; }
3057else
3058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059printf "%s\n" "no" >&6; }
3060fi
3061
3062
3063  test -n "$AWK" && break
3064done
3065
3066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3067printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3068set x ${MAKE-make}
3069ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3070if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3071then :
3072  printf %s "(cached) " >&6
3073else $as_nop
3074  cat >conftest.make <<\_ACEOF
3075SHELL = /bin/sh
3076all:
3077	@echo '@@@%%%=$(MAKE)=@@@%%%'
3078_ACEOF
3079# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3080case `${MAKE-make} -f conftest.make 2>/dev/null` in
3081  *@@@%%%=?*=@@@%%%*)
3082    eval ac_cv_prog_make_${ac_make}_set=yes;;
3083  *)
3084    eval ac_cv_prog_make_${ac_make}_set=no;;
3085esac
3086rm -f conftest.make
3087fi
3088if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090printf "%s\n" "yes" >&6; }
3091  SET_MAKE=
3092else
3093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094printf "%s\n" "no" >&6; }
3095  SET_MAKE="MAKE=${MAKE-make}"
3096fi
3097
3098rm -rf .tst 2>/dev/null
3099mkdir .tst 2>/dev/null
3100if test -d .tst; then
3101  am__leading_dot=.
3102else
3103  am__leading_dot=_
3104fi
3105rmdir .tst 2>/dev/null
3106
3107# Check whether --enable-silent-rules was given.
3108if test ${enable_silent_rules+y}
3109then :
3110  enableval=$enable_silent_rules;
3111fi
3112
3113case $enable_silent_rules in # (((
3114  yes) AM_DEFAULT_VERBOSITY=0;;
3115   no) AM_DEFAULT_VERBOSITY=1;;
3116    *) AM_DEFAULT_VERBOSITY=1;;
3117esac
3118am_make=${MAKE-make}
3119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3120printf %s "checking whether $am_make supports nested variables... " >&6; }
3121if test ${am_cv_make_support_nested_variables+y}
3122then :
3123  printf %s "(cached) " >&6
3124else $as_nop
3125  if printf "%s\n" 'TRUE=$(BAR$(V))
3126BAR0=false
3127BAR1=true
3128V=1
3129am__doit:
3130	@$(TRUE)
3131.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3132  am_cv_make_support_nested_variables=yes
3133else
3134  am_cv_make_support_nested_variables=no
3135fi
3136fi
3137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3138printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3139if test $am_cv_make_support_nested_variables = yes; then
3140    AM_V='$(V)'
3141  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3142else
3143  AM_V=$AM_DEFAULT_VERBOSITY
3144  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3145fi
3146AM_BACKSLASH='\'
3147
3148if test "`cd $srcdir && pwd`" != "`pwd`"; then
3149  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3150  # is not polluted with repeated "-I."
3151  am__isrc=' -I$(srcdir)'
3152  # test to see if srcdir already configured
3153  if test -f $srcdir/config.status; then
3154    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3155  fi
3156fi
3157
3158# test whether we have cygpath
3159if test -z "$CYGPATH_W"; then
3160  if (cygpath --version) >/dev/null 2>/dev/null; then
3161    CYGPATH_W='cygpath -w'
3162  else
3163    CYGPATH_W=echo
3164  fi
3165fi
3166
3167
3168# Define the identity of the package.
3169 PACKAGE='xf86-input-vmmouse'
3170 VERSION='13.2.0'
3171
3172
3173printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3174
3175
3176printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3177
3178# Some tools Automake needs.
3179
3180ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3181
3182
3183AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3184
3185
3186AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3187
3188
3189AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3190
3191
3192MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3193
3194# For better backward compatibility.  To be removed once Automake 1.9.x
3195# dies out for good.  For more background, see:
3196# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3197# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3198mkdir_p='$(MKDIR_P)'
3199
3200# We need awk for the "check" target (and possibly the TAP driver).  The
3201# system "awk" is bad on some platforms.
3202# Always define AMTAR for backward compatibility.  Yes, it's still used
3203# in the wild :-(  We should find a proper way to deprecate it ...
3204AMTAR='$${TAR-tar}'
3205
3206
3207# We'll loop over all known methods to create a tar archive until one works.
3208_am_tools='gnutar  pax cpio none'
3209
3210am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3211
3212
3213
3214
3215
3216# Variables for tags utilities; see am/tags.am
3217if test -z "$CTAGS"; then
3218  CTAGS=ctags
3219fi
3220
3221if test -z "$ETAGS"; then
3222  ETAGS=etags
3223fi
3224
3225if test -z "$CSCOPE"; then
3226  CSCOPE=cscope
3227fi
3228
3229
3230
3231# POSIX will say in a future version that running "rm -f" with no argument
3232# is OK; and we want to be able to make that assumption in our Makefile
3233# recipes.  So use an aggressive probe to check that the usage we want is
3234# actually supported "in the wild" to an acceptable degree.
3235# See automake bug#10828.
3236# To make any issue more visible, cause the running configure to be aborted
3237# by default if the 'rm' program in use doesn't match our expectations; the
3238# user can still override this though.
3239if rm -f && rm -fr && rm -rf; then : OK; else
3240  cat >&2 <<'END'
3241Oops!
3242
3243Your 'rm' program seems unable to run without file operands specified
3244on the command line, even when the '-f' option is present.  This is contrary
3245to the behaviour of most rm programs out there, and not conforming with
3246the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3247
3248Please tell bug-automake@gnu.org about your system, including the value
3249of your $PATH and any error possibly output before this message.  This
3250can help us improve future automake versions.
3251
3252END
3253  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3254    echo 'Configuration will proceed anyway, since you have set the' >&2
3255    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3256    echo >&2
3257  else
3258    cat >&2 <<'END'
3259Aborting the configuration process, to ensure you take notice of the issue.
3260
3261You can download and install GNU coreutils to get an 'rm' implementation
3262that behaves properly: <https://www.gnu.org/software/coreutils/>.
3263
3264If you want to complete the configuration process using your problematic
3265'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3266to "yes", and re-run configure.
3267
3268END
3269    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3270  fi
3271fi
3272
3273
3274# XORG_DEFAULT_OPTIONS below forces C99. Solaris GCC doesn't like that.
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284ac_ext=c
3285ac_cpp='$CPP $CPPFLAGS'
3286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289if test -n "$ac_tool_prefix"; then
3290  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3291set dummy ${ac_tool_prefix}gcc; ac_word=$2
3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293printf %s "checking for $ac_word... " >&6; }
3294if test ${ac_cv_prog_CC+y}
3295then :
3296  printf %s "(cached) " >&6
3297else $as_nop
3298  if test -n "$CC"; then
3299  ac_cv_prog_CC="$CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  case $as_dir in #(((
3306    '') as_dir=./ ;;
3307    */) ;;
3308    *) as_dir=$as_dir/ ;;
3309  esac
3310    for ac_exec_ext in '' $ac_executable_extensions; do
3311  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3312    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3313    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314    break 2
3315  fi
3316done
3317  done
3318IFS=$as_save_IFS
3319
3320fi
3321fi
3322CC=$ac_cv_prog_CC
3323if test -n "$CC"; then
3324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325printf "%s\n" "$CC" >&6; }
3326else
3327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328printf "%s\n" "no" >&6; }
3329fi
3330
3331
3332fi
3333if test -z "$ac_cv_prog_CC"; then
3334  ac_ct_CC=$CC
3335  # Extract the first word of "gcc", so it can be a program name with args.
3336set dummy gcc; ac_word=$2
3337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338printf %s "checking for $ac_word... " >&6; }
3339if test ${ac_cv_prog_ac_ct_CC+y}
3340then :
3341  printf %s "(cached) " >&6
3342else $as_nop
3343  if test -n "$ac_ct_CC"; then
3344  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349  IFS=$as_save_IFS
3350  case $as_dir in #(((
3351    '') as_dir=./ ;;
3352    */) ;;
3353    *) as_dir=$as_dir/ ;;
3354  esac
3355    for ac_exec_ext in '' $ac_executable_extensions; do
3356  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3357    ac_cv_prog_ac_ct_CC="gcc"
3358    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3359    break 2
3360  fi
3361done
3362  done
3363IFS=$as_save_IFS
3364
3365fi
3366fi
3367ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368if test -n "$ac_ct_CC"; then
3369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370printf "%s\n" "$ac_ct_CC" >&6; }
3371else
3372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373printf "%s\n" "no" >&6; }
3374fi
3375
3376  if test "x$ac_ct_CC" = x; then
3377    CC=""
3378  else
3379    case $cross_compiling:$ac_tool_warned in
3380yes:)
3381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383ac_tool_warned=yes ;;
3384esac
3385    CC=$ac_ct_CC
3386  fi
3387else
3388  CC="$ac_cv_prog_CC"
3389fi
3390
3391if test -z "$CC"; then
3392          if test -n "$ac_tool_prefix"; then
3393    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3394set dummy ${ac_tool_prefix}cc; ac_word=$2
3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396printf %s "checking for $ac_word... " >&6; }
3397if test ${ac_cv_prog_CC+y}
3398then :
3399  printf %s "(cached) " >&6
3400else $as_nop
3401  if test -n "$CC"; then
3402  ac_cv_prog_CC="$CC" # Let the user override the test.
3403else
3404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405for as_dir in $PATH
3406do
3407  IFS=$as_save_IFS
3408  case $as_dir in #(((
3409    '') as_dir=./ ;;
3410    */) ;;
3411    *) as_dir=$as_dir/ ;;
3412  esac
3413    for ac_exec_ext in '' $ac_executable_extensions; do
3414  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3415    ac_cv_prog_CC="${ac_tool_prefix}cc"
3416    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3417    break 2
3418  fi
3419done
3420  done
3421IFS=$as_save_IFS
3422
3423fi
3424fi
3425CC=$ac_cv_prog_CC
3426if test -n "$CC"; then
3427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428printf "%s\n" "$CC" >&6; }
3429else
3430  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431printf "%s\n" "no" >&6; }
3432fi
3433
3434
3435  fi
3436fi
3437if test -z "$CC"; then
3438  # Extract the first word of "cc", so it can be a program name with args.
3439set dummy cc; ac_word=$2
3440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441printf %s "checking for $ac_word... " >&6; }
3442if test ${ac_cv_prog_CC+y}
3443then :
3444  printf %s "(cached) " >&6
3445else $as_nop
3446  if test -n "$CC"; then
3447  ac_cv_prog_CC="$CC" # Let the user override the test.
3448else
3449  ac_prog_rejected=no
3450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451for as_dir in $PATH
3452do
3453  IFS=$as_save_IFS
3454  case $as_dir in #(((
3455    '') as_dir=./ ;;
3456    */) ;;
3457    *) as_dir=$as_dir/ ;;
3458  esac
3459    for ac_exec_ext in '' $ac_executable_extensions; do
3460  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3461    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3462       ac_prog_rejected=yes
3463       continue
3464     fi
3465    ac_cv_prog_CC="cc"
3466    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3467    break 2
3468  fi
3469done
3470  done
3471IFS=$as_save_IFS
3472
3473if test $ac_prog_rejected = yes; then
3474  # We found a bogon in the path, so make sure we never use it.
3475  set dummy $ac_cv_prog_CC
3476  shift
3477  if test $# != 0; then
3478    # We chose a different compiler from the bogus one.
3479    # However, it has the same basename, so the bogon will be chosen
3480    # first if we set CC to just the basename; use the full file name.
3481    shift
3482    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3483  fi
3484fi
3485fi
3486fi
3487CC=$ac_cv_prog_CC
3488if test -n "$CC"; then
3489  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490printf "%s\n" "$CC" >&6; }
3491else
3492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493printf "%s\n" "no" >&6; }
3494fi
3495
3496
3497fi
3498if test -z "$CC"; then
3499  if test -n "$ac_tool_prefix"; then
3500  for ac_prog in cl.exe
3501  do
3502    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505printf %s "checking for $ac_word... " >&6; }
3506if test ${ac_cv_prog_CC+y}
3507then :
3508  printf %s "(cached) " >&6
3509else $as_nop
3510  if test -n "$CC"; then
3511  ac_cv_prog_CC="$CC" # Let the user override the test.
3512else
3513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514for as_dir in $PATH
3515do
3516  IFS=$as_save_IFS
3517  case $as_dir in #(((
3518    '') as_dir=./ ;;
3519    */) ;;
3520    *) as_dir=$as_dir/ ;;
3521  esac
3522    for ac_exec_ext in '' $ac_executable_extensions; do
3523  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3524    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3525    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3526    break 2
3527  fi
3528done
3529  done
3530IFS=$as_save_IFS
3531
3532fi
3533fi
3534CC=$ac_cv_prog_CC
3535if test -n "$CC"; then
3536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537printf "%s\n" "$CC" >&6; }
3538else
3539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540printf "%s\n" "no" >&6; }
3541fi
3542
3543
3544    test -n "$CC" && break
3545  done
3546fi
3547if test -z "$CC"; then
3548  ac_ct_CC=$CC
3549  for ac_prog in cl.exe
3550do
3551  # Extract the first word of "$ac_prog", so it can be a program name with args.
3552set dummy $ac_prog; ac_word=$2
3553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554printf %s "checking for $ac_word... " >&6; }
3555if test ${ac_cv_prog_ac_ct_CC+y}
3556then :
3557  printf %s "(cached) " >&6
3558else $as_nop
3559  if test -n "$ac_ct_CC"; then
3560  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3561else
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565  IFS=$as_save_IFS
3566  case $as_dir in #(((
3567    '') as_dir=./ ;;
3568    */) ;;
3569    *) as_dir=$as_dir/ ;;
3570  esac
3571    for ac_exec_ext in '' $ac_executable_extensions; do
3572  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3573    ac_cv_prog_ac_ct_CC="$ac_prog"
3574    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3575    break 2
3576  fi
3577done
3578  done
3579IFS=$as_save_IFS
3580
3581fi
3582fi
3583ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584if test -n "$ac_ct_CC"; then
3585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586printf "%s\n" "$ac_ct_CC" >&6; }
3587else
3588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589printf "%s\n" "no" >&6; }
3590fi
3591
3592
3593  test -n "$ac_ct_CC" && break
3594done
3595
3596  if test "x$ac_ct_CC" = x; then
3597    CC=""
3598  else
3599    case $cross_compiling:$ac_tool_warned in
3600yes:)
3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603ac_tool_warned=yes ;;
3604esac
3605    CC=$ac_ct_CC
3606  fi
3607fi
3608
3609fi
3610if test -z "$CC"; then
3611  if test -n "$ac_tool_prefix"; then
3612  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3613set dummy ${ac_tool_prefix}clang; ac_word=$2
3614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615printf %s "checking for $ac_word... " >&6; }
3616if test ${ac_cv_prog_CC+y}
3617then :
3618  printf %s "(cached) " >&6
3619else $as_nop
3620  if test -n "$CC"; then
3621  ac_cv_prog_CC="$CC" # Let the user override the test.
3622else
3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH
3625do
3626  IFS=$as_save_IFS
3627  case $as_dir in #(((
3628    '') as_dir=./ ;;
3629    */) ;;
3630    *) as_dir=$as_dir/ ;;
3631  esac
3632    for ac_exec_ext in '' $ac_executable_extensions; do
3633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3634    ac_cv_prog_CC="${ac_tool_prefix}clang"
3635    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3636    break 2
3637  fi
3638done
3639  done
3640IFS=$as_save_IFS
3641
3642fi
3643fi
3644CC=$ac_cv_prog_CC
3645if test -n "$CC"; then
3646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647printf "%s\n" "$CC" >&6; }
3648else
3649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650printf "%s\n" "no" >&6; }
3651fi
3652
3653
3654fi
3655if test -z "$ac_cv_prog_CC"; then
3656  ac_ct_CC=$CC
3657  # Extract the first word of "clang", so it can be a program name with args.
3658set dummy clang; ac_word=$2
3659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660printf %s "checking for $ac_word... " >&6; }
3661if test ${ac_cv_prog_ac_ct_CC+y}
3662then :
3663  printf %s "(cached) " >&6
3664else $as_nop
3665  if test -n "$ac_ct_CC"; then
3666  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3667else
3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671  IFS=$as_save_IFS
3672  case $as_dir in #(((
3673    '') as_dir=./ ;;
3674    */) ;;
3675    *) as_dir=$as_dir/ ;;
3676  esac
3677    for ac_exec_ext in '' $ac_executable_extensions; do
3678  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679    ac_cv_prog_ac_ct_CC="clang"
3680    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3681    break 2
3682  fi
3683done
3684  done
3685IFS=$as_save_IFS
3686
3687fi
3688fi
3689ac_ct_CC=$ac_cv_prog_ac_ct_CC
3690if test -n "$ac_ct_CC"; then
3691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3692printf "%s\n" "$ac_ct_CC" >&6; }
3693else
3694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695printf "%s\n" "no" >&6; }
3696fi
3697
3698  if test "x$ac_ct_CC" = x; then
3699    CC=""
3700  else
3701    case $cross_compiling:$ac_tool_warned in
3702yes:)
3703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705ac_tool_warned=yes ;;
3706esac
3707    CC=$ac_ct_CC
3708  fi
3709else
3710  CC="$ac_cv_prog_CC"
3711fi
3712
3713fi
3714
3715
3716test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3718as_fn_error $? "no acceptable C compiler found in \$PATH
3719See \`config.log' for more details" "$LINENO" 5; }
3720
3721# Provide some information about the compiler.
3722printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3723set X $ac_compile
3724ac_compiler=$2
3725for ac_option in --version -v -V -qversion -version; do
3726  { { ac_try="$ac_compiler $ac_option >&5"
3727case "(($ac_try" in
3728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729  *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732printf "%s\n" "$ac_try_echo"; } >&5
3733  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3734  ac_status=$?
3735  if test -s conftest.err; then
3736    sed '10a\
3737... rest of stderr output deleted ...
3738         10q' conftest.err >conftest.er1
3739    cat conftest.er1 >&5
3740  fi
3741  rm -f conftest.er1 conftest.err
3742  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743  test $ac_status = 0; }
3744done
3745
3746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747/* end confdefs.h.  */
3748
3749int
3750main (void)
3751{
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757ac_clean_files_save=$ac_clean_files
3758ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3759# Try to create an executable without -o first, disregard a.out.
3760# It will help us diagnose broken compilers, and finding out an intuition
3761# of exeext.
3762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3763printf %s "checking whether the C compiler works... " >&6; }
3764ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3765
3766# The possible output files:
3767ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3768
3769ac_rmfiles=
3770for ac_file in $ac_files
3771do
3772  case $ac_file in
3773    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3774    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3775  esac
3776done
3777rm -f $ac_rmfiles
3778
3779if { { ac_try="$ac_link_default"
3780case "(($ac_try" in
3781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782  *) ac_try_echo=$ac_try;;
3783esac
3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785printf "%s\n" "$ac_try_echo"; } >&5
3786  (eval "$ac_link_default") 2>&5
3787  ac_status=$?
3788  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789  test $ac_status = 0; }
3790then :
3791  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3792# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3793# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3794# so that the user can short-circuit this test for compilers unknown to
3795# Autoconf.
3796for ac_file in $ac_files ''
3797do
3798  test -f "$ac_file" || continue
3799  case $ac_file in
3800    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3801	;;
3802    [ab].out )
3803	# We found the default executable, but exeext='' is most
3804	# certainly right.
3805	break;;
3806    *.* )
3807	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3808	then :; else
3809	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3810	fi
3811	# We set ac_cv_exeext here because the later test for it is not
3812	# safe: cross compilers may not add the suffix if given an `-o'
3813	# argument, so we may need to know it at that point already.
3814	# Even if this section looks crufty: it has the advantage of
3815	# actually working.
3816	break;;
3817    * )
3818	break;;
3819  esac
3820done
3821test "$ac_cv_exeext" = no && ac_cv_exeext=
3822
3823else $as_nop
3824  ac_file=''
3825fi
3826if test -z "$ac_file"
3827then :
3828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829printf "%s\n" "no" >&6; }
3830printf "%s\n" "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3835as_fn_error 77 "C compiler cannot create executables
3836See \`config.log' for more details" "$LINENO" 5; }
3837else $as_nop
3838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3839printf "%s\n" "yes" >&6; }
3840fi
3841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842printf %s "checking for C compiler default output file name... " >&6; }
3843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3844printf "%s\n" "$ac_file" >&6; }
3845ac_exeext=$ac_cv_exeext
3846
3847rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3848ac_clean_files=$ac_clean_files_save
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3850printf %s "checking for suffix of executables... " >&6; }
3851if { { ac_try="$ac_link"
3852case "(($ac_try" in
3853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854  *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857printf "%s\n" "$ac_try_echo"; } >&5
3858  (eval "$ac_link") 2>&5
3859  ac_status=$?
3860  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861  test $ac_status = 0; }
3862then :
3863  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3864# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3865# work properly (i.e., refer to `conftest.exe'), while it won't with
3866# `rm'.
3867for ac_file in conftest.exe conftest conftest.*; do
3868  test -f "$ac_file" || continue
3869  case $ac_file in
3870    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3871    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3872	  break;;
3873    * ) break;;
3874  esac
3875done
3876else $as_nop
3877  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3879as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3880See \`config.log' for more details" "$LINENO" 5; }
3881fi
3882rm -f conftest conftest$ac_cv_exeext
3883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3884printf "%s\n" "$ac_cv_exeext" >&6; }
3885
3886rm -f conftest.$ac_ext
3887EXEEXT=$ac_cv_exeext
3888ac_exeext=$EXEEXT
3889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891#include <stdio.h>
3892int
3893main (void)
3894{
3895FILE *f = fopen ("conftest.out", "w");
3896 return ferror (f) || fclose (f) != 0;
3897
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902ac_clean_files="$ac_clean_files conftest.out"
3903# Check that the compiler produces executables we can run.  If not, either
3904# the compiler is broken, or we cross compile.
3905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906printf %s "checking whether we are cross compiling... " >&6; }
3907if test "$cross_compiling" != yes; then
3908  { { ac_try="$ac_link"
3909case "(($ac_try" in
3910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911  *) ac_try_echo=$ac_try;;
3912esac
3913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914printf "%s\n" "$ac_try_echo"; } >&5
3915  (eval "$ac_link") 2>&5
3916  ac_status=$?
3917  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918  test $ac_status = 0; }
3919  if { ac_try='./conftest$ac_cv_exeext'
3920  { { case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925printf "%s\n" "$ac_try_echo"; } >&5
3926  (eval "$ac_try") 2>&5
3927  ac_status=$?
3928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929  test $ac_status = 0; }; }; then
3930    cross_compiling=no
3931  else
3932    if test "$cross_compiling" = maybe; then
3933	cross_compiling=yes
3934    else
3935	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3937as_fn_error 77 "cannot run C compiled programs.
3938If you meant to cross compile, use \`--host'.
3939See \`config.log' for more details" "$LINENO" 5; }
3940    fi
3941  fi
3942fi
3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944printf "%s\n" "$cross_compiling" >&6; }
3945
3946rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3947ac_clean_files=$ac_clean_files_save
3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949printf %s "checking for suffix of object files... " >&6; }
3950if test ${ac_cv_objext+y}
3951then :
3952  printf %s "(cached) " >&6
3953else $as_nop
3954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955/* end confdefs.h.  */
3956
3957int
3958main (void)
3959{
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965rm -f conftest.o conftest.obj
3966if { { ac_try="$ac_compile"
3967case "(($ac_try" in
3968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969  *) ac_try_echo=$ac_try;;
3970esac
3971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972printf "%s\n" "$ac_try_echo"; } >&5
3973  (eval "$ac_compile") 2>&5
3974  ac_status=$?
3975  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976  test $ac_status = 0; }
3977then :
3978  for ac_file in conftest.o conftest.obj conftest.*; do
3979  test -f "$ac_file" || continue;
3980  case $ac_file in
3981    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983       break;;
3984  esac
3985done
3986else $as_nop
3987  printf "%s\n" "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3992as_fn_error $? "cannot compute suffix of object files: cannot compile
3993See \`config.log' for more details" "$LINENO" 5; }
3994fi
3995rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996fi
3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998printf "%s\n" "$ac_cv_objext" >&6; }
3999OBJEXT=$ac_cv_objext
4000ac_objext=$OBJEXT
4001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4002printf %s "checking whether the compiler supports GNU C... " >&6; }
4003if test ${ac_cv_c_compiler_gnu+y}
4004then :
4005  printf %s "(cached) " >&6
4006else $as_nop
4007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h.  */
4009
4010int
4011main (void)
4012{
4013#ifndef __GNUC__
4014       choke me
4015#endif
4016
4017  ;
4018  return 0;
4019}
4020_ACEOF
4021if ac_fn_c_try_compile "$LINENO"
4022then :
4023  ac_compiler_gnu=yes
4024else $as_nop
4025  ac_compiler_gnu=no
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4028ac_cv_c_compiler_gnu=$ac_compiler_gnu
4029
4030fi
4031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4032printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035if test $ac_compiler_gnu = yes; then
4036  GCC=yes
4037else
4038  GCC=
4039fi
4040ac_test_CFLAGS=${CFLAGS+y}
4041ac_save_CFLAGS=$CFLAGS
4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043printf %s "checking whether $CC accepts -g... " >&6; }
4044if test ${ac_cv_prog_cc_g+y}
4045then :
4046  printf %s "(cached) " >&6
4047else $as_nop
4048  ac_save_c_werror_flag=$ac_c_werror_flag
4049   ac_c_werror_flag=yes
4050   ac_cv_prog_cc_g=no
4051   CFLAGS="-g"
4052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054
4055int
4056main (void)
4057{
4058
4059  ;
4060  return 0;
4061}
4062_ACEOF
4063if ac_fn_c_try_compile "$LINENO"
4064then :
4065  ac_cv_prog_cc_g=yes
4066else $as_nop
4067  CFLAGS=""
4068      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070
4071int
4072main (void)
4073{
4074
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079if ac_fn_c_try_compile "$LINENO"
4080then :
4081
4082else $as_nop
4083  ac_c_werror_flag=$ac_save_c_werror_flag
4084	 CFLAGS="-g"
4085	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h.  */
4087
4088int
4089main (void)
4090{
4091
4092  ;
4093  return 0;
4094}
4095_ACEOF
4096if ac_fn_c_try_compile "$LINENO"
4097then :
4098  ac_cv_prog_cc_g=yes
4099fi
4100rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4101fi
4102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4103fi
4104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4105   ac_c_werror_flag=$ac_save_c_werror_flag
4106fi
4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4108printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4109if test $ac_test_CFLAGS; then
4110  CFLAGS=$ac_save_CFLAGS
4111elif test $ac_cv_prog_cc_g = yes; then
4112  if test "$GCC" = yes; then
4113    CFLAGS="-g -O2"
4114  else
4115    CFLAGS="-g"
4116  fi
4117else
4118  if test "$GCC" = yes; then
4119    CFLAGS="-O2"
4120  else
4121    CFLAGS=
4122  fi
4123fi
4124ac_prog_cc_stdc=no
4125if test x$ac_prog_cc_stdc = xno
4126then :
4127  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4128printf %s "checking for $CC option to enable C11 features... " >&6; }
4129if test ${ac_cv_prog_cc_c11+y}
4130then :
4131  printf %s "(cached) " >&6
4132else $as_nop
4133  ac_cv_prog_cc_c11=no
4134ac_save_CC=$CC
4135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136/* end confdefs.h.  */
4137$ac_c_conftest_c11_program
4138_ACEOF
4139for ac_arg in '' -std=gnu11
4140do
4141  CC="$ac_save_CC $ac_arg"
4142  if ac_fn_c_try_compile "$LINENO"
4143then :
4144  ac_cv_prog_cc_c11=$ac_arg
4145fi
4146rm -f core conftest.err conftest.$ac_objext conftest.beam
4147  test "x$ac_cv_prog_cc_c11" != "xno" && break
4148done
4149rm -f conftest.$ac_ext
4150CC=$ac_save_CC
4151fi
4152
4153if test "x$ac_cv_prog_cc_c11" = xno
4154then :
4155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156printf "%s\n" "unsupported" >&6; }
4157else $as_nop
4158  if test "x$ac_cv_prog_cc_c11" = x
4159then :
4160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161printf "%s\n" "none needed" >&6; }
4162else $as_nop
4163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4164printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4165     CC="$CC $ac_cv_prog_cc_c11"
4166fi
4167  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4168  ac_prog_cc_stdc=c11
4169fi
4170fi
4171if test x$ac_prog_cc_stdc = xno
4172then :
4173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4174printf %s "checking for $CC option to enable C99 features... " >&6; }
4175if test ${ac_cv_prog_cc_c99+y}
4176then :
4177  printf %s "(cached) " >&6
4178else $as_nop
4179  ac_cv_prog_cc_c99=no
4180ac_save_CC=$CC
4181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182/* end confdefs.h.  */
4183$ac_c_conftest_c99_program
4184_ACEOF
4185for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4186do
4187  CC="$ac_save_CC $ac_arg"
4188  if ac_fn_c_try_compile "$LINENO"
4189then :
4190  ac_cv_prog_cc_c99=$ac_arg
4191fi
4192rm -f core conftest.err conftest.$ac_objext conftest.beam
4193  test "x$ac_cv_prog_cc_c99" != "xno" && break
4194done
4195rm -f conftest.$ac_ext
4196CC=$ac_save_CC
4197fi
4198
4199if test "x$ac_cv_prog_cc_c99" = xno
4200then :
4201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202printf "%s\n" "unsupported" >&6; }
4203else $as_nop
4204  if test "x$ac_cv_prog_cc_c99" = x
4205then :
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4207printf "%s\n" "none needed" >&6; }
4208else $as_nop
4209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4210printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4211     CC="$CC $ac_cv_prog_cc_c99"
4212fi
4213  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4214  ac_prog_cc_stdc=c99
4215fi
4216fi
4217if test x$ac_prog_cc_stdc = xno
4218then :
4219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4220printf %s "checking for $CC option to enable C89 features... " >&6; }
4221if test ${ac_cv_prog_cc_c89+y}
4222then :
4223  printf %s "(cached) " >&6
4224else $as_nop
4225  ac_cv_prog_cc_c89=no
4226ac_save_CC=$CC
4227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229$ac_c_conftest_c89_program
4230_ACEOF
4231for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4232do
4233  CC="$ac_save_CC $ac_arg"
4234  if ac_fn_c_try_compile "$LINENO"
4235then :
4236  ac_cv_prog_cc_c89=$ac_arg
4237fi
4238rm -f core conftest.err conftest.$ac_objext conftest.beam
4239  test "x$ac_cv_prog_cc_c89" != "xno" && break
4240done
4241rm -f conftest.$ac_ext
4242CC=$ac_save_CC
4243fi
4244
4245if test "x$ac_cv_prog_cc_c89" = xno
4246then :
4247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4248printf "%s\n" "unsupported" >&6; }
4249else $as_nop
4250  if test "x$ac_cv_prog_cc_c89" = x
4251then :
4252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253printf "%s\n" "none needed" >&6; }
4254else $as_nop
4255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4256printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4257     CC="$CC $ac_cv_prog_cc_c89"
4258fi
4259  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4260  ac_prog_cc_stdc=c89
4261fi
4262fi
4263
4264ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
4270
4271  ac_ext=c
4272ac_cpp='$CPP $CPPFLAGS'
4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4277printf %s "checking whether $CC understands -c and -o together... " >&6; }
4278if test ${am_cv_prog_cc_c_o+y}
4279then :
4280  printf %s "(cached) " >&6
4281else $as_nop
4282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284
4285int
4286main (void)
4287{
4288
4289  ;
4290  return 0;
4291}
4292_ACEOF
4293  # Make sure it works both with $CC and with simple cc.
4294  # Following AC_PROG_CC_C_O, we do the test twice because some
4295  # compilers refuse to overwrite an existing .o file with -o,
4296  # though they will create one.
4297  am_cv_prog_cc_c_o=yes
4298  for am_i in 1 2; do
4299    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4300   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } \
4304         && test -f conftest2.$ac_objext; then
4305      : OK
4306    else
4307      am_cv_prog_cc_c_o=no
4308      break
4309    fi
4310  done
4311  rm -f core conftest*
4312  unset am_i
4313fi
4314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4315printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4316if test "$am_cv_prog_cc_c_o" != yes; then
4317   # Losing compiler, so override with the script.
4318   # FIXME: It is wrong to rewrite CC.
4319   # But if we don't then we get into trouble of one sort or another.
4320   # A longer-term fix would be to have automake use am__CC in this case,
4321   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4322   CC="$am_aux_dir/compile $CC"
4323fi
4324ac_ext=c
4325ac_cpp='$CPP $CPPFLAGS'
4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330DEPDIR="${am__leading_dot}deps"
4331
4332ac_config_commands="$ac_config_commands depfiles"
4333
4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4335printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4336cat > confinc.mk << 'END'
4337am__doit:
4338	@echo this is the am__doit target >confinc.out
4339.PHONY: am__doit
4340END
4341am__include="#"
4342am__quote=
4343# BSD make does it like this.
4344echo '.include "confinc.mk" # ignored' > confmf.BSD
4345# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4346echo 'include confinc.mk # ignored' > confmf.GNU
4347_am_result=no
4348for s in GNU BSD; do
4349  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4350   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }
4354  case $?:`cat confinc.out 2>/dev/null` in #(
4355  '0:this is the am__doit target') :
4356    case $s in #(
4357  BSD) :
4358    am__include='.include' am__quote='"' ;; #(
4359  *) :
4360    am__include='include' am__quote='' ;;
4361esac ;; #(
4362  *) :
4363     ;;
4364esac
4365  if test "$am__include" != "#"; then
4366    _am_result="yes ($s style)"
4367    break
4368  fi
4369done
4370rm -f confinc.* confmf.*
4371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4372printf "%s\n" "${_am_result}" >&6; }
4373
4374# Check whether --enable-dependency-tracking was given.
4375if test ${enable_dependency_tracking+y}
4376then :
4377  enableval=$enable_dependency_tracking;
4378fi
4379
4380if test "x$enable_dependency_tracking" != xno; then
4381  am_depcomp="$ac_aux_dir/depcomp"
4382  AMDEPBACKSLASH='\'
4383  am__nodep='_no'
4384fi
4385 if test "x$enable_dependency_tracking" != xno; then
4386  AMDEP_TRUE=
4387  AMDEP_FALSE='#'
4388else
4389  AMDEP_TRUE='#'
4390  AMDEP_FALSE=
4391fi
4392
4393
4394
4395depcc="$CC"   am_compiler_list=
4396
4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4398printf %s "checking dependency style of $depcc... " >&6; }
4399if test ${am_cv_CC_dependencies_compiler_type+y}
4400then :
4401  printf %s "(cached) " >&6
4402else $as_nop
4403  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4404  # We make a subdir and do the tests there.  Otherwise we can end up
4405  # making bogus files that we don't know about and never remove.  For
4406  # instance it was reported that on HP-UX the gcc test will end up
4407  # making a dummy file named 'D' -- because '-MD' means "put the output
4408  # in D".
4409  rm -rf conftest.dir
4410  mkdir conftest.dir
4411  # Copy depcomp to subdir because otherwise we won't find it if we're
4412  # using a relative directory.
4413  cp "$am_depcomp" conftest.dir
4414  cd conftest.dir
4415  # We will build objects and dependencies in a subdirectory because
4416  # it helps to detect inapplicable dependency modes.  For instance
4417  # both Tru64's cc and ICC support -MD to output dependencies as a
4418  # side effect of compilation, but ICC will put the dependencies in
4419  # the current directory while Tru64 will put them in the object
4420  # directory.
4421  mkdir sub
4422
4423  am_cv_CC_dependencies_compiler_type=none
4424  if test "$am_compiler_list" = ""; then
4425     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4426  fi
4427  am__universal=false
4428  case " $depcc " in #(
4429     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4430     esac
4431
4432  for depmode in $am_compiler_list; do
4433    # Setup a source with many dependencies, because some compilers
4434    # like to wrap large dependency lists on column 80 (with \), and
4435    # we should not choose a depcomp mode which is confused by this.
4436    #
4437    # We need to recreate these files for each test, as the compiler may
4438    # overwrite some of them when testing with obscure command lines.
4439    # This happens at least with the AIX C compiler.
4440    : > sub/conftest.c
4441    for i in 1 2 3 4 5 6; do
4442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4443      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4444      # Solaris 10 /bin/sh.
4445      echo '/* dummy */' > sub/conftst$i.h
4446    done
4447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4448
4449    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4450    # mode.  It turns out that the SunPro C++ compiler does not properly
4451    # handle '-M -o', and we need to detect this.  Also, some Intel
4452    # versions had trouble with output in subdirs.
4453    am__obj=sub/conftest.${OBJEXT-o}
4454    am__minus_obj="-o $am__obj"
4455    case $depmode in
4456    gcc)
4457      # This depmode causes a compiler race in universal mode.
4458      test "$am__universal" = false || continue
4459      ;;
4460    nosideeffect)
4461      # After this tag, mechanisms are not by side-effect, so they'll
4462      # only be used when explicitly requested.
4463      if test "x$enable_dependency_tracking" = xyes; then
4464	continue
4465      else
4466	break
4467      fi
4468      ;;
4469    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4470      # This compiler won't grok '-c -o', but also, the minuso test has
4471      # not run yet.  These depmodes are late enough in the game, and
4472      # so weak that their functioning should not be impacted.
4473      am__obj=conftest.${OBJEXT-o}
4474      am__minus_obj=
4475      ;;
4476    none) break ;;
4477    esac
4478    if depmode=$depmode \
4479       source=sub/conftest.c object=$am__obj \
4480       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4481       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4482         >/dev/null 2>conftest.err &&
4483       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4484       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4485       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4486       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4487      # icc doesn't choke on unknown options, it will just issue warnings
4488      # or remarks (even with -Werror).  So we grep stderr for any message
4489      # that says an option was ignored or not supported.
4490      # When given -MP, icc 7.0 and 7.1 complain thusly:
4491      #   icc: Command line warning: ignoring option '-M'; no argument required
4492      # The diagnosis changed in icc 8.0:
4493      #   icc: Command line remark: option '-MP' not supported
4494      if (grep 'ignoring option' conftest.err ||
4495          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4496        am_cv_CC_dependencies_compiler_type=$depmode
4497        break
4498      fi
4499    fi
4500  done
4501
4502  cd ..
4503  rm -rf conftest.dir
4504else
4505  am_cv_CC_dependencies_compiler_type=none
4506fi
4507
4508fi
4509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4510printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4511CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4512
4513 if
4514  test "x$enable_dependency_tracking" != xno \
4515  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4516  am__fastdepCC_TRUE=
4517  am__fastdepCC_FALSE='#'
4518else
4519  am__fastdepCC_TRUE='#'
4520  am__fastdepCC_FALSE=
4521fi
4522
4523
4524
4525save_solaris_cc=$CC
4526
4527# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4542printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4543if test ${ac_cv_c_undeclared_builtin_options+y}
4544then :
4545  printf %s "(cached) " >&6
4546else $as_nop
4547  ac_save_CFLAGS=$CFLAGS
4548   ac_cv_c_undeclared_builtin_options='cannot detect'
4549   for ac_arg in '' -fno-builtin; do
4550     CFLAGS="$ac_save_CFLAGS $ac_arg"
4551     # This test program should *not* compile successfully.
4552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554
4555int
4556main (void)
4557{
4558(void) strchr;
4559  ;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"
4564then :
4565
4566else $as_nop
4567  # This test program should compile successfully.
4568        # No library function is consistently available on
4569        # freestanding implementations, so test against a dummy
4570        # declaration.  Include always-available headers on the
4571        # off chance that they somehow elicit warnings.
4572        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h.  */
4574#include <float.h>
4575#include <limits.h>
4576#include <stdarg.h>
4577#include <stddef.h>
4578extern void ac_decl (int, char *);
4579
4580int
4581main (void)
4582{
4583(void) ac_decl (0, (char *) 0);
4584  (void) ac_decl;
4585
4586  ;
4587  return 0;
4588}
4589_ACEOF
4590if ac_fn_c_try_compile "$LINENO"
4591then :
4592  if test x"$ac_arg" = x
4593then :
4594  ac_cv_c_undeclared_builtin_options='none needed'
4595else $as_nop
4596  ac_cv_c_undeclared_builtin_options=$ac_arg
4597fi
4598          break
4599fi
4600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4603    done
4604    CFLAGS=$ac_save_CFLAGS
4605
4606fi
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4608printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4609  case $ac_cv_c_undeclared_builtin_options in #(
4610  'cannot detect') :
4611    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error $? "cannot make $CC report undeclared builtins
4614See \`config.log' for more details" "$LINENO" 5; } ;; #(
4615  'none needed') :
4616    ac_c_undeclared_builtin_options='' ;; #(
4617  *) :
4618    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4619esac
4620
4621ac_header= ac_cache=
4622for ac_item in $ac_header_c_list
4623do
4624  if test $ac_cache; then
4625    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4626    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4627      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4628    fi
4629    ac_header= ac_cache=
4630  elif test $ac_header; then
4631    ac_cache=$ac_item
4632  else
4633    ac_header=$ac_item
4634  fi
4635done
4636
4637
4638
4639
4640
4641
4642
4643
4644if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4645then :
4646
4647printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4648
4649fi
4650
4651
4652
4653
4654ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4655if test "x$ac_cv_have_decl___clang__" = xyes
4656then :
4657  CLANGCC="yes"
4658else $as_nop
4659  CLANGCC="no"
4660fi
4661ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4662if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4663then :
4664  INTELCC="yes"
4665else $as_nop
4666  INTELCC="no"
4667fi
4668ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4669if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4670then :
4671  SUNCC="yes"
4672else $as_nop
4673  SUNCC="no"
4674fi
4675
4676
4677
4678
4679
4680
4681
4682
4683if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4684	if test -n "$ac_tool_prefix"; then
4685  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4686set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688printf %s "checking for $ac_word... " >&6; }
4689if test ${ac_cv_path_PKG_CONFIG+y}
4690then :
4691  printf %s "(cached) " >&6
4692else $as_nop
4693  case $PKG_CONFIG in
4694  [\\/]* | ?:[\\/]*)
4695  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4696  ;;
4697  *)
4698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701  IFS=$as_save_IFS
4702  case $as_dir in #(((
4703    '') as_dir=./ ;;
4704    */) ;;
4705    *) as_dir=$as_dir/ ;;
4706  esac
4707    for ac_exec_ext in '' $ac_executable_extensions; do
4708  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4710    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714  done
4715IFS=$as_save_IFS
4716
4717  ;;
4718esac
4719fi
4720PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4721if test -n "$PKG_CONFIG"; then
4722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4723printf "%s\n" "$PKG_CONFIG" >&6; }
4724else
4725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726printf "%s\n" "no" >&6; }
4727fi
4728
4729
4730fi
4731if test -z "$ac_cv_path_PKG_CONFIG"; then
4732  ac_pt_PKG_CONFIG=$PKG_CONFIG
4733  # Extract the first word of "pkg-config", so it can be a program name with args.
4734set dummy pkg-config; ac_word=$2
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736printf %s "checking for $ac_word... " >&6; }
4737if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4738then :
4739  printf %s "(cached) " >&6
4740else $as_nop
4741  case $ac_pt_PKG_CONFIG in
4742  [\\/]* | ?:[\\/]*)
4743  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4744  ;;
4745  *)
4746  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749  IFS=$as_save_IFS
4750  case $as_dir in #(((
4751    '') as_dir=./ ;;
4752    */) ;;
4753    *) as_dir=$as_dir/ ;;
4754  esac
4755    for ac_exec_ext in '' $ac_executable_extensions; do
4756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4757    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4759    break 2
4760  fi
4761done
4762  done
4763IFS=$as_save_IFS
4764
4765  ;;
4766esac
4767fi
4768ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4769if test -n "$ac_pt_PKG_CONFIG"; then
4770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4771printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4772else
4773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774printf "%s\n" "no" >&6; }
4775fi
4776
4777  if test "x$ac_pt_PKG_CONFIG" = x; then
4778    PKG_CONFIG=""
4779  else
4780    case $cross_compiling:$ac_tool_warned in
4781yes:)
4782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784ac_tool_warned=yes ;;
4785esac
4786    PKG_CONFIG=$ac_pt_PKG_CONFIG
4787  fi
4788else
4789  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4790fi
4791
4792fi
4793if test -n "$PKG_CONFIG"; then
4794	_pkg_min_version=0.9.0
4795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4796printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4797	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4798		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799printf "%s\n" "yes" >&6; }
4800	else
4801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802printf "%s\n" "no" >&6; }
4803		PKG_CONFIG=""
4804	fi
4805fi
4806
4807
4808  # Make sure we can run config.sub.
4809$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4810  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4811
4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4813printf %s "checking build system type... " >&6; }
4814if test ${ac_cv_build+y}
4815then :
4816  printf %s "(cached) " >&6
4817else $as_nop
4818  ac_build_alias=$build_alias
4819test "x$ac_build_alias" = x &&
4820  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4821test "x$ac_build_alias" = x &&
4822  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4823ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4824  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4825
4826fi
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4828printf "%s\n" "$ac_cv_build" >&6; }
4829case $ac_cv_build in
4830*-*-*) ;;
4831*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4832esac
4833build=$ac_cv_build
4834ac_save_IFS=$IFS; IFS='-'
4835set x $ac_cv_build
4836shift
4837build_cpu=$1
4838build_vendor=$2
4839shift; shift
4840# Remember, the first character of IFS is used to create $*,
4841# except with old shells:
4842build_os=$*
4843IFS=$ac_save_IFS
4844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4845
4846
4847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4848printf %s "checking host system type... " >&6; }
4849if test ${ac_cv_host+y}
4850then :
4851  printf %s "(cached) " >&6
4852else $as_nop
4853  if test "x$host_alias" = x; then
4854  ac_cv_host=$ac_cv_build
4855else
4856  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4857    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4858fi
4859
4860fi
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4862printf "%s\n" "$ac_cv_host" >&6; }
4863case $ac_cv_host in
4864*-*-*) ;;
4865*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4866esac
4867host=$ac_cv_host
4868ac_save_IFS=$IFS; IFS='-'
4869set x $ac_cv_host
4870shift
4871host_cpu=$1
4872host_vendor=$2
4873shift; shift
4874# Remember, the first character of IFS is used to create $*,
4875# except with old shells:
4876host_os=$*
4877IFS=$ac_save_IFS
4878case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4879
4880
4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4882printf %s "checking for a sed that does not truncate output... " >&6; }
4883if test ${ac_cv_path_SED+y}
4884then :
4885  printf %s "(cached) " >&6
4886else $as_nop
4887            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888     for ac_i in 1 2 3 4 5 6 7; do
4889       ac_script="$ac_script$as_nl$ac_script"
4890     done
4891     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892     { ac_script=; unset ac_script;}
4893     if test -z "$SED"; then
4894  ac_path_SED_found=false
4895  # Loop through the user's path and test for each of PROGNAME-LIST
4896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899  IFS=$as_save_IFS
4900  case $as_dir in #(((
4901    '') as_dir=./ ;;
4902    */) ;;
4903    *) as_dir=$as_dir/ ;;
4904  esac
4905    for ac_prog in sed gsed
4906   do
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4909      as_fn_executable_p "$ac_path_SED" || continue
4910# Check for GNU ac_path_SED and select it if it is found.
4911  # Check for GNU $ac_path_SED
4912case `"$ac_path_SED" --version 2>&1` in
4913*GNU*)
4914  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4915*)
4916  ac_count=0
4917  printf %s 0123456789 >"conftest.in"
4918  while :
4919  do
4920    cat "conftest.in" "conftest.in" >"conftest.tmp"
4921    mv "conftest.tmp" "conftest.in"
4922    cp "conftest.in" "conftest.nl"
4923    printf "%s\n" '' >> "conftest.nl"
4924    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926    as_fn_arith $ac_count + 1 && ac_count=$as_val
4927    if test $ac_count -gt ${ac_path_SED_max-0}; then
4928      # Best one so far, save it but keep looking for a better one
4929      ac_cv_path_SED="$ac_path_SED"
4930      ac_path_SED_max=$ac_count
4931    fi
4932    # 10*(2^10) chars as input seems more than enough
4933    test $ac_count -gt 10 && break
4934  done
4935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936esac
4937
4938      $ac_path_SED_found && break 3
4939    done
4940  done
4941  done
4942IFS=$as_save_IFS
4943  if test -z "$ac_cv_path_SED"; then
4944    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4945  fi
4946else
4947  ac_cv_path_SED=$SED
4948fi
4949
4950fi
4951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952printf "%s\n" "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4954  rm -f conftest.sed
4955
4956
4957
4958
4959
4960
4961# Check whether --enable-selective-werror was given.
4962if test ${enable_selective_werror+y}
4963then :
4964  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4965else $as_nop
4966  SELECTIVE_WERROR=yes
4967fi
4968
4969
4970
4971
4972
4973# -v is too short to test reliably with XORG_TESTSET_CFLAG
4974if test "x$SUNCC" = "xyes"; then
4975    BASE_CFLAGS="-v"
4976else
4977    BASE_CFLAGS=""
4978fi
4979
4980# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994xorg_testset_save_CFLAGS="$CFLAGS"
4995
4996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5000if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5001then :
5002  printf %s "(cached) " >&6
5003else $as_nop
5004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005/* end confdefs.h.  */
5006int i;
5007_ACEOF
5008if ac_fn_c_try_compile "$LINENO"
5009then :
5010  xorg_cv_cc_flag_unknown_warning_option=yes
5011else $as_nop
5012  xorg_cv_cc_flag_unknown_warning_option=no
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5015fi
5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5019	CFLAGS="$xorg_testset_save_CFLAGS"
5020fi
5021
5022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025	fi
5026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5029if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5030then :
5031  printf %s "(cached) " >&6
5032else $as_nop
5033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035int i;
5036_ACEOF
5037if ac_fn_c_try_compile "$LINENO"
5038then :
5039  xorg_cv_cc_flag_unused_command_line_argument=yes
5040else $as_nop
5041  xorg_cv_cc_flag_unused_command_line_argument=no
5042fi
5043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5044fi
5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048	CFLAGS="$xorg_testset_save_CFLAGS"
5049fi
5050
5051found="no"
5052
5053	if test $found = "no" ; then
5054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056		fi
5057
5058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060		fi
5061
5062		CFLAGS="$CFLAGS -Wall"
5063
5064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5065printf %s "checking if $CC supports -Wall... " >&6; }
5066		cacheid=xorg_cv_cc_flag__Wall
5067		if eval test \${$cacheid+y}
5068then :
5069  printf %s "(cached) " >&6
5070else $as_nop
5071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h.  */
5073int i;
5074int
5075main (void)
5076{
5077
5078  ;
5079  return 0;
5080}
5081_ACEOF
5082if ac_fn_c_try_link "$LINENO"
5083then :
5084  eval $cacheid=yes
5085else $as_nop
5086  eval $cacheid=no
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.beam \
5089    conftest$ac_exeext conftest.$ac_ext
5090fi
5091
5092
5093		CFLAGS="$xorg_testset_save_CFLAGS"
5094
5095		eval supported=\$$cacheid
5096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5097printf "%s\n" "$supported" >&6; }
5098		if test "$supported" = "yes" ; then
5099			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5100			found="yes"
5101		fi
5102	fi
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118xorg_testset_save_CFLAGS="$CFLAGS"
5119
5120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5123printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5124if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5125then :
5126  printf %s "(cached) " >&6
5127else $as_nop
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130int i;
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"
5133then :
5134  xorg_cv_cc_flag_unknown_warning_option=yes
5135else $as_nop
5136  xorg_cv_cc_flag_unknown_warning_option=no
5137fi
5138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5139fi
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5143	CFLAGS="$xorg_testset_save_CFLAGS"
5144fi
5145
5146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149	fi
5150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5153if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5154then :
5155  printf %s "(cached) " >&6
5156else $as_nop
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"
5162then :
5163  xorg_cv_cc_flag_unused_command_line_argument=yes
5164else $as_nop
5165  xorg_cv_cc_flag_unused_command_line_argument=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5168fi
5169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175found="no"
5176
5177	if test $found = "no" ; then
5178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180		fi
5181
5182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184		fi
5185
5186		CFLAGS="$CFLAGS -Wpointer-arith"
5187
5188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5189printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5190		cacheid=xorg_cv_cc_flag__Wpointer_arith
5191		if eval test \${$cacheid+y}
5192then :
5193  printf %s "(cached) " >&6
5194else $as_nop
5195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197int i;
5198int
5199main (void)
5200{
5201
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206if ac_fn_c_try_link "$LINENO"
5207then :
5208  eval $cacheid=yes
5209else $as_nop
5210  eval $cacheid=no
5211fi
5212rm -f core conftest.err conftest.$ac_objext conftest.beam \
5213    conftest$ac_exeext conftest.$ac_ext
5214fi
5215
5216
5217		CFLAGS="$xorg_testset_save_CFLAGS"
5218
5219		eval supported=\$$cacheid
5220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5221printf "%s\n" "$supported" >&6; }
5222		if test "$supported" = "yes" ; then
5223			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5224			found="yes"
5225		fi
5226	fi
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242xorg_testset_save_CFLAGS="$CFLAGS"
5243
5244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5248if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5249then :
5250  printf %s "(cached) " >&6
5251else $as_nop
5252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h.  */
5254int i;
5255_ACEOF
5256if ac_fn_c_try_compile "$LINENO"
5257then :
5258  xorg_cv_cc_flag_unknown_warning_option=yes
5259else $as_nop
5260  xorg_cv_cc_flag_unknown_warning_option=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5263fi
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273	fi
5274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5277if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5278then :
5279  printf %s "(cached) " >&6
5280else $as_nop
5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283int i;
5284_ACEOF
5285if ac_fn_c_try_compile "$LINENO"
5286then :
5287  xorg_cv_cc_flag_unused_command_line_argument=yes
5288else $as_nop
5289  xorg_cv_cc_flag_unused_command_line_argument=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5292fi
5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299found="no"
5300
5301	if test $found = "no" ; then
5302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304		fi
5305
5306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308		fi
5309
5310		CFLAGS="$CFLAGS -Wmissing-declarations"
5311
5312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5313printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5314		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5315		if eval test \${$cacheid+y}
5316then :
5317  printf %s "(cached) " >&6
5318else $as_nop
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322int
5323main (void)
5324{
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_link "$LINENO"
5331then :
5332  eval $cacheid=yes
5333else $as_nop
5334  eval $cacheid=no
5335fi
5336rm -f core conftest.err conftest.$ac_objext conftest.beam \
5337    conftest$ac_exeext conftest.$ac_ext
5338fi
5339
5340
5341		CFLAGS="$xorg_testset_save_CFLAGS"
5342
5343		eval supported=\$$cacheid
5344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345printf "%s\n" "$supported" >&6; }
5346		if test "$supported" = "yes" ; then
5347			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5348			found="yes"
5349		fi
5350	fi
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366xorg_testset_save_CFLAGS="$CFLAGS"
5367
5368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5373then :
5374  printf %s "(cached) " >&6
5375else $as_nop
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"
5381then :
5382  xorg_cv_cc_flag_unknown_warning_option=yes
5383else $as_nop
5384  xorg_cv_cc_flag_unknown_warning_option=no
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5387fi
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391	CFLAGS="$xorg_testset_save_CFLAGS"
5392fi
5393
5394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397	fi
5398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5402then :
5403  printf %s "(cached) " >&6
5404else $as_nop
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"
5410then :
5411  xorg_cv_cc_flag_unused_command_line_argument=yes
5412else $as_nop
5413  xorg_cv_cc_flag_unused_command_line_argument=no
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5416fi
5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5420	CFLAGS="$xorg_testset_save_CFLAGS"
5421fi
5422
5423found="no"
5424
5425	if test $found = "no" ; then
5426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5428		fi
5429
5430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5432		fi
5433
5434		CFLAGS="$CFLAGS -Wformat=2"
5435
5436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5437printf %s "checking if $CC supports -Wformat=2... " >&6; }
5438		cacheid=xorg_cv_cc_flag__Wformat_2
5439		if eval test \${$cacheid+y}
5440then :
5441  printf %s "(cached) " >&6
5442else $as_nop
5443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h.  */
5445int i;
5446int
5447main (void)
5448{
5449
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454if ac_fn_c_try_link "$LINENO"
5455then :
5456  eval $cacheid=yes
5457else $as_nop
5458  eval $cacheid=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461    conftest$ac_exeext conftest.$ac_ext
5462fi
5463
5464
5465		CFLAGS="$xorg_testset_save_CFLAGS"
5466
5467		eval supported=\$$cacheid
5468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5469printf "%s\n" "$supported" >&6; }
5470		if test "$supported" = "yes" ; then
5471			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5472			found="yes"
5473		fi
5474	fi
5475
5476	if test $found = "no" ; then
5477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479		fi
5480
5481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483		fi
5484
5485		CFLAGS="$CFLAGS -Wformat"
5486
5487		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5488printf %s "checking if $CC supports -Wformat... " >&6; }
5489		cacheid=xorg_cv_cc_flag__Wformat
5490		if eval test \${$cacheid+y}
5491then :
5492  printf %s "(cached) " >&6
5493else $as_nop
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497int
5498main (void)
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_link "$LINENO"
5506then :
5507  eval $cacheid=yes
5508else $as_nop
5509  eval $cacheid=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.beam \
5512    conftest$ac_exeext conftest.$ac_ext
5513fi
5514
5515
5516		CFLAGS="$xorg_testset_save_CFLAGS"
5517
5518		eval supported=\$$cacheid
5519		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5520printf "%s\n" "$supported" >&6; }
5521		if test "$supported" = "yes" ; then
5522			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5523			found="yes"
5524		fi
5525	fi
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5550then :
5551  printf %s "(cached) " >&6
5552else $as_nop
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555int i;
5556_ACEOF
5557if ac_fn_c_try_compile "$LINENO"
5558then :
5559  xorg_cv_cc_flag_unknown_warning_option=yes
5560else $as_nop
5561  xorg_cv_cc_flag_unknown_warning_option=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5564fi
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5568	CFLAGS="$xorg_testset_save_CFLAGS"
5569fi
5570
5571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574	fi
5575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5578if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5579then :
5580  printf %s "(cached) " >&6
5581else $as_nop
5582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h.  */
5584int i;
5585_ACEOF
5586if ac_fn_c_try_compile "$LINENO"
5587then :
5588  xorg_cv_cc_flag_unused_command_line_argument=yes
5589else $as_nop
5590  xorg_cv_cc_flag_unused_command_line_argument=no
5591fi
5592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5593fi
5594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5597	CFLAGS="$xorg_testset_save_CFLAGS"
5598fi
5599
5600found="no"
5601
5602	if test $found = "no" ; then
5603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5605		fi
5606
5607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609		fi
5610
5611		CFLAGS="$CFLAGS -Wstrict-prototypes"
5612
5613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5614printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5615		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5616		if eval test \${$cacheid+y}
5617then :
5618  printf %s "(cached) " >&6
5619else $as_nop
5620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h.  */
5622int i;
5623int
5624main (void)
5625{
5626
5627  ;
5628  return 0;
5629}
5630_ACEOF
5631if ac_fn_c_try_link "$LINENO"
5632then :
5633  eval $cacheid=yes
5634else $as_nop
5635  eval $cacheid=no
5636fi
5637rm -f core conftest.err conftest.$ac_objext conftest.beam \
5638    conftest$ac_exeext conftest.$ac_ext
5639fi
5640
5641
5642		CFLAGS="$xorg_testset_save_CFLAGS"
5643
5644		eval supported=\$$cacheid
5645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5646printf "%s\n" "$supported" >&6; }
5647		if test "$supported" = "yes" ; then
5648			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5649			found="yes"
5650		fi
5651	fi
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667xorg_testset_save_CFLAGS="$CFLAGS"
5668
5669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5673if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5674then :
5675  printf %s "(cached) " >&6
5676else $as_nop
5677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679int i;
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"
5682then :
5683  xorg_cv_cc_flag_unknown_warning_option=yes
5684else $as_nop
5685  xorg_cv_cc_flag_unknown_warning_option=no
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5688fi
5689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5691	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5692	CFLAGS="$xorg_testset_save_CFLAGS"
5693fi
5694
5695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5696	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698	fi
5699	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5702if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5703then :
5704  printf %s "(cached) " >&6
5705else $as_nop
5706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h.  */
5708int i;
5709_ACEOF
5710if ac_fn_c_try_compile "$LINENO"
5711then :
5712  xorg_cv_cc_flag_unused_command_line_argument=yes
5713else $as_nop
5714  xorg_cv_cc_flag_unused_command_line_argument=no
5715fi
5716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5717fi
5718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5720	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5721	CFLAGS="$xorg_testset_save_CFLAGS"
5722fi
5723
5724found="no"
5725
5726	if test $found = "no" ; then
5727		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729		fi
5730
5731		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5732			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733		fi
5734
5735		CFLAGS="$CFLAGS -Wmissing-prototypes"
5736
5737		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5738printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5739		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5740		if eval test \${$cacheid+y}
5741then :
5742  printf %s "(cached) " >&6
5743else $as_nop
5744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745/* end confdefs.h.  */
5746int i;
5747int
5748main (void)
5749{
5750
5751  ;
5752  return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_link "$LINENO"
5756then :
5757  eval $cacheid=yes
5758else $as_nop
5759  eval $cacheid=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext conftest.beam \
5762    conftest$ac_exeext conftest.$ac_ext
5763fi
5764
5765
5766		CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768		eval supported=\$$cacheid
5769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770printf "%s\n" "$supported" >&6; }
5771		if test "$supported" = "yes" ; then
5772			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5773			found="yes"
5774		fi
5775	fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791xorg_testset_save_CFLAGS="$CFLAGS"
5792
5793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5798then :
5799  printf %s "(cached) " >&6
5800else $as_nop
5801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803int i;
5804_ACEOF
5805if ac_fn_c_try_compile "$LINENO"
5806then :
5807  xorg_cv_cc_flag_unknown_warning_option=yes
5808else $as_nop
5809  xorg_cv_cc_flag_unknown_warning_option=no
5810fi
5811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5812fi
5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5816	CFLAGS="$xorg_testset_save_CFLAGS"
5817fi
5818
5819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822	fi
5823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5826if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5827then :
5828  printf %s "(cached) " >&6
5829else $as_nop
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"
5835then :
5836  xorg_cv_cc_flag_unused_command_line_argument=yes
5837else $as_nop
5838  xorg_cv_cc_flag_unused_command_line_argument=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5841fi
5842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5845	CFLAGS="$xorg_testset_save_CFLAGS"
5846fi
5847
5848found="no"
5849
5850	if test $found = "no" ; then
5851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853		fi
5854
5855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857		fi
5858
5859		CFLAGS="$CFLAGS -Wnested-externs"
5860
5861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5862printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5863		cacheid=xorg_cv_cc_flag__Wnested_externs
5864		if eval test \${$cacheid+y}
5865then :
5866  printf %s "(cached) " >&6
5867else $as_nop
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871int
5872main (void)
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"
5880then :
5881  eval $cacheid=yes
5882else $as_nop
5883  eval $cacheid=no
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886    conftest$ac_exeext conftest.$ac_ext
5887fi
5888
5889
5890		CFLAGS="$xorg_testset_save_CFLAGS"
5891
5892		eval supported=\$$cacheid
5893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5894printf "%s\n" "$supported" >&6; }
5895		if test "$supported" = "yes" ; then
5896			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5897			found="yes"
5898		fi
5899	fi
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915xorg_testset_save_CFLAGS="$CFLAGS"
5916
5917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5920printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5921if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5922then :
5923  printf %s "(cached) " >&6
5924else $as_nop
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"
5930then :
5931  xorg_cv_cc_flag_unknown_warning_option=yes
5932else $as_nop
5933  xorg_cv_cc_flag_unknown_warning_option=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5936fi
5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946	fi
5947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5951then :
5952  printf %s "(cached) " >&6
5953else $as_nop
5954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h.  */
5956int i;
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"
5959then :
5960  xorg_cv_cc_flag_unused_command_line_argument=yes
5961else $as_nop
5962  xorg_cv_cc_flag_unused_command_line_argument=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5965fi
5966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969	CFLAGS="$xorg_testset_save_CFLAGS"
5970fi
5971
5972found="no"
5973
5974	if test $found = "no" ; then
5975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977		fi
5978
5979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981		fi
5982
5983		CFLAGS="$CFLAGS -Wbad-function-cast"
5984
5985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5986printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5987		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5988		if eval test \${$cacheid+y}
5989then :
5990  printf %s "(cached) " >&6
5991else $as_nop
5992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993/* end confdefs.h.  */
5994int i;
5995int
5996main (void)
5997{
5998
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_link "$LINENO"
6004then :
6005  eval $cacheid=yes
6006else $as_nop
6007  eval $cacheid=no
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.beam \
6010    conftest$ac_exeext conftest.$ac_ext
6011fi
6012
6013
6014		CFLAGS="$xorg_testset_save_CFLAGS"
6015
6016		eval supported=\$$cacheid
6017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6018printf "%s\n" "$supported" >&6; }
6019		if test "$supported" = "yes" ; then
6020			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6021			found="yes"
6022		fi
6023	fi
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039xorg_testset_save_CFLAGS="$CFLAGS"
6040
6041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6044printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6045if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6046then :
6047  printf %s "(cached) " >&6
6048else $as_nop
6049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h.  */
6051int i;
6052_ACEOF
6053if ac_fn_c_try_compile "$LINENO"
6054then :
6055  xorg_cv_cc_flag_unknown_warning_option=yes
6056else $as_nop
6057  xorg_cv_cc_flag_unknown_warning_option=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060fi
6061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6064	CFLAGS="$xorg_testset_save_CFLAGS"
6065fi
6066
6067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070	fi
6071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6075then :
6076  printf %s "(cached) " >&6
6077else $as_nop
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080int i;
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"
6083then :
6084  xorg_cv_cc_flag_unused_command_line_argument=yes
6085else $as_nop
6086  xorg_cv_cc_flag_unused_command_line_argument=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089fi
6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6091printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6092	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6093	CFLAGS="$xorg_testset_save_CFLAGS"
6094fi
6095
6096found="no"
6097
6098	if test $found = "no" ; then
6099		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6100			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6101		fi
6102
6103		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6104			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6105		fi
6106
6107		CFLAGS="$CFLAGS -Wold-style-definition"
6108
6109		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6110printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6111		cacheid=xorg_cv_cc_flag__Wold_style_definition
6112		if eval test \${$cacheid+y}
6113then :
6114  printf %s "(cached) " >&6
6115else $as_nop
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119int
6120main (void)
6121{
6122
6123  ;
6124  return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"
6128then :
6129  eval $cacheid=yes
6130else $as_nop
6131  eval $cacheid=no
6132fi
6133rm -f core conftest.err conftest.$ac_objext conftest.beam \
6134    conftest$ac_exeext conftest.$ac_ext
6135fi
6136
6137
6138		CFLAGS="$xorg_testset_save_CFLAGS"
6139
6140		eval supported=\$$cacheid
6141		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6142printf "%s\n" "$supported" >&6; }
6143		if test "$supported" = "yes" ; then
6144			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6145			found="yes"
6146		fi
6147	fi
6148
6149	if test $found = "no" ; then
6150		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152		fi
6153
6154		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156		fi
6157
6158		CFLAGS="$CFLAGS -fd"
6159
6160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6161printf %s "checking if $CC supports -fd... " >&6; }
6162		cacheid=xorg_cv_cc_flag__fd
6163		if eval test \${$cacheid+y}
6164then :
6165  printf %s "(cached) " >&6
6166else $as_nop
6167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h.  */
6169int i;
6170int
6171main (void)
6172{
6173
6174  ;
6175  return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_link "$LINENO"
6179then :
6180  eval $cacheid=yes
6181else $as_nop
6182  eval $cacheid=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.beam \
6185    conftest$ac_exeext conftest.$ac_ext
6186fi
6187
6188
6189		CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191		eval supported=\$$cacheid
6192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193printf "%s\n" "$supported" >&6; }
6194		if test "$supported" = "yes" ; then
6195			BASE_CFLAGS="$BASE_CFLAGS -fd"
6196			found="yes"
6197		fi
6198	fi
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214xorg_testset_save_CFLAGS="$CFLAGS"
6215
6216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6220if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6221then :
6222  printf %s "(cached) " >&6
6223else $as_nop
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226int i;
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"
6229then :
6230  xorg_cv_cc_flag_unknown_warning_option=yes
6231else $as_nop
6232  xorg_cv_cc_flag_unknown_warning_option=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235fi
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239	CFLAGS="$xorg_testset_save_CFLAGS"
6240fi
6241
6242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245	fi
6246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6250then :
6251  printf %s "(cached) " >&6
6252else $as_nop
6253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255int i;
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"
6258then :
6259  xorg_cv_cc_flag_unused_command_line_argument=yes
6260else $as_nop
6261  xorg_cv_cc_flag_unused_command_line_argument=no
6262fi
6263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6264fi
6265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6267	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6268	CFLAGS="$xorg_testset_save_CFLAGS"
6269fi
6270
6271found="no"
6272
6273	if test $found = "no" ; then
6274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276		fi
6277
6278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6280		fi
6281
6282		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6283
6284		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6285printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6286		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6287		if eval test \${$cacheid+y}
6288then :
6289  printf %s "(cached) " >&6
6290else $as_nop
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294int
6295main (void)
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_c_try_link "$LINENO"
6303then :
6304  eval $cacheid=yes
6305else $as_nop
6306  eval $cacheid=no
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309    conftest$ac_exeext conftest.$ac_ext
6310fi
6311
6312
6313		CFLAGS="$xorg_testset_save_CFLAGS"
6314
6315		eval supported=\$$cacheid
6316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6317printf "%s\n" "$supported" >&6; }
6318		if test "$supported" = "yes" ; then
6319			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6320			found="yes"
6321		fi
6322	fi
6323
6324
6325
6326
6327
6328# This chunk adds additional warnings that could catch undesired effects.
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342xorg_testset_save_CFLAGS="$CFLAGS"
6343
6344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6349then :
6350  printf %s "(cached) " >&6
6351else $as_nop
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"
6357then :
6358  xorg_cv_cc_flag_unknown_warning_option=yes
6359else $as_nop
6360  xorg_cv_cc_flag_unknown_warning_option=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363fi
6364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6367	CFLAGS="$xorg_testset_save_CFLAGS"
6368fi
6369
6370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373	fi
6374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6377if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6378then :
6379  printf %s "(cached) " >&6
6380else $as_nop
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383int i;
6384_ACEOF
6385if ac_fn_c_try_compile "$LINENO"
6386then :
6387  xorg_cv_cc_flag_unused_command_line_argument=yes
6388else $as_nop
6389  xorg_cv_cc_flag_unused_command_line_argument=no
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6392fi
6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6396	CFLAGS="$xorg_testset_save_CFLAGS"
6397fi
6398
6399found="no"
6400
6401	if test $found = "no" ; then
6402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404		fi
6405
6406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408		fi
6409
6410		CFLAGS="$CFLAGS -Wunused"
6411
6412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6413printf %s "checking if $CC supports -Wunused... " >&6; }
6414		cacheid=xorg_cv_cc_flag__Wunused
6415		if eval test \${$cacheid+y}
6416then :
6417  printf %s "(cached) " >&6
6418else $as_nop
6419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420/* end confdefs.h.  */
6421int i;
6422int
6423main (void)
6424{
6425
6426  ;
6427  return 0;
6428}
6429_ACEOF
6430if ac_fn_c_try_link "$LINENO"
6431then :
6432  eval $cacheid=yes
6433else $as_nop
6434  eval $cacheid=no
6435fi
6436rm -f core conftest.err conftest.$ac_objext conftest.beam \
6437    conftest$ac_exeext conftest.$ac_ext
6438fi
6439
6440
6441		CFLAGS="$xorg_testset_save_CFLAGS"
6442
6443		eval supported=\$$cacheid
6444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6445printf "%s\n" "$supported" >&6; }
6446		if test "$supported" = "yes" ; then
6447			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6448			found="yes"
6449		fi
6450	fi
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466xorg_testset_save_CFLAGS="$CFLAGS"
6467
6468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6473then :
6474  printf %s "(cached) " >&6
6475else $as_nop
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478int i;
6479_ACEOF
6480if ac_fn_c_try_compile "$LINENO"
6481then :
6482  xorg_cv_cc_flag_unknown_warning_option=yes
6483else $as_nop
6484  xorg_cv_cc_flag_unknown_warning_option=no
6485fi
6486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6487fi
6488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6491	CFLAGS="$xorg_testset_save_CFLAGS"
6492fi
6493
6494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497	fi
6498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6502then :
6503  printf %s "(cached) " >&6
6504else $as_nop
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507int i;
6508_ACEOF
6509if ac_fn_c_try_compile "$LINENO"
6510then :
6511  xorg_cv_cc_flag_unused_command_line_argument=yes
6512else $as_nop
6513  xorg_cv_cc_flag_unused_command_line_argument=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6516fi
6517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6520	CFLAGS="$xorg_testset_save_CFLAGS"
6521fi
6522
6523found="no"
6524
6525	if test $found = "no" ; then
6526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6528		fi
6529
6530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532		fi
6533
6534		CFLAGS="$CFLAGS -Wuninitialized"
6535
6536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6537printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6538		cacheid=xorg_cv_cc_flag__Wuninitialized
6539		if eval test \${$cacheid+y}
6540then :
6541  printf %s "(cached) " >&6
6542else $as_nop
6543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545int i;
6546int
6547main (void)
6548{
6549
6550  ;
6551  return 0;
6552}
6553_ACEOF
6554if ac_fn_c_try_link "$LINENO"
6555then :
6556  eval $cacheid=yes
6557else $as_nop
6558  eval $cacheid=no
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.beam \
6561    conftest$ac_exeext conftest.$ac_ext
6562fi
6563
6564
6565		CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567		eval supported=\$$cacheid
6568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569printf "%s\n" "$supported" >&6; }
6570		if test "$supported" = "yes" ; then
6571			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6572			found="yes"
6573		fi
6574	fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6597then :
6598  printf %s "(cached) " >&6
6599else $as_nop
6600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601/* end confdefs.h.  */
6602int i;
6603_ACEOF
6604if ac_fn_c_try_compile "$LINENO"
6605then :
6606  xorg_cv_cc_flag_unknown_warning_option=yes
6607else $as_nop
6608  xorg_cv_cc_flag_unknown_warning_option=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6611fi
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	fi
6622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6626then :
6627  printf %s "(cached) " >&6
6628else $as_nop
6629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h.  */
6631int i;
6632_ACEOF
6633if ac_fn_c_try_compile "$LINENO"
6634then :
6635  xorg_cv_cc_flag_unused_command_line_argument=yes
6636else $as_nop
6637  xorg_cv_cc_flag_unused_command_line_argument=no
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6640fi
6641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6644	CFLAGS="$xorg_testset_save_CFLAGS"
6645fi
6646
6647found="no"
6648
6649	if test $found = "no" ; then
6650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652		fi
6653
6654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656		fi
6657
6658		CFLAGS="$CFLAGS -Wshadow"
6659
6660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6661printf %s "checking if $CC supports -Wshadow... " >&6; }
6662		cacheid=xorg_cv_cc_flag__Wshadow
6663		if eval test \${$cacheid+y}
6664then :
6665  printf %s "(cached) " >&6
6666else $as_nop
6667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668/* end confdefs.h.  */
6669int i;
6670int
6671main (void)
6672{
6673
6674  ;
6675  return 0;
6676}
6677_ACEOF
6678if ac_fn_c_try_link "$LINENO"
6679then :
6680  eval $cacheid=yes
6681else $as_nop
6682  eval $cacheid=no
6683fi
6684rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685    conftest$ac_exeext conftest.$ac_ext
6686fi
6687
6688
6689		CFLAGS="$xorg_testset_save_CFLAGS"
6690
6691		eval supported=\$$cacheid
6692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6693printf "%s\n" "$supported" >&6; }
6694		if test "$supported" = "yes" ; then
6695			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6696			found="yes"
6697		fi
6698	fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714xorg_testset_save_CFLAGS="$CFLAGS"
6715
6716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6721then :
6722  printf %s "(cached) " >&6
6723else $as_nop
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"
6729then :
6730  xorg_cv_cc_flag_unknown_warning_option=yes
6731else $as_nop
6732  xorg_cv_cc_flag_unknown_warning_option=no
6733fi
6734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735fi
6736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739	CFLAGS="$xorg_testset_save_CFLAGS"
6740fi
6741
6742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745	fi
6746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750then :
6751  printf %s "(cached) " >&6
6752else $as_nop
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"
6758then :
6759  xorg_cv_cc_flag_unused_command_line_argument=yes
6760else $as_nop
6761  xorg_cv_cc_flag_unused_command_line_argument=no
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6764fi
6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6768	CFLAGS="$xorg_testset_save_CFLAGS"
6769fi
6770
6771found="no"
6772
6773	if test $found = "no" ; then
6774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776		fi
6777
6778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780		fi
6781
6782		CFLAGS="$CFLAGS -Wmissing-noreturn"
6783
6784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6785printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6786		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6787		if eval test \${$cacheid+y}
6788then :
6789  printf %s "(cached) " >&6
6790else $as_nop
6791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792/* end confdefs.h.  */
6793int i;
6794int
6795main (void)
6796{
6797
6798  ;
6799  return 0;
6800}
6801_ACEOF
6802if ac_fn_c_try_link "$LINENO"
6803then :
6804  eval $cacheid=yes
6805else $as_nop
6806  eval $cacheid=no
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809    conftest$ac_exeext conftest.$ac_ext
6810fi
6811
6812
6813		CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815		eval supported=\$$cacheid
6816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817printf "%s\n" "$supported" >&6; }
6818		if test "$supported" = "yes" ; then
6819			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6820			found="yes"
6821		fi
6822	fi
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838xorg_testset_save_CFLAGS="$CFLAGS"
6839
6840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851_ACEOF
6852if ac_fn_c_try_compile "$LINENO"
6853then :
6854  xorg_cv_cc_flag_unknown_warning_option=yes
6855else $as_nop
6856  xorg_cv_cc_flag_unknown_warning_option=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6859fi
6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863	CFLAGS="$xorg_testset_save_CFLAGS"
6864fi
6865
6866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	fi
6870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874then :
6875  printf %s "(cached) " >&6
6876else $as_nop
6877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878/* end confdefs.h.  */
6879int i;
6880_ACEOF
6881if ac_fn_c_try_compile "$LINENO"
6882then :
6883  xorg_cv_cc_flag_unused_command_line_argument=yes
6884else $as_nop
6885  xorg_cv_cc_flag_unused_command_line_argument=no
6886fi
6887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888fi
6889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892	CFLAGS="$xorg_testset_save_CFLAGS"
6893fi
6894
6895found="no"
6896
6897	if test $found = "no" ; then
6898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900		fi
6901
6902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904		fi
6905
6906		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6907
6908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6909printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6910		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6911		if eval test \${$cacheid+y}
6912then :
6913  printf %s "(cached) " >&6
6914else $as_nop
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918int
6919main (void)
6920{
6921
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_link "$LINENO"
6927then :
6928  eval $cacheid=yes
6929else $as_nop
6930  eval $cacheid=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.beam \
6933    conftest$ac_exeext conftest.$ac_ext
6934fi
6935
6936
6937		CFLAGS="$xorg_testset_save_CFLAGS"
6938
6939		eval supported=\$$cacheid
6940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6941printf "%s\n" "$supported" >&6; }
6942		if test "$supported" = "yes" ; then
6943			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6944			found="yes"
6945		fi
6946	fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962xorg_testset_save_CFLAGS="$CFLAGS"
6963
6964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6969then :
6970  printf %s "(cached) " >&6
6971else $as_nop
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"
6977then :
6978  xorg_cv_cc_flag_unknown_warning_option=yes
6979else $as_nop
6980  xorg_cv_cc_flag_unknown_warning_option=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6983fi
6984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6987	CFLAGS="$xorg_testset_save_CFLAGS"
6988fi
6989
6990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993	fi
6994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6998then :
6999  printf %s "(cached) " >&6
7000else $as_nop
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"
7006then :
7007  xorg_cv_cc_flag_unused_command_line_argument=yes
7008else $as_nop
7009  xorg_cv_cc_flag_unused_command_line_argument=no
7010fi
7011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7012fi
7013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7016	CFLAGS="$xorg_testset_save_CFLAGS"
7017fi
7018
7019found="no"
7020
7021	if test $found = "no" ; then
7022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024		fi
7025
7026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028		fi
7029
7030		CFLAGS="$CFLAGS -Wredundant-decls"
7031
7032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7033printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7034		cacheid=xorg_cv_cc_flag__Wredundant_decls
7035		if eval test \${$cacheid+y}
7036then :
7037  printf %s "(cached) " >&6
7038else $as_nop
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042int
7043main (void)
7044{
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_link "$LINENO"
7051then :
7052  eval $cacheid=yes
7053else $as_nop
7054  eval $cacheid=no
7055fi
7056rm -f core conftest.err conftest.$ac_objext conftest.beam \
7057    conftest$ac_exeext conftest.$ac_ext
7058fi
7059
7060
7061		CFLAGS="$xorg_testset_save_CFLAGS"
7062
7063		eval supported=\$$cacheid
7064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7065printf "%s\n" "$supported" >&6; }
7066		if test "$supported" = "yes" ; then
7067			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7068			found="yes"
7069		fi
7070	fi
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086xorg_testset_save_CFLAGS="$CFLAGS"
7087
7088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7093then :
7094  printf %s "(cached) " >&6
7095else $as_nop
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"
7101then :
7102  xorg_cv_cc_flag_unknown_warning_option=yes
7103else $as_nop
7104  xorg_cv_cc_flag_unknown_warning_option=no
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7107fi
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7111	CFLAGS="$xorg_testset_save_CFLAGS"
7112fi
7113
7114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117	fi
7118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7122then :
7123  printf %s "(cached) " >&6
7124else $as_nop
7125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126/* end confdefs.h.  */
7127int i;
7128_ACEOF
7129if ac_fn_c_try_compile "$LINENO"
7130then :
7131  xorg_cv_cc_flag_unused_command_line_argument=yes
7132else $as_nop
7133  xorg_cv_cc_flag_unused_command_line_argument=no
7134fi
7135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136fi
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7140	CFLAGS="$xorg_testset_save_CFLAGS"
7141fi
7142
7143found="no"
7144
7145	if test $found = "no" ; then
7146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148		fi
7149
7150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152		fi
7153
7154		CFLAGS="$CFLAGS -Wlogical-op"
7155
7156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7157printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7158		cacheid=xorg_cv_cc_flag__Wlogical_op
7159		if eval test \${$cacheid+y}
7160then :
7161  printf %s "(cached) " >&6
7162else $as_nop
7163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164/* end confdefs.h.  */
7165int i;
7166int
7167main (void)
7168{
7169
7170  ;
7171  return 0;
7172}
7173_ACEOF
7174if ac_fn_c_try_link "$LINENO"
7175then :
7176  eval $cacheid=yes
7177else $as_nop
7178  eval $cacheid=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.beam \
7181    conftest$ac_exeext conftest.$ac_ext
7182fi
7183
7184
7185		CFLAGS="$xorg_testset_save_CFLAGS"
7186
7187		eval supported=\$$cacheid
7188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7189printf "%s\n" "$supported" >&6; }
7190		if test "$supported" = "yes" ; then
7191			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7192			found="yes"
7193		fi
7194	fi
7195
7196
7197
7198# These are currently disabled because they are noisy.  They will be enabled
7199# in the future once the codebase is sufficiently modernized to silence
7200# them.  For now, I don't want them to drown out the other warnings.
7201# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7202# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7203# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7204
7205# Turn some warnings into errors, so we don't accidently get successful builds
7206# when there are problems that should be fixed.
7207
7208if test "x$SELECTIVE_WERROR" = "xyes" ; then
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222xorg_testset_save_CFLAGS="$CFLAGS"
7223
7224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7229then :
7230  printf %s "(cached) " >&6
7231else $as_nop
7232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234int i;
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"
7237then :
7238  xorg_cv_cc_flag_unknown_warning_option=yes
7239else $as_nop
7240  xorg_cv_cc_flag_unknown_warning_option=no
7241fi
7242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243fi
7244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7247	CFLAGS="$xorg_testset_save_CFLAGS"
7248fi
7249
7250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253	fi
7254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7258then :
7259  printf %s "(cached) " >&6
7260else $as_nop
7261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262/* end confdefs.h.  */
7263int i;
7264_ACEOF
7265if ac_fn_c_try_compile "$LINENO"
7266then :
7267  xorg_cv_cc_flag_unused_command_line_argument=yes
7268else $as_nop
7269  xorg_cv_cc_flag_unused_command_line_argument=no
7270fi
7271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7272fi
7273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7276	CFLAGS="$xorg_testset_save_CFLAGS"
7277fi
7278
7279found="no"
7280
7281	if test $found = "no" ; then
7282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284		fi
7285
7286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288		fi
7289
7290		CFLAGS="$CFLAGS -Werror=implicit"
7291
7292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7293printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7294		cacheid=xorg_cv_cc_flag__Werror_implicit
7295		if eval test \${$cacheid+y}
7296then :
7297  printf %s "(cached) " >&6
7298else $as_nop
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301int i;
7302int
7303main (void)
7304{
7305
7306  ;
7307  return 0;
7308}
7309_ACEOF
7310if ac_fn_c_try_link "$LINENO"
7311then :
7312  eval $cacheid=yes
7313else $as_nop
7314  eval $cacheid=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.beam \
7317    conftest$ac_exeext conftest.$ac_ext
7318fi
7319
7320
7321		CFLAGS="$xorg_testset_save_CFLAGS"
7322
7323		eval supported=\$$cacheid
7324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7325printf "%s\n" "$supported" >&6; }
7326		if test "$supported" = "yes" ; then
7327			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7328			found="yes"
7329		fi
7330	fi
7331
7332	if test $found = "no" ; then
7333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335		fi
7336
7337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339		fi
7340
7341		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7342
7343		{ 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
7344printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7345		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7346		if eval test \${$cacheid+y}
7347then :
7348  printf %s "(cached) " >&6
7349else $as_nop
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352int i;
7353int
7354main (void)
7355{
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361if ac_fn_c_try_link "$LINENO"
7362then :
7363  eval $cacheid=yes
7364else $as_nop
7365  eval $cacheid=no
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.beam \
7368    conftest$ac_exeext conftest.$ac_ext
7369fi
7370
7371
7372		CFLAGS="$xorg_testset_save_CFLAGS"
7373
7374		eval supported=\$$cacheid
7375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7376printf "%s\n" "$supported" >&6; }
7377		if test "$supported" = "yes" ; then
7378			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7379			found="yes"
7380		fi
7381	fi
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397xorg_testset_save_CFLAGS="$CFLAGS"
7398
7399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7400	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7403if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7404then :
7405  printf %s "(cached) " >&6
7406else $as_nop
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"
7412then :
7413  xorg_cv_cc_flag_unknown_warning_option=yes
7414else $as_nop
7415  xorg_cv_cc_flag_unknown_warning_option=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7418fi
7419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422	CFLAGS="$xorg_testset_save_CFLAGS"
7423fi
7424
7425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428	fi
7429	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7433then :
7434  printf %s "(cached) " >&6
7435else $as_nop
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439_ACEOF
7440if ac_fn_c_try_compile "$LINENO"
7441then :
7442  xorg_cv_cc_flag_unused_command_line_argument=yes
7443else $as_nop
7444  xorg_cv_cc_flag_unused_command_line_argument=no
7445fi
7446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7447fi
7448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7451	CFLAGS="$xorg_testset_save_CFLAGS"
7452fi
7453
7454found="no"
7455
7456	if test $found = "no" ; then
7457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7459		fi
7460
7461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463		fi
7464
7465		CFLAGS="$CFLAGS -Werror=nonnull"
7466
7467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7468printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7469		cacheid=xorg_cv_cc_flag__Werror_nonnull
7470		if eval test \${$cacheid+y}
7471then :
7472  printf %s "(cached) " >&6
7473else $as_nop
7474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h.  */
7476int i;
7477int
7478main (void)
7479{
7480
7481  ;
7482  return 0;
7483}
7484_ACEOF
7485if ac_fn_c_try_link "$LINENO"
7486then :
7487  eval $cacheid=yes
7488else $as_nop
7489  eval $cacheid=no
7490fi
7491rm -f core conftest.err conftest.$ac_objext conftest.beam \
7492    conftest$ac_exeext conftest.$ac_ext
7493fi
7494
7495
7496		CFLAGS="$xorg_testset_save_CFLAGS"
7497
7498		eval supported=\$$cacheid
7499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7500printf "%s\n" "$supported" >&6; }
7501		if test "$supported" = "yes" ; then
7502			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7503			found="yes"
7504		fi
7505	fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521xorg_testset_save_CFLAGS="$CFLAGS"
7522
7523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532/* end confdefs.h.  */
7533int i;
7534_ACEOF
7535if ac_fn_c_try_compile "$LINENO"
7536then :
7537  xorg_cv_cc_flag_unknown_warning_option=yes
7538else $as_nop
7539  xorg_cv_cc_flag_unknown_warning_option=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7542fi
7543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552	fi
7553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7557then :
7558  printf %s "(cached) " >&6
7559else $as_nop
7560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561/* end confdefs.h.  */
7562int i;
7563_ACEOF
7564if ac_fn_c_try_compile "$LINENO"
7565then :
7566  xorg_cv_cc_flag_unused_command_line_argument=yes
7567else $as_nop
7568  xorg_cv_cc_flag_unused_command_line_argument=no
7569fi
7570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7571fi
7572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7575	CFLAGS="$xorg_testset_save_CFLAGS"
7576fi
7577
7578found="no"
7579
7580	if test $found = "no" ; then
7581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7583		fi
7584
7585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587		fi
7588
7589		CFLAGS="$CFLAGS -Werror=init-self"
7590
7591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7592printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7593		cacheid=xorg_cv_cc_flag__Werror_init_self
7594		if eval test \${$cacheid+y}
7595then :
7596  printf %s "(cached) " >&6
7597else $as_nop
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600int i;
7601int
7602main (void)
7603{
7604
7605  ;
7606  return 0;
7607}
7608_ACEOF
7609if ac_fn_c_try_link "$LINENO"
7610then :
7611  eval $cacheid=yes
7612else $as_nop
7613  eval $cacheid=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.beam \
7616    conftest$ac_exeext conftest.$ac_ext
7617fi
7618
7619
7620		CFLAGS="$xorg_testset_save_CFLAGS"
7621
7622		eval supported=\$$cacheid
7623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7624printf "%s\n" "$supported" >&6; }
7625		if test "$supported" = "yes" ; then
7626			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7627			found="yes"
7628		fi
7629	fi
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645xorg_testset_save_CFLAGS="$CFLAGS"
7646
7647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7651if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7652then :
7653  printf %s "(cached) " >&6
7654else $as_nop
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"
7660then :
7661  xorg_cv_cc_flag_unknown_warning_option=yes
7662else $as_nop
7663  xorg_cv_cc_flag_unknown_warning_option=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7666fi
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676	fi
7677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681then :
7682  printf %s "(cached) " >&6
7683else $as_nop
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686int i;
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"
7689then :
7690  xorg_cv_cc_flag_unused_command_line_argument=yes
7691else $as_nop
7692  xorg_cv_cc_flag_unused_command_line_argument=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7695fi
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7699	CFLAGS="$xorg_testset_save_CFLAGS"
7700fi
7701
7702found="no"
7703
7704	if test $found = "no" ; then
7705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707		fi
7708
7709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711		fi
7712
7713		CFLAGS="$CFLAGS -Werror=main"
7714
7715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7716printf %s "checking if $CC supports -Werror=main... " >&6; }
7717		cacheid=xorg_cv_cc_flag__Werror_main
7718		if eval test \${$cacheid+y}
7719then :
7720  printf %s "(cached) " >&6
7721else $as_nop
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725int
7726main (void)
7727{
7728
7729  ;
7730  return 0;
7731}
7732_ACEOF
7733if ac_fn_c_try_link "$LINENO"
7734then :
7735  eval $cacheid=yes
7736else $as_nop
7737  eval $cacheid=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext conftest.beam \
7740    conftest$ac_exeext conftest.$ac_ext
7741fi
7742
7743
7744		CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746		eval supported=\$$cacheid
7747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748printf "%s\n" "$supported" >&6; }
7749		if test "$supported" = "yes" ; then
7750			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7751			found="yes"
7752		fi
7753	fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7776then :
7777  printf %s "(cached) " >&6
7778else $as_nop
7779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780/* end confdefs.h.  */
7781int i;
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"
7784then :
7785  xorg_cv_cc_flag_unknown_warning_option=yes
7786else $as_nop
7787  xorg_cv_cc_flag_unknown_warning_option=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7790fi
7791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800	fi
7801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7805then :
7806  printf %s "(cached) " >&6
7807else $as_nop
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810int i;
7811_ACEOF
7812if ac_fn_c_try_compile "$LINENO"
7813then :
7814  xorg_cv_cc_flag_unused_command_line_argument=yes
7815else $as_nop
7816  xorg_cv_cc_flag_unused_command_line_argument=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819fi
7820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7823	CFLAGS="$xorg_testset_save_CFLAGS"
7824fi
7825
7826found="no"
7827
7828	if test $found = "no" ; then
7829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831		fi
7832
7833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835		fi
7836
7837		CFLAGS="$CFLAGS -Werror=missing-braces"
7838
7839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7840printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7841		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7842		if eval test \${$cacheid+y}
7843then :
7844  printf %s "(cached) " >&6
7845else $as_nop
7846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848int i;
7849int
7850main (void)
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_link "$LINENO"
7858then :
7859  eval $cacheid=yes
7860else $as_nop
7861  eval $cacheid=no
7862fi
7863rm -f core conftest.err conftest.$ac_objext conftest.beam \
7864    conftest$ac_exeext conftest.$ac_ext
7865fi
7866
7867
7868		CFLAGS="$xorg_testset_save_CFLAGS"
7869
7870		eval supported=\$$cacheid
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7872printf "%s\n" "$supported" >&6; }
7873		if test "$supported" = "yes" ; then
7874			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7875			found="yes"
7876		fi
7877	fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893xorg_testset_save_CFLAGS="$CFLAGS"
7894
7895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7899if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7900then :
7901  printf %s "(cached) " >&6
7902else $as_nop
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905int i;
7906_ACEOF
7907if ac_fn_c_try_compile "$LINENO"
7908then :
7909  xorg_cv_cc_flag_unknown_warning_option=yes
7910else $as_nop
7911  xorg_cv_cc_flag_unknown_warning_option=no
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7914fi
7915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918	CFLAGS="$xorg_testset_save_CFLAGS"
7919fi
7920
7921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924	fi
7925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929then :
7930  printf %s "(cached) " >&6
7931else $as_nop
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934int i;
7935_ACEOF
7936if ac_fn_c_try_compile "$LINENO"
7937then :
7938  xorg_cv_cc_flag_unused_command_line_argument=yes
7939else $as_nop
7940  xorg_cv_cc_flag_unused_command_line_argument=no
7941fi
7942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7943fi
7944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7947	CFLAGS="$xorg_testset_save_CFLAGS"
7948fi
7949
7950found="no"
7951
7952	if test $found = "no" ; then
7953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955		fi
7956
7957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959		fi
7960
7961		CFLAGS="$CFLAGS -Werror=sequence-point"
7962
7963		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7964printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7965		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7966		if eval test \${$cacheid+y}
7967then :
7968  printf %s "(cached) " >&6
7969else $as_nop
7970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971/* end confdefs.h.  */
7972int i;
7973int
7974main (void)
7975{
7976
7977  ;
7978  return 0;
7979}
7980_ACEOF
7981if ac_fn_c_try_link "$LINENO"
7982then :
7983  eval $cacheid=yes
7984else $as_nop
7985  eval $cacheid=no
7986fi
7987rm -f core conftest.err conftest.$ac_objext conftest.beam \
7988    conftest$ac_exeext conftest.$ac_ext
7989fi
7990
7991
7992		CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994		eval supported=\$$cacheid
7995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996printf "%s\n" "$supported" >&6; }
7997		if test "$supported" = "yes" ; then
7998			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7999			found="yes"
8000		fi
8001	fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8024then :
8025  printf %s "(cached) " >&6
8026else $as_nop
8027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int i;
8030_ACEOF
8031if ac_fn_c_try_compile "$LINENO"
8032then :
8033  xorg_cv_cc_flag_unknown_warning_option=yes
8034else $as_nop
8035  xorg_cv_cc_flag_unknown_warning_option=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8038fi
8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	fi
8049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8053then :
8054  printf %s "(cached) " >&6
8055else $as_nop
8056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h.  */
8058int i;
8059_ACEOF
8060if ac_fn_c_try_compile "$LINENO"
8061then :
8062  xorg_cv_cc_flag_unused_command_line_argument=yes
8063else $as_nop
8064  xorg_cv_cc_flag_unused_command_line_argument=no
8065fi
8066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8067fi
8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8071	CFLAGS="$xorg_testset_save_CFLAGS"
8072fi
8073
8074found="no"
8075
8076	if test $found = "no" ; then
8077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8079		fi
8080
8081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8083		fi
8084
8085		CFLAGS="$CFLAGS -Werror=return-type"
8086
8087		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8088printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8089		cacheid=xorg_cv_cc_flag__Werror_return_type
8090		if eval test \${$cacheid+y}
8091then :
8092  printf %s "(cached) " >&6
8093else $as_nop
8094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095/* end confdefs.h.  */
8096int i;
8097int
8098main (void)
8099{
8100
8101  ;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_link "$LINENO"
8106then :
8107  eval $cacheid=yes
8108else $as_nop
8109  eval $cacheid=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext conftest.beam \
8112    conftest$ac_exeext conftest.$ac_ext
8113fi
8114
8115
8116		CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118		eval supported=\$$cacheid
8119		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120printf "%s\n" "$supported" >&6; }
8121		if test "$supported" = "yes" ; then
8122			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8123			found="yes"
8124		fi
8125	fi
8126
8127	if test $found = "no" ; then
8128		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8129			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8130		fi
8131
8132		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8133			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134		fi
8135
8136		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8137
8138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8139printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8140		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8141		if eval test \${$cacheid+y}
8142then :
8143  printf %s "(cached) " >&6
8144else $as_nop
8145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h.  */
8147int i;
8148int
8149main (void)
8150{
8151
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_link "$LINENO"
8157then :
8158  eval $cacheid=yes
8159else $as_nop
8160  eval $cacheid=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.beam \
8163    conftest$ac_exeext conftest.$ac_ext
8164fi
8165
8166
8167		CFLAGS="$xorg_testset_save_CFLAGS"
8168
8169		eval supported=\$$cacheid
8170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8171printf "%s\n" "$supported" >&6; }
8172		if test "$supported" = "yes" ; then
8173			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8174			found="yes"
8175		fi
8176	fi
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192xorg_testset_save_CFLAGS="$CFLAGS"
8193
8194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8199then :
8200  printf %s "(cached) " >&6
8201else $as_nop
8202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203/* end confdefs.h.  */
8204int i;
8205_ACEOF
8206if ac_fn_c_try_compile "$LINENO"
8207then :
8208  xorg_cv_cc_flag_unknown_warning_option=yes
8209else $as_nop
8210  xorg_cv_cc_flag_unknown_warning_option=no
8211fi
8212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8213fi
8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223	fi
8224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8228then :
8229  printf %s "(cached) " >&6
8230else $as_nop
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233int i;
8234_ACEOF
8235if ac_fn_c_try_compile "$LINENO"
8236then :
8237  xorg_cv_cc_flag_unused_command_line_argument=yes
8238else $as_nop
8239  xorg_cv_cc_flag_unused_command_line_argument=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8242fi
8243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246	CFLAGS="$xorg_testset_save_CFLAGS"
8247fi
8248
8249found="no"
8250
8251	if test $found = "no" ; then
8252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254		fi
8255
8256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258		fi
8259
8260		CFLAGS="$CFLAGS -Werror=trigraphs"
8261
8262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8263printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8264		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8265		if eval test \${$cacheid+y}
8266then :
8267  printf %s "(cached) " >&6
8268else $as_nop
8269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270/* end confdefs.h.  */
8271int i;
8272int
8273main (void)
8274{
8275
8276  ;
8277  return 0;
8278}
8279_ACEOF
8280if ac_fn_c_try_link "$LINENO"
8281then :
8282  eval $cacheid=yes
8283else $as_nop
8284  eval $cacheid=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.beam \
8287    conftest$ac_exeext conftest.$ac_ext
8288fi
8289
8290
8291		CFLAGS="$xorg_testset_save_CFLAGS"
8292
8293		eval supported=\$$cacheid
8294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8295printf "%s\n" "$supported" >&6; }
8296		if test "$supported" = "yes" ; then
8297			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8298			found="yes"
8299		fi
8300	fi
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316xorg_testset_save_CFLAGS="$CFLAGS"
8317
8318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8321printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8322if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8323then :
8324  printf %s "(cached) " >&6
8325else $as_nop
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"
8331then :
8332  xorg_cv_cc_flag_unknown_warning_option=yes
8333else $as_nop
8334  xorg_cv_cc_flag_unknown_warning_option=no
8335fi
8336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8337fi
8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8339printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8341	CFLAGS="$xorg_testset_save_CFLAGS"
8342fi
8343
8344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347	fi
8348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8350printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8351if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8352then :
8353  printf %s "(cached) " >&6
8354else $as_nop
8355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357int i;
8358_ACEOF
8359if ac_fn_c_try_compile "$LINENO"
8360then :
8361  xorg_cv_cc_flag_unused_command_line_argument=yes
8362else $as_nop
8363  xorg_cv_cc_flag_unused_command_line_argument=no
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8366fi
8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8368printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8370	CFLAGS="$xorg_testset_save_CFLAGS"
8371fi
8372
8373found="no"
8374
8375	if test $found = "no" ; then
8376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378		fi
8379
8380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382		fi
8383
8384		CFLAGS="$CFLAGS -Werror=array-bounds"
8385
8386		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8387printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8388		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8389		if eval test \${$cacheid+y}
8390then :
8391  printf %s "(cached) " >&6
8392else $as_nop
8393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394/* end confdefs.h.  */
8395int i;
8396int
8397main (void)
8398{
8399
8400  ;
8401  return 0;
8402}
8403_ACEOF
8404if ac_fn_c_try_link "$LINENO"
8405then :
8406  eval $cacheid=yes
8407else $as_nop
8408  eval $cacheid=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.beam \
8411    conftest$ac_exeext conftest.$ac_ext
8412fi
8413
8414
8415		CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417		eval supported=\$$cacheid
8418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419printf "%s\n" "$supported" >&6; }
8420		if test "$supported" = "yes" ; then
8421			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8422			found="yes"
8423		fi
8424	fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8447then :
8448  printf %s "(cached) " >&6
8449else $as_nop
8450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451/* end confdefs.h.  */
8452int i;
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"
8455then :
8456  xorg_cv_cc_flag_unknown_warning_option=yes
8457else $as_nop
8458  xorg_cv_cc_flag_unknown_warning_option=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8461fi
8462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471	fi
8472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8476then :
8477  printf %s "(cached) " >&6
8478else $as_nop
8479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482_ACEOF
8483if ac_fn_c_try_compile "$LINENO"
8484then :
8485  xorg_cv_cc_flag_unused_command_line_argument=yes
8486else $as_nop
8487  xorg_cv_cc_flag_unused_command_line_argument=no
8488fi
8489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8490fi
8491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8494	CFLAGS="$xorg_testset_save_CFLAGS"
8495fi
8496
8497found="no"
8498
8499	if test $found = "no" ; then
8500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502		fi
8503
8504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506		fi
8507
8508		CFLAGS="$CFLAGS -Werror=write-strings"
8509
8510		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8511printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8512		cacheid=xorg_cv_cc_flag__Werror_write_strings
8513		if eval test \${$cacheid+y}
8514then :
8515  printf %s "(cached) " >&6
8516else $as_nop
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520int
8521main (void)
8522{
8523
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528if ac_fn_c_try_link "$LINENO"
8529then :
8530  eval $cacheid=yes
8531else $as_nop
8532  eval $cacheid=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext conftest.beam \
8535    conftest$ac_exeext conftest.$ac_ext
8536fi
8537
8538
8539		CFLAGS="$xorg_testset_save_CFLAGS"
8540
8541		eval supported=\$$cacheid
8542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8543printf "%s\n" "$supported" >&6; }
8544		if test "$supported" = "yes" ; then
8545			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8546			found="yes"
8547		fi
8548	fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564xorg_testset_save_CFLAGS="$CFLAGS"
8565
8566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8571then :
8572  printf %s "(cached) " >&6
8573else $as_nop
8574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h.  */
8576int i;
8577_ACEOF
8578if ac_fn_c_try_compile "$LINENO"
8579then :
8580  xorg_cv_cc_flag_unknown_warning_option=yes
8581else $as_nop
8582  xorg_cv_cc_flag_unknown_warning_option=no
8583fi
8584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8585fi
8586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8587printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8588	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8589	CFLAGS="$xorg_testset_save_CFLAGS"
8590fi
8591
8592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8593	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595	fi
8596	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8598printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8599if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8600then :
8601  printf %s "(cached) " >&6
8602else $as_nop
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605int i;
8606_ACEOF
8607if ac_fn_c_try_compile "$LINENO"
8608then :
8609  xorg_cv_cc_flag_unused_command_line_argument=yes
8610else $as_nop
8611  xorg_cv_cc_flag_unused_command_line_argument=no
8612fi
8613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8614fi
8615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618	CFLAGS="$xorg_testset_save_CFLAGS"
8619fi
8620
8621found="no"
8622
8623	if test $found = "no" ; then
8624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626		fi
8627
8628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630		fi
8631
8632		CFLAGS="$CFLAGS -Werror=address"
8633
8634		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8635printf %s "checking if $CC supports -Werror=address... " >&6; }
8636		cacheid=xorg_cv_cc_flag__Werror_address
8637		if eval test \${$cacheid+y}
8638then :
8639  printf %s "(cached) " >&6
8640else $as_nop
8641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642/* end confdefs.h.  */
8643int i;
8644int
8645main (void)
8646{
8647
8648  ;
8649  return 0;
8650}
8651_ACEOF
8652if ac_fn_c_try_link "$LINENO"
8653then :
8654  eval $cacheid=yes
8655else $as_nop
8656  eval $cacheid=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.beam \
8659    conftest$ac_exeext conftest.$ac_ext
8660fi
8661
8662
8663		CFLAGS="$xorg_testset_save_CFLAGS"
8664
8665		eval supported=\$$cacheid
8666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8667printf "%s\n" "$supported" >&6; }
8668		if test "$supported" = "yes" ; then
8669			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8670			found="yes"
8671		fi
8672	fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688xorg_testset_save_CFLAGS="$CFLAGS"
8689
8690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8693printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8694if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8695then :
8696  printf %s "(cached) " >&6
8697else $as_nop
8698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700int i;
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"
8703then :
8704  xorg_cv_cc_flag_unknown_warning_option=yes
8705else $as_nop
8706  xorg_cv_cc_flag_unknown_warning_option=no
8707fi
8708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8709fi
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8711printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8712	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8713	CFLAGS="$xorg_testset_save_CFLAGS"
8714fi
8715
8716if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8717	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719	fi
8720	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8722printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8723if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8724then :
8725  printf %s "(cached) " >&6
8726else $as_nop
8727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h.  */
8729int i;
8730_ACEOF
8731if ac_fn_c_try_compile "$LINENO"
8732then :
8733  xorg_cv_cc_flag_unused_command_line_argument=yes
8734else $as_nop
8735  xorg_cv_cc_flag_unused_command_line_argument=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8738fi
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8742	CFLAGS="$xorg_testset_save_CFLAGS"
8743fi
8744
8745found="no"
8746
8747	if test $found = "no" ; then
8748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8750		fi
8751
8752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754		fi
8755
8756		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8757
8758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8759printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8760		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8761		if eval test \${$cacheid+y}
8762then :
8763  printf %s "(cached) " >&6
8764else $as_nop
8765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766/* end confdefs.h.  */
8767int i;
8768int
8769main (void)
8770{
8771
8772  ;
8773  return 0;
8774}
8775_ACEOF
8776if ac_fn_c_try_link "$LINENO"
8777then :
8778  eval $cacheid=yes
8779else $as_nop
8780  eval $cacheid=no
8781fi
8782rm -f core conftest.err conftest.$ac_objext conftest.beam \
8783    conftest$ac_exeext conftest.$ac_ext
8784fi
8785
8786
8787		CFLAGS="$xorg_testset_save_CFLAGS"
8788
8789		eval supported=\$$cacheid
8790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8791printf "%s\n" "$supported" >&6; }
8792		if test "$supported" = "yes" ; then
8793			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8794			found="yes"
8795		fi
8796	fi
8797
8798	if test $found = "no" ; then
8799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801		fi
8802
8803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805		fi
8806
8807		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8808
8809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8810printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8811		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8812		if eval test \${$cacheid+y}
8813then :
8814  printf %s "(cached) " >&6
8815else $as_nop
8816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818int i;
8819int
8820main (void)
8821{
8822
8823  ;
8824  return 0;
8825}
8826_ACEOF
8827if ac_fn_c_try_link "$LINENO"
8828then :
8829  eval $cacheid=yes
8830else $as_nop
8831  eval $cacheid=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.beam \
8834    conftest$ac_exeext conftest.$ac_ext
8835fi
8836
8837
8838		CFLAGS="$xorg_testset_save_CFLAGS"
8839
8840		eval supported=\$$cacheid
8841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8842printf "%s\n" "$supported" >&6; }
8843		if test "$supported" = "yes" ; then
8844			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8845			found="yes"
8846		fi
8847	fi
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863xorg_testset_save_CFLAGS="$CFLAGS"
8864
8865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8869if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8870then :
8871  printf %s "(cached) " >&6
8872else $as_nop
8873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8874/* end confdefs.h.  */
8875int i;
8876_ACEOF
8877if ac_fn_c_try_compile "$LINENO"
8878then :
8879  xorg_cv_cc_flag_unknown_warning_option=yes
8880else $as_nop
8881  xorg_cv_cc_flag_unknown_warning_option=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8884fi
8885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894	fi
8895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8899then :
8900  printf %s "(cached) " >&6
8901else $as_nop
8902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904int i;
8905_ACEOF
8906if ac_fn_c_try_compile "$LINENO"
8907then :
8908  xorg_cv_cc_flag_unused_command_line_argument=yes
8909else $as_nop
8910  xorg_cv_cc_flag_unused_command_line_argument=no
8911fi
8912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8913fi
8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917	CFLAGS="$xorg_testset_save_CFLAGS"
8918fi
8919
8920found="no"
8921
8922	if test $found = "no" ; then
8923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925		fi
8926
8927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929		fi
8930
8931		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8932
8933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8934printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8935		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8936		if eval test \${$cacheid+y}
8937then :
8938  printf %s "(cached) " >&6
8939else $as_nop
8940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943int
8944main (void)
8945{
8946
8947  ;
8948  return 0;
8949}
8950_ACEOF
8951if ac_fn_c_try_link "$LINENO"
8952then :
8953  eval $cacheid=yes
8954else $as_nop
8955  eval $cacheid=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.beam \
8958    conftest$ac_exeext conftest.$ac_ext
8959fi
8960
8961
8962		CFLAGS="$xorg_testset_save_CFLAGS"
8963
8964		eval supported=\$$cacheid
8965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8966printf "%s\n" "$supported" >&6; }
8967		if test "$supported" = "yes" ; then
8968			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8969			found="yes"
8970		fi
8971	fi
8972
8973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8974else
8975{ 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
8976printf "%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;}
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990xorg_testset_save_CFLAGS="$CFLAGS"
8991
8992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8996if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8997then :
8998  printf %s "(cached) " >&6
8999else $as_nop
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"
9005then :
9006  xorg_cv_cc_flag_unknown_warning_option=yes
9007else $as_nop
9008  xorg_cv_cc_flag_unknown_warning_option=no
9009fi
9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9011fi
9012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9015	CFLAGS="$xorg_testset_save_CFLAGS"
9016fi
9017
9018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021	fi
9022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9025if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9026then :
9027  printf %s "(cached) " >&6
9028else $as_nop
9029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030/* end confdefs.h.  */
9031int i;
9032_ACEOF
9033if ac_fn_c_try_compile "$LINENO"
9034then :
9035  xorg_cv_cc_flag_unused_command_line_argument=yes
9036else $as_nop
9037  xorg_cv_cc_flag_unused_command_line_argument=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9040fi
9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044	CFLAGS="$xorg_testset_save_CFLAGS"
9045fi
9046
9047found="no"
9048
9049	if test $found = "no" ; then
9050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052		fi
9053
9054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056		fi
9057
9058		CFLAGS="$CFLAGS -Wimplicit"
9059
9060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9061printf %s "checking if $CC supports -Wimplicit... " >&6; }
9062		cacheid=xorg_cv_cc_flag__Wimplicit
9063		if eval test \${$cacheid+y}
9064then :
9065  printf %s "(cached) " >&6
9066else $as_nop
9067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069int i;
9070int
9071main (void)
9072{
9073
9074  ;
9075  return 0;
9076}
9077_ACEOF
9078if ac_fn_c_try_link "$LINENO"
9079then :
9080  eval $cacheid=yes
9081else $as_nop
9082  eval $cacheid=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.beam \
9085    conftest$ac_exeext conftest.$ac_ext
9086fi
9087
9088
9089		CFLAGS="$xorg_testset_save_CFLAGS"
9090
9091		eval supported=\$$cacheid
9092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9093printf "%s\n" "$supported" >&6; }
9094		if test "$supported" = "yes" ; then
9095			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9096			found="yes"
9097		fi
9098	fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114xorg_testset_save_CFLAGS="$CFLAGS"
9115
9116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9120if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9121then :
9122  printf %s "(cached) " >&6
9123else $as_nop
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"
9129then :
9130  xorg_cv_cc_flag_unknown_warning_option=yes
9131else $as_nop
9132  xorg_cv_cc_flag_unknown_warning_option=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9135fi
9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9139	CFLAGS="$xorg_testset_save_CFLAGS"
9140fi
9141
9142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145	fi
9146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9149if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9150then :
9151  printf %s "(cached) " >&6
9152else $as_nop
9153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154/* end confdefs.h.  */
9155int i;
9156_ACEOF
9157if ac_fn_c_try_compile "$LINENO"
9158then :
9159  xorg_cv_cc_flag_unused_command_line_argument=yes
9160else $as_nop
9161  xorg_cv_cc_flag_unused_command_line_argument=no
9162fi
9163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9164fi
9165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9168	CFLAGS="$xorg_testset_save_CFLAGS"
9169fi
9170
9171found="no"
9172
9173	if test $found = "no" ; then
9174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176		fi
9177
9178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180		fi
9181
9182		CFLAGS="$CFLAGS -Wnonnull"
9183
9184		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9185printf %s "checking if $CC supports -Wnonnull... " >&6; }
9186		cacheid=xorg_cv_cc_flag__Wnonnull
9187		if eval test \${$cacheid+y}
9188then :
9189  printf %s "(cached) " >&6
9190else $as_nop
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193int i;
9194int
9195main (void)
9196{
9197
9198  ;
9199  return 0;
9200}
9201_ACEOF
9202if ac_fn_c_try_link "$LINENO"
9203then :
9204  eval $cacheid=yes
9205else $as_nop
9206  eval $cacheid=no
9207fi
9208rm -f core conftest.err conftest.$ac_objext conftest.beam \
9209    conftest$ac_exeext conftest.$ac_ext
9210fi
9211
9212
9213		CFLAGS="$xorg_testset_save_CFLAGS"
9214
9215		eval supported=\$$cacheid
9216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9217printf "%s\n" "$supported" >&6; }
9218		if test "$supported" = "yes" ; then
9219			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9220			found="yes"
9221		fi
9222	fi
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238xorg_testset_save_CFLAGS="$CFLAGS"
9239
9240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9244if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9245then :
9246  printf %s "(cached) " >&6
9247else $as_nop
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"
9253then :
9254  xorg_cv_cc_flag_unknown_warning_option=yes
9255else $as_nop
9256  xorg_cv_cc_flag_unknown_warning_option=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9259fi
9260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9262	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9263	CFLAGS="$xorg_testset_save_CFLAGS"
9264fi
9265
9266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9267	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269	fi
9270	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9273if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9274then :
9275  printf %s "(cached) " >&6
9276else $as_nop
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280_ACEOF
9281if ac_fn_c_try_compile "$LINENO"
9282then :
9283  xorg_cv_cc_flag_unused_command_line_argument=yes
9284else $as_nop
9285  xorg_cv_cc_flag_unused_command_line_argument=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288fi
9289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295found="no"
9296
9297	if test $found = "no" ; then
9298		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9300		fi
9301
9302		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304		fi
9305
9306		CFLAGS="$CFLAGS -Winit-self"
9307
9308		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9309printf %s "checking if $CC supports -Winit-self... " >&6; }
9310		cacheid=xorg_cv_cc_flag__Winit_self
9311		if eval test \${$cacheid+y}
9312then :
9313  printf %s "(cached) " >&6
9314else $as_nop
9315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317int i;
9318int
9319main (void)
9320{
9321
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326if ac_fn_c_try_link "$LINENO"
9327then :
9328  eval $cacheid=yes
9329else $as_nop
9330  eval $cacheid=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext conftest.beam \
9333    conftest$ac_exeext conftest.$ac_ext
9334fi
9335
9336
9337		CFLAGS="$xorg_testset_save_CFLAGS"
9338
9339		eval supported=\$$cacheid
9340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9341printf "%s\n" "$supported" >&6; }
9342		if test "$supported" = "yes" ; then
9343			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9344			found="yes"
9345		fi
9346	fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362xorg_testset_save_CFLAGS="$CFLAGS"
9363
9364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9368if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9369then :
9370  printf %s "(cached) " >&6
9371else $as_nop
9372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h.  */
9374int i;
9375_ACEOF
9376if ac_fn_c_try_compile "$LINENO"
9377then :
9378  xorg_cv_cc_flag_unknown_warning_option=yes
9379else $as_nop
9380  xorg_cv_cc_flag_unknown_warning_option=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9383fi
9384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9387	CFLAGS="$xorg_testset_save_CFLAGS"
9388fi
9389
9390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393	fi
9394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9397if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9398then :
9399  printf %s "(cached) " >&6
9400else $as_nop
9401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h.  */
9403int i;
9404_ACEOF
9405if ac_fn_c_try_compile "$LINENO"
9406then :
9407  xorg_cv_cc_flag_unused_command_line_argument=yes
9408else $as_nop
9409  xorg_cv_cc_flag_unused_command_line_argument=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9412fi
9413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9416	CFLAGS="$xorg_testset_save_CFLAGS"
9417fi
9418
9419found="no"
9420
9421	if test $found = "no" ; then
9422		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9424		fi
9425
9426		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428		fi
9429
9430		CFLAGS="$CFLAGS -Wmain"
9431
9432		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9433printf %s "checking if $CC supports -Wmain... " >&6; }
9434		cacheid=xorg_cv_cc_flag__Wmain
9435		if eval test \${$cacheid+y}
9436then :
9437  printf %s "(cached) " >&6
9438else $as_nop
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442int
9443main (void)
9444{
9445
9446  ;
9447  return 0;
9448}
9449_ACEOF
9450if ac_fn_c_try_link "$LINENO"
9451then :
9452  eval $cacheid=yes
9453else $as_nop
9454  eval $cacheid=no
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.beam \
9457    conftest$ac_exeext conftest.$ac_ext
9458fi
9459
9460
9461		CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463		eval supported=\$$cacheid
9464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465printf "%s\n" "$supported" >&6; }
9466		if test "$supported" = "yes" ; then
9467			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9468			found="yes"
9469		fi
9470	fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493then :
9494  printf %s "(cached) " >&6
9495else $as_nop
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"
9501then :
9502  xorg_cv_cc_flag_unknown_warning_option=yes
9503else $as_nop
9504  xorg_cv_cc_flag_unknown_warning_option=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9507fi
9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511	CFLAGS="$xorg_testset_save_CFLAGS"
9512fi
9513
9514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517	fi
9518	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9522then :
9523  printf %s "(cached) " >&6
9524else $as_nop
9525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h.  */
9527int i;
9528_ACEOF
9529if ac_fn_c_try_compile "$LINENO"
9530then :
9531  xorg_cv_cc_flag_unused_command_line_argument=yes
9532else $as_nop
9533  xorg_cv_cc_flag_unused_command_line_argument=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9536fi
9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9539	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9540	CFLAGS="$xorg_testset_save_CFLAGS"
9541fi
9542
9543found="no"
9544
9545	if test $found = "no" ; then
9546		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9547			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548		fi
9549
9550		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9551			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552		fi
9553
9554		CFLAGS="$CFLAGS -Wmissing-braces"
9555
9556		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9557printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9558		cacheid=xorg_cv_cc_flag__Wmissing_braces
9559		if eval test \${$cacheid+y}
9560then :
9561  printf %s "(cached) " >&6
9562else $as_nop
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566int
9567main (void)
9568{
9569
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574if ac_fn_c_try_link "$LINENO"
9575then :
9576  eval $cacheid=yes
9577else $as_nop
9578  eval $cacheid=no
9579fi
9580rm -f core conftest.err conftest.$ac_objext conftest.beam \
9581    conftest$ac_exeext conftest.$ac_ext
9582fi
9583
9584
9585		CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587		eval supported=\$$cacheid
9588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589printf "%s\n" "$supported" >&6; }
9590		if test "$supported" = "yes" ; then
9591			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9592			found="yes"
9593		fi
9594	fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617then :
9618  printf %s "(cached) " >&6
9619else $as_nop
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"
9625then :
9626  xorg_cv_cc_flag_unknown_warning_option=yes
9627else $as_nop
9628  xorg_cv_cc_flag_unknown_warning_option=no
9629fi
9630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9631fi
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9634	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9635	CFLAGS="$xorg_testset_save_CFLAGS"
9636fi
9637
9638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9639	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641	fi
9642	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9645if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9646then :
9647  printf %s "(cached) " >&6
9648else $as_nop
9649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650/* end confdefs.h.  */
9651int i;
9652_ACEOF
9653if ac_fn_c_try_compile "$LINENO"
9654then :
9655  xorg_cv_cc_flag_unused_command_line_argument=yes
9656else $as_nop
9657  xorg_cv_cc_flag_unused_command_line_argument=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9660fi
9661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9664	CFLAGS="$xorg_testset_save_CFLAGS"
9665fi
9666
9667found="no"
9668
9669	if test $found = "no" ; then
9670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9672		fi
9673
9674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676		fi
9677
9678		CFLAGS="$CFLAGS -Wsequence-point"
9679
9680		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9681printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9682		cacheid=xorg_cv_cc_flag__Wsequence_point
9683		if eval test \${$cacheid+y}
9684then :
9685  printf %s "(cached) " >&6
9686else $as_nop
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690int
9691main (void)
9692{
9693
9694  ;
9695  return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"
9699then :
9700  eval $cacheid=yes
9701else $as_nop
9702  eval $cacheid=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext conftest.beam \
9705    conftest$ac_exeext conftest.$ac_ext
9706fi
9707
9708
9709		CFLAGS="$xorg_testset_save_CFLAGS"
9710
9711		eval supported=\$$cacheid
9712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9713printf "%s\n" "$supported" >&6; }
9714		if test "$supported" = "yes" ; then
9715			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9716			found="yes"
9717		fi
9718	fi
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734xorg_testset_save_CFLAGS="$CFLAGS"
9735
9736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9740if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9741then :
9742  printf %s "(cached) " >&6
9743else $as_nop
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747_ACEOF
9748if ac_fn_c_try_compile "$LINENO"
9749then :
9750  xorg_cv_cc_flag_unknown_warning_option=yes
9751else $as_nop
9752  xorg_cv_cc_flag_unknown_warning_option=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9755fi
9756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765	fi
9766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9769if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9770then :
9771  printf %s "(cached) " >&6
9772else $as_nop
9773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h.  */
9775int i;
9776_ACEOF
9777if ac_fn_c_try_compile "$LINENO"
9778then :
9779  xorg_cv_cc_flag_unused_command_line_argument=yes
9780else $as_nop
9781  xorg_cv_cc_flag_unused_command_line_argument=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784fi
9785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788	CFLAGS="$xorg_testset_save_CFLAGS"
9789fi
9790
9791found="no"
9792
9793	if test $found = "no" ; then
9794		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796		fi
9797
9798		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800		fi
9801
9802		CFLAGS="$CFLAGS -Wreturn-type"
9803
9804		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9805printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9806		cacheid=xorg_cv_cc_flag__Wreturn_type
9807		if eval test \${$cacheid+y}
9808then :
9809  printf %s "(cached) " >&6
9810else $as_nop
9811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813int i;
9814int
9815main (void)
9816{
9817
9818  ;
9819  return 0;
9820}
9821_ACEOF
9822if ac_fn_c_try_link "$LINENO"
9823then :
9824  eval $cacheid=yes
9825else $as_nop
9826  eval $cacheid=no
9827fi
9828rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829    conftest$ac_exeext conftest.$ac_ext
9830fi
9831
9832
9833		CFLAGS="$xorg_testset_save_CFLAGS"
9834
9835		eval supported=\$$cacheid
9836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9837printf "%s\n" "$supported" >&6; }
9838		if test "$supported" = "yes" ; then
9839			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9840			found="yes"
9841		fi
9842	fi
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858xorg_testset_save_CFLAGS="$CFLAGS"
9859
9860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9864if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9865then :
9866  printf %s "(cached) " >&6
9867else $as_nop
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"
9873then :
9874  xorg_cv_cc_flag_unknown_warning_option=yes
9875else $as_nop
9876  xorg_cv_cc_flag_unknown_warning_option=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	fi
9890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9894then :
9895  printf %s "(cached) " >&6
9896else $as_nop
9897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898/* end confdefs.h.  */
9899int i;
9900_ACEOF
9901if ac_fn_c_try_compile "$LINENO"
9902then :
9903  xorg_cv_cc_flag_unused_command_line_argument=yes
9904else $as_nop
9905  xorg_cv_cc_flag_unused_command_line_argument=no
9906fi
9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9908fi
9909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9912	CFLAGS="$xorg_testset_save_CFLAGS"
9913fi
9914
9915found="no"
9916
9917	if test $found = "no" ; then
9918		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9920		fi
9921
9922		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924		fi
9925
9926		CFLAGS="$CFLAGS -Wtrigraphs"
9927
9928		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9929printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9930		cacheid=xorg_cv_cc_flag__Wtrigraphs
9931		if eval test \${$cacheid+y}
9932then :
9933  printf %s "(cached) " >&6
9934else $as_nop
9935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936/* end confdefs.h.  */
9937int i;
9938int
9939main (void)
9940{
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946if ac_fn_c_try_link "$LINENO"
9947then :
9948  eval $cacheid=yes
9949else $as_nop
9950  eval $cacheid=no
9951fi
9952rm -f core conftest.err conftest.$ac_objext conftest.beam \
9953    conftest$ac_exeext conftest.$ac_ext
9954fi
9955
9956
9957		CFLAGS="$xorg_testset_save_CFLAGS"
9958
9959		eval supported=\$$cacheid
9960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9961printf "%s\n" "$supported" >&6; }
9962		if test "$supported" = "yes" ; then
9963			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9964			found="yes"
9965		fi
9966	fi
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982xorg_testset_save_CFLAGS="$CFLAGS"
9983
9984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9988if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9989then :
9990  printf %s "(cached) " >&6
9991else $as_nop
9992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h.  */
9994int i;
9995_ACEOF
9996if ac_fn_c_try_compile "$LINENO"
9997then :
9998  xorg_cv_cc_flag_unknown_warning_option=yes
9999else $as_nop
10000  xorg_cv_cc_flag_unknown_warning_option=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10003fi
10004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10006	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10007	CFLAGS="$xorg_testset_save_CFLAGS"
10008fi
10009
10010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10011	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013	fi
10014	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10017if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10018then :
10019  printf %s "(cached) " >&6
10020else $as_nop
10021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022/* end confdefs.h.  */
10023int i;
10024_ACEOF
10025if ac_fn_c_try_compile "$LINENO"
10026then :
10027  xorg_cv_cc_flag_unused_command_line_argument=yes
10028else $as_nop
10029  xorg_cv_cc_flag_unused_command_line_argument=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10032fi
10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10035	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10036	CFLAGS="$xorg_testset_save_CFLAGS"
10037fi
10038
10039found="no"
10040
10041	if test $found = "no" ; then
10042		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10043			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044		fi
10045
10046		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10047			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048		fi
10049
10050		CFLAGS="$CFLAGS -Warray-bounds"
10051
10052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10053printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10054		cacheid=xorg_cv_cc_flag__Warray_bounds
10055		if eval test \${$cacheid+y}
10056then :
10057  printf %s "(cached) " >&6
10058else $as_nop
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062int
10063main (void)
10064{
10065
10066  ;
10067  return 0;
10068}
10069_ACEOF
10070if ac_fn_c_try_link "$LINENO"
10071then :
10072  eval $cacheid=yes
10073else $as_nop
10074  eval $cacheid=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.beam \
10077    conftest$ac_exeext conftest.$ac_ext
10078fi
10079
10080
10081		CFLAGS="$xorg_testset_save_CFLAGS"
10082
10083		eval supported=\$$cacheid
10084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10085printf "%s\n" "$supported" >&6; }
10086		if test "$supported" = "yes" ; then
10087			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10088			found="yes"
10089		fi
10090	fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106xorg_testset_save_CFLAGS="$CFLAGS"
10107
10108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10109	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10112if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10113then :
10114  printf %s "(cached) " >&6
10115else $as_nop
10116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117/* end confdefs.h.  */
10118int i;
10119_ACEOF
10120if ac_fn_c_try_compile "$LINENO"
10121then :
10122  xorg_cv_cc_flag_unknown_warning_option=yes
10123else $as_nop
10124  xorg_cv_cc_flag_unknown_warning_option=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10127fi
10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	fi
10138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10142then :
10143  printf %s "(cached) " >&6
10144else $as_nop
10145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146/* end confdefs.h.  */
10147int i;
10148_ACEOF
10149if ac_fn_c_try_compile "$LINENO"
10150then :
10151  xorg_cv_cc_flag_unused_command_line_argument=yes
10152else $as_nop
10153  xorg_cv_cc_flag_unused_command_line_argument=no
10154fi
10155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10156fi
10157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160	CFLAGS="$xorg_testset_save_CFLAGS"
10161fi
10162
10163found="no"
10164
10165	if test $found = "no" ; then
10166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168		fi
10169
10170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172		fi
10173
10174		CFLAGS="$CFLAGS -Wwrite-strings"
10175
10176		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10177printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10178		cacheid=xorg_cv_cc_flag__Wwrite_strings
10179		if eval test \${$cacheid+y}
10180then :
10181  printf %s "(cached) " >&6
10182else $as_nop
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185int i;
10186int
10187main (void)
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_c_try_link "$LINENO"
10195then :
10196  eval $cacheid=yes
10197else $as_nop
10198  eval $cacheid=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201    conftest$ac_exeext conftest.$ac_ext
10202fi
10203
10204
10205		CFLAGS="$xorg_testset_save_CFLAGS"
10206
10207		eval supported=\$$cacheid
10208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10209printf "%s\n" "$supported" >&6; }
10210		if test "$supported" = "yes" ; then
10211			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10212			found="yes"
10213		fi
10214	fi
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230xorg_testset_save_CFLAGS="$CFLAGS"
10231
10232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10237then :
10238  printf %s "(cached) " >&6
10239else $as_nop
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243_ACEOF
10244if ac_fn_c_try_compile "$LINENO"
10245then :
10246  xorg_cv_cc_flag_unknown_warning_option=yes
10247else $as_nop
10248  xorg_cv_cc_flag_unknown_warning_option=no
10249fi
10250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10251fi
10252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10255	CFLAGS="$xorg_testset_save_CFLAGS"
10256fi
10257
10258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261	fi
10262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10265if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10266then :
10267  printf %s "(cached) " >&6
10268else $as_nop
10269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270/* end confdefs.h.  */
10271int i;
10272_ACEOF
10273if ac_fn_c_try_compile "$LINENO"
10274then :
10275  xorg_cv_cc_flag_unused_command_line_argument=yes
10276else $as_nop
10277  xorg_cv_cc_flag_unused_command_line_argument=no
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10280fi
10281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10284	CFLAGS="$xorg_testset_save_CFLAGS"
10285fi
10286
10287found="no"
10288
10289	if test $found = "no" ; then
10290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10292		fi
10293
10294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296		fi
10297
10298		CFLAGS="$CFLAGS -Waddress"
10299
10300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10301printf %s "checking if $CC supports -Waddress... " >&6; }
10302		cacheid=xorg_cv_cc_flag__Waddress
10303		if eval test \${$cacheid+y}
10304then :
10305  printf %s "(cached) " >&6
10306else $as_nop
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310int
10311main (void)
10312{
10313
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318if ac_fn_c_try_link "$LINENO"
10319then :
10320  eval $cacheid=yes
10321else $as_nop
10322  eval $cacheid=no
10323fi
10324rm -f core conftest.err conftest.$ac_objext conftest.beam \
10325    conftest$ac_exeext conftest.$ac_ext
10326fi
10327
10328
10329		CFLAGS="$xorg_testset_save_CFLAGS"
10330
10331		eval supported=\$$cacheid
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10333printf "%s\n" "$supported" >&6; }
10334		if test "$supported" = "yes" ; then
10335			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10336			found="yes"
10337		fi
10338	fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354xorg_testset_save_CFLAGS="$CFLAGS"
10355
10356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10360if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10361then :
10362  printf %s "(cached) " >&6
10363else $as_nop
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"
10369then :
10370  xorg_cv_cc_flag_unknown_warning_option=yes
10371else $as_nop
10372  xorg_cv_cc_flag_unknown_warning_option=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10375fi
10376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379	CFLAGS="$xorg_testset_save_CFLAGS"
10380fi
10381
10382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385	fi
10386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390then :
10391  printf %s "(cached) " >&6
10392else $as_nop
10393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394/* end confdefs.h.  */
10395int i;
10396_ACEOF
10397if ac_fn_c_try_compile "$LINENO"
10398then :
10399  xorg_cv_cc_flag_unused_command_line_argument=yes
10400else $as_nop
10401  xorg_cv_cc_flag_unused_command_line_argument=no
10402fi
10403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10404fi
10405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10407	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10408	CFLAGS="$xorg_testset_save_CFLAGS"
10409fi
10410
10411found="no"
10412
10413	if test $found = "no" ; then
10414		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10415			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416		fi
10417
10418		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10419			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420		fi
10421
10422		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10423
10424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10425printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10426		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10427		if eval test \${$cacheid+y}
10428then :
10429  printf %s "(cached) " >&6
10430else $as_nop
10431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432/* end confdefs.h.  */
10433int i;
10434int
10435main (void)
10436{
10437
10438  ;
10439  return 0;
10440}
10441_ACEOF
10442if ac_fn_c_try_link "$LINENO"
10443then :
10444  eval $cacheid=yes
10445else $as_nop
10446  eval $cacheid=no
10447fi
10448rm -f core conftest.err conftest.$ac_objext conftest.beam \
10449    conftest$ac_exeext conftest.$ac_ext
10450fi
10451
10452
10453		CFLAGS="$xorg_testset_save_CFLAGS"
10454
10455		eval supported=\$$cacheid
10456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10457printf "%s\n" "$supported" >&6; }
10458		if test "$supported" = "yes" ; then
10459			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10460			found="yes"
10461		fi
10462	fi
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478xorg_testset_save_CFLAGS="$CFLAGS"
10479
10480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10484if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10485then :
10486  printf %s "(cached) " >&6
10487else $as_nop
10488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489/* end confdefs.h.  */
10490int i;
10491_ACEOF
10492if ac_fn_c_try_compile "$LINENO"
10493then :
10494  xorg_cv_cc_flag_unknown_warning_option=yes
10495else $as_nop
10496  xorg_cv_cc_flag_unknown_warning_option=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10499fi
10500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10503	CFLAGS="$xorg_testset_save_CFLAGS"
10504fi
10505
10506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509	fi
10510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10513if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10514then :
10515  printf %s "(cached) " >&6
10516else $as_nop
10517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519int i;
10520_ACEOF
10521if ac_fn_c_try_compile "$LINENO"
10522then :
10523  xorg_cv_cc_flag_unused_command_line_argument=yes
10524else $as_nop
10525  xorg_cv_cc_flag_unused_command_line_argument=no
10526fi
10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528fi
10529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10531	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10532	CFLAGS="$xorg_testset_save_CFLAGS"
10533fi
10534
10535found="no"
10536
10537	if test $found = "no" ; then
10538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10540		fi
10541
10542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544		fi
10545
10546		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10547
10548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10549printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10550		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10551		if eval test \${$cacheid+y}
10552then :
10553  printf %s "(cached) " >&6
10554else $as_nop
10555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h.  */
10557int i;
10558int
10559main (void)
10560{
10561
10562  ;
10563  return 0;
10564}
10565_ACEOF
10566if ac_fn_c_try_link "$LINENO"
10567then :
10568  eval $cacheid=yes
10569else $as_nop
10570  eval $cacheid=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext conftest.beam \
10573    conftest$ac_exeext conftest.$ac_ext
10574fi
10575
10576
10577		CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579		eval supported=\$$cacheid
10580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581printf "%s\n" "$supported" >&6; }
10582		if test "$supported" = "yes" ; then
10583			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10584			found="yes"
10585		fi
10586	fi
10587
10588
10589fi
10590
10591
10592
10593
10594
10595
10596
10597		CWARNFLAGS="$BASE_CFLAGS"
10598		if  test "x$GCC" = xyes ; then
10599		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10600		fi
10601
10602
10603
10604
10605
10606
10607
10608
10609# Check whether --enable-strict-compilation was given.
10610if test ${enable_strict_compilation+y}
10611then :
10612  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10613else $as_nop
10614  STRICT_COMPILE=no
10615fi
10616
10617
10618
10619
10620
10621
10622STRICT_CFLAGS=""
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636xorg_testset_save_CFLAGS="$CFLAGS"
10637
10638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10643then :
10644  printf %s "(cached) " >&6
10645else $as_nop
10646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unknown_warning_option=yes
10653else $as_nop
10654  xorg_cv_cc_flag_unknown_warning_option=no
10655fi
10656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10657fi
10658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10661	CFLAGS="$xorg_testset_save_CFLAGS"
10662fi
10663
10664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10667	fi
10668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10671if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10672then :
10673  printf %s "(cached) " >&6
10674else $as_nop
10675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676/* end confdefs.h.  */
10677int i;
10678_ACEOF
10679if ac_fn_c_try_compile "$LINENO"
10680then :
10681  xorg_cv_cc_flag_unused_command_line_argument=yes
10682else $as_nop
10683  xorg_cv_cc_flag_unused_command_line_argument=no
10684fi
10685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10686fi
10687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10690	CFLAGS="$xorg_testset_save_CFLAGS"
10691fi
10692
10693found="no"
10694
10695	if test $found = "no" ; then
10696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698		fi
10699
10700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702		fi
10703
10704		CFLAGS="$CFLAGS -pedantic"
10705
10706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10707printf %s "checking if $CC supports -pedantic... " >&6; }
10708		cacheid=xorg_cv_cc_flag__pedantic
10709		if eval test \${$cacheid+y}
10710then :
10711  printf %s "(cached) " >&6
10712else $as_nop
10713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714/* end confdefs.h.  */
10715int i;
10716int
10717main (void)
10718{
10719
10720  ;
10721  return 0;
10722}
10723_ACEOF
10724if ac_fn_c_try_link "$LINENO"
10725then :
10726  eval $cacheid=yes
10727else $as_nop
10728  eval $cacheid=no
10729fi
10730rm -f core conftest.err conftest.$ac_objext conftest.beam \
10731    conftest$ac_exeext conftest.$ac_ext
10732fi
10733
10734
10735		CFLAGS="$xorg_testset_save_CFLAGS"
10736
10737		eval supported=\$$cacheid
10738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10739printf "%s\n" "$supported" >&6; }
10740		if test "$supported" = "yes" ; then
10741			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10742			found="yes"
10743		fi
10744	fi
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760xorg_testset_save_CFLAGS="$CFLAGS"
10761
10762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10766if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10767then :
10768  printf %s "(cached) " >&6
10769else $as_nop
10770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h.  */
10772int i;
10773_ACEOF
10774if ac_fn_c_try_compile "$LINENO"
10775then :
10776  xorg_cv_cc_flag_unknown_warning_option=yes
10777else $as_nop
10778  xorg_cv_cc_flag_unknown_warning_option=no
10779fi
10780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10781fi
10782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10785	CFLAGS="$xorg_testset_save_CFLAGS"
10786fi
10787
10788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10791	fi
10792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10795if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10796then :
10797  printf %s "(cached) " >&6
10798else $as_nop
10799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800/* end confdefs.h.  */
10801int i;
10802_ACEOF
10803if ac_fn_c_try_compile "$LINENO"
10804then :
10805  xorg_cv_cc_flag_unused_command_line_argument=yes
10806else $as_nop
10807  xorg_cv_cc_flag_unused_command_line_argument=no
10808fi
10809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10810fi
10811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10814	CFLAGS="$xorg_testset_save_CFLAGS"
10815fi
10816
10817found="no"
10818
10819	if test $found = "no" ; then
10820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10822		fi
10823
10824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10826		fi
10827
10828		CFLAGS="$CFLAGS -Werror"
10829
10830		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10831printf %s "checking if $CC supports -Werror... " >&6; }
10832		cacheid=xorg_cv_cc_flag__Werror
10833		if eval test \${$cacheid+y}
10834then :
10835  printf %s "(cached) " >&6
10836else $as_nop
10837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838/* end confdefs.h.  */
10839int i;
10840int
10841main (void)
10842{
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_link "$LINENO"
10849then :
10850  eval $cacheid=yes
10851else $as_nop
10852  eval $cacheid=no
10853fi
10854rm -f core conftest.err conftest.$ac_objext conftest.beam \
10855    conftest$ac_exeext conftest.$ac_ext
10856fi
10857
10858
10859		CFLAGS="$xorg_testset_save_CFLAGS"
10860
10861		eval supported=\$$cacheid
10862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10863printf "%s\n" "$supported" >&6; }
10864		if test "$supported" = "yes" ; then
10865			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10866			found="yes"
10867		fi
10868	fi
10869
10870	if test $found = "no" ; then
10871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873		fi
10874
10875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10877		fi
10878
10879		CFLAGS="$CFLAGS -errwarn"
10880
10881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10882printf %s "checking if $CC supports -errwarn... " >&6; }
10883		cacheid=xorg_cv_cc_flag__errwarn
10884		if eval test \${$cacheid+y}
10885then :
10886  printf %s "(cached) " >&6
10887else $as_nop
10888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889/* end confdefs.h.  */
10890int i;
10891int
10892main (void)
10893{
10894
10895  ;
10896  return 0;
10897}
10898_ACEOF
10899if ac_fn_c_try_link "$LINENO"
10900then :
10901  eval $cacheid=yes
10902else $as_nop
10903  eval $cacheid=no
10904fi
10905rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906    conftest$ac_exeext conftest.$ac_ext
10907fi
10908
10909
10910		CFLAGS="$xorg_testset_save_CFLAGS"
10911
10912		eval supported=\$$cacheid
10913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10914printf "%s\n" "$supported" >&6; }
10915		if test "$supported" = "yes" ; then
10916			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10917			found="yes"
10918		fi
10919	fi
10920
10921
10922
10923# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10924# activate it with -Werror, so we add it here explicitly.
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938xorg_testset_save_CFLAGS="$CFLAGS"
10939
10940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10944if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10945then :
10946  printf %s "(cached) " >&6
10947else $as_nop
10948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950int i;
10951_ACEOF
10952if ac_fn_c_try_compile "$LINENO"
10953then :
10954  xorg_cv_cc_flag_unknown_warning_option=yes
10955else $as_nop
10956  xorg_cv_cc_flag_unknown_warning_option=no
10957fi
10958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10959fi
10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10963	CFLAGS="$xorg_testset_save_CFLAGS"
10964fi
10965
10966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10969	fi
10970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10974then :
10975  printf %s "(cached) " >&6
10976else $as_nop
10977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h.  */
10979int i;
10980_ACEOF
10981if ac_fn_c_try_compile "$LINENO"
10982then :
10983  xorg_cv_cc_flag_unused_command_line_argument=yes
10984else $as_nop
10985  xorg_cv_cc_flag_unused_command_line_argument=no
10986fi
10987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10988fi
10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10992	CFLAGS="$xorg_testset_save_CFLAGS"
10993fi
10994
10995found="no"
10996
10997	if test $found = "no" ; then
10998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11000		fi
11001
11002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11004		fi
11005
11006		CFLAGS="$CFLAGS -Werror=attributes"
11007
11008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11009printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11010		cacheid=xorg_cv_cc_flag__Werror_attributes
11011		if eval test \${$cacheid+y}
11012then :
11013  printf %s "(cached) " >&6
11014else $as_nop
11015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016/* end confdefs.h.  */
11017int i;
11018int
11019main (void)
11020{
11021
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"
11027then :
11028  eval $cacheid=yes
11029else $as_nop
11030  eval $cacheid=no
11031fi
11032rm -f core conftest.err conftest.$ac_objext conftest.beam \
11033    conftest$ac_exeext conftest.$ac_ext
11034fi
11035
11036
11037		CFLAGS="$xorg_testset_save_CFLAGS"
11038
11039		eval supported=\$$cacheid
11040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11041printf "%s\n" "$supported" >&6; }
11042		if test "$supported" = "yes" ; then
11043			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11044			found="yes"
11045		fi
11046	fi
11047
11048
11049
11050if test "x$STRICT_COMPILE" = "xyes"; then
11051    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11052    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11053fi
11054
11055
11056
11057
11058
11059
11060cat >>confdefs.h <<_ACEOF
11061#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11062_ACEOF
11063
11064	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11065	if test "x$PVM" = "x"; then
11066		PVM="0"
11067	fi
11068
11069printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11070
11071	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11072	if test "x$PVP" = "x"; then
11073		PVP="0"
11074	fi
11075
11076printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11077
11078
11079
11080CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11081mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11082|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11083touch \$(top_srcdir)/ChangeLog; \
11084echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11085
11086
11087
11088
11089macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11090INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11091mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11092|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11093touch \$(top_srcdir)/INSTALL; \
11094echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11095
11096
11097
11098
11099
11100
11101case $host_os in
11102    solaris*)
11103        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11104        # check for a man page file found in later versions that use
11105        # traditional section numbers instead
11106        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11107printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11108if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11109then :
11110  printf %s "(cached) " >&6
11111else $as_nop
11112  test "$cross_compiling" = yes &&
11113  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11114if test -r "/usr/share/man/man7/attributes.7"; then
11115  ac_cv_file__usr_share_man_man7_attributes_7=yes
11116else
11117  ac_cv_file__usr_share_man_man7_attributes_7=no
11118fi
11119fi
11120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11121printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11122if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11123then :
11124  SYSV_MAN_SECTIONS=false
11125else $as_nop
11126  SYSV_MAN_SECTIONS=true
11127fi
11128
11129        ;;
11130    *) SYSV_MAN_SECTIONS=false ;;
11131esac
11132
11133if test x$APP_MAN_SUFFIX = x    ; then
11134    APP_MAN_SUFFIX=1
11135fi
11136if test x$APP_MAN_DIR = x    ; then
11137    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11138fi
11139
11140if test x$LIB_MAN_SUFFIX = x    ; then
11141    LIB_MAN_SUFFIX=3
11142fi
11143if test x$LIB_MAN_DIR = x    ; then
11144    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11145fi
11146
11147if test x$FILE_MAN_SUFFIX = x    ; then
11148    case $SYSV_MAN_SECTIONS in
11149	true)				FILE_MAN_SUFFIX=4  ;;
11150	*)				FILE_MAN_SUFFIX=5  ;;
11151    esac
11152fi
11153if test x$FILE_MAN_DIR = x    ; then
11154    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11155fi
11156
11157if test x$MISC_MAN_SUFFIX = x    ; then
11158    case $SYSV_MAN_SECTIONS in
11159	true)				MISC_MAN_SUFFIX=5  ;;
11160	*)				MISC_MAN_SUFFIX=7  ;;
11161    esac
11162fi
11163if test x$MISC_MAN_DIR = x    ; then
11164    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11165fi
11166
11167if test x$DRIVER_MAN_SUFFIX = x    ; then
11168    case $SYSV_MAN_SECTIONS in
11169	true)				DRIVER_MAN_SUFFIX=7  ;;
11170	*)				DRIVER_MAN_SUFFIX=4  ;;
11171    esac
11172fi
11173if test x$DRIVER_MAN_DIR = x    ; then
11174    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11175fi
11176
11177if test x$ADMIN_MAN_SUFFIX = x    ; then
11178    case $SYSV_MAN_SECTIONS in
11179	true)				ADMIN_MAN_SUFFIX=1m ;;
11180	*)				ADMIN_MAN_SUFFIX=8  ;;
11181    esac
11182fi
11183if test x$ADMIN_MAN_DIR = x    ; then
11184    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11185fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201XORG_MAN_PAGE="X Version 11"
11202
11203MAN_SUBSTS="\
11204	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11205	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11206	-e 's|__xservername__|Xorg|g' \
11207	-e 's|__xconfigfile__|xorg.conf|g' \
11208	-e 's|__projectroot__|\$(prefix)|g' \
11209	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11210	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11211	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11212	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11213	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11214	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11215	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11216
11217
11218
11219# Check whether --enable-silent-rules was given.
11220if test ${enable_silent_rules+y}
11221then :
11222  enableval=$enable_silent_rules;
11223fi
11224
11225case $enable_silent_rules in # (((
11226  yes) AM_DEFAULT_VERBOSITY=0;;
11227   no) AM_DEFAULT_VERBOSITY=1;;
11228    *) AM_DEFAULT_VERBOSITY=0;;
11229esac
11230am_make=${MAKE-make}
11231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11232printf %s "checking whether $am_make supports nested variables... " >&6; }
11233if test ${am_cv_make_support_nested_variables+y}
11234then :
11235  printf %s "(cached) " >&6
11236else $as_nop
11237  if printf "%s\n" 'TRUE=$(BAR$(V))
11238BAR0=false
11239BAR1=true
11240V=1
11241am__doit:
11242	@$(TRUE)
11243.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11244  am_cv_make_support_nested_variables=yes
11245else
11246  am_cv_make_support_nested_variables=no
11247fi
11248fi
11249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11250printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11251if test $am_cv_make_support_nested_variables = yes; then
11252    AM_V='$(V)'
11253  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11254else
11255  AM_V=$AM_DEFAULT_VERBOSITY
11256  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11257fi
11258AM_BACKSLASH='\'
11259
11260
11261
11262DRIVER_NAME=vmmouse
11263
11264
11265# Checks for programs.
11266# Check whether --enable-static was given.
11267if test ${enable_static+y}
11268then :
11269  enableval=$enable_static; p=${PACKAGE-default}
11270    case $enableval in
11271    yes) enable_static=yes ;;
11272    no) enable_static=no ;;
11273    *)
11274     enable_static=no
11275      # Look at the argument we got.  We use all the common list separators.
11276      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11277      for pkg in $enableval; do
11278	IFS=$lt_save_ifs
11279	if test "X$pkg" = "X$p"; then
11280	  enable_static=yes
11281	fi
11282      done
11283      IFS=$lt_save_ifs
11284      ;;
11285    esac
11286else $as_nop
11287  enable_static=no
11288fi
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298case `pwd` in
11299  *\ * | *\	*)
11300    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11301printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11302esac
11303
11304
11305
11306macro_version='2.4.7'
11307macro_revision='2.4.7'
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322ltmain=$ac_aux_dir/ltmain.sh
11323
11324# Backslashify metacharacters that are still active within
11325# double-quoted strings.
11326sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11327
11328# Same as above, but do not quote variable references.
11329double_quote_subst='s/\(["`\\]\)/\\\1/g'
11330
11331# Sed substitution to delay expansion of an escaped shell variable in a
11332# double_quote_subst'ed string.
11333delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11334
11335# Sed substitution to delay expansion of an escaped single quote.
11336delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11337
11338# Sed substitution to avoid accidental globbing in evaled expressions
11339no_glob_subst='s/\*/\\\*/g'
11340
11341ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11342ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11343ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11344
11345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11346printf %s "checking how to print strings... " >&6; }
11347# Test print first, because it will be a builtin if present.
11348if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11349   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11350  ECHO='print -r --'
11351elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11352  ECHO='printf %s\n'
11353else
11354  # Use this function as a fallback that always works.
11355  func_fallback_echo ()
11356  {
11357    eval 'cat <<_LTECHO_EOF
11358$1
11359_LTECHO_EOF'
11360  }
11361  ECHO='func_fallback_echo'
11362fi
11363
11364# func_echo_all arg...
11365# Invoke $ECHO with all args, space-separated.
11366func_echo_all ()
11367{
11368    $ECHO ""
11369}
11370
11371case $ECHO in
11372  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11373printf "%s\n" "printf" >&6; } ;;
11374  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11375printf "%s\n" "print -r" >&6; } ;;
11376  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11377printf "%s\n" "cat" >&6; } ;;
11378esac
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11394printf %s "checking for a sed that does not truncate output... " >&6; }
11395if test ${ac_cv_path_SED+y}
11396then :
11397  printf %s "(cached) " >&6
11398else $as_nop
11399            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11400     for ac_i in 1 2 3 4 5 6 7; do
11401       ac_script="$ac_script$as_nl$ac_script"
11402     done
11403     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11404     { ac_script=; unset ac_script;}
11405     if test -z "$SED"; then
11406  ac_path_SED_found=false
11407  # Loop through the user's path and test for each of PROGNAME-LIST
11408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409for as_dir in $PATH
11410do
11411  IFS=$as_save_IFS
11412  case $as_dir in #(((
11413    '') as_dir=./ ;;
11414    */) ;;
11415    *) as_dir=$as_dir/ ;;
11416  esac
11417    for ac_prog in sed gsed
11418   do
11419    for ac_exec_ext in '' $ac_executable_extensions; do
11420      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11421      as_fn_executable_p "$ac_path_SED" || continue
11422# Check for GNU ac_path_SED and select it if it is found.
11423  # Check for GNU $ac_path_SED
11424case `"$ac_path_SED" --version 2>&1` in
11425*GNU*)
11426  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11427*)
11428  ac_count=0
11429  printf %s 0123456789 >"conftest.in"
11430  while :
11431  do
11432    cat "conftest.in" "conftest.in" >"conftest.tmp"
11433    mv "conftest.tmp" "conftest.in"
11434    cp "conftest.in" "conftest.nl"
11435    printf "%s\n" '' >> "conftest.nl"
11436    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11437    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11438    as_fn_arith $ac_count + 1 && ac_count=$as_val
11439    if test $ac_count -gt ${ac_path_SED_max-0}; then
11440      # Best one so far, save it but keep looking for a better one
11441      ac_cv_path_SED="$ac_path_SED"
11442      ac_path_SED_max=$ac_count
11443    fi
11444    # 10*(2^10) chars as input seems more than enough
11445    test $ac_count -gt 10 && break
11446  done
11447  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11448esac
11449
11450      $ac_path_SED_found && break 3
11451    done
11452  done
11453  done
11454IFS=$as_save_IFS
11455  if test -z "$ac_cv_path_SED"; then
11456    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11457  fi
11458else
11459  ac_cv_path_SED=$SED
11460fi
11461
11462fi
11463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11464printf "%s\n" "$ac_cv_path_SED" >&6; }
11465 SED="$ac_cv_path_SED"
11466  rm -f conftest.sed
11467
11468test -z "$SED" && SED=sed
11469Xsed="$SED -e 1s/^X//"
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11482printf %s "checking for grep that handles long lines and -e... " >&6; }
11483if test ${ac_cv_path_GREP+y}
11484then :
11485  printf %s "(cached) " >&6
11486else $as_nop
11487  if test -z "$GREP"; then
11488  ac_path_GREP_found=false
11489  # Loop through the user's path and test for each of PROGNAME-LIST
11490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11492do
11493  IFS=$as_save_IFS
11494  case $as_dir in #(((
11495    '') as_dir=./ ;;
11496    */) ;;
11497    *) as_dir=$as_dir/ ;;
11498  esac
11499    for ac_prog in grep ggrep
11500   do
11501    for ac_exec_ext in '' $ac_executable_extensions; do
11502      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11503      as_fn_executable_p "$ac_path_GREP" || continue
11504# Check for GNU ac_path_GREP and select it if it is found.
11505  # Check for GNU $ac_path_GREP
11506case `"$ac_path_GREP" --version 2>&1` in
11507*GNU*)
11508  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11509*)
11510  ac_count=0
11511  printf %s 0123456789 >"conftest.in"
11512  while :
11513  do
11514    cat "conftest.in" "conftest.in" >"conftest.tmp"
11515    mv "conftest.tmp" "conftest.in"
11516    cp "conftest.in" "conftest.nl"
11517    printf "%s\n" 'GREP' >> "conftest.nl"
11518    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11519    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11520    as_fn_arith $ac_count + 1 && ac_count=$as_val
11521    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11522      # Best one so far, save it but keep looking for a better one
11523      ac_cv_path_GREP="$ac_path_GREP"
11524      ac_path_GREP_max=$ac_count
11525    fi
11526    # 10*(2^10) chars as input seems more than enough
11527    test $ac_count -gt 10 && break
11528  done
11529  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11530esac
11531
11532      $ac_path_GREP_found && break 3
11533    done
11534  done
11535  done
11536IFS=$as_save_IFS
11537  if test -z "$ac_cv_path_GREP"; then
11538    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11539  fi
11540else
11541  ac_cv_path_GREP=$GREP
11542fi
11543
11544fi
11545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11546printf "%s\n" "$ac_cv_path_GREP" >&6; }
11547 GREP="$ac_cv_path_GREP"
11548
11549
11550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11551printf %s "checking for egrep... " >&6; }
11552if test ${ac_cv_path_EGREP+y}
11553then :
11554  printf %s "(cached) " >&6
11555else $as_nop
11556  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11557   then ac_cv_path_EGREP="$GREP -E"
11558   else
11559     if test -z "$EGREP"; then
11560  ac_path_EGREP_found=false
11561  # Loop through the user's path and test for each of PROGNAME-LIST
11562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11564do
11565  IFS=$as_save_IFS
11566  case $as_dir in #(((
11567    '') as_dir=./ ;;
11568    */) ;;
11569    *) as_dir=$as_dir/ ;;
11570  esac
11571    for ac_prog in egrep
11572   do
11573    for ac_exec_ext in '' $ac_executable_extensions; do
11574      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11575      as_fn_executable_p "$ac_path_EGREP" || continue
11576# Check for GNU ac_path_EGREP and select it if it is found.
11577  # Check for GNU $ac_path_EGREP
11578case `"$ac_path_EGREP" --version 2>&1` in
11579*GNU*)
11580  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11581*)
11582  ac_count=0
11583  printf %s 0123456789 >"conftest.in"
11584  while :
11585  do
11586    cat "conftest.in" "conftest.in" >"conftest.tmp"
11587    mv "conftest.tmp" "conftest.in"
11588    cp "conftest.in" "conftest.nl"
11589    printf "%s\n" 'EGREP' >> "conftest.nl"
11590    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11591    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11592    as_fn_arith $ac_count + 1 && ac_count=$as_val
11593    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11594      # Best one so far, save it but keep looking for a better one
11595      ac_cv_path_EGREP="$ac_path_EGREP"
11596      ac_path_EGREP_max=$ac_count
11597    fi
11598    # 10*(2^10) chars as input seems more than enough
11599    test $ac_count -gt 10 && break
11600  done
11601  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11602esac
11603
11604      $ac_path_EGREP_found && break 3
11605    done
11606  done
11607  done
11608IFS=$as_save_IFS
11609  if test -z "$ac_cv_path_EGREP"; then
11610    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11611  fi
11612else
11613  ac_cv_path_EGREP=$EGREP
11614fi
11615
11616   fi
11617fi
11618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11619printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11620 EGREP="$ac_cv_path_EGREP"
11621
11622
11623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11624printf %s "checking for fgrep... " >&6; }
11625if test ${ac_cv_path_FGREP+y}
11626then :
11627  printf %s "(cached) " >&6
11628else $as_nop
11629  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11630   then ac_cv_path_FGREP="$GREP -F"
11631   else
11632     if test -z "$FGREP"; then
11633  ac_path_FGREP_found=false
11634  # Loop through the user's path and test for each of PROGNAME-LIST
11635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11637do
11638  IFS=$as_save_IFS
11639  case $as_dir in #(((
11640    '') as_dir=./ ;;
11641    */) ;;
11642    *) as_dir=$as_dir/ ;;
11643  esac
11644    for ac_prog in fgrep
11645   do
11646    for ac_exec_ext in '' $ac_executable_extensions; do
11647      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11648      as_fn_executable_p "$ac_path_FGREP" || continue
11649# Check for GNU ac_path_FGREP and select it if it is found.
11650  # Check for GNU $ac_path_FGREP
11651case `"$ac_path_FGREP" --version 2>&1` in
11652*GNU*)
11653  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11654*)
11655  ac_count=0
11656  printf %s 0123456789 >"conftest.in"
11657  while :
11658  do
11659    cat "conftest.in" "conftest.in" >"conftest.tmp"
11660    mv "conftest.tmp" "conftest.in"
11661    cp "conftest.in" "conftest.nl"
11662    printf "%s\n" 'FGREP' >> "conftest.nl"
11663    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11664    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11665    as_fn_arith $ac_count + 1 && ac_count=$as_val
11666    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11667      # Best one so far, save it but keep looking for a better one
11668      ac_cv_path_FGREP="$ac_path_FGREP"
11669      ac_path_FGREP_max=$ac_count
11670    fi
11671    # 10*(2^10) chars as input seems more than enough
11672    test $ac_count -gt 10 && break
11673  done
11674  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11675esac
11676
11677      $ac_path_FGREP_found && break 3
11678    done
11679  done
11680  done
11681IFS=$as_save_IFS
11682  if test -z "$ac_cv_path_FGREP"; then
11683    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11684  fi
11685else
11686  ac_cv_path_FGREP=$FGREP
11687fi
11688
11689   fi
11690fi
11691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11692printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11693 FGREP="$ac_cv_path_FGREP"
11694
11695
11696test -z "$GREP" && GREP=grep
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716# Check whether --with-gnu-ld was given.
11717if test ${with_gnu_ld+y}
11718then :
11719  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11720else $as_nop
11721  with_gnu_ld=no
11722fi
11723
11724ac_prog=ld
11725if test yes = "$GCC"; then
11726  # Check if gcc -print-prog-name=ld gives a path.
11727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11728printf %s "checking for ld used by $CC... " >&6; }
11729  case $host in
11730  *-*-mingw*)
11731    # gcc leaves a trailing carriage return, which upsets mingw
11732    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11733  *)
11734    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11735  esac
11736  case $ac_prog in
11737    # Accept absolute paths.
11738    [\\/]* | ?:[\\/]*)
11739      re_direlt='/[^/][^/]*/\.\./'
11740      # Canonicalize the pathname of ld
11741      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11742      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11743	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11744      done
11745      test -z "$LD" && LD=$ac_prog
11746      ;;
11747  "")
11748    # If it fails, then pretend we aren't using GCC.
11749    ac_prog=ld
11750    ;;
11751  *)
11752    # If it is relative, then search for the first ld in PATH.
11753    with_gnu_ld=unknown
11754    ;;
11755  esac
11756elif test yes = "$with_gnu_ld"; then
11757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11758printf %s "checking for GNU ld... " >&6; }
11759else
11760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11761printf %s "checking for non-GNU ld... " >&6; }
11762fi
11763if test ${lt_cv_path_LD+y}
11764then :
11765  printf %s "(cached) " >&6
11766else $as_nop
11767  if test -z "$LD"; then
11768  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11769  for ac_dir in $PATH; do
11770    IFS=$lt_save_ifs
11771    test -z "$ac_dir" && ac_dir=.
11772    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11773      lt_cv_path_LD=$ac_dir/$ac_prog
11774      # Check to see if the program is GNU ld.  I'd rather use --version,
11775      # but apparently some variants of GNU ld only accept -v.
11776      # Break only if it was the GNU/non-GNU ld that we prefer.
11777      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11778      *GNU* | *'with BFD'*)
11779	test no != "$with_gnu_ld" && break
11780	;;
11781      *)
11782	test yes != "$with_gnu_ld" && break
11783	;;
11784      esac
11785    fi
11786  done
11787  IFS=$lt_save_ifs
11788else
11789  lt_cv_path_LD=$LD # Let the user override the test with a path.
11790fi
11791fi
11792
11793LD=$lt_cv_path_LD
11794if test -n "$LD"; then
11795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11796printf "%s\n" "$LD" >&6; }
11797else
11798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799printf "%s\n" "no" >&6; }
11800fi
11801test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11803printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11804if test ${lt_cv_prog_gnu_ld+y}
11805then :
11806  printf %s "(cached) " >&6
11807else $as_nop
11808  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11809case `$LD -v 2>&1 </dev/null` in
11810*GNU* | *'with BFD'*)
11811  lt_cv_prog_gnu_ld=yes
11812  ;;
11813*)
11814  lt_cv_prog_gnu_ld=no
11815  ;;
11816esac
11817fi
11818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11819printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11820with_gnu_ld=$lt_cv_prog_gnu_ld
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11831printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11832if test ${lt_cv_path_NM+y}
11833then :
11834  printf %s "(cached) " >&6
11835else $as_nop
11836  if test -n "$NM"; then
11837  # Let the user override the test.
11838  lt_cv_path_NM=$NM
11839else
11840  lt_nm_to_check=${ac_tool_prefix}nm
11841  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11842    lt_nm_to_check="$lt_nm_to_check nm"
11843  fi
11844  for lt_tmp_nm in $lt_nm_to_check; do
11845    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11846    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11847      IFS=$lt_save_ifs
11848      test -z "$ac_dir" && ac_dir=.
11849      tmp_nm=$ac_dir/$lt_tmp_nm
11850      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11851	# Check to see if the nm accepts a BSD-compat flag.
11852	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11853	#   nm: unknown option "B" ignored
11854	# Tru64's nm complains that /dev/null is an invalid object file
11855	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11856	case $build_os in
11857	mingw*) lt_bad_file=conftest.nm/nofile ;;
11858	*) lt_bad_file=/dev/null ;;
11859	esac
11860	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11861	*$lt_bad_file* | *'Invalid file or object type'*)
11862	  lt_cv_path_NM="$tmp_nm -B"
11863	  break 2
11864	  ;;
11865	*)
11866	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11867	  */dev/null*)
11868	    lt_cv_path_NM="$tmp_nm -p"
11869	    break 2
11870	    ;;
11871	  *)
11872	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11873	    continue # so that we can try to find one that supports BSD flags
11874	    ;;
11875	  esac
11876	  ;;
11877	esac
11878      fi
11879    done
11880    IFS=$lt_save_ifs
11881  done
11882  : ${lt_cv_path_NM=no}
11883fi
11884fi
11885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11886printf "%s\n" "$lt_cv_path_NM" >&6; }
11887if test no != "$lt_cv_path_NM"; then
11888  NM=$lt_cv_path_NM
11889else
11890  # Didn't find any BSD compatible name lister, look for dumpbin.
11891  if test -n "$DUMPBIN"; then :
11892    # Let the user override the test.
11893  else
11894    if test -n "$ac_tool_prefix"; then
11895  for ac_prog in dumpbin "link -dump"
11896  do
11897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900printf %s "checking for $ac_word... " >&6; }
11901if test ${ac_cv_prog_DUMPBIN+y}
11902then :
11903  printf %s "(cached) " >&6
11904else $as_nop
11905  if test -n "$DUMPBIN"; then
11906  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11907else
11908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH
11910do
11911  IFS=$as_save_IFS
11912  case $as_dir in #(((
11913    '') as_dir=./ ;;
11914    */) ;;
11915    *) as_dir=$as_dir/ ;;
11916  esac
11917    for ac_exec_ext in '' $ac_executable_extensions; do
11918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11919    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11921    break 2
11922  fi
11923done
11924  done
11925IFS=$as_save_IFS
11926
11927fi
11928fi
11929DUMPBIN=$ac_cv_prog_DUMPBIN
11930if test -n "$DUMPBIN"; then
11931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11932printf "%s\n" "$DUMPBIN" >&6; }
11933else
11934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935printf "%s\n" "no" >&6; }
11936fi
11937
11938
11939    test -n "$DUMPBIN" && break
11940  done
11941fi
11942if test -z "$DUMPBIN"; then
11943  ac_ct_DUMPBIN=$DUMPBIN
11944  for ac_prog in dumpbin "link -dump"
11945do
11946  # Extract the first word of "$ac_prog", so it can be a program name with args.
11947set dummy $ac_prog; ac_word=$2
11948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949printf %s "checking for $ac_word... " >&6; }
11950if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11951then :
11952  printf %s "(cached) " >&6
11953else $as_nop
11954  if test -n "$ac_ct_DUMPBIN"; then
11955  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11956else
11957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958for as_dir in $PATH
11959do
11960  IFS=$as_save_IFS
11961  case $as_dir in #(((
11962    '') as_dir=./ ;;
11963    */) ;;
11964    *) as_dir=$as_dir/ ;;
11965  esac
11966    for ac_exec_ext in '' $ac_executable_extensions; do
11967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11968    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11970    break 2
11971  fi
11972done
11973  done
11974IFS=$as_save_IFS
11975
11976fi
11977fi
11978ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11979if test -n "$ac_ct_DUMPBIN"; then
11980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11981printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11982else
11983  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984printf "%s\n" "no" >&6; }
11985fi
11986
11987
11988  test -n "$ac_ct_DUMPBIN" && break
11989done
11990
11991  if test "x$ac_ct_DUMPBIN" = x; then
11992    DUMPBIN=":"
11993  else
11994    case $cross_compiling:$ac_tool_warned in
11995yes:)
11996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11997printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11998ac_tool_warned=yes ;;
11999esac
12000    DUMPBIN=$ac_ct_DUMPBIN
12001  fi
12002fi
12003
12004    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12005    *COFF*)
12006      DUMPBIN="$DUMPBIN -symbols -headers"
12007      ;;
12008    *)
12009      DUMPBIN=:
12010      ;;
12011    esac
12012  fi
12013
12014  if test : != "$DUMPBIN"; then
12015    NM=$DUMPBIN
12016  fi
12017fi
12018test -z "$NM" && NM=nm
12019
12020
12021
12022
12023
12024
12025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12026printf %s "checking the name lister ($NM) interface... " >&6; }
12027if test ${lt_cv_nm_interface+y}
12028then :
12029  printf %s "(cached) " >&6
12030else $as_nop
12031  lt_cv_nm_interface="BSD nm"
12032  echo "int some_variable = 0;" > conftest.$ac_ext
12033  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12034  (eval "$ac_compile" 2>conftest.err)
12035  cat conftest.err >&5
12036  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12037  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12038  cat conftest.err >&5
12039  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12040  cat conftest.out >&5
12041  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12042    lt_cv_nm_interface="MS dumpbin"
12043  fi
12044  rm -f conftest*
12045fi
12046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12047printf "%s\n" "$lt_cv_nm_interface" >&6; }
12048
12049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12050printf %s "checking whether ln -s works... " >&6; }
12051LN_S=$as_ln_s
12052if test "$LN_S" = "ln -s"; then
12053  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12054printf "%s\n" "yes" >&6; }
12055else
12056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12057printf "%s\n" "no, using $LN_S" >&6; }
12058fi
12059
12060# find the maximum length of command line arguments
12061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12062printf %s "checking the maximum length of command line arguments... " >&6; }
12063if test ${lt_cv_sys_max_cmd_len+y}
12064then :
12065  printf %s "(cached) " >&6
12066else $as_nop
12067    i=0
12068  teststring=ABCD
12069
12070  case $build_os in
12071  msdosdjgpp*)
12072    # On DJGPP, this test can blow up pretty badly due to problems in libc
12073    # (any single argument exceeding 2000 bytes causes a buffer overrun
12074    # during glob expansion).  Even if it were fixed, the result of this
12075    # check would be larger than it should be.
12076    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12077    ;;
12078
12079  gnu*)
12080    # Under GNU Hurd, this test is not required because there is
12081    # no limit to the length of command line arguments.
12082    # Libtool will interpret -1 as no limit whatsoever
12083    lt_cv_sys_max_cmd_len=-1;
12084    ;;
12085
12086  cygwin* | mingw* | cegcc*)
12087    # On Win9x/ME, this test blows up -- it succeeds, but takes
12088    # about 5 minutes as the teststring grows exponentially.
12089    # Worse, since 9x/ME are not pre-emptively multitasking,
12090    # you end up with a "frozen" computer, even though with patience
12091    # the test eventually succeeds (with a max line length of 256k).
12092    # Instead, let's just punt: use the minimum linelength reported by
12093    # all of the supported platforms: 8192 (on NT/2K/XP).
12094    lt_cv_sys_max_cmd_len=8192;
12095    ;;
12096
12097  mint*)
12098    # On MiNT this can take a long time and run out of memory.
12099    lt_cv_sys_max_cmd_len=8192;
12100    ;;
12101
12102  mint*)
12103    # On MiNT this can take a long time and run out of memory.
12104    lt_cv_sys_max_cmd_len=8192;
12105    ;;
12106
12107  amigaos*)
12108    # On AmigaOS with pdksh, this test takes hours, literally.
12109    # So we just punt and use a minimum line length of 8192.
12110    lt_cv_sys_max_cmd_len=8192;
12111    ;;
12112
12113  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12114    # This has been around since 386BSD, at least.  Likely further.
12115    if test -x /sbin/sysctl; then
12116      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12117    elif test -x /usr/sbin/sysctl; then
12118      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12119    else
12120      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12121    fi
12122    # And add a safety zone
12123    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12124    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12125    ;;
12126
12127  interix*)
12128    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12129    lt_cv_sys_max_cmd_len=196608
12130    ;;
12131
12132  os2*)
12133    # The test takes a long time on OS/2.
12134    lt_cv_sys_max_cmd_len=8192
12135    ;;
12136
12137  osf*)
12138    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12139    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12140    # nice to cause kernel panics so lets avoid the loop below.
12141    # First set a reasonable default.
12142    lt_cv_sys_max_cmd_len=16384
12143    #
12144    if test -x /sbin/sysconfig; then
12145      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12146        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12147      esac
12148    fi
12149    ;;
12150  sco3.2v5*)
12151    lt_cv_sys_max_cmd_len=102400
12152    ;;
12153  sysv5* | sco5v6* | sysv4.2uw2*)
12154    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12155    if test -n "$kargmax"; then
12156      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12157    else
12158      lt_cv_sys_max_cmd_len=32768
12159    fi
12160    ;;
12161  *)
12162    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12163    if test -n "$lt_cv_sys_max_cmd_len" && \
12164       test undefined != "$lt_cv_sys_max_cmd_len"; then
12165      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12166      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12167    else
12168      # Make teststring a little bigger before we do anything with it.
12169      # a 1K string should be a reasonable start.
12170      for i in 1 2 3 4 5 6 7 8; do
12171        teststring=$teststring$teststring
12172      done
12173      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12174      # If test is not a shell built-in, we'll probably end up computing a
12175      # maximum length that is only half of the actual maximum length, but
12176      # we can't tell.
12177      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12178	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12179	      test 17 != "$i" # 1/2 MB should be enough
12180      do
12181        i=`expr $i + 1`
12182        teststring=$teststring$teststring
12183      done
12184      # Only check the string length outside the loop.
12185      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12186      teststring=
12187      # Add a significant safety factor because C++ compilers can tack on
12188      # massive amounts of additional arguments before passing them to the
12189      # linker.  It appears as though 1/2 is a usable value.
12190      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12191    fi
12192    ;;
12193  esac
12194
12195fi
12196
12197if test -n "$lt_cv_sys_max_cmd_len"; then
12198  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12199printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12200else
12201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12202printf "%s\n" "none" >&6; }
12203fi
12204max_cmd_len=$lt_cv_sys_max_cmd_len
12205
12206
12207
12208
12209
12210
12211: ${CP="cp -f"}
12212: ${MV="mv -f"}
12213: ${RM="rm -f"}
12214
12215if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12216  lt_unset=unset
12217else
12218  lt_unset=false
12219fi
12220
12221
12222
12223
12224
12225# test EBCDIC or ASCII
12226case `echo X|tr X '\101'` in
12227 A) # ASCII based system
12228    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12229  lt_SP2NL='tr \040 \012'
12230  lt_NL2SP='tr \015\012 \040\040'
12231  ;;
12232 *) # EBCDIC based system
12233  lt_SP2NL='tr \100 \n'
12234  lt_NL2SP='tr \r\n \100\100'
12235  ;;
12236esac
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12247printf %s "checking how to convert $build file names to $host format... " >&6; }
12248if test ${lt_cv_to_host_file_cmd+y}
12249then :
12250  printf %s "(cached) " >&6
12251else $as_nop
12252  case $host in
12253  *-*-mingw* )
12254    case $build in
12255      *-*-mingw* ) # actually msys
12256        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12257        ;;
12258      *-*-cygwin* )
12259        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12260        ;;
12261      * ) # otherwise, assume *nix
12262        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12263        ;;
12264    esac
12265    ;;
12266  *-*-cygwin* )
12267    case $build in
12268      *-*-mingw* ) # actually msys
12269        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12270        ;;
12271      *-*-cygwin* )
12272        lt_cv_to_host_file_cmd=func_convert_file_noop
12273        ;;
12274      * ) # otherwise, assume *nix
12275        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12276        ;;
12277    esac
12278    ;;
12279  * ) # unhandled hosts (and "normal" native builds)
12280    lt_cv_to_host_file_cmd=func_convert_file_noop
12281    ;;
12282esac
12283
12284fi
12285
12286to_host_file_cmd=$lt_cv_to_host_file_cmd
12287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12288printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12289
12290
12291
12292
12293
12294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12295printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12296if test ${lt_cv_to_tool_file_cmd+y}
12297then :
12298  printf %s "(cached) " >&6
12299else $as_nop
12300  #assume ordinary cross tools, or native build.
12301lt_cv_to_tool_file_cmd=func_convert_file_noop
12302case $host in
12303  *-*-mingw* )
12304    case $build in
12305      *-*-mingw* ) # actually msys
12306        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12307        ;;
12308    esac
12309    ;;
12310esac
12311
12312fi
12313
12314to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12316printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12317
12318
12319
12320
12321
12322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12323printf %s "checking for $LD option to reload object files... " >&6; }
12324if test ${lt_cv_ld_reload_flag+y}
12325then :
12326  printf %s "(cached) " >&6
12327else $as_nop
12328  lt_cv_ld_reload_flag='-r'
12329fi
12330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12331printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12332reload_flag=$lt_cv_ld_reload_flag
12333case $reload_flag in
12334"" | " "*) ;;
12335*) reload_flag=" $reload_flag" ;;
12336esac
12337reload_cmds='$LD$reload_flag -o $output$reload_objs'
12338case $host_os in
12339  cygwin* | mingw* | pw32* | cegcc*)
12340    if test yes != "$GCC"; then
12341      reload_cmds=false
12342    fi
12343    ;;
12344  darwin*)
12345    if test yes = "$GCC"; then
12346      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12347    else
12348      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12349    fi
12350    ;;
12351esac
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361if test -n "$ac_tool_prefix"; then
12362  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12363set dummy ${ac_tool_prefix}file; ac_word=$2
12364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365printf %s "checking for $ac_word... " >&6; }
12366if test ${ac_cv_prog_FILECMD+y}
12367then :
12368  printf %s "(cached) " >&6
12369else $as_nop
12370  if test -n "$FILECMD"; then
12371  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12372else
12373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376  IFS=$as_save_IFS
12377  case $as_dir in #(((
12378    '') as_dir=./ ;;
12379    */) ;;
12380    *) as_dir=$as_dir/ ;;
12381  esac
12382    for ac_exec_ext in '' $ac_executable_extensions; do
12383  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12384    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12385    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12386    break 2
12387  fi
12388done
12389  done
12390IFS=$as_save_IFS
12391
12392fi
12393fi
12394FILECMD=$ac_cv_prog_FILECMD
12395if test -n "$FILECMD"; then
12396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12397printf "%s\n" "$FILECMD" >&6; }
12398else
12399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400printf "%s\n" "no" >&6; }
12401fi
12402
12403
12404fi
12405if test -z "$ac_cv_prog_FILECMD"; then
12406  ac_ct_FILECMD=$FILECMD
12407  # Extract the first word of "file", so it can be a program name with args.
12408set dummy file; ac_word=$2
12409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410printf %s "checking for $ac_word... " >&6; }
12411if test ${ac_cv_prog_ac_ct_FILECMD+y}
12412then :
12413  printf %s "(cached) " >&6
12414else $as_nop
12415  if test -n "$ac_ct_FILECMD"; then
12416  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12417else
12418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419for as_dir in $PATH
12420do
12421  IFS=$as_save_IFS
12422  case $as_dir in #(((
12423    '') as_dir=./ ;;
12424    */) ;;
12425    *) as_dir=$as_dir/ ;;
12426  esac
12427    for ac_exec_ext in '' $ac_executable_extensions; do
12428  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12429    ac_cv_prog_ac_ct_FILECMD="file"
12430    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12431    break 2
12432  fi
12433done
12434  done
12435IFS=$as_save_IFS
12436
12437fi
12438fi
12439ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12440if test -n "$ac_ct_FILECMD"; then
12441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12442printf "%s\n" "$ac_ct_FILECMD" >&6; }
12443else
12444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445printf "%s\n" "no" >&6; }
12446fi
12447
12448  if test "x$ac_ct_FILECMD" = x; then
12449    FILECMD=":"
12450  else
12451    case $cross_compiling:$ac_tool_warned in
12452yes:)
12453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12454printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12455ac_tool_warned=yes ;;
12456esac
12457    FILECMD=$ac_ct_FILECMD
12458  fi
12459else
12460  FILECMD="$ac_cv_prog_FILECMD"
12461fi
12462
12463
12464
12465
12466
12467
12468
12469if test -n "$ac_tool_prefix"; then
12470  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12471set dummy ${ac_tool_prefix}objdump; ac_word=$2
12472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473printf %s "checking for $ac_word... " >&6; }
12474if test ${ac_cv_prog_OBJDUMP+y}
12475then :
12476  printf %s "(cached) " >&6
12477else $as_nop
12478  if test -n "$OBJDUMP"; then
12479  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12480else
12481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482for as_dir in $PATH
12483do
12484  IFS=$as_save_IFS
12485  case $as_dir in #(((
12486    '') as_dir=./ ;;
12487    */) ;;
12488    *) as_dir=$as_dir/ ;;
12489  esac
12490    for ac_exec_ext in '' $ac_executable_extensions; do
12491  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12492    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12493    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12494    break 2
12495  fi
12496done
12497  done
12498IFS=$as_save_IFS
12499
12500fi
12501fi
12502OBJDUMP=$ac_cv_prog_OBJDUMP
12503if test -n "$OBJDUMP"; then
12504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12505printf "%s\n" "$OBJDUMP" >&6; }
12506else
12507  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508printf "%s\n" "no" >&6; }
12509fi
12510
12511
12512fi
12513if test -z "$ac_cv_prog_OBJDUMP"; then
12514  ac_ct_OBJDUMP=$OBJDUMP
12515  # Extract the first word of "objdump", so it can be a program name with args.
12516set dummy objdump; ac_word=$2
12517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518printf %s "checking for $ac_word... " >&6; }
12519if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12520then :
12521  printf %s "(cached) " >&6
12522else $as_nop
12523  if test -n "$ac_ct_OBJDUMP"; then
12524  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12525else
12526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527for as_dir in $PATH
12528do
12529  IFS=$as_save_IFS
12530  case $as_dir in #(((
12531    '') as_dir=./ ;;
12532    */) ;;
12533    *) as_dir=$as_dir/ ;;
12534  esac
12535    for ac_exec_ext in '' $ac_executable_extensions; do
12536  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12537    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12538    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12539    break 2
12540  fi
12541done
12542  done
12543IFS=$as_save_IFS
12544
12545fi
12546fi
12547ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12548if test -n "$ac_ct_OBJDUMP"; then
12549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12550printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12551else
12552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553printf "%s\n" "no" >&6; }
12554fi
12555
12556  if test "x$ac_ct_OBJDUMP" = x; then
12557    OBJDUMP="false"
12558  else
12559    case $cross_compiling:$ac_tool_warned in
12560yes:)
12561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12562printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12563ac_tool_warned=yes ;;
12564esac
12565    OBJDUMP=$ac_ct_OBJDUMP
12566  fi
12567else
12568  OBJDUMP="$ac_cv_prog_OBJDUMP"
12569fi
12570
12571test -z "$OBJDUMP" && OBJDUMP=objdump
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12582printf %s "checking how to recognize dependent libraries... " >&6; }
12583if test ${lt_cv_deplibs_check_method+y}
12584then :
12585  printf %s "(cached) " >&6
12586else $as_nop
12587  lt_cv_file_magic_cmd='$MAGIC_CMD'
12588lt_cv_file_magic_test_file=
12589lt_cv_deplibs_check_method='unknown'
12590# Need to set the preceding variable on all platforms that support
12591# interlibrary dependencies.
12592# 'none' -- dependencies not supported.
12593# 'unknown' -- same as none, but documents that we really don't know.
12594# 'pass_all' -- all dependencies passed with no checks.
12595# 'test_compile' -- check by making test program.
12596# 'file_magic [[regex]]' -- check by looking for files in library path
12597# that responds to the $file_magic_cmd with a given extended regex.
12598# If you have 'file' or equivalent on your system and you're not sure
12599# whether 'pass_all' will *always* work, you probably want this one.
12600
12601case $host_os in
12602aix[4-9]*)
12603  lt_cv_deplibs_check_method=pass_all
12604  ;;
12605
12606beos*)
12607  lt_cv_deplibs_check_method=pass_all
12608  ;;
12609
12610bsdi[45]*)
12611  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12612  lt_cv_file_magic_cmd='$FILECMD -L'
12613  lt_cv_file_magic_test_file=/shlib/libc.so
12614  ;;
12615
12616cygwin*)
12617  # func_win32_libid is a shell function defined in ltmain.sh
12618  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12619  lt_cv_file_magic_cmd='func_win32_libid'
12620  ;;
12621
12622mingw* | pw32*)
12623  # Base MSYS/MinGW do not provide the 'file' command needed by
12624  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12625  # unless we find 'file', for example because we are cross-compiling.
12626  if ( file / ) >/dev/null 2>&1; then
12627    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12628    lt_cv_file_magic_cmd='func_win32_libid'
12629  else
12630    # Keep this pattern in sync with the one in func_win32_libid.
12631    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12632    lt_cv_file_magic_cmd='$OBJDUMP -f'
12633  fi
12634  ;;
12635
12636cegcc*)
12637  # use the weaker test based on 'objdump'. See mingw*.
12638  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12639  lt_cv_file_magic_cmd='$OBJDUMP -f'
12640  ;;
12641
12642darwin* | rhapsody*)
12643  lt_cv_deplibs_check_method=pass_all
12644  ;;
12645
12646freebsd* | dragonfly* | midnightbsd*)
12647  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12648    case $host_cpu in
12649    i*86 )
12650      # Not sure whether the presence of OpenBSD here was a mistake.
12651      # Let's accept both of them until this is cleared up.
12652      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12653      lt_cv_file_magic_cmd=$FILECMD
12654      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12655      ;;
12656    esac
12657  else
12658    lt_cv_deplibs_check_method=pass_all
12659  fi
12660  ;;
12661
12662haiku*)
12663  lt_cv_deplibs_check_method=pass_all
12664  ;;
12665
12666hpux10.20* | hpux11*)
12667  lt_cv_file_magic_cmd=$FILECMD
12668  case $host_cpu in
12669  ia64*)
12670    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12671    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12672    ;;
12673  hppa*64*)
12674    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]'
12675    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12676    ;;
12677  *)
12678    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12679    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12680    ;;
12681  esac
12682  ;;
12683
12684interix[3-9]*)
12685  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12686  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12687  ;;
12688
12689irix5* | irix6* | nonstopux*)
12690  case $LD in
12691  *-32|*"-32 ") libmagic=32-bit;;
12692  *-n32|*"-n32 ") libmagic=N32;;
12693  *-64|*"-64 ") libmagic=64-bit;;
12694  *) libmagic=never-match;;
12695  esac
12696  lt_cv_deplibs_check_method=pass_all
12697  ;;
12698
12699# This must be glibc/ELF.
12700linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12701  lt_cv_deplibs_check_method=pass_all
12702  ;;
12703
12704netbsd*)
12705  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12706    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12707  else
12708    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12709  fi
12710  ;;
12711
12712newos6*)
12713  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12714  lt_cv_file_magic_cmd=$FILECMD
12715  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12716  ;;
12717
12718*nto* | *qnx*)
12719  lt_cv_deplibs_check_method=pass_all
12720  ;;
12721
12722openbsd* | bitrig*)
12723  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12724    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12725  else
12726    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12727  fi
12728  ;;
12729
12730osf3* | osf4* | osf5*)
12731  lt_cv_deplibs_check_method=pass_all
12732  ;;
12733
12734rdos*)
12735  lt_cv_deplibs_check_method=pass_all
12736  ;;
12737
12738solaris*)
12739  lt_cv_deplibs_check_method=pass_all
12740  ;;
12741
12742sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12743  lt_cv_deplibs_check_method=pass_all
12744  ;;
12745
12746sysv4 | sysv4.3*)
12747  case $host_vendor in
12748  motorola)
12749    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]'
12750    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12751    ;;
12752  ncr)
12753    lt_cv_deplibs_check_method=pass_all
12754    ;;
12755  sequent)
12756    lt_cv_file_magic_cmd='/bin/file'
12757    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12758    ;;
12759  sni)
12760    lt_cv_file_magic_cmd='/bin/file'
12761    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12762    lt_cv_file_magic_test_file=/lib/libc.so
12763    ;;
12764  siemens)
12765    lt_cv_deplibs_check_method=pass_all
12766    ;;
12767  pc)
12768    lt_cv_deplibs_check_method=pass_all
12769    ;;
12770  esac
12771  ;;
12772
12773tpf*)
12774  lt_cv_deplibs_check_method=pass_all
12775  ;;
12776os2*)
12777  lt_cv_deplibs_check_method=pass_all
12778  ;;
12779esac
12780
12781fi
12782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12783printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12784
12785file_magic_glob=
12786want_nocaseglob=no
12787if test "$build" = "$host"; then
12788  case $host_os in
12789  mingw* | pw32*)
12790    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12791      want_nocaseglob=yes
12792    else
12793      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12794    fi
12795    ;;
12796  esac
12797fi
12798
12799file_magic_cmd=$lt_cv_file_magic_cmd
12800deplibs_check_method=$lt_cv_deplibs_check_method
12801test -z "$deplibs_check_method" && deplibs_check_method=unknown
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824if test -n "$ac_tool_prefix"; then
12825  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12826set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828printf %s "checking for $ac_word... " >&6; }
12829if test ${ac_cv_prog_DLLTOOL+y}
12830then :
12831  printf %s "(cached) " >&6
12832else $as_nop
12833  if test -n "$DLLTOOL"; then
12834  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12835else
12836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839  IFS=$as_save_IFS
12840  case $as_dir in #(((
12841    '') as_dir=./ ;;
12842    */) ;;
12843    *) as_dir=$as_dir/ ;;
12844  esac
12845    for ac_exec_ext in '' $ac_executable_extensions; do
12846  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12847    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12848    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12849    break 2
12850  fi
12851done
12852  done
12853IFS=$as_save_IFS
12854
12855fi
12856fi
12857DLLTOOL=$ac_cv_prog_DLLTOOL
12858if test -n "$DLLTOOL"; then
12859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12860printf "%s\n" "$DLLTOOL" >&6; }
12861else
12862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863printf "%s\n" "no" >&6; }
12864fi
12865
12866
12867fi
12868if test -z "$ac_cv_prog_DLLTOOL"; then
12869  ac_ct_DLLTOOL=$DLLTOOL
12870  # Extract the first word of "dlltool", so it can be a program name with args.
12871set dummy dlltool; ac_word=$2
12872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873printf %s "checking for $ac_word... " >&6; }
12874if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12875then :
12876  printf %s "(cached) " >&6
12877else $as_nop
12878  if test -n "$ac_ct_DLLTOOL"; then
12879  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12880else
12881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882for as_dir in $PATH
12883do
12884  IFS=$as_save_IFS
12885  case $as_dir in #(((
12886    '') as_dir=./ ;;
12887    */) ;;
12888    *) as_dir=$as_dir/ ;;
12889  esac
12890    for ac_exec_ext in '' $ac_executable_extensions; do
12891  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12892    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12893    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12894    break 2
12895  fi
12896done
12897  done
12898IFS=$as_save_IFS
12899
12900fi
12901fi
12902ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12903if test -n "$ac_ct_DLLTOOL"; then
12904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12905printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12906else
12907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908printf "%s\n" "no" >&6; }
12909fi
12910
12911  if test "x$ac_ct_DLLTOOL" = x; then
12912    DLLTOOL="false"
12913  else
12914    case $cross_compiling:$ac_tool_warned in
12915yes:)
12916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12918ac_tool_warned=yes ;;
12919esac
12920    DLLTOOL=$ac_ct_DLLTOOL
12921  fi
12922else
12923  DLLTOOL="$ac_cv_prog_DLLTOOL"
12924fi
12925
12926test -z "$DLLTOOL" && DLLTOOL=dlltool
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12938printf %s "checking how to associate runtime and link libraries... " >&6; }
12939if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12940then :
12941  printf %s "(cached) " >&6
12942else $as_nop
12943  lt_cv_sharedlib_from_linklib_cmd='unknown'
12944
12945case $host_os in
12946cygwin* | mingw* | pw32* | cegcc*)
12947  # two different shell functions defined in ltmain.sh;
12948  # decide which one to use based on capabilities of $DLLTOOL
12949  case `$DLLTOOL --help 2>&1` in
12950  *--identify-strict*)
12951    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12952    ;;
12953  *)
12954    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12955    ;;
12956  esac
12957  ;;
12958*)
12959  # fallback: assume linklib IS sharedlib
12960  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12961  ;;
12962esac
12963
12964fi
12965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12966printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12967sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12968test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12969
12970
12971
12972
12973
12974
12975
12976if test -n "$ac_tool_prefix"; then
12977  for ac_prog in ar
12978  do
12979    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12982printf %s "checking for $ac_word... " >&6; }
12983if test ${ac_cv_prog_AR+y}
12984then :
12985  printf %s "(cached) " >&6
12986else $as_nop
12987  if test -n "$AR"; then
12988  ac_cv_prog_AR="$AR" # Let the user override the test.
12989else
12990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991for as_dir in $PATH
12992do
12993  IFS=$as_save_IFS
12994  case $as_dir in #(((
12995    '') as_dir=./ ;;
12996    */) ;;
12997    *) as_dir=$as_dir/ ;;
12998  esac
12999    for ac_exec_ext in '' $ac_executable_extensions; do
13000  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13001    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13002    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13003    break 2
13004  fi
13005done
13006  done
13007IFS=$as_save_IFS
13008
13009fi
13010fi
13011AR=$ac_cv_prog_AR
13012if test -n "$AR"; then
13013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13014printf "%s\n" "$AR" >&6; }
13015else
13016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017printf "%s\n" "no" >&6; }
13018fi
13019
13020
13021    test -n "$AR" && break
13022  done
13023fi
13024if test -z "$AR"; then
13025  ac_ct_AR=$AR
13026  for ac_prog in ar
13027do
13028  # Extract the first word of "$ac_prog", so it can be a program name with args.
13029set dummy $ac_prog; ac_word=$2
13030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13031printf %s "checking for $ac_word... " >&6; }
13032if test ${ac_cv_prog_ac_ct_AR+y}
13033then :
13034  printf %s "(cached) " >&6
13035else $as_nop
13036  if test -n "$ac_ct_AR"; then
13037  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13038else
13039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042  IFS=$as_save_IFS
13043  case $as_dir in #(((
13044    '') as_dir=./ ;;
13045    */) ;;
13046    *) as_dir=$as_dir/ ;;
13047  esac
13048    for ac_exec_ext in '' $ac_executable_extensions; do
13049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13050    ac_cv_prog_ac_ct_AR="$ac_prog"
13051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13052    break 2
13053  fi
13054done
13055  done
13056IFS=$as_save_IFS
13057
13058fi
13059fi
13060ac_ct_AR=$ac_cv_prog_ac_ct_AR
13061if test -n "$ac_ct_AR"; then
13062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13063printf "%s\n" "$ac_ct_AR" >&6; }
13064else
13065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066printf "%s\n" "no" >&6; }
13067fi
13068
13069
13070  test -n "$ac_ct_AR" && break
13071done
13072
13073  if test "x$ac_ct_AR" = x; then
13074    AR="false"
13075  else
13076    case $cross_compiling:$ac_tool_warned in
13077yes:)
13078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13079printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13080ac_tool_warned=yes ;;
13081esac
13082    AR=$ac_ct_AR
13083  fi
13084fi
13085
13086: ${AR=ar}
13087
13088
13089
13090
13091
13092
13093# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13094# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13095# higher priority because thats what people were doing historically (setting
13096# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13097# variable obsoleted/removed.
13098
13099test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13100lt_ar_flags=$AR_FLAGS
13101
13102
13103
13104
13105
13106
13107# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13108# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13109
13110
13111
13112
13113
13114
13115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13116printf %s "checking for archiver @FILE support... " >&6; }
13117if test ${lt_cv_ar_at_file+y}
13118then :
13119  printf %s "(cached) " >&6
13120else $as_nop
13121  lt_cv_ar_at_file=no
13122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123/* end confdefs.h.  */
13124
13125int
13126main (void)
13127{
13128
13129  ;
13130  return 0;
13131}
13132_ACEOF
13133if ac_fn_c_try_compile "$LINENO"
13134then :
13135  echo conftest.$ac_objext > conftest.lst
13136      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13137      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13138  (eval $lt_ar_try) 2>&5
13139  ac_status=$?
13140  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13141  test $ac_status = 0; }
13142      if test 0 -eq "$ac_status"; then
13143	# Ensure the archiver fails upon bogus file names.
13144	rm -f conftest.$ac_objext libconftest.a
13145	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13146  (eval $lt_ar_try) 2>&5
13147  ac_status=$?
13148  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149  test $ac_status = 0; }
13150	if test 0 -ne "$ac_status"; then
13151          lt_cv_ar_at_file=@
13152        fi
13153      fi
13154      rm -f conftest.* libconftest.a
13155
13156fi
13157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13158
13159fi
13160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13161printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13162
13163if test no = "$lt_cv_ar_at_file"; then
13164  archiver_list_spec=
13165else
13166  archiver_list_spec=$lt_cv_ar_at_file
13167fi
13168
13169
13170
13171
13172
13173
13174
13175if test -n "$ac_tool_prefix"; then
13176  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13177set dummy ${ac_tool_prefix}strip; ac_word=$2
13178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179printf %s "checking for $ac_word... " >&6; }
13180if test ${ac_cv_prog_STRIP+y}
13181then :
13182  printf %s "(cached) " >&6
13183else $as_nop
13184  if test -n "$STRIP"; then
13185  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13186else
13187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $PATH
13189do
13190  IFS=$as_save_IFS
13191  case $as_dir in #(((
13192    '') as_dir=./ ;;
13193    */) ;;
13194    *) as_dir=$as_dir/ ;;
13195  esac
13196    for ac_exec_ext in '' $ac_executable_extensions; do
13197  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13198    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13199    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13200    break 2
13201  fi
13202done
13203  done
13204IFS=$as_save_IFS
13205
13206fi
13207fi
13208STRIP=$ac_cv_prog_STRIP
13209if test -n "$STRIP"; then
13210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13211printf "%s\n" "$STRIP" >&6; }
13212else
13213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13214printf "%s\n" "no" >&6; }
13215fi
13216
13217
13218fi
13219if test -z "$ac_cv_prog_STRIP"; then
13220  ac_ct_STRIP=$STRIP
13221  # Extract the first word of "strip", so it can be a program name with args.
13222set dummy strip; ac_word=$2
13223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224printf %s "checking for $ac_word... " >&6; }
13225if test ${ac_cv_prog_ac_ct_STRIP+y}
13226then :
13227  printf %s "(cached) " >&6
13228else $as_nop
13229  if test -n "$ac_ct_STRIP"; then
13230  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13231else
13232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233for as_dir in $PATH
13234do
13235  IFS=$as_save_IFS
13236  case $as_dir in #(((
13237    '') as_dir=./ ;;
13238    */) ;;
13239    *) as_dir=$as_dir/ ;;
13240  esac
13241    for ac_exec_ext in '' $ac_executable_extensions; do
13242  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13243    ac_cv_prog_ac_ct_STRIP="strip"
13244    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13245    break 2
13246  fi
13247done
13248  done
13249IFS=$as_save_IFS
13250
13251fi
13252fi
13253ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13254if test -n "$ac_ct_STRIP"; then
13255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13256printf "%s\n" "$ac_ct_STRIP" >&6; }
13257else
13258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259printf "%s\n" "no" >&6; }
13260fi
13261
13262  if test "x$ac_ct_STRIP" = x; then
13263    STRIP=":"
13264  else
13265    case $cross_compiling:$ac_tool_warned in
13266yes:)
13267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13268printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13269ac_tool_warned=yes ;;
13270esac
13271    STRIP=$ac_ct_STRIP
13272  fi
13273else
13274  STRIP="$ac_cv_prog_STRIP"
13275fi
13276
13277test -z "$STRIP" && STRIP=:
13278
13279
13280
13281
13282
13283
13284if test -n "$ac_tool_prefix"; then
13285  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13286set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288printf %s "checking for $ac_word... " >&6; }
13289if test ${ac_cv_prog_RANLIB+y}
13290then :
13291  printf %s "(cached) " >&6
13292else $as_nop
13293  if test -n "$RANLIB"; then
13294  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13295else
13296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297for as_dir in $PATH
13298do
13299  IFS=$as_save_IFS
13300  case $as_dir in #(((
13301    '') as_dir=./ ;;
13302    */) ;;
13303    *) as_dir=$as_dir/ ;;
13304  esac
13305    for ac_exec_ext in '' $ac_executable_extensions; do
13306  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13307    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13308    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13309    break 2
13310  fi
13311done
13312  done
13313IFS=$as_save_IFS
13314
13315fi
13316fi
13317RANLIB=$ac_cv_prog_RANLIB
13318if test -n "$RANLIB"; then
13319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13320printf "%s\n" "$RANLIB" >&6; }
13321else
13322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323printf "%s\n" "no" >&6; }
13324fi
13325
13326
13327fi
13328if test -z "$ac_cv_prog_RANLIB"; then
13329  ac_ct_RANLIB=$RANLIB
13330  # Extract the first word of "ranlib", so it can be a program name with args.
13331set dummy ranlib; ac_word=$2
13332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333printf %s "checking for $ac_word... " >&6; }
13334if test ${ac_cv_prog_ac_ct_RANLIB+y}
13335then :
13336  printf %s "(cached) " >&6
13337else $as_nop
13338  if test -n "$ac_ct_RANLIB"; then
13339  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13340else
13341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342for as_dir in $PATH
13343do
13344  IFS=$as_save_IFS
13345  case $as_dir in #(((
13346    '') as_dir=./ ;;
13347    */) ;;
13348    *) as_dir=$as_dir/ ;;
13349  esac
13350    for ac_exec_ext in '' $ac_executable_extensions; do
13351  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13352    ac_cv_prog_ac_ct_RANLIB="ranlib"
13353    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13354    break 2
13355  fi
13356done
13357  done
13358IFS=$as_save_IFS
13359
13360fi
13361fi
13362ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13363if test -n "$ac_ct_RANLIB"; then
13364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13365printf "%s\n" "$ac_ct_RANLIB" >&6; }
13366else
13367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368printf "%s\n" "no" >&6; }
13369fi
13370
13371  if test "x$ac_ct_RANLIB" = x; then
13372    RANLIB=":"
13373  else
13374    case $cross_compiling:$ac_tool_warned in
13375yes:)
13376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13377printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13378ac_tool_warned=yes ;;
13379esac
13380    RANLIB=$ac_ct_RANLIB
13381  fi
13382else
13383  RANLIB="$ac_cv_prog_RANLIB"
13384fi
13385
13386test -z "$RANLIB" && RANLIB=:
13387
13388
13389
13390
13391
13392
13393# Determine commands to create old-style static archives.
13394old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13395old_postinstall_cmds='chmod 644 $oldlib'
13396old_postuninstall_cmds=
13397
13398if test -n "$RANLIB"; then
13399  case $host_os in
13400  bitrig* | openbsd*)
13401    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13402    ;;
13403  *)
13404    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13405    ;;
13406  esac
13407  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13408fi
13409
13410case $host_os in
13411  darwin*)
13412    lock_old_archive_extraction=yes ;;
13413  *)
13414    lock_old_archive_extraction=no ;;
13415esac
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455# If no C compiler was specified, use CC.
13456LTCC=${LTCC-"$CC"}
13457
13458# If no C compiler flags were specified, use CFLAGS.
13459LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13460
13461# Allow CC to be a program name with arguments.
13462compiler=$CC
13463
13464
13465# Check for command to grab the raw symbol name followed by C symbol from nm.
13466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13467printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13468if test ${lt_cv_sys_global_symbol_pipe+y}
13469then :
13470  printf %s "(cached) " >&6
13471else $as_nop
13472
13473# These are sane defaults that work on at least a few old systems.
13474# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13475
13476# Character class describing NM global symbol codes.
13477symcode='[BCDEGRST]'
13478
13479# Regexp to match symbols that can be accessed directly from C.
13480sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13481
13482# Define system-specific variables.
13483case $host_os in
13484aix*)
13485  symcode='[BCDT]'
13486  ;;
13487cygwin* | mingw* | pw32* | cegcc*)
13488  symcode='[ABCDGISTW]'
13489  ;;
13490hpux*)
13491  if test ia64 = "$host_cpu"; then
13492    symcode='[ABCDEGRST]'
13493  fi
13494  ;;
13495irix* | nonstopux*)
13496  symcode='[BCDEGRST]'
13497  ;;
13498osf*)
13499  symcode='[BCDEGQRST]'
13500  ;;
13501solaris*)
13502  symcode='[BDRT]'
13503  ;;
13504sco3.2v5*)
13505  symcode='[DT]'
13506  ;;
13507sysv4.2uw2*)
13508  symcode='[DT]'
13509  ;;
13510sysv5* | sco5v6* | unixware* | OpenUNIX*)
13511  symcode='[ABDT]'
13512  ;;
13513sysv4)
13514  symcode='[DFNSTU]'
13515  ;;
13516esac
13517
13518# If we're using GNU nm, then use its standard symbol codes.
13519case `$NM -V 2>&1` in
13520*GNU* | *'with BFD'*)
13521  symcode='[ABCDGIRSTW]' ;;
13522esac
13523
13524if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13525  # Gets list of data symbols to import.
13526  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13527  # Adjust the below global symbol transforms to fixup imported variables.
13528  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13529  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13530  lt_c_name_lib_hook="\
13531  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13532  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13533else
13534  # Disable hooks by default.
13535  lt_cv_sys_global_symbol_to_import=
13536  lt_cdecl_hook=
13537  lt_c_name_hook=
13538  lt_c_name_lib_hook=
13539fi
13540
13541# Transform an extracted symbol line into a proper C declaration.
13542# Some systems (esp. on ia64) link data and code symbols differently,
13543# so use this general approach.
13544lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13545$lt_cdecl_hook\
13546" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13547" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13548
13549# Transform an extracted symbol line into symbol name and symbol address
13550lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13551$lt_c_name_hook\
13552" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13553" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13554
13555# Transform an extracted symbol line into symbol name with lib prefix and
13556# symbol address.
13557lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13558$lt_c_name_lib_hook\
13559" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13560" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13561" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13562
13563# Handle CRLF in mingw tool chain
13564opt_cr=
13565case $build_os in
13566mingw*)
13567  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13568  ;;
13569esac
13570
13571# Try without a prefix underscore, then with it.
13572for ac_symprfx in "" "_"; do
13573
13574  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13575  symxfrm="\\1 $ac_symprfx\\2 \\2"
13576
13577  # Write the raw and C identifiers.
13578  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13579    # Fake it for dumpbin and say T for any non-static function,
13580    # D for any global variable and I for any imported variable.
13581    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13582    # which start with @ or ?.
13583    lt_cv_sys_global_symbol_pipe="$AWK '"\
13584"     {last_section=section; section=\$ 3};"\
13585"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13586"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13587"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13588"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13589"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13590"     \$ 0!~/External *\|/{next};"\
13591"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13592"     {if(hide[section]) next};"\
13593"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13594"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13595"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13596"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13597"     ' prfx=^$ac_symprfx"
13598  else
13599    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13600  fi
13601  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13602
13603  # Check to see that the pipe works correctly.
13604  pipe_works=no
13605
13606  rm -f conftest*
13607  cat > conftest.$ac_ext <<_LT_EOF
13608#ifdef __cplusplus
13609extern "C" {
13610#endif
13611char nm_test_var;
13612void nm_test_func(void);
13613void nm_test_func(void){}
13614#ifdef __cplusplus
13615}
13616#endif
13617int main(){nm_test_var='a';nm_test_func();return(0);}
13618_LT_EOF
13619
13620  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13621  (eval $ac_compile) 2>&5
13622  ac_status=$?
13623  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624  test $ac_status = 0; }; then
13625    # Now try to grab the symbols.
13626    nlist=conftest.nm
13627    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13628  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13629  ac_status=$?
13630  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13631  test $ac_status = 0; } && test -s "$nlist"; then
13632      # Try sorting and uniquifying the output.
13633      if sort "$nlist" | uniq > "$nlist"T; then
13634	mv -f "$nlist"T "$nlist"
13635      else
13636	rm -f "$nlist"T
13637      fi
13638
13639      # Make sure that we snagged all the symbols we need.
13640      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13641	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13642	  cat <<_LT_EOF > conftest.$ac_ext
13643/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13644#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13645/* DATA imports from DLLs on WIN32 can't be const, because runtime
13646   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13647# define LT_DLSYM_CONST
13648#elif defined __osf__
13649/* This system does not cope well with relocations in const data.  */
13650# define LT_DLSYM_CONST
13651#else
13652# define LT_DLSYM_CONST const
13653#endif
13654
13655#ifdef __cplusplus
13656extern "C" {
13657#endif
13658
13659_LT_EOF
13660	  # Now generate the symbol file.
13661	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13662
13663	  cat <<_LT_EOF >> conftest.$ac_ext
13664
13665/* The mapping between symbol names and symbols.  */
13666LT_DLSYM_CONST struct {
13667  const char *name;
13668  void       *address;
13669}
13670lt__PROGRAM__LTX_preloaded_symbols[] =
13671{
13672  { "@PROGRAM@", (void *) 0 },
13673_LT_EOF
13674	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13675	  cat <<\_LT_EOF >> conftest.$ac_ext
13676  {0, (void *) 0}
13677};
13678
13679/* This works around a problem in FreeBSD linker */
13680#ifdef FREEBSD_WORKAROUND
13681static const void *lt_preloaded_setup() {
13682  return lt__PROGRAM__LTX_preloaded_symbols;
13683}
13684#endif
13685
13686#ifdef __cplusplus
13687}
13688#endif
13689_LT_EOF
13690	  # Now try linking the two files.
13691	  mv conftest.$ac_objext conftstm.$ac_objext
13692	  lt_globsym_save_LIBS=$LIBS
13693	  lt_globsym_save_CFLAGS=$CFLAGS
13694	  LIBS=conftstm.$ac_objext
13695	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13696	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13697  (eval $ac_link) 2>&5
13698  ac_status=$?
13699  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13700  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13701	    pipe_works=yes
13702	  fi
13703	  LIBS=$lt_globsym_save_LIBS
13704	  CFLAGS=$lt_globsym_save_CFLAGS
13705	else
13706	  echo "cannot find nm_test_func in $nlist" >&5
13707	fi
13708      else
13709	echo "cannot find nm_test_var in $nlist" >&5
13710      fi
13711    else
13712      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13713    fi
13714  else
13715    echo "$progname: failed program was:" >&5
13716    cat conftest.$ac_ext >&5
13717  fi
13718  rm -rf conftest* conftst*
13719
13720  # Do not use the global_symbol_pipe unless it works.
13721  if test yes = "$pipe_works"; then
13722    break
13723  else
13724    lt_cv_sys_global_symbol_pipe=
13725  fi
13726done
13727
13728fi
13729
13730if test -z "$lt_cv_sys_global_symbol_pipe"; then
13731  lt_cv_sys_global_symbol_to_cdecl=
13732fi
13733if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13735printf "%s\n" "failed" >&6; }
13736else
13737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13738printf "%s\n" "ok" >&6; }
13739fi
13740
13741# Response file support.
13742if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13743  nm_file_list_spec='@'
13744elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13745  nm_file_list_spec='@'
13746fi
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13785printf %s "checking for sysroot... " >&6; }
13786
13787# Check whether --with-sysroot was given.
13788if test ${with_sysroot+y}
13789then :
13790  withval=$with_sysroot;
13791else $as_nop
13792  with_sysroot=no
13793fi
13794
13795
13796lt_sysroot=
13797case $with_sysroot in #(
13798 yes)
13799   if test yes = "$GCC"; then
13800     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13801   fi
13802   ;; #(
13803 /*)
13804   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13805   ;; #(
13806 no|'')
13807   ;; #(
13808 *)
13809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13810printf "%s\n" "$with_sysroot" >&6; }
13811   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13812   ;;
13813esac
13814
13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13816printf "%s\n" "${lt_sysroot:-no}" >&6; }
13817
13818
13819
13820
13821
13822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13823printf %s "checking for a working dd... " >&6; }
13824if test ${ac_cv_path_lt_DD+y}
13825then :
13826  printf %s "(cached) " >&6
13827else $as_nop
13828  printf 0123456789abcdef0123456789abcdef >conftest.i
13829cat conftest.i conftest.i >conftest2.i
13830: ${lt_DD:=$DD}
13831if test -z "$lt_DD"; then
13832  ac_path_lt_DD_found=false
13833  # Loop through the user's path and test for each of PROGNAME-LIST
13834  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835for as_dir in $PATH
13836do
13837  IFS=$as_save_IFS
13838  case $as_dir in #(((
13839    '') as_dir=./ ;;
13840    */) ;;
13841    *) as_dir=$as_dir/ ;;
13842  esac
13843    for ac_prog in dd
13844   do
13845    for ac_exec_ext in '' $ac_executable_extensions; do
13846      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13847      as_fn_executable_p "$ac_path_lt_DD" || continue
13848if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13849  cmp -s conftest.i conftest.out \
13850  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13851fi
13852      $ac_path_lt_DD_found && break 3
13853    done
13854  done
13855  done
13856IFS=$as_save_IFS
13857  if test -z "$ac_cv_path_lt_DD"; then
13858    :
13859  fi
13860else
13861  ac_cv_path_lt_DD=$lt_DD
13862fi
13863
13864rm -f conftest.i conftest2.i conftest.out
13865fi
13866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13867printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13868
13869
13870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13871printf %s "checking how to truncate binary pipes... " >&6; }
13872if test ${lt_cv_truncate_bin+y}
13873then :
13874  printf %s "(cached) " >&6
13875else $as_nop
13876  printf 0123456789abcdef0123456789abcdef >conftest.i
13877cat conftest.i conftest.i >conftest2.i
13878lt_cv_truncate_bin=
13879if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13880  cmp -s conftest.i conftest.out \
13881  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13882fi
13883rm -f conftest.i conftest2.i conftest.out
13884test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13885fi
13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13887printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13888
13889
13890
13891
13892
13893
13894
13895# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13896func_cc_basename ()
13897{
13898    for cc_temp in $*""; do
13899      case $cc_temp in
13900        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13901        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13902        \-*) ;;
13903        *) break;;
13904      esac
13905    done
13906    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13907}
13908
13909# Check whether --enable-libtool-lock was given.
13910if test ${enable_libtool_lock+y}
13911then :
13912  enableval=$enable_libtool_lock;
13913fi
13914
13915test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13916
13917# Some flags need to be propagated to the compiler or linker for good
13918# libtool support.
13919case $host in
13920ia64-*-hpux*)
13921  # Find out what ABI is being produced by ac_compile, and set mode
13922  # options accordingly.
13923  echo 'int i;' > conftest.$ac_ext
13924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13925  (eval $ac_compile) 2>&5
13926  ac_status=$?
13927  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928  test $ac_status = 0; }; then
13929    case `$FILECMD conftest.$ac_objext` in
13930      *ELF-32*)
13931	HPUX_IA64_MODE=32
13932	;;
13933      *ELF-64*)
13934	HPUX_IA64_MODE=64
13935	;;
13936    esac
13937  fi
13938  rm -rf conftest*
13939  ;;
13940*-*-irix6*)
13941  # Find out what ABI is being produced by ac_compile, and set linker
13942  # options accordingly.
13943  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13944  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13945  (eval $ac_compile) 2>&5
13946  ac_status=$?
13947  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948  test $ac_status = 0; }; then
13949    if test yes = "$lt_cv_prog_gnu_ld"; then
13950      case `$FILECMD conftest.$ac_objext` in
13951	*32-bit*)
13952	  LD="${LD-ld} -melf32bsmip"
13953	  ;;
13954	*N32*)
13955	  LD="${LD-ld} -melf32bmipn32"
13956	  ;;
13957	*64-bit*)
13958	  LD="${LD-ld} -melf64bmip"
13959	;;
13960      esac
13961    else
13962      case `$FILECMD conftest.$ac_objext` in
13963	*32-bit*)
13964	  LD="${LD-ld} -32"
13965	  ;;
13966	*N32*)
13967	  LD="${LD-ld} -n32"
13968	  ;;
13969	*64-bit*)
13970	  LD="${LD-ld} -64"
13971	  ;;
13972      esac
13973    fi
13974  fi
13975  rm -rf conftest*
13976  ;;
13977
13978mips64*-*linux*)
13979  # Find out what ABI is being produced by ac_compile, and set linker
13980  # options accordingly.
13981  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13982  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13983  (eval $ac_compile) 2>&5
13984  ac_status=$?
13985  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986  test $ac_status = 0; }; then
13987    emul=elf
13988    case `$FILECMD conftest.$ac_objext` in
13989      *32-bit*)
13990	emul="${emul}32"
13991	;;
13992      *64-bit*)
13993	emul="${emul}64"
13994	;;
13995    esac
13996    case `$FILECMD conftest.$ac_objext` in
13997      *MSB*)
13998	emul="${emul}btsmip"
13999	;;
14000      *LSB*)
14001	emul="${emul}ltsmip"
14002	;;
14003    esac
14004    case `$FILECMD conftest.$ac_objext` in
14005      *N32*)
14006	emul="${emul}n32"
14007	;;
14008    esac
14009    LD="${LD-ld} -m $emul"
14010  fi
14011  rm -rf conftest*
14012  ;;
14013
14014x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14015s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14016  # Find out what ABI is being produced by ac_compile, and set linker
14017  # options accordingly.  Note that the listed cases only cover the
14018  # situations where additional linker options are needed (such as when
14019  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14020  # vice versa); the common cases where no linker options are needed do
14021  # not appear in the list.
14022  echo 'int i;' > conftest.$ac_ext
14023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14024  (eval $ac_compile) 2>&5
14025  ac_status=$?
14026  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027  test $ac_status = 0; }; then
14028    case `$FILECMD conftest.o` in
14029      *32-bit*)
14030	case $host in
14031	  x86_64-*kfreebsd*-gnu)
14032	    LD="${LD-ld} -m elf_i386_fbsd"
14033	    ;;
14034	  x86_64-*linux*)
14035	    case `$FILECMD conftest.o` in
14036	      *x86-64*)
14037		LD="${LD-ld} -m elf32_x86_64"
14038		;;
14039	      *)
14040		LD="${LD-ld} -m elf_i386"
14041		;;
14042	    esac
14043	    ;;
14044	  powerpc64le-*linux*)
14045	    LD="${LD-ld} -m elf32lppclinux"
14046	    ;;
14047	  powerpc64-*linux*)
14048	    LD="${LD-ld} -m elf32ppclinux"
14049	    ;;
14050	  s390x-*linux*)
14051	    LD="${LD-ld} -m elf_s390"
14052	    ;;
14053	  sparc64-*linux*)
14054	    LD="${LD-ld} -m elf32_sparc"
14055	    ;;
14056	esac
14057	;;
14058      *64-bit*)
14059	case $host in
14060	  x86_64-*kfreebsd*-gnu)
14061	    LD="${LD-ld} -m elf_x86_64_fbsd"
14062	    ;;
14063	  x86_64-*linux*)
14064	    LD="${LD-ld} -m elf_x86_64"
14065	    ;;
14066	  powerpcle-*linux*|powerpc64le-*linux*)
14067	    LD="${LD-ld} -m elf64lppc"
14068	    ;;
14069	  powerpc-*linux*|powerpc64-*linux*)
14070	    LD="${LD-ld} -m elf64ppc"
14071	    ;;
14072	  s390*-*linux*|s390*-*tpf*)
14073	    LD="${LD-ld} -m elf64_s390"
14074	    ;;
14075	  sparc*-*linux*)
14076	    LD="${LD-ld} -m elf64_sparc"
14077	    ;;
14078	esac
14079	;;
14080    esac
14081  fi
14082  rm -rf conftest*
14083  ;;
14084
14085*-*-sco3.2v5*)
14086  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14087  SAVE_CFLAGS=$CFLAGS
14088  CFLAGS="$CFLAGS -belf"
14089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14090printf %s "checking whether the C compiler needs -belf... " >&6; }
14091if test ${lt_cv_cc_needs_belf+y}
14092then :
14093  printf %s "(cached) " >&6
14094else $as_nop
14095  ac_ext=c
14096ac_cpp='$CPP $CPPFLAGS'
14097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102/* end confdefs.h.  */
14103
14104int
14105main (void)
14106{
14107
14108  ;
14109  return 0;
14110}
14111_ACEOF
14112if ac_fn_c_try_link "$LINENO"
14113then :
14114  lt_cv_cc_needs_belf=yes
14115else $as_nop
14116  lt_cv_cc_needs_belf=no
14117fi
14118rm -f core conftest.err conftest.$ac_objext conftest.beam \
14119    conftest$ac_exeext conftest.$ac_ext
14120     ac_ext=c
14121ac_cpp='$CPP $CPPFLAGS'
14122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124ac_compiler_gnu=$ac_cv_c_compiler_gnu
14125
14126fi
14127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14128printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14129  if test yes != "$lt_cv_cc_needs_belf"; then
14130    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14131    CFLAGS=$SAVE_CFLAGS
14132  fi
14133  ;;
14134*-*solaris*)
14135  # Find out what ABI is being produced by ac_compile, and set linker
14136  # options accordingly.
14137  echo 'int i;' > conftest.$ac_ext
14138  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14139  (eval $ac_compile) 2>&5
14140  ac_status=$?
14141  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14142  test $ac_status = 0; }; then
14143    case `$FILECMD conftest.o` in
14144    *64-bit*)
14145      case $lt_cv_prog_gnu_ld in
14146      yes*)
14147        case $host in
14148        i?86-*-solaris*|x86_64-*-solaris*)
14149          LD="${LD-ld} -m elf_x86_64"
14150          ;;
14151        sparc*-*-solaris*)
14152          LD="${LD-ld} -m elf64_sparc"
14153          ;;
14154        esac
14155        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14156        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14157          LD=${LD-ld}_sol2
14158        fi
14159        ;;
14160      *)
14161	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14162	  LD="${LD-ld} -64"
14163	fi
14164	;;
14165      esac
14166      ;;
14167    esac
14168  fi
14169  rm -rf conftest*
14170  ;;
14171esac
14172
14173need_locks=$enable_libtool_lock
14174
14175if test -n "$ac_tool_prefix"; then
14176  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14177set dummy ${ac_tool_prefix}mt; ac_word=$2
14178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14179printf %s "checking for $ac_word... " >&6; }
14180if test ${ac_cv_prog_MANIFEST_TOOL+y}
14181then :
14182  printf %s "(cached) " >&6
14183else $as_nop
14184  if test -n "$MANIFEST_TOOL"; then
14185  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14186else
14187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188for as_dir in $PATH
14189do
14190  IFS=$as_save_IFS
14191  case $as_dir in #(((
14192    '') as_dir=./ ;;
14193    */) ;;
14194    *) as_dir=$as_dir/ ;;
14195  esac
14196    for ac_exec_ext in '' $ac_executable_extensions; do
14197  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14198    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14199    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14200    break 2
14201  fi
14202done
14203  done
14204IFS=$as_save_IFS
14205
14206fi
14207fi
14208MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14209if test -n "$MANIFEST_TOOL"; then
14210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14211printf "%s\n" "$MANIFEST_TOOL" >&6; }
14212else
14213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14214printf "%s\n" "no" >&6; }
14215fi
14216
14217
14218fi
14219if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14220  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14221  # Extract the first word of "mt", so it can be a program name with args.
14222set dummy mt; ac_word=$2
14223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14224printf %s "checking for $ac_word... " >&6; }
14225if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14226then :
14227  printf %s "(cached) " >&6
14228else $as_nop
14229  if test -n "$ac_ct_MANIFEST_TOOL"; then
14230  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14231else
14232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233for as_dir in $PATH
14234do
14235  IFS=$as_save_IFS
14236  case $as_dir in #(((
14237    '') as_dir=./ ;;
14238    */) ;;
14239    *) as_dir=$as_dir/ ;;
14240  esac
14241    for ac_exec_ext in '' $ac_executable_extensions; do
14242  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14243    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14244    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14245    break 2
14246  fi
14247done
14248  done
14249IFS=$as_save_IFS
14250
14251fi
14252fi
14253ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14254if test -n "$ac_ct_MANIFEST_TOOL"; then
14255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14256printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14257else
14258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259printf "%s\n" "no" >&6; }
14260fi
14261
14262  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14263    MANIFEST_TOOL=":"
14264  else
14265    case $cross_compiling:$ac_tool_warned in
14266yes:)
14267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14268printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14269ac_tool_warned=yes ;;
14270esac
14271    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14272  fi
14273else
14274  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14275fi
14276
14277test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14279printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14280if test ${lt_cv_path_mainfest_tool+y}
14281then :
14282  printf %s "(cached) " >&6
14283else $as_nop
14284  lt_cv_path_mainfest_tool=no
14285  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14286  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14287  cat conftest.err >&5
14288  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14289    lt_cv_path_mainfest_tool=yes
14290  fi
14291  rm -f conftest*
14292fi
14293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14294printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14295if test yes != "$lt_cv_path_mainfest_tool"; then
14296  MANIFEST_TOOL=:
14297fi
14298
14299
14300
14301
14302
14303
14304  case $host_os in
14305    rhapsody* | darwin*)
14306    if test -n "$ac_tool_prefix"; then
14307  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14308set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14310printf %s "checking for $ac_word... " >&6; }
14311if test ${ac_cv_prog_DSYMUTIL+y}
14312then :
14313  printf %s "(cached) " >&6
14314else $as_nop
14315  if test -n "$DSYMUTIL"; then
14316  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14317else
14318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14319for as_dir in $PATH
14320do
14321  IFS=$as_save_IFS
14322  case $as_dir in #(((
14323    '') as_dir=./ ;;
14324    */) ;;
14325    *) as_dir=$as_dir/ ;;
14326  esac
14327    for ac_exec_ext in '' $ac_executable_extensions; do
14328  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14329    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14330    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14331    break 2
14332  fi
14333done
14334  done
14335IFS=$as_save_IFS
14336
14337fi
14338fi
14339DSYMUTIL=$ac_cv_prog_DSYMUTIL
14340if test -n "$DSYMUTIL"; then
14341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14342printf "%s\n" "$DSYMUTIL" >&6; }
14343else
14344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345printf "%s\n" "no" >&6; }
14346fi
14347
14348
14349fi
14350if test -z "$ac_cv_prog_DSYMUTIL"; then
14351  ac_ct_DSYMUTIL=$DSYMUTIL
14352  # Extract the first word of "dsymutil", so it can be a program name with args.
14353set dummy dsymutil; ac_word=$2
14354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14355printf %s "checking for $ac_word... " >&6; }
14356if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14357then :
14358  printf %s "(cached) " >&6
14359else $as_nop
14360  if test -n "$ac_ct_DSYMUTIL"; then
14361  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14362else
14363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364for as_dir in $PATH
14365do
14366  IFS=$as_save_IFS
14367  case $as_dir in #(((
14368    '') as_dir=./ ;;
14369    */) ;;
14370    *) as_dir=$as_dir/ ;;
14371  esac
14372    for ac_exec_ext in '' $ac_executable_extensions; do
14373  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14374    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14375    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14376    break 2
14377  fi
14378done
14379  done
14380IFS=$as_save_IFS
14381
14382fi
14383fi
14384ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14385if test -n "$ac_ct_DSYMUTIL"; then
14386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14387printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14388else
14389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390printf "%s\n" "no" >&6; }
14391fi
14392
14393  if test "x$ac_ct_DSYMUTIL" = x; then
14394    DSYMUTIL=":"
14395  else
14396    case $cross_compiling:$ac_tool_warned in
14397yes:)
14398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14399printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14400ac_tool_warned=yes ;;
14401esac
14402    DSYMUTIL=$ac_ct_DSYMUTIL
14403  fi
14404else
14405  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14406fi
14407
14408    if test -n "$ac_tool_prefix"; then
14409  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14410set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14412printf %s "checking for $ac_word... " >&6; }
14413if test ${ac_cv_prog_NMEDIT+y}
14414then :
14415  printf %s "(cached) " >&6
14416else $as_nop
14417  if test -n "$NMEDIT"; then
14418  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14419else
14420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421for as_dir in $PATH
14422do
14423  IFS=$as_save_IFS
14424  case $as_dir in #(((
14425    '') as_dir=./ ;;
14426    */) ;;
14427    *) as_dir=$as_dir/ ;;
14428  esac
14429    for ac_exec_ext in '' $ac_executable_extensions; do
14430  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14431    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14432    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14433    break 2
14434  fi
14435done
14436  done
14437IFS=$as_save_IFS
14438
14439fi
14440fi
14441NMEDIT=$ac_cv_prog_NMEDIT
14442if test -n "$NMEDIT"; then
14443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14444printf "%s\n" "$NMEDIT" >&6; }
14445else
14446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14447printf "%s\n" "no" >&6; }
14448fi
14449
14450
14451fi
14452if test -z "$ac_cv_prog_NMEDIT"; then
14453  ac_ct_NMEDIT=$NMEDIT
14454  # Extract the first word of "nmedit", so it can be a program name with args.
14455set dummy nmedit; ac_word=$2
14456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14457printf %s "checking for $ac_word... " >&6; }
14458if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14459then :
14460  printf %s "(cached) " >&6
14461else $as_nop
14462  if test -n "$ac_ct_NMEDIT"; then
14463  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14464else
14465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466for as_dir in $PATH
14467do
14468  IFS=$as_save_IFS
14469  case $as_dir in #(((
14470    '') as_dir=./ ;;
14471    */) ;;
14472    *) as_dir=$as_dir/ ;;
14473  esac
14474    for ac_exec_ext in '' $ac_executable_extensions; do
14475  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14476    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14477    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14478    break 2
14479  fi
14480done
14481  done
14482IFS=$as_save_IFS
14483
14484fi
14485fi
14486ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14487if test -n "$ac_ct_NMEDIT"; then
14488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14489printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14490else
14491  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492printf "%s\n" "no" >&6; }
14493fi
14494
14495  if test "x$ac_ct_NMEDIT" = x; then
14496    NMEDIT=":"
14497  else
14498    case $cross_compiling:$ac_tool_warned in
14499yes:)
14500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14501printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14502ac_tool_warned=yes ;;
14503esac
14504    NMEDIT=$ac_ct_NMEDIT
14505  fi
14506else
14507  NMEDIT="$ac_cv_prog_NMEDIT"
14508fi
14509
14510    if test -n "$ac_tool_prefix"; then
14511  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14512set dummy ${ac_tool_prefix}lipo; ac_word=$2
14513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514printf %s "checking for $ac_word... " >&6; }
14515if test ${ac_cv_prog_LIPO+y}
14516then :
14517  printf %s "(cached) " >&6
14518else $as_nop
14519  if test -n "$LIPO"; then
14520  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14521else
14522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14523for as_dir in $PATH
14524do
14525  IFS=$as_save_IFS
14526  case $as_dir in #(((
14527    '') as_dir=./ ;;
14528    */) ;;
14529    *) as_dir=$as_dir/ ;;
14530  esac
14531    for ac_exec_ext in '' $ac_executable_extensions; do
14532  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14533    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14534    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14535    break 2
14536  fi
14537done
14538  done
14539IFS=$as_save_IFS
14540
14541fi
14542fi
14543LIPO=$ac_cv_prog_LIPO
14544if test -n "$LIPO"; then
14545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14546printf "%s\n" "$LIPO" >&6; }
14547else
14548  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549printf "%s\n" "no" >&6; }
14550fi
14551
14552
14553fi
14554if test -z "$ac_cv_prog_LIPO"; then
14555  ac_ct_LIPO=$LIPO
14556  # Extract the first word of "lipo", so it can be a program name with args.
14557set dummy lipo; ac_word=$2
14558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559printf %s "checking for $ac_word... " >&6; }
14560if test ${ac_cv_prog_ac_ct_LIPO+y}
14561then :
14562  printf %s "(cached) " >&6
14563else $as_nop
14564  if test -n "$ac_ct_LIPO"; then
14565  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14566else
14567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568for as_dir in $PATH
14569do
14570  IFS=$as_save_IFS
14571  case $as_dir in #(((
14572    '') as_dir=./ ;;
14573    */) ;;
14574    *) as_dir=$as_dir/ ;;
14575  esac
14576    for ac_exec_ext in '' $ac_executable_extensions; do
14577  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14578    ac_cv_prog_ac_ct_LIPO="lipo"
14579    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14580    break 2
14581  fi
14582done
14583  done
14584IFS=$as_save_IFS
14585
14586fi
14587fi
14588ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14589if test -n "$ac_ct_LIPO"; then
14590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14591printf "%s\n" "$ac_ct_LIPO" >&6; }
14592else
14593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594printf "%s\n" "no" >&6; }
14595fi
14596
14597  if test "x$ac_ct_LIPO" = x; then
14598    LIPO=":"
14599  else
14600    case $cross_compiling:$ac_tool_warned in
14601yes:)
14602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14603printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14604ac_tool_warned=yes ;;
14605esac
14606    LIPO=$ac_ct_LIPO
14607  fi
14608else
14609  LIPO="$ac_cv_prog_LIPO"
14610fi
14611
14612    if test -n "$ac_tool_prefix"; then
14613  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14614set dummy ${ac_tool_prefix}otool; ac_word=$2
14615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14616printf %s "checking for $ac_word... " >&6; }
14617if test ${ac_cv_prog_OTOOL+y}
14618then :
14619  printf %s "(cached) " >&6
14620else $as_nop
14621  if test -n "$OTOOL"; then
14622  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14623else
14624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627  IFS=$as_save_IFS
14628  case $as_dir in #(((
14629    '') as_dir=./ ;;
14630    */) ;;
14631    *) as_dir=$as_dir/ ;;
14632  esac
14633    for ac_exec_ext in '' $ac_executable_extensions; do
14634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14635    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14637    break 2
14638  fi
14639done
14640  done
14641IFS=$as_save_IFS
14642
14643fi
14644fi
14645OTOOL=$ac_cv_prog_OTOOL
14646if test -n "$OTOOL"; then
14647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14648printf "%s\n" "$OTOOL" >&6; }
14649else
14650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651printf "%s\n" "no" >&6; }
14652fi
14653
14654
14655fi
14656if test -z "$ac_cv_prog_OTOOL"; then
14657  ac_ct_OTOOL=$OTOOL
14658  # Extract the first word of "otool", so it can be a program name with args.
14659set dummy otool; ac_word=$2
14660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661printf %s "checking for $ac_word... " >&6; }
14662if test ${ac_cv_prog_ac_ct_OTOOL+y}
14663then :
14664  printf %s "(cached) " >&6
14665else $as_nop
14666  if test -n "$ac_ct_OTOOL"; then
14667  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14668else
14669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670for as_dir in $PATH
14671do
14672  IFS=$as_save_IFS
14673  case $as_dir in #(((
14674    '') as_dir=./ ;;
14675    */) ;;
14676    *) as_dir=$as_dir/ ;;
14677  esac
14678    for ac_exec_ext in '' $ac_executable_extensions; do
14679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14680    ac_cv_prog_ac_ct_OTOOL="otool"
14681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14682    break 2
14683  fi
14684done
14685  done
14686IFS=$as_save_IFS
14687
14688fi
14689fi
14690ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14691if test -n "$ac_ct_OTOOL"; then
14692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14693printf "%s\n" "$ac_ct_OTOOL" >&6; }
14694else
14695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14696printf "%s\n" "no" >&6; }
14697fi
14698
14699  if test "x$ac_ct_OTOOL" = x; then
14700    OTOOL=":"
14701  else
14702    case $cross_compiling:$ac_tool_warned in
14703yes:)
14704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14705printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14706ac_tool_warned=yes ;;
14707esac
14708    OTOOL=$ac_ct_OTOOL
14709  fi
14710else
14711  OTOOL="$ac_cv_prog_OTOOL"
14712fi
14713
14714    if test -n "$ac_tool_prefix"; then
14715  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14716set dummy ${ac_tool_prefix}otool64; ac_word=$2
14717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14718printf %s "checking for $ac_word... " >&6; }
14719if test ${ac_cv_prog_OTOOL64+y}
14720then :
14721  printf %s "(cached) " >&6
14722else $as_nop
14723  if test -n "$OTOOL64"; then
14724  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14725else
14726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727for as_dir in $PATH
14728do
14729  IFS=$as_save_IFS
14730  case $as_dir in #(((
14731    '') as_dir=./ ;;
14732    */) ;;
14733    *) as_dir=$as_dir/ ;;
14734  esac
14735    for ac_exec_ext in '' $ac_executable_extensions; do
14736  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14737    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14739    break 2
14740  fi
14741done
14742  done
14743IFS=$as_save_IFS
14744
14745fi
14746fi
14747OTOOL64=$ac_cv_prog_OTOOL64
14748if test -n "$OTOOL64"; then
14749  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14750printf "%s\n" "$OTOOL64" >&6; }
14751else
14752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14753printf "%s\n" "no" >&6; }
14754fi
14755
14756
14757fi
14758if test -z "$ac_cv_prog_OTOOL64"; then
14759  ac_ct_OTOOL64=$OTOOL64
14760  # Extract the first word of "otool64", so it can be a program name with args.
14761set dummy otool64; ac_word=$2
14762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14763printf %s "checking for $ac_word... " >&6; }
14764if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14765then :
14766  printf %s "(cached) " >&6
14767else $as_nop
14768  if test -n "$ac_ct_OTOOL64"; then
14769  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14770else
14771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772for as_dir in $PATH
14773do
14774  IFS=$as_save_IFS
14775  case $as_dir in #(((
14776    '') as_dir=./ ;;
14777    */) ;;
14778    *) as_dir=$as_dir/ ;;
14779  esac
14780    for ac_exec_ext in '' $ac_executable_extensions; do
14781  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14782    ac_cv_prog_ac_ct_OTOOL64="otool64"
14783    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14784    break 2
14785  fi
14786done
14787  done
14788IFS=$as_save_IFS
14789
14790fi
14791fi
14792ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14793if test -n "$ac_ct_OTOOL64"; then
14794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14795printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14796else
14797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798printf "%s\n" "no" >&6; }
14799fi
14800
14801  if test "x$ac_ct_OTOOL64" = x; then
14802    OTOOL64=":"
14803  else
14804    case $cross_compiling:$ac_tool_warned in
14805yes:)
14806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14807printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14808ac_tool_warned=yes ;;
14809esac
14810    OTOOL64=$ac_ct_OTOOL64
14811  fi
14812else
14813  OTOOL64="$ac_cv_prog_OTOOL64"
14814fi
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14843printf %s "checking for -single_module linker flag... " >&6; }
14844if test ${lt_cv_apple_cc_single_mod+y}
14845then :
14846  printf %s "(cached) " >&6
14847else $as_nop
14848  lt_cv_apple_cc_single_mod=no
14849      if test -z "$LT_MULTI_MODULE"; then
14850	# By default we will add the -single_module flag. You can override
14851	# by either setting the environment variable LT_MULTI_MODULE
14852	# non-empty at configure time, or by adding -multi_module to the
14853	# link flags.
14854	rm -rf libconftest.dylib*
14855	echo "int foo(void){return 1;}" > conftest.c
14856	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14857-dynamiclib -Wl,-single_module conftest.c" >&5
14858	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14859	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14860        _lt_result=$?
14861	# If there is a non-empty error log, and "single_module"
14862	# appears in it, assume the flag caused a linker warning
14863        if test -s conftest.err && $GREP single_module conftest.err; then
14864	  cat conftest.err >&5
14865	# Otherwise, if the output was created with a 0 exit code from
14866	# the compiler, it worked.
14867	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14868	  lt_cv_apple_cc_single_mod=yes
14869	else
14870	  cat conftest.err >&5
14871	fi
14872	rm -rf libconftest.dylib*
14873	rm -f conftest.*
14874      fi
14875fi
14876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14877printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14878
14879    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14880printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14881if test ${lt_cv_ld_exported_symbols_list+y}
14882then :
14883  printf %s "(cached) " >&6
14884else $as_nop
14885  lt_cv_ld_exported_symbols_list=no
14886      save_LDFLAGS=$LDFLAGS
14887      echo "_main" > conftest.sym
14888      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14889      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890/* end confdefs.h.  */
14891
14892int
14893main (void)
14894{
14895
14896  ;
14897  return 0;
14898}
14899_ACEOF
14900if ac_fn_c_try_link "$LINENO"
14901then :
14902  lt_cv_ld_exported_symbols_list=yes
14903else $as_nop
14904  lt_cv_ld_exported_symbols_list=no
14905fi
14906rm -f core conftest.err conftest.$ac_objext conftest.beam \
14907    conftest$ac_exeext conftest.$ac_ext
14908	LDFLAGS=$save_LDFLAGS
14909
14910fi
14911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14912printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14913
14914    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14915printf %s "checking for -force_load linker flag... " >&6; }
14916if test ${lt_cv_ld_force_load+y}
14917then :
14918  printf %s "(cached) " >&6
14919else $as_nop
14920  lt_cv_ld_force_load=no
14921      cat > conftest.c << _LT_EOF
14922int forced_loaded() { return 2;}
14923_LT_EOF
14924      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14925      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14926      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14927      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14928      echo "$RANLIB libconftest.a" >&5
14929      $RANLIB libconftest.a 2>&5
14930      cat > conftest.c << _LT_EOF
14931int main() { return 0;}
14932_LT_EOF
14933      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14934      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14935      _lt_result=$?
14936      if test -s conftest.err && $GREP force_load conftest.err; then
14937	cat conftest.err >&5
14938      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14939	lt_cv_ld_force_load=yes
14940      else
14941	cat conftest.err >&5
14942      fi
14943        rm -f conftest.err libconftest.a conftest conftest.c
14944        rm -rf conftest.dSYM
14945
14946fi
14947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14948printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14949    case $host_os in
14950    rhapsody* | darwin1.[012])
14951      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14952    darwin1.*)
14953      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14954    darwin*)
14955      case $MACOSX_DEPLOYMENT_TARGET,$host in
14956        10.[012],*|,*powerpc*-darwin[5-8]*)
14957          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14958        *)
14959          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14960      esac
14961    ;;
14962  esac
14963    if test yes = "$lt_cv_apple_cc_single_mod"; then
14964      _lt_dar_single_mod='$single_module'
14965    fi
14966    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14967      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14968    else
14969      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14970    fi
14971    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14972      _lt_dsymutil='~$DSYMUTIL $lib || :'
14973    else
14974      _lt_dsymutil=
14975    fi
14976    ;;
14977  esac
14978
14979# func_munge_path_list VARIABLE PATH
14980# -----------------------------------
14981# VARIABLE is name of variable containing _space_ separated list of
14982# directories to be munged by the contents of PATH, which is string
14983# having a format:
14984# "DIR[:DIR]:"
14985#       string "DIR[ DIR]" will be prepended to VARIABLE
14986# ":DIR[:DIR]"
14987#       string "DIR[ DIR]" will be appended to VARIABLE
14988# "DIRP[:DIRP]::[DIRA:]DIRA"
14989#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14990#       "DIRA[ DIRA]" will be appended to VARIABLE
14991# "DIR[:DIR]"
14992#       VARIABLE will be replaced by "DIR[ DIR]"
14993func_munge_path_list ()
14994{
14995    case x$2 in
14996    x)
14997        ;;
14998    *:)
14999        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15000        ;;
15001    x:*)
15002        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15003        ;;
15004    *::*)
15005        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15006        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15007        ;;
15008    *)
15009        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15010        ;;
15011    esac
15012}
15013
15014ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15015"
15016if test "x$ac_cv_header_dlfcn_h" = xyes
15017then :
15018  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15019
15020fi
15021
15022
15023
15024
15025
15026# Set options
15027
15028
15029
15030        enable_dlopen=no
15031
15032
15033  enable_win32_dll=no
15034
15035
15036            # Check whether --enable-shared was given.
15037if test ${enable_shared+y}
15038then :
15039  enableval=$enable_shared; p=${PACKAGE-default}
15040    case $enableval in
15041    yes) enable_shared=yes ;;
15042    no) enable_shared=no ;;
15043    *)
15044      enable_shared=no
15045      # Look at the argument we got.  We use all the common list separators.
15046      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15047      for pkg in $enableval; do
15048	IFS=$lt_save_ifs
15049	if test "X$pkg" = "X$p"; then
15050	  enable_shared=yes
15051	fi
15052      done
15053      IFS=$lt_save_ifs
15054      ;;
15055    esac
15056else $as_nop
15057  enable_shared=yes
15058fi
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070# Check whether --with-pic was given.
15071if test ${with_pic+y}
15072then :
15073  withval=$with_pic; lt_p=${PACKAGE-default}
15074    case $withval in
15075    yes|no) pic_mode=$withval ;;
15076    *)
15077      pic_mode=default
15078      # Look at the argument we got.  We use all the common list separators.
15079      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15080      for lt_pkg in $withval; do
15081	IFS=$lt_save_ifs
15082	if test "X$lt_pkg" = "X$lt_p"; then
15083	  pic_mode=yes
15084	fi
15085      done
15086      IFS=$lt_save_ifs
15087      ;;
15088    esac
15089else $as_nop
15090  pic_mode=default
15091fi
15092
15093
15094
15095
15096
15097
15098
15099
15100  # Check whether --enable-fast-install was given.
15101if test ${enable_fast_install+y}
15102then :
15103  enableval=$enable_fast_install; p=${PACKAGE-default}
15104    case $enableval in
15105    yes) enable_fast_install=yes ;;
15106    no) enable_fast_install=no ;;
15107    *)
15108      enable_fast_install=no
15109      # Look at the argument we got.  We use all the common list separators.
15110      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15111      for pkg in $enableval; do
15112	IFS=$lt_save_ifs
15113	if test "X$pkg" = "X$p"; then
15114	  enable_fast_install=yes
15115	fi
15116      done
15117      IFS=$lt_save_ifs
15118      ;;
15119    esac
15120else $as_nop
15121  enable_fast_install=yes
15122fi
15123
15124
15125
15126
15127
15128
15129
15130
15131  shared_archive_member_spec=
15132case $host,$enable_shared in
15133power*-*-aix[5-9]*,yes)
15134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15135printf %s "checking which variant of shared library versioning to provide... " >&6; }
15136
15137# Check whether --with-aix-soname was given.
15138if test ${with_aix_soname+y}
15139then :
15140  withval=$with_aix_soname; case $withval in
15141    aix|svr4|both)
15142      ;;
15143    *)
15144      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15145      ;;
15146    esac
15147    lt_cv_with_aix_soname=$with_aix_soname
15148else $as_nop
15149  if test ${lt_cv_with_aix_soname+y}
15150then :
15151  printf %s "(cached) " >&6
15152else $as_nop
15153  lt_cv_with_aix_soname=aix
15154fi
15155
15156    with_aix_soname=$lt_cv_with_aix_soname
15157fi
15158
15159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15160printf "%s\n" "$with_aix_soname" >&6; }
15161  if test aix != "$with_aix_soname"; then
15162    # For the AIX way of multilib, we name the shared archive member
15163    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15164    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15165    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15166    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15167    if test 64 = "${OBJECT_MODE-32}"; then
15168      shared_archive_member_spec=shr_64
15169    else
15170      shared_archive_member_spec=shr
15171    fi
15172  fi
15173  ;;
15174*)
15175  with_aix_soname=aix
15176  ;;
15177esac
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188# This can be used to rebuild libtool when needed
15189LIBTOOL_DEPS=$ltmain
15190
15191# Always use our own libtool.
15192LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223test -z "$LN_S" && LN_S="ln -s"
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238if test -n "${ZSH_VERSION+set}"; then
15239   setopt NO_GLOB_SUBST
15240fi
15241
15242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15243printf %s "checking for objdir... " >&6; }
15244if test ${lt_cv_objdir+y}
15245then :
15246  printf %s "(cached) " >&6
15247else $as_nop
15248  rm -f .libs 2>/dev/null
15249mkdir .libs 2>/dev/null
15250if test -d .libs; then
15251  lt_cv_objdir=.libs
15252else
15253  # MS-DOS does not allow filenames that begin with a dot.
15254  lt_cv_objdir=_libs
15255fi
15256rmdir .libs 2>/dev/null
15257fi
15258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15259printf "%s\n" "$lt_cv_objdir" >&6; }
15260objdir=$lt_cv_objdir
15261
15262
15263
15264
15265
15266printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15267
15268
15269
15270
15271case $host_os in
15272aix3*)
15273  # AIX sometimes has problems with the GCC collect2 program.  For some
15274  # reason, if we set the COLLECT_NAMES environment variable, the problems
15275  # vanish in a puff of smoke.
15276  if test set != "${COLLECT_NAMES+set}"; then
15277    COLLECT_NAMES=
15278    export COLLECT_NAMES
15279  fi
15280  ;;
15281esac
15282
15283# Global variables:
15284ofile=libtool
15285can_build_shared=yes
15286
15287# All known linkers require a '.a' archive for static linking (except MSVC and
15288# ICC, which need '.lib').
15289libext=a
15290
15291with_gnu_ld=$lt_cv_prog_gnu_ld
15292
15293old_CC=$CC
15294old_CFLAGS=$CFLAGS
15295
15296# Set sane defaults for various variables
15297test -z "$CC" && CC=cc
15298test -z "$LTCC" && LTCC=$CC
15299test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15300test -z "$LD" && LD=ld
15301test -z "$ac_objext" && ac_objext=o
15302
15303func_cc_basename $compiler
15304cc_basename=$func_cc_basename_result
15305
15306
15307# Only perform the check for file, if the check method requires it
15308test -z "$MAGIC_CMD" && MAGIC_CMD=file
15309case $deplibs_check_method in
15310file_magic*)
15311  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15312    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15313printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15314if test ${lt_cv_path_MAGIC_CMD+y}
15315then :
15316  printf %s "(cached) " >&6
15317else $as_nop
15318  case $MAGIC_CMD in
15319[\\/*] |  ?:[\\/]*)
15320  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15321  ;;
15322*)
15323  lt_save_MAGIC_CMD=$MAGIC_CMD
15324  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15325  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15326  for ac_dir in $ac_dummy; do
15327    IFS=$lt_save_ifs
15328    test -z "$ac_dir" && ac_dir=.
15329    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15330      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15331      if test -n "$file_magic_test_file"; then
15332	case $deplibs_check_method in
15333	"file_magic "*)
15334	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15335	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15336	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15337	    $EGREP "$file_magic_regex" > /dev/null; then
15338	    :
15339	  else
15340	    cat <<_LT_EOF 1>&2
15341
15342*** Warning: the command libtool uses to detect shared libraries,
15343*** $file_magic_cmd, produces output that libtool cannot recognize.
15344*** The result is that libtool may fail to recognize shared libraries
15345*** as such.  This will affect the creation of libtool libraries that
15346*** depend on shared libraries, but programs linked with such libtool
15347*** libraries will work regardless of this problem.  Nevertheless, you
15348*** may want to report the problem to your system manager and/or to
15349*** bug-libtool@gnu.org
15350
15351_LT_EOF
15352	  fi ;;
15353	esac
15354      fi
15355      break
15356    fi
15357  done
15358  IFS=$lt_save_ifs
15359  MAGIC_CMD=$lt_save_MAGIC_CMD
15360  ;;
15361esac
15362fi
15363
15364MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15365if test -n "$MAGIC_CMD"; then
15366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15367printf "%s\n" "$MAGIC_CMD" >&6; }
15368else
15369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15370printf "%s\n" "no" >&6; }
15371fi
15372
15373
15374
15375
15376
15377if test -z "$lt_cv_path_MAGIC_CMD"; then
15378  if test -n "$ac_tool_prefix"; then
15379    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15380printf %s "checking for file... " >&6; }
15381if test ${lt_cv_path_MAGIC_CMD+y}
15382then :
15383  printf %s "(cached) " >&6
15384else $as_nop
15385  case $MAGIC_CMD in
15386[\\/*] |  ?:[\\/]*)
15387  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15388  ;;
15389*)
15390  lt_save_MAGIC_CMD=$MAGIC_CMD
15391  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15392  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15393  for ac_dir in $ac_dummy; do
15394    IFS=$lt_save_ifs
15395    test -z "$ac_dir" && ac_dir=.
15396    if test -f "$ac_dir/file"; then
15397      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15398      if test -n "$file_magic_test_file"; then
15399	case $deplibs_check_method in
15400	"file_magic "*)
15401	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15402	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15403	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15404	    $EGREP "$file_magic_regex" > /dev/null; then
15405	    :
15406	  else
15407	    cat <<_LT_EOF 1>&2
15408
15409*** Warning: the command libtool uses to detect shared libraries,
15410*** $file_magic_cmd, produces output that libtool cannot recognize.
15411*** The result is that libtool may fail to recognize shared libraries
15412*** as such.  This will affect the creation of libtool libraries that
15413*** depend on shared libraries, but programs linked with such libtool
15414*** libraries will work regardless of this problem.  Nevertheless, you
15415*** may want to report the problem to your system manager and/or to
15416*** bug-libtool@gnu.org
15417
15418_LT_EOF
15419	  fi ;;
15420	esac
15421      fi
15422      break
15423    fi
15424  done
15425  IFS=$lt_save_ifs
15426  MAGIC_CMD=$lt_save_MAGIC_CMD
15427  ;;
15428esac
15429fi
15430
15431MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15432if test -n "$MAGIC_CMD"; then
15433  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15434printf "%s\n" "$MAGIC_CMD" >&6; }
15435else
15436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15437printf "%s\n" "no" >&6; }
15438fi
15439
15440
15441  else
15442    MAGIC_CMD=:
15443  fi
15444fi
15445
15446  fi
15447  ;;
15448esac
15449
15450# Use C for the default configuration in the libtool script
15451
15452lt_save_CC=$CC
15453ac_ext=c
15454ac_cpp='$CPP $CPPFLAGS'
15455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15457ac_compiler_gnu=$ac_cv_c_compiler_gnu
15458
15459
15460# Source file extension for C test sources.
15461ac_ext=c
15462
15463# Object file extension for compiled C test sources.
15464objext=o
15465objext=$objext
15466
15467# Code to be used in simple compile tests
15468lt_simple_compile_test_code="int some_variable = 0;"
15469
15470# Code to be used in simple link tests
15471lt_simple_link_test_code='int main(){return(0);}'
15472
15473
15474
15475
15476
15477
15478
15479# If no C compiler was specified, use CC.
15480LTCC=${LTCC-"$CC"}
15481
15482# If no C compiler flags were specified, use CFLAGS.
15483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15484
15485# Allow CC to be a program name with arguments.
15486compiler=$CC
15487
15488# Save the default compiler, since it gets overwritten when the other
15489# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15490compiler_DEFAULT=$CC
15491
15492# save warnings/boilerplate of simple test code
15493ac_outfile=conftest.$ac_objext
15494echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15495eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15496_lt_compiler_boilerplate=`cat conftest.err`
15497$RM conftest*
15498
15499ac_outfile=conftest.$ac_objext
15500echo "$lt_simple_link_test_code" >conftest.$ac_ext
15501eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15502_lt_linker_boilerplate=`cat conftest.err`
15503$RM -r conftest*
15504
15505
15506if test -n "$compiler"; then
15507
15508lt_prog_compiler_no_builtin_flag=
15509
15510if test yes = "$GCC"; then
15511  case $cc_basename in
15512  nvcc*)
15513    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15514  *)
15515    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15516  esac
15517
15518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15519printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15520if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15521then :
15522  printf %s "(cached) " >&6
15523else $as_nop
15524  lt_cv_prog_compiler_rtti_exceptions=no
15525   ac_outfile=conftest.$ac_objext
15526   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15527   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15528   # Insert the option either (1) after the last *FLAGS variable, or
15529   # (2) before a word containing "conftest.", or (3) at the end.
15530   # Note that $ac_compile itself does not contain backslashes and begins
15531   # with a dollar sign (not a hyphen), so the echo should work correctly.
15532   # The option is referenced via a variable to avoid confusing sed.
15533   lt_compile=`echo "$ac_compile" | $SED \
15534   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15535   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15536   -e 's:$: $lt_compiler_flag:'`
15537   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15538   (eval "$lt_compile" 2>conftest.err)
15539   ac_status=$?
15540   cat conftest.err >&5
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   if (exit $ac_status) && test -s "$ac_outfile"; then
15543     # The compiler can only warn and ignore the option if not recognized
15544     # So say no if there are warnings other than the usual output.
15545     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15546     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15547     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15548       lt_cv_prog_compiler_rtti_exceptions=yes
15549     fi
15550   fi
15551   $RM conftest*
15552
15553fi
15554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15555printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15556
15557if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15558    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15559else
15560    :
15561fi
15562
15563fi
15564
15565
15566
15567
15568
15569
15570  lt_prog_compiler_wl=
15571lt_prog_compiler_pic=
15572lt_prog_compiler_static=
15573
15574
15575  if test yes = "$GCC"; then
15576    lt_prog_compiler_wl='-Wl,'
15577    lt_prog_compiler_static='-static'
15578
15579    case $host_os in
15580      aix*)
15581      # All AIX code is PIC.
15582      if test ia64 = "$host_cpu"; then
15583	# AIX 5 now supports IA64 processor
15584	lt_prog_compiler_static='-Bstatic'
15585      fi
15586      lt_prog_compiler_pic='-fPIC'
15587      ;;
15588
15589    amigaos*)
15590      case $host_cpu in
15591      powerpc)
15592            # see comment about AmigaOS4 .so support
15593            lt_prog_compiler_pic='-fPIC'
15594        ;;
15595      m68k)
15596            # FIXME: we need at least 68020 code to build shared libraries, but
15597            # adding the '-m68020' flag to GCC prevents building anything better,
15598            # like '-m68040'.
15599            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15600        ;;
15601      esac
15602      ;;
15603
15604    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15605      # PIC is the default for these OSes.
15606      ;;
15607
15608    mingw* | cygwin* | pw32* | os2* | cegcc*)
15609      # This hack is so that the source file can tell whether it is being
15610      # built for inclusion in a dll (and should export symbols for example).
15611      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15612      # (--disable-auto-import) libraries
15613      lt_prog_compiler_pic='-DDLL_EXPORT'
15614      case $host_os in
15615      os2*)
15616	lt_prog_compiler_static='$wl-static'
15617	;;
15618      esac
15619      ;;
15620
15621    darwin* | rhapsody*)
15622      # PIC is the default on this platform
15623      # Common symbols not allowed in MH_DYLIB files
15624      lt_prog_compiler_pic='-fno-common'
15625      ;;
15626
15627    haiku*)
15628      # PIC is the default for Haiku.
15629      # The "-static" flag exists, but is broken.
15630      lt_prog_compiler_static=
15631      ;;
15632
15633    hpux*)
15634      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15635      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15636      # sets the default TLS model and affects inlining.
15637      case $host_cpu in
15638      hppa*64*)
15639	# +Z the default
15640	;;
15641      *)
15642	lt_prog_compiler_pic='-fPIC'
15643	;;
15644      esac
15645      ;;
15646
15647    interix[3-9]*)
15648      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15649      # Instead, we relocate shared libraries at runtime.
15650      ;;
15651
15652    msdosdjgpp*)
15653      # Just because we use GCC doesn't mean we suddenly get shared libraries
15654      # on systems that don't support them.
15655      lt_prog_compiler_can_build_shared=no
15656      enable_shared=no
15657      ;;
15658
15659    *nto* | *qnx*)
15660      # QNX uses GNU C++, but need to define -shared option too, otherwise
15661      # it will coredump.
15662      lt_prog_compiler_pic='-fPIC -shared'
15663      ;;
15664
15665    sysv4*MP*)
15666      if test -d /usr/nec; then
15667	lt_prog_compiler_pic=-Kconform_pic
15668      fi
15669      ;;
15670
15671    *)
15672      lt_prog_compiler_pic='-fPIC'
15673      ;;
15674    esac
15675
15676    case $cc_basename in
15677    nvcc*) # Cuda Compiler Driver 2.2
15678      lt_prog_compiler_wl='-Xlinker '
15679      if test -n "$lt_prog_compiler_pic"; then
15680        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15681      fi
15682      ;;
15683    esac
15684  else
15685    # PORTME Check for flag to pass linker flags through the system compiler.
15686    case $host_os in
15687    aix*)
15688      lt_prog_compiler_wl='-Wl,'
15689      if test ia64 = "$host_cpu"; then
15690	# AIX 5 now supports IA64 processor
15691	lt_prog_compiler_static='-Bstatic'
15692      else
15693	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15694      fi
15695      ;;
15696
15697    darwin* | rhapsody*)
15698      # PIC is the default on this platform
15699      # Common symbols not allowed in MH_DYLIB files
15700      lt_prog_compiler_pic='-fno-common'
15701      case $cc_basename in
15702      nagfor*)
15703        # NAG Fortran compiler
15704        lt_prog_compiler_wl='-Wl,-Wl,,'
15705        lt_prog_compiler_pic='-PIC'
15706        lt_prog_compiler_static='-Bstatic'
15707        ;;
15708      esac
15709      ;;
15710
15711    mingw* | cygwin* | pw32* | os2* | cegcc*)
15712      # This hack is so that the source file can tell whether it is being
15713      # built for inclusion in a dll (and should export symbols for example).
15714      lt_prog_compiler_pic='-DDLL_EXPORT'
15715      case $host_os in
15716      os2*)
15717	lt_prog_compiler_static='$wl-static'
15718	;;
15719      esac
15720      ;;
15721
15722    hpux9* | hpux10* | hpux11*)
15723      lt_prog_compiler_wl='-Wl,'
15724      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15725      # not for PA HP-UX.
15726      case $host_cpu in
15727      hppa*64*|ia64*)
15728	# +Z the default
15729	;;
15730      *)
15731	lt_prog_compiler_pic='+Z'
15732	;;
15733      esac
15734      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15735      lt_prog_compiler_static='$wl-a ${wl}archive'
15736      ;;
15737
15738    irix5* | irix6* | nonstopux*)
15739      lt_prog_compiler_wl='-Wl,'
15740      # PIC (with -KPIC) is the default.
15741      lt_prog_compiler_static='-non_shared'
15742      ;;
15743
15744    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15745      case $cc_basename in
15746      # old Intel for x86_64, which still supported -KPIC.
15747      ecc*)
15748	lt_prog_compiler_wl='-Wl,'
15749	lt_prog_compiler_pic='-KPIC'
15750	lt_prog_compiler_static='-static'
15751        ;;
15752      # icc used to be incompatible with GCC.
15753      # ICC 10 doesn't accept -KPIC any more.
15754      icc* | ifort*)
15755	lt_prog_compiler_wl='-Wl,'
15756	lt_prog_compiler_pic='-fPIC'
15757	lt_prog_compiler_static='-static'
15758        ;;
15759      # Lahey Fortran 8.1.
15760      lf95*)
15761	lt_prog_compiler_wl='-Wl,'
15762	lt_prog_compiler_pic='--shared'
15763	lt_prog_compiler_static='--static'
15764	;;
15765      nagfor*)
15766	# NAG Fortran compiler
15767	lt_prog_compiler_wl='-Wl,-Wl,,'
15768	lt_prog_compiler_pic='-PIC'
15769	lt_prog_compiler_static='-Bstatic'
15770	;;
15771      tcc*)
15772	# Fabrice Bellard et al's Tiny C Compiler
15773	lt_prog_compiler_wl='-Wl,'
15774	lt_prog_compiler_pic='-fPIC'
15775	lt_prog_compiler_static='-static'
15776	;;
15777      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15778        # Portland Group compilers (*not* the Pentium gcc compiler,
15779	# which looks to be a dead project)
15780	lt_prog_compiler_wl='-Wl,'
15781	lt_prog_compiler_pic='-fpic'
15782	lt_prog_compiler_static='-Bstatic'
15783        ;;
15784      ccc*)
15785        lt_prog_compiler_wl='-Wl,'
15786        # All Alpha code is PIC.
15787        lt_prog_compiler_static='-non_shared'
15788        ;;
15789      xl* | bgxl* | bgf* | mpixl*)
15790	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15791	lt_prog_compiler_wl='-Wl,'
15792	lt_prog_compiler_pic='-qpic'
15793	lt_prog_compiler_static='-qstaticlink'
15794	;;
15795      *)
15796	case `$CC -V 2>&1 | $SED 5q` in
15797	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15798	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15799	  lt_prog_compiler_pic='-KPIC'
15800	  lt_prog_compiler_static='-Bstatic'
15801	  lt_prog_compiler_wl=''
15802	  ;;
15803	*Sun\ F* | *Sun*Fortran*)
15804	  lt_prog_compiler_pic='-KPIC'
15805	  lt_prog_compiler_static='-Bstatic'
15806	  lt_prog_compiler_wl='-Qoption ld '
15807	  ;;
15808	*Sun\ C*)
15809	  # Sun C 5.9
15810	  lt_prog_compiler_pic='-KPIC'
15811	  lt_prog_compiler_static='-Bstatic'
15812	  lt_prog_compiler_wl='-Wl,'
15813	  ;;
15814        *Intel*\ [CF]*Compiler*)
15815	  lt_prog_compiler_wl='-Wl,'
15816	  lt_prog_compiler_pic='-fPIC'
15817	  lt_prog_compiler_static='-static'
15818	  ;;
15819	*Portland\ Group*)
15820	  lt_prog_compiler_wl='-Wl,'
15821	  lt_prog_compiler_pic='-fpic'
15822	  lt_prog_compiler_static='-Bstatic'
15823	  ;;
15824	esac
15825	;;
15826      esac
15827      ;;
15828
15829    newsos6)
15830      lt_prog_compiler_pic='-KPIC'
15831      lt_prog_compiler_static='-Bstatic'
15832      ;;
15833
15834    *nto* | *qnx*)
15835      # QNX uses GNU C++, but need to define -shared option too, otherwise
15836      # it will coredump.
15837      lt_prog_compiler_pic='-fPIC -shared'
15838      ;;
15839
15840    osf3* | osf4* | osf5*)
15841      lt_prog_compiler_wl='-Wl,'
15842      # All OSF/1 code is PIC.
15843      lt_prog_compiler_static='-non_shared'
15844      ;;
15845
15846    rdos*)
15847      lt_prog_compiler_static='-non_shared'
15848      ;;
15849
15850    solaris*)
15851      lt_prog_compiler_pic='-KPIC'
15852      lt_prog_compiler_static='-Bstatic'
15853      case $cc_basename in
15854      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15855	lt_prog_compiler_wl='-Qoption ld ';;
15856      *)
15857	lt_prog_compiler_wl='-Wl,';;
15858      esac
15859      ;;
15860
15861    sunos4*)
15862      lt_prog_compiler_wl='-Qoption ld '
15863      lt_prog_compiler_pic='-PIC'
15864      lt_prog_compiler_static='-Bstatic'
15865      ;;
15866
15867    sysv4 | sysv4.2uw2* | sysv4.3*)
15868      lt_prog_compiler_wl='-Wl,'
15869      lt_prog_compiler_pic='-KPIC'
15870      lt_prog_compiler_static='-Bstatic'
15871      ;;
15872
15873    sysv4*MP*)
15874      if test -d /usr/nec; then
15875	lt_prog_compiler_pic='-Kconform_pic'
15876	lt_prog_compiler_static='-Bstatic'
15877      fi
15878      ;;
15879
15880    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15881      lt_prog_compiler_wl='-Wl,'
15882      lt_prog_compiler_pic='-KPIC'
15883      lt_prog_compiler_static='-Bstatic'
15884      ;;
15885
15886    unicos*)
15887      lt_prog_compiler_wl='-Wl,'
15888      lt_prog_compiler_can_build_shared=no
15889      ;;
15890
15891    uts4*)
15892      lt_prog_compiler_pic='-pic'
15893      lt_prog_compiler_static='-Bstatic'
15894      ;;
15895
15896    *)
15897      lt_prog_compiler_can_build_shared=no
15898      ;;
15899    esac
15900  fi
15901
15902case $host_os in
15903  # For platforms that do not support PIC, -DPIC is meaningless:
15904  *djgpp*)
15905    lt_prog_compiler_pic=
15906    ;;
15907  *)
15908    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15909    ;;
15910esac
15911
15912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15913printf %s "checking for $compiler option to produce PIC... " >&6; }
15914if test ${lt_cv_prog_compiler_pic+y}
15915then :
15916  printf %s "(cached) " >&6
15917else $as_nop
15918  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15919fi
15920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15921printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15922lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15923
15924#
15925# Check to make sure the PIC flag actually works.
15926#
15927if test -n "$lt_prog_compiler_pic"; then
15928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15929printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15930if test ${lt_cv_prog_compiler_pic_works+y}
15931then :
15932  printf %s "(cached) " >&6
15933else $as_nop
15934  lt_cv_prog_compiler_pic_works=no
15935   ac_outfile=conftest.$ac_objext
15936   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15937   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15938   # Insert the option either (1) after the last *FLAGS variable, or
15939   # (2) before a word containing "conftest.", or (3) at the end.
15940   # Note that $ac_compile itself does not contain backslashes and begins
15941   # with a dollar sign (not a hyphen), so the echo should work correctly.
15942   # The option is referenced via a variable to avoid confusing sed.
15943   lt_compile=`echo "$ac_compile" | $SED \
15944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15946   -e 's:$: $lt_compiler_flag:'`
15947   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15948   (eval "$lt_compile" 2>conftest.err)
15949   ac_status=$?
15950   cat conftest.err >&5
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   if (exit $ac_status) && test -s "$ac_outfile"; then
15953     # The compiler can only warn and ignore the option if not recognized
15954     # So say no if there are warnings other than the usual output.
15955     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15956     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15957     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15958       lt_cv_prog_compiler_pic_works=yes
15959     fi
15960   fi
15961   $RM conftest*
15962
15963fi
15964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15965printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15966
15967if test yes = "$lt_cv_prog_compiler_pic_works"; then
15968    case $lt_prog_compiler_pic in
15969     "" | " "*) ;;
15970     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15971     esac
15972else
15973    lt_prog_compiler_pic=
15974     lt_prog_compiler_can_build_shared=no
15975fi
15976
15977fi
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989#
15990# Check to make sure the static flag actually works.
15991#
15992wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15994printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15995if test ${lt_cv_prog_compiler_static_works+y}
15996then :
15997  printf %s "(cached) " >&6
15998else $as_nop
15999  lt_cv_prog_compiler_static_works=no
16000   save_LDFLAGS=$LDFLAGS
16001   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16002   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16003   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16004     # The linker can only warn and ignore the option if not recognized
16005     # So say no if there are warnings
16006     if test -s conftest.err; then
16007       # Append any errors to the config.log.
16008       cat conftest.err 1>&5
16009       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16010       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16011       if diff conftest.exp conftest.er2 >/dev/null; then
16012         lt_cv_prog_compiler_static_works=yes
16013       fi
16014     else
16015       lt_cv_prog_compiler_static_works=yes
16016     fi
16017   fi
16018   $RM -r conftest*
16019   LDFLAGS=$save_LDFLAGS
16020
16021fi
16022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16023printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16024
16025if test yes = "$lt_cv_prog_compiler_static_works"; then
16026    :
16027else
16028    lt_prog_compiler_static=
16029fi
16030
16031
16032
16033
16034
16035
16036
16037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16038printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16039if test ${lt_cv_prog_compiler_c_o+y}
16040then :
16041  printf %s "(cached) " >&6
16042else $as_nop
16043  lt_cv_prog_compiler_c_o=no
16044   $RM -r conftest 2>/dev/null
16045   mkdir conftest
16046   cd conftest
16047   mkdir out
16048   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16049
16050   lt_compiler_flag="-o out/conftest2.$ac_objext"
16051   # Insert the option either (1) after the last *FLAGS variable, or
16052   # (2) before a word containing "conftest.", or (3) at the end.
16053   # Note that $ac_compile itself does not contain backslashes and begins
16054   # with a dollar sign (not a hyphen), so the echo should work correctly.
16055   lt_compile=`echo "$ac_compile" | $SED \
16056   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16057   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16058   -e 's:$: $lt_compiler_flag:'`
16059   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16060   (eval "$lt_compile" 2>out/conftest.err)
16061   ac_status=$?
16062   cat out/conftest.err >&5
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16065   then
16066     # The compiler can only warn and ignore the option if not recognized
16067     # So say no if there are warnings
16068     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16069     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16070     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16071       lt_cv_prog_compiler_c_o=yes
16072     fi
16073   fi
16074   chmod u+w . 2>&5
16075   $RM conftest*
16076   # SGI C++ compiler will create directory out/ii_files/ for
16077   # template instantiation
16078   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16079   $RM out/* && rmdir out
16080   cd ..
16081   $RM -r conftest
16082   $RM conftest*
16083
16084fi
16085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16086printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16087
16088
16089
16090
16091
16092
16093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16094printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16095if test ${lt_cv_prog_compiler_c_o+y}
16096then :
16097  printf %s "(cached) " >&6
16098else $as_nop
16099  lt_cv_prog_compiler_c_o=no
16100   $RM -r conftest 2>/dev/null
16101   mkdir conftest
16102   cd conftest
16103   mkdir out
16104   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16105
16106   lt_compiler_flag="-o out/conftest2.$ac_objext"
16107   # Insert the option either (1) after the last *FLAGS variable, or
16108   # (2) before a word containing "conftest.", or (3) at the end.
16109   # Note that $ac_compile itself does not contain backslashes and begins
16110   # with a dollar sign (not a hyphen), so the echo should work correctly.
16111   lt_compile=`echo "$ac_compile" | $SED \
16112   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16113   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16114   -e 's:$: $lt_compiler_flag:'`
16115   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16116   (eval "$lt_compile" 2>out/conftest.err)
16117   ac_status=$?
16118   cat out/conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16121   then
16122     # The compiler can only warn and ignore the option if not recognized
16123     # So say no if there are warnings
16124     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16125     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16126     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16127       lt_cv_prog_compiler_c_o=yes
16128     fi
16129   fi
16130   chmod u+w . 2>&5
16131   $RM conftest*
16132   # SGI C++ compiler will create directory out/ii_files/ for
16133   # template instantiation
16134   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16135   $RM out/* && rmdir out
16136   cd ..
16137   $RM -r conftest
16138   $RM conftest*
16139
16140fi
16141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16142printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16143
16144
16145
16146
16147hard_links=nottested
16148if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16149  # do not overwrite the value of need_locks provided by the user
16150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16151printf %s "checking if we can lock with hard links... " >&6; }
16152  hard_links=yes
16153  $RM conftest*
16154  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16155  touch conftest.a
16156  ln conftest.a conftest.b 2>&5 || hard_links=no
16157  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16159printf "%s\n" "$hard_links" >&6; }
16160  if test no = "$hard_links"; then
16161    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16162printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16163    need_locks=warn
16164  fi
16165else
16166  need_locks=no
16167fi
16168
16169
16170
16171
16172
16173
16174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16175printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16176
16177  runpath_var=
16178  allow_undefined_flag=
16179  always_export_symbols=no
16180  archive_cmds=
16181  archive_expsym_cmds=
16182  compiler_needs_object=no
16183  enable_shared_with_static_runtimes=no
16184  export_dynamic_flag_spec=
16185  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16186  hardcode_automatic=no
16187  hardcode_direct=no
16188  hardcode_direct_absolute=no
16189  hardcode_libdir_flag_spec=
16190  hardcode_libdir_separator=
16191  hardcode_minus_L=no
16192  hardcode_shlibpath_var=unsupported
16193  inherit_rpath=no
16194  link_all_deplibs=unknown
16195  module_cmds=
16196  module_expsym_cmds=
16197  old_archive_from_new_cmds=
16198  old_archive_from_expsyms_cmds=
16199  thread_safe_flag_spec=
16200  whole_archive_flag_spec=
16201  # include_expsyms should be a list of space-separated symbols to be *always*
16202  # included in the symbol list
16203  include_expsyms=
16204  # exclude_expsyms can be an extended regexp of symbols to exclude
16205  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16206  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16207  # as well as any symbol that contains 'd'.
16208  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16209  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16210  # platforms (ab)use it in PIC code, but their linkers get confused if
16211  # the symbol is explicitly referenced.  Since portable code cannot
16212  # rely on this symbol name, it's probably fine to never include it in
16213  # preloaded symbol tables.
16214  # Exclude shared library initialization/finalization symbols.
16215  extract_expsyms_cmds=
16216
16217  case $host_os in
16218  cygwin* | mingw* | pw32* | cegcc*)
16219    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16220    # When not using gcc, we currently assume that we are using
16221    # Microsoft Visual C++ or Intel C++ Compiler.
16222    if test yes != "$GCC"; then
16223      with_gnu_ld=no
16224    fi
16225    ;;
16226  interix*)
16227    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16228    with_gnu_ld=yes
16229    ;;
16230  openbsd* | bitrig*)
16231    with_gnu_ld=no
16232    ;;
16233  esac
16234
16235  ld_shlibs=yes
16236
16237  # On some targets, GNU ld is compatible enough with the native linker
16238  # that we're better off using the native interface for both.
16239  lt_use_gnu_ld_interface=no
16240  if test yes = "$with_gnu_ld"; then
16241    case $host_os in
16242      aix*)
16243	# The AIX port of GNU ld has always aspired to compatibility
16244	# with the native linker.  However, as the warning in the GNU ld
16245	# block says, versions before 2.19.5* couldn't really create working
16246	# shared libraries, regardless of the interface used.
16247	case `$LD -v 2>&1` in
16248	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16249	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16250	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16251	  *)
16252	    lt_use_gnu_ld_interface=yes
16253	    ;;
16254	esac
16255	;;
16256      *)
16257	lt_use_gnu_ld_interface=yes
16258	;;
16259    esac
16260  fi
16261
16262  if test yes = "$lt_use_gnu_ld_interface"; then
16263    # If archive_cmds runs LD, not CC, wlarc should be empty
16264    wlarc='$wl'
16265
16266    # Set some defaults for GNU ld with shared library support. These
16267    # are reset later if shared libraries are not supported. Putting them
16268    # here allows them to be overridden if necessary.
16269    runpath_var=LD_RUN_PATH
16270    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16271    export_dynamic_flag_spec='$wl--export-dynamic'
16272    # ancient GNU ld didn't support --whole-archive et. al.
16273    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16274      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16275    else
16276      whole_archive_flag_spec=
16277    fi
16278    supports_anon_versioning=no
16279    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16280      *GNU\ gold*) supports_anon_versioning=yes ;;
16281      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16282      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16283      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16284      *\ 2.11.*) ;; # other 2.11 versions
16285      *) supports_anon_versioning=yes ;;
16286    esac
16287
16288    # See if GNU ld supports shared libraries.
16289    case $host_os in
16290    aix[3-9]*)
16291      # On AIX/PPC, the GNU linker is very broken
16292      if test ia64 != "$host_cpu"; then
16293	ld_shlibs=no
16294	cat <<_LT_EOF 1>&2
16295
16296*** Warning: the GNU linker, at least up to release 2.19, is reported
16297*** to be unable to reliably create shared libraries on AIX.
16298*** Therefore, libtool is disabling shared libraries support.  If you
16299*** really care for shared libraries, you may want to install binutils
16300*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16301*** You will then need to restart the configuration process.
16302
16303_LT_EOF
16304      fi
16305      ;;
16306
16307    amigaos*)
16308      case $host_cpu in
16309      powerpc)
16310            # see comment about AmigaOS4 .so support
16311            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16312            archive_expsym_cmds=''
16313        ;;
16314      m68k)
16315            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)'
16316            hardcode_libdir_flag_spec='-L$libdir'
16317            hardcode_minus_L=yes
16318        ;;
16319      esac
16320      ;;
16321
16322    beos*)
16323      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16324	allow_undefined_flag=unsupported
16325	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16326	# support --undefined.  This deserves some investigation.  FIXME
16327	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16328      else
16329	ld_shlibs=no
16330      fi
16331      ;;
16332
16333    cygwin* | mingw* | pw32* | cegcc*)
16334      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16335      # as there is no search path for DLLs.
16336      hardcode_libdir_flag_spec='-L$libdir'
16337      export_dynamic_flag_spec='$wl--export-all-symbols'
16338      allow_undefined_flag=unsupported
16339      always_export_symbols=no
16340      enable_shared_with_static_runtimes=yes
16341      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'
16342      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16343
16344      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16345        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16346	# If the export-symbols file already is a .def file, use it as
16347	# is; otherwise, prepend EXPORTS...
16348	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16349          cp $export_symbols $output_objdir/$soname.def;
16350        else
16351          echo EXPORTS > $output_objdir/$soname.def;
16352          cat $export_symbols >> $output_objdir/$soname.def;
16353        fi~
16354        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16355      else
16356	ld_shlibs=no
16357      fi
16358      ;;
16359
16360    haiku*)
16361      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16362      link_all_deplibs=yes
16363      ;;
16364
16365    os2*)
16366      hardcode_libdir_flag_spec='-L$libdir'
16367      hardcode_minus_L=yes
16368      allow_undefined_flag=unsupported
16369      shrext_cmds=.dll
16370      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16371	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16372	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16373	$ECHO EXPORTS >> $output_objdir/$libname.def~
16374	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16375	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16376	emximp -o $lib $output_objdir/$libname.def'
16377      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16378	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16379	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16380	$ECHO EXPORTS >> $output_objdir/$libname.def~
16381	prefix_cmds="$SED"~
16382	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16383	  prefix_cmds="$prefix_cmds -e 1d";
16384	fi~
16385	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16386	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16387	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16388	emximp -o $lib $output_objdir/$libname.def'
16389      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16390      enable_shared_with_static_runtimes=yes
16391      file_list_spec='@'
16392      ;;
16393
16394    interix[3-9]*)
16395      hardcode_direct=no
16396      hardcode_shlibpath_var=no
16397      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16398      export_dynamic_flag_spec='$wl-E'
16399      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16400      # Instead, shared libraries are loaded at an image base (0x10000000 by
16401      # default) and relocated if they conflict, which is a slow very memory
16402      # consuming and fragmenting process.  To avoid this, we pick a random,
16403      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16404      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16405      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16406      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'
16407      ;;
16408
16409    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16410      tmp_diet=no
16411      if test linux-dietlibc = "$host_os"; then
16412	case $cc_basename in
16413	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16414	esac
16415      fi
16416      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16417	 && test no = "$tmp_diet"
16418      then
16419	tmp_addflag=' $pic_flag'
16420	tmp_sharedflag='-shared'
16421	case $cc_basename,$host_cpu in
16422        pgcc*)				# Portland Group C compiler
16423	  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'
16424	  tmp_addflag=' $pic_flag'
16425	  ;;
16426	pgf77* | pgf90* | pgf95* | pgfortran*)
16427					# Portland Group f77 and f90 compilers
16428	  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'
16429	  tmp_addflag=' $pic_flag -Mnomain' ;;
16430	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16431	  tmp_addflag=' -i_dynamic' ;;
16432	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16433	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16434	ifc* | ifort*)			# Intel Fortran compiler
16435	  tmp_addflag=' -nofor_main' ;;
16436	lf95*)				# Lahey Fortran 8.1
16437	  whole_archive_flag_spec=
16438	  tmp_sharedflag='--shared' ;;
16439        nagfor*)                        # NAGFOR 5.3
16440          tmp_sharedflag='-Wl,-shared' ;;
16441	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16442	  tmp_sharedflag='-qmkshrobj'
16443	  tmp_addflag= ;;
16444	nvcc*)	# Cuda Compiler Driver 2.2
16445	  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'
16446	  compiler_needs_object=yes
16447	  ;;
16448	esac
16449	case `$CC -V 2>&1 | $SED 5q` in
16450	*Sun\ C*)			# Sun C 5.9
16451	  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'
16452	  compiler_needs_object=yes
16453	  tmp_sharedflag='-G' ;;
16454	*Sun\ F*)			# Sun Fortran 8.3
16455	  tmp_sharedflag='-G' ;;
16456	esac
16457	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16458
16459        if test yes = "$supports_anon_versioning"; then
16460          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16461            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16462            echo "local: *; };" >> $output_objdir/$libname.ver~
16463            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16464        fi
16465
16466	case $cc_basename in
16467	tcc*)
16468	  export_dynamic_flag_spec='-rdynamic'
16469	  ;;
16470	xlf* | bgf* | bgxlf* | mpixlf*)
16471	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16472	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16473	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16474	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16475	  if test yes = "$supports_anon_versioning"; then
16476	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16477              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16478              echo "local: *; };" >> $output_objdir/$libname.ver~
16479              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16480	  fi
16481	  ;;
16482	esac
16483      else
16484        ld_shlibs=no
16485      fi
16486      ;;
16487
16488    netbsd*)
16489      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16490	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16491	wlarc=
16492      else
16493	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16494	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16495      fi
16496      ;;
16497
16498    solaris*)
16499      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16500	ld_shlibs=no
16501	cat <<_LT_EOF 1>&2
16502
16503*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16504*** create shared libraries on Solaris systems.  Therefore, libtool
16505*** is disabling shared libraries support.  We urge you to upgrade GNU
16506*** binutils to release 2.9.1 or newer.  Another option is to modify
16507*** your PATH or compiler configuration so that the native linker is
16508*** used, and then restart.
16509
16510_LT_EOF
16511      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16512	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16513	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16514      else
16515	ld_shlibs=no
16516      fi
16517      ;;
16518
16519    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16520      case `$LD -v 2>&1` in
16521        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16522	ld_shlibs=no
16523	cat <<_LT_EOF 1>&2
16524
16525*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16526*** reliably create shared libraries on SCO systems.  Therefore, libtool
16527*** is disabling shared libraries support.  We urge you to upgrade GNU
16528*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16529*** your PATH or compiler configuration so that the native linker is
16530*** used, and then restart.
16531
16532_LT_EOF
16533	;;
16534	*)
16535	  # For security reasons, it is highly recommended that you always
16536	  # use absolute paths for naming shared libraries, and exclude the
16537	  # DT_RUNPATH tag from executables and libraries.  But doing so
16538	  # requires that you compile everything twice, which is a pain.
16539	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16540	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16541	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16542	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16543	  else
16544	    ld_shlibs=no
16545	  fi
16546	;;
16547      esac
16548      ;;
16549
16550    sunos4*)
16551      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16552      wlarc=
16553      hardcode_direct=yes
16554      hardcode_shlibpath_var=no
16555      ;;
16556
16557    *)
16558      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16559	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16560	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16561      else
16562	ld_shlibs=no
16563      fi
16564      ;;
16565    esac
16566
16567    if test no = "$ld_shlibs"; then
16568      runpath_var=
16569      hardcode_libdir_flag_spec=
16570      export_dynamic_flag_spec=
16571      whole_archive_flag_spec=
16572    fi
16573  else
16574    # PORTME fill in a description of your system's linker (not GNU ld)
16575    case $host_os in
16576    aix3*)
16577      allow_undefined_flag=unsupported
16578      always_export_symbols=yes
16579      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'
16580      # Note: this linker hardcodes the directories in LIBPATH if there
16581      # are no directories specified by -L.
16582      hardcode_minus_L=yes
16583      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16584	# Neither direct hardcoding nor static linking is supported with a
16585	# broken collect2.
16586	hardcode_direct=unsupported
16587      fi
16588      ;;
16589
16590    aix[4-9]*)
16591      if test ia64 = "$host_cpu"; then
16592	# On IA64, the linker does run time linking by default, so we don't
16593	# have to do anything special.
16594	aix_use_runtimelinking=no
16595	exp_sym_flag='-Bexport'
16596	no_entry_flag=
16597      else
16598	# If we're using GNU nm, then we don't want the "-C" option.
16599	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16600	# Without the "-l" option, or with the "-B" option, AIX nm treats
16601	# weak defined symbols like other global defined symbols, whereas
16602	# GNU nm marks them as "W".
16603	# While the 'weak' keyword is ignored in the Export File, we need
16604	# it in the Import File for the 'aix-soname' feature, so we have
16605	# to replace the "-B" option with "-P" for AIX nm.
16606	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16607	  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'
16608	else
16609	  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'
16610	fi
16611	aix_use_runtimelinking=no
16612
16613	# Test if we are trying to use run time linking or normal
16614	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16615	# have runtime linking enabled, and use it for executables.
16616	# For shared libraries, we enable/disable runtime linking
16617	# depending on the kind of the shared library created -
16618	# when "with_aix_soname,aix_use_runtimelinking" is:
16619	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16620	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16621	#            lib.a           static archive
16622	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16623	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16624	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16625	#            lib.a(lib.so.V) shared, rtl:no
16626	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16627	#            lib.a           static archive
16628	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16629	  for ld_flag in $LDFLAGS; do
16630	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16631	    aix_use_runtimelinking=yes
16632	    break
16633	  fi
16634	  done
16635	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16636	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16637	    # so we don't have lib.a shared libs to link our executables.
16638	    # We have to force runtime linking in this case.
16639	    aix_use_runtimelinking=yes
16640	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16641	  fi
16642	  ;;
16643	esac
16644
16645	exp_sym_flag='-bexport'
16646	no_entry_flag='-bnoentry'
16647      fi
16648
16649      # When large executables or shared objects are built, AIX ld can
16650      # have problems creating the table of contents.  If linking a library
16651      # or program results in "error TOC overflow" add -mminimal-toc to
16652      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16653      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16654
16655      archive_cmds=''
16656      hardcode_direct=yes
16657      hardcode_direct_absolute=yes
16658      hardcode_libdir_separator=':'
16659      link_all_deplibs=yes
16660      file_list_spec='$wl-f,'
16661      case $with_aix_soname,$aix_use_runtimelinking in
16662      aix,*) ;; # traditional, no import file
16663      svr4,* | *,yes) # use import file
16664	# The Import File defines what to hardcode.
16665	hardcode_direct=no
16666	hardcode_direct_absolute=no
16667	;;
16668      esac
16669
16670      if test yes = "$GCC"; then
16671	case $host_os in aix4.[012]|aix4.[012].*)
16672	# We only want to do this on AIX 4.2 and lower, the check
16673	# below for broken collect2 doesn't work under 4.3+
16674	  collect2name=`$CC -print-prog-name=collect2`
16675	  if test -f "$collect2name" &&
16676	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16677	  then
16678	  # We have reworked collect2
16679	  :
16680	  else
16681	  # We have old collect2
16682	  hardcode_direct=unsupported
16683	  # It fails to find uninstalled libraries when the uninstalled
16684	  # path is not listed in the libpath.  Setting hardcode_minus_L
16685	  # to unsupported forces relinking
16686	  hardcode_minus_L=yes
16687	  hardcode_libdir_flag_spec='-L$libdir'
16688	  hardcode_libdir_separator=
16689	  fi
16690	  ;;
16691	esac
16692	shared_flag='-shared'
16693	if test yes = "$aix_use_runtimelinking"; then
16694	  shared_flag="$shared_flag "'$wl-G'
16695	fi
16696	# Need to ensure runtime linking is disabled for the traditional
16697	# shared library, or the linker may eventually find shared libraries
16698	# /with/ Import File - we do not want to mix them.
16699	shared_flag_aix='-shared'
16700	shared_flag_svr4='-shared $wl-G'
16701      else
16702	# not using gcc
16703	if test ia64 = "$host_cpu"; then
16704	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16705	# chokes on -Wl,-G. The following line is correct:
16706	  shared_flag='-G'
16707	else
16708	  if test yes = "$aix_use_runtimelinking"; then
16709	    shared_flag='$wl-G'
16710	  else
16711	    shared_flag='$wl-bM:SRE'
16712	  fi
16713	  shared_flag_aix='$wl-bM:SRE'
16714	  shared_flag_svr4='$wl-G'
16715	fi
16716      fi
16717
16718      export_dynamic_flag_spec='$wl-bexpall'
16719      # It seems that -bexpall does not export symbols beginning with
16720      # underscore (_), so it is better to generate a list of symbols to export.
16721      always_export_symbols=yes
16722      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16723	# Warning - without using the other runtime loading flags (-brtl),
16724	# -berok will link without error, but may produce a broken library.
16725	allow_undefined_flag='-berok'
16726        # Determine the default libpath from the value encoded in an
16727        # empty executable.
16728        if test set = "${lt_cv_aix_libpath+set}"; then
16729  aix_libpath=$lt_cv_aix_libpath
16730else
16731  if test ${lt_cv_aix_libpath_+y}
16732then :
16733  printf %s "(cached) " >&6
16734else $as_nop
16735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736/* end confdefs.h.  */
16737
16738int
16739main (void)
16740{
16741
16742  ;
16743  return 0;
16744}
16745_ACEOF
16746if ac_fn_c_try_link "$LINENO"
16747then :
16748
16749  lt_aix_libpath_sed='
16750      /Import File Strings/,/^$/ {
16751	  /^0/ {
16752	      s/^0  *\([^ ]*\) *$/\1/
16753	      p
16754	  }
16755      }'
16756  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16757  # Check for a 64-bit object if we didn't find anything.
16758  if test -z "$lt_cv_aix_libpath_"; then
16759    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16760  fi
16761fi
16762rm -f core conftest.err conftest.$ac_objext conftest.beam \
16763    conftest$ac_exeext conftest.$ac_ext
16764  if test -z "$lt_cv_aix_libpath_"; then
16765    lt_cv_aix_libpath_=/usr/lib:/lib
16766  fi
16767
16768fi
16769
16770  aix_libpath=$lt_cv_aix_libpath_
16771fi
16772
16773        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16774        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
16775      else
16776	if test ia64 = "$host_cpu"; then
16777	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16778	  allow_undefined_flag="-z nodefs"
16779	  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"
16780	else
16781	 # Determine the default libpath from the value encoded in an
16782	 # empty executable.
16783	 if test set = "${lt_cv_aix_libpath+set}"; then
16784  aix_libpath=$lt_cv_aix_libpath
16785else
16786  if test ${lt_cv_aix_libpath_+y}
16787then :
16788  printf %s "(cached) " >&6
16789else $as_nop
16790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791/* end confdefs.h.  */
16792
16793int
16794main (void)
16795{
16796
16797  ;
16798  return 0;
16799}
16800_ACEOF
16801if ac_fn_c_try_link "$LINENO"
16802then :
16803
16804  lt_aix_libpath_sed='
16805      /Import File Strings/,/^$/ {
16806	  /^0/ {
16807	      s/^0  *\([^ ]*\) *$/\1/
16808	      p
16809	  }
16810      }'
16811  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16812  # Check for a 64-bit object if we didn't find anything.
16813  if test -z "$lt_cv_aix_libpath_"; then
16814    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16815  fi
16816fi
16817rm -f core conftest.err conftest.$ac_objext conftest.beam \
16818    conftest$ac_exeext conftest.$ac_ext
16819  if test -z "$lt_cv_aix_libpath_"; then
16820    lt_cv_aix_libpath_=/usr/lib:/lib
16821  fi
16822
16823fi
16824
16825  aix_libpath=$lt_cv_aix_libpath_
16826fi
16827
16828	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16829	  # Warning - without using the other run time loading flags,
16830	  # -berok will link without error, but may produce a broken library.
16831	  no_undefined_flag=' $wl-bernotok'
16832	  allow_undefined_flag=' $wl-berok'
16833	  if test yes = "$with_gnu_ld"; then
16834	    # We only use this code for GNU lds that support --whole-archive.
16835	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16836	  else
16837	    # Exported symbols can be pulled into shared objects from archives
16838	    whole_archive_flag_spec='$convenience'
16839	  fi
16840	  archive_cmds_need_lc=yes
16841	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16842	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16843	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16844	  if test svr4 != "$with_aix_soname"; then
16845	    # This is similar to how AIX traditionally builds its shared libraries.
16846	    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'
16847	  fi
16848	  if test aix != "$with_aix_soname"; then
16849	    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'
16850	  else
16851	    # used by -dlpreopen to get the symbols
16852	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16853	  fi
16854	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16855	fi
16856      fi
16857      ;;
16858
16859    amigaos*)
16860      case $host_cpu in
16861      powerpc)
16862            # see comment about AmigaOS4 .so support
16863            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16864            archive_expsym_cmds=''
16865        ;;
16866      m68k)
16867            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)'
16868            hardcode_libdir_flag_spec='-L$libdir'
16869            hardcode_minus_L=yes
16870        ;;
16871      esac
16872      ;;
16873
16874    bsdi[45]*)
16875      export_dynamic_flag_spec=-rdynamic
16876      ;;
16877
16878    cygwin* | mingw* | pw32* | cegcc*)
16879      # When not using gcc, we currently assume that we are using
16880      # Microsoft Visual C++ or Intel C++ Compiler.
16881      # hardcode_libdir_flag_spec is actually meaningless, as there is
16882      # no search path for DLLs.
16883      case $cc_basename in
16884      cl* | icl*)
16885	# Native MSVC or ICC
16886	hardcode_libdir_flag_spec=' '
16887	allow_undefined_flag=unsupported
16888	always_export_symbols=yes
16889	file_list_spec='@'
16890	# Tell ltmain to make .lib files, not .a files.
16891	libext=lib
16892	# Tell ltmain to make .dll files, not .so files.
16893	shrext_cmds=.dll
16894	# FIXME: Setting linknames here is a bad hack.
16895	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16896	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16897            cp "$export_symbols" "$output_objdir/$soname.def";
16898            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16899          else
16900            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16901          fi~
16902          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16903          linknames='
16904	# The linker will not automatically build a static lib if we build a DLL.
16905	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16906	enable_shared_with_static_runtimes=yes
16907	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16908	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16909	# Don't use ranlib
16910	old_postinstall_cmds='chmod 644 $oldlib'
16911	postlink_cmds='lt_outputfile="@OUTPUT@"~
16912          lt_tool_outputfile="@TOOL_OUTPUT@"~
16913          case $lt_outputfile in
16914            *.exe|*.EXE) ;;
16915            *)
16916              lt_outputfile=$lt_outputfile.exe
16917              lt_tool_outputfile=$lt_tool_outputfile.exe
16918              ;;
16919          esac~
16920          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16921            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16922            $RM "$lt_outputfile.manifest";
16923          fi'
16924	;;
16925      *)
16926	# Assume MSVC and ICC wrapper
16927	hardcode_libdir_flag_spec=' '
16928	allow_undefined_flag=unsupported
16929	# Tell ltmain to make .lib files, not .a files.
16930	libext=lib
16931	# Tell ltmain to make .dll files, not .so files.
16932	shrext_cmds=.dll
16933	# FIXME: Setting linknames here is a bad hack.
16934	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16935	# The linker will automatically build a .lib file if we build a DLL.
16936	old_archive_from_new_cmds='true'
16937	# FIXME: Should let the user specify the lib program.
16938	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16939	enable_shared_with_static_runtimes=yes
16940	;;
16941      esac
16942      ;;
16943
16944    darwin* | rhapsody*)
16945
16946
16947  archive_cmds_need_lc=no
16948  hardcode_direct=no
16949  hardcode_automatic=yes
16950  hardcode_shlibpath_var=unsupported
16951  if test yes = "$lt_cv_ld_force_load"; then
16952    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\"`'
16953
16954  else
16955    whole_archive_flag_spec=''
16956  fi
16957  link_all_deplibs=yes
16958  allow_undefined_flag=$_lt_dar_allow_undefined
16959  case $cc_basename in
16960     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16961     *) _lt_dar_can_shared=$GCC ;;
16962  esac
16963  if test yes = "$_lt_dar_can_shared"; then
16964    output_verbose_link_cmd=func_echo_all
16965    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16966    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16967    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"
16968    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"
16969
16970  else
16971  ld_shlibs=no
16972  fi
16973
16974      ;;
16975
16976    dgux*)
16977      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16978      hardcode_libdir_flag_spec='-L$libdir'
16979      hardcode_shlibpath_var=no
16980      ;;
16981
16982    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16983    # support.  Future versions do this automatically, but an explicit c++rt0.o
16984    # does not break anything, and helps significantly (at the cost of a little
16985    # extra space).
16986    freebsd2.2*)
16987      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16988      hardcode_libdir_flag_spec='-R$libdir'
16989      hardcode_direct=yes
16990      hardcode_shlibpath_var=no
16991      ;;
16992
16993    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16994    freebsd2.*)
16995      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16996      hardcode_direct=yes
16997      hardcode_minus_L=yes
16998      hardcode_shlibpath_var=no
16999      ;;
17000
17001    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17002    freebsd* | dragonfly* | midnightbsd*)
17003      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17004      hardcode_libdir_flag_spec='-R$libdir'
17005      hardcode_direct=yes
17006      hardcode_shlibpath_var=no
17007      ;;
17008
17009    hpux9*)
17010      if test yes = "$GCC"; then
17011	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'
17012      else
17013	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'
17014      fi
17015      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17016      hardcode_libdir_separator=:
17017      hardcode_direct=yes
17018
17019      # hardcode_minus_L: Not really in the search PATH,
17020      # but as the default location of the library.
17021      hardcode_minus_L=yes
17022      export_dynamic_flag_spec='$wl-E'
17023      ;;
17024
17025    hpux10*)
17026      if test yes,no = "$GCC,$with_gnu_ld"; then
17027	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17028      else
17029	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17030      fi
17031      if test no = "$with_gnu_ld"; then
17032	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17033	hardcode_libdir_separator=:
17034	hardcode_direct=yes
17035	hardcode_direct_absolute=yes
17036	export_dynamic_flag_spec='$wl-E'
17037	# hardcode_minus_L: Not really in the search PATH,
17038	# but as the default location of the library.
17039	hardcode_minus_L=yes
17040      fi
17041      ;;
17042
17043    hpux11*)
17044      if test yes,no = "$GCC,$with_gnu_ld"; then
17045	case $host_cpu in
17046	hppa*64*)
17047	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17048	  ;;
17049	ia64*)
17050	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17051	  ;;
17052	*)
17053	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17054	  ;;
17055	esac
17056      else
17057	case $host_cpu in
17058	hppa*64*)
17059	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17060	  ;;
17061	ia64*)
17062	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17063	  ;;
17064	*)
17065
17066	  # Older versions of the 11.00 compiler do not understand -b yet
17067	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17068	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17069printf %s "checking if $CC understands -b... " >&6; }
17070if test ${lt_cv_prog_compiler__b+y}
17071then :
17072  printf %s "(cached) " >&6
17073else $as_nop
17074  lt_cv_prog_compiler__b=no
17075   save_LDFLAGS=$LDFLAGS
17076   LDFLAGS="$LDFLAGS -b"
17077   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17078   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17079     # The linker can only warn and ignore the option if not recognized
17080     # So say no if there are warnings
17081     if test -s conftest.err; then
17082       # Append any errors to the config.log.
17083       cat conftest.err 1>&5
17084       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17085       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17086       if diff conftest.exp conftest.er2 >/dev/null; then
17087         lt_cv_prog_compiler__b=yes
17088       fi
17089     else
17090       lt_cv_prog_compiler__b=yes
17091     fi
17092   fi
17093   $RM -r conftest*
17094   LDFLAGS=$save_LDFLAGS
17095
17096fi
17097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17098printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17099
17100if test yes = "$lt_cv_prog_compiler__b"; then
17101    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17102else
17103    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17104fi
17105
17106	  ;;
17107	esac
17108      fi
17109      if test no = "$with_gnu_ld"; then
17110	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17111	hardcode_libdir_separator=:
17112
17113	case $host_cpu in
17114	hppa*64*|ia64*)
17115	  hardcode_direct=no
17116	  hardcode_shlibpath_var=no
17117	  ;;
17118	*)
17119	  hardcode_direct=yes
17120	  hardcode_direct_absolute=yes
17121	  export_dynamic_flag_spec='$wl-E'
17122
17123	  # hardcode_minus_L: Not really in the search PATH,
17124	  # but as the default location of the library.
17125	  hardcode_minus_L=yes
17126	  ;;
17127	esac
17128      fi
17129      ;;
17130
17131    irix5* | irix6* | nonstopux*)
17132      if test yes = "$GCC"; then
17133	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'
17134	# Try to use the -exported_symbol ld option, if it does not
17135	# work, assume that -exports_file does not work either and
17136	# implicitly export all symbols.
17137	# This should be the same for all languages, so no per-tag cache variable.
17138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17139printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17140if test ${lt_cv_irix_exported_symbol+y}
17141then :
17142  printf %s "(cached) " >&6
17143else $as_nop
17144  save_LDFLAGS=$LDFLAGS
17145	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17146	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147/* end confdefs.h.  */
17148int foo (void) { return 0; }
17149_ACEOF
17150if ac_fn_c_try_link "$LINENO"
17151then :
17152  lt_cv_irix_exported_symbol=yes
17153else $as_nop
17154  lt_cv_irix_exported_symbol=no
17155fi
17156rm -f core conftest.err conftest.$ac_objext conftest.beam \
17157    conftest$ac_exeext conftest.$ac_ext
17158           LDFLAGS=$save_LDFLAGS
17159fi
17160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17161printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17162	if test yes = "$lt_cv_irix_exported_symbol"; then
17163          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'
17164	fi
17165      else
17166	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'
17167	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'
17168      fi
17169      archive_cmds_need_lc='no'
17170      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17171      hardcode_libdir_separator=:
17172      inherit_rpath=yes
17173      link_all_deplibs=yes
17174      ;;
17175
17176    linux*)
17177      case $cc_basename in
17178      tcc*)
17179	# Fabrice Bellard et al's Tiny C Compiler
17180	ld_shlibs=yes
17181	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17182	;;
17183      esac
17184      ;;
17185
17186    netbsd*)
17187      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17188	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17189      else
17190	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17191      fi
17192      hardcode_libdir_flag_spec='-R$libdir'
17193      hardcode_direct=yes
17194      hardcode_shlibpath_var=no
17195      ;;
17196
17197    newsos6)
17198      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17199      hardcode_direct=yes
17200      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17201      hardcode_libdir_separator=:
17202      hardcode_shlibpath_var=no
17203      ;;
17204
17205    *nto* | *qnx*)
17206      ;;
17207
17208    openbsd* | bitrig*)
17209      if test -f /usr/libexec/ld.so; then
17210	hardcode_direct=yes
17211	hardcode_shlibpath_var=no
17212	hardcode_direct_absolute=yes
17213	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17214	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17215	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17216	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17217	  export_dynamic_flag_spec='$wl-E'
17218	else
17219	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17220	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17221	fi
17222      else
17223	ld_shlibs=no
17224      fi
17225      ;;
17226
17227    os2*)
17228      hardcode_libdir_flag_spec='-L$libdir'
17229      hardcode_minus_L=yes
17230      allow_undefined_flag=unsupported
17231      shrext_cmds=.dll
17232      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17233	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17234	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17235	$ECHO EXPORTS >> $output_objdir/$libname.def~
17236	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17237	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17238	emximp -o $lib $output_objdir/$libname.def'
17239      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17240	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17241	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17242	$ECHO EXPORTS >> $output_objdir/$libname.def~
17243	prefix_cmds="$SED"~
17244	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17245	  prefix_cmds="$prefix_cmds -e 1d";
17246	fi~
17247	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17248	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17249	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17250	emximp -o $lib $output_objdir/$libname.def'
17251      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17252      enable_shared_with_static_runtimes=yes
17253      file_list_spec='@'
17254      ;;
17255
17256    osf3*)
17257      if test yes = "$GCC"; then
17258	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17259	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'
17260      else
17261	allow_undefined_flag=' -expect_unresolved \*'
17262	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'
17263      fi
17264      archive_cmds_need_lc='no'
17265      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17266      hardcode_libdir_separator=:
17267      ;;
17268
17269    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17270      if test yes = "$GCC"; then
17271	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17272	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'
17273	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17274      else
17275	allow_undefined_flag=' -expect_unresolved \*'
17276	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'
17277	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~
17278          $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'
17279
17280	# Both c and cxx compiler support -rpath directly
17281	hardcode_libdir_flag_spec='-rpath $libdir'
17282      fi
17283      archive_cmds_need_lc='no'
17284      hardcode_libdir_separator=:
17285      ;;
17286
17287    solaris*)
17288      no_undefined_flag=' -z defs'
17289      if test yes = "$GCC"; then
17290	wlarc='$wl'
17291	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17292	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17293          $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'
17294      else
17295	case `$CC -V 2>&1` in
17296	*"Compilers 5.0"*)
17297	  wlarc=''
17298	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17299	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17300            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17301	  ;;
17302	*)
17303	  wlarc='$wl'
17304	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17305	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17306            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17307	  ;;
17308	esac
17309      fi
17310      hardcode_libdir_flag_spec='-R$libdir'
17311      hardcode_shlibpath_var=no
17312      case $host_os in
17313      solaris2.[0-5] | solaris2.[0-5].*) ;;
17314      *)
17315	# The compiler driver will combine and reorder linker options,
17316	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17317	# but is careful enough not to reorder.
17318	# Supported since Solaris 2.6 (maybe 2.5.1?)
17319	if test yes = "$GCC"; then
17320	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17321	else
17322	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17323	fi
17324	;;
17325      esac
17326      link_all_deplibs=yes
17327      ;;
17328
17329    sunos4*)
17330      if test sequent = "$host_vendor"; then
17331	# Use $CC to link under sequent, because it throws in some extra .o
17332	# files that make .init and .fini sections work.
17333	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17334      else
17335	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17336      fi
17337      hardcode_libdir_flag_spec='-L$libdir'
17338      hardcode_direct=yes
17339      hardcode_minus_L=yes
17340      hardcode_shlibpath_var=no
17341      ;;
17342
17343    sysv4)
17344      case $host_vendor in
17345	sni)
17346	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17347	  hardcode_direct=yes # is this really true???
17348	;;
17349	siemens)
17350	  ## LD is ld it makes a PLAMLIB
17351	  ## CC just makes a GrossModule.
17352	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17353	  reload_cmds='$CC -r -o $output$reload_objs'
17354	  hardcode_direct=no
17355        ;;
17356	motorola)
17357	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17358	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17359	;;
17360      esac
17361      runpath_var='LD_RUN_PATH'
17362      hardcode_shlibpath_var=no
17363      ;;
17364
17365    sysv4.3*)
17366      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17367      hardcode_shlibpath_var=no
17368      export_dynamic_flag_spec='-Bexport'
17369      ;;
17370
17371    sysv4*MP*)
17372      if test -d /usr/nec; then
17373	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17374	hardcode_shlibpath_var=no
17375	runpath_var=LD_RUN_PATH
17376	hardcode_runpath_var=yes
17377	ld_shlibs=yes
17378      fi
17379      ;;
17380
17381    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17382      no_undefined_flag='$wl-z,text'
17383      archive_cmds_need_lc=no
17384      hardcode_shlibpath_var=no
17385      runpath_var='LD_RUN_PATH'
17386
17387      if test yes = "$GCC"; then
17388	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17389	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17390      else
17391	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17392	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17393      fi
17394      ;;
17395
17396    sysv5* | sco3.2v5* | sco5v6*)
17397      # Note: We CANNOT use -z defs as we might desire, because we do not
17398      # link with -lc, and that would cause any symbols used from libc to
17399      # always be unresolved, which means just about no library would
17400      # ever link correctly.  If we're not using GNU ld we use -z text
17401      # though, which does catch some bad symbols but isn't as heavy-handed
17402      # as -z defs.
17403      no_undefined_flag='$wl-z,text'
17404      allow_undefined_flag='$wl-z,nodefs'
17405      archive_cmds_need_lc=no
17406      hardcode_shlibpath_var=no
17407      hardcode_libdir_flag_spec='$wl-R,$libdir'
17408      hardcode_libdir_separator=':'
17409      link_all_deplibs=yes
17410      export_dynamic_flag_spec='$wl-Bexport'
17411      runpath_var='LD_RUN_PATH'
17412
17413      if test yes = "$GCC"; then
17414	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17415	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17416      else
17417	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17418	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419      fi
17420      ;;
17421
17422    uts4*)
17423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17424      hardcode_libdir_flag_spec='-L$libdir'
17425      hardcode_shlibpath_var=no
17426      ;;
17427
17428    *)
17429      ld_shlibs=no
17430      ;;
17431    esac
17432
17433    if test sni = "$host_vendor"; then
17434      case $host in
17435      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17436	export_dynamic_flag_spec='$wl-Blargedynsym'
17437	;;
17438      esac
17439    fi
17440  fi
17441
17442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17443printf "%s\n" "$ld_shlibs" >&6; }
17444test no = "$ld_shlibs" && can_build_shared=no
17445
17446with_gnu_ld=$with_gnu_ld
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462#
17463# Do we need to explicitly link libc?
17464#
17465case "x$archive_cmds_need_lc" in
17466x|xyes)
17467  # Assume -lc should be added
17468  archive_cmds_need_lc=yes
17469
17470  if test yes,yes = "$GCC,$enable_shared"; then
17471    case $archive_cmds in
17472    *'~'*)
17473      # FIXME: we may have to deal with multi-command sequences.
17474      ;;
17475    '$CC '*)
17476      # Test whether the compiler implicitly links with -lc since on some
17477      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17478      # to ld, don't add -lc before -lgcc.
17479      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17480printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17481if test ${lt_cv_archive_cmds_need_lc+y}
17482then :
17483  printf %s "(cached) " >&6
17484else $as_nop
17485  $RM conftest*
17486	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17487
17488	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17489  (eval $ac_compile) 2>&5
17490  ac_status=$?
17491  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17492  test $ac_status = 0; } 2>conftest.err; then
17493	  soname=conftest
17494	  lib=conftest
17495	  libobjs=conftest.$ac_objext
17496	  deplibs=
17497	  wl=$lt_prog_compiler_wl
17498	  pic_flag=$lt_prog_compiler_pic
17499	  compiler_flags=-v
17500	  linker_flags=-v
17501	  verstring=
17502	  output_objdir=.
17503	  libname=conftest
17504	  lt_save_allow_undefined_flag=$allow_undefined_flag
17505	  allow_undefined_flag=
17506	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17507  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17508  ac_status=$?
17509  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17510  test $ac_status = 0; }
17511	  then
17512	    lt_cv_archive_cmds_need_lc=no
17513	  else
17514	    lt_cv_archive_cmds_need_lc=yes
17515	  fi
17516	  allow_undefined_flag=$lt_save_allow_undefined_flag
17517	else
17518	  cat conftest.err 1>&5
17519	fi
17520	$RM conftest*
17521
17522fi
17523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17524printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17525      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17526      ;;
17527    esac
17528  fi
17529  ;;
17530esac
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17684printf %s "checking dynamic linker characteristics... " >&6; }
17685
17686if test yes = "$GCC"; then
17687  case $host_os in
17688    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17689    *) lt_awk_arg='/^libraries:/' ;;
17690  esac
17691  case $host_os in
17692    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17693    *) lt_sed_strip_eq='s|=/|/|g' ;;
17694  esac
17695  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17696  case $lt_search_path_spec in
17697  *\;*)
17698    # if the path contains ";" then we assume it to be the separator
17699    # otherwise default to the standard path separator (i.e. ":") - it is
17700    # assumed that no part of a normal pathname contains ";" but that should
17701    # okay in the real world where ";" in dirpaths is itself problematic.
17702    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17703    ;;
17704  *)
17705    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17706    ;;
17707  esac
17708  # Ok, now we have the path, separated by spaces, we can step through it
17709  # and add multilib dir if necessary...
17710  lt_tmp_lt_search_path_spec=
17711  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17712  # ...but if some path component already ends with the multilib dir we assume
17713  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17714  case "$lt_multi_os_dir; $lt_search_path_spec " in
17715  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17716    lt_multi_os_dir=
17717    ;;
17718  esac
17719  for lt_sys_path in $lt_search_path_spec; do
17720    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17721      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17722    elif test -n "$lt_multi_os_dir"; then
17723      test -d "$lt_sys_path" && \
17724	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17725    fi
17726  done
17727  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17728BEGIN {RS = " "; FS = "/|\n";} {
17729  lt_foo = "";
17730  lt_count = 0;
17731  for (lt_i = NF; lt_i > 0; lt_i--) {
17732    if ($lt_i != "" && $lt_i != ".") {
17733      if ($lt_i == "..") {
17734        lt_count++;
17735      } else {
17736        if (lt_count == 0) {
17737          lt_foo = "/" $lt_i lt_foo;
17738        } else {
17739          lt_count--;
17740        }
17741      }
17742    }
17743  }
17744  if (lt_foo != "") { lt_freq[lt_foo]++; }
17745  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17746}'`
17747  # AWK program above erroneously prepends '/' to C:/dos/paths
17748  # for these hosts.
17749  case $host_os in
17750    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17751      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17752  esac
17753  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17754else
17755  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17756fi
17757library_names_spec=
17758libname_spec='lib$name'
17759soname_spec=
17760shrext_cmds=.so
17761postinstall_cmds=
17762postuninstall_cmds=
17763finish_cmds=
17764finish_eval=
17765shlibpath_var=
17766shlibpath_overrides_runpath=unknown
17767version_type=none
17768dynamic_linker="$host_os ld.so"
17769sys_lib_dlsearch_path_spec="/lib /usr/lib"
17770need_lib_prefix=unknown
17771hardcode_into_libs=no
17772
17773# when you set need_version to no, make sure it does not cause -set_version
17774# flags to be left without arguments
17775need_version=unknown
17776
17777
17778
17779case $host_os in
17780aix3*)
17781  version_type=linux # correct to gnu/linux during the next big refactor
17782  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17783  shlibpath_var=LIBPATH
17784
17785  # AIX 3 has no versioning support, so we append a major version to the name.
17786  soname_spec='$libname$release$shared_ext$major'
17787  ;;
17788
17789aix[4-9]*)
17790  version_type=linux # correct to gnu/linux during the next big refactor
17791  need_lib_prefix=no
17792  need_version=no
17793  hardcode_into_libs=yes
17794  if test ia64 = "$host_cpu"; then
17795    # AIX 5 supports IA64
17796    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17797    shlibpath_var=LD_LIBRARY_PATH
17798  else
17799    # With GCC up to 2.95.x, collect2 would create an import file
17800    # for dependence libraries.  The import file would start with
17801    # the line '#! .'.  This would cause the generated library to
17802    # depend on '.', always an invalid library.  This was fixed in
17803    # development snapshots of GCC prior to 3.0.
17804    case $host_os in
17805      aix4 | aix4.[01] | aix4.[01].*)
17806      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17807	   echo ' yes '
17808	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17809	:
17810      else
17811	can_build_shared=no
17812      fi
17813      ;;
17814    esac
17815    # Using Import Files as archive members, it is possible to support
17816    # filename-based versioning of shared library archives on AIX. While
17817    # this would work for both with and without runtime linking, it will
17818    # prevent static linking of such archives. So we do filename-based
17819    # shared library versioning with .so extension only, which is used
17820    # when both runtime linking and shared linking is enabled.
17821    # Unfortunately, runtime linking may impact performance, so we do
17822    # not want this to be the default eventually. Also, we use the
17823    # versioned .so libs for executables only if there is the -brtl
17824    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17825    # To allow for filename-based versioning support, we need to create
17826    # libNAME.so.V as an archive file, containing:
17827    # *) an Import File, referring to the versioned filename of the
17828    #    archive as well as the shared archive member, telling the
17829    #    bitwidth (32 or 64) of that shared object, and providing the
17830    #    list of exported symbols of that shared object, eventually
17831    #    decorated with the 'weak' keyword
17832    # *) the shared object with the F_LOADONLY flag set, to really avoid
17833    #    it being seen by the linker.
17834    # At run time we better use the real file rather than another symlink,
17835    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17836
17837    case $with_aix_soname,$aix_use_runtimelinking in
17838    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17839    # soname into executable. Probably we can add versioning support to
17840    # collect2, so additional links can be useful in future.
17841    aix,yes) # traditional libtool
17842      dynamic_linker='AIX unversionable lib.so'
17843      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17844      # instead of lib<name>.a to let people know that these are not
17845      # typical AIX shared libraries.
17846      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17847      ;;
17848    aix,no) # traditional AIX only
17849      dynamic_linker='AIX lib.a(lib.so.V)'
17850      # We preserve .a as extension for shared libraries through AIX4.2
17851      # and later when we are not doing run time linking.
17852      library_names_spec='$libname$release.a $libname.a'
17853      soname_spec='$libname$release$shared_ext$major'
17854      ;;
17855    svr4,*) # full svr4 only
17856      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17857      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17858      # We do not specify a path in Import Files, so LIBPATH fires.
17859      shlibpath_overrides_runpath=yes
17860      ;;
17861    *,yes) # both, prefer svr4
17862      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17863      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17864      # unpreferred sharedlib libNAME.a needs extra handling
17865      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"'
17866      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"'
17867      # We do not specify a path in Import Files, so LIBPATH fires.
17868      shlibpath_overrides_runpath=yes
17869      ;;
17870    *,no) # both, prefer aix
17871      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17872      library_names_spec='$libname$release.a $libname.a'
17873      soname_spec='$libname$release$shared_ext$major'
17874      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17875      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)'
17876      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"'
17877      ;;
17878    esac
17879    shlibpath_var=LIBPATH
17880  fi
17881  ;;
17882
17883amigaos*)
17884  case $host_cpu in
17885  powerpc)
17886    # Since July 2007 AmigaOS4 officially supports .so libraries.
17887    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17888    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17889    ;;
17890  m68k)
17891    library_names_spec='$libname.ixlibrary $libname.a'
17892    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17893    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'
17894    ;;
17895  esac
17896  ;;
17897
17898beos*)
17899  library_names_spec='$libname$shared_ext'
17900  dynamic_linker="$host_os ld.so"
17901  shlibpath_var=LIBRARY_PATH
17902  ;;
17903
17904bsdi[45]*)
17905  version_type=linux # correct to gnu/linux during the next big refactor
17906  need_version=no
17907  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17908  soname_spec='$libname$release$shared_ext$major'
17909  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17910  shlibpath_var=LD_LIBRARY_PATH
17911  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17912  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17913  # the default ld.so.conf also contains /usr/contrib/lib and
17914  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17915  # libtool to hard-code these into programs
17916  ;;
17917
17918cygwin* | mingw* | pw32* | cegcc*)
17919  version_type=windows
17920  shrext_cmds=.dll
17921  need_version=no
17922  need_lib_prefix=no
17923
17924  case $GCC,$cc_basename in
17925  yes,*)
17926    # gcc
17927    library_names_spec='$libname.dll.a'
17928    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17929    postinstall_cmds='base_file=`basename \$file`~
17930      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17931      dldir=$destdir/`dirname \$dlpath`~
17932      test -d \$dldir || mkdir -p \$dldir~
17933      $install_prog $dir/$dlname \$dldir/$dlname~
17934      chmod a+x \$dldir/$dlname~
17935      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17936        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17937      fi'
17938    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17939      dlpath=$dir/\$dldll~
17940       $RM \$dlpath'
17941    shlibpath_overrides_runpath=yes
17942
17943    case $host_os in
17944    cygwin*)
17945      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17946      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17947
17948      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17949      ;;
17950    mingw* | cegcc*)
17951      # MinGW DLLs use traditional 'lib' prefix
17952      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17953      ;;
17954    pw32*)
17955      # pw32 DLLs use 'pw' prefix rather than 'lib'
17956      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17957      ;;
17958    esac
17959    dynamic_linker='Win32 ld.exe'
17960    ;;
17961
17962  *,cl* | *,icl*)
17963    # Native MSVC or ICC
17964    libname_spec='$name'
17965    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17966    library_names_spec='$libname.dll.lib'
17967
17968    case $build_os in
17969    mingw*)
17970      sys_lib_search_path_spec=
17971      lt_save_ifs=$IFS
17972      IFS=';'
17973      for lt_path in $LIB
17974      do
17975        IFS=$lt_save_ifs
17976        # Let DOS variable expansion print the short 8.3 style file name.
17977        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17978        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17979      done
17980      IFS=$lt_save_ifs
17981      # Convert to MSYS style.
17982      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17983      ;;
17984    cygwin*)
17985      # Convert to unix form, then to dos form, then back to unix form
17986      # but this time dos style (no spaces!) so that the unix form looks
17987      # like /cygdrive/c/PROGRA~1:/cygdr...
17988      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17989      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17990      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17991      ;;
17992    *)
17993      sys_lib_search_path_spec=$LIB
17994      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17995        # It is most probably a Windows format PATH.
17996        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17997      else
17998        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17999      fi
18000      # FIXME: find the short name or the path components, as spaces are
18001      # common. (e.g. "Program Files" -> "PROGRA~1")
18002      ;;
18003    esac
18004
18005    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18006    postinstall_cmds='base_file=`basename \$file`~
18007      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18008      dldir=$destdir/`dirname \$dlpath`~
18009      test -d \$dldir || mkdir -p \$dldir~
18010      $install_prog $dir/$dlname \$dldir/$dlname'
18011    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18012      dlpath=$dir/\$dldll~
18013       $RM \$dlpath'
18014    shlibpath_overrides_runpath=yes
18015    dynamic_linker='Win32 link.exe'
18016    ;;
18017
18018  *)
18019    # Assume MSVC and ICC wrapper
18020    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18021    dynamic_linker='Win32 ld.exe'
18022    ;;
18023  esac
18024  # FIXME: first we should search . and the directory the executable is in
18025  shlibpath_var=PATH
18026  ;;
18027
18028darwin* | rhapsody*)
18029  dynamic_linker="$host_os dyld"
18030  version_type=darwin
18031  need_lib_prefix=no
18032  need_version=no
18033  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
18034  soname_spec='$libname$release$major$shared_ext'
18035  shlibpath_overrides_runpath=yes
18036  shlibpath_var=DYLD_LIBRARY_PATH
18037  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
18038
18039  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18040  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18041  ;;
18042
18043dgux*)
18044  version_type=linux # correct to gnu/linux during the next big refactor
18045  need_lib_prefix=no
18046  need_version=no
18047  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18048  soname_spec='$libname$release$shared_ext$major'
18049  shlibpath_var=LD_LIBRARY_PATH
18050  ;;
18051
18052freebsd* | dragonfly* | midnightbsd*)
18053  # DragonFly does not have aout.  When/if they implement a new
18054  # versioning mechanism, adjust this.
18055  if test -x /usr/bin/objformat; then
18056    objformat=`/usr/bin/objformat`
18057  else
18058    case $host_os in
18059    freebsd[23].*) objformat=aout ;;
18060    *) objformat=elf ;;
18061    esac
18062  fi
18063  # Handle Gentoo/FreeBSD as it was Linux
18064  case $host_vendor in
18065    gentoo)
18066      version_type=linux ;;
18067    *)
18068      version_type=freebsd-$objformat ;;
18069  esac
18070
18071  case $version_type in
18072    freebsd-elf*)
18073      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18074      soname_spec='$libname$release$shared_ext$major'
18075      need_version=no
18076      need_lib_prefix=no
18077      ;;
18078    freebsd-*)
18079      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18080      need_version=yes
18081      ;;
18082    linux)
18083      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18084      soname_spec='${libname}${release}${shared_ext}$major'
18085      need_lib_prefix=no
18086      need_version=no
18087      ;;
18088  esac
18089  shlibpath_var=LD_LIBRARY_PATH
18090  case $host_os in
18091  freebsd2.*)
18092    shlibpath_overrides_runpath=yes
18093    ;;
18094  freebsd3.[01]* | freebsdelf3.[01]*)
18095    shlibpath_overrides_runpath=yes
18096    hardcode_into_libs=yes
18097    ;;
18098  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18099  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18100    shlibpath_overrides_runpath=no
18101    hardcode_into_libs=yes
18102    ;;
18103  *) # from 4.6 on, and DragonFly
18104    shlibpath_overrides_runpath=yes
18105    hardcode_into_libs=yes
18106    ;;
18107  esac
18108  ;;
18109
18110haiku*)
18111  version_type=linux # correct to gnu/linux during the next big refactor
18112  need_lib_prefix=no
18113  need_version=no
18114  dynamic_linker="$host_os runtime_loader"
18115  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18116  soname_spec='$libname$release$shared_ext$major'
18117  shlibpath_var=LIBRARY_PATH
18118  shlibpath_overrides_runpath=no
18119  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18120  hardcode_into_libs=yes
18121  ;;
18122
18123hpux9* | hpux10* | hpux11*)
18124  # Give a soname corresponding to the major version so that dld.sl refuses to
18125  # link against other versions.
18126  version_type=sunos
18127  need_lib_prefix=no
18128  need_version=no
18129  case $host_cpu in
18130  ia64*)
18131    shrext_cmds='.so'
18132    hardcode_into_libs=yes
18133    dynamic_linker="$host_os dld.so"
18134    shlibpath_var=LD_LIBRARY_PATH
18135    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18136    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18137    soname_spec='$libname$release$shared_ext$major'
18138    if test 32 = "$HPUX_IA64_MODE"; then
18139      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18140      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18141    else
18142      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18143      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18144    fi
18145    ;;
18146  hppa*64*)
18147    shrext_cmds='.sl'
18148    hardcode_into_libs=yes
18149    dynamic_linker="$host_os dld.sl"
18150    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18151    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18152    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18153    soname_spec='$libname$release$shared_ext$major'
18154    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18155    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18156    ;;
18157  *)
18158    shrext_cmds='.sl'
18159    dynamic_linker="$host_os dld.sl"
18160    shlibpath_var=SHLIB_PATH
18161    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18162    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18163    soname_spec='$libname$release$shared_ext$major'
18164    ;;
18165  esac
18166  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18167  postinstall_cmds='chmod 555 $lib'
18168  # or fails outright, so override atomically:
18169  install_override_mode=555
18170  ;;
18171
18172interix[3-9]*)
18173  version_type=linux # correct to gnu/linux during the next big refactor
18174  need_lib_prefix=no
18175  need_version=no
18176  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18177  soname_spec='$libname$release$shared_ext$major'
18178  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18179  shlibpath_var=LD_LIBRARY_PATH
18180  shlibpath_overrides_runpath=no
18181  hardcode_into_libs=yes
18182  ;;
18183
18184irix5* | irix6* | nonstopux*)
18185  case $host_os in
18186    nonstopux*) version_type=nonstopux ;;
18187    *)
18188	if test yes = "$lt_cv_prog_gnu_ld"; then
18189		version_type=linux # correct to gnu/linux during the next big refactor
18190	else
18191		version_type=irix
18192	fi ;;
18193  esac
18194  need_lib_prefix=no
18195  need_version=no
18196  soname_spec='$libname$release$shared_ext$major'
18197  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18198  case $host_os in
18199  irix5* | nonstopux*)
18200    libsuff= shlibsuff=
18201    ;;
18202  *)
18203    case $LD in # libtool.m4 will add one of these switches to LD
18204    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18205      libsuff= shlibsuff= libmagic=32-bit;;
18206    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18207      libsuff=32 shlibsuff=N32 libmagic=N32;;
18208    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18209      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18210    *) libsuff= shlibsuff= libmagic=never-match;;
18211    esac
18212    ;;
18213  esac
18214  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18215  shlibpath_overrides_runpath=no
18216  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18217  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18218  hardcode_into_libs=yes
18219  ;;
18220
18221# No shared lib support for Linux oldld, aout, or coff.
18222linux*oldld* | linux*aout* | linux*coff*)
18223  dynamic_linker=no
18224  ;;
18225
18226linux*android*)
18227  version_type=none # Android doesn't support versioned libraries.
18228  need_lib_prefix=no
18229  need_version=no
18230  library_names_spec='$libname$release$shared_ext'
18231  soname_spec='$libname$release$shared_ext'
18232  finish_cmds=
18233  shlibpath_var=LD_LIBRARY_PATH
18234  shlibpath_overrides_runpath=yes
18235
18236  # This implies no fast_install, which is unacceptable.
18237  # Some rework will be needed to allow for fast_install
18238  # before this can be enabled.
18239  hardcode_into_libs=yes
18240
18241  dynamic_linker='Android linker'
18242  # Don't embed -rpath directories since the linker doesn't support them.
18243  hardcode_libdir_flag_spec='-L$libdir'
18244  ;;
18245
18246# This must be glibc/ELF.
18247linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18248  version_type=linux # correct to gnu/linux during the next big refactor
18249  need_lib_prefix=no
18250  need_version=no
18251  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18252  soname_spec='$libname$release$shared_ext$major'
18253  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18254  shlibpath_var=LD_LIBRARY_PATH
18255  shlibpath_overrides_runpath=no
18256
18257  # Some binutils ld are patched to set DT_RUNPATH
18258  if test ${lt_cv_shlibpath_overrides_runpath+y}
18259then :
18260  printf %s "(cached) " >&6
18261else $as_nop
18262  lt_cv_shlibpath_overrides_runpath=no
18263    save_LDFLAGS=$LDFLAGS
18264    save_libdir=$libdir
18265    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18266	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268/* end confdefs.h.  */
18269
18270int
18271main (void)
18272{
18273
18274  ;
18275  return 0;
18276}
18277_ACEOF
18278if ac_fn_c_try_link "$LINENO"
18279then :
18280  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18281then :
18282  lt_cv_shlibpath_overrides_runpath=yes
18283fi
18284fi
18285rm -f core conftest.err conftest.$ac_objext conftest.beam \
18286    conftest$ac_exeext conftest.$ac_ext
18287    LDFLAGS=$save_LDFLAGS
18288    libdir=$save_libdir
18289
18290fi
18291
18292  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18293
18294  # This implies no fast_install, which is unacceptable.
18295  # Some rework will be needed to allow for fast_install
18296  # before this can be enabled.
18297  hardcode_into_libs=yes
18298
18299  # Ideally, we could use ldconfig to report *all* directores which are
18300  # searched for libraries, however this is still not possible.  Aside from not
18301  # being certain /sbin/ldconfig is available, command
18302  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18303  # even though it is searched at run-time.  Try to do the best guess by
18304  # appending ld.so.conf contents (and includes) to the search path.
18305  if test -f /etc/ld.so.conf; then
18306    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' ' '`
18307    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18308  fi
18309
18310  # We used to test for /lib/ld.so.1 and disable shared libraries on
18311  # powerpc, because MkLinux only supported shared libraries with the
18312  # GNU dynamic linker.  Since this was broken with cross compilers,
18313  # most powerpc-linux boxes support dynamic linking these days and
18314  # people can always --disable-shared, the test was removed, and we
18315  # assume the GNU/Linux dynamic linker is in use.
18316  dynamic_linker='GNU/Linux ld.so'
18317  ;;
18318
18319netbsd*)
18320  version_type=sunos
18321  need_lib_prefix=no
18322  need_version=no
18323  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18324    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18325    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18326    dynamic_linker='NetBSD (a.out) ld.so'
18327  else
18328    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18329    soname_spec='$libname$release$shared_ext$major'
18330    dynamic_linker='NetBSD ld.elf_so'
18331  fi
18332  shlibpath_var=LD_LIBRARY_PATH
18333  shlibpath_overrides_runpath=yes
18334  hardcode_into_libs=yes
18335  ;;
18336
18337newsos6)
18338  version_type=linux # correct to gnu/linux during the next big refactor
18339  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18340  shlibpath_var=LD_LIBRARY_PATH
18341  shlibpath_overrides_runpath=yes
18342  ;;
18343
18344*nto* | *qnx*)
18345  version_type=qnx
18346  need_lib_prefix=no
18347  need_version=no
18348  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18349  soname_spec='$libname$release$shared_ext$major'
18350  shlibpath_var=LD_LIBRARY_PATH
18351  shlibpath_overrides_runpath=no
18352  hardcode_into_libs=yes
18353  dynamic_linker='ldqnx.so'
18354  ;;
18355
18356openbsd* | bitrig*)
18357  version_type=sunos
18358  sys_lib_dlsearch_path_spec=/usr/lib
18359  need_lib_prefix=no
18360  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18361    need_version=no
18362  else
18363    need_version=yes
18364  fi
18365  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18366  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18367  shlibpath_var=LD_LIBRARY_PATH
18368  shlibpath_overrides_runpath=yes
18369  ;;
18370
18371os2*)
18372  libname_spec='$name'
18373  version_type=windows
18374  shrext_cmds=.dll
18375  need_version=no
18376  need_lib_prefix=no
18377  # OS/2 can only load a DLL with a base name of 8 characters or less.
18378  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18379    v=$($ECHO $release$versuffix | tr -d .-);
18380    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18381    $ECHO $n$v`$shared_ext'
18382  library_names_spec='${libname}_dll.$libext'
18383  dynamic_linker='OS/2 ld.exe'
18384  shlibpath_var=BEGINLIBPATH
18385  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18386  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18387  postinstall_cmds='base_file=`basename \$file`~
18388    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18389    dldir=$destdir/`dirname \$dlpath`~
18390    test -d \$dldir || mkdir -p \$dldir~
18391    $install_prog $dir/$dlname \$dldir/$dlname~
18392    chmod a+x \$dldir/$dlname~
18393    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18394      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18395    fi'
18396  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18397    dlpath=$dir/\$dldll~
18398    $RM \$dlpath'
18399  ;;
18400
18401osf3* | osf4* | osf5*)
18402  version_type=osf
18403  need_lib_prefix=no
18404  need_version=no
18405  soname_spec='$libname$release$shared_ext$major'
18406  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18407  shlibpath_var=LD_LIBRARY_PATH
18408  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18409  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18410  ;;
18411
18412rdos*)
18413  dynamic_linker=no
18414  ;;
18415
18416solaris*)
18417  version_type=linux # correct to gnu/linux during the next big refactor
18418  need_lib_prefix=no
18419  need_version=no
18420  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18421  soname_spec='$libname$release$shared_ext$major'
18422  shlibpath_var=LD_LIBRARY_PATH
18423  shlibpath_overrides_runpath=yes
18424  hardcode_into_libs=yes
18425  # ldd complains unless libraries are executable
18426  postinstall_cmds='chmod +x $lib'
18427  ;;
18428
18429sunos4*)
18430  version_type=sunos
18431  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18432  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18433  shlibpath_var=LD_LIBRARY_PATH
18434  shlibpath_overrides_runpath=yes
18435  if test yes = "$with_gnu_ld"; then
18436    need_lib_prefix=no
18437  fi
18438  need_version=yes
18439  ;;
18440
18441sysv4 | sysv4.3*)
18442  version_type=linux # correct to gnu/linux during the next big refactor
18443  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18444  soname_spec='$libname$release$shared_ext$major'
18445  shlibpath_var=LD_LIBRARY_PATH
18446  case $host_vendor in
18447    sni)
18448      shlibpath_overrides_runpath=no
18449      need_lib_prefix=no
18450      runpath_var=LD_RUN_PATH
18451      ;;
18452    siemens)
18453      need_lib_prefix=no
18454      ;;
18455    motorola)
18456      need_lib_prefix=no
18457      need_version=no
18458      shlibpath_overrides_runpath=no
18459      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18460      ;;
18461  esac
18462  ;;
18463
18464sysv4*MP*)
18465  if test -d /usr/nec; then
18466    version_type=linux # correct to gnu/linux during the next big refactor
18467    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18468    soname_spec='$libname$shared_ext.$major'
18469    shlibpath_var=LD_LIBRARY_PATH
18470  fi
18471  ;;
18472
18473sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18474  version_type=sco
18475  need_lib_prefix=no
18476  need_version=no
18477  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18478  soname_spec='$libname$release$shared_ext$major'
18479  shlibpath_var=LD_LIBRARY_PATH
18480  shlibpath_overrides_runpath=yes
18481  hardcode_into_libs=yes
18482  if test yes = "$with_gnu_ld"; then
18483    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18484  else
18485    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18486    case $host_os in
18487      sco3.2v5*)
18488        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18489	;;
18490    esac
18491  fi
18492  sys_lib_dlsearch_path_spec='/usr/lib'
18493  ;;
18494
18495tpf*)
18496  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18497  version_type=linux # correct to gnu/linux during the next big refactor
18498  need_lib_prefix=no
18499  need_version=no
18500  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18501  shlibpath_var=LD_LIBRARY_PATH
18502  shlibpath_overrides_runpath=no
18503  hardcode_into_libs=yes
18504  ;;
18505
18506uts4*)
18507  version_type=linux # correct to gnu/linux during the next big refactor
18508  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18509  soname_spec='$libname$release$shared_ext$major'
18510  shlibpath_var=LD_LIBRARY_PATH
18511  ;;
18512
18513*)
18514  dynamic_linker=no
18515  ;;
18516esac
18517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18518printf "%s\n" "$dynamic_linker" >&6; }
18519test no = "$dynamic_linker" && can_build_shared=no
18520
18521variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18522if test yes = "$GCC"; then
18523  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18524fi
18525
18526if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18527  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18528fi
18529
18530if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18531  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18532fi
18533
18534# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18535configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18536
18537# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18538func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18539
18540# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18541configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18640printf %s "checking how to hardcode library paths into programs... " >&6; }
18641hardcode_action=
18642if test -n "$hardcode_libdir_flag_spec" ||
18643   test -n "$runpath_var" ||
18644   test yes = "$hardcode_automatic"; then
18645
18646  # We can hardcode non-existent directories.
18647  if test no != "$hardcode_direct" &&
18648     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18649     # have to relink, otherwise we might link with an installed library
18650     # when we should be linking with a yet-to-be-installed one
18651     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18652     test no != "$hardcode_minus_L"; then
18653    # Linking always hardcodes the temporary library directory.
18654    hardcode_action=relink
18655  else
18656    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18657    hardcode_action=immediate
18658  fi
18659else
18660  # We cannot hardcode anything, or else we can only hardcode existing
18661  # directories.
18662  hardcode_action=unsupported
18663fi
18664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18665printf "%s\n" "$hardcode_action" >&6; }
18666
18667if test relink = "$hardcode_action" ||
18668   test yes = "$inherit_rpath"; then
18669  # Fast installation is not supported
18670  enable_fast_install=no
18671elif test yes = "$shlibpath_overrides_runpath" ||
18672     test no = "$enable_shared"; then
18673  # Fast installation is not necessary
18674  enable_fast_install=needless
18675fi
18676
18677
18678
18679
18680
18681
18682  if test yes != "$enable_dlopen"; then
18683  enable_dlopen=unknown
18684  enable_dlopen_self=unknown
18685  enable_dlopen_self_static=unknown
18686else
18687  lt_cv_dlopen=no
18688  lt_cv_dlopen_libs=
18689
18690  case $host_os in
18691  beos*)
18692    lt_cv_dlopen=load_add_on
18693    lt_cv_dlopen_libs=
18694    lt_cv_dlopen_self=yes
18695    ;;
18696
18697  mingw* | pw32* | cegcc*)
18698    lt_cv_dlopen=LoadLibrary
18699    lt_cv_dlopen_libs=
18700    ;;
18701
18702  cygwin*)
18703    lt_cv_dlopen=dlopen
18704    lt_cv_dlopen_libs=
18705    ;;
18706
18707  darwin*)
18708    # if libdl is installed we need to link against it
18709    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18710printf %s "checking for dlopen in -ldl... " >&6; }
18711if test ${ac_cv_lib_dl_dlopen+y}
18712then :
18713  printf %s "(cached) " >&6
18714else $as_nop
18715  ac_check_lib_save_LIBS=$LIBS
18716LIBS="-ldl  $LIBS"
18717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18718/* end confdefs.h.  */
18719
18720/* Override any GCC internal prototype to avoid an error.
18721   Use char because int might match the return type of a GCC
18722   builtin and then its argument prototype would still apply.  */
18723char dlopen ();
18724int
18725main (void)
18726{
18727return dlopen ();
18728  ;
18729  return 0;
18730}
18731_ACEOF
18732if ac_fn_c_try_link "$LINENO"
18733then :
18734  ac_cv_lib_dl_dlopen=yes
18735else $as_nop
18736  ac_cv_lib_dl_dlopen=no
18737fi
18738rm -f core conftest.err conftest.$ac_objext conftest.beam \
18739    conftest$ac_exeext conftest.$ac_ext
18740LIBS=$ac_check_lib_save_LIBS
18741fi
18742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18743printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18744if test "x$ac_cv_lib_dl_dlopen" = xyes
18745then :
18746  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18747else $as_nop
18748
18749    lt_cv_dlopen=dyld
18750    lt_cv_dlopen_libs=
18751    lt_cv_dlopen_self=yes
18752
18753fi
18754
18755    ;;
18756
18757  tpf*)
18758    # Don't try to run any link tests for TPF.  We know it's impossible
18759    # because TPF is a cross-compiler, and we know how we open DSOs.
18760    lt_cv_dlopen=dlopen
18761    lt_cv_dlopen_libs=
18762    lt_cv_dlopen_self=no
18763    ;;
18764
18765  *)
18766    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18767if test "x$ac_cv_func_shl_load" = xyes
18768then :
18769  lt_cv_dlopen=shl_load
18770else $as_nop
18771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18772printf %s "checking for shl_load in -ldld... " >&6; }
18773if test ${ac_cv_lib_dld_shl_load+y}
18774then :
18775  printf %s "(cached) " >&6
18776else $as_nop
18777  ac_check_lib_save_LIBS=$LIBS
18778LIBS="-ldld  $LIBS"
18779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780/* end confdefs.h.  */
18781
18782/* Override any GCC internal prototype to avoid an error.
18783   Use char because int might match the return type of a GCC
18784   builtin and then its argument prototype would still apply.  */
18785char shl_load ();
18786int
18787main (void)
18788{
18789return shl_load ();
18790  ;
18791  return 0;
18792}
18793_ACEOF
18794if ac_fn_c_try_link "$LINENO"
18795then :
18796  ac_cv_lib_dld_shl_load=yes
18797else $as_nop
18798  ac_cv_lib_dld_shl_load=no
18799fi
18800rm -f core conftest.err conftest.$ac_objext conftest.beam \
18801    conftest$ac_exeext conftest.$ac_ext
18802LIBS=$ac_check_lib_save_LIBS
18803fi
18804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18805printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18806if test "x$ac_cv_lib_dld_shl_load" = xyes
18807then :
18808  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18809else $as_nop
18810  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18811if test "x$ac_cv_func_dlopen" = xyes
18812then :
18813  lt_cv_dlopen=dlopen
18814else $as_nop
18815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18816printf %s "checking for dlopen in -ldl... " >&6; }
18817if test ${ac_cv_lib_dl_dlopen+y}
18818then :
18819  printf %s "(cached) " >&6
18820else $as_nop
18821  ac_check_lib_save_LIBS=$LIBS
18822LIBS="-ldl  $LIBS"
18823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824/* end confdefs.h.  */
18825
18826/* Override any GCC internal prototype to avoid an error.
18827   Use char because int might match the return type of a GCC
18828   builtin and then its argument prototype would still apply.  */
18829char dlopen ();
18830int
18831main (void)
18832{
18833return dlopen ();
18834  ;
18835  return 0;
18836}
18837_ACEOF
18838if ac_fn_c_try_link "$LINENO"
18839then :
18840  ac_cv_lib_dl_dlopen=yes
18841else $as_nop
18842  ac_cv_lib_dl_dlopen=no
18843fi
18844rm -f core conftest.err conftest.$ac_objext conftest.beam \
18845    conftest$ac_exeext conftest.$ac_ext
18846LIBS=$ac_check_lib_save_LIBS
18847fi
18848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18849printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18850if test "x$ac_cv_lib_dl_dlopen" = xyes
18851then :
18852  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18853else $as_nop
18854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18855printf %s "checking for dlopen in -lsvld... " >&6; }
18856if test ${ac_cv_lib_svld_dlopen+y}
18857then :
18858  printf %s "(cached) " >&6
18859else $as_nop
18860  ac_check_lib_save_LIBS=$LIBS
18861LIBS="-lsvld  $LIBS"
18862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863/* end confdefs.h.  */
18864
18865/* Override any GCC internal prototype to avoid an error.
18866   Use char because int might match the return type of a GCC
18867   builtin and then its argument prototype would still apply.  */
18868char dlopen ();
18869int
18870main (void)
18871{
18872return dlopen ();
18873  ;
18874  return 0;
18875}
18876_ACEOF
18877if ac_fn_c_try_link "$LINENO"
18878then :
18879  ac_cv_lib_svld_dlopen=yes
18880else $as_nop
18881  ac_cv_lib_svld_dlopen=no
18882fi
18883rm -f core conftest.err conftest.$ac_objext conftest.beam \
18884    conftest$ac_exeext conftest.$ac_ext
18885LIBS=$ac_check_lib_save_LIBS
18886fi
18887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18888printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18889if test "x$ac_cv_lib_svld_dlopen" = xyes
18890then :
18891  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18892else $as_nop
18893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18894printf %s "checking for dld_link in -ldld... " >&6; }
18895if test ${ac_cv_lib_dld_dld_link+y}
18896then :
18897  printf %s "(cached) " >&6
18898else $as_nop
18899  ac_check_lib_save_LIBS=$LIBS
18900LIBS="-ldld  $LIBS"
18901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902/* end confdefs.h.  */
18903
18904/* Override any GCC internal prototype to avoid an error.
18905   Use char because int might match the return type of a GCC
18906   builtin and then its argument prototype would still apply.  */
18907char dld_link ();
18908int
18909main (void)
18910{
18911return dld_link ();
18912  ;
18913  return 0;
18914}
18915_ACEOF
18916if ac_fn_c_try_link "$LINENO"
18917then :
18918  ac_cv_lib_dld_dld_link=yes
18919else $as_nop
18920  ac_cv_lib_dld_dld_link=no
18921fi
18922rm -f core conftest.err conftest.$ac_objext conftest.beam \
18923    conftest$ac_exeext conftest.$ac_ext
18924LIBS=$ac_check_lib_save_LIBS
18925fi
18926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18927printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18928if test "x$ac_cv_lib_dld_dld_link" = xyes
18929then :
18930  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18931fi
18932
18933
18934fi
18935
18936
18937fi
18938
18939
18940fi
18941
18942
18943fi
18944
18945
18946fi
18947
18948    ;;
18949  esac
18950
18951  if test no = "$lt_cv_dlopen"; then
18952    enable_dlopen=no
18953  else
18954    enable_dlopen=yes
18955  fi
18956
18957  case $lt_cv_dlopen in
18958  dlopen)
18959    save_CPPFLAGS=$CPPFLAGS
18960    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18961
18962    save_LDFLAGS=$LDFLAGS
18963    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18964
18965    save_LIBS=$LIBS
18966    LIBS="$lt_cv_dlopen_libs $LIBS"
18967
18968    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18969printf %s "checking whether a program can dlopen itself... " >&6; }
18970if test ${lt_cv_dlopen_self+y}
18971then :
18972  printf %s "(cached) " >&6
18973else $as_nop
18974  	  if test yes = "$cross_compiling"; then :
18975  lt_cv_dlopen_self=cross
18976else
18977  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18978  lt_status=$lt_dlunknown
18979  cat > conftest.$ac_ext <<_LT_EOF
18980#line $LINENO "configure"
18981#include "confdefs.h"
18982
18983#if HAVE_DLFCN_H
18984#include <dlfcn.h>
18985#endif
18986
18987#include <stdio.h>
18988
18989#ifdef RTLD_GLOBAL
18990#  define LT_DLGLOBAL		RTLD_GLOBAL
18991#else
18992#  ifdef DL_GLOBAL
18993#    define LT_DLGLOBAL		DL_GLOBAL
18994#  else
18995#    define LT_DLGLOBAL		0
18996#  endif
18997#endif
18998
18999/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19000   find out it does not work in some platform. */
19001#ifndef LT_DLLAZY_OR_NOW
19002#  ifdef RTLD_LAZY
19003#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19004#  else
19005#    ifdef DL_LAZY
19006#      define LT_DLLAZY_OR_NOW		DL_LAZY
19007#    else
19008#      ifdef RTLD_NOW
19009#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19010#      else
19011#        ifdef DL_NOW
19012#          define LT_DLLAZY_OR_NOW	DL_NOW
19013#        else
19014#          define LT_DLLAZY_OR_NOW	0
19015#        endif
19016#      endif
19017#    endif
19018#  endif
19019#endif
19020
19021/* When -fvisibility=hidden is used, assume the code has been annotated
19022   correspondingly for the symbols needed.  */
19023#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19024int fnord () __attribute__((visibility("default")));
19025#endif
19026
19027int fnord () { return 42; }
19028int main ()
19029{
19030  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19031  int status = $lt_dlunknown;
19032
19033  if (self)
19034    {
19035      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19036      else
19037        {
19038	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19039          else puts (dlerror ());
19040	}
19041      /* dlclose (self); */
19042    }
19043  else
19044    puts (dlerror ());
19045
19046  return status;
19047}
19048_LT_EOF
19049  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19050  (eval $ac_link) 2>&5
19051  ac_status=$?
19052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19053  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19054    (./conftest; exit; ) >&5 2>/dev/null
19055    lt_status=$?
19056    case x$lt_status in
19057      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19058      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19059      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19060    esac
19061  else :
19062    # compilation failed
19063    lt_cv_dlopen_self=no
19064  fi
19065fi
19066rm -fr conftest*
19067
19068
19069fi
19070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19071printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19072
19073    if test yes = "$lt_cv_dlopen_self"; then
19074      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19075      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19076printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19077if test ${lt_cv_dlopen_self_static+y}
19078then :
19079  printf %s "(cached) " >&6
19080else $as_nop
19081  	  if test yes = "$cross_compiling"; then :
19082  lt_cv_dlopen_self_static=cross
19083else
19084  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19085  lt_status=$lt_dlunknown
19086  cat > conftest.$ac_ext <<_LT_EOF
19087#line $LINENO "configure"
19088#include "confdefs.h"
19089
19090#if HAVE_DLFCN_H
19091#include <dlfcn.h>
19092#endif
19093
19094#include <stdio.h>
19095
19096#ifdef RTLD_GLOBAL
19097#  define LT_DLGLOBAL		RTLD_GLOBAL
19098#else
19099#  ifdef DL_GLOBAL
19100#    define LT_DLGLOBAL		DL_GLOBAL
19101#  else
19102#    define LT_DLGLOBAL		0
19103#  endif
19104#endif
19105
19106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19107   find out it does not work in some platform. */
19108#ifndef LT_DLLAZY_OR_NOW
19109#  ifdef RTLD_LAZY
19110#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19111#  else
19112#    ifdef DL_LAZY
19113#      define LT_DLLAZY_OR_NOW		DL_LAZY
19114#    else
19115#      ifdef RTLD_NOW
19116#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19117#      else
19118#        ifdef DL_NOW
19119#          define LT_DLLAZY_OR_NOW	DL_NOW
19120#        else
19121#          define LT_DLLAZY_OR_NOW	0
19122#        endif
19123#      endif
19124#    endif
19125#  endif
19126#endif
19127
19128/* When -fvisibility=hidden is used, assume the code has been annotated
19129   correspondingly for the symbols needed.  */
19130#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19131int fnord () __attribute__((visibility("default")));
19132#endif
19133
19134int fnord () { return 42; }
19135int main ()
19136{
19137  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19138  int status = $lt_dlunknown;
19139
19140  if (self)
19141    {
19142      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19143      else
19144        {
19145	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19146          else puts (dlerror ());
19147	}
19148      /* dlclose (self); */
19149    }
19150  else
19151    puts (dlerror ());
19152
19153  return status;
19154}
19155_LT_EOF
19156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19157  (eval $ac_link) 2>&5
19158  ac_status=$?
19159  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19160  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19161    (./conftest; exit; ) >&5 2>/dev/null
19162    lt_status=$?
19163    case x$lt_status in
19164      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19165      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19166      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19167    esac
19168  else :
19169    # compilation failed
19170    lt_cv_dlopen_self_static=no
19171  fi
19172fi
19173rm -fr conftest*
19174
19175
19176fi
19177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19178printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19179    fi
19180
19181    CPPFLAGS=$save_CPPFLAGS
19182    LDFLAGS=$save_LDFLAGS
19183    LIBS=$save_LIBS
19184    ;;
19185  esac
19186
19187  case $lt_cv_dlopen_self in
19188  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19189  *) enable_dlopen_self=unknown ;;
19190  esac
19191
19192  case $lt_cv_dlopen_self_static in
19193  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19194  *) enable_dlopen_self_static=unknown ;;
19195  esac
19196fi
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214striplib=
19215old_striplib=
19216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19217printf %s "checking whether stripping libraries is possible... " >&6; }
19218if test -z "$STRIP"; then
19219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19220printf "%s\n" "no" >&6; }
19221else
19222  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19223    old_striplib="$STRIP --strip-debug"
19224    striplib="$STRIP --strip-unneeded"
19225    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19226printf "%s\n" "yes" >&6; }
19227  else
19228    case $host_os in
19229    darwin*)
19230      # FIXME - insert some real tests, host_os isn't really good enough
19231      striplib="$STRIP -x"
19232      old_striplib="$STRIP -S"
19233      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19234printf "%s\n" "yes" >&6; }
19235      ;;
19236    freebsd*)
19237      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19238        old_striplib="$STRIP --strip-debug"
19239        striplib="$STRIP --strip-unneeded"
19240        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241printf "%s\n" "yes" >&6; }
19242      else
19243        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244printf "%s\n" "no" >&6; }
19245      fi
19246      ;;
19247    *)
19248      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249printf "%s\n" "no" >&6; }
19250      ;;
19251    esac
19252  fi
19253fi
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266  # Report what library types will actually be built
19267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19268printf %s "checking if libtool supports shared libraries... " >&6; }
19269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19270printf "%s\n" "$can_build_shared" >&6; }
19271
19272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19273printf %s "checking whether to build shared libraries... " >&6; }
19274  test no = "$can_build_shared" && enable_shared=no
19275
19276  # On AIX, shared libraries and static libraries use the same namespace, and
19277  # are all built from PIC.
19278  case $host_os in
19279  aix3*)
19280    test yes = "$enable_shared" && enable_static=no
19281    if test -n "$RANLIB"; then
19282      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19283      postinstall_cmds='$RANLIB $lib'
19284    fi
19285    ;;
19286
19287  aix[4-9]*)
19288    if test ia64 != "$host_cpu"; then
19289      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19290      yes,aix,yes) ;;			# shared object as lib.so file only
19291      yes,svr4,*) ;;			# shared object as lib.so archive member only
19292      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19293      esac
19294    fi
19295    ;;
19296  esac
19297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19298printf "%s\n" "$enable_shared" >&6; }
19299
19300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19301printf %s "checking whether to build static libraries... " >&6; }
19302  # Make sure either enable_shared or enable_static is yes.
19303  test yes = "$enable_shared" || enable_static=yes
19304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19305printf "%s\n" "$enable_static" >&6; }
19306
19307
19308
19309
19310fi
19311ac_ext=c
19312ac_cpp='$CPP $CPPFLAGS'
19313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19315ac_compiler_gnu=$ac_cv_c_compiler_gnu
19316
19317CC=$lt_save_CC
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333        ac_config_commands="$ac_config_commands libtool"
19334
19335
19336
19337
19338# Only expand once:
19339
19340
19341
19342
19343
19344
19345# Check whether --with-xorg-module-dir was given.
19346if test ${with_xorg_module_dir+y}
19347then :
19348  withval=$with_xorg_module_dir; moduledir="$withval"
19349else $as_nop
19350  moduledir="$libdir/xorg/modules"
19351fi
19352
19353inputdir=${moduledir}/input
19354
19355
19356
19357# Check whether --with-xorg-conf-dir was given.
19358if test ${with_xorg_conf_dir+y}
19359then :
19360  withval=$with_xorg_conf_dir; XORG_CONF_DIR="$withval"
19361else $as_nop
19362  XORG_CONF_DIR="`$PKG_CONFIG --variable=sysconfigdir xorg-server`"
19363fi
19364
19365
19366 if test "x$XORG_CONF_DIR" != "x" && test "x$XORG_CONF_DIR" != "xno"; then
19367  HAS_XORG_CONF_DIR_TRUE=
19368  HAS_XORG_CONF_DIR_FALSE='#'
19369else
19370  HAS_XORG_CONF_DIR_TRUE='#'
19371  HAS_XORG_CONF_DIR_FALSE=
19372fi
19373
19374
19375
19376# Check whether --with-hal-bin-dir was given.
19377if test ${with_hal_bin_dir+y}
19378then :
19379  withval=$with_hal_bin_dir; halbindir="$withval"
19380else $as_nop
19381  halbindir="$bindir"
19382fi
19383
19384HAL_BIN_DIR=${halbindir}
19385
19386
19387
19388# Check whether --with-hal-callouts-dir was given.
19389if test ${with_hal_callouts_dir+y}
19390then :
19391  withval=$with_hal_callouts_dir; halcalloutsdir="$withval"
19392else $as_nop
19393  halcalloutsdir="$libdir/hal"
19394fi
19395
19396HAL_CALLOUTS_DIR=${halcalloutsdir}
19397
19398
19399
19400# Check whether --with-hal-fdi-dir was given.
19401if test ${with_hal_fdi_dir+y}
19402then :
19403  withval=$with_hal_fdi_dir; halfdidir="$withval"
19404else $as_nop
19405  halfdidir="$datadir/hal/fdi/policy/20thirdparty"
19406fi
19407
19408HAL_FDI_DIR=${halfdidir}
19409
19410
19411# Udev location for rules directory
19412
19413# Check whether --with-udev-rules-dir was given.
19414if test ${with_udev_rules_dir+y}
19415then :
19416  withval=$with_udev_rules_dir; udevdir="$withval"
19417else $as_nop
19418  udevdir="$libdir/udev/rules.d"
19419fi
19420
19421UDEV_RULES_DIR=${udevdir}
19422
19423 if test "x$UDEV_RULES_DIR" != "xno"; then
19424  HAS_UDEV_RULES_DIR_TRUE=
19425  HAS_UDEV_RULES_DIR_FALSE='#'
19426else
19427  HAS_UDEV_RULES_DIR_TRUE='#'
19428  HAS_UDEV_RULES_DIR_FALSE=
19429fi
19430
19431
19432# Checks for extensions
19433
19434
19435	SAVE_CFLAGS="$CFLAGS"
19436	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19437	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438/* end confdefs.h.  */
19439
19440#include "xorg-server.h"
19441#if !defined RANDR
19442#error RANDR not defined
19443#endif
19444
19445int
19446main (void)
19447{
19448
19449  ;
19450  return 0;
19451}
19452_ACEOF
19453if ac_fn_c_try_compile "$LINENO"
19454then :
19455  _EXT_CHECK=yes
19456else $as_nop
19457  _EXT_CHECK=no
19458fi
19459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19460	CFLAGS="$SAVE_CFLAGS"
19461	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19462printf %s "checking if RANDR is defined... " >&6; }
19463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19464printf "%s\n" "$_EXT_CHECK" >&6; }
19465	if test "$_EXT_CHECK" != no; then
19466		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19467	fi
19468
19469
19470
19471	SAVE_CFLAGS="$CFLAGS"
19472	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19473	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474/* end confdefs.h.  */
19475
19476#include "xorg-server.h"
19477#if !defined XINPUT
19478#error XINPUT not defined
19479#endif
19480
19481int
19482main (void)
19483{
19484
19485  ;
19486  return 0;
19487}
19488_ACEOF
19489if ac_fn_c_try_compile "$LINENO"
19490then :
19491  _EXT_CHECK=yes
19492else $as_nop
19493  _EXT_CHECK=no
19494fi
19495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19496	CFLAGS="$SAVE_CFLAGS"
19497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
19498printf %s "checking if XINPUT is defined... " >&6; }
19499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19500printf "%s\n" "$_EXT_CHECK" >&6; }
19501	if test "$_EXT_CHECK" != no; then
19502		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
19503	fi
19504
19505
19506# Checks for pkg-config packages
19507libudev_check=yes
19508
19509# Check whether --with-libudev was given.
19510if test ${with_libudev+y}
19511then :
19512  withval=$with_libudev; if test x$withval = xno; then libudev_check=no; fi
19513
19514fi
19515
19516
19517case $host_os in
19518     linux*)
19519	 if test $libudev_check != no; then
19520
19521pkg_failed=no
19522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19523printf %s "checking for LIBUDEV... " >&6; }
19524
19525if test -n "$LIBUDEV_CFLAGS"; then
19526    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19527 elif test -n "$PKG_CONFIG"; then
19528    if test -n "$PKG_CONFIG" && \
19529    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19530  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19531  ac_status=$?
19532  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19533  test $ac_status = 0; }; then
19534  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19535		      test "x$?" != "x0" && pkg_failed=yes
19536else
19537  pkg_failed=yes
19538fi
19539 else
19540    pkg_failed=untried
19541fi
19542if test -n "$LIBUDEV_LIBS"; then
19543    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19544 elif test -n "$PKG_CONFIG"; then
19545    if test -n "$PKG_CONFIG" && \
19546    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19547  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19548  ac_status=$?
19549  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19550  test $ac_status = 0; }; then
19551  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19552		      test "x$?" != "x0" && pkg_failed=yes
19553else
19554  pkg_failed=yes
19555fi
19556 else
19557    pkg_failed=untried
19558fi
19559
19560
19561
19562if test $pkg_failed = yes; then
19563   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19564printf "%s\n" "no" >&6; }
19565
19566if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19567        _pkg_short_errors_supported=yes
19568else
19569        _pkg_short_errors_supported=no
19570fi
19571        if test $_pkg_short_errors_supported = yes; then
19572	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19573        else
19574	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19575        fi
19576	# Put the nasty error message in config.log where it belongs
19577	echo "$LIBUDEV_PKG_ERRORS" >&5
19578
19579	as_fn_error $? "Package requirements (libudev) were not met:
19580
19581$LIBUDEV_PKG_ERRORS
19582
19583Consider adjusting the PKG_CONFIG_PATH environment variable if you
19584installed software in a non-standard prefix.
19585
19586Alternatively, you may set the environment variables LIBUDEV_CFLAGS
19587and LIBUDEV_LIBS to avoid the need to call pkg-config.
19588See the pkg-config man page for more details." "$LINENO" 5
19589elif test $pkg_failed = untried; then
19590     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19591printf "%s\n" "no" >&6; }
19592	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19593printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19594as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19595is in your PATH or set the PKG_CONFIG environment variable to the full
19596path to pkg-config.
19597
19598Alternatively, you may set the environment variables LIBUDEV_CFLAGS
19599and LIBUDEV_LIBS to avoid the need to call pkg-config.
19600See the pkg-config man page for more details.
19601
19602To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19603See \`config.log' for more details" "$LINENO" 5; }
19604else
19605	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19606	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19607        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19608printf "%s\n" "yes" >&6; }
19609
19610printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h
19611
19612fi;
19613         fi
19614
19615  for ac_func in ioperm iopl
19616do :
19617  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19618ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19619if eval test \"x\$"$as_ac_var"\" = x"yes"
19620then :
19621  cat >>confdefs.h <<_ACEOF
19622#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19623_ACEOF
19624
19625else $as_nop
19626  as_fn_error $? "" "$LINENO" 5
19627			(cannot determine how to elevate io permissions)
19628fi
19629
19630done
19631
19632printf "%s\n" "#define VMMOUSE_OS_GENERIC 1" >>confdefs.h
19633
19634     ;;
19635     *bsd*)
19636
19637printf "%s\n" "#define VMMOUSE_OS_BSD 1" >>confdefs.h
19638
19639     ;;
19640     solaris*)
19641	 if test "x$GCC" = "xyes"; then
19642            CC="$save_solaris_cc -fms-extensions"
19643	 fi
19644
19645printf "%s\n" "#define VMMOUSE_OS_SOLARIS 1" >>confdefs.h
19646
19647     ;;
19648     *)
19649
19650  for ac_func in ioperm iopl
19651do :
19652  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19653ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19654if eval test \"x\$"$as_ac_var"\" = x"yes"
19655then :
19656  cat >>confdefs.h <<_ACEOF
19657#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19658_ACEOF
19659
19660else $as_nop
19661  as_fn_error $? "" "$LINENO" 5
19662			(cannot determine how to elevate io permissions)
19663fi
19664
19665done
19666	 printf "%s\n" "#define VMMOUSE_OS_GENERIC 1" >>confdefs.h
19667
19668     ;;
19669esac
19670
19671case $host_cpu in
19672     i*86)
19673	case $host_os in
19674		*freebsd*)	printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
19675 ;;
19676		*netbsd*)
19677printf "%s\n" "#define USE_I386_IOPL /**/" >>confdefs.h
19678
19679				use_i386_iopl=yes ;;
19680		*openbsd*)
19681printf "%s\n" "#define USE_I386_IOPL /**/" >>confdefs.h
19682
19683				use_i386_iopl=yes ;;
19684	esac
19685	;;
19686     x86_64*|amd64*)
19687	case $host_os in
19688		*freebsd*)
19689printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
19690 ;;
19691		*netbsd*)
19692printf "%s\n" "#define USE_X86_64_IOPL 1" >>confdefs.h
19693
19694				use_x86_64_iopl=yes ;;
19695		*openbsd*)
19696printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h
19697
19698				use_amd64_iopl=yes ;;
19699	esac
19700	;;
19701esac
19702
19703if test x$use_i386_iopl = xyes; then
19704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for i386_iopl in -li386" >&5
19705printf %s "checking for i386_iopl in -li386... " >&6; }
19706if test ${ac_cv_lib_i386_i386_iopl+y}
19707then :
19708  printf %s "(cached) " >&6
19709else $as_nop
19710  ac_check_lib_save_LIBS=$LIBS
19711LIBS="-li386  $LIBS"
19712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713/* end confdefs.h.  */
19714
19715/* Override any GCC internal prototype to avoid an error.
19716   Use char because int might match the return type of a GCC
19717   builtin and then its argument prototype would still apply.  */
19718char i386_iopl ();
19719int
19720main (void)
19721{
19722return i386_iopl ();
19723  ;
19724  return 0;
19725}
19726_ACEOF
19727if ac_fn_c_try_link "$LINENO"
19728then :
19729  ac_cv_lib_i386_i386_iopl=yes
19730else $as_nop
19731  ac_cv_lib_i386_i386_iopl=no
19732fi
19733rm -f core conftest.err conftest.$ac_objext conftest.beam \
19734    conftest$ac_exeext conftest.$ac_ext
19735LIBS=$ac_check_lib_save_LIBS
19736fi
19737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_iopl" >&5
19738printf "%s\n" "$ac_cv_lib_i386_i386_iopl" >&6; }
19739if test "x$ac_cv_lib_i386_i386_iopl" = xyes
19740then :
19741  printf "%s\n" "#define HAVE_LIBI386 1" >>confdefs.h
19742
19743  LIBS="-li386 $LIBS"
19744
19745else $as_nop
19746  as_fn_error $? "cannot find library for i386_iopl" "$LINENO" 5
19747fi
19748
19749fi
19750
19751if test x$use_amd64_iopl = xyes; then
19752   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for amd64_iopl in -lamd64" >&5
19753printf %s "checking for amd64_iopl in -lamd64... " >&6; }
19754if test ${ac_cv_lib_amd64_amd64_iopl+y}
19755then :
19756  printf %s "(cached) " >&6
19757else $as_nop
19758  ac_check_lib_save_LIBS=$LIBS
19759LIBS="-lamd64  $LIBS"
19760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761/* end confdefs.h.  */
19762
19763/* Override any GCC internal prototype to avoid an error.
19764   Use char because int might match the return type of a GCC
19765   builtin and then its argument prototype would still apply.  */
19766char amd64_iopl ();
19767int
19768main (void)
19769{
19770return amd64_iopl ();
19771  ;
19772  return 0;
19773}
19774_ACEOF
19775if ac_fn_c_try_link "$LINENO"
19776then :
19777  ac_cv_lib_amd64_amd64_iopl=yes
19778else $as_nop
19779  ac_cv_lib_amd64_amd64_iopl=no
19780fi
19781rm -f core conftest.err conftest.$ac_objext conftest.beam \
19782    conftest$ac_exeext conftest.$ac_ext
19783LIBS=$ac_check_lib_save_LIBS
19784fi
19785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_amd64_amd64_iopl" >&5
19786printf "%s\n" "$ac_cv_lib_amd64_amd64_iopl" >&6; }
19787if test "x$ac_cv_lib_amd64_amd64_iopl" = xyes
19788then :
19789  printf "%s\n" "#define HAVE_LIBAMD64 1" >>confdefs.h
19790
19791  LIBS="-lamd64 $LIBS"
19792
19793else $as_nop
19794  as_fn_error $? "cannot find library for amd64_iopl" "$LINENO" 5
19795fi
19796
19797fi
19798
19799if test x$use_x86_64_iopl = xyes; then
19800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86_64_iopl in -lx86_64" >&5
19801printf %s "checking for x86_64_iopl in -lx86_64... " >&6; }
19802if test ${ac_cv_lib_x86_64_x86_64_iopl+y}
19803then :
19804  printf %s "(cached) " >&6
19805else $as_nop
19806  ac_check_lib_save_LIBS=$LIBS
19807LIBS="-lx86_64  $LIBS"
19808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809/* end confdefs.h.  */
19810
19811/* Override any GCC internal prototype to avoid an error.
19812   Use char because int might match the return type of a GCC
19813   builtin and then its argument prototype would still apply.  */
19814char x86_64_iopl ();
19815int
19816main (void)
19817{
19818return x86_64_iopl ();
19819  ;
19820  return 0;
19821}
19822_ACEOF
19823if ac_fn_c_try_link "$LINENO"
19824then :
19825  ac_cv_lib_x86_64_x86_64_iopl=yes
19826else $as_nop
19827  ac_cv_lib_x86_64_x86_64_iopl=no
19828fi
19829rm -f core conftest.err conftest.$ac_objext conftest.beam \
19830    conftest$ac_exeext conftest.$ac_ext
19831LIBS=$ac_check_lib_save_LIBS
19832fi
19833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_x86_64_x86_64_iopl" >&5
19834printf "%s\n" "$ac_cv_lib_x86_64_x86_64_iopl" >&6; }
19835if test "x$ac_cv_lib_x86_64_x86_64_iopl" = xyes
19836then :
19837  printf "%s\n" "#define HAVE_LIBX86_64 1" >>confdefs.h
19838
19839  LIBS="-lx86_64 $LIBS"
19840
19841else $as_nop
19842  as_fn_error $? "cannot find library for x86_64_iopl" "$LINENO" 5
19843fi
19844
19845fi
19846
19847
19848pkg_failed=no
19849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19850printf %s "checking for XORG... " >&6; }
19851
19852if test -n "$XORG_CFLAGS"; then
19853    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19854 elif test -n "$PKG_CONFIG"; then
19855    if test -n "$PKG_CONFIG" && \
19856    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
19857  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
19858  ac_status=$?
19859  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860  test $ac_status = 0; }; then
19861  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
19862		      test "x$?" != "x0" && pkg_failed=yes
19863else
19864  pkg_failed=yes
19865fi
19866 else
19867    pkg_failed=untried
19868fi
19869if test -n "$XORG_LIBS"; then
19870    pkg_cv_XORG_LIBS="$XORG_LIBS"
19871 elif test -n "$PKG_CONFIG"; then
19872    if test -n "$PKG_CONFIG" && \
19873    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto \$REQUIRED_MODULES\""; } >&5
19874  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES") 2>&5
19875  ac_status=$?
19876  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19877  test $ac_status = 0; }; then
19878  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>/dev/null`
19879		      test "x$?" != "x0" && pkg_failed=yes
19880else
19881  pkg_failed=yes
19882fi
19883 else
19884    pkg_failed=untried
19885fi
19886
19887
19888
19889if test $pkg_failed = yes; then
19890   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19891printf "%s\n" "no" >&6; }
19892
19893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19894        _pkg_short_errors_supported=yes
19895else
19896        _pkg_short_errors_supported=no
19897fi
19898        if test $_pkg_short_errors_supported = yes; then
19899	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
19900        else
19901	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto $REQUIRED_MODULES" 2>&1`
19902        fi
19903	# Put the nasty error message in config.log where it belongs
19904	echo "$XORG_PKG_ERRORS" >&5
19905
19906	as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto $REQUIRED_MODULES) were not met:
19907
19908$XORG_PKG_ERRORS
19909
19910Consider adjusting the PKG_CONFIG_PATH environment variable if you
19911installed software in a non-standard prefix.
19912
19913Alternatively, you may set the environment variables XORG_CFLAGS
19914and XORG_LIBS to avoid the need to call pkg-config.
19915See the pkg-config man page for more details." "$LINENO" 5
19916elif test $pkg_failed = untried; then
19917     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19918printf "%s\n" "no" >&6; }
19919	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19920printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19921as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19922is in your PATH or set the PKG_CONFIG environment variable to the full
19923path to pkg-config.
19924
19925Alternatively, you may set the environment variables XORG_CFLAGS
19926and XORG_LIBS to avoid the need to call pkg-config.
19927See the pkg-config man page for more details.
19928
19929To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19930See \`config.log' for more details" "$LINENO" 5; }
19931else
19932	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19933	XORG_LIBS=$pkg_cv_XORG_LIBS
19934        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19935printf "%s\n" "yes" >&6; }
19936
19937fi
19938
19939if test -n "$PKG_CONFIG" && \
19940    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5
19941  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
19942  ac_status=$?
19943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19944  test $ac_status = 0; }; then
19945
19946printf "%s\n" "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h
19947
19948fi
19949
19950if test -n "$PKG_CONFIG" && \
19951    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.99\""; } >&5
19952  ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.99") 2>&5
19953  ac_status=$?
19954  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19955  test $ac_status = 0; }; then
19956
19957printf "%s\n" "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h
19958
19959fi
19960
19961if test -n "$PKG_CONFIG" && \
19962    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90\""; } >&5
19963  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3.99.0 xorg-server <= 1.4.0.90") 2>&5
19964  ac_status=$?
19965  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19966  test $ac_status = 0; }; then
19967
19968printf "%s\n" "#define CALL_CONVERSION_PROC 1" >>confdefs.h
19969
19970fi
19971if test -n "$PKG_CONFIG" && \
19972    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server > 1.4.0.90\""; } >&5
19973  ($PKG_CONFIG --exists --print-errors "xorg-server > 1.4.0.90") 2>&5
19974  ac_status=$?
19975  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19976  test $ac_status = 0; }; then
19977
19978printf "%s\n" "#define ABS_VALUATOR_AXES 1" >>confdefs.h
19979
19980fi
19981if test -n "$PKG_CONFIG" && \
19982    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\""; } >&5
19983  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5
19984  ac_status=$?
19985  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19986  test $ac_status = 0; }; then
19987
19988printf "%s\n" "#define NO_MOUSE_MODULE 1" >>confdefs.h
19989
19990fi
19991
19992# Checks for libraries.
19993
19994# Checks for header files.
19995# Autoupdate added the next two lines to ensure that your configure
19996# script's behavior did not change.  They are probably safe to remove.
19997
19998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
19999printf %s "checking for egrep... " >&6; }
20000if test ${ac_cv_path_EGREP+y}
20001then :
20002  printf %s "(cached) " >&6
20003else $as_nop
20004  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
20005   then ac_cv_path_EGREP="$GREP -E"
20006   else
20007     if test -z "$EGREP"; then
20008  ac_path_EGREP_found=false
20009  # Loop through the user's path and test for each of PROGNAME-LIST
20010  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20011for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20012do
20013  IFS=$as_save_IFS
20014  case $as_dir in #(((
20015    '') as_dir=./ ;;
20016    */) ;;
20017    *) as_dir=$as_dir/ ;;
20018  esac
20019    for ac_prog in egrep
20020   do
20021    for ac_exec_ext in '' $ac_executable_extensions; do
20022      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
20023      as_fn_executable_p "$ac_path_EGREP" || continue
20024# Check for GNU ac_path_EGREP and select it if it is found.
20025  # Check for GNU $ac_path_EGREP
20026case `"$ac_path_EGREP" --version 2>&1` in
20027*GNU*)
20028  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
20029*)
20030  ac_count=0
20031  printf %s 0123456789 >"conftest.in"
20032  while :
20033  do
20034    cat "conftest.in" "conftest.in" >"conftest.tmp"
20035    mv "conftest.tmp" "conftest.in"
20036    cp "conftest.in" "conftest.nl"
20037    printf "%s\n" 'EGREP' >> "conftest.nl"
20038    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
20039    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20040    as_fn_arith $ac_count + 1 && ac_count=$as_val
20041    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
20042      # Best one so far, save it but keep looking for a better one
20043      ac_cv_path_EGREP="$ac_path_EGREP"
20044      ac_path_EGREP_max=$ac_count
20045    fi
20046    # 10*(2^10) chars as input seems more than enough
20047    test $ac_count -gt 10 && break
20048  done
20049  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20050esac
20051
20052      $ac_path_EGREP_found && break 3
20053    done
20054  done
20055  done
20056IFS=$as_save_IFS
20057  if test -z "$ac_cv_path_EGREP"; then
20058    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
20059  fi
20060else
20061  ac_cv_path_EGREP=$EGREP
20062fi
20063
20064   fi
20065fi
20066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
20067printf "%s\n" "$ac_cv_path_EGREP" >&6; }
20068 EGREP="$ac_cv_path_EGREP"
20069
20070
20071
20072
20073ac_config_files="$ac_config_files Makefile shared/Makefile src/Makefile tools/Makefile fdi/Makefile man/Makefile"
20074
20075
20076cat >confcache <<\_ACEOF
20077# This file is a shell script that caches the results of configure
20078# tests run on this system so they can be shared between configure
20079# scripts and configure runs, see configure's option --config-cache.
20080# It is not useful on other systems.  If it contains results you don't
20081# want to keep, you may remove or edit it.
20082#
20083# config.status only pays attention to the cache file if you give it
20084# the --recheck option to rerun configure.
20085#
20086# `ac_cv_env_foo' variables (set or unset) will be overridden when
20087# loading this file, other *unset* `ac_cv_foo' will be assigned the
20088# following values.
20089
20090_ACEOF
20091
20092# The following way of writing the cache mishandles newlines in values,
20093# but we know of no workaround that is simple, portable, and efficient.
20094# So, we kill variables containing newlines.
20095# Ultrix sh set writes to stderr and can't be redirected directly,
20096# and sets the high bit in the cache file unless we assign to the vars.
20097(
20098  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20099    eval ac_val=\$$ac_var
20100    case $ac_val in #(
20101    *${as_nl}*)
20102      case $ac_var in #(
20103      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20104printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20105      esac
20106      case $ac_var in #(
20107      _ | IFS | as_nl) ;; #(
20108      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20109      *) { eval $ac_var=; unset $ac_var;} ;;
20110      esac ;;
20111    esac
20112  done
20113
20114  (set) 2>&1 |
20115    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20116    *${as_nl}ac_space=\ *)
20117      # `set' does not quote correctly, so add quotes: double-quote
20118      # substitution turns \\\\ into \\, and sed turns \\ into \.
20119      sed -n \
20120	"s/'/'\\\\''/g;
20121	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20122      ;; #(
20123    *)
20124      # `set' quotes correctly as required by POSIX, so do not add quotes.
20125      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20126      ;;
20127    esac |
20128    sort
20129) |
20130  sed '
20131     /^ac_cv_env_/b end
20132     t clear
20133     :clear
20134     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20135     t end
20136     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20137     :end' >>confcache
20138if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20139  if test -w "$cache_file"; then
20140    if test "x$cache_file" != "x/dev/null"; then
20141      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20142printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20143      if test ! -f "$cache_file" || test -h "$cache_file"; then
20144	cat confcache >"$cache_file"
20145      else
20146        case $cache_file in #(
20147        */* | ?:*)
20148	  mv -f confcache "$cache_file"$$ &&
20149	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20150        *)
20151	  mv -f confcache "$cache_file" ;;
20152	esac
20153      fi
20154    fi
20155  else
20156    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20157printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20158  fi
20159fi
20160rm -f confcache
20161
20162test "x$prefix" = xNONE && prefix=$ac_default_prefix
20163# Let make expand exec_prefix.
20164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20165
20166DEFS=-DHAVE_CONFIG_H
20167
20168ac_libobjs=
20169ac_ltlibobjs=
20170U=
20171for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20172  # 1. Remove the extension, and $U if already installed.
20173  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20174  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20175  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20176  #    will be set to the directory where LIBOBJS objects are built.
20177  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20178  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20179done
20180LIBOBJS=$ac_libobjs
20181
20182LTLIBOBJS=$ac_ltlibobjs
20183
20184
20185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20186printf %s "checking that generated files are newer than configure... " >&6; }
20187   if test -n "$am_sleep_pid"; then
20188     # Hide warnings about reused PIDs.
20189     wait $am_sleep_pid 2>/dev/null
20190   fi
20191   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20192printf "%s\n" "done" >&6; }
20193 if test -n "$EXEEXT"; then
20194  am__EXEEXT_TRUE=
20195  am__EXEEXT_FALSE='#'
20196else
20197  am__EXEEXT_TRUE='#'
20198  am__EXEEXT_FALSE=
20199fi
20200
20201if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20202  as_fn_error $? "conditional \"AMDEP\" was never defined.
20203Usually this means the macro was only invoked conditionally." "$LINENO" 5
20204fi
20205if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20206  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20207Usually this means the macro was only invoked conditionally." "$LINENO" 5
20208fi
20209if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
20210  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
20211Usually this means the macro was only invoked conditionally." "$LINENO" 5
20212fi
20213if test -z "${HAS_UDEV_RULES_DIR_TRUE}" && test -z "${HAS_UDEV_RULES_DIR_FALSE}"; then
20214  as_fn_error $? "conditional \"HAS_UDEV_RULES_DIR\" was never defined.
20215Usually this means the macro was only invoked conditionally." "$LINENO" 5
20216fi
20217
20218: "${CONFIG_STATUS=./config.status}"
20219ac_write_fail=0
20220ac_clean_files_save=$ac_clean_files
20221ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20223printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20224as_write_fail=0
20225cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20226#! $SHELL
20227# Generated by $as_me.
20228# Run this file to recreate the current configuration.
20229# Compiler output produced by configure, useful for debugging
20230# configure, is in config.log if it exists.
20231
20232debug=false
20233ac_cs_recheck=false
20234ac_cs_silent=false
20235
20236SHELL=\${CONFIG_SHELL-$SHELL}
20237export SHELL
20238_ASEOF
20239cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20240## -------------------- ##
20241## M4sh Initialization. ##
20242## -------------------- ##
20243
20244# Be more Bourne compatible
20245DUALCASE=1; export DUALCASE # for MKS sh
20246as_nop=:
20247if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20248then :
20249  emulate sh
20250  NULLCMD=:
20251  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20252  # is contrary to our usage.  Disable this feature.
20253  alias -g '${1+"$@"}'='"$@"'
20254  setopt NO_GLOB_SUBST
20255else $as_nop
20256  case `(set -o) 2>/dev/null` in #(
20257  *posix*) :
20258    set -o posix ;; #(
20259  *) :
20260     ;;
20261esac
20262fi
20263
20264
20265
20266# Reset variables that may have inherited troublesome values from
20267# the environment.
20268
20269# IFS needs to be set, to space, tab, and newline, in precisely that order.
20270# (If _AS_PATH_WALK were called with IFS unset, it would have the
20271# side effect of setting IFS to empty, thus disabling word splitting.)
20272# Quoting is to prevent editors from complaining about space-tab.
20273as_nl='
20274'
20275export as_nl
20276IFS=" ""	$as_nl"
20277
20278PS1='$ '
20279PS2='> '
20280PS4='+ '
20281
20282# Ensure predictable behavior from utilities with locale-dependent output.
20283LC_ALL=C
20284export LC_ALL
20285LANGUAGE=C
20286export LANGUAGE
20287
20288# We cannot yet rely on "unset" to work, but we need these variables
20289# to be unset--not just set to an empty or harmless value--now, to
20290# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20291# also avoids known problems related to "unset" and subshell syntax
20292# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20293for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20294do eval test \${$as_var+y} \
20295  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20296done
20297
20298# Ensure that fds 0, 1, and 2 are open.
20299if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20300if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20301if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20302
20303# The user is always right.
20304if ${PATH_SEPARATOR+false} :; then
20305  PATH_SEPARATOR=:
20306  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20307    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20308      PATH_SEPARATOR=';'
20309  }
20310fi
20311
20312
20313# Find who we are.  Look in the path if we contain no directory separator.
20314as_myself=
20315case $0 in #((
20316  *[\\/]* ) as_myself=$0 ;;
20317  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20318for as_dir in $PATH
20319do
20320  IFS=$as_save_IFS
20321  case $as_dir in #(((
20322    '') as_dir=./ ;;
20323    */) ;;
20324    *) as_dir=$as_dir/ ;;
20325  esac
20326    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20327  done
20328IFS=$as_save_IFS
20329
20330     ;;
20331esac
20332# We did not find ourselves, most probably we were run as `sh COMMAND'
20333# in which case we are not to be found in the path.
20334if test "x$as_myself" = x; then
20335  as_myself=$0
20336fi
20337if test ! -f "$as_myself"; then
20338  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20339  exit 1
20340fi
20341
20342
20343
20344# as_fn_error STATUS ERROR [LINENO LOG_FD]
20345# ----------------------------------------
20346# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20347# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20348# script with STATUS, using 1 if that was 0.
20349as_fn_error ()
20350{
20351  as_status=$1; test $as_status -eq 0 && as_status=1
20352  if test "$4"; then
20353    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20354    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20355  fi
20356  printf "%s\n" "$as_me: error: $2" >&2
20357  as_fn_exit $as_status
20358} # as_fn_error
20359
20360
20361
20362# as_fn_set_status STATUS
20363# -----------------------
20364# Set $? to STATUS, without forking.
20365as_fn_set_status ()
20366{
20367  return $1
20368} # as_fn_set_status
20369
20370# as_fn_exit STATUS
20371# -----------------
20372# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20373as_fn_exit ()
20374{
20375  set +e
20376  as_fn_set_status $1
20377  exit $1
20378} # as_fn_exit
20379
20380# as_fn_unset VAR
20381# ---------------
20382# Portably unset VAR.
20383as_fn_unset ()
20384{
20385  { eval $1=; unset $1;}
20386}
20387as_unset=as_fn_unset
20388
20389# as_fn_append VAR VALUE
20390# ----------------------
20391# Append the text in VALUE to the end of the definition contained in VAR. Take
20392# advantage of any shell optimizations that allow amortized linear growth over
20393# repeated appends, instead of the typical quadratic growth present in naive
20394# implementations.
20395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20396then :
20397  eval 'as_fn_append ()
20398  {
20399    eval $1+=\$2
20400  }'
20401else $as_nop
20402  as_fn_append ()
20403  {
20404    eval $1=\$$1\$2
20405  }
20406fi # as_fn_append
20407
20408# as_fn_arith ARG...
20409# ------------------
20410# Perform arithmetic evaluation on the ARGs, and store the result in the
20411# global $as_val. Take advantage of shells that can avoid forks. The arguments
20412# must be portable across $(()) and expr.
20413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20414then :
20415  eval 'as_fn_arith ()
20416  {
20417    as_val=$(( $* ))
20418  }'
20419else $as_nop
20420  as_fn_arith ()
20421  {
20422    as_val=`expr "$@" || test $? -eq 1`
20423  }
20424fi # as_fn_arith
20425
20426
20427if expr a : '\(a\)' >/dev/null 2>&1 &&
20428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20429  as_expr=expr
20430else
20431  as_expr=false
20432fi
20433
20434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20435  as_basename=basename
20436else
20437  as_basename=false
20438fi
20439
20440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20441  as_dirname=dirname
20442else
20443  as_dirname=false
20444fi
20445
20446as_me=`$as_basename -- "$0" ||
20447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20448	 X"$0" : 'X\(//\)$' \| \
20449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20450printf "%s\n" X/"$0" |
20451    sed '/^.*\/\([^/][^/]*\)\/*$/{
20452	    s//\1/
20453	    q
20454	  }
20455	  /^X\/\(\/\/\)$/{
20456	    s//\1/
20457	    q
20458	  }
20459	  /^X\/\(\/\).*/{
20460	    s//\1/
20461	    q
20462	  }
20463	  s/.*/./; q'`
20464
20465# Avoid depending upon Character Ranges.
20466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20469as_cr_digits='0123456789'
20470as_cr_alnum=$as_cr_Letters$as_cr_digits
20471
20472
20473# Determine whether it's possible to make 'echo' print without a newline.
20474# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20475# for compatibility with existing Makefiles.
20476ECHO_C= ECHO_N= ECHO_T=
20477case `echo -n x` in #(((((
20478-n*)
20479  case `echo 'xy\c'` in
20480  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20481  xy)  ECHO_C='\c';;
20482  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20483       ECHO_T='	';;
20484  esac;;
20485*)
20486  ECHO_N='-n';;
20487esac
20488
20489# For backward compatibility with old third-party macros, we provide
20490# the shell variables $as_echo and $as_echo_n.  New code should use
20491# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20492as_echo='printf %s\n'
20493as_echo_n='printf %s'
20494
20495rm -f conf$$ conf$$.exe conf$$.file
20496if test -d conf$$.dir; then
20497  rm -f conf$$.dir/conf$$.file
20498else
20499  rm -f conf$$.dir
20500  mkdir conf$$.dir 2>/dev/null
20501fi
20502if (echo >conf$$.file) 2>/dev/null; then
20503  if ln -s conf$$.file conf$$ 2>/dev/null; then
20504    as_ln_s='ln -s'
20505    # ... but there are two gotchas:
20506    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20507    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20508    # In both cases, we have to default to `cp -pR'.
20509    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20510      as_ln_s='cp -pR'
20511  elif ln conf$$.file conf$$ 2>/dev/null; then
20512    as_ln_s=ln
20513  else
20514    as_ln_s='cp -pR'
20515  fi
20516else
20517  as_ln_s='cp -pR'
20518fi
20519rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20520rmdir conf$$.dir 2>/dev/null
20521
20522
20523# as_fn_mkdir_p
20524# -------------
20525# Create "$as_dir" as a directory, including parents if necessary.
20526as_fn_mkdir_p ()
20527{
20528
20529  case $as_dir in #(
20530  -*) as_dir=./$as_dir;;
20531  esac
20532  test -d "$as_dir" || eval $as_mkdir_p || {
20533    as_dirs=
20534    while :; do
20535      case $as_dir in #(
20536      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20537      *) as_qdir=$as_dir;;
20538      esac
20539      as_dirs="'$as_qdir' $as_dirs"
20540      as_dir=`$as_dirname -- "$as_dir" ||
20541$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20542	 X"$as_dir" : 'X\(//\)[^/]' \| \
20543	 X"$as_dir" : 'X\(//\)$' \| \
20544	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20545printf "%s\n" X"$as_dir" |
20546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20547	    s//\1/
20548	    q
20549	  }
20550	  /^X\(\/\/\)[^/].*/{
20551	    s//\1/
20552	    q
20553	  }
20554	  /^X\(\/\/\)$/{
20555	    s//\1/
20556	    q
20557	  }
20558	  /^X\(\/\).*/{
20559	    s//\1/
20560	    q
20561	  }
20562	  s/.*/./; q'`
20563      test -d "$as_dir" && break
20564    done
20565    test -z "$as_dirs" || eval "mkdir $as_dirs"
20566  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20567
20568
20569} # as_fn_mkdir_p
20570if mkdir -p . 2>/dev/null; then
20571  as_mkdir_p='mkdir -p "$as_dir"'
20572else
20573  test -d ./-p && rmdir ./-p
20574  as_mkdir_p=false
20575fi
20576
20577
20578# as_fn_executable_p FILE
20579# -----------------------
20580# Test if FILE is an executable regular file.
20581as_fn_executable_p ()
20582{
20583  test -f "$1" && test -x "$1"
20584} # as_fn_executable_p
20585as_test_x='test -x'
20586as_executable_p=as_fn_executable_p
20587
20588# Sed expression to map a string onto a valid CPP name.
20589as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20590
20591# Sed expression to map a string onto a valid variable name.
20592as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20593
20594
20595exec 6>&1
20596## ----------------------------------- ##
20597## Main body of $CONFIG_STATUS script. ##
20598## ----------------------------------- ##
20599_ASEOF
20600test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20601
20602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20603# Save the log message, to keep $0 and so on meaningful, and to
20604# report actual input values of CONFIG_FILES etc. instead of their
20605# values after options handling.
20606ac_log="
20607This file was extended by xf86-input-vmmouse $as_me 13.2.0, which was
20608generated by GNU Autoconf 2.71.  Invocation command line was
20609
20610  CONFIG_FILES    = $CONFIG_FILES
20611  CONFIG_HEADERS  = $CONFIG_HEADERS
20612  CONFIG_LINKS    = $CONFIG_LINKS
20613  CONFIG_COMMANDS = $CONFIG_COMMANDS
20614  $ $0 $@
20615
20616on `(hostname || uname -n) 2>/dev/null | sed 1q`
20617"
20618
20619_ACEOF
20620
20621case $ac_config_files in *"
20622"*) set x $ac_config_files; shift; ac_config_files=$*;;
20623esac
20624
20625case $ac_config_headers in *"
20626"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20627esac
20628
20629
20630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20631# Files that config.status was made for.
20632config_files="$ac_config_files"
20633config_headers="$ac_config_headers"
20634config_commands="$ac_config_commands"
20635
20636_ACEOF
20637
20638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20639ac_cs_usage="\
20640\`$as_me' instantiates files and other configuration actions
20641from templates according to the current configuration.  Unless the files
20642and actions are specified as TAGs, all are instantiated by default.
20643
20644Usage: $0 [OPTION]... [TAG]...
20645
20646  -h, --help       print this help, then exit
20647  -V, --version    print version number and configuration settings, then exit
20648      --config     print configuration, then exit
20649  -q, --quiet, --silent
20650                   do not print progress messages
20651  -d, --debug      don't remove temporary files
20652      --recheck    update $as_me by reconfiguring in the same conditions
20653      --file=FILE[:TEMPLATE]
20654                   instantiate the configuration file FILE
20655      --header=FILE[:TEMPLATE]
20656                   instantiate the configuration header FILE
20657
20658Configuration files:
20659$config_files
20660
20661Configuration headers:
20662$config_headers
20663
20664Configuration commands:
20665$config_commands
20666
20667Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-vmmouse/issues>."
20668
20669_ACEOF
20670ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20671ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20673ac_cs_config='$ac_cs_config_escaped'
20674ac_cs_version="\\
20675xf86-input-vmmouse config.status 13.2.0
20676configured by $0, generated by GNU Autoconf 2.71,
20677  with options \\"\$ac_cs_config\\"
20678
20679Copyright (C) 2021 Free Software Foundation, Inc.
20680This config.status script is free software; the Free Software Foundation
20681gives unlimited permission to copy, distribute and modify it."
20682
20683ac_pwd='$ac_pwd'
20684srcdir='$srcdir'
20685INSTALL='$INSTALL'
20686MKDIR_P='$MKDIR_P'
20687AWK='$AWK'
20688test -n "\$AWK" || AWK=awk
20689_ACEOF
20690
20691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20692# The default lists apply if the user does not specify any file.
20693ac_need_defaults=:
20694while test $# != 0
20695do
20696  case $1 in
20697  --*=?*)
20698    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20699    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20700    ac_shift=:
20701    ;;
20702  --*=)
20703    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20704    ac_optarg=
20705    ac_shift=:
20706    ;;
20707  *)
20708    ac_option=$1
20709    ac_optarg=$2
20710    ac_shift=shift
20711    ;;
20712  esac
20713
20714  case $ac_option in
20715  # Handling of the options.
20716  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20717    ac_cs_recheck=: ;;
20718  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20719    printf "%s\n" "$ac_cs_version"; exit ;;
20720  --config | --confi | --conf | --con | --co | --c )
20721    printf "%s\n" "$ac_cs_config"; exit ;;
20722  --debug | --debu | --deb | --de | --d | -d )
20723    debug=: ;;
20724  --file | --fil | --fi | --f )
20725    $ac_shift
20726    case $ac_optarg in
20727    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20728    '') as_fn_error $? "missing file argument" ;;
20729    esac
20730    as_fn_append CONFIG_FILES " '$ac_optarg'"
20731    ac_need_defaults=false;;
20732  --header | --heade | --head | --hea )
20733    $ac_shift
20734    case $ac_optarg in
20735    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20736    esac
20737    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20738    ac_need_defaults=false;;
20739  --he | --h)
20740    # Conflict between --help and --header
20741    as_fn_error $? "ambiguous option: \`$1'
20742Try \`$0 --help' for more information.";;
20743  --help | --hel | -h )
20744    printf "%s\n" "$ac_cs_usage"; exit ;;
20745  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20746  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20747    ac_cs_silent=: ;;
20748
20749  # This is an error.
20750  -*) as_fn_error $? "unrecognized option: \`$1'
20751Try \`$0 --help' for more information." ;;
20752
20753  *) as_fn_append ac_config_targets " $1"
20754     ac_need_defaults=false ;;
20755
20756  esac
20757  shift
20758done
20759
20760ac_configure_extra_args=
20761
20762if $ac_cs_silent; then
20763  exec 6>/dev/null
20764  ac_configure_extra_args="$ac_configure_extra_args --silent"
20765fi
20766
20767_ACEOF
20768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20769if \$ac_cs_recheck; then
20770  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20771  shift
20772  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20773  CONFIG_SHELL='$SHELL'
20774  export CONFIG_SHELL
20775  exec "\$@"
20776fi
20777
20778_ACEOF
20779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20780exec 5>>config.log
20781{
20782  echo
20783  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20784## Running $as_me. ##
20785_ASBOX
20786  printf "%s\n" "$ac_log"
20787} >&5
20788
20789_ACEOF
20790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20791#
20792# INIT-COMMANDS
20793#
20794AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20795
20796
20797# The HP-UX ksh and POSIX shell print the target directory to stdout
20798# if CDPATH is set.
20799(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20800
20801sed_quote_subst='$sed_quote_subst'
20802double_quote_subst='$double_quote_subst'
20803delay_variable_subst='$delay_variable_subst'
20804enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20805macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20806macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20807enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20808pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20809enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20810shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20811SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20812ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20813PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20814host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20815host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20816host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20817build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20818build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20819build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20820SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20821Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20822GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20823EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20824FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20825LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20826NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20827LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20828max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20829ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20830exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20831lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20832lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20833lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20834lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20835lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20836reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20837reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20838FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20839OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20840deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20841file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20842file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20843want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20844DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20845sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20846AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20847lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20848AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20849archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20850STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20851RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20852old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20853old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20854old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20855lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20856CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20857CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20858compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20859GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20860lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20861lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20862lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20863lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20864lt_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"`'
20865lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20866nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20867lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20868lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20869objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20870MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20871lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20872lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20873lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20874lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20875lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20876need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20877MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20878DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20879NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20880LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20881OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20882OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20883libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20884shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20885extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20886archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20887enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20888export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20889whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20890compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20891old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20892old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20893archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20894archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20895module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20896module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20897with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20898allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20899no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20900hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20901hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20902hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20903hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20904hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20905hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20906hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20907inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20908link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20909always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20910export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20911exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20912include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20913prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20914postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20915file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20916variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20917need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20918need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20919version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20920runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20921shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20922shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20923libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20924library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20925soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20926install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20927postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20928postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20929finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20930finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20931hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20932sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20933configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20934configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20935hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20936enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20937enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20938enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20939old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20940striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20941
20942LTCC='$LTCC'
20943LTCFLAGS='$LTCFLAGS'
20944compiler='$compiler_DEFAULT'
20945
20946# A function that is used when there is no print builtin or printf.
20947func_fallback_echo ()
20948{
20949  eval 'cat <<_LTECHO_EOF
20950\$1
20951_LTECHO_EOF'
20952}
20953
20954# Quote evaled strings.
20955for var in SHELL \
20956ECHO \
20957PATH_SEPARATOR \
20958SED \
20959GREP \
20960EGREP \
20961FGREP \
20962LD \
20963NM \
20964LN_S \
20965lt_SP2NL \
20966lt_NL2SP \
20967reload_flag \
20968FILECMD \
20969OBJDUMP \
20970deplibs_check_method \
20971file_magic_cmd \
20972file_magic_glob \
20973want_nocaseglob \
20974DLLTOOL \
20975sharedlib_from_linklib_cmd \
20976AR \
20977archiver_list_spec \
20978STRIP \
20979RANLIB \
20980CC \
20981CFLAGS \
20982compiler \
20983lt_cv_sys_global_symbol_pipe \
20984lt_cv_sys_global_symbol_to_cdecl \
20985lt_cv_sys_global_symbol_to_import \
20986lt_cv_sys_global_symbol_to_c_name_address \
20987lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20988lt_cv_nm_interface \
20989nm_file_list_spec \
20990lt_cv_truncate_bin \
20991lt_prog_compiler_no_builtin_flag \
20992lt_prog_compiler_pic \
20993lt_prog_compiler_wl \
20994lt_prog_compiler_static \
20995lt_cv_prog_compiler_c_o \
20996need_locks \
20997MANIFEST_TOOL \
20998DSYMUTIL \
20999NMEDIT \
21000LIPO \
21001OTOOL \
21002OTOOL64 \
21003shrext_cmds \
21004export_dynamic_flag_spec \
21005whole_archive_flag_spec \
21006compiler_needs_object \
21007with_gnu_ld \
21008allow_undefined_flag \
21009no_undefined_flag \
21010hardcode_libdir_flag_spec \
21011hardcode_libdir_separator \
21012exclude_expsyms \
21013include_expsyms \
21014file_list_spec \
21015variables_saved_for_relink \
21016libname_spec \
21017library_names_spec \
21018soname_spec \
21019install_override_mode \
21020finish_eval \
21021old_striplib \
21022striplib; do
21023    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21024    *[\\\\\\\`\\"\\\$]*)
21025      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21026      ;;
21027    *)
21028      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21029      ;;
21030    esac
21031done
21032
21033# Double-quote double-evaled strings.
21034for var in reload_cmds \
21035old_postinstall_cmds \
21036old_postuninstall_cmds \
21037old_archive_cmds \
21038extract_expsyms_cmds \
21039old_archive_from_new_cmds \
21040old_archive_from_expsyms_cmds \
21041archive_cmds \
21042archive_expsym_cmds \
21043module_cmds \
21044module_expsym_cmds \
21045export_symbols_cmds \
21046prelink_cmds \
21047postlink_cmds \
21048postinstall_cmds \
21049postuninstall_cmds \
21050finish_cmds \
21051sys_lib_search_path_spec \
21052configure_time_dlsearch_path \
21053configure_time_lt_sys_library_path; do
21054    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21055    *[\\\\\\\`\\"\\\$]*)
21056      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21057      ;;
21058    *)
21059      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21060      ;;
21061    esac
21062done
21063
21064ac_aux_dir='$ac_aux_dir'
21065
21066# See if we are running on zsh, and set the options that allow our
21067# commands through without removal of \ escapes INIT.
21068if test -n "\${ZSH_VERSION+set}"; then
21069   setopt NO_GLOB_SUBST
21070fi
21071
21072
21073    PACKAGE='$PACKAGE'
21074    VERSION='$VERSION'
21075    RM='$RM'
21076    ofile='$ofile'
21077
21078
21079
21080
21081_ACEOF
21082
21083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21084
21085# Handling of arguments.
21086for ac_config_target in $ac_config_targets
21087do
21088  case $ac_config_target in
21089    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21090    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21091    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21092    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21093    "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
21094    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21095    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21096    "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
21097    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21098
21099  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21100  esac
21101done
21102
21103
21104# If the user did not use the arguments to specify the items to instantiate,
21105# then the envvar interface is used.  Set only those that are not.
21106# We use the long form for the default assignment because of an extremely
21107# bizarre bug on SunOS 4.1.3.
21108if $ac_need_defaults; then
21109  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21110  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21111  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21112fi
21113
21114# Have a temporary directory for convenience.  Make it in the build tree
21115# simply because there is no reason against having it here, and in addition,
21116# creating and moving files from /tmp can sometimes cause problems.
21117# Hook for its removal unless debugging.
21118# Note that there is a small window in which the directory will not be cleaned:
21119# after its creation but before its name has been assigned to `$tmp'.
21120$debug ||
21121{
21122  tmp= ac_tmp=
21123  trap 'exit_status=$?
21124  : "${ac_tmp:=$tmp}"
21125  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21126' 0
21127  trap 'as_fn_exit 1' 1 2 13 15
21128}
21129# Create a (secure) tmp directory for tmp files.
21130
21131{
21132  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21133  test -d "$tmp"
21134}  ||
21135{
21136  tmp=./conf$$-$RANDOM
21137  (umask 077 && mkdir "$tmp")
21138} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21139ac_tmp=$tmp
21140
21141# Set up the scripts for CONFIG_FILES section.
21142# No need to generate them if there are no CONFIG_FILES.
21143# This happens for instance with `./config.status config.h'.
21144if test -n "$CONFIG_FILES"; then
21145
21146
21147ac_cr=`echo X | tr X '\015'`
21148# On cygwin, bash can eat \r inside `` if the user requested igncr.
21149# But we know of no other shell where ac_cr would be empty at this
21150# point, so we can use a bashism as a fallback.
21151if test "x$ac_cr" = x; then
21152  eval ac_cr=\$\'\\r\'
21153fi
21154ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21155if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21156  ac_cs_awk_cr='\\r'
21157else
21158  ac_cs_awk_cr=$ac_cr
21159fi
21160
21161echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21162_ACEOF
21163
21164
21165{
21166  echo "cat >conf$$subs.awk <<_ACEOF" &&
21167  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21168  echo "_ACEOF"
21169} >conf$$subs.sh ||
21170  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21171ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21172ac_delim='%!_!# '
21173for ac_last_try in false false false false false :; do
21174  . ./conf$$subs.sh ||
21175    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21176
21177  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21178  if test $ac_delim_n = $ac_delim_num; then
21179    break
21180  elif $ac_last_try; then
21181    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21182  else
21183    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21184  fi
21185done
21186rm -f conf$$subs.sh
21187
21188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21190_ACEOF
21191sed -n '
21192h
21193s/^/S["/; s/!.*/"]=/
21194p
21195g
21196s/^[^!]*!//
21197:repl
21198t repl
21199s/'"$ac_delim"'$//
21200t delim
21201:nl
21202h
21203s/\(.\{148\}\)..*/\1/
21204t more1
21205s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21206p
21207n
21208b repl
21209:more1
21210s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21211p
21212g
21213s/.\{148\}//
21214t nl
21215:delim
21216h
21217s/\(.\{148\}\)..*/\1/
21218t more2
21219s/["\\]/\\&/g; s/^/"/; s/$/"/
21220p
21221b
21222:more2
21223s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21224p
21225g
21226s/.\{148\}//
21227t delim
21228' <conf$$subs.awk | sed '
21229/^[^""]/{
21230  N
21231  s/\n//
21232}
21233' >>$CONFIG_STATUS || ac_write_fail=1
21234rm -f conf$$subs.awk
21235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21236_ACAWK
21237cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21238  for (key in S) S_is_set[key] = 1
21239  FS = ""
21240
21241}
21242{
21243  line = $ 0
21244  nfields = split(line, field, "@")
21245  substed = 0
21246  len = length(field[1])
21247  for (i = 2; i < nfields; i++) {
21248    key = field[i]
21249    keylen = length(key)
21250    if (S_is_set[key]) {
21251      value = S[key]
21252      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21253      len += length(value) + length(field[++i])
21254      substed = 1
21255    } else
21256      len += 1 + keylen
21257  }
21258
21259  print line
21260}
21261
21262_ACAWK
21263_ACEOF
21264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21265if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21266  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21267else
21268  cat
21269fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21270  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21271_ACEOF
21272
21273# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21274# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21275# trailing colons and then remove the whole line if VPATH becomes empty
21276# (actually we leave an empty line to preserve line numbers).
21277if test "x$srcdir" = x.; then
21278  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21279h
21280s///
21281s/^/:/
21282s/[	 ]*$/:/
21283s/:\$(srcdir):/:/g
21284s/:\${srcdir}:/:/g
21285s/:@srcdir@:/:/g
21286s/^:*//
21287s/:*$//
21288x
21289s/\(=[	 ]*\).*/\1/
21290G
21291s/\n//
21292s/^[^=]*=[	 ]*$//
21293}'
21294fi
21295
21296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21297fi # test -n "$CONFIG_FILES"
21298
21299# Set up the scripts for CONFIG_HEADERS section.
21300# No need to generate them if there are no CONFIG_HEADERS.
21301# This happens for instance with `./config.status Makefile'.
21302if test -n "$CONFIG_HEADERS"; then
21303cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21304BEGIN {
21305_ACEOF
21306
21307# Transform confdefs.h into an awk script `defines.awk', embedded as
21308# here-document in config.status, that substitutes the proper values into
21309# config.h.in to produce config.h.
21310
21311# Create a delimiter string that does not exist in confdefs.h, to ease
21312# handling of long lines.
21313ac_delim='%!_!# '
21314for ac_last_try in false false :; do
21315  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21316  if test -z "$ac_tt"; then
21317    break
21318  elif $ac_last_try; then
21319    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21320  else
21321    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21322  fi
21323done
21324
21325# For the awk script, D is an array of macro values keyed by name,
21326# likewise P contains macro parameters if any.  Preserve backslash
21327# newline sequences.
21328
21329ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21330sed -n '
21331s/.\{148\}/&'"$ac_delim"'/g
21332t rset
21333:rset
21334s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21335t def
21336d
21337:def
21338s/\\$//
21339t bsnl
21340s/["\\]/\\&/g
21341s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21342D["\1"]=" \3"/p
21343s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21344d
21345:bsnl
21346s/["\\]/\\&/g
21347s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21348D["\1"]=" \3\\\\\\n"\\/p
21349t cont
21350s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21351t cont
21352d
21353:cont
21354n
21355s/.\{148\}/&'"$ac_delim"'/g
21356t clear
21357:clear
21358s/\\$//
21359t bsnlc
21360s/["\\]/\\&/g; s/^/"/; s/$/"/p
21361d
21362:bsnlc
21363s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21364b cont
21365' <confdefs.h | sed '
21366s/'"$ac_delim"'/"\\\
21367"/g' >>$CONFIG_STATUS || ac_write_fail=1
21368
21369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21370  for (key in D) D_is_set[key] = 1
21371  FS = ""
21372}
21373/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21374  line = \$ 0
21375  split(line, arg, " ")
21376  if (arg[1] == "#") {
21377    defundef = arg[2]
21378    mac1 = arg[3]
21379  } else {
21380    defundef = substr(arg[1], 2)
21381    mac1 = arg[2]
21382  }
21383  split(mac1, mac2, "(") #)
21384  macro = mac2[1]
21385  prefix = substr(line, 1, index(line, defundef) - 1)
21386  if (D_is_set[macro]) {
21387    # Preserve the white space surrounding the "#".
21388    print prefix "define", macro P[macro] D[macro]
21389    next
21390  } else {
21391    # Replace #undef with comments.  This is necessary, for example,
21392    # in the case of _POSIX_SOURCE, which is predefined and required
21393    # on some systems where configure will not decide to define it.
21394    if (defundef == "undef") {
21395      print "/*", prefix defundef, macro, "*/"
21396      next
21397    }
21398  }
21399}
21400{ print }
21401_ACAWK
21402_ACEOF
21403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21404  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21405fi # test -n "$CONFIG_HEADERS"
21406
21407
21408eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21409shift
21410for ac_tag
21411do
21412  case $ac_tag in
21413  :[FHLC]) ac_mode=$ac_tag; continue;;
21414  esac
21415  case $ac_mode$ac_tag in
21416  :[FHL]*:*);;
21417  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21418  :[FH]-) ac_tag=-:-;;
21419  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21420  esac
21421  ac_save_IFS=$IFS
21422  IFS=:
21423  set x $ac_tag
21424  IFS=$ac_save_IFS
21425  shift
21426  ac_file=$1
21427  shift
21428
21429  case $ac_mode in
21430  :L) ac_source=$1;;
21431  :[FH])
21432    ac_file_inputs=
21433    for ac_f
21434    do
21435      case $ac_f in
21436      -) ac_f="$ac_tmp/stdin";;
21437      *) # Look for the file first in the build tree, then in the source tree
21438	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21439	 # because $ac_f cannot contain `:'.
21440	 test -f "$ac_f" ||
21441	   case $ac_f in
21442	   [\\/$]*) false;;
21443	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21444	   esac ||
21445	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21446      esac
21447      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21448      as_fn_append ac_file_inputs " '$ac_f'"
21449    done
21450
21451    # Let's still pretend it is `configure' which instantiates (i.e., don't
21452    # use $as_me), people would be surprised to read:
21453    #    /* config.h.  Generated by config.status.  */
21454    configure_input='Generated from '`
21455	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21456	`' by configure.'
21457    if test x"$ac_file" != x-; then
21458      configure_input="$ac_file.  $configure_input"
21459      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21460printf "%s\n" "$as_me: creating $ac_file" >&6;}
21461    fi
21462    # Neutralize special characters interpreted by sed in replacement strings.
21463    case $configure_input in #(
21464    *\&* | *\|* | *\\* )
21465       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21466       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21467    *) ac_sed_conf_input=$configure_input;;
21468    esac
21469
21470    case $ac_tag in
21471    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21472      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21473    esac
21474    ;;
21475  esac
21476
21477  ac_dir=`$as_dirname -- "$ac_file" ||
21478$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21479	 X"$ac_file" : 'X\(//\)[^/]' \| \
21480	 X"$ac_file" : 'X\(//\)$' \| \
21481	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21482printf "%s\n" X"$ac_file" |
21483    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21484	    s//\1/
21485	    q
21486	  }
21487	  /^X\(\/\/\)[^/].*/{
21488	    s//\1/
21489	    q
21490	  }
21491	  /^X\(\/\/\)$/{
21492	    s//\1/
21493	    q
21494	  }
21495	  /^X\(\/\).*/{
21496	    s//\1/
21497	    q
21498	  }
21499	  s/.*/./; q'`
21500  as_dir="$ac_dir"; as_fn_mkdir_p
21501  ac_builddir=.
21502
21503case "$ac_dir" in
21504.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21505*)
21506  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21507  # A ".." for each directory in $ac_dir_suffix.
21508  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21509  case $ac_top_builddir_sub in
21510  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21511  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21512  esac ;;
21513esac
21514ac_abs_top_builddir=$ac_pwd
21515ac_abs_builddir=$ac_pwd$ac_dir_suffix
21516# for backward compatibility:
21517ac_top_builddir=$ac_top_build_prefix
21518
21519case $srcdir in
21520  .)  # We are building in place.
21521    ac_srcdir=.
21522    ac_top_srcdir=$ac_top_builddir_sub
21523    ac_abs_top_srcdir=$ac_pwd ;;
21524  [\\/]* | ?:[\\/]* )  # Absolute name.
21525    ac_srcdir=$srcdir$ac_dir_suffix;
21526    ac_top_srcdir=$srcdir
21527    ac_abs_top_srcdir=$srcdir ;;
21528  *) # Relative name.
21529    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21530    ac_top_srcdir=$ac_top_build_prefix$srcdir
21531    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21532esac
21533ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21534
21535
21536  case $ac_mode in
21537  :F)
21538  #
21539  # CONFIG_FILE
21540  #
21541
21542  case $INSTALL in
21543  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21544  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21545  esac
21546  ac_MKDIR_P=$MKDIR_P
21547  case $MKDIR_P in
21548  [\\/$]* | ?:[\\/]* ) ;;
21549  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21550  esac
21551_ACEOF
21552
21553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21554# If the template does not know about datarootdir, expand it.
21555# FIXME: This hack should be removed a few years after 2.60.
21556ac_datarootdir_hack=; ac_datarootdir_seen=
21557ac_sed_dataroot='
21558/datarootdir/ {
21559  p
21560  q
21561}
21562/@datadir@/p
21563/@docdir@/p
21564/@infodir@/p
21565/@localedir@/p
21566/@mandir@/p'
21567case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21568*datarootdir*) ac_datarootdir_seen=yes;;
21569*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21571printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21572_ACEOF
21573cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21574  ac_datarootdir_hack='
21575  s&@datadir@&$datadir&g
21576  s&@docdir@&$docdir&g
21577  s&@infodir@&$infodir&g
21578  s&@localedir@&$localedir&g
21579  s&@mandir@&$mandir&g
21580  s&\\\${datarootdir}&$datarootdir&g' ;;
21581esac
21582_ACEOF
21583
21584# Neutralize VPATH when `$srcdir' = `.'.
21585# Shell code in configure.ac might set extrasub.
21586# FIXME: do we really want to maintain this feature?
21587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21588ac_sed_extra="$ac_vpsub
21589$extrasub
21590_ACEOF
21591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21592:t
21593/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21594s|@configure_input@|$ac_sed_conf_input|;t t
21595s&@top_builddir@&$ac_top_builddir_sub&;t t
21596s&@top_build_prefix@&$ac_top_build_prefix&;t t
21597s&@srcdir@&$ac_srcdir&;t t
21598s&@abs_srcdir@&$ac_abs_srcdir&;t t
21599s&@top_srcdir@&$ac_top_srcdir&;t t
21600s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21601s&@builddir@&$ac_builddir&;t t
21602s&@abs_builddir@&$ac_abs_builddir&;t t
21603s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21604s&@INSTALL@&$ac_INSTALL&;t t
21605s&@MKDIR_P@&$ac_MKDIR_P&;t t
21606$ac_datarootdir_hack
21607"
21608eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21609  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21610
21611test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21612  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21613  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21614      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21616which seems to be undefined.  Please make sure it is defined" >&5
21617printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21618which seems to be undefined.  Please make sure it is defined" >&2;}
21619
21620  rm -f "$ac_tmp/stdin"
21621  case $ac_file in
21622  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21623  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21624  esac \
21625  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21626 ;;
21627  :H)
21628  #
21629  # CONFIG_HEADER
21630  #
21631  if test x"$ac_file" != x-; then
21632    {
21633      printf "%s\n" "/* $configure_input  */" >&1 \
21634      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21635    } >"$ac_tmp/config.h" \
21636      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21637    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21638      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21639printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21640    else
21641      rm -f "$ac_file"
21642      mv "$ac_tmp/config.h" "$ac_file" \
21643	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21644    fi
21645  else
21646    printf "%s\n" "/* $configure_input  */" >&1 \
21647      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21648      || as_fn_error $? "could not create -" "$LINENO" 5
21649  fi
21650# Compute "$ac_file"'s index in $config_headers.
21651_am_arg="$ac_file"
21652_am_stamp_count=1
21653for _am_header in $config_headers :; do
21654  case $_am_header in
21655    $_am_arg | $_am_arg:* )
21656      break ;;
21657    * )
21658      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21659  esac
21660done
21661echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21662$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21663	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21664	 X"$_am_arg" : 'X\(//\)$' \| \
21665	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21666printf "%s\n" X"$_am_arg" |
21667    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21668	    s//\1/
21669	    q
21670	  }
21671	  /^X\(\/\/\)[^/].*/{
21672	    s//\1/
21673	    q
21674	  }
21675	  /^X\(\/\/\)$/{
21676	    s//\1/
21677	    q
21678	  }
21679	  /^X\(\/\).*/{
21680	    s//\1/
21681	    q
21682	  }
21683	  s/.*/./; q'`/stamp-h$_am_stamp_count
21684 ;;
21685
21686  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21687printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21688 ;;
21689  esac
21690
21691
21692  case $ac_file$ac_mode in
21693    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21694  # Older Autoconf quotes --file arguments for eval, but not when files
21695  # are listed without --file.  Let's play safe and only enable the eval
21696  # if we detect the quoting.
21697  # TODO: see whether this extra hack can be removed once we start
21698  # requiring Autoconf 2.70 or later.
21699  case $CONFIG_FILES in #(
21700  *\'*) :
21701    eval set x "$CONFIG_FILES" ;; #(
21702  *) :
21703    set x $CONFIG_FILES ;; #(
21704  *) :
21705     ;;
21706esac
21707  shift
21708  # Used to flag and report bootstrapping failures.
21709  am_rc=0
21710  for am_mf
21711  do
21712    # Strip MF so we end up with the name of the file.
21713    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21714    # Check whether this is an Automake generated Makefile which includes
21715    # dependency-tracking related rules and includes.
21716    # Grep'ing the whole file directly is not great: AIX grep has a line
21717    # limit of 2048, but all sed's we know have understand at least 4000.
21718    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21719      || continue
21720    am_dirpart=`$as_dirname -- "$am_mf" ||
21721$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21722	 X"$am_mf" : 'X\(//\)[^/]' \| \
21723	 X"$am_mf" : 'X\(//\)$' \| \
21724	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21725printf "%s\n" X"$am_mf" |
21726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21727	    s//\1/
21728	    q
21729	  }
21730	  /^X\(\/\/\)[^/].*/{
21731	    s//\1/
21732	    q
21733	  }
21734	  /^X\(\/\/\)$/{
21735	    s//\1/
21736	    q
21737	  }
21738	  /^X\(\/\).*/{
21739	    s//\1/
21740	    q
21741	  }
21742	  s/.*/./; q'`
21743    am_filepart=`$as_basename -- "$am_mf" ||
21744$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21745	 X"$am_mf" : 'X\(//\)$' \| \
21746	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21747printf "%s\n" X/"$am_mf" |
21748    sed '/^.*\/\([^/][^/]*\)\/*$/{
21749	    s//\1/
21750	    q
21751	  }
21752	  /^X\/\(\/\/\)$/{
21753	    s//\1/
21754	    q
21755	  }
21756	  /^X\/\(\/\).*/{
21757	    s//\1/
21758	    q
21759	  }
21760	  s/.*/./; q'`
21761    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21762      && sed -e '/# am--include-marker/d' "$am_filepart" \
21763        | $MAKE -f - am--depfiles" >&5
21764   (cd "$am_dirpart" \
21765      && sed -e '/# am--include-marker/d' "$am_filepart" \
21766        | $MAKE -f - am--depfiles) >&5 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } || am_rc=$?
21770  done
21771  if test $am_rc -ne 0; then
21772    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21773printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21774as_fn_error $? "Something went wrong bootstrapping makefile fragments
21775    for automatic dependency tracking.  If GNU make was not used, consider
21776    re-running the configure script with MAKE=\"gmake\" (or whatever is
21777    necessary).  You can also try re-running configure with the
21778    '--disable-dependency-tracking' option to at least be able to build
21779    the package (albeit without support for automatic dependency tracking).
21780See \`config.log' for more details" "$LINENO" 5; }
21781  fi
21782  { am_dirpart=; unset am_dirpart;}
21783  { am_filepart=; unset am_filepart;}
21784  { am_mf=; unset am_mf;}
21785  { am_rc=; unset am_rc;}
21786  rm -f conftest-deps.mk
21787}
21788 ;;
21789    "libtool":C)
21790
21791    # See if we are running on zsh, and set the options that allow our
21792    # commands through without removal of \ escapes.
21793    if test -n "${ZSH_VERSION+set}"; then
21794      setopt NO_GLOB_SUBST
21795    fi
21796
21797    cfgfile=${ofile}T
21798    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21799    $RM "$cfgfile"
21800
21801    cat <<_LT_EOF >> "$cfgfile"
21802#! $SHELL
21803# Generated automatically by $as_me ($PACKAGE) $VERSION
21804# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21805# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21806
21807# Provide generalized library-building support services.
21808# Written by Gordon Matzigkeit, 1996
21809
21810# Copyright (C) 2014 Free Software Foundation, Inc.
21811# This is free software; see the source for copying conditions.  There is NO
21812# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21813
21814# GNU Libtool is free software; you can redistribute it and/or modify
21815# it under the terms of the GNU General Public License as published by
21816# the Free Software Foundation; either version 2 of of the License, or
21817# (at your option) any later version.
21818#
21819# As a special exception to the GNU General Public License, if you
21820# distribute this file as part of a program or library that is built
21821# using GNU Libtool, you may include this file under the  same
21822# distribution terms that you use for the rest of that program.
21823#
21824# GNU Libtool is distributed in the hope that it will be useful, but
21825# WITHOUT ANY WARRANTY; without even the implied warranty of
21826# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21827# GNU General Public License for more details.
21828#
21829# You should have received a copy of the GNU General Public License
21830# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21831
21832
21833# The names of the tagged configurations supported by this script.
21834available_tags=''
21835
21836# Configured defaults for sys_lib_dlsearch_path munging.
21837: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21838
21839# ### BEGIN LIBTOOL CONFIG
21840
21841# Whether or not to build static libraries.
21842build_old_libs=$enable_static
21843
21844# Which release of libtool.m4 was used?
21845macro_version=$macro_version
21846macro_revision=$macro_revision
21847
21848# Whether or not to build shared libraries.
21849build_libtool_libs=$enable_shared
21850
21851# What type of objects to build.
21852pic_mode=$pic_mode
21853
21854# Whether or not to optimize for fast installation.
21855fast_install=$enable_fast_install
21856
21857# Shared archive member basename,for filename based shared library versioning on AIX.
21858shared_archive_member_spec=$shared_archive_member_spec
21859
21860# Shell to use when invoking shell scripts.
21861SHELL=$lt_SHELL
21862
21863# An echo program that protects backslashes.
21864ECHO=$lt_ECHO
21865
21866# The PATH separator for the build system.
21867PATH_SEPARATOR=$lt_PATH_SEPARATOR
21868
21869# The host system.
21870host_alias=$host_alias
21871host=$host
21872host_os=$host_os
21873
21874# The build system.
21875build_alias=$build_alias
21876build=$build
21877build_os=$build_os
21878
21879# A sed program that does not truncate output.
21880SED=$lt_SED
21881
21882# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21883Xsed="\$SED -e 1s/^X//"
21884
21885# A grep program that handles long lines.
21886GREP=$lt_GREP
21887
21888# An ERE matcher.
21889EGREP=$lt_EGREP
21890
21891# A literal string matcher.
21892FGREP=$lt_FGREP
21893
21894# A BSD- or MS-compatible name lister.
21895NM=$lt_NM
21896
21897# Whether we need soft or hard links.
21898LN_S=$lt_LN_S
21899
21900# What is the maximum length of a command?
21901max_cmd_len=$max_cmd_len
21902
21903# Object file suffix (normally "o").
21904objext=$ac_objext
21905
21906# Executable file suffix (normally "").
21907exeext=$exeext
21908
21909# whether the shell understands "unset".
21910lt_unset=$lt_unset
21911
21912# turn spaces into newlines.
21913SP2NL=$lt_lt_SP2NL
21914
21915# turn newlines into spaces.
21916NL2SP=$lt_lt_NL2SP
21917
21918# convert \$build file names to \$host format.
21919to_host_file_cmd=$lt_cv_to_host_file_cmd
21920
21921# convert \$build files to toolchain format.
21922to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21923
21924# A file(cmd) program that detects file types.
21925FILECMD=$lt_FILECMD
21926
21927# An object symbol dumper.
21928OBJDUMP=$lt_OBJDUMP
21929
21930# Method to check whether dependent libraries are shared objects.
21931deplibs_check_method=$lt_deplibs_check_method
21932
21933# Command to use when deplibs_check_method = "file_magic".
21934file_magic_cmd=$lt_file_magic_cmd
21935
21936# How to find potential files when deplibs_check_method = "file_magic".
21937file_magic_glob=$lt_file_magic_glob
21938
21939# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21940want_nocaseglob=$lt_want_nocaseglob
21941
21942# DLL creation program.
21943DLLTOOL=$lt_DLLTOOL
21944
21945# Command to associate shared and link libraries.
21946sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21947
21948# The archiver.
21949AR=$lt_AR
21950
21951# Flags to create an archive (by configure).
21952lt_ar_flags=$lt_ar_flags
21953
21954# Flags to create an archive.
21955AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21956
21957# How to feed a file listing to the archiver.
21958archiver_list_spec=$lt_archiver_list_spec
21959
21960# A symbol stripping program.
21961STRIP=$lt_STRIP
21962
21963# Commands used to install an old-style archive.
21964RANLIB=$lt_RANLIB
21965old_postinstall_cmds=$lt_old_postinstall_cmds
21966old_postuninstall_cmds=$lt_old_postuninstall_cmds
21967
21968# Whether to use a lock for old archive extraction.
21969lock_old_archive_extraction=$lock_old_archive_extraction
21970
21971# A C compiler.
21972LTCC=$lt_CC
21973
21974# LTCC compiler flags.
21975LTCFLAGS=$lt_CFLAGS
21976
21977# Take the output of nm and produce a listing of raw symbols and C names.
21978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21979
21980# Transform the output of nm in a proper C declaration.
21981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21982
21983# Transform the output of nm into a list of symbols to manually relocate.
21984global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21985
21986# Transform the output of nm in a C name address pair.
21987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21988
21989# Transform the output of nm in a C name address pair when lib prefix is needed.
21990global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21991
21992# The name lister interface.
21993nm_interface=$lt_lt_cv_nm_interface
21994
21995# Specify filename containing input files for \$NM.
21996nm_file_list_spec=$lt_nm_file_list_spec
21997
21998# The root where to search for dependent libraries,and where our libraries should be installed.
21999lt_sysroot=$lt_sysroot
22000
22001# Command to truncate a binary pipe.
22002lt_truncate_bin=$lt_lt_cv_truncate_bin
22003
22004# The name of the directory that contains temporary libtool files.
22005objdir=$objdir
22006
22007# Used to examine libraries when file_magic_cmd begins with "file".
22008MAGIC_CMD=$MAGIC_CMD
22009
22010# Must we lock files when doing compilation?
22011need_locks=$lt_need_locks
22012
22013# Manifest tool.
22014MANIFEST_TOOL=$lt_MANIFEST_TOOL
22015
22016# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22017DSYMUTIL=$lt_DSYMUTIL
22018
22019# Tool to change global to local symbols on Mac OS X.
22020NMEDIT=$lt_NMEDIT
22021
22022# Tool to manipulate fat objects and archives on Mac OS X.
22023LIPO=$lt_LIPO
22024
22025# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22026OTOOL=$lt_OTOOL
22027
22028# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22029OTOOL64=$lt_OTOOL64
22030
22031# Old archive suffix (normally "a").
22032libext=$libext
22033
22034# Shared library suffix (normally ".so").
22035shrext_cmds=$lt_shrext_cmds
22036
22037# The commands to extract the exported symbol list from a shared archive.
22038extract_expsyms_cmds=$lt_extract_expsyms_cmds
22039
22040# Variables whose values should be saved in libtool wrapper scripts and
22041# restored at link time.
22042variables_saved_for_relink=$lt_variables_saved_for_relink
22043
22044# Do we need the "lib" prefix for modules?
22045need_lib_prefix=$need_lib_prefix
22046
22047# Do we need a version for libraries?
22048need_version=$need_version
22049
22050# Library versioning type.
22051version_type=$version_type
22052
22053# Shared library runtime path variable.
22054runpath_var=$runpath_var
22055
22056# Shared library path variable.
22057shlibpath_var=$shlibpath_var
22058
22059# Is shlibpath searched before the hard-coded library search path?
22060shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22061
22062# Format of library name prefix.
22063libname_spec=$lt_libname_spec
22064
22065# List of archive names.  First name is the real one, the rest are links.
22066# The last name is the one that the linker finds with -lNAME
22067library_names_spec=$lt_library_names_spec
22068
22069# The coded name of the library, if different from the real name.
22070soname_spec=$lt_soname_spec
22071
22072# Permission mode override for installation of shared libraries.
22073install_override_mode=$lt_install_override_mode
22074
22075# Command to use after installation of a shared archive.
22076postinstall_cmds=$lt_postinstall_cmds
22077
22078# Command to use after uninstallation of a shared archive.
22079postuninstall_cmds=$lt_postuninstall_cmds
22080
22081# Commands used to finish a libtool library installation in a directory.
22082finish_cmds=$lt_finish_cmds
22083
22084# As "finish_cmds", except a single script fragment to be evaled but
22085# not shown.
22086finish_eval=$lt_finish_eval
22087
22088# Whether we should hardcode library paths into libraries.
22089hardcode_into_libs=$hardcode_into_libs
22090
22091# Compile-time system search path for libraries.
22092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22093
22094# Detected run-time system search path for libraries.
22095sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22096
22097# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22098configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22099
22100# Whether dlopen is supported.
22101dlopen_support=$enable_dlopen
22102
22103# Whether dlopen of programs is supported.
22104dlopen_self=$enable_dlopen_self
22105
22106# Whether dlopen of statically linked programs is supported.
22107dlopen_self_static=$enable_dlopen_self_static
22108
22109# Commands to strip libraries.
22110old_striplib=$lt_old_striplib
22111striplib=$lt_striplib
22112
22113
22114# The linker used to build libraries.
22115LD=$lt_LD
22116
22117# How to create reloadable object files.
22118reload_flag=$lt_reload_flag
22119reload_cmds=$lt_reload_cmds
22120
22121# Commands used to build an old-style archive.
22122old_archive_cmds=$lt_old_archive_cmds
22123
22124# A language specific compiler.
22125CC=$lt_compiler
22126
22127# Is the compiler the GNU compiler?
22128with_gcc=$GCC
22129
22130# Compiler flag to turn off builtin functions.
22131no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22132
22133# Additional compiler flags for building library objects.
22134pic_flag=$lt_lt_prog_compiler_pic
22135
22136# How to pass a linker flag through the compiler.
22137wl=$lt_lt_prog_compiler_wl
22138
22139# Compiler flag to prevent dynamic linking.
22140link_static_flag=$lt_lt_prog_compiler_static
22141
22142# Does compiler simultaneously support -c and -o options?
22143compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22144
22145# Whether or not to add -lc for building shared libraries.
22146build_libtool_need_lc=$archive_cmds_need_lc
22147
22148# Whether or not to disallow shared libs when runtime libs are static.
22149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22150
22151# Compiler flag to allow reflexive dlopens.
22152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22153
22154# Compiler flag to generate shared objects directly from archives.
22155whole_archive_flag_spec=$lt_whole_archive_flag_spec
22156
22157# Whether the compiler copes with passing no objects directly.
22158compiler_needs_object=$lt_compiler_needs_object
22159
22160# Create an old-style archive from a shared archive.
22161old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22162
22163# Create a temporary old-style archive to link instead of a shared archive.
22164old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22165
22166# Commands used to build a shared archive.
22167archive_cmds=$lt_archive_cmds
22168archive_expsym_cmds=$lt_archive_expsym_cmds
22169
22170# Commands used to build a loadable module if different from building
22171# a shared archive.
22172module_cmds=$lt_module_cmds
22173module_expsym_cmds=$lt_module_expsym_cmds
22174
22175# Whether we are building with GNU ld or not.
22176with_gnu_ld=$lt_with_gnu_ld
22177
22178# Flag that allows shared libraries with undefined symbols to be built.
22179allow_undefined_flag=$lt_allow_undefined_flag
22180
22181# Flag that enforces no undefined symbols.
22182no_undefined_flag=$lt_no_undefined_flag
22183
22184# Flag to hardcode \$libdir into a binary during linking.
22185# This must work even if \$libdir does not exist
22186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22187
22188# Whether we need a single "-rpath" flag with a separated argument.
22189hardcode_libdir_separator=$lt_hardcode_libdir_separator
22190
22191# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22192# DIR into the resulting binary.
22193hardcode_direct=$hardcode_direct
22194
22195# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22196# DIR into the resulting binary and the resulting library dependency is
22197# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22198# library is relocated.
22199hardcode_direct_absolute=$hardcode_direct_absolute
22200
22201# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22202# into the resulting binary.
22203hardcode_minus_L=$hardcode_minus_L
22204
22205# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22206# into the resulting binary.
22207hardcode_shlibpath_var=$hardcode_shlibpath_var
22208
22209# Set to "yes" if building a shared library automatically hardcodes DIR
22210# into the library and all subsequent libraries and executables linked
22211# against it.
22212hardcode_automatic=$hardcode_automatic
22213
22214# Set to yes if linker adds runtime paths of dependent libraries
22215# to runtime path list.
22216inherit_rpath=$inherit_rpath
22217
22218# Whether libtool must link a program against all its dependency libraries.
22219link_all_deplibs=$link_all_deplibs
22220
22221# Set to "yes" if exported symbols are required.
22222always_export_symbols=$always_export_symbols
22223
22224# The commands to list exported symbols.
22225export_symbols_cmds=$lt_export_symbols_cmds
22226
22227# Symbols that should not be listed in the preloaded symbols.
22228exclude_expsyms=$lt_exclude_expsyms
22229
22230# Symbols that must always be exported.
22231include_expsyms=$lt_include_expsyms
22232
22233# Commands necessary for linking programs (against libraries) with templates.
22234prelink_cmds=$lt_prelink_cmds
22235
22236# Commands necessary for finishing linking programs.
22237postlink_cmds=$lt_postlink_cmds
22238
22239# Specify filename containing input files.
22240file_list_spec=$lt_file_list_spec
22241
22242# How to hardcode a shared library path into an executable.
22243hardcode_action=$hardcode_action
22244
22245# ### END LIBTOOL CONFIG
22246
22247_LT_EOF
22248
22249    cat <<'_LT_EOF' >> "$cfgfile"
22250
22251# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22252
22253# func_munge_path_list VARIABLE PATH
22254# -----------------------------------
22255# VARIABLE is name of variable containing _space_ separated list of
22256# directories to be munged by the contents of PATH, which is string
22257# having a format:
22258# "DIR[:DIR]:"
22259#       string "DIR[ DIR]" will be prepended to VARIABLE
22260# ":DIR[:DIR]"
22261#       string "DIR[ DIR]" will be appended to VARIABLE
22262# "DIRP[:DIRP]::[DIRA:]DIRA"
22263#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22264#       "DIRA[ DIRA]" will be appended to VARIABLE
22265# "DIR[:DIR]"
22266#       VARIABLE will be replaced by "DIR[ DIR]"
22267func_munge_path_list ()
22268{
22269    case x$2 in
22270    x)
22271        ;;
22272    *:)
22273        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22274        ;;
22275    x:*)
22276        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22277        ;;
22278    *::*)
22279        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22280        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22281        ;;
22282    *)
22283        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22284        ;;
22285    esac
22286}
22287
22288
22289# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22290func_cc_basename ()
22291{
22292    for cc_temp in $*""; do
22293      case $cc_temp in
22294        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22295        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22296        \-*) ;;
22297        *) break;;
22298      esac
22299    done
22300    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22301}
22302
22303
22304# ### END FUNCTIONS SHARED WITH CONFIGURE
22305
22306_LT_EOF
22307
22308  case $host_os in
22309  aix3*)
22310    cat <<\_LT_EOF >> "$cfgfile"
22311# AIX sometimes has problems with the GCC collect2 program.  For some
22312# reason, if we set the COLLECT_NAMES environment variable, the problems
22313# vanish in a puff of smoke.
22314if test set != "${COLLECT_NAMES+set}"; then
22315  COLLECT_NAMES=
22316  export COLLECT_NAMES
22317fi
22318_LT_EOF
22319    ;;
22320  esac
22321
22322
22323
22324ltmain=$ac_aux_dir/ltmain.sh
22325
22326
22327  # We use sed instead of cat because bash on DJGPP gets confused if
22328  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22329  # text mode, it properly converts lines to CR/LF.  This bash problem
22330  # is reportedly fixed, but why not run on old versions too?
22331  $SED '$q' "$ltmain" >> "$cfgfile" \
22332     || (rm -f "$cfgfile"; exit 1)
22333
22334   mv -f "$cfgfile" "$ofile" ||
22335    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22336  chmod +x "$ofile"
22337
22338 ;;
22339
22340  esac
22341done # for ac_tag
22342
22343
22344as_fn_exit 0
22345_ACEOF
22346ac_clean_files=$ac_clean_files_save
22347
22348test $ac_write_fail = 0 ||
22349  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22350
22351
22352# configure is writing to config.log, and then calls config.status.
22353# config.status does its own redirection, appending to config.log.
22354# Unfortunately, on DOS this fails, as config.log is still kept open
22355# by configure, so config.status won't be able to write to it; its
22356# output is simply discarded.  So we exec the FD to /dev/null,
22357# effectively closing config.log, so it can be properly (re)opened and
22358# appended to by config.status.  When coming back to configure, we
22359# need to make the FD available again.
22360if test "$no_create" != yes; then
22361  ac_cs_success=:
22362  ac_config_status_args=
22363  test "$silent" = yes &&
22364    ac_config_status_args="$ac_config_status_args --quiet"
22365  exec 5>/dev/null
22366  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22367  exec 5>>config.log
22368  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22369  # would make configure fail if this is the last instruction.
22370  $ac_cs_success || as_fn_exit 1
22371fi
22372if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22374printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22375fi
22376
22377
22378