configure revision 621f50c3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-input-elographics 1.4.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/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-elographics/-/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-elographics'
624PACKAGE_TARNAME='xf86-input-elographics'
625PACKAGE_VERSION='1.4.3'
626PACKAGE_STRING='xf86-input-elographics 1.4.3'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/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
667DRIVER_NAME
668XORG_LIBS
669XORG_CFLAGS
670inputdir
671LT_SYS_LIBRARY_PATH
672OTOOL64
673OTOOL
674LIPO
675NMEDIT
676DSYMUTIL
677MANIFEST_TOOL
678RANLIB
679ac_ct_AR
680AR
681DLLTOOL
682OBJDUMP
683FILECMD
684LN_S
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690EGREP
691GREP
692LIBTOOL
693MAN_SUBSTS
694XORG_MAN_PAGE
695ADMIN_MAN_DIR
696DRIVER_MAN_DIR
697MISC_MAN_DIR
698FILE_MAN_DIR
699LIB_MAN_DIR
700APP_MAN_DIR
701ADMIN_MAN_SUFFIX
702DRIVER_MAN_SUFFIX
703MISC_MAN_SUFFIX
704FILE_MAN_SUFFIX
705LIB_MAN_SUFFIX
706APP_MAN_SUFFIX
707SED
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716INSTALL_CMD
717PKG_CONFIG_LIBDIR
718PKG_CONFIG_PATH
719PKG_CONFIG
720CHANGELOG_CMD
721STRICT_CFLAGS
722CWARNFLAGS
723BASE_CFLAGS
724am__fastdepCC_FALSE
725am__fastdepCC_TRUE
726CCDEPMODE
727am__nodep
728AMDEPBACKSLASH
729AMDEP_FALSE
730AMDEP_TRUE
731am__include
732DEPDIR
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740AM_BACKSLASH
741AM_DEFAULT_VERBOSITY
742AM_DEFAULT_V
743AM_V
744CSCOPE
745ETAGS
746CTAGS
747am__untar
748am__tar
749AMTAR
750am__leading_dot
751SET_MAKE
752AWK
753mkdir_p
754MKDIR_P
755INSTALL_STRIP_PROGRAM
756STRIP
757install_sh
758MAKEINFO
759AUTOHEADER
760AUTOMAKE
761AUTOCONF
762ACLOCAL
763VERSION
764PACKAGE
765CYGPATH_W
766am__isrc
767INSTALL_DATA
768INSTALL_SCRIPT
769INSTALL_PROGRAM
770target_alias
771host_alias
772build_alias
773LIBS
774ECHO_T
775ECHO_N
776ECHO_C
777DEFS
778mandir
779localedir
780libdir
781psdir
782pdfdir
783dvidir
784htmldir
785infodir
786docdir
787oldincludedir
788includedir
789runstatedir
790localstatedir
791sharedstatedir
792sysconfdir
793datadir
794datarootdir
795libexecdir
796sbindir
797bindir
798program_transform_name
799prefix
800exec_prefix
801PACKAGE_URL
802PACKAGE_BUGREPORT
803PACKAGE_STRING
804PACKAGE_VERSION
805PACKAGE_TARNAME
806PACKAGE_NAME
807PATH_SEPARATOR
808SHELL
809am__quote'
810ac_subst_files=''
811ac_user_opts='
812enable_option_checking
813enable_silent_rules
814enable_dependency_tracking
815enable_selective_werror
816enable_strict_compilation
817enable_static
818enable_shared
819with_pic
820enable_fast_install
821with_aix_soname
822with_gnu_ld
823with_sysroot
824enable_libtool_lock
825with_xorg_module_dir
826'
827      ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
835PKG_CONFIG
836PKG_CONFIG_PATH
837PKG_CONFIG_LIBDIR
838LT_SYS_LIBRARY_PATH
839XORG_CFLAGS
840XORG_LIBS'
841
842
843# Initialize some variables set by options.
844ac_init_help=
845ac_init_version=false
846ac_unrecognized_opts=
847ac_unrecognized_sep=
848# The variables have the same names as the options, with
849# dashes changed to underlines.
850cache_file=/dev/null
851exec_prefix=NONE
852no_create=
853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
861verbose=
862x_includes=NONE
863x_libraries=NONE
864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
870# (The list follows the same order as the GNU Coding Standards.)
871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
879runstatedir='${localstatedir}/run'
880includedir='${prefix}/include'
881oldincludedir='/usr/include'
882docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883infodir='${datarootdir}/info'
884htmldir='${docdir}'
885dvidir='${docdir}'
886pdfdir='${docdir}'
887psdir='${docdir}'
888libdir='${exec_prefix}/lib'
889localedir='${datarootdir}/locale'
890mandir='${datarootdir}/man'
891
892ac_prev=
893ac_dashdash=
894for ac_option
895do
896  # If the previous option needs an argument, assign it.
897  if test -n "$ac_prev"; then
898    eval $ac_prev=\$ac_option
899    ac_prev=
900    continue
901  fi
902
903  case $ac_option in
904  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905  *=)   ac_optarg= ;;
906  *)    ac_optarg=yes ;;
907  esac
908
909  case $ac_dashdash$ac_option in
910  --)
911    ac_dashdash=yes ;;
912
913  -bindir | --bindir | --bindi | --bind | --bin | --bi)
914    ac_prev=bindir ;;
915  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916    bindir=$ac_optarg ;;
917
918  -build | --build | --buil | --bui | --bu)
919    ac_prev=build_alias ;;
920  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921    build_alias=$ac_optarg ;;
922
923  -cache-file | --cache-file | --cache-fil | --cache-fi \
924  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925    ac_prev=cache_file ;;
926  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928    cache_file=$ac_optarg ;;
929
930  --config-cache | -C)
931    cache_file=config.cache ;;
932
933  -datadir | --datadir | --datadi | --datad)
934    ac_prev=datadir ;;
935  -datadir=* | --datadir=* | --datadi=* | --datad=*)
936    datadir=$ac_optarg ;;
937
938  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939  | --dataroo | --dataro | --datar)
940    ac_prev=datarootdir ;;
941  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943    datarootdir=$ac_optarg ;;
944
945  -disable-* | --disable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error $? "invalid feature name: \`$ac_useropt'"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=no ;;
960
961  -docdir | --docdir | --docdi | --doc | --do)
962    ac_prev=docdir ;;
963  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964    docdir=$ac_optarg ;;
965
966  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967    ac_prev=dvidir ;;
968  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969    dvidir=$ac_optarg ;;
970
971  -enable-* | --enable-*)
972    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973    # Reject names that are not valid shell variable names.
974    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975      as_fn_error $? "invalid feature name: \`$ac_useropt'"
976    ac_useropt_orig=$ac_useropt
977    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
978    case $ac_user_opts in
979      *"
980"enable_$ac_useropt"
981"*) ;;
982      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983	 ac_unrecognized_sep=', ';;
984    esac
985    eval enable_$ac_useropt=\$ac_optarg ;;
986
987  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989  | --exec | --exe | --ex)
990    ac_prev=exec_prefix ;;
991  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993  | --exec=* | --exe=* | --ex=*)
994    exec_prefix=$ac_optarg ;;
995
996  -gas | --gas | --ga | --g)
997    # Obsolete; use --with-gas.
998    with_gas=yes ;;
999
1000  -help | --help | --hel | --he | -h)
1001    ac_init_help=long ;;
1002  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003    ac_init_help=recursive ;;
1004  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005    ac_init_help=short ;;
1006
1007  -host | --host | --hos | --ho)
1008    ac_prev=host_alias ;;
1009  -host=* | --host=* | --hos=* | --ho=*)
1010    host_alias=$ac_optarg ;;
1011
1012  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013    ac_prev=htmldir ;;
1014  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015  | --ht=*)
1016    htmldir=$ac_optarg ;;
1017
1018  -includedir | --includedir | --includedi | --included | --include \
1019  | --includ | --inclu | --incl | --inc)
1020    ac_prev=includedir ;;
1021  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022  | --includ=* | --inclu=* | --incl=* | --inc=*)
1023    includedir=$ac_optarg ;;
1024
1025  -infodir | --infodir | --infodi | --infod | --info | --inf)
1026    ac_prev=infodir ;;
1027  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028    infodir=$ac_optarg ;;
1029
1030  -libdir | --libdir | --libdi | --libd)
1031    ac_prev=libdir ;;
1032  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033    libdir=$ac_optarg ;;
1034
1035  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036  | --libexe | --libex | --libe)
1037    ac_prev=libexecdir ;;
1038  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039  | --libexe=* | --libex=* | --libe=*)
1040    libexecdir=$ac_optarg ;;
1041
1042  -localedir | --localedir | --localedi | --localed | --locale)
1043    ac_prev=localedir ;;
1044  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045    localedir=$ac_optarg ;;
1046
1047  -localstatedir | --localstatedir | --localstatedi | --localstated \
1048  | --localstate | --localstat | --localsta | --localst | --locals)
1049    ac_prev=localstatedir ;;
1050  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052    localstatedir=$ac_optarg ;;
1053
1054  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055    ac_prev=mandir ;;
1056  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057    mandir=$ac_optarg ;;
1058
1059  -nfp | --nfp | --nf)
1060    # Obsolete; use --without-fp.
1061    with_fp=no ;;
1062
1063  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064  | --no-cr | --no-c | -n)
1065    no_create=yes ;;
1066
1067  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069    no_recursion=yes ;;
1070
1071  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073  | --oldin | --oldi | --old | --ol | --o)
1074    ac_prev=oldincludedir ;;
1075  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078    oldincludedir=$ac_optarg ;;
1079
1080  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081    ac_prev=prefix ;;
1082  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083    prefix=$ac_optarg ;;
1084
1085  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086  | --program-pre | --program-pr | --program-p)
1087    ac_prev=program_prefix ;;
1088  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090    program_prefix=$ac_optarg ;;
1091
1092  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093  | --program-suf | --program-su | --program-s)
1094    ac_prev=program_suffix ;;
1095  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097    program_suffix=$ac_optarg ;;
1098
1099  -program-transform-name | --program-transform-name \
1100  | --program-transform-nam | --program-transform-na \
1101  | --program-transform-n | --program-transform- \
1102  | --program-transform | --program-transfor \
1103  | --program-transfo | --program-transf \
1104  | --program-trans | --program-tran \
1105  | --progr-tra | --program-tr | --program-t)
1106    ac_prev=program_transform_name ;;
1107  -program-transform-name=* | --program-transform-name=* \
1108  | --program-transform-nam=* | --program-transform-na=* \
1109  | --program-transform-n=* | --program-transform-=* \
1110  | --program-transform=* | --program-transfor=* \
1111  | --program-transfo=* | --program-transf=* \
1112  | --program-trans=* | --program-tran=* \
1113  | --progr-tra=* | --program-tr=* | --program-t=*)
1114    program_transform_name=$ac_optarg ;;
1115
1116  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117    ac_prev=pdfdir ;;
1118  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119    pdfdir=$ac_optarg ;;
1120
1121  -psdir | --psdir | --psdi | --psd | --ps)
1122    ac_prev=psdir ;;
1123  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124    psdir=$ac_optarg ;;
1125
1126  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127  | -silent | --silent | --silen | --sile | --sil)
1128    silent=yes ;;
1129
1130  -runstatedir | --runstatedir | --runstatedi | --runstated \
1131  | --runstate | --runstat | --runsta | --runst | --runs \
1132  | --run | --ru | --r)
1133    ac_prev=runstatedir ;;
1134  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1135  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1136  | --run=* | --ru=* | --r=*)
1137    runstatedir=$ac_optarg ;;
1138
1139  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140    ac_prev=sbindir ;;
1141  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142  | --sbi=* | --sb=*)
1143    sbindir=$ac_optarg ;;
1144
1145  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147  | --sharedst | --shareds | --shared | --share | --shar \
1148  | --sha | --sh)
1149    ac_prev=sharedstatedir ;;
1150  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153  | --sha=* | --sh=*)
1154    sharedstatedir=$ac_optarg ;;
1155
1156  -site | --site | --sit)
1157    ac_prev=site ;;
1158  -site=* | --site=* | --sit=*)
1159    site=$ac_optarg ;;
1160
1161  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162    ac_prev=srcdir ;;
1163  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164    srcdir=$ac_optarg ;;
1165
1166  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167  | --syscon | --sysco | --sysc | --sys | --sy)
1168    ac_prev=sysconfdir ;;
1169  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171    sysconfdir=$ac_optarg ;;
1172
1173  -target | --target | --targe | --targ | --tar | --ta | --t)
1174    ac_prev=target_alias ;;
1175  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176    target_alias=$ac_optarg ;;
1177
1178  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179    verbose=yes ;;
1180
1181  -version | --version | --versio | --versi | --vers | -V)
1182    ac_init_version=: ;;
1183
1184  -with-* | --with-*)
1185    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186    # Reject names that are not valid shell variable names.
1187    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188      as_fn_error $? "invalid package name: \`$ac_useropt'"
1189    ac_useropt_orig=$ac_useropt
1190    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1191    case $ac_user_opts in
1192      *"
1193"with_$ac_useropt"
1194"*) ;;
1195      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196	 ac_unrecognized_sep=', ';;
1197    esac
1198    eval with_$ac_useropt=\$ac_optarg ;;
1199
1200  -without-* | --without-*)
1201    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202    # Reject names that are not valid shell variable names.
1203    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204      as_fn_error $? "invalid package name: \`$ac_useropt'"
1205    ac_useropt_orig=$ac_useropt
1206    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207    case $ac_user_opts in
1208      *"
1209"with_$ac_useropt"
1210"*) ;;
1211      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212	 ac_unrecognized_sep=', ';;
1213    esac
1214    eval with_$ac_useropt=no ;;
1215
1216  --x)
1217    # Obsolete; use --with-x.
1218    with_x=yes ;;
1219
1220  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221  | --x-incl | --x-inc | --x-in | --x-i)
1222    ac_prev=x_includes ;;
1223  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225    x_includes=$ac_optarg ;;
1226
1227  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229    ac_prev=x_libraries ;;
1230  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232    x_libraries=$ac_optarg ;;
1233
1234  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1235Try \`$0 --help' for more information"
1236    ;;
1237
1238  *=*)
1239    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240    # Reject names that are not valid shell variable names.
1241    case $ac_envvar in #(
1242      '' | [0-9]* | *[!_$as_cr_alnum]* )
1243      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1244    esac
1245    eval $ac_envvar=\$ac_optarg
1246    export $ac_envvar ;;
1247
1248  *)
1249    # FIXME: should be removed in autoconf 3.0.
1250    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1251    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1253    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1254    ;;
1255
1256  esac
1257done
1258
1259if test -n "$ac_prev"; then
1260  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261  as_fn_error $? "missing argument to $ac_option"
1262fi
1263
1264if test -n "$ac_unrecognized_opts"; then
1265  case $enable_option_checking in
1266    no) ;;
1267    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1268    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269  esac
1270fi
1271
1272# Check all directory arguments for consistency.
1273for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274		datadir sysconfdir sharedstatedir localstatedir includedir \
1275		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276		libdir localedir mandir runstatedir
1277do
1278  eval ac_val=\$$ac_var
1279  # Remove trailing slashes.
1280  case $ac_val in
1281    */ )
1282      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283      eval $ac_var=\$ac_val;;
1284  esac
1285  # Be sure to have absolute directory names.
1286  case $ac_val in
1287    [\\/$]* | ?:[\\/]* )  continue;;
1288    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289  esac
1290  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304  elif test "x$build_alias" != "x$host_alias"; then
1305    cross_compiling=yes
1306  fi
1307fi
1308
1309ac_tool_prefix=
1310test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312test "$silent" = yes && exec 6>/dev/null
1313
1314
1315ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316ac_ls_di=`ls -di .` &&
1317ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318  as_fn_error $? "working directory cannot be determined"
1319test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320  as_fn_error $? "pwd does not report name of working directory"
1321
1322
1323# Find the source files, if location was not specified.
1324if test -z "$srcdir"; then
1325  ac_srcdir_defaulted=yes
1326  # Try the directory containing this script, then the parent directory.
1327  ac_confdir=`$as_dirname -- "$as_myself" ||
1328$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329	 X"$as_myself" : 'X\(//\)[^/]' \| \
1330	 X"$as_myself" : 'X\(//\)$' \| \
1331	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332printf "%s\n" X"$as_myself" |
1333    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334	    s//\1/
1335	    q
1336	  }
1337	  /^X\(\/\/\)[^/].*/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\).*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  s/.*/./; q'`
1350  srcdir=$ac_confdir
1351  if test ! -r "$srcdir/$ac_unique_file"; then
1352    srcdir=..
1353  fi
1354else
1355  ac_srcdir_defaulted=no
1356fi
1357if test ! -r "$srcdir/$ac_unique_file"; then
1358  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1360fi
1361ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1362ac_abs_confdir=`(
1363	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1364	pwd)`
1365# When building in place, set srcdir=.
1366if test "$ac_abs_confdir" = "$ac_pwd"; then
1367  srcdir=.
1368fi
1369# Remove unnecessary trailing slashes from srcdir.
1370# Double slashes in file names in object file debugging info
1371# mess up M-x gdb in Emacs.
1372case $srcdir in
1373*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374esac
1375for ac_var in $ac_precious_vars; do
1376  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_env_${ac_var}_value=\$${ac_var}
1378  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380done
1381
1382#
1383# Report the --help message.
1384#
1385if test "$ac_init_help" = "long"; then
1386  # Omit some internal or obsolete options to make the list less imposing.
1387  # This message is too long to be a string in the A/UX 3.1 sh.
1388  cat <<_ACEOF
1389\`configure' configures xf86-input-elographics 1.4.3 to adapt to many kinds of systems.
1390
1391Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396Defaults for the options are specified in brackets.
1397
1398Configuration:
1399  -h, --help              display this help and exit
1400      --help=short        display options specific to this package
1401      --help=recursive    display the short help of all the included packages
1402  -V, --version           display version information and exit
1403  -q, --quiet, --silent   do not print \`checking ...' messages
1404      --cache-file=FILE   cache test results in FILE [disabled]
1405  -C, --config-cache      alias for \`--cache-file=config.cache'
1406  -n, --no-create         do not create output files
1407      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1408
1409Installation directories:
1410  --prefix=PREFIX         install architecture-independent files in PREFIX
1411                          [$ac_default_prefix]
1412  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1413                          [PREFIX]
1414
1415By default, \`make install' will install all the files in
1416\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1417an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418for instance \`--prefix=\$HOME'.
1419
1420For better control, use the options below.
1421
1422Fine tuning of the installation directories:
1423  --bindir=DIR            user executables [EPREFIX/bin]
1424  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1425  --libexecdir=DIR        program executables [EPREFIX/libexec]
1426  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1427  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1428  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1429  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1430  --libdir=DIR            object code libraries [EPREFIX/lib]
1431  --includedir=DIR        C header files [PREFIX/include]
1432  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1433  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1434  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1435  --infodir=DIR           info documentation [DATAROOTDIR/info]
1436  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1437  --mandir=DIR            man documentation [DATAROOTDIR/man]
1438  --docdir=DIR            documentation root
1439                          [DATAROOTDIR/doc/xf86-input-elographics]
1440  --htmldir=DIR           html documentation [DOCDIR]
1441  --dvidir=DIR            dvi documentation [DOCDIR]
1442  --pdfdir=DIR            pdf documentation [DOCDIR]
1443  --psdir=DIR             ps documentation [DOCDIR]
1444_ACEOF
1445
1446  cat <<\_ACEOF
1447
1448Program names:
1449  --program-prefix=PREFIX            prepend PREFIX to installed program names
1450  --program-suffix=SUFFIX            append SUFFIX to installed program names
1451  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1452
1453System types:
1454  --build=BUILD     configure for building on BUILD [guessed]
1455  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1456_ACEOF
1457fi
1458
1459if test -n "$ac_init_help"; then
1460  case $ac_init_help in
1461     short | recursive ) echo "Configuration of xf86-input-elographics 1.4.3:";;
1462   esac
1463  cat <<\_ACEOF
1464
1465Optional Features:
1466  --disable-option-checking  ignore unrecognized --enable/--with options
1467  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469  --enable-silent-rules   less verbose build output (undo: "make V=1")
1470  --disable-silent-rules  verbose build output (undo: "make V=0")
1471  --enable-dependency-tracking
1472                          do not reject slow dependency extractors
1473  --disable-dependency-tracking
1474                          speeds up one-time build
1475  --disable-selective-werror
1476                          Turn off selective compiler errors. (default:
1477                          enabled)
1478  --enable-strict-compilation
1479                          Enable all warnings from compiler and make them
1480                          errors (default: disabled)
1481  --enable-static[=PKGS]  build static libraries [default=no]
1482  --enable-shared[=PKGS]  build shared libraries [default=yes]
1483  --enable-fast-install[=PKGS]
1484                          optimize for fast installation [default=yes]
1485  --disable-libtool-lock  avoid locking (might break parallel builds)
1486
1487Optional Packages:
1488  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1489  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1490  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1491                          both]
1492  --with-aix-soname=aix|svr4|both
1493                          shared library versioning (aka "SONAME") variant to
1494                          provide on AIX, [default=aix].
1495  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1496  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1497                          compiler's sysroot if not specified).
1498  --with-xorg-module-dir=DIR
1499                          Default xorg module directory
1500                          [[default=$libdir/xorg/modules]]
1501
1502Some influential environment variables:
1503  CC          C compiler command
1504  CFLAGS      C compiler flags
1505  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506              nonstandard directory <lib dir>
1507  LIBS        libraries to pass to the linker, e.g. -l<library>
1508  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1509              you have headers in a nonstandard directory <include dir>
1510  PKG_CONFIG  path to pkg-config utility
1511  PKG_CONFIG_PATH
1512              directories to add to pkg-config's search path
1513  PKG_CONFIG_LIBDIR
1514              path overriding pkg-config's built-in search path
1515  LT_SYS_LIBRARY_PATH
1516              User-defined run-time library search path.
1517  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1518  XORG_LIBS   linker flags for XORG, overriding pkg-config
1519
1520Use these variables to override the choices made by `configure' or to help
1521it to find libraries and programs with nonstandard names/locations.
1522
1523Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues>.
1524_ACEOF
1525ac_status=$?
1526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529  # If there are subdirs, report their specific --help.
1530  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531    test -d "$ac_dir" ||
1532      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533      continue
1534    ac_builddir=.
1535
1536case "$ac_dir" in
1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538*)
1539  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1540  # A ".." for each directory in $ac_dir_suffix.
1541  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542  case $ac_top_builddir_sub in
1543  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545  esac ;;
1546esac
1547ac_abs_top_builddir=$ac_pwd
1548ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549# for backward compatibility:
1550ac_top_builddir=$ac_top_build_prefix
1551
1552case $srcdir in
1553  .)  # We are building in place.
1554    ac_srcdir=.
1555    ac_top_srcdir=$ac_top_builddir_sub
1556    ac_abs_top_srcdir=$ac_pwd ;;
1557  [\\/]* | ?:[\\/]* )  # Absolute name.
1558    ac_srcdir=$srcdir$ac_dir_suffix;
1559    ac_top_srcdir=$srcdir
1560    ac_abs_top_srcdir=$srcdir ;;
1561  *) # Relative name.
1562    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563    ac_top_srcdir=$ac_top_build_prefix$srcdir
1564    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565esac
1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568    cd "$ac_dir" || { ac_status=$?; continue; }
1569    # Check for configure.gnu first; this name is used for a wrapper for
1570    # Metaconfig's "Configure" on case-insensitive file systems.
1571    if test -f "$ac_srcdir/configure.gnu"; then
1572      echo &&
1573      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574    elif test -f "$ac_srcdir/configure"; then
1575      echo &&
1576      $SHELL "$ac_srcdir/configure" --help=recursive
1577    else
1578      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579    fi || ac_status=$?
1580    cd "$ac_pwd" || { ac_status=$?; break; }
1581  done
1582fi
1583
1584test -n "$ac_init_help" && exit $ac_status
1585if $ac_init_version; then
1586  cat <<\_ACEOF
1587xf86-input-elographics configure 1.4.3
1588generated by GNU Autoconf 2.71
1589
1590Copyright (C) 2021 Free Software Foundation, Inc.
1591This configure script is free software; the Free Software Foundation
1592gives unlimited permission to copy, distribute and modify it.
1593_ACEOF
1594  exit
1595fi
1596
1597## ------------------------ ##
1598## Autoconf initialization. ##
1599## ------------------------ ##
1600
1601# ac_fn_c_try_compile LINENO
1602# --------------------------
1603# Try to compile conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_compile ()
1605{
1606  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607  rm -f conftest.$ac_objext conftest.beam
1608  if { { ac_try="$ac_compile"
1609case "(($ac_try" in
1610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611  *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614printf "%s\n" "$ac_try_echo"; } >&5
1615  (eval "$ac_compile") 2>conftest.err
1616  ac_status=$?
1617  if test -s conftest.err; then
1618    grep -v '^ *+' conftest.err >conftest.er1
1619    cat conftest.er1 >&5
1620    mv -f conftest.er1 conftest.err
1621  fi
1622  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623  test $ac_status = 0; } && {
1624	 test -z "$ac_c_werror_flag" ||
1625	 test ! -s conftest.err
1626       } && test -s conftest.$ac_objext
1627then :
1628  ac_retval=0
1629else $as_nop
1630  printf "%s\n" "$as_me: failed program was:" >&5
1631sed 's/^/| /' conftest.$ac_ext >&5
1632
1633	ac_retval=1
1634fi
1635  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636  as_fn_set_status $ac_retval
1637
1638} # ac_fn_c_try_compile
1639
1640# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1641# ------------------------------------------------------------------
1642# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1643# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1644ac_fn_check_decl ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  as_decl_name=`echo $2|sed 's/ *(.*//'`
1648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1649printf %s "checking whether $as_decl_name is declared... " >&6; }
1650if eval test \${$3+y}
1651then :
1652  printf %s "(cached) " >&6
1653else $as_nop
1654  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1655  eval ac_save_FLAGS=\$$6
1656  as_fn_append $6 " $5"
1657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659$4
1660int
1661main (void)
1662{
1663#ifndef $as_decl_name
1664#ifdef __cplusplus
1665  (void) $as_decl_use;
1666#else
1667  (void) $as_decl_name;
1668#endif
1669#endif
1670
1671  ;
1672  return 0;
1673}
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"
1676then :
1677  eval "$3=yes"
1678else $as_nop
1679  eval "$3=no"
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1682  eval $6=\$ac_save_FLAGS
1683
1684fi
1685eval ac_res=\$$3
1686	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687printf "%s\n" "$ac_res" >&6; }
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690} # ac_fn_check_decl
1691
1692# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693# -------------------------------------------------------
1694# Tests whether HEADER exists and can be compiled using the include files in
1695# INCLUDES, setting the cache variable VAR accordingly.
1696ac_fn_c_check_header_compile ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700printf %s "checking for $2... " >&6; }
1701if eval test \${$3+y}
1702then :
1703  printf %s "(cached) " >&6
1704else $as_nop
1705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706/* end confdefs.h.  */
1707$4
1708#include <$2>
1709_ACEOF
1710if ac_fn_c_try_compile "$LINENO"
1711then :
1712  eval "$3=yes"
1713else $as_nop
1714  eval "$3=no"
1715fi
1716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1717fi
1718eval ac_res=\$$3
1719	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720printf "%s\n" "$ac_res" >&6; }
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722
1723} # ac_fn_c_check_header_compile
1724
1725# ac_fn_c_try_link LINENO
1726# -----------------------
1727# Try to link conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_link ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1732  if { { ac_try="$ac_link"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738printf "%s\n" "$ac_try_echo"; } >&5
1739  (eval "$ac_link") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest$ac_exeext && {
1751	 test "$cross_compiling" = yes ||
1752	 test -x conftest$ac_exeext
1753       }
1754then :
1755  ac_retval=0
1756else $as_nop
1757  printf "%s\n" "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760	ac_retval=1
1761fi
1762  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764  # interfere with the next link command; also delete a directory that is
1765  # left behind by Apple's compiler.  We do this before executing the actions.
1766  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768  as_fn_set_status $ac_retval
1769
1770} # ac_fn_c_try_link
1771
1772# ac_fn_c_check_func LINENO FUNC VAR
1773# ----------------------------------
1774# Tests whether FUNC exists, setting the cache variable VAR accordingly
1775ac_fn_c_check_func ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779printf %s "checking for $2... " >&6; }
1780if eval test \${$3+y}
1781then :
1782  printf %s "(cached) " >&6
1783else $as_nop
1784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1788#define $2 innocuous_$2
1789
1790/* System header to define __stub macros and hopefully few prototypes,
1791   which can conflict with char $2 (); below.  */
1792
1793#include <limits.h>
1794#undef $2
1795
1796/* Override any GCC internal prototype to avoid an error.
1797   Use char because int might match the return type of a GCC
1798   builtin and then its argument prototype would still apply.  */
1799#ifdef __cplusplus
1800extern "C"
1801#endif
1802char $2 ();
1803/* The GNU C library defines this for functions which it implements
1804    to always fail with ENOSYS.  Some functions are actually named
1805    something starting with __ and the normal name is an alias.  */
1806#if defined __stub_$2 || defined __stub___$2
1807choke me
1808#endif
1809
1810int
1811main (void)
1812{
1813return $2 ();
1814  ;
1815  return 0;
1816}
1817_ACEOF
1818if ac_fn_c_try_link "$LINENO"
1819then :
1820  eval "$3=yes"
1821else $as_nop
1822  eval "$3=no"
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.beam \
1825    conftest$ac_exeext conftest.$ac_ext
1826fi
1827eval ac_res=\$$3
1828	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829printf "%s\n" "$ac_res" >&6; }
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832} # ac_fn_c_check_func
1833ac_configure_args_raw=
1834for ac_arg
1835do
1836  case $ac_arg in
1837  *\'*)
1838    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1839  esac
1840  as_fn_append ac_configure_args_raw " '$ac_arg'"
1841done
1842
1843case $ac_configure_args_raw in
1844  *$as_nl*)
1845    ac_safe_unquote= ;;
1846  *)
1847    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1848    ac_unsafe_a="$ac_unsafe_z#~"
1849    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1850    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1851esac
1852
1853cat >config.log <<_ACEOF
1854This file contains any messages produced by compilers while
1855running configure, to aid debugging if configure makes a mistake.
1856
1857It was created by xf86-input-elographics $as_me 1.4.3, which was
1858generated by GNU Autoconf 2.71.  Invocation command line was
1859
1860  $ $0$ac_configure_args_raw
1861
1862_ACEOF
1863exec 5>>config.log
1864{
1865cat <<_ASUNAME
1866## --------- ##
1867## Platform. ##
1868## --------- ##
1869
1870hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874uname -v = `(uname -v) 2>/dev/null || echo unknown`
1875
1876/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1878
1879/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1880/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1881/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1883/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1884/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1885/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1886
1887_ASUNAME
1888
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  case $as_dir in #(((
1894    '') as_dir=./ ;;
1895    */) ;;
1896    *) as_dir=$as_dir/ ;;
1897  esac
1898    printf "%s\n" "PATH: $as_dir"
1899  done
1900IFS=$as_save_IFS
1901
1902} >&5
1903
1904cat >&5 <<_ACEOF
1905
1906
1907## ----------- ##
1908## Core tests. ##
1909## ----------- ##
1910
1911_ACEOF
1912
1913
1914# Keep a trace of the command line.
1915# Strip out --no-create and --no-recursion so they do not pile up.
1916# Strip out --silent because we don't want to record it for future runs.
1917# Also quote any args containing shell meta-characters.
1918# Make two passes to allow for proper duplicate-argument suppression.
1919ac_configure_args=
1920ac_configure_args0=
1921ac_configure_args1=
1922ac_must_keep_next=false
1923for ac_pass in 1 2
1924do
1925  for ac_arg
1926  do
1927    case $ac_arg in
1928    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1929    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1930    | -silent | --silent | --silen | --sile | --sil)
1931      continue ;;
1932    *\'*)
1933      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1934    esac
1935    case $ac_pass in
1936    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1937    2)
1938      as_fn_append ac_configure_args1 " '$ac_arg'"
1939      if test $ac_must_keep_next = true; then
1940	ac_must_keep_next=false # Got value, back to normal.
1941      else
1942	case $ac_arg in
1943	  *=* | --config-cache | -C | -disable-* | --disable-* \
1944	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1945	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1946	  | -with-* | --with-* | -without-* | --without-* | --x)
1947	    case "$ac_configure_args0 " in
1948	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1949	    esac
1950	    ;;
1951	  -* ) ac_must_keep_next=true ;;
1952	esac
1953      fi
1954      as_fn_append ac_configure_args " '$ac_arg'"
1955      ;;
1956    esac
1957  done
1958done
1959{ ac_configure_args0=; unset ac_configure_args0;}
1960{ ac_configure_args1=; unset ac_configure_args1;}
1961
1962# When interrupted or exit'd, cleanup temporary files, and complete
1963# config.log.  We remove comments because anyway the quotes in there
1964# would cause problems or look ugly.
1965# WARNING: Use '\'' to represent an apostrophe within the trap.
1966# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1967trap 'exit_status=$?
1968  # Sanitize IFS.
1969  IFS=" ""	$as_nl"
1970  # Save into config.log some information that might help in debugging.
1971  {
1972    echo
1973
1974    printf "%s\n" "## ---------------- ##
1975## Cache variables. ##
1976## ---------------- ##"
1977    echo
1978    # The following way of writing the cache mishandles newlines in values,
1979(
1980  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1981    eval ac_val=\$$ac_var
1982    case $ac_val in #(
1983    *${as_nl}*)
1984      case $ac_var in #(
1985      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1986printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1987      esac
1988      case $ac_var in #(
1989      _ | IFS | as_nl) ;; #(
1990      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1991      *) { eval $ac_var=; unset $ac_var;} ;;
1992      esac ;;
1993    esac
1994  done
1995  (set) 2>&1 |
1996    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1997    *${as_nl}ac_space=\ *)
1998      sed -n \
1999	"s/'\''/'\''\\\\'\'''\''/g;
2000	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2001      ;; #(
2002    *)
2003      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004      ;;
2005    esac |
2006    sort
2007)
2008    echo
2009
2010    printf "%s\n" "## ----------------- ##
2011## Output variables. ##
2012## ----------------- ##"
2013    echo
2014    for ac_var in $ac_subst_vars
2015    do
2016      eval ac_val=\$$ac_var
2017      case $ac_val in
2018      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2019      esac
2020      printf "%s\n" "$ac_var='\''$ac_val'\''"
2021    done | sort
2022    echo
2023
2024    if test -n "$ac_subst_files"; then
2025      printf "%s\n" "## ------------------- ##
2026## File substitutions. ##
2027## ------------------- ##"
2028      echo
2029      for ac_var in $ac_subst_files
2030      do
2031	eval ac_val=\$$ac_var
2032	case $ac_val in
2033	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034	esac
2035	printf "%s\n" "$ac_var='\''$ac_val'\''"
2036      done | sort
2037      echo
2038    fi
2039
2040    if test -s confdefs.h; then
2041      printf "%s\n" "## ----------- ##
2042## confdefs.h. ##
2043## ----------- ##"
2044      echo
2045      cat confdefs.h
2046      echo
2047    fi
2048    test "$ac_signal" != 0 &&
2049      printf "%s\n" "$as_me: caught signal $ac_signal"
2050    printf "%s\n" "$as_me: exit $exit_status"
2051  } >&5
2052  rm -f core *.core core.conftest.* &&
2053    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054    exit $exit_status
2055' 0
2056for ac_signal in 1 2 13 15; do
2057  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2058done
2059ac_signal=0
2060
2061# confdefs.h avoids OS command line length limits that DEFS can exceed.
2062rm -f -r conftest* confdefs.h
2063
2064printf "%s\n" "/* confdefs.h */" > confdefs.h
2065
2066# Predefined preprocessor variables.
2067
2068printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2069
2070printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2071
2072printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2073
2074printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2075
2076printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2077
2078printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2079
2080
2081# Let the site file select an alternate cache file if it wants to.
2082# Prefer an explicitly selected file to automatically selected ones.
2083if test -n "$CONFIG_SITE"; then
2084  ac_site_files="$CONFIG_SITE"
2085elif test "x$prefix" != xNONE; then
2086  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2087else
2088  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2089fi
2090
2091for ac_site_file in $ac_site_files
2092do
2093  case $ac_site_file in #(
2094  */*) :
2095     ;; #(
2096  *) :
2097    ac_site_file=./$ac_site_file ;;
2098esac
2099  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2100    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2101printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2102    sed 's/^/| /' "$ac_site_file" >&5
2103    . "$ac_site_file" \
2104      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2105printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2106as_fn_error $? "failed to load site script $ac_site_file
2107See \`config.log' for more details" "$LINENO" 5; }
2108  fi
2109done
2110
2111if test -r "$cache_file"; then
2112  # Some versions of bash will fail to source /dev/null (special files
2113  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2114  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2115    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2116printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2117    case $cache_file in
2118      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2119      *)                      . "./$cache_file";;
2120    esac
2121  fi
2122else
2123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2124printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2125  >$cache_file
2126fi
2127
2128# Test code for whether the C compiler supports C89 (global declarations)
2129ac_c_conftest_c89_globals='
2130/* Does the compiler advertise C89 conformance?
2131   Do not test the value of __STDC__, because some compilers set it to 0
2132   while being otherwise adequately conformant. */
2133#if !defined __STDC__
2134# error "Compiler does not advertise C89 conformance"
2135#endif
2136
2137#include <stddef.h>
2138#include <stdarg.h>
2139struct stat;
2140/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2141struct buf { int x; };
2142struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2143static char *e (p, i)
2144     char **p;
2145     int i;
2146{
2147  return p[i];
2148}
2149static char *f (char * (*g) (char **, int), char **p, ...)
2150{
2151  char *s;
2152  va_list v;
2153  va_start (v,p);
2154  s = g (p, va_arg (v,int));
2155  va_end (v);
2156  return s;
2157}
2158
2159/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2160   function prototypes and stuff, but not \xHH hex character constants.
2161   These do not provoke an error unfortunately, instead are silently treated
2162   as an "x".  The following induces an error, until -std is added to get
2163   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2164   array size at least.  It is necessary to write \x00 == 0 to get something
2165   that is true only with -std.  */
2166int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2167
2168/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2169   inside strings and character constants.  */
2170#define FOO(x) '\''x'\''
2171int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2172
2173int test (int i, double x);
2174struct s1 {int (*f) (int a);};
2175struct s2 {int (*f) (double a);};
2176int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2177               int, int);'
2178
2179# Test code for whether the C compiler supports C89 (body of main).
2180ac_c_conftest_c89_main='
2181ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2182'
2183
2184# Test code for whether the C compiler supports C99 (global declarations)
2185ac_c_conftest_c99_globals='
2186// Does the compiler advertise C99 conformance?
2187#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2188# error "Compiler does not advertise C99 conformance"
2189#endif
2190
2191#include <stdbool.h>
2192extern int puts (const char *);
2193extern int printf (const char *, ...);
2194extern int dprintf (int, const char *, ...);
2195extern void *malloc (size_t);
2196
2197// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2198// dprintf is used instead of fprintf to avoid needing to declare
2199// FILE and stderr.
2200#define debug(...) dprintf (2, __VA_ARGS__)
2201#define showlist(...) puts (#__VA_ARGS__)
2202#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2203static void
2204test_varargs_macros (void)
2205{
2206  int x = 1234;
2207  int y = 5678;
2208  debug ("Flag");
2209  debug ("X = %d\n", x);
2210  showlist (The first, second, and third items.);
2211  report (x>y, "x is %d but y is %d", x, y);
2212}
2213
2214// Check long long types.
2215#define BIG64 18446744073709551615ull
2216#define BIG32 4294967295ul
2217#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2218#if !BIG_OK
2219  #error "your preprocessor is broken"
2220#endif
2221#if BIG_OK
2222#else
2223  #error "your preprocessor is broken"
2224#endif
2225static long long int bignum = -9223372036854775807LL;
2226static unsigned long long int ubignum = BIG64;
2227
2228struct incomplete_array
2229{
2230  int datasize;
2231  double data[];
2232};
2233
2234struct named_init {
2235  int number;
2236  const wchar_t *name;
2237  double average;
2238};
2239
2240typedef const char *ccp;
2241
2242static inline int
2243test_restrict (ccp restrict text)
2244{
2245  // See if C++-style comments work.
2246  // Iterate through items via the restricted pointer.
2247  // Also check for declarations in for loops.
2248  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2249    continue;
2250  return 0;
2251}
2252
2253// Check varargs and va_copy.
2254static bool
2255test_varargs (const char *format, ...)
2256{
2257  va_list args;
2258  va_start (args, format);
2259  va_list args_copy;
2260  va_copy (args_copy, args);
2261
2262  const char *str = "";
2263  int number = 0;
2264  float fnumber = 0;
2265
2266  while (*format)
2267    {
2268      switch (*format++)
2269	{
2270	case '\''s'\'': // string
2271	  str = va_arg (args_copy, const char *);
2272	  break;
2273	case '\''d'\'': // int
2274	  number = va_arg (args_copy, int);
2275	  break;
2276	case '\''f'\'': // float
2277	  fnumber = va_arg (args_copy, double);
2278	  break;
2279	default:
2280	  break;
2281	}
2282    }
2283  va_end (args_copy);
2284  va_end (args);
2285
2286  return *str && number && fnumber;
2287}
2288'
2289
2290# Test code for whether the C compiler supports C99 (body of main).
2291ac_c_conftest_c99_main='
2292  // Check bool.
2293  _Bool success = false;
2294  success |= (argc != 0);
2295
2296  // Check restrict.
2297  if (test_restrict ("String literal") == 0)
2298    success = true;
2299  char *restrict newvar = "Another string";
2300
2301  // Check varargs.
2302  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2303  test_varargs_macros ();
2304
2305  // Check flexible array members.
2306  struct incomplete_array *ia =
2307    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2308  ia->datasize = 10;
2309  for (int i = 0; i < ia->datasize; ++i)
2310    ia->data[i] = i * 1.234;
2311
2312  // Check named initializers.
2313  struct named_init ni = {
2314    .number = 34,
2315    .name = L"Test wide string",
2316    .average = 543.34343,
2317  };
2318
2319  ni.number = 58;
2320
2321  int dynamic_array[ni.number];
2322  dynamic_array[0] = argv[0][0];
2323  dynamic_array[ni.number - 1] = 543;
2324
2325  // work around unused variable warnings
2326  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2327	 || dynamic_array[ni.number - 1] != 543);
2328'
2329
2330# Test code for whether the C compiler supports C11 (global declarations)
2331ac_c_conftest_c11_globals='
2332// Does the compiler advertise C11 conformance?
2333#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2334# error "Compiler does not advertise C11 conformance"
2335#endif
2336
2337// Check _Alignas.
2338char _Alignas (double) aligned_as_double;
2339char _Alignas (0) no_special_alignment;
2340extern char aligned_as_int;
2341char _Alignas (0) _Alignas (int) aligned_as_int;
2342
2343// Check _Alignof.
2344enum
2345{
2346  int_alignment = _Alignof (int),
2347  int_array_alignment = _Alignof (int[100]),
2348  char_alignment = _Alignof (char)
2349};
2350_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2351
2352// Check _Noreturn.
2353int _Noreturn does_not_return (void) { for (;;) continue; }
2354
2355// Check _Static_assert.
2356struct test_static_assert
2357{
2358  int x;
2359  _Static_assert (sizeof (int) <= sizeof (long int),
2360                  "_Static_assert does not work in struct");
2361  long int y;
2362};
2363
2364// Check UTF-8 literals.
2365#define u8 syntax error!
2366char const utf8_literal[] = u8"happens to be ASCII" "another string";
2367
2368// Check duplicate typedefs.
2369typedef long *long_ptr;
2370typedef long int *long_ptr;
2371typedef long_ptr long_ptr;
2372
2373// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2374struct anonymous
2375{
2376  union {
2377    struct { int i; int j; };
2378    struct { int k; long int l; } w;
2379  };
2380  int m;
2381} v1;
2382'
2383
2384# Test code for whether the C compiler supports C11 (body of main).
2385ac_c_conftest_c11_main='
2386  _Static_assert ((offsetof (struct anonymous, i)
2387		   == offsetof (struct anonymous, w.k)),
2388		  "Anonymous union alignment botch");
2389  v1.i = 2;
2390  v1.w.k = 5;
2391  ok |= v1.i != 5;
2392'
2393
2394# Test code for whether the C compiler supports C11 (complete).
2395ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2396${ac_c_conftest_c99_globals}
2397${ac_c_conftest_c11_globals}
2398
2399int
2400main (int argc, char **argv)
2401{
2402  int ok = 0;
2403  ${ac_c_conftest_c89_main}
2404  ${ac_c_conftest_c99_main}
2405  ${ac_c_conftest_c11_main}
2406  return ok;
2407}
2408"
2409
2410# Test code for whether the C compiler supports C99 (complete).
2411ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2412${ac_c_conftest_c99_globals}
2413
2414int
2415main (int argc, char **argv)
2416{
2417  int ok = 0;
2418  ${ac_c_conftest_c89_main}
2419  ${ac_c_conftest_c99_main}
2420  return ok;
2421}
2422"
2423
2424# Test code for whether the C compiler supports C89 (complete).
2425ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2426
2427int
2428main (int argc, char **argv)
2429{
2430  int ok = 0;
2431  ${ac_c_conftest_c89_main}
2432  return ok;
2433}
2434"
2435
2436as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2437as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2438as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2439as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2440as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2441as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2442as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2443as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2444as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2445
2446# Auxiliary files required by this configure script.
2447ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2448
2449# Locations in which to look for auxiliary files.
2450ac_aux_dir_candidates="${srcdir}/."
2451
2452# Search for a directory containing all of the required auxiliary files,
2453# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2454# If we don't find one directory that contains all the files we need,
2455# we report the set of missing files from the *first* directory in
2456# $ac_aux_dir_candidates and give up.
2457ac_missing_aux_files=""
2458ac_first_candidate=:
2459printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461as_found=false
2462for as_dir in $ac_aux_dir_candidates
2463do
2464  IFS=$as_save_IFS
2465  case $as_dir in #(((
2466    '') as_dir=./ ;;
2467    */) ;;
2468    *) as_dir=$as_dir/ ;;
2469  esac
2470  as_found=:
2471
2472  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2473  ac_aux_dir_found=yes
2474  ac_install_sh=
2475  for ac_aux in $ac_aux_files
2476  do
2477    # As a special case, if "install-sh" is required, that requirement
2478    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2479    # and $ac_install_sh is set appropriately for whichever one is found.
2480    if test x"$ac_aux" = x"install-sh"
2481    then
2482      if test -f "${as_dir}install-sh"; then
2483        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2484        ac_install_sh="${as_dir}install-sh -c"
2485      elif test -f "${as_dir}install.sh"; then
2486        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2487        ac_install_sh="${as_dir}install.sh -c"
2488      elif test -f "${as_dir}shtool"; then
2489        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2490        ac_install_sh="${as_dir}shtool install -c"
2491      else
2492        ac_aux_dir_found=no
2493        if $ac_first_candidate; then
2494          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2495        else
2496          break
2497        fi
2498      fi
2499    else
2500      if test -f "${as_dir}${ac_aux}"; then
2501        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2502      else
2503        ac_aux_dir_found=no
2504        if $ac_first_candidate; then
2505          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2506        else
2507          break
2508        fi
2509      fi
2510    fi
2511  done
2512  if test "$ac_aux_dir_found" = yes; then
2513    ac_aux_dir="$as_dir"
2514    break
2515  fi
2516  ac_first_candidate=false
2517
2518  as_found=false
2519done
2520IFS=$as_save_IFS
2521if $as_found
2522then :
2523
2524else $as_nop
2525  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2526fi
2527
2528
2529# These three variables are undocumented and unsupported,
2530# and are intended to be withdrawn in a future Autoconf release.
2531# They can cause serious problems if a builder's source tree is in a directory
2532# whose full name contains unusual characters.
2533if test -f "${ac_aux_dir}config.guess"; then
2534  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2535fi
2536if test -f "${ac_aux_dir}config.sub"; then
2537  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2538fi
2539if test -f "$ac_aux_dir/configure"; then
2540  ac_configure="$SHELL ${ac_aux_dir}configure"
2541fi
2542
2543# Check that the precious variables saved in the cache have kept the same
2544# value.
2545ac_cache_corrupted=false
2546for ac_var in $ac_precious_vars; do
2547  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2548  eval ac_new_set=\$ac_env_${ac_var}_set
2549  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2550  eval ac_new_val=\$ac_env_${ac_var}_value
2551  case $ac_old_set,$ac_new_set in
2552    set,)
2553      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2554printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2555      ac_cache_corrupted=: ;;
2556    ,set)
2557      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2558printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2559      ac_cache_corrupted=: ;;
2560    ,);;
2561    *)
2562      if test "x$ac_old_val" != "x$ac_new_val"; then
2563	# differences in whitespace do not lead to failure.
2564	ac_old_val_w=`echo x $ac_old_val`
2565	ac_new_val_w=`echo x $ac_new_val`
2566	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2567	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2568printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569	  ac_cache_corrupted=:
2570	else
2571	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2572printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2573	  eval $ac_var=\$ac_old_val
2574	fi
2575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2576printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2578printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2579      fi;;
2580  esac
2581  # Pass precious variables to config.status.
2582  if test "$ac_new_set" = set; then
2583    case $ac_new_val in
2584    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2585    *) ac_arg=$ac_var=$ac_new_val ;;
2586    esac
2587    case " $ac_configure_args " in
2588      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2589      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2590    esac
2591  fi
2592done
2593if $ac_cache_corrupted; then
2594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2597printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2598  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2599	    and start over" "$LINENO" 5
2600fi
2601## -------------------- ##
2602## Main body of script. ##
2603## -------------------- ##
2604
2605ac_ext=c
2606ac_cpp='$CPP $CPPFLAGS'
2607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609ac_compiler_gnu=$ac_cv_c_compiler_gnu
2610
2611
2612
2613
2614ac_config_headers="$ac_config_headers config.h"
2615
2616
2617# Initialize Automake
2618am__api_version='1.16'
2619
2620
2621
2622  # Find a good install program.  We prefer a C program (faster),
2623# so one script is as good as another.  But avoid the broken or
2624# incompatible versions:
2625# SysV /etc/install, /usr/sbin/install
2626# SunOS /usr/etc/install
2627# IRIX /sbin/install
2628# AIX /bin/install
2629# AmigaOS /C/install, which installs bootblocks on floppy discs
2630# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633# OS/2's system install, which has a completely different semantic
2634# ./install, which can be erroneously created by make from ./install.sh.
2635# Reject install programs that cannot install multiple files.
2636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2637printf %s "checking for a BSD-compatible install... " >&6; }
2638if test -z "$INSTALL"; then
2639if test ${ac_cv_path_install+y}
2640then :
2641  printf %s "(cached) " >&6
2642else $as_nop
2643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646  IFS=$as_save_IFS
2647  case $as_dir in #(((
2648    '') as_dir=./ ;;
2649    */) ;;
2650    *) as_dir=$as_dir/ ;;
2651  esac
2652    # Account for fact that we put trailing slashes in our PATH walk.
2653case $as_dir in #((
2654  ./ | /[cC]/* | \
2655  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2656  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2657  /usr/ucb/* ) ;;
2658  *)
2659    # OSF1 and SCO ODT 3.0 have their own names for install.
2660    # Don't use installbsd from OSF since it installs stuff as root
2661    # by default.
2662    for ac_prog in ginstall scoinst install; do
2663      for ac_exec_ext in '' $ac_executable_extensions; do
2664	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2665	  if test $ac_prog = install &&
2666	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667	    # AIX install.  It has an incompatible calling convention.
2668	    :
2669	  elif test $ac_prog = install &&
2670	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2671	    # program-specific install script used by HP pwplus--don't use.
2672	    :
2673	  else
2674	    rm -rf conftest.one conftest.two conftest.dir
2675	    echo one > conftest.one
2676	    echo two > conftest.two
2677	    mkdir conftest.dir
2678	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2679	      test -s conftest.one && test -s conftest.two &&
2680	      test -s conftest.dir/conftest.one &&
2681	      test -s conftest.dir/conftest.two
2682	    then
2683	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2684	      break 3
2685	    fi
2686	  fi
2687	fi
2688      done
2689    done
2690    ;;
2691esac
2692
2693  done
2694IFS=$as_save_IFS
2695
2696rm -rf conftest.one conftest.two conftest.dir
2697
2698fi
2699  if test ${ac_cv_path_install+y}; then
2700    INSTALL=$ac_cv_path_install
2701  else
2702    # As a last resort, use the slow shell script.  Don't cache a
2703    # value for INSTALL within a source directory, because that will
2704    # break other packages using the cache if that directory is
2705    # removed, or if the value is a relative name.
2706    INSTALL=$ac_install_sh
2707  fi
2708fi
2709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2710printf "%s\n" "$INSTALL" >&6; }
2711
2712# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2713# It thinks the first close brace ends the variable substitution.
2714test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2715
2716test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2717
2718test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2719
2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2721printf %s "checking whether build environment is sane... " >&6; }
2722# Reject unsafe characters in $srcdir or the absolute working directory
2723# name.  Accept space and tab only in the latter.
2724am_lf='
2725'
2726case `pwd` in
2727  *[\\\"\#\$\&\'\`$am_lf]*)
2728    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2729esac
2730case $srcdir in
2731  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2732    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2733esac
2734
2735# Do 'set' in a subshell so we don't clobber the current shell's
2736# arguments.  Must try -L first in case configure is actually a
2737# symlink; some systems play weird games with the mod time of symlinks
2738# (eg FreeBSD returns the mod time of the symlink's containing
2739# directory).
2740if (
2741   am_has_slept=no
2742   for am_try in 1 2; do
2743     echo "timestamp, slept: $am_has_slept" > conftest.file
2744     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2745     if test "$*" = "X"; then
2746	# -L didn't work.
2747	set X `ls -t "$srcdir/configure" conftest.file`
2748     fi
2749     if test "$*" != "X $srcdir/configure conftest.file" \
2750	&& test "$*" != "X conftest.file $srcdir/configure"; then
2751
2752	# If neither matched, then we have a broken ls.  This can happen
2753	# if, for instance, CONFIG_SHELL is bash and it inherits a
2754	# broken ls alias from the environment.  This has actually
2755	# happened.  Such a system could not be considered "sane".
2756	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2757  alias in your environment" "$LINENO" 5
2758     fi
2759     if test "$2" = conftest.file || test $am_try -eq 2; then
2760       break
2761     fi
2762     # Just in case.
2763     sleep 1
2764     am_has_slept=yes
2765   done
2766   test "$2" = conftest.file
2767   )
2768then
2769   # Ok.
2770   :
2771else
2772   as_fn_error $? "newly created file is older than distributed files!
2773Check your system clock" "$LINENO" 5
2774fi
2775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776printf "%s\n" "yes" >&6; }
2777# If we didn't sleep, we still need to ensure time stamps of config.status and
2778# generated files are strictly newer.
2779am_sleep_pid=
2780if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2781  ( sleep 1 ) &
2782  am_sleep_pid=$!
2783fi
2784
2785rm -f conftest.file
2786
2787test "$program_prefix" != NONE &&
2788  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2789# Use a double $ so make ignores it.
2790test "$program_suffix" != NONE &&
2791  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2792# Double any \ or $.
2793# By default was `s,x,x', remove it if useless.
2794ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2795program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2796
2797
2798# Expand $ac_aux_dir to an absolute path.
2799am_aux_dir=`cd "$ac_aux_dir" && pwd`
2800
2801
2802  if test x"${MISSING+set}" != xset; then
2803  MISSING="\${SHELL} '$am_aux_dir/missing'"
2804fi
2805# Use eval to expand $SHELL
2806if eval "$MISSING --is-lightweight"; then
2807  am_missing_run="$MISSING "
2808else
2809  am_missing_run=
2810  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2811printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2812fi
2813
2814if test x"${install_sh+set}" != xset; then
2815  case $am_aux_dir in
2816  *\ * | *\	*)
2817    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2818  *)
2819    install_sh="\${SHELL} $am_aux_dir/install-sh"
2820  esac
2821fi
2822
2823# Installed binaries are usually stripped using 'strip' when the user
2824# run "make install-strip".  However 'strip' might not be the right
2825# tool to use in cross-compilation environments, therefore Automake
2826# will honor the 'STRIP' environment variable to overrule this program.
2827if test "$cross_compiling" != no; then
2828  if test -n "$ac_tool_prefix"; then
2829  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2830set dummy ${ac_tool_prefix}strip; ac_word=$2
2831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832printf %s "checking for $ac_word... " >&6; }
2833if test ${ac_cv_prog_STRIP+y}
2834then :
2835  printf %s "(cached) " >&6
2836else $as_nop
2837  if test -n "$STRIP"; then
2838  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843  IFS=$as_save_IFS
2844  case $as_dir in #(((
2845    '') as_dir=./ ;;
2846    */) ;;
2847    *) as_dir=$as_dir/ ;;
2848  esac
2849    for ac_exec_ext in '' $ac_executable_extensions; do
2850  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2851    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2852    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853    break 2
2854  fi
2855done
2856  done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861STRIP=$ac_cv_prog_STRIP
2862if test -n "$STRIP"; then
2863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2864printf "%s\n" "$STRIP" >&6; }
2865else
2866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867printf "%s\n" "no" >&6; }
2868fi
2869
2870
2871fi
2872if test -z "$ac_cv_prog_STRIP"; then
2873  ac_ct_STRIP=$STRIP
2874  # Extract the first word of "strip", so it can be a program name with args.
2875set dummy strip; ac_word=$2
2876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877printf %s "checking for $ac_word... " >&6; }
2878if test ${ac_cv_prog_ac_ct_STRIP+y}
2879then :
2880  printf %s "(cached) " >&6
2881else $as_nop
2882  if test -n "$ac_ct_STRIP"; then
2883  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2884else
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888  IFS=$as_save_IFS
2889  case $as_dir in #(((
2890    '') as_dir=./ ;;
2891    */) ;;
2892    *) as_dir=$as_dir/ ;;
2893  esac
2894    for ac_exec_ext in '' $ac_executable_extensions; do
2895  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2896    ac_cv_prog_ac_ct_STRIP="strip"
2897    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901  done
2902IFS=$as_save_IFS
2903
2904fi
2905fi
2906ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2907if test -n "$ac_ct_STRIP"; then
2908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2909printf "%s\n" "$ac_ct_STRIP" >&6; }
2910else
2911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912printf "%s\n" "no" >&6; }
2913fi
2914
2915  if test "x$ac_ct_STRIP" = x; then
2916    STRIP=":"
2917  else
2918    case $cross_compiling:$ac_tool_warned in
2919yes:)
2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922ac_tool_warned=yes ;;
2923esac
2924    STRIP=$ac_ct_STRIP
2925  fi
2926else
2927  STRIP="$ac_cv_prog_STRIP"
2928fi
2929
2930fi
2931INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2932
2933
2934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2935printf %s "checking for a race-free mkdir -p... " >&6; }
2936if test -z "$MKDIR_P"; then
2937  if test ${ac_cv_path_mkdir+y}
2938then :
2939  printf %s "(cached) " >&6
2940else $as_nop
2941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2943do
2944  IFS=$as_save_IFS
2945  case $as_dir in #(((
2946    '') as_dir=./ ;;
2947    */) ;;
2948    *) as_dir=$as_dir/ ;;
2949  esac
2950    for ac_prog in mkdir gmkdir; do
2951	 for ac_exec_ext in '' $ac_executable_extensions; do
2952	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2953	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2954	     'mkdir ('*'coreutils) '* | \
2955	     'BusyBox '* | \
2956	     'mkdir (fileutils) '4.1*)
2957	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2958	       break 3;;
2959	   esac
2960	 done
2961       done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966
2967  test -d ./--version && rmdir ./--version
2968  if test ${ac_cv_path_mkdir+y}; then
2969    MKDIR_P="$ac_cv_path_mkdir -p"
2970  else
2971    # As a last resort, use the slow shell script.  Don't cache a
2972    # value for MKDIR_P within a source directory, because that will
2973    # break other packages using the cache if that directory is
2974    # removed, or if the value is a relative name.
2975    MKDIR_P="$ac_install_sh -d"
2976  fi
2977fi
2978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2979printf "%s\n" "$MKDIR_P" >&6; }
2980
2981for ac_prog in gawk mawk nawk awk
2982do
2983  # Extract the first word of "$ac_prog", so it can be a program name with args.
2984set dummy $ac_prog; ac_word=$2
2985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986printf %s "checking for $ac_word... " >&6; }
2987if test ${ac_cv_prog_AWK+y}
2988then :
2989  printf %s "(cached) " >&6
2990else $as_nop
2991  if test -n "$AWK"; then
2992  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997  IFS=$as_save_IFS
2998  case $as_dir in #(((
2999    '') as_dir=./ ;;
3000    */) ;;
3001    *) as_dir=$as_dir/ ;;
3002  esac
3003    for ac_exec_ext in '' $ac_executable_extensions; do
3004  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3005    ac_cv_prog_AWK="$ac_prog"
3006    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3007    break 2
3008  fi
3009done
3010  done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015AWK=$ac_cv_prog_AWK
3016if test -n "$AWK"; then
3017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3018printf "%s\n" "$AWK" >&6; }
3019else
3020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021printf "%s\n" "no" >&6; }
3022fi
3023
3024
3025  test -n "$AWK" && break
3026done
3027
3028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3029printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3030set x ${MAKE-make}
3031ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3032if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3033then :
3034  printf %s "(cached) " >&6
3035else $as_nop
3036  cat >conftest.make <<\_ACEOF
3037SHELL = /bin/sh
3038all:
3039	@echo '@@@%%%=$(MAKE)=@@@%%%'
3040_ACEOF
3041# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3042case `${MAKE-make} -f conftest.make 2>/dev/null` in
3043  *@@@%%%=?*=@@@%%%*)
3044    eval ac_cv_prog_make_${ac_make}_set=yes;;
3045  *)
3046    eval ac_cv_prog_make_${ac_make}_set=no;;
3047esac
3048rm -f conftest.make
3049fi
3050if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052printf "%s\n" "yes" >&6; }
3053  SET_MAKE=
3054else
3055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056printf "%s\n" "no" >&6; }
3057  SET_MAKE="MAKE=${MAKE-make}"
3058fi
3059
3060rm -rf .tst 2>/dev/null
3061mkdir .tst 2>/dev/null
3062if test -d .tst; then
3063  am__leading_dot=.
3064else
3065  am__leading_dot=_
3066fi
3067rmdir .tst 2>/dev/null
3068
3069# Check whether --enable-silent-rules was given.
3070if test ${enable_silent_rules+y}
3071then :
3072  enableval=$enable_silent_rules;
3073fi
3074
3075case $enable_silent_rules in # (((
3076  yes) AM_DEFAULT_VERBOSITY=0;;
3077   no) AM_DEFAULT_VERBOSITY=1;;
3078    *) AM_DEFAULT_VERBOSITY=1;;
3079esac
3080am_make=${MAKE-make}
3081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3082printf %s "checking whether $am_make supports nested variables... " >&6; }
3083if test ${am_cv_make_support_nested_variables+y}
3084then :
3085  printf %s "(cached) " >&6
3086else $as_nop
3087  if printf "%s\n" 'TRUE=$(BAR$(V))
3088BAR0=false
3089BAR1=true
3090V=1
3091am__doit:
3092	@$(TRUE)
3093.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3094  am_cv_make_support_nested_variables=yes
3095else
3096  am_cv_make_support_nested_variables=no
3097fi
3098fi
3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3100printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3101if test $am_cv_make_support_nested_variables = yes; then
3102    AM_V='$(V)'
3103  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3104else
3105  AM_V=$AM_DEFAULT_VERBOSITY
3106  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3107fi
3108AM_BACKSLASH='\'
3109
3110if test "`cd $srcdir && pwd`" != "`pwd`"; then
3111  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3112  # is not polluted with repeated "-I."
3113  am__isrc=' -I$(srcdir)'
3114  # test to see if srcdir already configured
3115  if test -f $srcdir/config.status; then
3116    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3117  fi
3118fi
3119
3120# test whether we have cygpath
3121if test -z "$CYGPATH_W"; then
3122  if (cygpath --version) >/dev/null 2>/dev/null; then
3123    CYGPATH_W='cygpath -w'
3124  else
3125    CYGPATH_W=echo
3126  fi
3127fi
3128
3129
3130# Define the identity of the package.
3131 PACKAGE='xf86-input-elographics'
3132 VERSION='1.4.3'
3133
3134
3135printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3136
3137
3138printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3139
3140# Some tools Automake needs.
3141
3142ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3143
3144
3145AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3146
3147
3148AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3149
3150
3151AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3152
3153
3154MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3155
3156# For better backward compatibility.  To be removed once Automake 1.9.x
3157# dies out for good.  For more background, see:
3158# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3159# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3160mkdir_p='$(MKDIR_P)'
3161
3162# We need awk for the "check" target (and possibly the TAP driver).  The
3163# system "awk" is bad on some platforms.
3164# Always define AMTAR for backward compatibility.  Yes, it's still used
3165# in the wild :-(  We should find a proper way to deprecate it ...
3166AMTAR='$${TAR-tar}'
3167
3168
3169# We'll loop over all known methods to create a tar archive until one works.
3170_am_tools='gnutar  pax cpio none'
3171
3172am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3173
3174
3175
3176
3177
3178# Variables for tags utilities; see am/tags.am
3179if test -z "$CTAGS"; then
3180  CTAGS=ctags
3181fi
3182
3183if test -z "$ETAGS"; then
3184  ETAGS=etags
3185fi
3186
3187if test -z "$CSCOPE"; then
3188  CSCOPE=cscope
3189fi
3190
3191
3192
3193# POSIX will say in a future version that running "rm -f" with no argument
3194# is OK; and we want to be able to make that assumption in our Makefile
3195# recipes.  So use an aggressive probe to check that the usage we want is
3196# actually supported "in the wild" to an acceptable degree.
3197# See automake bug#10828.
3198# To make any issue more visible, cause the running configure to be aborted
3199# by default if the 'rm' program in use doesn't match our expectations; the
3200# user can still override this though.
3201if rm -f && rm -fr && rm -rf; then : OK; else
3202  cat >&2 <<'END'
3203Oops!
3204
3205Your 'rm' program seems unable to run without file operands specified
3206on the command line, even when the '-f' option is present.  This is contrary
3207to the behaviour of most rm programs out there, and not conforming with
3208the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3209
3210Please tell bug-automake@gnu.org about your system, including the value
3211of your $PATH and any error possibly output before this message.  This
3212can help us improve future automake versions.
3213
3214END
3215  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3216    echo 'Configuration will proceed anyway, since you have set the' >&2
3217    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3218    echo >&2
3219  else
3220    cat >&2 <<'END'
3221Aborting the configuration process, to ensure you take notice of the issue.
3222
3223You can download and install GNU coreutils to get an 'rm' implementation
3224that behaves properly: <https://www.gnu.org/software/coreutils/>.
3225
3226If you want to complete the configuration process using your problematic
3227'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3228to "yes", and re-run configure.
3229
3230END
3231    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3232  fi
3233fi
3234
3235
3236# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257DEPDIR="${am__leading_dot}deps"
3258
3259ac_config_commands="$ac_config_commands depfiles"
3260
3261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3262printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3263cat > confinc.mk << 'END'
3264am__doit:
3265	@echo this is the am__doit target >confinc.out
3266.PHONY: am__doit
3267END
3268am__include="#"
3269am__quote=
3270# BSD make does it like this.
3271echo '.include "confinc.mk" # ignored' > confmf.BSD
3272# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3273echo 'include confinc.mk # ignored' > confmf.GNU
3274_am_result=no
3275for s in GNU BSD; do
3276  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3277   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3278   ac_status=$?
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); }
3281  case $?:`cat confinc.out 2>/dev/null` in #(
3282  '0:this is the am__doit target') :
3283    case $s in #(
3284  BSD) :
3285    am__include='.include' am__quote='"' ;; #(
3286  *) :
3287    am__include='include' am__quote='' ;;
3288esac ;; #(
3289  *) :
3290     ;;
3291esac
3292  if test "$am__include" != "#"; then
3293    _am_result="yes ($s style)"
3294    break
3295  fi
3296done
3297rm -f confinc.* confmf.*
3298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3299printf "%s\n" "${_am_result}" >&6; }
3300
3301# Check whether --enable-dependency-tracking was given.
3302if test ${enable_dependency_tracking+y}
3303then :
3304  enableval=$enable_dependency_tracking;
3305fi
3306
3307if test "x$enable_dependency_tracking" != xno; then
3308  am_depcomp="$ac_aux_dir/depcomp"
3309  AMDEPBACKSLASH='\'
3310  am__nodep='_no'
3311fi
3312 if test "x$enable_dependency_tracking" != xno; then
3313  AMDEP_TRUE=
3314  AMDEP_FALSE='#'
3315else
3316  AMDEP_TRUE='#'
3317  AMDEP_FALSE=
3318fi
3319
3320
3321ac_ext=c
3322ac_cpp='$CPP $CPPFLAGS'
3323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326if test -n "$ac_tool_prefix"; then
3327  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330printf %s "checking for $ac_word... " >&6; }
3331if test ${ac_cv_prog_CC+y}
3332then :
3333  printf %s "(cached) " >&6
3334else $as_nop
3335  if test -n "$CC"; then
3336  ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  case $as_dir in #(((
3343    '') as_dir=./ ;;
3344    */) ;;
3345    *) as_dir=$as_dir/ ;;
3346  esac
3347    for ac_exec_ext in '' $ac_executable_extensions; do
3348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3349    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3351    break 2
3352  fi
3353done
3354  done
3355IFS=$as_save_IFS
3356
3357fi
3358fi
3359CC=$ac_cv_prog_CC
3360if test -n "$CC"; then
3361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362printf "%s\n" "$CC" >&6; }
3363else
3364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365printf "%s\n" "no" >&6; }
3366fi
3367
3368
3369fi
3370if test -z "$ac_cv_prog_CC"; then
3371  ac_ct_CC=$CC
3372  # Extract the first word of "gcc", so it can be a program name with args.
3373set dummy gcc; ac_word=$2
3374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375printf %s "checking for $ac_word... " >&6; }
3376if test ${ac_cv_prog_ac_ct_CC+y}
3377then :
3378  printf %s "(cached) " >&6
3379else $as_nop
3380  if test -n "$ac_ct_CC"; then
3381  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382else
3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH
3385do
3386  IFS=$as_save_IFS
3387  case $as_dir in #(((
3388    '') as_dir=./ ;;
3389    */) ;;
3390    *) as_dir=$as_dir/ ;;
3391  esac
3392    for ac_exec_ext in '' $ac_executable_extensions; do
3393  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3394    ac_cv_prog_ac_ct_CC="gcc"
3395    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399  done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405if test -n "$ac_ct_CC"; then
3406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3407printf "%s\n" "$ac_ct_CC" >&6; }
3408else
3409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410printf "%s\n" "no" >&6; }
3411fi
3412
3413  if test "x$ac_ct_CC" = x; then
3414    CC=""
3415  else
3416    case $cross_compiling:$ac_tool_warned in
3417yes:)
3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420ac_tool_warned=yes ;;
3421esac
3422    CC=$ac_ct_CC
3423  fi
3424else
3425  CC="$ac_cv_prog_CC"
3426fi
3427
3428if test -z "$CC"; then
3429          if test -n "$ac_tool_prefix"; then
3430    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3431set dummy ${ac_tool_prefix}cc; ac_word=$2
3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433printf %s "checking for $ac_word... " >&6; }
3434if test ${ac_cv_prog_CC+y}
3435then :
3436  printf %s "(cached) " >&6
3437else $as_nop
3438  if test -n "$CC"; then
3439  ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444  IFS=$as_save_IFS
3445  case $as_dir in #(((
3446    '') as_dir=./ ;;
3447    */) ;;
3448    *) as_dir=$as_dir/ ;;
3449  esac
3450    for ac_exec_ext in '' $ac_executable_extensions; do
3451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3452    ac_cv_prog_CC="${ac_tool_prefix}cc"
3453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465printf "%s\n" "$CC" >&6; }
3466else
3467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468printf "%s\n" "no" >&6; }
3469fi
3470
3471
3472  fi
3473fi
3474if test -z "$CC"; then
3475  # Extract the first word of "cc", so it can be a program name with args.
3476set dummy cc; ac_word=$2
3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478printf %s "checking for $ac_word... " >&6; }
3479if test ${ac_cv_prog_CC+y}
3480then :
3481  printf %s "(cached) " >&6
3482else $as_nop
3483  if test -n "$CC"; then
3484  ac_cv_prog_CC="$CC" # Let the user override the test.
3485else
3486  ac_prog_rejected=no
3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488for as_dir in $PATH
3489do
3490  IFS=$as_save_IFS
3491  case $as_dir in #(((
3492    '') as_dir=./ ;;
3493    */) ;;
3494    *) as_dir=$as_dir/ ;;
3495  esac
3496    for ac_exec_ext in '' $ac_executable_extensions; do
3497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3498    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3499       ac_prog_rejected=yes
3500       continue
3501     fi
3502    ac_cv_prog_CC="cc"
3503    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3504    break 2
3505  fi
3506done
3507  done
3508IFS=$as_save_IFS
3509
3510if test $ac_prog_rejected = yes; then
3511  # We found a bogon in the path, so make sure we never use it.
3512  set dummy $ac_cv_prog_CC
3513  shift
3514  if test $# != 0; then
3515    # We chose a different compiler from the bogus one.
3516    # However, it has the same basename, so the bogon will be chosen
3517    # first if we set CC to just the basename; use the full file name.
3518    shift
3519    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3520  fi
3521fi
3522fi
3523fi
3524CC=$ac_cv_prog_CC
3525if test -n "$CC"; then
3526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527printf "%s\n" "$CC" >&6; }
3528else
3529  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530printf "%s\n" "no" >&6; }
3531fi
3532
3533
3534fi
3535if test -z "$CC"; then
3536  if test -n "$ac_tool_prefix"; then
3537  for ac_prog in cl.exe
3538  do
3539    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3540set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542printf %s "checking for $ac_word... " >&6; }
3543if test ${ac_cv_prog_CC+y}
3544then :
3545  printf %s "(cached) " >&6
3546else $as_nop
3547  if test -n "$CC"; then
3548  ac_cv_prog_CC="$CC" # Let the user override the test.
3549else
3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553  IFS=$as_save_IFS
3554  case $as_dir in #(((
3555    '') as_dir=./ ;;
3556    */) ;;
3557    *) as_dir=$as_dir/ ;;
3558  esac
3559    for ac_exec_ext in '' $ac_executable_extensions; do
3560  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3561    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3562    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3563    break 2
3564  fi
3565done
3566  done
3567IFS=$as_save_IFS
3568
3569fi
3570fi
3571CC=$ac_cv_prog_CC
3572if test -n "$CC"; then
3573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574printf "%s\n" "$CC" >&6; }
3575else
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577printf "%s\n" "no" >&6; }
3578fi
3579
3580
3581    test -n "$CC" && break
3582  done
3583fi
3584if test -z "$CC"; then
3585  ac_ct_CC=$CC
3586  for ac_prog in cl.exe
3587do
3588  # Extract the first word of "$ac_prog", so it can be a program name with args.
3589set dummy $ac_prog; ac_word=$2
3590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591printf %s "checking for $ac_word... " >&6; }
3592if test ${ac_cv_prog_ac_ct_CC+y}
3593then :
3594  printf %s "(cached) " >&6
3595else $as_nop
3596  if test -n "$ac_ct_CC"; then
3597  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602  IFS=$as_save_IFS
3603  case $as_dir in #(((
3604    '') as_dir=./ ;;
3605    */) ;;
3606    *) as_dir=$as_dir/ ;;
3607  esac
3608    for ac_exec_ext in '' $ac_executable_extensions; do
3609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3610    ac_cv_prog_ac_ct_CC="$ac_prog"
3611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3612    break 2
3613  fi
3614done
3615  done
3616IFS=$as_save_IFS
3617
3618fi
3619fi
3620ac_ct_CC=$ac_cv_prog_ac_ct_CC
3621if test -n "$ac_ct_CC"; then
3622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3623printf "%s\n" "$ac_ct_CC" >&6; }
3624else
3625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626printf "%s\n" "no" >&6; }
3627fi
3628
3629
3630  test -n "$ac_ct_CC" && break
3631done
3632
3633  if test "x$ac_ct_CC" = x; then
3634    CC=""
3635  else
3636    case $cross_compiling:$ac_tool_warned in
3637yes:)
3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640ac_tool_warned=yes ;;
3641esac
3642    CC=$ac_ct_CC
3643  fi
3644fi
3645
3646fi
3647if test -z "$CC"; then
3648  if test -n "$ac_tool_prefix"; then
3649  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3650set dummy ${ac_tool_prefix}clang; ac_word=$2
3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652printf %s "checking for $ac_word... " >&6; }
3653if test ${ac_cv_prog_CC+y}
3654then :
3655  printf %s "(cached) " >&6
3656else $as_nop
3657  if test -n "$CC"; then
3658  ac_cv_prog_CC="$CC" # Let the user override the test.
3659else
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663  IFS=$as_save_IFS
3664  case $as_dir in #(((
3665    '') as_dir=./ ;;
3666    */) ;;
3667    *) as_dir=$as_dir/ ;;
3668  esac
3669    for ac_exec_ext in '' $ac_executable_extensions; do
3670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3671    ac_cv_prog_CC="${ac_tool_prefix}clang"
3672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3673    break 2
3674  fi
3675done
3676  done
3677IFS=$as_save_IFS
3678
3679fi
3680fi
3681CC=$ac_cv_prog_CC
3682if test -n "$CC"; then
3683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684printf "%s\n" "$CC" >&6; }
3685else
3686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687printf "%s\n" "no" >&6; }
3688fi
3689
3690
3691fi
3692if test -z "$ac_cv_prog_CC"; then
3693  ac_ct_CC=$CC
3694  # Extract the first word of "clang", so it can be a program name with args.
3695set dummy clang; ac_word=$2
3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697printf %s "checking for $ac_word... " >&6; }
3698if test ${ac_cv_prog_ac_ct_CC+y}
3699then :
3700  printf %s "(cached) " >&6
3701else $as_nop
3702  if test -n "$ac_ct_CC"; then
3703  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  case $as_dir in #(((
3710    '') as_dir=./ ;;
3711    */) ;;
3712    *) as_dir=$as_dir/ ;;
3713  esac
3714    for ac_exec_ext in '' $ac_executable_extensions; do
3715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716    ac_cv_prog_ac_ct_CC="clang"
3717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718    break 2
3719  fi
3720done
3721  done
3722IFS=$as_save_IFS
3723
3724fi
3725fi
3726ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727if test -n "$ac_ct_CC"; then
3728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3729printf "%s\n" "$ac_ct_CC" >&6; }
3730else
3731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732printf "%s\n" "no" >&6; }
3733fi
3734
3735  if test "x$ac_ct_CC" = x; then
3736    CC=""
3737  else
3738    case $cross_compiling:$ac_tool_warned in
3739yes:)
3740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742ac_tool_warned=yes ;;
3743esac
3744    CC=$ac_ct_CC
3745  fi
3746else
3747  CC="$ac_cv_prog_CC"
3748fi
3749
3750fi
3751
3752
3753test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3755as_fn_error $? "no acceptable C compiler found in \$PATH
3756See \`config.log' for more details" "$LINENO" 5; }
3757
3758# Provide some information about the compiler.
3759printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3760set X $ac_compile
3761ac_compiler=$2
3762for ac_option in --version -v -V -qversion -version; do
3763  { { ac_try="$ac_compiler $ac_option >&5"
3764case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769printf "%s\n" "$ac_try_echo"; } >&5
3770  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3771  ac_status=$?
3772  if test -s conftest.err; then
3773    sed '10a\
3774... rest of stderr output deleted ...
3775         10q' conftest.err >conftest.er1
3776    cat conftest.er1 >&5
3777  fi
3778  rm -f conftest.er1 conftest.err
3779  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780  test $ac_status = 0; }
3781done
3782
3783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785
3786int
3787main (void)
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794ac_clean_files_save=$ac_clean_files
3795ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3796# Try to create an executable without -o first, disregard a.out.
3797# It will help us diagnose broken compilers, and finding out an intuition
3798# of exeext.
3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3800printf %s "checking whether the C compiler works... " >&6; }
3801ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3802
3803# The possible output files:
3804ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3805
3806ac_rmfiles=
3807for ac_file in $ac_files
3808do
3809  case $ac_file in
3810    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3812  esac
3813done
3814rm -f $ac_rmfiles
3815
3816if { { ac_try="$ac_link_default"
3817case "(($ac_try" in
3818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819  *) ac_try_echo=$ac_try;;
3820esac
3821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822printf "%s\n" "$ac_try_echo"; } >&5
3823  (eval "$ac_link_default") 2>&5
3824  ac_status=$?
3825  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826  test $ac_status = 0; }
3827then :
3828  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3829# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3830# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3831# so that the user can short-circuit this test for compilers unknown to
3832# Autoconf.
3833for ac_file in $ac_files ''
3834do
3835  test -f "$ac_file" || continue
3836  case $ac_file in
3837    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3838	;;
3839    [ab].out )
3840	# We found the default executable, but exeext='' is most
3841	# certainly right.
3842	break;;
3843    *.* )
3844	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3845	then :; else
3846	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3847	fi
3848	# We set ac_cv_exeext here because the later test for it is not
3849	# safe: cross compilers may not add the suffix if given an `-o'
3850	# argument, so we may need to know it at that point already.
3851	# Even if this section looks crufty: it has the advantage of
3852	# actually working.
3853	break;;
3854    * )
3855	break;;
3856  esac
3857done
3858test "$ac_cv_exeext" = no && ac_cv_exeext=
3859
3860else $as_nop
3861  ac_file=''
3862fi
3863if test -z "$ac_file"
3864then :
3865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866printf "%s\n" "no" >&6; }
3867printf "%s\n" "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3872as_fn_error 77 "C compiler cannot create executables
3873See \`config.log' for more details" "$LINENO" 5; }
3874else $as_nop
3875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3876printf "%s\n" "yes" >&6; }
3877fi
3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3879printf %s "checking for C compiler default output file name... " >&6; }
3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3881printf "%s\n" "$ac_file" >&6; }
3882ac_exeext=$ac_cv_exeext
3883
3884rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3885ac_clean_files=$ac_clean_files_save
3886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3887printf %s "checking for suffix of executables... " >&6; }
3888if { { ac_try="$ac_link"
3889case "(($ac_try" in
3890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891  *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894printf "%s\n" "$ac_try_echo"; } >&5
3895  (eval "$ac_link") 2>&5
3896  ac_status=$?
3897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898  test $ac_status = 0; }
3899then :
3900  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3901# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3902# work properly (i.e., refer to `conftest.exe'), while it won't with
3903# `rm'.
3904for ac_file in conftest.exe conftest conftest.*; do
3905  test -f "$ac_file" || continue
3906  case $ac_file in
3907    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3908    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909	  break;;
3910    * ) break;;
3911  esac
3912done
3913else $as_nop
3914  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3916as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3917See \`config.log' for more details" "$LINENO" 5; }
3918fi
3919rm -f conftest conftest$ac_cv_exeext
3920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3921printf "%s\n" "$ac_cv_exeext" >&6; }
3922
3923rm -f conftest.$ac_ext
3924EXEEXT=$ac_cv_exeext
3925ac_exeext=$EXEEXT
3926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927/* end confdefs.h.  */
3928#include <stdio.h>
3929int
3930main (void)
3931{
3932FILE *f = fopen ("conftest.out", "w");
3933 return ferror (f) || fclose (f) != 0;
3934
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939ac_clean_files="$ac_clean_files conftest.out"
3940# Check that the compiler produces executables we can run.  If not, either
3941# the compiler is broken, or we cross compile.
3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943printf %s "checking whether we are cross compiling... " >&6; }
3944if test "$cross_compiling" != yes; then
3945  { { ac_try="$ac_link"
3946case "(($ac_try" in
3947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948  *) ac_try_echo=$ac_try;;
3949esac
3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951printf "%s\n" "$ac_try_echo"; } >&5
3952  (eval "$ac_link") 2>&5
3953  ac_status=$?
3954  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955  test $ac_status = 0; }
3956  if { ac_try='./conftest$ac_cv_exeext'
3957  { { case "(($ac_try" in
3958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959  *) ac_try_echo=$ac_try;;
3960esac
3961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962printf "%s\n" "$ac_try_echo"; } >&5
3963  (eval "$ac_try") 2>&5
3964  ac_status=$?
3965  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966  test $ac_status = 0; }; }; then
3967    cross_compiling=no
3968  else
3969    if test "$cross_compiling" = maybe; then
3970	cross_compiling=yes
3971    else
3972	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3974as_fn_error 77 "cannot run C compiled programs.
3975If you meant to cross compile, use \`--host'.
3976See \`config.log' for more details" "$LINENO" 5; }
3977    fi
3978  fi
3979fi
3980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3981printf "%s\n" "$cross_compiling" >&6; }
3982
3983rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3984ac_clean_files=$ac_clean_files_save
3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3986printf %s "checking for suffix of object files... " >&6; }
3987if test ${ac_cv_objext+y}
3988then :
3989  printf %s "(cached) " >&6
3990else $as_nop
3991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h.  */
3993
3994int
3995main (void)
3996{
3997
3998  ;
3999  return 0;
4000}
4001_ACEOF
4002rm -f conftest.o conftest.obj
4003if { { ac_try="$ac_compile"
4004case "(($ac_try" in
4005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006  *) ac_try_echo=$ac_try;;
4007esac
4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009printf "%s\n" "$ac_try_echo"; } >&5
4010  (eval "$ac_compile") 2>&5
4011  ac_status=$?
4012  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013  test $ac_status = 0; }
4014then :
4015  for ac_file in conftest.o conftest.obj conftest.*; do
4016  test -f "$ac_file" || continue;
4017  case $ac_file in
4018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4019    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4020       break;;
4021  esac
4022done
4023else $as_nop
4024  printf "%s\n" "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4029as_fn_error $? "cannot compute suffix of object files: cannot compile
4030See \`config.log' for more details" "$LINENO" 5; }
4031fi
4032rm -f conftest.$ac_cv_objext conftest.$ac_ext
4033fi
4034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4035printf "%s\n" "$ac_cv_objext" >&6; }
4036OBJEXT=$ac_cv_objext
4037ac_objext=$OBJEXT
4038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4039printf %s "checking whether the compiler supports GNU C... " >&6; }
4040if test ${ac_cv_c_compiler_gnu+y}
4041then :
4042  printf %s "(cached) " >&6
4043else $as_nop
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046
4047int
4048main (void)
4049{
4050#ifndef __GNUC__
4051       choke me
4052#endif
4053
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058if ac_fn_c_try_compile "$LINENO"
4059then :
4060  ac_compiler_gnu=yes
4061else $as_nop
4062  ac_compiler_gnu=no
4063fi
4064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4065ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066
4067fi
4068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072if test $ac_compiler_gnu = yes; then
4073  GCC=yes
4074else
4075  GCC=
4076fi
4077ac_test_CFLAGS=${CFLAGS+y}
4078ac_save_CFLAGS=$CFLAGS
4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080printf %s "checking whether $CC accepts -g... " >&6; }
4081if test ${ac_cv_prog_cc_g+y}
4082then :
4083  printf %s "(cached) " >&6
4084else $as_nop
4085  ac_save_c_werror_flag=$ac_c_werror_flag
4086   ac_c_werror_flag=yes
4087   ac_cv_prog_cc_g=no
4088   CFLAGS="-g"
4089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h.  */
4091
4092int
4093main (void)
4094{
4095
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100if ac_fn_c_try_compile "$LINENO"
4101then :
4102  ac_cv_prog_cc_g=yes
4103else $as_nop
4104  CFLAGS=""
4105      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107
4108int
4109main (void)
4110{
4111
4112  ;
4113  return 0;
4114}
4115_ACEOF
4116if ac_fn_c_try_compile "$LINENO"
4117then :
4118
4119else $as_nop
4120  ac_c_werror_flag=$ac_save_c_werror_flag
4121	 CFLAGS="-g"
4122	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124
4125int
4126main (void)
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_compile "$LINENO"
4134then :
4135  ac_cv_prog_cc_g=yes
4136fi
4137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4138fi
4139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4140fi
4141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4142   ac_c_werror_flag=$ac_save_c_werror_flag
4143fi
4144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4145printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4146if test $ac_test_CFLAGS; then
4147  CFLAGS=$ac_save_CFLAGS
4148elif test $ac_cv_prog_cc_g = yes; then
4149  if test "$GCC" = yes; then
4150    CFLAGS="-g -O2"
4151  else
4152    CFLAGS="-g"
4153  fi
4154else
4155  if test "$GCC" = yes; then
4156    CFLAGS="-O2"
4157  else
4158    CFLAGS=
4159  fi
4160fi
4161ac_prog_cc_stdc=no
4162if test x$ac_prog_cc_stdc = xno
4163then :
4164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4165printf %s "checking for $CC option to enable C11 features... " >&6; }
4166if test ${ac_cv_prog_cc_c11+y}
4167then :
4168  printf %s "(cached) " >&6
4169else $as_nop
4170  ac_cv_prog_cc_c11=no
4171ac_save_CC=$CC
4172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173/* end confdefs.h.  */
4174$ac_c_conftest_c11_program
4175_ACEOF
4176for ac_arg in '' -std=gnu11
4177do
4178  CC="$ac_save_CC $ac_arg"
4179  if ac_fn_c_try_compile "$LINENO"
4180then :
4181  ac_cv_prog_cc_c11=$ac_arg
4182fi
4183rm -f core conftest.err conftest.$ac_objext conftest.beam
4184  test "x$ac_cv_prog_cc_c11" != "xno" && break
4185done
4186rm -f conftest.$ac_ext
4187CC=$ac_save_CC
4188fi
4189
4190if test "x$ac_cv_prog_cc_c11" = xno
4191then :
4192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193printf "%s\n" "unsupported" >&6; }
4194else $as_nop
4195  if test "x$ac_cv_prog_cc_c11" = x
4196then :
4197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198printf "%s\n" "none needed" >&6; }
4199else $as_nop
4200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4201printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4202     CC="$CC $ac_cv_prog_cc_c11"
4203fi
4204  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4205  ac_prog_cc_stdc=c11
4206fi
4207fi
4208if test x$ac_prog_cc_stdc = xno
4209then :
4210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4211printf %s "checking for $CC option to enable C99 features... " >&6; }
4212if test ${ac_cv_prog_cc_c99+y}
4213then :
4214  printf %s "(cached) " >&6
4215else $as_nop
4216  ac_cv_prog_cc_c99=no
4217ac_save_CC=$CC
4218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219/* end confdefs.h.  */
4220$ac_c_conftest_c99_program
4221_ACEOF
4222for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4223do
4224  CC="$ac_save_CC $ac_arg"
4225  if ac_fn_c_try_compile "$LINENO"
4226then :
4227  ac_cv_prog_cc_c99=$ac_arg
4228fi
4229rm -f core conftest.err conftest.$ac_objext conftest.beam
4230  test "x$ac_cv_prog_cc_c99" != "xno" && break
4231done
4232rm -f conftest.$ac_ext
4233CC=$ac_save_CC
4234fi
4235
4236if test "x$ac_cv_prog_cc_c99" = xno
4237then :
4238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4239printf "%s\n" "unsupported" >&6; }
4240else $as_nop
4241  if test "x$ac_cv_prog_cc_c99" = x
4242then :
4243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4244printf "%s\n" "none needed" >&6; }
4245else $as_nop
4246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4247printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4248     CC="$CC $ac_cv_prog_cc_c99"
4249fi
4250  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4251  ac_prog_cc_stdc=c99
4252fi
4253fi
4254if test x$ac_prog_cc_stdc = xno
4255then :
4256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4257printf %s "checking for $CC option to enable C89 features... " >&6; }
4258if test ${ac_cv_prog_cc_c89+y}
4259then :
4260  printf %s "(cached) " >&6
4261else $as_nop
4262  ac_cv_prog_cc_c89=no
4263ac_save_CC=$CC
4264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h.  */
4266$ac_c_conftest_c89_program
4267_ACEOF
4268for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4269do
4270  CC="$ac_save_CC $ac_arg"
4271  if ac_fn_c_try_compile "$LINENO"
4272then :
4273  ac_cv_prog_cc_c89=$ac_arg
4274fi
4275rm -f core conftest.err conftest.$ac_objext conftest.beam
4276  test "x$ac_cv_prog_cc_c89" != "xno" && break
4277done
4278rm -f conftest.$ac_ext
4279CC=$ac_save_CC
4280fi
4281
4282if test "x$ac_cv_prog_cc_c89" = xno
4283then :
4284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4285printf "%s\n" "unsupported" >&6; }
4286else $as_nop
4287  if test "x$ac_cv_prog_cc_c89" = x
4288then :
4289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4290printf "%s\n" "none needed" >&6; }
4291else $as_nop
4292  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4293printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4294     CC="$CC $ac_cv_prog_cc_c89"
4295fi
4296  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4297  ac_prog_cc_stdc=c89
4298fi
4299fi
4300
4301ac_ext=c
4302ac_cpp='$CPP $CPPFLAGS'
4303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306
4307
4308  ac_ext=c
4309ac_cpp='$CPP $CPPFLAGS'
4310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4314printf %s "checking whether $CC understands -c and -o together... " >&6; }
4315if test ${am_cv_prog_cc_c_o+y}
4316then :
4317  printf %s "(cached) " >&6
4318else $as_nop
4319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320/* end confdefs.h.  */
4321
4322int
4323main (void)
4324{
4325
4326  ;
4327  return 0;
4328}
4329_ACEOF
4330  # Make sure it works both with $CC and with simple cc.
4331  # Following AC_PROG_CC_C_O, we do the test twice because some
4332  # compilers refuse to overwrite an existing .o file with -o,
4333  # though they will create one.
4334  am_cv_prog_cc_c_o=yes
4335  for am_i in 1 2; do
4336    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4337   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); } \
4341         && test -f conftest2.$ac_objext; then
4342      : OK
4343    else
4344      am_cv_prog_cc_c_o=no
4345      break
4346    fi
4347  done
4348  rm -f core conftest*
4349  unset am_i
4350fi
4351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4352printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4353if test "$am_cv_prog_cc_c_o" != yes; then
4354   # Losing compiler, so override with the script.
4355   # FIXME: It is wrong to rewrite CC.
4356   # But if we don't then we get into trouble of one sort or another.
4357   # A longer-term fix would be to have automake use am__CC in this case,
4358   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4359   CC="$am_aux_dir/compile $CC"
4360fi
4361ac_ext=c
4362ac_cpp='$CPP $CPPFLAGS'
4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366
4367
4368depcc="$CC"   am_compiler_list=
4369
4370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4371printf %s "checking dependency style of $depcc... " >&6; }
4372if test ${am_cv_CC_dependencies_compiler_type+y}
4373then :
4374  printf %s "(cached) " >&6
4375else $as_nop
4376  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4377  # We make a subdir and do the tests there.  Otherwise we can end up
4378  # making bogus files that we don't know about and never remove.  For
4379  # instance it was reported that on HP-UX the gcc test will end up
4380  # making a dummy file named 'D' -- because '-MD' means "put the output
4381  # in D".
4382  rm -rf conftest.dir
4383  mkdir conftest.dir
4384  # Copy depcomp to subdir because otherwise we won't find it if we're
4385  # using a relative directory.
4386  cp "$am_depcomp" conftest.dir
4387  cd conftest.dir
4388  # We will build objects and dependencies in a subdirectory because
4389  # it helps to detect inapplicable dependency modes.  For instance
4390  # both Tru64's cc and ICC support -MD to output dependencies as a
4391  # side effect of compilation, but ICC will put the dependencies in
4392  # the current directory while Tru64 will put them in the object
4393  # directory.
4394  mkdir sub
4395
4396  am_cv_CC_dependencies_compiler_type=none
4397  if test "$am_compiler_list" = ""; then
4398     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4399  fi
4400  am__universal=false
4401  case " $depcc " in #(
4402     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4403     esac
4404
4405  for depmode in $am_compiler_list; do
4406    # Setup a source with many dependencies, because some compilers
4407    # like to wrap large dependency lists on column 80 (with \), and
4408    # we should not choose a depcomp mode which is confused by this.
4409    #
4410    # We need to recreate these files for each test, as the compiler may
4411    # overwrite some of them when testing with obscure command lines.
4412    # This happens at least with the AIX C compiler.
4413    : > sub/conftest.c
4414    for i in 1 2 3 4 5 6; do
4415      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4416      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4417      # Solaris 10 /bin/sh.
4418      echo '/* dummy */' > sub/conftst$i.h
4419    done
4420    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4421
4422    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4423    # mode.  It turns out that the SunPro C++ compiler does not properly
4424    # handle '-M -o', and we need to detect this.  Also, some Intel
4425    # versions had trouble with output in subdirs.
4426    am__obj=sub/conftest.${OBJEXT-o}
4427    am__minus_obj="-o $am__obj"
4428    case $depmode in
4429    gcc)
4430      # This depmode causes a compiler race in universal mode.
4431      test "$am__universal" = false || continue
4432      ;;
4433    nosideeffect)
4434      # After this tag, mechanisms are not by side-effect, so they'll
4435      # only be used when explicitly requested.
4436      if test "x$enable_dependency_tracking" = xyes; then
4437	continue
4438      else
4439	break
4440      fi
4441      ;;
4442    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4443      # This compiler won't grok '-c -o', but also, the minuso test has
4444      # not run yet.  These depmodes are late enough in the game, and
4445      # so weak that their functioning should not be impacted.
4446      am__obj=conftest.${OBJEXT-o}
4447      am__minus_obj=
4448      ;;
4449    none) break ;;
4450    esac
4451    if depmode=$depmode \
4452       source=sub/conftest.c object=$am__obj \
4453       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4454       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4455         >/dev/null 2>conftest.err &&
4456       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4457       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4458       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4459       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4460      # icc doesn't choke on unknown options, it will just issue warnings
4461      # or remarks (even with -Werror).  So we grep stderr for any message
4462      # that says an option was ignored or not supported.
4463      # When given -MP, icc 7.0 and 7.1 complain thusly:
4464      #   icc: Command line warning: ignoring option '-M'; no argument required
4465      # The diagnosis changed in icc 8.0:
4466      #   icc: Command line remark: option '-MP' not supported
4467      if (grep 'ignoring option' conftest.err ||
4468          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4469        am_cv_CC_dependencies_compiler_type=$depmode
4470        break
4471      fi
4472    fi
4473  done
4474
4475  cd ..
4476  rm -rf conftest.dir
4477else
4478  am_cv_CC_dependencies_compiler_type=none
4479fi
4480
4481fi
4482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4483printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4484CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4485
4486 if
4487  test "x$enable_dependency_tracking" != xno \
4488  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4489  am__fastdepCC_TRUE=
4490  am__fastdepCC_FALSE='#'
4491else
4492  am__fastdepCC_TRUE='#'
4493  am__fastdepCC_FALSE=
4494fi
4495
4496
4497
4498
4499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4500printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4501if test ${ac_cv_c_undeclared_builtin_options+y}
4502then :
4503  printf %s "(cached) " >&6
4504else $as_nop
4505  ac_save_CFLAGS=$CFLAGS
4506   ac_cv_c_undeclared_builtin_options='cannot detect'
4507   for ac_arg in '' -fno-builtin; do
4508     CFLAGS="$ac_save_CFLAGS $ac_arg"
4509     # This test program should *not* compile successfully.
4510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h.  */
4512
4513int
4514main (void)
4515{
4516(void) strchr;
4517  ;
4518  return 0;
4519}
4520_ACEOF
4521if ac_fn_c_try_compile "$LINENO"
4522then :
4523
4524else $as_nop
4525  # This test program should compile successfully.
4526        # No library function is consistently available on
4527        # freestanding implementations, so test against a dummy
4528        # declaration.  Include always-available headers on the
4529        # off chance that they somehow elicit warnings.
4530        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532#include <float.h>
4533#include <limits.h>
4534#include <stdarg.h>
4535#include <stddef.h>
4536extern void ac_decl (int, char *);
4537
4538int
4539main (void)
4540{
4541(void) ac_decl (0, (char *) 0);
4542  (void) ac_decl;
4543
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"
4549then :
4550  if test x"$ac_arg" = x
4551then :
4552  ac_cv_c_undeclared_builtin_options='none needed'
4553else $as_nop
4554  ac_cv_c_undeclared_builtin_options=$ac_arg
4555fi
4556          break
4557fi
4558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4559fi
4560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4561    done
4562    CFLAGS=$ac_save_CFLAGS
4563
4564fi
4565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4566printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4567  case $ac_cv_c_undeclared_builtin_options in #(
4568  'cannot detect') :
4569    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4570printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4571as_fn_error $? "cannot make $CC report undeclared builtins
4572See \`config.log' for more details" "$LINENO" 5; } ;; #(
4573  'none needed') :
4574    ac_c_undeclared_builtin_options='' ;; #(
4575  *) :
4576    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4577esac
4578
4579ac_header= ac_cache=
4580for ac_item in $ac_header_c_list
4581do
4582  if test $ac_cache; then
4583    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4584    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4585      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4586    fi
4587    ac_header= ac_cache=
4588  elif test $ac_header; then
4589    ac_cache=$ac_item
4590  else
4591    ac_header=$ac_item
4592  fi
4593done
4594
4595
4596
4597
4598
4599
4600
4601
4602if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4603then :
4604
4605printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4606
4607fi
4608
4609
4610
4611
4612ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4613if test "x$ac_cv_have_decl___clang__" = xyes
4614then :
4615  CLANGCC="yes"
4616else $as_nop
4617  CLANGCC="no"
4618fi
4619ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4620if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4621then :
4622  INTELCC="yes"
4623else $as_nop
4624  INTELCC="no"
4625fi
4626ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4627if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4628then :
4629  SUNCC="yes"
4630else $as_nop
4631  SUNCC="no"
4632fi
4633
4634
4635
4636
4637
4638
4639
4640
4641if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4642	if test -n "$ac_tool_prefix"; then
4643  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4644set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646printf %s "checking for $ac_word... " >&6; }
4647if test ${ac_cv_path_PKG_CONFIG+y}
4648then :
4649  printf %s "(cached) " >&6
4650else $as_nop
4651  case $PKG_CONFIG in
4652  [\\/]* | ?:[\\/]*)
4653  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4654  ;;
4655  *)
4656  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659  IFS=$as_save_IFS
4660  case $as_dir in #(((
4661    '') as_dir=./ ;;
4662    */) ;;
4663    *) as_dir=$as_dir/ ;;
4664  esac
4665    for ac_exec_ext in '' $ac_executable_extensions; do
4666  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4667    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4668    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4669    break 2
4670  fi
4671done
4672  done
4673IFS=$as_save_IFS
4674
4675  ;;
4676esac
4677fi
4678PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4679if test -n "$PKG_CONFIG"; then
4680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4681printf "%s\n" "$PKG_CONFIG" >&6; }
4682else
4683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684printf "%s\n" "no" >&6; }
4685fi
4686
4687
4688fi
4689if test -z "$ac_cv_path_PKG_CONFIG"; then
4690  ac_pt_PKG_CONFIG=$PKG_CONFIG
4691  # Extract the first word of "pkg-config", so it can be a program name with args.
4692set dummy pkg-config; ac_word=$2
4693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694printf %s "checking for $ac_word... " >&6; }
4695if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4696then :
4697  printf %s "(cached) " >&6
4698else $as_nop
4699  case $ac_pt_PKG_CONFIG in
4700  [\\/]* | ?:[\\/]*)
4701  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4702  ;;
4703  *)
4704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707  IFS=$as_save_IFS
4708  case $as_dir in #(((
4709    '') as_dir=./ ;;
4710    */) ;;
4711    *) as_dir=$as_dir/ ;;
4712  esac
4713    for ac_exec_ext in '' $ac_executable_extensions; do
4714  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4715    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720  done
4721IFS=$as_save_IFS
4722
4723  ;;
4724esac
4725fi
4726ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4727if test -n "$ac_pt_PKG_CONFIG"; then
4728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4729printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4730else
4731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732printf "%s\n" "no" >&6; }
4733fi
4734
4735  if test "x$ac_pt_PKG_CONFIG" = x; then
4736    PKG_CONFIG=""
4737  else
4738    case $cross_compiling:$ac_tool_warned in
4739yes:)
4740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742ac_tool_warned=yes ;;
4743esac
4744    PKG_CONFIG=$ac_pt_PKG_CONFIG
4745  fi
4746else
4747  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4748fi
4749
4750fi
4751if test -n "$PKG_CONFIG"; then
4752	_pkg_min_version=0.9.0
4753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4754printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4755	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4757printf "%s\n" "yes" >&6; }
4758	else
4759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760printf "%s\n" "no" >&6; }
4761		PKG_CONFIG=""
4762	fi
4763fi
4764
4765
4766  # Make sure we can run config.sub.
4767$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4768  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4769
4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4771printf %s "checking build system type... " >&6; }
4772if test ${ac_cv_build+y}
4773then :
4774  printf %s "(cached) " >&6
4775else $as_nop
4776  ac_build_alias=$build_alias
4777test "x$ac_build_alias" = x &&
4778  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4779test "x$ac_build_alias" = x &&
4780  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4781ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4782  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4783
4784fi
4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4786printf "%s\n" "$ac_cv_build" >&6; }
4787case $ac_cv_build in
4788*-*-*) ;;
4789*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4790esac
4791build=$ac_cv_build
4792ac_save_IFS=$IFS; IFS='-'
4793set x $ac_cv_build
4794shift
4795build_cpu=$1
4796build_vendor=$2
4797shift; shift
4798# Remember, the first character of IFS is used to create $*,
4799# except with old shells:
4800build_os=$*
4801IFS=$ac_save_IFS
4802case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4803
4804
4805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4806printf %s "checking host system type... " >&6; }
4807if test ${ac_cv_host+y}
4808then :
4809  printf %s "(cached) " >&6
4810else $as_nop
4811  if test "x$host_alias" = x; then
4812  ac_cv_host=$ac_cv_build
4813else
4814  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4815    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4816fi
4817
4818fi
4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4820printf "%s\n" "$ac_cv_host" >&6; }
4821case $ac_cv_host in
4822*-*-*) ;;
4823*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4824esac
4825host=$ac_cv_host
4826ac_save_IFS=$IFS; IFS='-'
4827set x $ac_cv_host
4828shift
4829host_cpu=$1
4830host_vendor=$2
4831shift; shift
4832# Remember, the first character of IFS is used to create $*,
4833# except with old shells:
4834host_os=$*
4835IFS=$ac_save_IFS
4836case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4837
4838
4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4840printf %s "checking for a sed that does not truncate output... " >&6; }
4841if test ${ac_cv_path_SED+y}
4842then :
4843  printf %s "(cached) " >&6
4844else $as_nop
4845            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4846     for ac_i in 1 2 3 4 5 6 7; do
4847       ac_script="$ac_script$as_nl$ac_script"
4848     done
4849     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4850     { ac_script=; unset ac_script;}
4851     if test -z "$SED"; then
4852  ac_path_SED_found=false
4853  # Loop through the user's path and test for each of PROGNAME-LIST
4854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857  IFS=$as_save_IFS
4858  case $as_dir in #(((
4859    '') as_dir=./ ;;
4860    */) ;;
4861    *) as_dir=$as_dir/ ;;
4862  esac
4863    for ac_prog in sed gsed
4864   do
4865    for ac_exec_ext in '' $ac_executable_extensions; do
4866      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4867      as_fn_executable_p "$ac_path_SED" || continue
4868# Check for GNU ac_path_SED and select it if it is found.
4869  # Check for GNU $ac_path_SED
4870case `"$ac_path_SED" --version 2>&1` in
4871*GNU*)
4872  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4873*)
4874  ac_count=0
4875  printf %s 0123456789 >"conftest.in"
4876  while :
4877  do
4878    cat "conftest.in" "conftest.in" >"conftest.tmp"
4879    mv "conftest.tmp" "conftest.in"
4880    cp "conftest.in" "conftest.nl"
4881    printf "%s\n" '' >> "conftest.nl"
4882    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884    as_fn_arith $ac_count + 1 && ac_count=$as_val
4885    if test $ac_count -gt ${ac_path_SED_max-0}; then
4886      # Best one so far, save it but keep looking for a better one
4887      ac_cv_path_SED="$ac_path_SED"
4888      ac_path_SED_max=$ac_count
4889    fi
4890    # 10*(2^10) chars as input seems more than enough
4891    test $ac_count -gt 10 && break
4892  done
4893  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894esac
4895
4896      $ac_path_SED_found && break 3
4897    done
4898  done
4899  done
4900IFS=$as_save_IFS
4901  if test -z "$ac_cv_path_SED"; then
4902    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4903  fi
4904else
4905  ac_cv_path_SED=$SED
4906fi
4907
4908fi
4909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4910printf "%s\n" "$ac_cv_path_SED" >&6; }
4911 SED="$ac_cv_path_SED"
4912  rm -f conftest.sed
4913
4914
4915
4916
4917
4918
4919# Check whether --enable-selective-werror was given.
4920if test ${enable_selective_werror+y}
4921then :
4922  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4923else $as_nop
4924  SELECTIVE_WERROR=yes
4925fi
4926
4927
4928
4929
4930
4931# -v is too short to test reliably with XORG_TESTSET_CFLAG
4932if test "x$SUNCC" = "xyes"; then
4933    BASE_CFLAGS="-v"
4934else
4935    BASE_CFLAGS=""
4936fi
4937
4938# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952xorg_testset_save_CFLAGS="$CFLAGS"
4953
4954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4959then :
4960  printf %s "(cached) " >&6
4961else $as_nop
4962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h.  */
4964int i;
4965_ACEOF
4966if ac_fn_c_try_compile "$LINENO"
4967then :
4968  xorg_cv_cc_flag_unknown_warning_option=yes
4969else $as_nop
4970  xorg_cv_cc_flag_unknown_warning_option=no
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4973fi
4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4977	CFLAGS="$xorg_testset_save_CFLAGS"
4978fi
4979
4980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4983	fi
4984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4987if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4988then :
4989  printf %s "(cached) " >&6
4990else $as_nop
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994_ACEOF
4995if ac_fn_c_try_compile "$LINENO"
4996then :
4997  xorg_cv_cc_flag_unused_command_line_argument=yes
4998else $as_nop
4999  xorg_cv_cc_flag_unused_command_line_argument=no
5000fi
5001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5002fi
5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5006	CFLAGS="$xorg_testset_save_CFLAGS"
5007fi
5008
5009found="no"
5010
5011	if test $found = "no" ; then
5012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014		fi
5015
5016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5018		fi
5019
5020		CFLAGS="$CFLAGS -Wall"
5021
5022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5023printf %s "checking if $CC supports -Wall... " >&6; }
5024		cacheid=xorg_cv_cc_flag__Wall
5025		if eval test \${$cacheid+y}
5026then :
5027  printf %s "(cached) " >&6
5028else $as_nop
5029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030/* end confdefs.h.  */
5031int i;
5032int
5033main (void)
5034{
5035
5036  ;
5037  return 0;
5038}
5039_ACEOF
5040if ac_fn_c_try_link "$LINENO"
5041then :
5042  eval $cacheid=yes
5043else $as_nop
5044  eval $cacheid=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.beam \
5047    conftest$ac_exeext conftest.$ac_ext
5048fi
5049
5050
5051		CFLAGS="$xorg_testset_save_CFLAGS"
5052
5053		eval supported=\$$cacheid
5054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5055printf "%s\n" "$supported" >&6; }
5056		if test "$supported" = "yes" ; then
5057			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5058			found="yes"
5059		fi
5060	fi
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076xorg_testset_save_CFLAGS="$CFLAGS"
5077
5078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5083then :
5084  printf %s "(cached) " >&6
5085else $as_nop
5086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h.  */
5088int i;
5089_ACEOF
5090if ac_fn_c_try_compile "$LINENO"
5091then :
5092  xorg_cv_cc_flag_unknown_warning_option=yes
5093else $as_nop
5094  xorg_cv_cc_flag_unknown_warning_option=no
5095fi
5096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5097fi
5098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5101	CFLAGS="$xorg_testset_save_CFLAGS"
5102fi
5103
5104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107	fi
5108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5112then :
5113  printf %s "(cached) " >&6
5114else $as_nop
5115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116/* end confdefs.h.  */
5117int i;
5118_ACEOF
5119if ac_fn_c_try_compile "$LINENO"
5120then :
5121  xorg_cv_cc_flag_unused_command_line_argument=yes
5122else $as_nop
5123  xorg_cv_cc_flag_unused_command_line_argument=no
5124fi
5125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5126fi
5127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5130	CFLAGS="$xorg_testset_save_CFLAGS"
5131fi
5132
5133found="no"
5134
5135	if test $found = "no" ; then
5136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138		fi
5139
5140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5142		fi
5143
5144		CFLAGS="$CFLAGS -Wpointer-arith"
5145
5146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5147printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5148		cacheid=xorg_cv_cc_flag__Wpointer_arith
5149		if eval test \${$cacheid+y}
5150then :
5151  printf %s "(cached) " >&6
5152else $as_nop
5153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155int i;
5156int
5157main (void)
5158{
5159
5160  ;
5161  return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_link "$LINENO"
5165then :
5166  eval $cacheid=yes
5167else $as_nop
5168  eval $cacheid=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.beam \
5171    conftest$ac_exeext conftest.$ac_ext
5172fi
5173
5174
5175		CFLAGS="$xorg_testset_save_CFLAGS"
5176
5177		eval supported=\$$cacheid
5178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5179printf "%s\n" "$supported" >&6; }
5180		if test "$supported" = "yes" ; then
5181			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5182			found="yes"
5183		fi
5184	fi
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200xorg_testset_save_CFLAGS="$CFLAGS"
5201
5202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5206if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5207then :
5208  printf %s "(cached) " >&6
5209else $as_nop
5210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212int i;
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"
5215then :
5216  xorg_cv_cc_flag_unknown_warning_option=yes
5217else $as_nop
5218  xorg_cv_cc_flag_unknown_warning_option=no
5219fi
5220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5221fi
5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5225	CFLAGS="$xorg_testset_save_CFLAGS"
5226fi
5227
5228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231	fi
5232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5235if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5236then :
5237  printf %s "(cached) " >&6
5238else $as_nop
5239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240/* end confdefs.h.  */
5241int i;
5242_ACEOF
5243if ac_fn_c_try_compile "$LINENO"
5244then :
5245  xorg_cv_cc_flag_unused_command_line_argument=yes
5246else $as_nop
5247  xorg_cv_cc_flag_unused_command_line_argument=no
5248fi
5249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5250fi
5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5254	CFLAGS="$xorg_testset_save_CFLAGS"
5255fi
5256
5257found="no"
5258
5259	if test $found = "no" ; then
5260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262		fi
5263
5264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5266		fi
5267
5268		CFLAGS="$CFLAGS -Wmissing-declarations"
5269
5270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5271printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5272		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5273		if eval test \${$cacheid+y}
5274then :
5275  printf %s "(cached) " >&6
5276else $as_nop
5277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h.  */
5279int i;
5280int
5281main (void)
5282{
5283
5284  ;
5285  return 0;
5286}
5287_ACEOF
5288if ac_fn_c_try_link "$LINENO"
5289then :
5290  eval $cacheid=yes
5291else $as_nop
5292  eval $cacheid=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.beam \
5295    conftest$ac_exeext conftest.$ac_ext
5296fi
5297
5298
5299		CFLAGS="$xorg_testset_save_CFLAGS"
5300
5301		eval supported=\$$cacheid
5302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5303printf "%s\n" "$supported" >&6; }
5304		if test "$supported" = "yes" ; then
5305			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5306			found="yes"
5307		fi
5308	fi
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324xorg_testset_save_CFLAGS="$CFLAGS"
5325
5326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5330if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5331then :
5332  printf %s "(cached) " >&6
5333else $as_nop
5334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h.  */
5336int i;
5337_ACEOF
5338if ac_fn_c_try_compile "$LINENO"
5339then :
5340  xorg_cv_cc_flag_unknown_warning_option=yes
5341else $as_nop
5342  xorg_cv_cc_flag_unknown_warning_option=no
5343fi
5344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5345fi
5346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5349	CFLAGS="$xorg_testset_save_CFLAGS"
5350fi
5351
5352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5355	fi
5356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5360then :
5361  printf %s "(cached) " >&6
5362else $as_nop
5363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h.  */
5365int i;
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"
5368then :
5369  xorg_cv_cc_flag_unused_command_line_argument=yes
5370else $as_nop
5371  xorg_cv_cc_flag_unused_command_line_argument=no
5372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374fi
5375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5378	CFLAGS="$xorg_testset_save_CFLAGS"
5379fi
5380
5381found="no"
5382
5383	if test $found = "no" ; then
5384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386		fi
5387
5388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5390		fi
5391
5392		CFLAGS="$CFLAGS -Wformat=2"
5393
5394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5395printf %s "checking if $CC supports -Wformat=2... " >&6; }
5396		cacheid=xorg_cv_cc_flag__Wformat_2
5397		if eval test \${$cacheid+y}
5398then :
5399  printf %s "(cached) " >&6
5400else $as_nop
5401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h.  */
5403int i;
5404int
5405main (void)
5406{
5407
5408  ;
5409  return 0;
5410}
5411_ACEOF
5412if ac_fn_c_try_link "$LINENO"
5413then :
5414  eval $cacheid=yes
5415else $as_nop
5416  eval $cacheid=no
5417fi
5418rm -f core conftest.err conftest.$ac_objext conftest.beam \
5419    conftest$ac_exeext conftest.$ac_ext
5420fi
5421
5422
5423		CFLAGS="$xorg_testset_save_CFLAGS"
5424
5425		eval supported=\$$cacheid
5426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5427printf "%s\n" "$supported" >&6; }
5428		if test "$supported" = "yes" ; then
5429			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5430			found="yes"
5431		fi
5432	fi
5433
5434	if test $found = "no" ; then
5435		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437		fi
5438
5439		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5441		fi
5442
5443		CFLAGS="$CFLAGS -Wformat"
5444
5445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5446printf %s "checking if $CC supports -Wformat... " >&6; }
5447		cacheid=xorg_cv_cc_flag__Wformat
5448		if eval test \${$cacheid+y}
5449then :
5450  printf %s "(cached) " >&6
5451else $as_nop
5452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454int i;
5455int
5456main (void)
5457{
5458
5459  ;
5460  return 0;
5461}
5462_ACEOF
5463if ac_fn_c_try_link "$LINENO"
5464then :
5465  eval $cacheid=yes
5466else $as_nop
5467  eval $cacheid=no
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.beam \
5470    conftest$ac_exeext conftest.$ac_ext
5471fi
5472
5473
5474		CFLAGS="$xorg_testset_save_CFLAGS"
5475
5476		eval supported=\$$cacheid
5477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5478printf "%s\n" "$supported" >&6; }
5479		if test "$supported" = "yes" ; then
5480			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5481			found="yes"
5482		fi
5483	fi
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501xorg_testset_save_CFLAGS="$CFLAGS"
5502
5503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5507if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5508then :
5509  printf %s "(cached) " >&6
5510else $as_nop
5511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h.  */
5513int i;
5514_ACEOF
5515if ac_fn_c_try_compile "$LINENO"
5516then :
5517  xorg_cv_cc_flag_unknown_warning_option=yes
5518else $as_nop
5519  xorg_cv_cc_flag_unknown_warning_option=no
5520fi
5521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5522fi
5523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526	CFLAGS="$xorg_testset_save_CFLAGS"
5527fi
5528
5529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532	fi
5533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5537then :
5538  printf %s "(cached) " >&6
5539else $as_nop
5540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542int i;
5543_ACEOF
5544if ac_fn_c_try_compile "$LINENO"
5545then :
5546  xorg_cv_cc_flag_unused_command_line_argument=yes
5547else $as_nop
5548  xorg_cv_cc_flag_unused_command_line_argument=no
5549fi
5550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5551fi
5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555	CFLAGS="$xorg_testset_save_CFLAGS"
5556fi
5557
5558found="no"
5559
5560	if test $found = "no" ; then
5561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563		fi
5564
5565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567		fi
5568
5569		CFLAGS="$CFLAGS -Wstrict-prototypes"
5570
5571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5572printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5573		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5574		if eval test \${$cacheid+y}
5575then :
5576  printf %s "(cached) " >&6
5577else $as_nop
5578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h.  */
5580int i;
5581int
5582main (void)
5583{
5584
5585  ;
5586  return 0;
5587}
5588_ACEOF
5589if ac_fn_c_try_link "$LINENO"
5590then :
5591  eval $cacheid=yes
5592else $as_nop
5593  eval $cacheid=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.beam \
5596    conftest$ac_exeext conftest.$ac_ext
5597fi
5598
5599
5600		CFLAGS="$xorg_testset_save_CFLAGS"
5601
5602		eval supported=\$$cacheid
5603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5604printf "%s\n" "$supported" >&6; }
5605		if test "$supported" = "yes" ; then
5606			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5607			found="yes"
5608		fi
5609	fi
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625xorg_testset_save_CFLAGS="$CFLAGS"
5626
5627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5631if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5632then :
5633  printf %s "(cached) " >&6
5634else $as_nop
5635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637int i;
5638_ACEOF
5639if ac_fn_c_try_compile "$LINENO"
5640then :
5641  xorg_cv_cc_flag_unknown_warning_option=yes
5642else $as_nop
5643  xorg_cv_cc_flag_unknown_warning_option=no
5644fi
5645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5646fi
5647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5650	CFLAGS="$xorg_testset_save_CFLAGS"
5651fi
5652
5653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5656	fi
5657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5660if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5661then :
5662  printf %s "(cached) " >&6
5663else $as_nop
5664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665/* end confdefs.h.  */
5666int i;
5667_ACEOF
5668if ac_fn_c_try_compile "$LINENO"
5669then :
5670  xorg_cv_cc_flag_unused_command_line_argument=yes
5671else $as_nop
5672  xorg_cv_cc_flag_unused_command_line_argument=no
5673fi
5674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5675fi
5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5679	CFLAGS="$xorg_testset_save_CFLAGS"
5680fi
5681
5682found="no"
5683
5684	if test $found = "no" ; then
5685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687		fi
5688
5689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5691		fi
5692
5693		CFLAGS="$CFLAGS -Wmissing-prototypes"
5694
5695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5696printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5697		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5698		if eval test \${$cacheid+y}
5699then :
5700  printf %s "(cached) " >&6
5701else $as_nop
5702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h.  */
5704int i;
5705int
5706main (void)
5707{
5708
5709  ;
5710  return 0;
5711}
5712_ACEOF
5713if ac_fn_c_try_link "$LINENO"
5714then :
5715  eval $cacheid=yes
5716else $as_nop
5717  eval $cacheid=no
5718fi
5719rm -f core conftest.err conftest.$ac_objext conftest.beam \
5720    conftest$ac_exeext conftest.$ac_ext
5721fi
5722
5723
5724		CFLAGS="$xorg_testset_save_CFLAGS"
5725
5726		eval supported=\$$cacheid
5727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5728printf "%s\n" "$supported" >&6; }
5729		if test "$supported" = "yes" ; then
5730			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5731			found="yes"
5732		fi
5733	fi
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749xorg_testset_save_CFLAGS="$CFLAGS"
5750
5751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5756then :
5757  printf %s "(cached) " >&6
5758else $as_nop
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761int i;
5762_ACEOF
5763if ac_fn_c_try_compile "$LINENO"
5764then :
5765  xorg_cv_cc_flag_unknown_warning_option=yes
5766else $as_nop
5767  xorg_cv_cc_flag_unknown_warning_option=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5770fi
5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5774	CFLAGS="$xorg_testset_save_CFLAGS"
5775fi
5776
5777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780	fi
5781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5785then :
5786  printf %s "(cached) " >&6
5787else $as_nop
5788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790int i;
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"
5793then :
5794  xorg_cv_cc_flag_unused_command_line_argument=yes
5795else $as_nop
5796  xorg_cv_cc_flag_unused_command_line_argument=no
5797fi
5798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5799fi
5800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5803	CFLAGS="$xorg_testset_save_CFLAGS"
5804fi
5805
5806found="no"
5807
5808	if test $found = "no" ; then
5809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811		fi
5812
5813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5815		fi
5816
5817		CFLAGS="$CFLAGS -Wnested-externs"
5818
5819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5820printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5821		cacheid=xorg_cv_cc_flag__Wnested_externs
5822		if eval test \${$cacheid+y}
5823then :
5824  printf %s "(cached) " >&6
5825else $as_nop
5826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828int i;
5829int
5830main (void)
5831{
5832
5833  ;
5834  return 0;
5835}
5836_ACEOF
5837if ac_fn_c_try_link "$LINENO"
5838then :
5839  eval $cacheid=yes
5840else $as_nop
5841  eval $cacheid=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.beam \
5844    conftest$ac_exeext conftest.$ac_ext
5845fi
5846
5847
5848		CFLAGS="$xorg_testset_save_CFLAGS"
5849
5850		eval supported=\$$cacheid
5851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5852printf "%s\n" "$supported" >&6; }
5853		if test "$supported" = "yes" ; then
5854			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5855			found="yes"
5856		fi
5857	fi
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873xorg_testset_save_CFLAGS="$CFLAGS"
5874
5875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5879if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5880then :
5881  printf %s "(cached) " >&6
5882else $as_nop
5883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884/* end confdefs.h.  */
5885int i;
5886_ACEOF
5887if ac_fn_c_try_compile "$LINENO"
5888then :
5889  xorg_cv_cc_flag_unknown_warning_option=yes
5890else $as_nop
5891  xorg_cv_cc_flag_unknown_warning_option=no
5892fi
5893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5894fi
5895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5898	CFLAGS="$xorg_testset_save_CFLAGS"
5899fi
5900
5901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904	fi
5905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5909then :
5910  printf %s "(cached) " >&6
5911else $as_nop
5912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914int i;
5915_ACEOF
5916if ac_fn_c_try_compile "$LINENO"
5917then :
5918  xorg_cv_cc_flag_unused_command_line_argument=yes
5919else $as_nop
5920  xorg_cv_cc_flag_unused_command_line_argument=no
5921fi
5922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5923fi
5924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5927	CFLAGS="$xorg_testset_save_CFLAGS"
5928fi
5929
5930found="no"
5931
5932	if test $found = "no" ; then
5933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935		fi
5936
5937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5939		fi
5940
5941		CFLAGS="$CFLAGS -Wbad-function-cast"
5942
5943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5944printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5945		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5946		if eval test \${$cacheid+y}
5947then :
5948  printf %s "(cached) " >&6
5949else $as_nop
5950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h.  */
5952int i;
5953int
5954main (void)
5955{
5956
5957  ;
5958  return 0;
5959}
5960_ACEOF
5961if ac_fn_c_try_link "$LINENO"
5962then :
5963  eval $cacheid=yes
5964else $as_nop
5965  eval $cacheid=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext conftest.beam \
5968    conftest$ac_exeext conftest.$ac_ext
5969fi
5970
5971
5972		CFLAGS="$xorg_testset_save_CFLAGS"
5973
5974		eval supported=\$$cacheid
5975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5976printf "%s\n" "$supported" >&6; }
5977		if test "$supported" = "yes" ; then
5978			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5979			found="yes"
5980		fi
5981	fi
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997xorg_testset_save_CFLAGS="$CFLAGS"
5998
5999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6003if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6004then :
6005  printf %s "(cached) " >&6
6006else $as_nop
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"
6012then :
6013  xorg_cv_cc_flag_unknown_warning_option=yes
6014else $as_nop
6015  xorg_cv_cc_flag_unknown_warning_option=no
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6018fi
6019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6022	CFLAGS="$xorg_testset_save_CFLAGS"
6023fi
6024
6025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028	fi
6029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6032if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6033then :
6034  printf %s "(cached) " >&6
6035else $as_nop
6036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h.  */
6038int i;
6039_ACEOF
6040if ac_fn_c_try_compile "$LINENO"
6041then :
6042  xorg_cv_cc_flag_unused_command_line_argument=yes
6043else $as_nop
6044  xorg_cv_cc_flag_unused_command_line_argument=no
6045fi
6046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6047fi
6048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6051	CFLAGS="$xorg_testset_save_CFLAGS"
6052fi
6053
6054found="no"
6055
6056	if test $found = "no" ; then
6057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059		fi
6060
6061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6063		fi
6064
6065		CFLAGS="$CFLAGS -Wold-style-definition"
6066
6067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6068printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6069		cacheid=xorg_cv_cc_flag__Wold_style_definition
6070		if eval test \${$cacheid+y}
6071then :
6072  printf %s "(cached) " >&6
6073else $as_nop
6074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h.  */
6076int i;
6077int
6078main (void)
6079{
6080
6081  ;
6082  return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_link "$LINENO"
6086then :
6087  eval $cacheid=yes
6088else $as_nop
6089  eval $cacheid=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.beam \
6092    conftest$ac_exeext conftest.$ac_ext
6093fi
6094
6095
6096		CFLAGS="$xorg_testset_save_CFLAGS"
6097
6098		eval supported=\$$cacheid
6099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6100printf "%s\n" "$supported" >&6; }
6101		if test "$supported" = "yes" ; then
6102			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6103			found="yes"
6104		fi
6105	fi
6106
6107	if test $found = "no" ; then
6108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110		fi
6111
6112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114		fi
6115
6116		CFLAGS="$CFLAGS -fd"
6117
6118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6119printf %s "checking if $CC supports -fd... " >&6; }
6120		cacheid=xorg_cv_cc_flag__fd
6121		if eval test \${$cacheid+y}
6122then :
6123  printf %s "(cached) " >&6
6124else $as_nop
6125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127int i;
6128int
6129main (void)
6130{
6131
6132  ;
6133  return 0;
6134}
6135_ACEOF
6136if ac_fn_c_try_link "$LINENO"
6137then :
6138  eval $cacheid=yes
6139else $as_nop
6140  eval $cacheid=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext conftest.beam \
6143    conftest$ac_exeext conftest.$ac_ext
6144fi
6145
6146
6147		CFLAGS="$xorg_testset_save_CFLAGS"
6148
6149		eval supported=\$$cacheid
6150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6151printf "%s\n" "$supported" >&6; }
6152		if test "$supported" = "yes" ; then
6153			BASE_CFLAGS="$BASE_CFLAGS -fd"
6154			found="yes"
6155		fi
6156	fi
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172xorg_testset_save_CFLAGS="$CFLAGS"
6173
6174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6179then :
6180  printf %s "(cached) " >&6
6181else $as_nop
6182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h.  */
6184int i;
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"
6187then :
6188  xorg_cv_cc_flag_unknown_warning_option=yes
6189else $as_nop
6190  xorg_cv_cc_flag_unknown_warning_option=no
6191fi
6192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6193fi
6194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6197	CFLAGS="$xorg_testset_save_CFLAGS"
6198fi
6199
6200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203	fi
6204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6208then :
6209  printf %s "(cached) " >&6
6210else $as_nop
6211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h.  */
6213int i;
6214_ACEOF
6215if ac_fn_c_try_compile "$LINENO"
6216then :
6217  xorg_cv_cc_flag_unused_command_line_argument=yes
6218else $as_nop
6219  xorg_cv_cc_flag_unused_command_line_argument=no
6220fi
6221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6222fi
6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6226	CFLAGS="$xorg_testset_save_CFLAGS"
6227fi
6228
6229found="no"
6230
6231	if test $found = "no" ; then
6232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234		fi
6235
6236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238		fi
6239
6240		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6241
6242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6243printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6244		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6245		if eval test \${$cacheid+y}
6246then :
6247  printf %s "(cached) " >&6
6248else $as_nop
6249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250/* end confdefs.h.  */
6251int i;
6252int
6253main (void)
6254{
6255
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260if ac_fn_c_try_link "$LINENO"
6261then :
6262  eval $cacheid=yes
6263else $as_nop
6264  eval $cacheid=no
6265fi
6266rm -f core conftest.err conftest.$ac_objext conftest.beam \
6267    conftest$ac_exeext conftest.$ac_ext
6268fi
6269
6270
6271		CFLAGS="$xorg_testset_save_CFLAGS"
6272
6273		eval supported=\$$cacheid
6274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6275printf "%s\n" "$supported" >&6; }
6276		if test "$supported" = "yes" ; then
6277			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6278			found="yes"
6279		fi
6280	fi
6281
6282
6283
6284
6285
6286# This chunk adds additional warnings that could catch undesired effects.
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6307then :
6308  printf %s "(cached) " >&6
6309else $as_nop
6310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312int i;
6313_ACEOF
6314if ac_fn_c_try_compile "$LINENO"
6315then :
6316  xorg_cv_cc_flag_unknown_warning_option=yes
6317else $as_nop
6318  xorg_cv_cc_flag_unknown_warning_option=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6321fi
6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6325	CFLAGS="$xorg_testset_save_CFLAGS"
6326fi
6327
6328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331	fi
6332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6335if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6336then :
6337  printf %s "(cached) " >&6
6338else $as_nop
6339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340/* end confdefs.h.  */
6341int i;
6342_ACEOF
6343if ac_fn_c_try_compile "$LINENO"
6344then :
6345  xorg_cv_cc_flag_unused_command_line_argument=yes
6346else $as_nop
6347  xorg_cv_cc_flag_unused_command_line_argument=no
6348fi
6349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6350fi
6351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6354	CFLAGS="$xorg_testset_save_CFLAGS"
6355fi
6356
6357found="no"
6358
6359	if test $found = "no" ; then
6360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6362		fi
6363
6364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6366		fi
6367
6368		CFLAGS="$CFLAGS -Wunused"
6369
6370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6371printf %s "checking if $CC supports -Wunused... " >&6; }
6372		cacheid=xorg_cv_cc_flag__Wunused
6373		if eval test \${$cacheid+y}
6374then :
6375  printf %s "(cached) " >&6
6376else $as_nop
6377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379int i;
6380int
6381main (void)
6382{
6383
6384  ;
6385  return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_link "$LINENO"
6389then :
6390  eval $cacheid=yes
6391else $as_nop
6392  eval $cacheid=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.beam \
6395    conftest$ac_exeext conftest.$ac_ext
6396fi
6397
6398
6399		CFLAGS="$xorg_testset_save_CFLAGS"
6400
6401		eval supported=\$$cacheid
6402		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6403printf "%s\n" "$supported" >&6; }
6404		if test "$supported" = "yes" ; then
6405			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6406			found="yes"
6407		fi
6408	fi
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424xorg_testset_save_CFLAGS="$CFLAGS"
6425
6426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6430if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6431then :
6432  printf %s "(cached) " >&6
6433else $as_nop
6434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436int i;
6437_ACEOF
6438if ac_fn_c_try_compile "$LINENO"
6439then :
6440  xorg_cv_cc_flag_unknown_warning_option=yes
6441else $as_nop
6442  xorg_cv_cc_flag_unknown_warning_option=no
6443fi
6444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6445fi
6446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6449	CFLAGS="$xorg_testset_save_CFLAGS"
6450fi
6451
6452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455	fi
6456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6460then :
6461  printf %s "(cached) " >&6
6462else $as_nop
6463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h.  */
6465int i;
6466_ACEOF
6467if ac_fn_c_try_compile "$LINENO"
6468then :
6469  xorg_cv_cc_flag_unused_command_line_argument=yes
6470else $as_nop
6471  xorg_cv_cc_flag_unused_command_line_argument=no
6472fi
6473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6474fi
6475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6478	CFLAGS="$xorg_testset_save_CFLAGS"
6479fi
6480
6481found="no"
6482
6483	if test $found = "no" ; then
6484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6486		fi
6487
6488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6490		fi
6491
6492		CFLAGS="$CFLAGS -Wuninitialized"
6493
6494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6495printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6496		cacheid=xorg_cv_cc_flag__Wuninitialized
6497		if eval test \${$cacheid+y}
6498then :
6499  printf %s "(cached) " >&6
6500else $as_nop
6501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503int i;
6504int
6505main (void)
6506{
6507
6508  ;
6509  return 0;
6510}
6511_ACEOF
6512if ac_fn_c_try_link "$LINENO"
6513then :
6514  eval $cacheid=yes
6515else $as_nop
6516  eval $cacheid=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext conftest.beam \
6519    conftest$ac_exeext conftest.$ac_ext
6520fi
6521
6522
6523		CFLAGS="$xorg_testset_save_CFLAGS"
6524
6525		eval supported=\$$cacheid
6526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6527printf "%s\n" "$supported" >&6; }
6528		if test "$supported" = "yes" ; then
6529			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6530			found="yes"
6531		fi
6532	fi
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548xorg_testset_save_CFLAGS="$CFLAGS"
6549
6550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6554if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6555then :
6556  printf %s "(cached) " >&6
6557else $as_nop
6558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560int i;
6561_ACEOF
6562if ac_fn_c_try_compile "$LINENO"
6563then :
6564  xorg_cv_cc_flag_unknown_warning_option=yes
6565else $as_nop
6566  xorg_cv_cc_flag_unknown_warning_option=no
6567fi
6568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6569fi
6570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6573	CFLAGS="$xorg_testset_save_CFLAGS"
6574fi
6575
6576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579	fi
6580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6583if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6584then :
6585  printf %s "(cached) " >&6
6586else $as_nop
6587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589int i;
6590_ACEOF
6591if ac_fn_c_try_compile "$LINENO"
6592then :
6593  xorg_cv_cc_flag_unused_command_line_argument=yes
6594else $as_nop
6595  xorg_cv_cc_flag_unused_command_line_argument=no
6596fi
6597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6598fi
6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6602	CFLAGS="$xorg_testset_save_CFLAGS"
6603fi
6604
6605found="no"
6606
6607	if test $found = "no" ; then
6608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610		fi
6611
6612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614		fi
6615
6616		CFLAGS="$CFLAGS -Wshadow"
6617
6618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6619printf %s "checking if $CC supports -Wshadow... " >&6; }
6620		cacheid=xorg_cv_cc_flag__Wshadow
6621		if eval test \${$cacheid+y}
6622then :
6623  printf %s "(cached) " >&6
6624else $as_nop
6625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626/* end confdefs.h.  */
6627int i;
6628int
6629main (void)
6630{
6631
6632  ;
6633  return 0;
6634}
6635_ACEOF
6636if ac_fn_c_try_link "$LINENO"
6637then :
6638  eval $cacheid=yes
6639else $as_nop
6640  eval $cacheid=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.beam \
6643    conftest$ac_exeext conftest.$ac_ext
6644fi
6645
6646
6647		CFLAGS="$xorg_testset_save_CFLAGS"
6648
6649		eval supported=\$$cacheid
6650		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6651printf "%s\n" "$supported" >&6; }
6652		if test "$supported" = "yes" ; then
6653			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6654			found="yes"
6655		fi
6656	fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672xorg_testset_save_CFLAGS="$CFLAGS"
6673
6674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6678if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6679then :
6680  printf %s "(cached) " >&6
6681else $as_nop
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"
6687then :
6688  xorg_cv_cc_flag_unknown_warning_option=yes
6689else $as_nop
6690  xorg_cv_cc_flag_unknown_warning_option=no
6691fi
6692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6693fi
6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6697	CFLAGS="$xorg_testset_save_CFLAGS"
6698fi
6699
6700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703	fi
6704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6705	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6707if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6708then :
6709  printf %s "(cached) " >&6
6710else $as_nop
6711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712/* end confdefs.h.  */
6713int i;
6714_ACEOF
6715if ac_fn_c_try_compile "$LINENO"
6716then :
6717  xorg_cv_cc_flag_unused_command_line_argument=yes
6718else $as_nop
6719  xorg_cv_cc_flag_unused_command_line_argument=no
6720fi
6721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6722fi
6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6726	CFLAGS="$xorg_testset_save_CFLAGS"
6727fi
6728
6729found="no"
6730
6731	if test $found = "no" ; then
6732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6734		fi
6735
6736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6738		fi
6739
6740		CFLAGS="$CFLAGS -Wmissing-noreturn"
6741
6742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6743printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6744		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6745		if eval test \${$cacheid+y}
6746then :
6747  printf %s "(cached) " >&6
6748else $as_nop
6749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h.  */
6751int i;
6752int
6753main (void)
6754{
6755
6756  ;
6757  return 0;
6758}
6759_ACEOF
6760if ac_fn_c_try_link "$LINENO"
6761then :
6762  eval $cacheid=yes
6763else $as_nop
6764  eval $cacheid=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.beam \
6767    conftest$ac_exeext conftest.$ac_ext
6768fi
6769
6770
6771		CFLAGS="$xorg_testset_save_CFLAGS"
6772
6773		eval supported=\$$cacheid
6774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6775printf "%s\n" "$supported" >&6; }
6776		if test "$supported" = "yes" ; then
6777			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6778			found="yes"
6779		fi
6780	fi
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796xorg_testset_save_CFLAGS="$CFLAGS"
6797
6798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6802if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6803then :
6804  printf %s "(cached) " >&6
6805else $as_nop
6806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h.  */
6808int i;
6809_ACEOF
6810if ac_fn_c_try_compile "$LINENO"
6811then :
6812  xorg_cv_cc_flag_unknown_warning_option=yes
6813else $as_nop
6814  xorg_cv_cc_flag_unknown_warning_option=no
6815fi
6816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6817fi
6818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6821	CFLAGS="$xorg_testset_save_CFLAGS"
6822fi
6823
6824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6827	fi
6828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6829	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6831if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6832then :
6833  printf %s "(cached) " >&6
6834else $as_nop
6835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h.  */
6837int i;
6838_ACEOF
6839if ac_fn_c_try_compile "$LINENO"
6840then :
6841  xorg_cv_cc_flag_unused_command_line_argument=yes
6842else $as_nop
6843  xorg_cv_cc_flag_unused_command_line_argument=no
6844fi
6845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6846fi
6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6850	CFLAGS="$xorg_testset_save_CFLAGS"
6851fi
6852
6853found="no"
6854
6855	if test $found = "no" ; then
6856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858		fi
6859
6860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862		fi
6863
6864		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6865
6866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6867printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6868		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6869		if eval test \${$cacheid+y}
6870then :
6871  printf %s "(cached) " >&6
6872else $as_nop
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875int i;
6876int
6877main (void)
6878{
6879
6880  ;
6881  return 0;
6882}
6883_ACEOF
6884if ac_fn_c_try_link "$LINENO"
6885then :
6886  eval $cacheid=yes
6887else $as_nop
6888  eval $cacheid=no
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.beam \
6891    conftest$ac_exeext conftest.$ac_ext
6892fi
6893
6894
6895		CFLAGS="$xorg_testset_save_CFLAGS"
6896
6897		eval supported=\$$cacheid
6898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6899printf "%s\n" "$supported" >&6; }
6900		if test "$supported" = "yes" ; then
6901			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6902			found="yes"
6903		fi
6904	fi
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920xorg_testset_save_CFLAGS="$CFLAGS"
6921
6922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6923	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6926if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6927then :
6928  printf %s "(cached) " >&6
6929else $as_nop
6930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931/* end confdefs.h.  */
6932int i;
6933_ACEOF
6934if ac_fn_c_try_compile "$LINENO"
6935then :
6936  xorg_cv_cc_flag_unknown_warning_option=yes
6937else $as_nop
6938  xorg_cv_cc_flag_unknown_warning_option=no
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6941fi
6942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6945	CFLAGS="$xorg_testset_save_CFLAGS"
6946fi
6947
6948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951	fi
6952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6955if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6956then :
6957  printf %s "(cached) " >&6
6958else $as_nop
6959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961int i;
6962_ACEOF
6963if ac_fn_c_try_compile "$LINENO"
6964then :
6965  xorg_cv_cc_flag_unused_command_line_argument=yes
6966else $as_nop
6967  xorg_cv_cc_flag_unused_command_line_argument=no
6968fi
6969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6970fi
6971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6973	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6974	CFLAGS="$xorg_testset_save_CFLAGS"
6975fi
6976
6977found="no"
6978
6979	if test $found = "no" ; then
6980		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6981			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982		fi
6983
6984		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6985			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6986		fi
6987
6988		CFLAGS="$CFLAGS -Wredundant-decls"
6989
6990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6991printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6992		cacheid=xorg_cv_cc_flag__Wredundant_decls
6993		if eval test \${$cacheid+y}
6994then :
6995  printf %s "(cached) " >&6
6996else $as_nop
6997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h.  */
6999int i;
7000int
7001main (void)
7002{
7003
7004  ;
7005  return 0;
7006}
7007_ACEOF
7008if ac_fn_c_try_link "$LINENO"
7009then :
7010  eval $cacheid=yes
7011else $as_nop
7012  eval $cacheid=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.beam \
7015    conftest$ac_exeext conftest.$ac_ext
7016fi
7017
7018
7019		CFLAGS="$xorg_testset_save_CFLAGS"
7020
7021		eval supported=\$$cacheid
7022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7023printf "%s\n" "$supported" >&6; }
7024		if test "$supported" = "yes" ; then
7025			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7026			found="yes"
7027		fi
7028	fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044xorg_testset_save_CFLAGS="$CFLAGS"
7045
7046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7048	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7050if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7051then :
7052  printf %s "(cached) " >&6
7053else $as_nop
7054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056int i;
7057_ACEOF
7058if ac_fn_c_try_compile "$LINENO"
7059then :
7060  xorg_cv_cc_flag_unknown_warning_option=yes
7061else $as_nop
7062  xorg_cv_cc_flag_unknown_warning_option=no
7063fi
7064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7065fi
7066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7069	CFLAGS="$xorg_testset_save_CFLAGS"
7070fi
7071
7072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7075	fi
7076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7079if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7080then :
7081  printf %s "(cached) " >&6
7082else $as_nop
7083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085int i;
7086_ACEOF
7087if ac_fn_c_try_compile "$LINENO"
7088then :
7089  xorg_cv_cc_flag_unused_command_line_argument=yes
7090else $as_nop
7091  xorg_cv_cc_flag_unused_command_line_argument=no
7092fi
7093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7094fi
7095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7097	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7098	CFLAGS="$xorg_testset_save_CFLAGS"
7099fi
7100
7101found="no"
7102
7103	if test $found = "no" ; then
7104		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106		fi
7107
7108		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7109			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7110		fi
7111
7112		CFLAGS="$CFLAGS -Wlogical-op"
7113
7114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7115printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7116		cacheid=xorg_cv_cc_flag__Wlogical_op
7117		if eval test \${$cacheid+y}
7118then :
7119  printf %s "(cached) " >&6
7120else $as_nop
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123int i;
7124int
7125main (void)
7126{
7127
7128  ;
7129  return 0;
7130}
7131_ACEOF
7132if ac_fn_c_try_link "$LINENO"
7133then :
7134  eval $cacheid=yes
7135else $as_nop
7136  eval $cacheid=no
7137fi
7138rm -f core conftest.err conftest.$ac_objext conftest.beam \
7139    conftest$ac_exeext conftest.$ac_ext
7140fi
7141
7142
7143		CFLAGS="$xorg_testset_save_CFLAGS"
7144
7145		eval supported=\$$cacheid
7146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7147printf "%s\n" "$supported" >&6; }
7148		if test "$supported" = "yes" ; then
7149			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7150			found="yes"
7151		fi
7152	fi
7153
7154
7155
7156# These are currently disabled because they are noisy.  They will be enabled
7157# in the future once the codebase is sufficiently modernized to silence
7158# them.  For now, I don't want them to drown out the other warnings.
7159# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7160# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7161# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7162
7163# Turn some warnings into errors, so we don't accidently get successful builds
7164# when there are problems that should be fixed.
7165
7166if test "x$SELECTIVE_WERROR" = "xyes" ; then
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180xorg_testset_save_CFLAGS="$CFLAGS"
7181
7182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7186if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7187then :
7188  printf %s "(cached) " >&6
7189else $as_nop
7190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192int i;
7193_ACEOF
7194if ac_fn_c_try_compile "$LINENO"
7195then :
7196  xorg_cv_cc_flag_unknown_warning_option=yes
7197else $as_nop
7198  xorg_cv_cc_flag_unknown_warning_option=no
7199fi
7200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7201fi
7202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7205	CFLAGS="$xorg_testset_save_CFLAGS"
7206fi
7207
7208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7211	fi
7212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7213	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7215if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7216then :
7217  printf %s "(cached) " >&6
7218else $as_nop
7219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h.  */
7221int i;
7222_ACEOF
7223if ac_fn_c_try_compile "$LINENO"
7224then :
7225  xorg_cv_cc_flag_unused_command_line_argument=yes
7226else $as_nop
7227  xorg_cv_cc_flag_unused_command_line_argument=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7230fi
7231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7233	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7234	CFLAGS="$xorg_testset_save_CFLAGS"
7235fi
7236
7237found="no"
7238
7239	if test $found = "no" ; then
7240		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242		fi
7243
7244		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7246		fi
7247
7248		CFLAGS="$CFLAGS -Werror=implicit"
7249
7250		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7251printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7252		cacheid=xorg_cv_cc_flag__Werror_implicit
7253		if eval test \${$cacheid+y}
7254then :
7255  printf %s "(cached) " >&6
7256else $as_nop
7257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259int i;
7260int
7261main (void)
7262{
7263
7264  ;
7265  return 0;
7266}
7267_ACEOF
7268if ac_fn_c_try_link "$LINENO"
7269then :
7270  eval $cacheid=yes
7271else $as_nop
7272  eval $cacheid=no
7273fi
7274rm -f core conftest.err conftest.$ac_objext conftest.beam \
7275    conftest$ac_exeext conftest.$ac_ext
7276fi
7277
7278
7279		CFLAGS="$xorg_testset_save_CFLAGS"
7280
7281		eval supported=\$$cacheid
7282		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7283printf "%s\n" "$supported" >&6; }
7284		if test "$supported" = "yes" ; then
7285			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7286			found="yes"
7287		fi
7288	fi
7289
7290	if test $found = "no" ; then
7291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293		fi
7294
7295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7297		fi
7298
7299		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7300
7301		{ 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
7302printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7303		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7304		if eval test \${$cacheid+y}
7305then :
7306  printf %s "(cached) " >&6
7307else $as_nop
7308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310int i;
7311int
7312main (void)
7313{
7314
7315  ;
7316  return 0;
7317}
7318_ACEOF
7319if ac_fn_c_try_link "$LINENO"
7320then :
7321  eval $cacheid=yes
7322else $as_nop
7323  eval $cacheid=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.beam \
7326    conftest$ac_exeext conftest.$ac_ext
7327fi
7328
7329
7330		CFLAGS="$xorg_testset_save_CFLAGS"
7331
7332		eval supported=\$$cacheid
7333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7334printf "%s\n" "$supported" >&6; }
7335		if test "$supported" = "yes" ; then
7336			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7337			found="yes"
7338		fi
7339	fi
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355xorg_testset_save_CFLAGS="$CFLAGS"
7356
7357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7361if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7362then :
7363  printf %s "(cached) " >&6
7364else $as_nop
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"
7370then :
7371  xorg_cv_cc_flag_unknown_warning_option=yes
7372else $as_nop
7373  xorg_cv_cc_flag_unknown_warning_option=no
7374fi
7375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7376fi
7377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7380	CFLAGS="$xorg_testset_save_CFLAGS"
7381fi
7382
7383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386	fi
7387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7390if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7391then :
7392  printf %s "(cached) " >&6
7393else $as_nop
7394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395/* end confdefs.h.  */
7396int i;
7397_ACEOF
7398if ac_fn_c_try_compile "$LINENO"
7399then :
7400  xorg_cv_cc_flag_unused_command_line_argument=yes
7401else $as_nop
7402  xorg_cv_cc_flag_unused_command_line_argument=no
7403fi
7404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7405fi
7406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7409	CFLAGS="$xorg_testset_save_CFLAGS"
7410fi
7411
7412found="no"
7413
7414	if test $found = "no" ; then
7415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417		fi
7418
7419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421		fi
7422
7423		CFLAGS="$CFLAGS -Werror=nonnull"
7424
7425		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7426printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7427		cacheid=xorg_cv_cc_flag__Werror_nonnull
7428		if eval test \${$cacheid+y}
7429then :
7430  printf %s "(cached) " >&6
7431else $as_nop
7432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h.  */
7434int i;
7435int
7436main (void)
7437{
7438
7439  ;
7440  return 0;
7441}
7442_ACEOF
7443if ac_fn_c_try_link "$LINENO"
7444then :
7445  eval $cacheid=yes
7446else $as_nop
7447  eval $cacheid=no
7448fi
7449rm -f core conftest.err conftest.$ac_objext conftest.beam \
7450    conftest$ac_exeext conftest.$ac_ext
7451fi
7452
7453
7454		CFLAGS="$xorg_testset_save_CFLAGS"
7455
7456		eval supported=\$$cacheid
7457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7458printf "%s\n" "$supported" >&6; }
7459		if test "$supported" = "yes" ; then
7460			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7461			found="yes"
7462		fi
7463	fi
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479xorg_testset_save_CFLAGS="$CFLAGS"
7480
7481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7485if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7486then :
7487  printf %s "(cached) " >&6
7488else $as_nop
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491int i;
7492_ACEOF
7493if ac_fn_c_try_compile "$LINENO"
7494then :
7495  xorg_cv_cc_flag_unknown_warning_option=yes
7496else $as_nop
7497  xorg_cv_cc_flag_unknown_warning_option=no
7498fi
7499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7500fi
7501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7504	CFLAGS="$xorg_testset_save_CFLAGS"
7505fi
7506
7507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510	fi
7511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7514if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7515then :
7516  printf %s "(cached) " >&6
7517else $as_nop
7518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519/* end confdefs.h.  */
7520int i;
7521_ACEOF
7522if ac_fn_c_try_compile "$LINENO"
7523then :
7524  xorg_cv_cc_flag_unused_command_line_argument=yes
7525else $as_nop
7526  xorg_cv_cc_flag_unused_command_line_argument=no
7527fi
7528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7529fi
7530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7533	CFLAGS="$xorg_testset_save_CFLAGS"
7534fi
7535
7536found="no"
7537
7538	if test $found = "no" ; then
7539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541		fi
7542
7543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7545		fi
7546
7547		CFLAGS="$CFLAGS -Werror=init-self"
7548
7549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7550printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7551		cacheid=xorg_cv_cc_flag__Werror_init_self
7552		if eval test \${$cacheid+y}
7553then :
7554  printf %s "(cached) " >&6
7555else $as_nop
7556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h.  */
7558int i;
7559int
7560main (void)
7561{
7562
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_link "$LINENO"
7568then :
7569  eval $cacheid=yes
7570else $as_nop
7571  eval $cacheid=no
7572fi
7573rm -f core conftest.err conftest.$ac_objext conftest.beam \
7574    conftest$ac_exeext conftest.$ac_ext
7575fi
7576
7577
7578		CFLAGS="$xorg_testset_save_CFLAGS"
7579
7580		eval supported=\$$cacheid
7581		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7582printf "%s\n" "$supported" >&6; }
7583		if test "$supported" = "yes" ; then
7584			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7585			found="yes"
7586		fi
7587	fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603xorg_testset_save_CFLAGS="$CFLAGS"
7604
7605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7609if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7610then :
7611  printf %s "(cached) " >&6
7612else $as_nop
7613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h.  */
7615int i;
7616_ACEOF
7617if ac_fn_c_try_compile "$LINENO"
7618then :
7619  xorg_cv_cc_flag_unknown_warning_option=yes
7620else $as_nop
7621  xorg_cv_cc_flag_unknown_warning_option=no
7622fi
7623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7624fi
7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7628	CFLAGS="$xorg_testset_save_CFLAGS"
7629fi
7630
7631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7634	fi
7635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7639then :
7640  printf %s "(cached) " >&6
7641else $as_nop
7642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644int i;
7645_ACEOF
7646if ac_fn_c_try_compile "$LINENO"
7647then :
7648  xorg_cv_cc_flag_unused_command_line_argument=yes
7649else $as_nop
7650  xorg_cv_cc_flag_unused_command_line_argument=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7653fi
7654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7657	CFLAGS="$xorg_testset_save_CFLAGS"
7658fi
7659
7660found="no"
7661
7662	if test $found = "no" ; then
7663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665		fi
7666
7667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7669		fi
7670
7671		CFLAGS="$CFLAGS -Werror=main"
7672
7673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7674printf %s "checking if $CC supports -Werror=main... " >&6; }
7675		cacheid=xorg_cv_cc_flag__Werror_main
7676		if eval test \${$cacheid+y}
7677then :
7678  printf %s "(cached) " >&6
7679else $as_nop
7680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h.  */
7682int i;
7683int
7684main (void)
7685{
7686
7687  ;
7688  return 0;
7689}
7690_ACEOF
7691if ac_fn_c_try_link "$LINENO"
7692then :
7693  eval $cacheid=yes
7694else $as_nop
7695  eval $cacheid=no
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.beam \
7698    conftest$ac_exeext conftest.$ac_ext
7699fi
7700
7701
7702		CFLAGS="$xorg_testset_save_CFLAGS"
7703
7704		eval supported=\$$cacheid
7705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7706printf "%s\n" "$supported" >&6; }
7707		if test "$supported" = "yes" ; then
7708			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7709			found="yes"
7710		fi
7711	fi
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727xorg_testset_save_CFLAGS="$CFLAGS"
7728
7729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7733if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7734then :
7735  printf %s "(cached) " >&6
7736else $as_nop
7737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h.  */
7739int i;
7740_ACEOF
7741if ac_fn_c_try_compile "$LINENO"
7742then :
7743  xorg_cv_cc_flag_unknown_warning_option=yes
7744else $as_nop
7745  xorg_cv_cc_flag_unknown_warning_option=no
7746fi
7747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7748fi
7749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7752	CFLAGS="$xorg_testset_save_CFLAGS"
7753fi
7754
7755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758	fi
7759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7763then :
7764  printf %s "(cached) " >&6
7765else $as_nop
7766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h.  */
7768int i;
7769_ACEOF
7770if ac_fn_c_try_compile "$LINENO"
7771then :
7772  xorg_cv_cc_flag_unused_command_line_argument=yes
7773else $as_nop
7774  xorg_cv_cc_flag_unused_command_line_argument=no
7775fi
7776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7777fi
7778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7781	CFLAGS="$xorg_testset_save_CFLAGS"
7782fi
7783
7784found="no"
7785
7786	if test $found = "no" ; then
7787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789		fi
7790
7791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7793		fi
7794
7795		CFLAGS="$CFLAGS -Werror=missing-braces"
7796
7797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7798printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7799		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7800		if eval test \${$cacheid+y}
7801then :
7802  printf %s "(cached) " >&6
7803else $as_nop
7804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805/* end confdefs.h.  */
7806int i;
7807int
7808main (void)
7809{
7810
7811  ;
7812  return 0;
7813}
7814_ACEOF
7815if ac_fn_c_try_link "$LINENO"
7816then :
7817  eval $cacheid=yes
7818else $as_nop
7819  eval $cacheid=no
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.beam \
7822    conftest$ac_exeext conftest.$ac_ext
7823fi
7824
7825
7826		CFLAGS="$xorg_testset_save_CFLAGS"
7827
7828		eval supported=\$$cacheid
7829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7830printf "%s\n" "$supported" >&6; }
7831		if test "$supported" = "yes" ; then
7832			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7833			found="yes"
7834		fi
7835	fi
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851xorg_testset_save_CFLAGS="$CFLAGS"
7852
7853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7857if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7858then :
7859  printf %s "(cached) " >&6
7860else $as_nop
7861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h.  */
7863int i;
7864_ACEOF
7865if ac_fn_c_try_compile "$LINENO"
7866then :
7867  xorg_cv_cc_flag_unknown_warning_option=yes
7868else $as_nop
7869  xorg_cv_cc_flag_unknown_warning_option=no
7870fi
7871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7872fi
7873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7876	CFLAGS="$xorg_testset_save_CFLAGS"
7877fi
7878
7879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882	fi
7883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7886if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7887then :
7888  printf %s "(cached) " >&6
7889else $as_nop
7890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891/* end confdefs.h.  */
7892int i;
7893_ACEOF
7894if ac_fn_c_try_compile "$LINENO"
7895then :
7896  xorg_cv_cc_flag_unused_command_line_argument=yes
7897else $as_nop
7898  xorg_cv_cc_flag_unused_command_line_argument=no
7899fi
7900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7901fi
7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7905	CFLAGS="$xorg_testset_save_CFLAGS"
7906fi
7907
7908found="no"
7909
7910	if test $found = "no" ; then
7911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913		fi
7914
7915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917		fi
7918
7919		CFLAGS="$CFLAGS -Werror=sequence-point"
7920
7921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7922printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7923		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7924		if eval test \${$cacheid+y}
7925then :
7926  printf %s "(cached) " >&6
7927else $as_nop
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930int i;
7931int
7932main (void)
7933{
7934
7935  ;
7936  return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_link "$LINENO"
7940then :
7941  eval $cacheid=yes
7942else $as_nop
7943  eval $cacheid=no
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.beam \
7946    conftest$ac_exeext conftest.$ac_ext
7947fi
7948
7949
7950		CFLAGS="$xorg_testset_save_CFLAGS"
7951
7952		eval supported=\$$cacheid
7953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7954printf "%s\n" "$supported" >&6; }
7955		if test "$supported" = "yes" ; then
7956			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7957			found="yes"
7958		fi
7959	fi
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975xorg_testset_save_CFLAGS="$CFLAGS"
7976
7977if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7978	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7980printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7981if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7982then :
7983  printf %s "(cached) " >&6
7984else $as_nop
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987int i;
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"
7990then :
7991  xorg_cv_cc_flag_unknown_warning_option=yes
7992else $as_nop
7993  xorg_cv_cc_flag_unknown_warning_option=no
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7996fi
7997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8000	CFLAGS="$xorg_testset_save_CFLAGS"
8001fi
8002
8003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006	fi
8007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8011then :
8012  printf %s "(cached) " >&6
8013else $as_nop
8014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h.  */
8016int i;
8017_ACEOF
8018if ac_fn_c_try_compile "$LINENO"
8019then :
8020  xorg_cv_cc_flag_unused_command_line_argument=yes
8021else $as_nop
8022  xorg_cv_cc_flag_unused_command_line_argument=no
8023fi
8024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8025fi
8026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8027printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8028	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8029	CFLAGS="$xorg_testset_save_CFLAGS"
8030fi
8031
8032found="no"
8033
8034	if test $found = "no" ; then
8035		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8036			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037		fi
8038
8039		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8040			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041		fi
8042
8043		CFLAGS="$CFLAGS -Werror=return-type"
8044
8045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8046printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8047		cacheid=xorg_cv_cc_flag__Werror_return_type
8048		if eval test \${$cacheid+y}
8049then :
8050  printf %s "(cached) " >&6
8051else $as_nop
8052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053/* end confdefs.h.  */
8054int i;
8055int
8056main (void)
8057{
8058
8059  ;
8060  return 0;
8061}
8062_ACEOF
8063if ac_fn_c_try_link "$LINENO"
8064then :
8065  eval $cacheid=yes
8066else $as_nop
8067  eval $cacheid=no
8068fi
8069rm -f core conftest.err conftest.$ac_objext conftest.beam \
8070    conftest$ac_exeext conftest.$ac_ext
8071fi
8072
8073
8074		CFLAGS="$xorg_testset_save_CFLAGS"
8075
8076		eval supported=\$$cacheid
8077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8078printf "%s\n" "$supported" >&6; }
8079		if test "$supported" = "yes" ; then
8080			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8081			found="yes"
8082		fi
8083	fi
8084
8085	if test $found = "no" ; then
8086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8088		fi
8089
8090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8092		fi
8093
8094		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8095
8096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8097printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8098		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8099		if eval test \${$cacheid+y}
8100then :
8101  printf %s "(cached) " >&6
8102else $as_nop
8103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h.  */
8105int i;
8106int
8107main (void)
8108{
8109
8110  ;
8111  return 0;
8112}
8113_ACEOF
8114if ac_fn_c_try_link "$LINENO"
8115then :
8116  eval $cacheid=yes
8117else $as_nop
8118  eval $cacheid=no
8119fi
8120rm -f core conftest.err conftest.$ac_objext conftest.beam \
8121    conftest$ac_exeext conftest.$ac_ext
8122fi
8123
8124
8125		CFLAGS="$xorg_testset_save_CFLAGS"
8126
8127		eval supported=\$$cacheid
8128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8129printf "%s\n" "$supported" >&6; }
8130		if test "$supported" = "yes" ; then
8131			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8132			found="yes"
8133		fi
8134	fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150xorg_testset_save_CFLAGS="$CFLAGS"
8151
8152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8157then :
8158  printf %s "(cached) " >&6
8159else $as_nop
8160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h.  */
8162int i;
8163_ACEOF
8164if ac_fn_c_try_compile "$LINENO"
8165then :
8166  xorg_cv_cc_flag_unknown_warning_option=yes
8167else $as_nop
8168  xorg_cv_cc_flag_unknown_warning_option=no
8169fi
8170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8171fi
8172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8175	CFLAGS="$xorg_testset_save_CFLAGS"
8176fi
8177
8178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181	fi
8182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8186then :
8187  printf %s "(cached) " >&6
8188else $as_nop
8189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191int i;
8192_ACEOF
8193if ac_fn_c_try_compile "$LINENO"
8194then :
8195  xorg_cv_cc_flag_unused_command_line_argument=yes
8196else $as_nop
8197  xorg_cv_cc_flag_unused_command_line_argument=no
8198fi
8199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8200fi
8201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8204	CFLAGS="$xorg_testset_save_CFLAGS"
8205fi
8206
8207found="no"
8208
8209	if test $found = "no" ; then
8210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212		fi
8213
8214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8216		fi
8217
8218		CFLAGS="$CFLAGS -Werror=trigraphs"
8219
8220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8221printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8222		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8223		if eval test \${$cacheid+y}
8224then :
8225  printf %s "(cached) " >&6
8226else $as_nop
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229int i;
8230int
8231main (void)
8232{
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"
8239then :
8240  eval $cacheid=yes
8241else $as_nop
8242  eval $cacheid=no
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.beam \
8245    conftest$ac_exeext conftest.$ac_ext
8246fi
8247
8248
8249		CFLAGS="$xorg_testset_save_CFLAGS"
8250
8251		eval supported=\$$cacheid
8252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8253printf "%s\n" "$supported" >&6; }
8254		if test "$supported" = "yes" ; then
8255			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8256			found="yes"
8257		fi
8258	fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274xorg_testset_save_CFLAGS="$CFLAGS"
8275
8276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8280if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8281then :
8282  printf %s "(cached) " >&6
8283else $as_nop
8284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286int i;
8287_ACEOF
8288if ac_fn_c_try_compile "$LINENO"
8289then :
8290  xorg_cv_cc_flag_unknown_warning_option=yes
8291else $as_nop
8292  xorg_cv_cc_flag_unknown_warning_option=no
8293fi
8294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8295fi
8296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8299	CFLAGS="$xorg_testset_save_CFLAGS"
8300fi
8301
8302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305	fi
8306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8310then :
8311  printf %s "(cached) " >&6
8312else $as_nop
8313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314/* end confdefs.h.  */
8315int i;
8316_ACEOF
8317if ac_fn_c_try_compile "$LINENO"
8318then :
8319  xorg_cv_cc_flag_unused_command_line_argument=yes
8320else $as_nop
8321  xorg_cv_cc_flag_unused_command_line_argument=no
8322fi
8323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8324fi
8325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8328	CFLAGS="$xorg_testset_save_CFLAGS"
8329fi
8330
8331found="no"
8332
8333	if test $found = "no" ; then
8334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336		fi
8337
8338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340		fi
8341
8342		CFLAGS="$CFLAGS -Werror=array-bounds"
8343
8344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8345printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8346		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8347		if eval test \${$cacheid+y}
8348then :
8349  printf %s "(cached) " >&6
8350else $as_nop
8351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h.  */
8353int i;
8354int
8355main (void)
8356{
8357
8358  ;
8359  return 0;
8360}
8361_ACEOF
8362if ac_fn_c_try_link "$LINENO"
8363then :
8364  eval $cacheid=yes
8365else $as_nop
8366  eval $cacheid=no
8367fi
8368rm -f core conftest.err conftest.$ac_objext conftest.beam \
8369    conftest$ac_exeext conftest.$ac_ext
8370fi
8371
8372
8373		CFLAGS="$xorg_testset_save_CFLAGS"
8374
8375		eval supported=\$$cacheid
8376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8377printf "%s\n" "$supported" >&6; }
8378		if test "$supported" = "yes" ; then
8379			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8380			found="yes"
8381		fi
8382	fi
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398xorg_testset_save_CFLAGS="$CFLAGS"
8399
8400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8405then :
8406  printf %s "(cached) " >&6
8407else $as_nop
8408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h.  */
8410int i;
8411_ACEOF
8412if ac_fn_c_try_compile "$LINENO"
8413then :
8414  xorg_cv_cc_flag_unknown_warning_option=yes
8415else $as_nop
8416  xorg_cv_cc_flag_unknown_warning_option=no
8417fi
8418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8419fi
8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8423	CFLAGS="$xorg_testset_save_CFLAGS"
8424fi
8425
8426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429	fi
8430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8433if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8434then :
8435  printf %s "(cached) " >&6
8436else $as_nop
8437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438/* end confdefs.h.  */
8439int i;
8440_ACEOF
8441if ac_fn_c_try_compile "$LINENO"
8442then :
8443  xorg_cv_cc_flag_unused_command_line_argument=yes
8444else $as_nop
8445  xorg_cv_cc_flag_unused_command_line_argument=no
8446fi
8447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8448fi
8449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8452	CFLAGS="$xorg_testset_save_CFLAGS"
8453fi
8454
8455found="no"
8456
8457	if test $found = "no" ; then
8458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460		fi
8461
8462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8464		fi
8465
8466		CFLAGS="$CFLAGS -Werror=write-strings"
8467
8468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8469printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8470		cacheid=xorg_cv_cc_flag__Werror_write_strings
8471		if eval test \${$cacheid+y}
8472then :
8473  printf %s "(cached) " >&6
8474else $as_nop
8475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477int i;
8478int
8479main (void)
8480{
8481
8482  ;
8483  return 0;
8484}
8485_ACEOF
8486if ac_fn_c_try_link "$LINENO"
8487then :
8488  eval $cacheid=yes
8489else $as_nop
8490  eval $cacheid=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext conftest.beam \
8493    conftest$ac_exeext conftest.$ac_ext
8494fi
8495
8496
8497		CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499		eval supported=\$$cacheid
8500		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501printf "%s\n" "$supported" >&6; }
8502		if test "$supported" = "yes" ; then
8503			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8504			found="yes"
8505		fi
8506	fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522xorg_testset_save_CFLAGS="$CFLAGS"
8523
8524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8528if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8529then :
8530  printf %s "(cached) " >&6
8531else $as_nop
8532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533/* end confdefs.h.  */
8534int i;
8535_ACEOF
8536if ac_fn_c_try_compile "$LINENO"
8537then :
8538  xorg_cv_cc_flag_unknown_warning_option=yes
8539else $as_nop
8540  xorg_cv_cc_flag_unknown_warning_option=no
8541fi
8542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8543fi
8544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8547	CFLAGS="$xorg_testset_save_CFLAGS"
8548fi
8549
8550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553	fi
8554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8555	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8557if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8558then :
8559  printf %s "(cached) " >&6
8560else $as_nop
8561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563int i;
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"
8566then :
8567  xorg_cv_cc_flag_unused_command_line_argument=yes
8568else $as_nop
8569  xorg_cv_cc_flag_unused_command_line_argument=no
8570fi
8571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8572fi
8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8576	CFLAGS="$xorg_testset_save_CFLAGS"
8577fi
8578
8579found="no"
8580
8581	if test $found = "no" ; then
8582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8584		fi
8585
8586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8588		fi
8589
8590		CFLAGS="$CFLAGS -Werror=address"
8591
8592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8593printf %s "checking if $CC supports -Werror=address... " >&6; }
8594		cacheid=xorg_cv_cc_flag__Werror_address
8595		if eval test \${$cacheid+y}
8596then :
8597  printf %s "(cached) " >&6
8598else $as_nop
8599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600/* end confdefs.h.  */
8601int i;
8602int
8603main (void)
8604{
8605
8606  ;
8607  return 0;
8608}
8609_ACEOF
8610if ac_fn_c_try_link "$LINENO"
8611then :
8612  eval $cacheid=yes
8613else $as_nop
8614  eval $cacheid=no
8615fi
8616rm -f core conftest.err conftest.$ac_objext conftest.beam \
8617    conftest$ac_exeext conftest.$ac_ext
8618fi
8619
8620
8621		CFLAGS="$xorg_testset_save_CFLAGS"
8622
8623		eval supported=\$$cacheid
8624		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8625printf "%s\n" "$supported" >&6; }
8626		if test "$supported" = "yes" ; then
8627			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8628			found="yes"
8629		fi
8630	fi
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646xorg_testset_save_CFLAGS="$CFLAGS"
8647
8648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8652if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8653then :
8654  printf %s "(cached) " >&6
8655else $as_nop
8656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658int i;
8659_ACEOF
8660if ac_fn_c_try_compile "$LINENO"
8661then :
8662  xorg_cv_cc_flag_unknown_warning_option=yes
8663else $as_nop
8664  xorg_cv_cc_flag_unknown_warning_option=no
8665fi
8666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8667fi
8668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8669printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8671	CFLAGS="$xorg_testset_save_CFLAGS"
8672fi
8673
8674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8677	fi
8678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8679	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8680printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8681if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8682then :
8683  printf %s "(cached) " >&6
8684else $as_nop
8685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h.  */
8687int i;
8688_ACEOF
8689if ac_fn_c_try_compile "$LINENO"
8690then :
8691  xorg_cv_cc_flag_unused_command_line_argument=yes
8692else $as_nop
8693  xorg_cv_cc_flag_unused_command_line_argument=no
8694fi
8695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8696fi
8697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8700	CFLAGS="$xorg_testset_save_CFLAGS"
8701fi
8702
8703found="no"
8704
8705	if test $found = "no" ; then
8706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708		fi
8709
8710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8712		fi
8713
8714		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8715
8716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8717printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8718		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8719		if eval test \${$cacheid+y}
8720then :
8721  printf %s "(cached) " >&6
8722else $as_nop
8723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h.  */
8725int i;
8726int
8727main (void)
8728{
8729
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_link "$LINENO"
8735then :
8736  eval $cacheid=yes
8737else $as_nop
8738  eval $cacheid=no
8739fi
8740rm -f core conftest.err conftest.$ac_objext conftest.beam \
8741    conftest$ac_exeext conftest.$ac_ext
8742fi
8743
8744
8745		CFLAGS="$xorg_testset_save_CFLAGS"
8746
8747		eval supported=\$$cacheid
8748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8749printf "%s\n" "$supported" >&6; }
8750		if test "$supported" = "yes" ; then
8751			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8752			found="yes"
8753		fi
8754	fi
8755
8756	if test $found = "no" ; then
8757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759		fi
8760
8761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8763		fi
8764
8765		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8766
8767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8768printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8769		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8770		if eval test \${$cacheid+y}
8771then :
8772  printf %s "(cached) " >&6
8773else $as_nop
8774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775/* end confdefs.h.  */
8776int i;
8777int
8778main (void)
8779{
8780
8781  ;
8782  return 0;
8783}
8784_ACEOF
8785if ac_fn_c_try_link "$LINENO"
8786then :
8787  eval $cacheid=yes
8788else $as_nop
8789  eval $cacheid=no
8790fi
8791rm -f core conftest.err conftest.$ac_objext conftest.beam \
8792    conftest$ac_exeext conftest.$ac_ext
8793fi
8794
8795
8796		CFLAGS="$xorg_testset_save_CFLAGS"
8797
8798		eval supported=\$$cacheid
8799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8800printf "%s\n" "$supported" >&6; }
8801		if test "$supported" = "yes" ; then
8802			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8803			found="yes"
8804		fi
8805	fi
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821xorg_testset_save_CFLAGS="$CFLAGS"
8822
8823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8828then :
8829  printf %s "(cached) " >&6
8830else $as_nop
8831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h.  */
8833int i;
8834_ACEOF
8835if ac_fn_c_try_compile "$LINENO"
8836then :
8837  xorg_cv_cc_flag_unknown_warning_option=yes
8838else $as_nop
8839  xorg_cv_cc_flag_unknown_warning_option=no
8840fi
8841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8842fi
8843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8844printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8846	CFLAGS="$xorg_testset_save_CFLAGS"
8847fi
8848
8849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852	fi
8853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8855printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8856if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8857then :
8858  printf %s "(cached) " >&6
8859else $as_nop
8860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862int i;
8863_ACEOF
8864if ac_fn_c_try_compile "$LINENO"
8865then :
8866  xorg_cv_cc_flag_unused_command_line_argument=yes
8867else $as_nop
8868  xorg_cv_cc_flag_unused_command_line_argument=no
8869fi
8870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8871fi
8872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8873printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8875	CFLAGS="$xorg_testset_save_CFLAGS"
8876fi
8877
8878found="no"
8879
8880	if test $found = "no" ; then
8881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8883		fi
8884
8885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8887		fi
8888
8889		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8890
8891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8892printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8893		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8894		if eval test \${$cacheid+y}
8895then :
8896  printf %s "(cached) " >&6
8897else $as_nop
8898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899/* end confdefs.h.  */
8900int i;
8901int
8902main (void)
8903{
8904
8905  ;
8906  return 0;
8907}
8908_ACEOF
8909if ac_fn_c_try_link "$LINENO"
8910then :
8911  eval $cacheid=yes
8912else $as_nop
8913  eval $cacheid=no
8914fi
8915rm -f core conftest.err conftest.$ac_objext conftest.beam \
8916    conftest$ac_exeext conftest.$ac_ext
8917fi
8918
8919
8920		CFLAGS="$xorg_testset_save_CFLAGS"
8921
8922		eval supported=\$$cacheid
8923		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8924printf "%s\n" "$supported" >&6; }
8925		if test "$supported" = "yes" ; then
8926			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8927			found="yes"
8928		fi
8929	fi
8930
8931 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8932else
8933{ 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
8934printf "%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;}
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948xorg_testset_save_CFLAGS="$CFLAGS"
8949
8950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8954if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8955then :
8956  printf %s "(cached) " >&6
8957else $as_nop
8958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959/* end confdefs.h.  */
8960int i;
8961_ACEOF
8962if ac_fn_c_try_compile "$LINENO"
8963then :
8964  xorg_cv_cc_flag_unknown_warning_option=yes
8965else $as_nop
8966  xorg_cv_cc_flag_unknown_warning_option=no
8967fi
8968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8969fi
8970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8972	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8973	CFLAGS="$xorg_testset_save_CFLAGS"
8974fi
8975
8976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8977	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8978		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979	fi
8980	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8983if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8984then :
8985  printf %s "(cached) " >&6
8986else $as_nop
8987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989int i;
8990_ACEOF
8991if ac_fn_c_try_compile "$LINENO"
8992then :
8993  xorg_cv_cc_flag_unused_command_line_argument=yes
8994else $as_nop
8995  xorg_cv_cc_flag_unused_command_line_argument=no
8996fi
8997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8998fi
8999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9002	CFLAGS="$xorg_testset_save_CFLAGS"
9003fi
9004
9005found="no"
9006
9007	if test $found = "no" ; then
9008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9010		fi
9011
9012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9014		fi
9015
9016		CFLAGS="$CFLAGS -Wimplicit"
9017
9018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9019printf %s "checking if $CC supports -Wimplicit... " >&6; }
9020		cacheid=xorg_cv_cc_flag__Wimplicit
9021		if eval test \${$cacheid+y}
9022then :
9023  printf %s "(cached) " >&6
9024else $as_nop
9025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h.  */
9027int i;
9028int
9029main (void)
9030{
9031
9032  ;
9033  return 0;
9034}
9035_ACEOF
9036if ac_fn_c_try_link "$LINENO"
9037then :
9038  eval $cacheid=yes
9039else $as_nop
9040  eval $cacheid=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.beam \
9043    conftest$ac_exeext conftest.$ac_ext
9044fi
9045
9046
9047		CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049		eval supported=\$$cacheid
9050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051printf "%s\n" "$supported" >&6; }
9052		if test "$supported" = "yes" ; then
9053			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9054			found="yes"
9055		fi
9056	fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9079then :
9080  printf %s "(cached) " >&6
9081else $as_nop
9082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084int i;
9085_ACEOF
9086if ac_fn_c_try_compile "$LINENO"
9087then :
9088  xorg_cv_cc_flag_unknown_warning_option=yes
9089else $as_nop
9090  xorg_cv_cc_flag_unknown_warning_option=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9093fi
9094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9097	CFLAGS="$xorg_testset_save_CFLAGS"
9098fi
9099
9100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103	fi
9104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9107if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9108then :
9109  printf %s "(cached) " >&6
9110else $as_nop
9111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112/* end confdefs.h.  */
9113int i;
9114_ACEOF
9115if ac_fn_c_try_compile "$LINENO"
9116then :
9117  xorg_cv_cc_flag_unused_command_line_argument=yes
9118else $as_nop
9119  xorg_cv_cc_flag_unused_command_line_argument=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9122fi
9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126	CFLAGS="$xorg_testset_save_CFLAGS"
9127fi
9128
9129found="no"
9130
9131	if test $found = "no" ; then
9132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134		fi
9135
9136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138		fi
9139
9140		CFLAGS="$CFLAGS -Wnonnull"
9141
9142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9143printf %s "checking if $CC supports -Wnonnull... " >&6; }
9144		cacheid=xorg_cv_cc_flag__Wnonnull
9145		if eval test \${$cacheid+y}
9146then :
9147  printf %s "(cached) " >&6
9148else $as_nop
9149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150/* end confdefs.h.  */
9151int i;
9152int
9153main (void)
9154{
9155
9156  ;
9157  return 0;
9158}
9159_ACEOF
9160if ac_fn_c_try_link "$LINENO"
9161then :
9162  eval $cacheid=yes
9163else $as_nop
9164  eval $cacheid=no
9165fi
9166rm -f core conftest.err conftest.$ac_objext conftest.beam \
9167    conftest$ac_exeext conftest.$ac_ext
9168fi
9169
9170
9171		CFLAGS="$xorg_testset_save_CFLAGS"
9172
9173		eval supported=\$$cacheid
9174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9175printf "%s\n" "$supported" >&6; }
9176		if test "$supported" = "yes" ; then
9177			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9178			found="yes"
9179		fi
9180	fi
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196xorg_testset_save_CFLAGS="$CFLAGS"
9197
9198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9202if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9203then :
9204  printf %s "(cached) " >&6
9205else $as_nop
9206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h.  */
9208int i;
9209_ACEOF
9210if ac_fn_c_try_compile "$LINENO"
9211then :
9212  xorg_cv_cc_flag_unknown_warning_option=yes
9213else $as_nop
9214  xorg_cv_cc_flag_unknown_warning_option=no
9215fi
9216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9217fi
9218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9221	CFLAGS="$xorg_testset_save_CFLAGS"
9222fi
9223
9224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227	fi
9228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9231if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9232then :
9233  printf %s "(cached) " >&6
9234else $as_nop
9235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236/* end confdefs.h.  */
9237int i;
9238_ACEOF
9239if ac_fn_c_try_compile "$LINENO"
9240then :
9241  xorg_cv_cc_flag_unused_command_line_argument=yes
9242else $as_nop
9243  xorg_cv_cc_flag_unused_command_line_argument=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9246fi
9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9250	CFLAGS="$xorg_testset_save_CFLAGS"
9251fi
9252
9253found="no"
9254
9255	if test $found = "no" ; then
9256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258		fi
9259
9260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9262		fi
9263
9264		CFLAGS="$CFLAGS -Winit-self"
9265
9266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9267printf %s "checking if $CC supports -Winit-self... " >&6; }
9268		cacheid=xorg_cv_cc_flag__Winit_self
9269		if eval test \${$cacheid+y}
9270then :
9271  printf %s "(cached) " >&6
9272else $as_nop
9273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275int i;
9276int
9277main (void)
9278{
9279
9280  ;
9281  return 0;
9282}
9283_ACEOF
9284if ac_fn_c_try_link "$LINENO"
9285then :
9286  eval $cacheid=yes
9287else $as_nop
9288  eval $cacheid=no
9289fi
9290rm -f core conftest.err conftest.$ac_objext conftest.beam \
9291    conftest$ac_exeext conftest.$ac_ext
9292fi
9293
9294
9295		CFLAGS="$xorg_testset_save_CFLAGS"
9296
9297		eval supported=\$$cacheid
9298		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9299printf "%s\n" "$supported" >&6; }
9300		if test "$supported" = "yes" ; then
9301			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9302			found="yes"
9303		fi
9304	fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320xorg_testset_save_CFLAGS="$CFLAGS"
9321
9322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9326if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9327then :
9328  printf %s "(cached) " >&6
9329else $as_nop
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333_ACEOF
9334if ac_fn_c_try_compile "$LINENO"
9335then :
9336  xorg_cv_cc_flag_unknown_warning_option=yes
9337else $as_nop
9338  xorg_cv_cc_flag_unknown_warning_option=no
9339fi
9340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9341fi
9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9345	CFLAGS="$xorg_testset_save_CFLAGS"
9346fi
9347
9348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9351	fi
9352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9353	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9355if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9356then :
9357  printf %s "(cached) " >&6
9358else $as_nop
9359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h.  */
9361int i;
9362_ACEOF
9363if ac_fn_c_try_compile "$LINENO"
9364then :
9365  xorg_cv_cc_flag_unused_command_line_argument=yes
9366else $as_nop
9367  xorg_cv_cc_flag_unused_command_line_argument=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9370fi
9371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9374	CFLAGS="$xorg_testset_save_CFLAGS"
9375fi
9376
9377found="no"
9378
9379	if test $found = "no" ; then
9380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382		fi
9383
9384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386		fi
9387
9388		CFLAGS="$CFLAGS -Wmain"
9389
9390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9391printf %s "checking if $CC supports -Wmain... " >&6; }
9392		cacheid=xorg_cv_cc_flag__Wmain
9393		if eval test \${$cacheid+y}
9394then :
9395  printf %s "(cached) " >&6
9396else $as_nop
9397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h.  */
9399int i;
9400int
9401main (void)
9402{
9403
9404  ;
9405  return 0;
9406}
9407_ACEOF
9408if ac_fn_c_try_link "$LINENO"
9409then :
9410  eval $cacheid=yes
9411else $as_nop
9412  eval $cacheid=no
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.beam \
9415    conftest$ac_exeext conftest.$ac_ext
9416fi
9417
9418
9419		CFLAGS="$xorg_testset_save_CFLAGS"
9420
9421		eval supported=\$$cacheid
9422		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9423printf "%s\n" "$supported" >&6; }
9424		if test "$supported" = "yes" ; then
9425			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9426			found="yes"
9427		fi
9428	fi
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444xorg_testset_save_CFLAGS="$CFLAGS"
9445
9446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9450if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9451then :
9452  printf %s "(cached) " >&6
9453else $as_nop
9454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455/* end confdefs.h.  */
9456int i;
9457_ACEOF
9458if ac_fn_c_try_compile "$LINENO"
9459then :
9460  xorg_cv_cc_flag_unknown_warning_option=yes
9461else $as_nop
9462  xorg_cv_cc_flag_unknown_warning_option=no
9463fi
9464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9465fi
9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469	CFLAGS="$xorg_testset_save_CFLAGS"
9470fi
9471
9472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475	fi
9476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9480then :
9481  printf %s "(cached) " >&6
9482else $as_nop
9483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485int i;
9486_ACEOF
9487if ac_fn_c_try_compile "$LINENO"
9488then :
9489  xorg_cv_cc_flag_unused_command_line_argument=yes
9490else $as_nop
9491  xorg_cv_cc_flag_unused_command_line_argument=no
9492fi
9493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9494fi
9495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9498	CFLAGS="$xorg_testset_save_CFLAGS"
9499fi
9500
9501found="no"
9502
9503	if test $found = "no" ; then
9504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506		fi
9507
9508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9510		fi
9511
9512		CFLAGS="$CFLAGS -Wmissing-braces"
9513
9514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9515printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9516		cacheid=xorg_cv_cc_flag__Wmissing_braces
9517		if eval test \${$cacheid+y}
9518then :
9519  printf %s "(cached) " >&6
9520else $as_nop
9521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h.  */
9523int i;
9524int
9525main (void)
9526{
9527
9528  ;
9529  return 0;
9530}
9531_ACEOF
9532if ac_fn_c_try_link "$LINENO"
9533then :
9534  eval $cacheid=yes
9535else $as_nop
9536  eval $cacheid=no
9537fi
9538rm -f core conftest.err conftest.$ac_objext conftest.beam \
9539    conftest$ac_exeext conftest.$ac_ext
9540fi
9541
9542
9543		CFLAGS="$xorg_testset_save_CFLAGS"
9544
9545		eval supported=\$$cacheid
9546		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9547printf "%s\n" "$supported" >&6; }
9548		if test "$supported" = "yes" ; then
9549			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9550			found="yes"
9551		fi
9552	fi
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568xorg_testset_save_CFLAGS="$CFLAGS"
9569
9570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9574if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9575then :
9576  printf %s "(cached) " >&6
9577else $as_nop
9578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579/* end confdefs.h.  */
9580int i;
9581_ACEOF
9582if ac_fn_c_try_compile "$LINENO"
9583then :
9584  xorg_cv_cc_flag_unknown_warning_option=yes
9585else $as_nop
9586  xorg_cv_cc_flag_unknown_warning_option=no
9587fi
9588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9589fi
9590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9593	CFLAGS="$xorg_testset_save_CFLAGS"
9594fi
9595
9596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599	fi
9600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9601	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9603if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9604then :
9605  printf %s "(cached) " >&6
9606else $as_nop
9607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h.  */
9609int i;
9610_ACEOF
9611if ac_fn_c_try_compile "$LINENO"
9612then :
9613  xorg_cv_cc_flag_unused_command_line_argument=yes
9614else $as_nop
9615  xorg_cv_cc_flag_unused_command_line_argument=no
9616fi
9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9618fi
9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9622	CFLAGS="$xorg_testset_save_CFLAGS"
9623fi
9624
9625found="no"
9626
9627	if test $found = "no" ; then
9628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9630		fi
9631
9632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9634		fi
9635
9636		CFLAGS="$CFLAGS -Wsequence-point"
9637
9638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9639printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9640		cacheid=xorg_cv_cc_flag__Wsequence_point
9641		if eval test \${$cacheid+y}
9642then :
9643  printf %s "(cached) " >&6
9644else $as_nop
9645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647int i;
9648int
9649main (void)
9650{
9651
9652  ;
9653  return 0;
9654}
9655_ACEOF
9656if ac_fn_c_try_link "$LINENO"
9657then :
9658  eval $cacheid=yes
9659else $as_nop
9660  eval $cacheid=no
9661fi
9662rm -f core conftest.err conftest.$ac_objext conftest.beam \
9663    conftest$ac_exeext conftest.$ac_ext
9664fi
9665
9666
9667		CFLAGS="$xorg_testset_save_CFLAGS"
9668
9669		eval supported=\$$cacheid
9670		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9671printf "%s\n" "$supported" >&6; }
9672		if test "$supported" = "yes" ; then
9673			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9674			found="yes"
9675		fi
9676	fi
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692xorg_testset_save_CFLAGS="$CFLAGS"
9693
9694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9695	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9698if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9699then :
9700  printf %s "(cached) " >&6
9701else $as_nop
9702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703/* end confdefs.h.  */
9704int i;
9705_ACEOF
9706if ac_fn_c_try_compile "$LINENO"
9707then :
9708  xorg_cv_cc_flag_unknown_warning_option=yes
9709else $as_nop
9710  xorg_cv_cc_flag_unknown_warning_option=no
9711fi
9712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9713fi
9714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9716	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9717	CFLAGS="$xorg_testset_save_CFLAGS"
9718fi
9719
9720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9721	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9722		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723	fi
9724	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9727if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9728then :
9729  printf %s "(cached) " >&6
9730else $as_nop
9731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732/* end confdefs.h.  */
9733int i;
9734_ACEOF
9735if ac_fn_c_try_compile "$LINENO"
9736then :
9737  xorg_cv_cc_flag_unused_command_line_argument=yes
9738else $as_nop
9739  xorg_cv_cc_flag_unused_command_line_argument=no
9740fi
9741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9742fi
9743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9745	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9746	CFLAGS="$xorg_testset_save_CFLAGS"
9747fi
9748
9749found="no"
9750
9751	if test $found = "no" ; then
9752		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9753			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754		fi
9755
9756		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9757			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9758		fi
9759
9760		CFLAGS="$CFLAGS -Wreturn-type"
9761
9762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9763printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9764		cacheid=xorg_cv_cc_flag__Wreturn_type
9765		if eval test \${$cacheid+y}
9766then :
9767  printf %s "(cached) " >&6
9768else $as_nop
9769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771int i;
9772int
9773main (void)
9774{
9775
9776  ;
9777  return 0;
9778}
9779_ACEOF
9780if ac_fn_c_try_link "$LINENO"
9781then :
9782  eval $cacheid=yes
9783else $as_nop
9784  eval $cacheid=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.beam \
9787    conftest$ac_exeext conftest.$ac_ext
9788fi
9789
9790
9791		CFLAGS="$xorg_testset_save_CFLAGS"
9792
9793		eval supported=\$$cacheid
9794		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9795printf "%s\n" "$supported" >&6; }
9796		if test "$supported" = "yes" ; then
9797			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9798			found="yes"
9799		fi
9800	fi
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816xorg_testset_save_CFLAGS="$CFLAGS"
9817
9818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9820	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9822if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9823then :
9824  printf %s "(cached) " >&6
9825else $as_nop
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829_ACEOF
9830if ac_fn_c_try_compile "$LINENO"
9831then :
9832  xorg_cv_cc_flag_unknown_warning_option=yes
9833else $as_nop
9834  xorg_cv_cc_flag_unknown_warning_option=no
9835fi
9836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9837fi
9838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9840	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9841	CFLAGS="$xorg_testset_save_CFLAGS"
9842fi
9843
9844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9845	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9846		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9847	fi
9848	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9851if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9852then :
9853  printf %s "(cached) " >&6
9854else $as_nop
9855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856/* end confdefs.h.  */
9857int i;
9858_ACEOF
9859if ac_fn_c_try_compile "$LINENO"
9860then :
9861  xorg_cv_cc_flag_unused_command_line_argument=yes
9862else $as_nop
9863  xorg_cv_cc_flag_unused_command_line_argument=no
9864fi
9865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9866fi
9867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9870	CFLAGS="$xorg_testset_save_CFLAGS"
9871fi
9872
9873found="no"
9874
9875	if test $found = "no" ; then
9876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878		fi
9879
9880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882		fi
9883
9884		CFLAGS="$CFLAGS -Wtrigraphs"
9885
9886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9887printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9888		cacheid=xorg_cv_cc_flag__Wtrigraphs
9889		if eval test \${$cacheid+y}
9890then :
9891  printf %s "(cached) " >&6
9892else $as_nop
9893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h.  */
9895int i;
9896int
9897main (void)
9898{
9899
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904if ac_fn_c_try_link "$LINENO"
9905then :
9906  eval $cacheid=yes
9907else $as_nop
9908  eval $cacheid=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext conftest.beam \
9911    conftest$ac_exeext conftest.$ac_ext
9912fi
9913
9914
9915		CFLAGS="$xorg_testset_save_CFLAGS"
9916
9917		eval supported=\$$cacheid
9918		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9919printf "%s\n" "$supported" >&6; }
9920		if test "$supported" = "yes" ; then
9921			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9922			found="yes"
9923		fi
9924	fi
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940xorg_testset_save_CFLAGS="$CFLAGS"
9941
9942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9946if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9947then :
9948  printf %s "(cached) " >&6
9949else $as_nop
9950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int i;
9953_ACEOF
9954if ac_fn_c_try_compile "$LINENO"
9955then :
9956  xorg_cv_cc_flag_unknown_warning_option=yes
9957else $as_nop
9958  xorg_cv_cc_flag_unknown_warning_option=no
9959fi
9960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9961fi
9962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9964	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9965	CFLAGS="$xorg_testset_save_CFLAGS"
9966fi
9967
9968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9969	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9970		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971	fi
9972	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9973	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9975if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9976then :
9977  printf %s "(cached) " >&6
9978else $as_nop
9979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h.  */
9981int i;
9982_ACEOF
9983if ac_fn_c_try_compile "$LINENO"
9984then :
9985  xorg_cv_cc_flag_unused_command_line_argument=yes
9986else $as_nop
9987  xorg_cv_cc_flag_unused_command_line_argument=no
9988fi
9989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9990fi
9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9994	CFLAGS="$xorg_testset_save_CFLAGS"
9995fi
9996
9997found="no"
9998
9999	if test $found = "no" ; then
10000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10002		fi
10003
10004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10006		fi
10007
10008		CFLAGS="$CFLAGS -Warray-bounds"
10009
10010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10011printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10012		cacheid=xorg_cv_cc_flag__Warray_bounds
10013		if eval test \${$cacheid+y}
10014then :
10015  printf %s "(cached) " >&6
10016else $as_nop
10017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018/* end confdefs.h.  */
10019int i;
10020int
10021main (void)
10022{
10023
10024  ;
10025  return 0;
10026}
10027_ACEOF
10028if ac_fn_c_try_link "$LINENO"
10029then :
10030  eval $cacheid=yes
10031else $as_nop
10032  eval $cacheid=no
10033fi
10034rm -f core conftest.err conftest.$ac_objext conftest.beam \
10035    conftest$ac_exeext conftest.$ac_ext
10036fi
10037
10038
10039		CFLAGS="$xorg_testset_save_CFLAGS"
10040
10041		eval supported=\$$cacheid
10042		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10043printf "%s\n" "$supported" >&6; }
10044		if test "$supported" = "yes" ; then
10045			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10046			found="yes"
10047		fi
10048	fi
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064xorg_testset_save_CFLAGS="$CFLAGS"
10065
10066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10070if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10071then :
10072  printf %s "(cached) " >&6
10073else $as_nop
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077_ACEOF
10078if ac_fn_c_try_compile "$LINENO"
10079then :
10080  xorg_cv_cc_flag_unknown_warning_option=yes
10081else $as_nop
10082  xorg_cv_cc_flag_unknown_warning_option=no
10083fi
10084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10085fi
10086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10087printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10088	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10089	CFLAGS="$xorg_testset_save_CFLAGS"
10090fi
10091
10092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10093	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10094		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10095	fi
10096	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10097	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10098printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10099if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10100then :
10101  printf %s "(cached) " >&6
10102else $as_nop
10103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h.  */
10105int i;
10106_ACEOF
10107if ac_fn_c_try_compile "$LINENO"
10108then :
10109  xorg_cv_cc_flag_unused_command_line_argument=yes
10110else $as_nop
10111  xorg_cv_cc_flag_unused_command_line_argument=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10114fi
10115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10117	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10118	CFLAGS="$xorg_testset_save_CFLAGS"
10119fi
10120
10121found="no"
10122
10123	if test $found = "no" ; then
10124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126		fi
10127
10128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10130		fi
10131
10132		CFLAGS="$CFLAGS -Wwrite-strings"
10133
10134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10135printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10136		cacheid=xorg_cv_cc_flag__Wwrite_strings
10137		if eval test \${$cacheid+y}
10138then :
10139  printf %s "(cached) " >&6
10140else $as_nop
10141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142/* end confdefs.h.  */
10143int i;
10144int
10145main (void)
10146{
10147
10148  ;
10149  return 0;
10150}
10151_ACEOF
10152if ac_fn_c_try_link "$LINENO"
10153then :
10154  eval $cacheid=yes
10155else $as_nop
10156  eval $cacheid=no
10157fi
10158rm -f core conftest.err conftest.$ac_objext conftest.beam \
10159    conftest$ac_exeext conftest.$ac_ext
10160fi
10161
10162
10163		CFLAGS="$xorg_testset_save_CFLAGS"
10164
10165		eval supported=\$$cacheid
10166		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10167printf "%s\n" "$supported" >&6; }
10168		if test "$supported" = "yes" ; then
10169			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10170			found="yes"
10171		fi
10172	fi
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188xorg_testset_save_CFLAGS="$CFLAGS"
10189
10190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10192	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10194if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10195then :
10196  printf %s "(cached) " >&6
10197else $as_nop
10198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199/* end confdefs.h.  */
10200int i;
10201_ACEOF
10202if ac_fn_c_try_compile "$LINENO"
10203then :
10204  xorg_cv_cc_flag_unknown_warning_option=yes
10205else $as_nop
10206  xorg_cv_cc_flag_unknown_warning_option=no
10207fi
10208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10209fi
10210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10211printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10213	CFLAGS="$xorg_testset_save_CFLAGS"
10214fi
10215
10216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219	fi
10220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10221	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10222printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10223if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10224then :
10225  printf %s "(cached) " >&6
10226else $as_nop
10227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228/* end confdefs.h.  */
10229int i;
10230_ACEOF
10231if ac_fn_c_try_compile "$LINENO"
10232then :
10233  xorg_cv_cc_flag_unused_command_line_argument=yes
10234else $as_nop
10235  xorg_cv_cc_flag_unused_command_line_argument=no
10236fi
10237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10238fi
10239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10240printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10242	CFLAGS="$xorg_testset_save_CFLAGS"
10243fi
10244
10245found="no"
10246
10247	if test $found = "no" ; then
10248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250		fi
10251
10252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10254		fi
10255
10256		CFLAGS="$CFLAGS -Waddress"
10257
10258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10259printf %s "checking if $CC supports -Waddress... " >&6; }
10260		cacheid=xorg_cv_cc_flag__Waddress
10261		if eval test \${$cacheid+y}
10262then :
10263  printf %s "(cached) " >&6
10264else $as_nop
10265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266/* end confdefs.h.  */
10267int i;
10268int
10269main (void)
10270{
10271
10272  ;
10273  return 0;
10274}
10275_ACEOF
10276if ac_fn_c_try_link "$LINENO"
10277then :
10278  eval $cacheid=yes
10279else $as_nop
10280  eval $cacheid=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext conftest.beam \
10283    conftest$ac_exeext conftest.$ac_ext
10284fi
10285
10286
10287		CFLAGS="$xorg_testset_save_CFLAGS"
10288
10289		eval supported=\$$cacheid
10290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10291printf "%s\n" "$supported" >&6; }
10292		if test "$supported" = "yes" ; then
10293			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10294			found="yes"
10295		fi
10296	fi
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312xorg_testset_save_CFLAGS="$CFLAGS"
10313
10314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10316	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10318if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10319then :
10320  printf %s "(cached) " >&6
10321else $as_nop
10322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h.  */
10324int i;
10325_ACEOF
10326if ac_fn_c_try_compile "$LINENO"
10327then :
10328  xorg_cv_cc_flag_unknown_warning_option=yes
10329else $as_nop
10330  xorg_cv_cc_flag_unknown_warning_option=no
10331fi
10332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10333fi
10334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10337	CFLAGS="$xorg_testset_save_CFLAGS"
10338fi
10339
10340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343	fi
10344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10345	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10347if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10348then :
10349  printf %s "(cached) " >&6
10350else $as_nop
10351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352/* end confdefs.h.  */
10353int i;
10354_ACEOF
10355if ac_fn_c_try_compile "$LINENO"
10356then :
10357  xorg_cv_cc_flag_unused_command_line_argument=yes
10358else $as_nop
10359  xorg_cv_cc_flag_unused_command_line_argument=no
10360fi
10361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10362fi
10363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10366	CFLAGS="$xorg_testset_save_CFLAGS"
10367fi
10368
10369found="no"
10370
10371	if test $found = "no" ; then
10372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374		fi
10375
10376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10378		fi
10379
10380		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10381
10382		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10383printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10384		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10385		if eval test \${$cacheid+y}
10386then :
10387  printf %s "(cached) " >&6
10388else $as_nop
10389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390/* end confdefs.h.  */
10391int i;
10392int
10393main (void)
10394{
10395
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400if ac_fn_c_try_link "$LINENO"
10401then :
10402  eval $cacheid=yes
10403else $as_nop
10404  eval $cacheid=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.beam \
10407    conftest$ac_exeext conftest.$ac_ext
10408fi
10409
10410
10411		CFLAGS="$xorg_testset_save_CFLAGS"
10412
10413		eval supported=\$$cacheid
10414		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10415printf "%s\n" "$supported" >&6; }
10416		if test "$supported" = "yes" ; then
10417			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10418			found="yes"
10419		fi
10420	fi
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436xorg_testset_save_CFLAGS="$CFLAGS"
10437
10438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10442if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10443then :
10444  printf %s "(cached) " >&6
10445else $as_nop
10446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447/* end confdefs.h.  */
10448int i;
10449_ACEOF
10450if ac_fn_c_try_compile "$LINENO"
10451then :
10452  xorg_cv_cc_flag_unknown_warning_option=yes
10453else $as_nop
10454  xorg_cv_cc_flag_unknown_warning_option=no
10455fi
10456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10457fi
10458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10459printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10461	CFLAGS="$xorg_testset_save_CFLAGS"
10462fi
10463
10464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10467	fi
10468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10469	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10470printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10471if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10472then :
10473  printf %s "(cached) " >&6
10474else $as_nop
10475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h.  */
10477int i;
10478_ACEOF
10479if ac_fn_c_try_compile "$LINENO"
10480then :
10481  xorg_cv_cc_flag_unused_command_line_argument=yes
10482else $as_nop
10483  xorg_cv_cc_flag_unused_command_line_argument=no
10484fi
10485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10486fi
10487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10488printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10490	CFLAGS="$xorg_testset_save_CFLAGS"
10491fi
10492
10493found="no"
10494
10495	if test $found = "no" ; then
10496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10498		fi
10499
10500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10502		fi
10503
10504		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10505
10506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10507printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10508		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10509		if eval test \${$cacheid+y}
10510then :
10511  printf %s "(cached) " >&6
10512else $as_nop
10513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515int i;
10516int
10517main (void)
10518{
10519
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"
10525then :
10526  eval $cacheid=yes
10527else $as_nop
10528  eval $cacheid=no
10529fi
10530rm -f core conftest.err conftest.$ac_objext conftest.beam \
10531    conftest$ac_exeext conftest.$ac_ext
10532fi
10533
10534
10535		CFLAGS="$xorg_testset_save_CFLAGS"
10536
10537		eval supported=\$$cacheid
10538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10539printf "%s\n" "$supported" >&6; }
10540		if test "$supported" = "yes" ; then
10541			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10542			found="yes"
10543		fi
10544	fi
10545
10546
10547fi
10548
10549
10550
10551
10552
10553
10554
10555		CWARNFLAGS="$BASE_CFLAGS"
10556		if  test "x$GCC" = xyes ; then
10557		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10558		fi
10559
10560
10561
10562
10563
10564
10565
10566
10567# Check whether --enable-strict-compilation was given.
10568if test ${enable_strict_compilation+y}
10569then :
10570  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10571else $as_nop
10572  STRICT_COMPILE=no
10573fi
10574
10575
10576
10577
10578
10579
10580STRICT_CFLAGS=""
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594xorg_testset_save_CFLAGS="$CFLAGS"
10595
10596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10600if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10601then :
10602  printf %s "(cached) " >&6
10603else $as_nop
10604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606int i;
10607_ACEOF
10608if ac_fn_c_try_compile "$LINENO"
10609then :
10610  xorg_cv_cc_flag_unknown_warning_option=yes
10611else $as_nop
10612  xorg_cv_cc_flag_unknown_warning_option=no
10613fi
10614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10615fi
10616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10618	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10619	CFLAGS="$xorg_testset_save_CFLAGS"
10620fi
10621
10622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10623	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10624		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10625	fi
10626	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10629if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10630then :
10631  printf %s "(cached) " >&6
10632else $as_nop
10633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634/* end confdefs.h.  */
10635int i;
10636_ACEOF
10637if ac_fn_c_try_compile "$LINENO"
10638then :
10639  xorg_cv_cc_flag_unused_command_line_argument=yes
10640else $as_nop
10641  xorg_cv_cc_flag_unused_command_line_argument=no
10642fi
10643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10644fi
10645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10648	CFLAGS="$xorg_testset_save_CFLAGS"
10649fi
10650
10651found="no"
10652
10653	if test $found = "no" ; then
10654		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656		fi
10657
10658		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10660		fi
10661
10662		CFLAGS="$CFLAGS -pedantic"
10663
10664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10665printf %s "checking if $CC supports -pedantic... " >&6; }
10666		cacheid=xorg_cv_cc_flag__pedantic
10667		if eval test \${$cacheid+y}
10668then :
10669  printf %s "(cached) " >&6
10670else $as_nop
10671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h.  */
10673int i;
10674int
10675main (void)
10676{
10677
10678  ;
10679  return 0;
10680}
10681_ACEOF
10682if ac_fn_c_try_link "$LINENO"
10683then :
10684  eval $cacheid=yes
10685else $as_nop
10686  eval $cacheid=no
10687fi
10688rm -f core conftest.err conftest.$ac_objext conftest.beam \
10689    conftest$ac_exeext conftest.$ac_ext
10690fi
10691
10692
10693		CFLAGS="$xorg_testset_save_CFLAGS"
10694
10695		eval supported=\$$cacheid
10696		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10697printf "%s\n" "$supported" >&6; }
10698		if test "$supported" = "yes" ; then
10699			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10700			found="yes"
10701		fi
10702	fi
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718xorg_testset_save_CFLAGS="$CFLAGS"
10719
10720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10721	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10724if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10725then :
10726  printf %s "(cached) " >&6
10727else $as_nop
10728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730int i;
10731_ACEOF
10732if ac_fn_c_try_compile "$LINENO"
10733then :
10734  xorg_cv_cc_flag_unknown_warning_option=yes
10735else $as_nop
10736  xorg_cv_cc_flag_unknown_warning_option=no
10737fi
10738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10739fi
10740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10743	CFLAGS="$xorg_testset_save_CFLAGS"
10744fi
10745
10746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10749	fi
10750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10754then :
10755  printf %s "(cached) " >&6
10756else $as_nop
10757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758/* end confdefs.h.  */
10759int i;
10760_ACEOF
10761if ac_fn_c_try_compile "$LINENO"
10762then :
10763  xorg_cv_cc_flag_unused_command_line_argument=yes
10764else $as_nop
10765  xorg_cv_cc_flag_unused_command_line_argument=no
10766fi
10767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10768fi
10769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10772	CFLAGS="$xorg_testset_save_CFLAGS"
10773fi
10774
10775found="no"
10776
10777	if test $found = "no" ; then
10778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10780		fi
10781
10782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10784		fi
10785
10786		CFLAGS="$CFLAGS -Werror"
10787
10788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10789printf %s "checking if $CC supports -Werror... " >&6; }
10790		cacheid=xorg_cv_cc_flag__Werror
10791		if eval test \${$cacheid+y}
10792then :
10793  printf %s "(cached) " >&6
10794else $as_nop
10795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796/* end confdefs.h.  */
10797int i;
10798int
10799main (void)
10800{
10801
10802  ;
10803  return 0;
10804}
10805_ACEOF
10806if ac_fn_c_try_link "$LINENO"
10807then :
10808  eval $cacheid=yes
10809else $as_nop
10810  eval $cacheid=no
10811fi
10812rm -f core conftest.err conftest.$ac_objext conftest.beam \
10813    conftest$ac_exeext conftest.$ac_ext
10814fi
10815
10816
10817		CFLAGS="$xorg_testset_save_CFLAGS"
10818
10819		eval supported=\$$cacheid
10820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10821printf "%s\n" "$supported" >&6; }
10822		if test "$supported" = "yes" ; then
10823			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10824			found="yes"
10825		fi
10826	fi
10827
10828	if test $found = "no" ; then
10829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10831		fi
10832
10833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10835		fi
10836
10837		CFLAGS="$CFLAGS -errwarn"
10838
10839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10840printf %s "checking if $CC supports -errwarn... " >&6; }
10841		cacheid=xorg_cv_cc_flag__errwarn
10842		if eval test \${$cacheid+y}
10843then :
10844  printf %s "(cached) " >&6
10845else $as_nop
10846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847/* end confdefs.h.  */
10848int i;
10849int
10850main (void)
10851{
10852
10853  ;
10854  return 0;
10855}
10856_ACEOF
10857if ac_fn_c_try_link "$LINENO"
10858then :
10859  eval $cacheid=yes
10860else $as_nop
10861  eval $cacheid=no
10862fi
10863rm -f core conftest.err conftest.$ac_objext conftest.beam \
10864    conftest$ac_exeext conftest.$ac_ext
10865fi
10866
10867
10868		CFLAGS="$xorg_testset_save_CFLAGS"
10869
10870		eval supported=\$$cacheid
10871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10872printf "%s\n" "$supported" >&6; }
10873		if test "$supported" = "yes" ; then
10874			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10875			found="yes"
10876		fi
10877	fi
10878
10879
10880
10881# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10882# activate it with -Werror, so we add it here explicitly.
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896xorg_testset_save_CFLAGS="$CFLAGS"
10897
10898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10903then :
10904  printf %s "(cached) " >&6
10905else $as_nop
10906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907/* end confdefs.h.  */
10908int i;
10909_ACEOF
10910if ac_fn_c_try_compile "$LINENO"
10911then :
10912  xorg_cv_cc_flag_unknown_warning_option=yes
10913else $as_nop
10914  xorg_cv_cc_flag_unknown_warning_option=no
10915fi
10916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10917fi
10918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10921	CFLAGS="$xorg_testset_save_CFLAGS"
10922fi
10923
10924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10927	fi
10928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10931if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10932then :
10933  printf %s "(cached) " >&6
10934else $as_nop
10935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936/* end confdefs.h.  */
10937int i;
10938_ACEOF
10939if ac_fn_c_try_compile "$LINENO"
10940then :
10941  xorg_cv_cc_flag_unused_command_line_argument=yes
10942else $as_nop
10943  xorg_cv_cc_flag_unused_command_line_argument=no
10944fi
10945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10946fi
10947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10948printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10950	CFLAGS="$xorg_testset_save_CFLAGS"
10951fi
10952
10953found="no"
10954
10955	if test $found = "no" ; then
10956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10958		fi
10959
10960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10962		fi
10963
10964		CFLAGS="$CFLAGS -Werror=attributes"
10965
10966		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10967printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10968		cacheid=xorg_cv_cc_flag__Werror_attributes
10969		if eval test \${$cacheid+y}
10970then :
10971  printf %s "(cached) " >&6
10972else $as_nop
10973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974/* end confdefs.h.  */
10975int i;
10976int
10977main (void)
10978{
10979
10980  ;
10981  return 0;
10982}
10983_ACEOF
10984if ac_fn_c_try_link "$LINENO"
10985then :
10986  eval $cacheid=yes
10987else $as_nop
10988  eval $cacheid=no
10989fi
10990rm -f core conftest.err conftest.$ac_objext conftest.beam \
10991    conftest$ac_exeext conftest.$ac_ext
10992fi
10993
10994
10995		CFLAGS="$xorg_testset_save_CFLAGS"
10996
10997		eval supported=\$$cacheid
10998		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10999printf "%s\n" "$supported" >&6; }
11000		if test "$supported" = "yes" ; then
11001			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11002			found="yes"
11003		fi
11004	fi
11005
11006
11007
11008if test "x$STRICT_COMPILE" = "xyes"; then
11009    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11010    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11011fi
11012
11013
11014
11015
11016
11017
11018cat >>confdefs.h <<_ACEOF
11019#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11020_ACEOF
11021
11022	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11023	if test "x$PVM" = "x"; then
11024		PVM="0"
11025	fi
11026
11027printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11028
11029	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11030	if test "x$PVP" = "x"; then
11031		PVP="0"
11032	fi
11033
11034printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11035
11036
11037
11038CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11039mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11040|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11041touch \$(top_srcdir)/ChangeLog; \
11042echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11043
11044
11045
11046
11047macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11048INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11049mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11050|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11051touch \$(top_srcdir)/INSTALL; \
11052echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11053
11054
11055
11056
11057
11058
11059case $host_os in
11060    solaris*)
11061        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11062        # check for a man page file found in later versions that use
11063        # traditional section numbers instead
11064        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11065printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11066if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11067then :
11068  printf %s "(cached) " >&6
11069else $as_nop
11070  test "$cross_compiling" = yes &&
11071  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11072if test -r "/usr/share/man/man7/attributes.7"; then
11073  ac_cv_file__usr_share_man_man7_attributes_7=yes
11074else
11075  ac_cv_file__usr_share_man_man7_attributes_7=no
11076fi
11077fi
11078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11079printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11080if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11081then :
11082  SYSV_MAN_SECTIONS=false
11083else $as_nop
11084  SYSV_MAN_SECTIONS=true
11085fi
11086
11087        ;;
11088    *) SYSV_MAN_SECTIONS=false ;;
11089esac
11090
11091if test x$APP_MAN_SUFFIX = x    ; then
11092    APP_MAN_SUFFIX=1
11093fi
11094if test x$APP_MAN_DIR = x    ; then
11095    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11096fi
11097
11098if test x$LIB_MAN_SUFFIX = x    ; then
11099    LIB_MAN_SUFFIX=3
11100fi
11101if test x$LIB_MAN_DIR = x    ; then
11102    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11103fi
11104
11105if test x$FILE_MAN_SUFFIX = x    ; then
11106    case $SYSV_MAN_SECTIONS in
11107	true)				FILE_MAN_SUFFIX=4  ;;
11108	*)				FILE_MAN_SUFFIX=5  ;;
11109    esac
11110fi
11111if test x$FILE_MAN_DIR = x    ; then
11112    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11113fi
11114
11115if test x$MISC_MAN_SUFFIX = x    ; then
11116    case $SYSV_MAN_SECTIONS in
11117	true)				MISC_MAN_SUFFIX=5  ;;
11118	*)				MISC_MAN_SUFFIX=7  ;;
11119    esac
11120fi
11121if test x$MISC_MAN_DIR = x    ; then
11122    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11123fi
11124
11125if test x$DRIVER_MAN_SUFFIX = x    ; then
11126    case $SYSV_MAN_SECTIONS in
11127	true)				DRIVER_MAN_SUFFIX=7  ;;
11128	*)				DRIVER_MAN_SUFFIX=4  ;;
11129    esac
11130fi
11131if test x$DRIVER_MAN_DIR = x    ; then
11132    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11133fi
11134
11135if test x$ADMIN_MAN_SUFFIX = x    ; then
11136    case $SYSV_MAN_SECTIONS in
11137	true)				ADMIN_MAN_SUFFIX=1m ;;
11138	*)				ADMIN_MAN_SUFFIX=8  ;;
11139    esac
11140fi
11141if test x$ADMIN_MAN_DIR = x    ; then
11142    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11143fi
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159XORG_MAN_PAGE="X Version 11"
11160
11161MAN_SUBSTS="\
11162	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11163	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11164	-e 's|__xservername__|Xorg|g' \
11165	-e 's|__xconfigfile__|xorg.conf|g' \
11166	-e 's|__projectroot__|\$(prefix)|g' \
11167	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11168	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11169	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11170	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11171	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11172	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11173	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11174
11175
11176
11177# Check whether --enable-silent-rules was given.
11178if test ${enable_silent_rules+y}
11179then :
11180  enableval=$enable_silent_rules;
11181fi
11182
11183case $enable_silent_rules in # (((
11184  yes) AM_DEFAULT_VERBOSITY=0;;
11185   no) AM_DEFAULT_VERBOSITY=1;;
11186    *) AM_DEFAULT_VERBOSITY=0;;
11187esac
11188am_make=${MAKE-make}
11189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11190printf %s "checking whether $am_make supports nested variables... " >&6; }
11191if test ${am_cv_make_support_nested_variables+y}
11192then :
11193  printf %s "(cached) " >&6
11194else $as_nop
11195  if printf "%s\n" 'TRUE=$(BAR$(V))
11196BAR0=false
11197BAR1=true
11198V=1
11199am__doit:
11200	@$(TRUE)
11201.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11202  am_cv_make_support_nested_variables=yes
11203else
11204  am_cv_make_support_nested_variables=no
11205fi
11206fi
11207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11208printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11209if test $am_cv_make_support_nested_variables = yes; then
11210    AM_V='$(V)'
11211  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11212else
11213  AM_V=$AM_DEFAULT_VERBOSITY
11214  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11215fi
11216AM_BACKSLASH='\'
11217
11218
11219
11220# Checks for programs.
11221# Check whether --enable-static was given.
11222if test ${enable_static+y}
11223then :
11224  enableval=$enable_static; p=${PACKAGE-default}
11225    case $enableval in
11226    yes) enable_static=yes ;;
11227    no) enable_static=no ;;
11228    *)
11229     enable_static=no
11230      # Look at the argument we got.  We use all the common list separators.
11231      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11232      for pkg in $enableval; do
11233	IFS=$lt_save_ifs
11234	if test "X$pkg" = "X$p"; then
11235	  enable_static=yes
11236	fi
11237      done
11238      IFS=$lt_save_ifs
11239      ;;
11240    esac
11241else $as_nop
11242  enable_static=no
11243fi
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253case `pwd` in
11254  *\ * | *\	*)
11255    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11256printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11257esac
11258
11259
11260
11261macro_version='2.4.7'
11262macro_revision='2.4.7'
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277ltmain=$ac_aux_dir/ltmain.sh
11278
11279# Backslashify metacharacters that are still active within
11280# double-quoted strings.
11281sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11282
11283# Same as above, but do not quote variable references.
11284double_quote_subst='s/\(["`\\]\)/\\\1/g'
11285
11286# Sed substitution to delay expansion of an escaped shell variable in a
11287# double_quote_subst'ed string.
11288delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11289
11290# Sed substitution to delay expansion of an escaped single quote.
11291delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11292
11293# Sed substitution to avoid accidental globbing in evaled expressions
11294no_glob_subst='s/\*/\\\*/g'
11295
11296ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11297ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11298ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11299
11300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11301printf %s "checking how to print strings... " >&6; }
11302# Test print first, because it will be a builtin if present.
11303if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11304   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11305  ECHO='print -r --'
11306elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11307  ECHO='printf %s\n'
11308else
11309  # Use this function as a fallback that always works.
11310  func_fallback_echo ()
11311  {
11312    eval 'cat <<_LTECHO_EOF
11313$1
11314_LTECHO_EOF'
11315  }
11316  ECHO='func_fallback_echo'
11317fi
11318
11319# func_echo_all arg...
11320# Invoke $ECHO with all args, space-separated.
11321func_echo_all ()
11322{
11323    $ECHO ""
11324}
11325
11326case $ECHO in
11327  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11328printf "%s\n" "printf" >&6; } ;;
11329  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11330printf "%s\n" "print -r" >&6; } ;;
11331  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11332printf "%s\n" "cat" >&6; } ;;
11333esac
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11349printf %s "checking for a sed that does not truncate output... " >&6; }
11350if test ${ac_cv_path_SED+y}
11351then :
11352  printf %s "(cached) " >&6
11353else $as_nop
11354            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11355     for ac_i in 1 2 3 4 5 6 7; do
11356       ac_script="$ac_script$as_nl$ac_script"
11357     done
11358     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11359     { ac_script=; unset ac_script;}
11360     if test -z "$SED"; then
11361  ac_path_SED_found=false
11362  # Loop through the user's path and test for each of PROGNAME-LIST
11363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364for as_dir in $PATH
11365do
11366  IFS=$as_save_IFS
11367  case $as_dir in #(((
11368    '') as_dir=./ ;;
11369    */) ;;
11370    *) as_dir=$as_dir/ ;;
11371  esac
11372    for ac_prog in sed gsed
11373   do
11374    for ac_exec_ext in '' $ac_executable_extensions; do
11375      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11376      as_fn_executable_p "$ac_path_SED" || continue
11377# Check for GNU ac_path_SED and select it if it is found.
11378  # Check for GNU $ac_path_SED
11379case `"$ac_path_SED" --version 2>&1` in
11380*GNU*)
11381  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11382*)
11383  ac_count=0
11384  printf %s 0123456789 >"conftest.in"
11385  while :
11386  do
11387    cat "conftest.in" "conftest.in" >"conftest.tmp"
11388    mv "conftest.tmp" "conftest.in"
11389    cp "conftest.in" "conftest.nl"
11390    printf "%s\n" '' >> "conftest.nl"
11391    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11392    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11393    as_fn_arith $ac_count + 1 && ac_count=$as_val
11394    if test $ac_count -gt ${ac_path_SED_max-0}; then
11395      # Best one so far, save it but keep looking for a better one
11396      ac_cv_path_SED="$ac_path_SED"
11397      ac_path_SED_max=$ac_count
11398    fi
11399    # 10*(2^10) chars as input seems more than enough
11400    test $ac_count -gt 10 && break
11401  done
11402  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11403esac
11404
11405      $ac_path_SED_found && break 3
11406    done
11407  done
11408  done
11409IFS=$as_save_IFS
11410  if test -z "$ac_cv_path_SED"; then
11411    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11412  fi
11413else
11414  ac_cv_path_SED=$SED
11415fi
11416
11417fi
11418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11419printf "%s\n" "$ac_cv_path_SED" >&6; }
11420 SED="$ac_cv_path_SED"
11421  rm -f conftest.sed
11422
11423test -z "$SED" && SED=sed
11424Xsed="$SED -e 1s/^X//"
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11437printf %s "checking for grep that handles long lines and -e... " >&6; }
11438if test ${ac_cv_path_GREP+y}
11439then :
11440  printf %s "(cached) " >&6
11441else $as_nop
11442  if test -z "$GREP"; then
11443  ac_path_GREP_found=false
11444  # Loop through the user's path and test for each of PROGNAME-LIST
11445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11447do
11448  IFS=$as_save_IFS
11449  case $as_dir in #(((
11450    '') as_dir=./ ;;
11451    */) ;;
11452    *) as_dir=$as_dir/ ;;
11453  esac
11454    for ac_prog in grep ggrep
11455   do
11456    for ac_exec_ext in '' $ac_executable_extensions; do
11457      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11458      as_fn_executable_p "$ac_path_GREP" || continue
11459# Check for GNU ac_path_GREP and select it if it is found.
11460  # Check for GNU $ac_path_GREP
11461case `"$ac_path_GREP" --version 2>&1` in
11462*GNU*)
11463  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11464*)
11465  ac_count=0
11466  printf %s 0123456789 >"conftest.in"
11467  while :
11468  do
11469    cat "conftest.in" "conftest.in" >"conftest.tmp"
11470    mv "conftest.tmp" "conftest.in"
11471    cp "conftest.in" "conftest.nl"
11472    printf "%s\n" 'GREP' >> "conftest.nl"
11473    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11474    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11475    as_fn_arith $ac_count + 1 && ac_count=$as_val
11476    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11477      # Best one so far, save it but keep looking for a better one
11478      ac_cv_path_GREP="$ac_path_GREP"
11479      ac_path_GREP_max=$ac_count
11480    fi
11481    # 10*(2^10) chars as input seems more than enough
11482    test $ac_count -gt 10 && break
11483  done
11484  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11485esac
11486
11487      $ac_path_GREP_found && break 3
11488    done
11489  done
11490  done
11491IFS=$as_save_IFS
11492  if test -z "$ac_cv_path_GREP"; then
11493    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11494  fi
11495else
11496  ac_cv_path_GREP=$GREP
11497fi
11498
11499fi
11500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11501printf "%s\n" "$ac_cv_path_GREP" >&6; }
11502 GREP="$ac_cv_path_GREP"
11503
11504
11505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11506printf %s "checking for egrep... " >&6; }
11507if test ${ac_cv_path_EGREP+y}
11508then :
11509  printf %s "(cached) " >&6
11510else $as_nop
11511  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11512   then ac_cv_path_EGREP="$GREP -E"
11513   else
11514     if test -z "$EGREP"; then
11515  ac_path_EGREP_found=false
11516  # Loop through the user's path and test for each of PROGNAME-LIST
11517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11519do
11520  IFS=$as_save_IFS
11521  case $as_dir in #(((
11522    '') as_dir=./ ;;
11523    */) ;;
11524    *) as_dir=$as_dir/ ;;
11525  esac
11526    for ac_prog in egrep
11527   do
11528    for ac_exec_ext in '' $ac_executable_extensions; do
11529      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11530      as_fn_executable_p "$ac_path_EGREP" || continue
11531# Check for GNU ac_path_EGREP and select it if it is found.
11532  # Check for GNU $ac_path_EGREP
11533case `"$ac_path_EGREP" --version 2>&1` in
11534*GNU*)
11535  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11536*)
11537  ac_count=0
11538  printf %s 0123456789 >"conftest.in"
11539  while :
11540  do
11541    cat "conftest.in" "conftest.in" >"conftest.tmp"
11542    mv "conftest.tmp" "conftest.in"
11543    cp "conftest.in" "conftest.nl"
11544    printf "%s\n" 'EGREP' >> "conftest.nl"
11545    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11546    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11547    as_fn_arith $ac_count + 1 && ac_count=$as_val
11548    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11549      # Best one so far, save it but keep looking for a better one
11550      ac_cv_path_EGREP="$ac_path_EGREP"
11551      ac_path_EGREP_max=$ac_count
11552    fi
11553    # 10*(2^10) chars as input seems more than enough
11554    test $ac_count -gt 10 && break
11555  done
11556  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11557esac
11558
11559      $ac_path_EGREP_found && break 3
11560    done
11561  done
11562  done
11563IFS=$as_save_IFS
11564  if test -z "$ac_cv_path_EGREP"; then
11565    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11566  fi
11567else
11568  ac_cv_path_EGREP=$EGREP
11569fi
11570
11571   fi
11572fi
11573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11574printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11575 EGREP="$ac_cv_path_EGREP"
11576
11577
11578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11579printf %s "checking for fgrep... " >&6; }
11580if test ${ac_cv_path_FGREP+y}
11581then :
11582  printf %s "(cached) " >&6
11583else $as_nop
11584  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11585   then ac_cv_path_FGREP="$GREP -F"
11586   else
11587     if test -z "$FGREP"; then
11588  ac_path_FGREP_found=false
11589  # Loop through the user's path and test for each of PROGNAME-LIST
11590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11592do
11593  IFS=$as_save_IFS
11594  case $as_dir in #(((
11595    '') as_dir=./ ;;
11596    */) ;;
11597    *) as_dir=$as_dir/ ;;
11598  esac
11599    for ac_prog in fgrep
11600   do
11601    for ac_exec_ext in '' $ac_executable_extensions; do
11602      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11603      as_fn_executable_p "$ac_path_FGREP" || continue
11604# Check for GNU ac_path_FGREP and select it if it is found.
11605  # Check for GNU $ac_path_FGREP
11606case `"$ac_path_FGREP" --version 2>&1` in
11607*GNU*)
11608  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11609*)
11610  ac_count=0
11611  printf %s 0123456789 >"conftest.in"
11612  while :
11613  do
11614    cat "conftest.in" "conftest.in" >"conftest.tmp"
11615    mv "conftest.tmp" "conftest.in"
11616    cp "conftest.in" "conftest.nl"
11617    printf "%s\n" 'FGREP' >> "conftest.nl"
11618    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11619    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11620    as_fn_arith $ac_count + 1 && ac_count=$as_val
11621    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11622      # Best one so far, save it but keep looking for a better one
11623      ac_cv_path_FGREP="$ac_path_FGREP"
11624      ac_path_FGREP_max=$ac_count
11625    fi
11626    # 10*(2^10) chars as input seems more than enough
11627    test $ac_count -gt 10 && break
11628  done
11629  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11630esac
11631
11632      $ac_path_FGREP_found && break 3
11633    done
11634  done
11635  done
11636IFS=$as_save_IFS
11637  if test -z "$ac_cv_path_FGREP"; then
11638    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11639  fi
11640else
11641  ac_cv_path_FGREP=$FGREP
11642fi
11643
11644   fi
11645fi
11646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11647printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11648 FGREP="$ac_cv_path_FGREP"
11649
11650
11651test -z "$GREP" && GREP=grep
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671# Check whether --with-gnu-ld was given.
11672if test ${with_gnu_ld+y}
11673then :
11674  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11675else $as_nop
11676  with_gnu_ld=no
11677fi
11678
11679ac_prog=ld
11680if test yes = "$GCC"; then
11681  # Check if gcc -print-prog-name=ld gives a path.
11682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11683printf %s "checking for ld used by $CC... " >&6; }
11684  case $host in
11685  *-*-mingw*)
11686    # gcc leaves a trailing carriage return, which upsets mingw
11687    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11688  *)
11689    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11690  esac
11691  case $ac_prog in
11692    # Accept absolute paths.
11693    [\\/]* | ?:[\\/]*)
11694      re_direlt='/[^/][^/]*/\.\./'
11695      # Canonicalize the pathname of ld
11696      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11697      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11698	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11699      done
11700      test -z "$LD" && LD=$ac_prog
11701      ;;
11702  "")
11703    # If it fails, then pretend we aren't using GCC.
11704    ac_prog=ld
11705    ;;
11706  *)
11707    # If it is relative, then search for the first ld in PATH.
11708    with_gnu_ld=unknown
11709    ;;
11710  esac
11711elif test yes = "$with_gnu_ld"; then
11712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11713printf %s "checking for GNU ld... " >&6; }
11714else
11715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11716printf %s "checking for non-GNU ld... " >&6; }
11717fi
11718if test ${lt_cv_path_LD+y}
11719then :
11720  printf %s "(cached) " >&6
11721else $as_nop
11722  if test -z "$LD"; then
11723  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11724  for ac_dir in $PATH; do
11725    IFS=$lt_save_ifs
11726    test -z "$ac_dir" && ac_dir=.
11727    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11728      lt_cv_path_LD=$ac_dir/$ac_prog
11729      # Check to see if the program is GNU ld.  I'd rather use --version,
11730      # but apparently some variants of GNU ld only accept -v.
11731      # Break only if it was the GNU/non-GNU ld that we prefer.
11732      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11733      *GNU* | *'with BFD'*)
11734	test no != "$with_gnu_ld" && break
11735	;;
11736      *)
11737	test yes != "$with_gnu_ld" && break
11738	;;
11739      esac
11740    fi
11741  done
11742  IFS=$lt_save_ifs
11743else
11744  lt_cv_path_LD=$LD # Let the user override the test with a path.
11745fi
11746fi
11747
11748LD=$lt_cv_path_LD
11749if test -n "$LD"; then
11750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11751printf "%s\n" "$LD" >&6; }
11752else
11753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754printf "%s\n" "no" >&6; }
11755fi
11756test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11758printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11759if test ${lt_cv_prog_gnu_ld+y}
11760then :
11761  printf %s "(cached) " >&6
11762else $as_nop
11763  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11764case `$LD -v 2>&1 </dev/null` in
11765*GNU* | *'with BFD'*)
11766  lt_cv_prog_gnu_ld=yes
11767  ;;
11768*)
11769  lt_cv_prog_gnu_ld=no
11770  ;;
11771esac
11772fi
11773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11774printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11775with_gnu_ld=$lt_cv_prog_gnu_ld
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11786printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11787if test ${lt_cv_path_NM+y}
11788then :
11789  printf %s "(cached) " >&6
11790else $as_nop
11791  if test -n "$NM"; then
11792  # Let the user override the test.
11793  lt_cv_path_NM=$NM
11794else
11795  lt_nm_to_check=${ac_tool_prefix}nm
11796  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11797    lt_nm_to_check="$lt_nm_to_check nm"
11798  fi
11799  for lt_tmp_nm in $lt_nm_to_check; do
11800    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11801    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11802      IFS=$lt_save_ifs
11803      test -z "$ac_dir" && ac_dir=.
11804      tmp_nm=$ac_dir/$lt_tmp_nm
11805      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11806	# Check to see if the nm accepts a BSD-compat flag.
11807	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11808	#   nm: unknown option "B" ignored
11809	# Tru64's nm complains that /dev/null is an invalid object file
11810	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11811	case $build_os in
11812	mingw*) lt_bad_file=conftest.nm/nofile ;;
11813	*) lt_bad_file=/dev/null ;;
11814	esac
11815	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11816	*$lt_bad_file* | *'Invalid file or object type'*)
11817	  lt_cv_path_NM="$tmp_nm -B"
11818	  break 2
11819	  ;;
11820	*)
11821	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11822	  */dev/null*)
11823	    lt_cv_path_NM="$tmp_nm -p"
11824	    break 2
11825	    ;;
11826	  *)
11827	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11828	    continue # so that we can try to find one that supports BSD flags
11829	    ;;
11830	  esac
11831	  ;;
11832	esac
11833      fi
11834    done
11835    IFS=$lt_save_ifs
11836  done
11837  : ${lt_cv_path_NM=no}
11838fi
11839fi
11840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11841printf "%s\n" "$lt_cv_path_NM" >&6; }
11842if test no != "$lt_cv_path_NM"; then
11843  NM=$lt_cv_path_NM
11844else
11845  # Didn't find any BSD compatible name lister, look for dumpbin.
11846  if test -n "$DUMPBIN"; then :
11847    # Let the user override the test.
11848  else
11849    if test -n "$ac_tool_prefix"; then
11850  for ac_prog in dumpbin "link -dump"
11851  do
11852    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855printf %s "checking for $ac_word... " >&6; }
11856if test ${ac_cv_prog_DUMPBIN+y}
11857then :
11858  printf %s "(cached) " >&6
11859else $as_nop
11860  if test -n "$DUMPBIN"; then
11861  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11862else
11863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864for as_dir in $PATH
11865do
11866  IFS=$as_save_IFS
11867  case $as_dir in #(((
11868    '') as_dir=./ ;;
11869    */) ;;
11870    *) as_dir=$as_dir/ ;;
11871  esac
11872    for ac_exec_ext in '' $ac_executable_extensions; do
11873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11874    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11876    break 2
11877  fi
11878done
11879  done
11880IFS=$as_save_IFS
11881
11882fi
11883fi
11884DUMPBIN=$ac_cv_prog_DUMPBIN
11885if test -n "$DUMPBIN"; then
11886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11887printf "%s\n" "$DUMPBIN" >&6; }
11888else
11889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890printf "%s\n" "no" >&6; }
11891fi
11892
11893
11894    test -n "$DUMPBIN" && break
11895  done
11896fi
11897if test -z "$DUMPBIN"; then
11898  ac_ct_DUMPBIN=$DUMPBIN
11899  for ac_prog in dumpbin "link -dump"
11900do
11901  # Extract the first word of "$ac_prog", so it can be a program name with args.
11902set dummy $ac_prog; ac_word=$2
11903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904printf %s "checking for $ac_word... " >&6; }
11905if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11906then :
11907  printf %s "(cached) " >&6
11908else $as_nop
11909  if test -n "$ac_ct_DUMPBIN"; then
11910  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11911else
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915  IFS=$as_save_IFS
11916  case $as_dir in #(((
11917    '') as_dir=./ ;;
11918    */) ;;
11919    *) as_dir=$as_dir/ ;;
11920  esac
11921    for ac_exec_ext in '' $ac_executable_extensions; do
11922  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11923    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11924    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11925    break 2
11926  fi
11927done
11928  done
11929IFS=$as_save_IFS
11930
11931fi
11932fi
11933ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11934if test -n "$ac_ct_DUMPBIN"; then
11935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11936printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11937else
11938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939printf "%s\n" "no" >&6; }
11940fi
11941
11942
11943  test -n "$ac_ct_DUMPBIN" && break
11944done
11945
11946  if test "x$ac_ct_DUMPBIN" = x; then
11947    DUMPBIN=":"
11948  else
11949    case $cross_compiling:$ac_tool_warned in
11950yes:)
11951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11952printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11953ac_tool_warned=yes ;;
11954esac
11955    DUMPBIN=$ac_ct_DUMPBIN
11956  fi
11957fi
11958
11959    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11960    *COFF*)
11961      DUMPBIN="$DUMPBIN -symbols -headers"
11962      ;;
11963    *)
11964      DUMPBIN=:
11965      ;;
11966    esac
11967  fi
11968
11969  if test : != "$DUMPBIN"; then
11970    NM=$DUMPBIN
11971  fi
11972fi
11973test -z "$NM" && NM=nm
11974
11975
11976
11977
11978
11979
11980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11981printf %s "checking the name lister ($NM) interface... " >&6; }
11982if test ${lt_cv_nm_interface+y}
11983then :
11984  printf %s "(cached) " >&6
11985else $as_nop
11986  lt_cv_nm_interface="BSD nm"
11987  echo "int some_variable = 0;" > conftest.$ac_ext
11988  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11989  (eval "$ac_compile" 2>conftest.err)
11990  cat conftest.err >&5
11991  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11992  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11993  cat conftest.err >&5
11994  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11995  cat conftest.out >&5
11996  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11997    lt_cv_nm_interface="MS dumpbin"
11998  fi
11999  rm -f conftest*
12000fi
12001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12002printf "%s\n" "$lt_cv_nm_interface" >&6; }
12003
12004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12005printf %s "checking whether ln -s works... " >&6; }
12006LN_S=$as_ln_s
12007if test "$LN_S" = "ln -s"; then
12008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009printf "%s\n" "yes" >&6; }
12010else
12011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12012printf "%s\n" "no, using $LN_S" >&6; }
12013fi
12014
12015# find the maximum length of command line arguments
12016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12017printf %s "checking the maximum length of command line arguments... " >&6; }
12018if test ${lt_cv_sys_max_cmd_len+y}
12019then :
12020  printf %s "(cached) " >&6
12021else $as_nop
12022    i=0
12023  teststring=ABCD
12024
12025  case $build_os in
12026  msdosdjgpp*)
12027    # On DJGPP, this test can blow up pretty badly due to problems in libc
12028    # (any single argument exceeding 2000 bytes causes a buffer overrun
12029    # during glob expansion).  Even if it were fixed, the result of this
12030    # check would be larger than it should be.
12031    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12032    ;;
12033
12034  gnu*)
12035    # Under GNU Hurd, this test is not required because there is
12036    # no limit to the length of command line arguments.
12037    # Libtool will interpret -1 as no limit whatsoever
12038    lt_cv_sys_max_cmd_len=-1;
12039    ;;
12040
12041  cygwin* | mingw* | cegcc*)
12042    # On Win9x/ME, this test blows up -- it succeeds, but takes
12043    # about 5 minutes as the teststring grows exponentially.
12044    # Worse, since 9x/ME are not pre-emptively multitasking,
12045    # you end up with a "frozen" computer, even though with patience
12046    # the test eventually succeeds (with a max line length of 256k).
12047    # Instead, let's just punt: use the minimum linelength reported by
12048    # all of the supported platforms: 8192 (on NT/2K/XP).
12049    lt_cv_sys_max_cmd_len=8192;
12050    ;;
12051
12052  mint*)
12053    # On MiNT this can take a long time and run out of memory.
12054    lt_cv_sys_max_cmd_len=8192;
12055    ;;
12056
12057  amigaos*)
12058    # On AmigaOS with pdksh, this test takes hours, literally.
12059    # So we just punt and use a minimum line length of 8192.
12060    lt_cv_sys_max_cmd_len=8192;
12061    ;;
12062
12063  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12064    # This has been around since 386BSD, at least.  Likely further.
12065    if test -x /sbin/sysctl; then
12066      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12067    elif test -x /usr/sbin/sysctl; then
12068      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12069    else
12070      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12071    fi
12072    # And add a safety zone
12073    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12074    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12075    ;;
12076
12077  interix*)
12078    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12079    lt_cv_sys_max_cmd_len=196608
12080    ;;
12081
12082  os2*)
12083    # The test takes a long time on OS/2.
12084    lt_cv_sys_max_cmd_len=8192
12085    ;;
12086
12087  osf*)
12088    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12089    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12090    # nice to cause kernel panics so lets avoid the loop below.
12091    # First set a reasonable default.
12092    lt_cv_sys_max_cmd_len=16384
12093    #
12094    if test -x /sbin/sysconfig; then
12095      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12096        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12097      esac
12098    fi
12099    ;;
12100  sco3.2v5*)
12101    lt_cv_sys_max_cmd_len=102400
12102    ;;
12103  sysv5* | sco5v6* | sysv4.2uw2*)
12104    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12105    if test -n "$kargmax"; then
12106      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12107    else
12108      lt_cv_sys_max_cmd_len=32768
12109    fi
12110    ;;
12111  *)
12112    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12113    if test -n "$lt_cv_sys_max_cmd_len" && \
12114       test undefined != "$lt_cv_sys_max_cmd_len"; then
12115      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12116      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12117    else
12118      # Make teststring a little bigger before we do anything with it.
12119      # a 1K string should be a reasonable start.
12120      for i in 1 2 3 4 5 6 7 8; do
12121        teststring=$teststring$teststring
12122      done
12123      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12124      # If test is not a shell built-in, we'll probably end up computing a
12125      # maximum length that is only half of the actual maximum length, but
12126      # we can't tell.
12127      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12128	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12129	      test 17 != "$i" # 1/2 MB should be enough
12130      do
12131        i=`expr $i + 1`
12132        teststring=$teststring$teststring
12133      done
12134      # Only check the string length outside the loop.
12135      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12136      teststring=
12137      # Add a significant safety factor because C++ compilers can tack on
12138      # massive amounts of additional arguments before passing them to the
12139      # linker.  It appears as though 1/2 is a usable value.
12140      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12141    fi
12142    ;;
12143  esac
12144
12145fi
12146
12147if test -n "$lt_cv_sys_max_cmd_len"; then
12148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12149printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12150else
12151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12152printf "%s\n" "none" >&6; }
12153fi
12154max_cmd_len=$lt_cv_sys_max_cmd_len
12155
12156
12157
12158
12159
12160
12161: ${CP="cp -f"}
12162: ${MV="mv -f"}
12163: ${RM="rm -f"}
12164
12165if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12166  lt_unset=unset
12167else
12168  lt_unset=false
12169fi
12170
12171
12172
12173
12174
12175# test EBCDIC or ASCII
12176case `echo X|tr X '\101'` in
12177 A) # ASCII based system
12178    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12179  lt_SP2NL='tr \040 \012'
12180  lt_NL2SP='tr \015\012 \040\040'
12181  ;;
12182 *) # EBCDIC based system
12183  lt_SP2NL='tr \100 \n'
12184  lt_NL2SP='tr \r\n \100\100'
12185  ;;
12186esac
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12197printf %s "checking how to convert $build file names to $host format... " >&6; }
12198if test ${lt_cv_to_host_file_cmd+y}
12199then :
12200  printf %s "(cached) " >&6
12201else $as_nop
12202  case $host in
12203  *-*-mingw* )
12204    case $build in
12205      *-*-mingw* ) # actually msys
12206        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12207        ;;
12208      *-*-cygwin* )
12209        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12210        ;;
12211      * ) # otherwise, assume *nix
12212        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12213        ;;
12214    esac
12215    ;;
12216  *-*-cygwin* )
12217    case $build in
12218      *-*-mingw* ) # actually msys
12219        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12220        ;;
12221      *-*-cygwin* )
12222        lt_cv_to_host_file_cmd=func_convert_file_noop
12223        ;;
12224      * ) # otherwise, assume *nix
12225        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12226        ;;
12227    esac
12228    ;;
12229  * ) # unhandled hosts (and "normal" native builds)
12230    lt_cv_to_host_file_cmd=func_convert_file_noop
12231    ;;
12232esac
12233
12234fi
12235
12236to_host_file_cmd=$lt_cv_to_host_file_cmd
12237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12238printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12239
12240
12241
12242
12243
12244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12245printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12246if test ${lt_cv_to_tool_file_cmd+y}
12247then :
12248  printf %s "(cached) " >&6
12249else $as_nop
12250  #assume ordinary cross tools, or native build.
12251lt_cv_to_tool_file_cmd=func_convert_file_noop
12252case $host in
12253  *-*-mingw* )
12254    case $build in
12255      *-*-mingw* ) # actually msys
12256        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12257        ;;
12258    esac
12259    ;;
12260esac
12261
12262fi
12263
12264to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12266printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12267
12268
12269
12270
12271
12272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12273printf %s "checking for $LD option to reload object files... " >&6; }
12274if test ${lt_cv_ld_reload_flag+y}
12275then :
12276  printf %s "(cached) " >&6
12277else $as_nop
12278  lt_cv_ld_reload_flag='-r'
12279fi
12280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12281printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12282reload_flag=$lt_cv_ld_reload_flag
12283case $reload_flag in
12284"" | " "*) ;;
12285*) reload_flag=" $reload_flag" ;;
12286esac
12287reload_cmds='$LD$reload_flag -o $output$reload_objs'
12288case $host_os in
12289  cygwin* | mingw* | pw32* | cegcc*)
12290    if test yes != "$GCC"; then
12291      reload_cmds=false
12292    fi
12293    ;;
12294  darwin*)
12295    if test yes = "$GCC"; then
12296      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12297    else
12298      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12299    fi
12300    ;;
12301esac
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311if test -n "$ac_tool_prefix"; then
12312  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12313set dummy ${ac_tool_prefix}file; ac_word=$2
12314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315printf %s "checking for $ac_word... " >&6; }
12316if test ${ac_cv_prog_FILECMD+y}
12317then :
12318  printf %s "(cached) " >&6
12319else $as_nop
12320  if test -n "$FILECMD"; then
12321  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12322else
12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324for as_dir in $PATH
12325do
12326  IFS=$as_save_IFS
12327  case $as_dir in #(((
12328    '') as_dir=./ ;;
12329    */) ;;
12330    *) as_dir=$as_dir/ ;;
12331  esac
12332    for ac_exec_ext in '' $ac_executable_extensions; do
12333  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12334    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12335    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12336    break 2
12337  fi
12338done
12339  done
12340IFS=$as_save_IFS
12341
12342fi
12343fi
12344FILECMD=$ac_cv_prog_FILECMD
12345if test -n "$FILECMD"; then
12346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12347printf "%s\n" "$FILECMD" >&6; }
12348else
12349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350printf "%s\n" "no" >&6; }
12351fi
12352
12353
12354fi
12355if test -z "$ac_cv_prog_FILECMD"; then
12356  ac_ct_FILECMD=$FILECMD
12357  # Extract the first word of "file", so it can be a program name with args.
12358set dummy file; ac_word=$2
12359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360printf %s "checking for $ac_word... " >&6; }
12361if test ${ac_cv_prog_ac_ct_FILECMD+y}
12362then :
12363  printf %s "(cached) " >&6
12364else $as_nop
12365  if test -n "$ac_ct_FILECMD"; then
12366  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12367else
12368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369for as_dir in $PATH
12370do
12371  IFS=$as_save_IFS
12372  case $as_dir in #(((
12373    '') as_dir=./ ;;
12374    */) ;;
12375    *) as_dir=$as_dir/ ;;
12376  esac
12377    for ac_exec_ext in '' $ac_executable_extensions; do
12378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12379    ac_cv_prog_ac_ct_FILECMD="file"
12380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12381    break 2
12382  fi
12383done
12384  done
12385IFS=$as_save_IFS
12386
12387fi
12388fi
12389ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12390if test -n "$ac_ct_FILECMD"; then
12391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12392printf "%s\n" "$ac_ct_FILECMD" >&6; }
12393else
12394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395printf "%s\n" "no" >&6; }
12396fi
12397
12398  if test "x$ac_ct_FILECMD" = x; then
12399    FILECMD=":"
12400  else
12401    case $cross_compiling:$ac_tool_warned in
12402yes:)
12403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12404printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12405ac_tool_warned=yes ;;
12406esac
12407    FILECMD=$ac_ct_FILECMD
12408  fi
12409else
12410  FILECMD="$ac_cv_prog_FILECMD"
12411fi
12412
12413
12414
12415
12416
12417
12418
12419if test -n "$ac_tool_prefix"; then
12420  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12421set dummy ${ac_tool_prefix}objdump; ac_word=$2
12422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12423printf %s "checking for $ac_word... " >&6; }
12424if test ${ac_cv_prog_OBJDUMP+y}
12425then :
12426  printf %s "(cached) " >&6
12427else $as_nop
12428  if test -n "$OBJDUMP"; then
12429  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12430else
12431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432for as_dir in $PATH
12433do
12434  IFS=$as_save_IFS
12435  case $as_dir in #(((
12436    '') as_dir=./ ;;
12437    */) ;;
12438    *) as_dir=$as_dir/ ;;
12439  esac
12440    for ac_exec_ext in '' $ac_executable_extensions; do
12441  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12442    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12443    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12444    break 2
12445  fi
12446done
12447  done
12448IFS=$as_save_IFS
12449
12450fi
12451fi
12452OBJDUMP=$ac_cv_prog_OBJDUMP
12453if test -n "$OBJDUMP"; then
12454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12455printf "%s\n" "$OBJDUMP" >&6; }
12456else
12457  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458printf "%s\n" "no" >&6; }
12459fi
12460
12461
12462fi
12463if test -z "$ac_cv_prog_OBJDUMP"; then
12464  ac_ct_OBJDUMP=$OBJDUMP
12465  # Extract the first word of "objdump", so it can be a program name with args.
12466set dummy objdump; ac_word=$2
12467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468printf %s "checking for $ac_word... " >&6; }
12469if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12470then :
12471  printf %s "(cached) " >&6
12472else $as_nop
12473  if test -n "$ac_ct_OBJDUMP"; then
12474  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12475else
12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477for as_dir in $PATH
12478do
12479  IFS=$as_save_IFS
12480  case $as_dir in #(((
12481    '') as_dir=./ ;;
12482    */) ;;
12483    *) as_dir=$as_dir/ ;;
12484  esac
12485    for ac_exec_ext in '' $ac_executable_extensions; do
12486  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12487    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12488    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12489    break 2
12490  fi
12491done
12492  done
12493IFS=$as_save_IFS
12494
12495fi
12496fi
12497ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12498if test -n "$ac_ct_OBJDUMP"; then
12499  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12500printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12501else
12502  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503printf "%s\n" "no" >&6; }
12504fi
12505
12506  if test "x$ac_ct_OBJDUMP" = x; then
12507    OBJDUMP="false"
12508  else
12509    case $cross_compiling:$ac_tool_warned in
12510yes:)
12511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12512printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12513ac_tool_warned=yes ;;
12514esac
12515    OBJDUMP=$ac_ct_OBJDUMP
12516  fi
12517else
12518  OBJDUMP="$ac_cv_prog_OBJDUMP"
12519fi
12520
12521test -z "$OBJDUMP" && OBJDUMP=objdump
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12532printf %s "checking how to recognize dependent libraries... " >&6; }
12533if test ${lt_cv_deplibs_check_method+y}
12534then :
12535  printf %s "(cached) " >&6
12536else $as_nop
12537  lt_cv_file_magic_cmd='$MAGIC_CMD'
12538lt_cv_file_magic_test_file=
12539lt_cv_deplibs_check_method='unknown'
12540# Need to set the preceding variable on all platforms that support
12541# interlibrary dependencies.
12542# 'none' -- dependencies not supported.
12543# 'unknown' -- same as none, but documents that we really don't know.
12544# 'pass_all' -- all dependencies passed with no checks.
12545# 'test_compile' -- check by making test program.
12546# 'file_magic [[regex]]' -- check by looking for files in library path
12547# that responds to the $file_magic_cmd with a given extended regex.
12548# If you have 'file' or equivalent on your system and you're not sure
12549# whether 'pass_all' will *always* work, you probably want this one.
12550
12551case $host_os in
12552aix[4-9]*)
12553  lt_cv_deplibs_check_method=pass_all
12554  ;;
12555
12556beos*)
12557  lt_cv_deplibs_check_method=pass_all
12558  ;;
12559
12560bsdi[45]*)
12561  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12562  lt_cv_file_magic_cmd='$FILECMD -L'
12563  lt_cv_file_magic_test_file=/shlib/libc.so
12564  ;;
12565
12566cygwin*)
12567  # func_win32_libid is a shell function defined in ltmain.sh
12568  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12569  lt_cv_file_magic_cmd='func_win32_libid'
12570  ;;
12571
12572mingw* | pw32*)
12573  # Base MSYS/MinGW do not provide the 'file' command needed by
12574  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12575  # unless we find 'file', for example because we are cross-compiling.
12576  if ( file / ) >/dev/null 2>&1; then
12577    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12578    lt_cv_file_magic_cmd='func_win32_libid'
12579  else
12580    # Keep this pattern in sync with the one in func_win32_libid.
12581    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12582    lt_cv_file_magic_cmd='$OBJDUMP -f'
12583  fi
12584  ;;
12585
12586cegcc*)
12587  # use the weaker test based on 'objdump'. See mingw*.
12588  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12589  lt_cv_file_magic_cmd='$OBJDUMP -f'
12590  ;;
12591
12592darwin* | rhapsody*)
12593  lt_cv_deplibs_check_method=pass_all
12594  ;;
12595
12596freebsd* | dragonfly* | midnightbsd*)
12597  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12598    case $host_cpu in
12599    i*86 )
12600      # Not sure whether the presence of OpenBSD here was a mistake.
12601      # Let's accept both of them until this is cleared up.
12602      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12603      lt_cv_file_magic_cmd=$FILECMD
12604      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12605      ;;
12606    esac
12607  else
12608    lt_cv_deplibs_check_method=pass_all
12609  fi
12610  ;;
12611
12612haiku*)
12613  lt_cv_deplibs_check_method=pass_all
12614  ;;
12615
12616hpux10.20* | hpux11*)
12617  lt_cv_file_magic_cmd=$FILECMD
12618  case $host_cpu in
12619  ia64*)
12620    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12621    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12622    ;;
12623  hppa*64*)
12624    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]'
12625    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12626    ;;
12627  *)
12628    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12629    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12630    ;;
12631  esac
12632  ;;
12633
12634interix[3-9]*)
12635  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12636  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12637  ;;
12638
12639irix5* | irix6* | nonstopux*)
12640  case $LD in
12641  *-32|*"-32 ") libmagic=32-bit;;
12642  *-n32|*"-n32 ") libmagic=N32;;
12643  *-64|*"-64 ") libmagic=64-bit;;
12644  *) libmagic=never-match;;
12645  esac
12646  lt_cv_deplibs_check_method=pass_all
12647  ;;
12648
12649# This must be glibc/ELF.
12650linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12651  lt_cv_deplibs_check_method=pass_all
12652  ;;
12653
12654netbsd*)
12655  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12656    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12657  else
12658    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12659  fi
12660  ;;
12661
12662newos6*)
12663  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12664  lt_cv_file_magic_cmd=$FILECMD
12665  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12666  ;;
12667
12668*nto* | *qnx*)
12669  lt_cv_deplibs_check_method=pass_all
12670  ;;
12671
12672openbsd* | bitrig*)
12673  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12674    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12675  else
12676    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12677  fi
12678  ;;
12679
12680osf3* | osf4* | osf5*)
12681  lt_cv_deplibs_check_method=pass_all
12682  ;;
12683
12684rdos*)
12685  lt_cv_deplibs_check_method=pass_all
12686  ;;
12687
12688solaris*)
12689  lt_cv_deplibs_check_method=pass_all
12690  ;;
12691
12692sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12693  lt_cv_deplibs_check_method=pass_all
12694  ;;
12695
12696sysv4 | sysv4.3*)
12697  case $host_vendor in
12698  motorola)
12699    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]'
12700    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12701    ;;
12702  ncr)
12703    lt_cv_deplibs_check_method=pass_all
12704    ;;
12705  sequent)
12706    lt_cv_file_magic_cmd='/bin/file'
12707    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12708    ;;
12709  sni)
12710    lt_cv_file_magic_cmd='/bin/file'
12711    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12712    lt_cv_file_magic_test_file=/lib/libc.so
12713    ;;
12714  siemens)
12715    lt_cv_deplibs_check_method=pass_all
12716    ;;
12717  pc)
12718    lt_cv_deplibs_check_method=pass_all
12719    ;;
12720  esac
12721  ;;
12722
12723tpf*)
12724  lt_cv_deplibs_check_method=pass_all
12725  ;;
12726os2*)
12727  lt_cv_deplibs_check_method=pass_all
12728  ;;
12729esac
12730
12731fi
12732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12733printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12734
12735file_magic_glob=
12736want_nocaseglob=no
12737if test "$build" = "$host"; then
12738  case $host_os in
12739  mingw* | pw32*)
12740    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12741      want_nocaseglob=yes
12742    else
12743      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12744    fi
12745    ;;
12746  esac
12747fi
12748
12749file_magic_cmd=$lt_cv_file_magic_cmd
12750deplibs_check_method=$lt_cv_deplibs_check_method
12751test -z "$deplibs_check_method" && deplibs_check_method=unknown
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774if test -n "$ac_tool_prefix"; then
12775  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12776set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778printf %s "checking for $ac_word... " >&6; }
12779if test ${ac_cv_prog_DLLTOOL+y}
12780then :
12781  printf %s "(cached) " >&6
12782else $as_nop
12783  if test -n "$DLLTOOL"; then
12784  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12785else
12786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12787for as_dir in $PATH
12788do
12789  IFS=$as_save_IFS
12790  case $as_dir in #(((
12791    '') as_dir=./ ;;
12792    */) ;;
12793    *) as_dir=$as_dir/ ;;
12794  esac
12795    for ac_exec_ext in '' $ac_executable_extensions; do
12796  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12797    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12798    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12799    break 2
12800  fi
12801done
12802  done
12803IFS=$as_save_IFS
12804
12805fi
12806fi
12807DLLTOOL=$ac_cv_prog_DLLTOOL
12808if test -n "$DLLTOOL"; then
12809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12810printf "%s\n" "$DLLTOOL" >&6; }
12811else
12812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813printf "%s\n" "no" >&6; }
12814fi
12815
12816
12817fi
12818if test -z "$ac_cv_prog_DLLTOOL"; then
12819  ac_ct_DLLTOOL=$DLLTOOL
12820  # Extract the first word of "dlltool", so it can be a program name with args.
12821set dummy dlltool; ac_word=$2
12822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823printf %s "checking for $ac_word... " >&6; }
12824if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12825then :
12826  printf %s "(cached) " >&6
12827else $as_nop
12828  if test -n "$ac_ct_DLLTOOL"; then
12829  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12830else
12831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832for as_dir in $PATH
12833do
12834  IFS=$as_save_IFS
12835  case $as_dir in #(((
12836    '') as_dir=./ ;;
12837    */) ;;
12838    *) as_dir=$as_dir/ ;;
12839  esac
12840    for ac_exec_ext in '' $ac_executable_extensions; do
12841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12842    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12844    break 2
12845  fi
12846done
12847  done
12848IFS=$as_save_IFS
12849
12850fi
12851fi
12852ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12853if test -n "$ac_ct_DLLTOOL"; then
12854  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12855printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12856else
12857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858printf "%s\n" "no" >&6; }
12859fi
12860
12861  if test "x$ac_ct_DLLTOOL" = x; then
12862    DLLTOOL="false"
12863  else
12864    case $cross_compiling:$ac_tool_warned in
12865yes:)
12866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12867printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12868ac_tool_warned=yes ;;
12869esac
12870    DLLTOOL=$ac_ct_DLLTOOL
12871  fi
12872else
12873  DLLTOOL="$ac_cv_prog_DLLTOOL"
12874fi
12875
12876test -z "$DLLTOOL" && DLLTOOL=dlltool
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12888printf %s "checking how to associate runtime and link libraries... " >&6; }
12889if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12890then :
12891  printf %s "(cached) " >&6
12892else $as_nop
12893  lt_cv_sharedlib_from_linklib_cmd='unknown'
12894
12895case $host_os in
12896cygwin* | mingw* | pw32* | cegcc*)
12897  # two different shell functions defined in ltmain.sh;
12898  # decide which one to use based on capabilities of $DLLTOOL
12899  case `$DLLTOOL --help 2>&1` in
12900  *--identify-strict*)
12901    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12902    ;;
12903  *)
12904    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12905    ;;
12906  esac
12907  ;;
12908*)
12909  # fallback: assume linklib IS sharedlib
12910  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12911  ;;
12912esac
12913
12914fi
12915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12916printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12917sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12918test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12919
12920
12921
12922
12923
12924
12925
12926if test -n "$ac_tool_prefix"; then
12927  for ac_prog in ar
12928  do
12929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932printf %s "checking for $ac_word... " >&6; }
12933if test ${ac_cv_prog_AR+y}
12934then :
12935  printf %s "(cached) " >&6
12936else $as_nop
12937  if test -n "$AR"; then
12938  ac_cv_prog_AR="$AR" # Let the user override the test.
12939else
12940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $PATH
12942do
12943  IFS=$as_save_IFS
12944  case $as_dir in #(((
12945    '') as_dir=./ ;;
12946    */) ;;
12947    *) as_dir=$as_dir/ ;;
12948  esac
12949    for ac_exec_ext in '' $ac_executable_extensions; do
12950  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12951    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12952    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12953    break 2
12954  fi
12955done
12956  done
12957IFS=$as_save_IFS
12958
12959fi
12960fi
12961AR=$ac_cv_prog_AR
12962if test -n "$AR"; then
12963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12964printf "%s\n" "$AR" >&6; }
12965else
12966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967printf "%s\n" "no" >&6; }
12968fi
12969
12970
12971    test -n "$AR" && break
12972  done
12973fi
12974if test -z "$AR"; then
12975  ac_ct_AR=$AR
12976  for ac_prog in ar
12977do
12978  # Extract the first word of "$ac_prog", so it can be a program name with args.
12979set dummy $ac_prog; ac_word=$2
12980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981printf %s "checking for $ac_word... " >&6; }
12982if test ${ac_cv_prog_ac_ct_AR+y}
12983then :
12984  printf %s "(cached) " >&6
12985else $as_nop
12986  if test -n "$ac_ct_AR"; then
12987  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12988else
12989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990for as_dir in $PATH
12991do
12992  IFS=$as_save_IFS
12993  case $as_dir in #(((
12994    '') as_dir=./ ;;
12995    */) ;;
12996    *) as_dir=$as_dir/ ;;
12997  esac
12998    for ac_exec_ext in '' $ac_executable_extensions; do
12999  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13000    ac_cv_prog_ac_ct_AR="$ac_prog"
13001    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13002    break 2
13003  fi
13004done
13005  done
13006IFS=$as_save_IFS
13007
13008fi
13009fi
13010ac_ct_AR=$ac_cv_prog_ac_ct_AR
13011if test -n "$ac_ct_AR"; then
13012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13013printf "%s\n" "$ac_ct_AR" >&6; }
13014else
13015  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016printf "%s\n" "no" >&6; }
13017fi
13018
13019
13020  test -n "$ac_ct_AR" && break
13021done
13022
13023  if test "x$ac_ct_AR" = x; then
13024    AR="false"
13025  else
13026    case $cross_compiling:$ac_tool_warned in
13027yes:)
13028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13029printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13030ac_tool_warned=yes ;;
13031esac
13032    AR=$ac_ct_AR
13033  fi
13034fi
13035
13036: ${AR=ar}
13037
13038
13039
13040
13041
13042
13043# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13044# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13045# higher priority because thats what people were doing historically (setting
13046# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13047# variable obsoleted/removed.
13048
13049test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13050lt_ar_flags=$AR_FLAGS
13051
13052
13053
13054
13055
13056
13057# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13058# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13059
13060
13061
13062
13063
13064
13065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13066printf %s "checking for archiver @FILE support... " >&6; }
13067if test ${lt_cv_ar_at_file+y}
13068then :
13069  printf %s "(cached) " >&6
13070else $as_nop
13071  lt_cv_ar_at_file=no
13072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073/* end confdefs.h.  */
13074
13075int
13076main (void)
13077{
13078
13079  ;
13080  return 0;
13081}
13082_ACEOF
13083if ac_fn_c_try_compile "$LINENO"
13084then :
13085  echo conftest.$ac_objext > conftest.lst
13086      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13087      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13088  (eval $lt_ar_try) 2>&5
13089  ac_status=$?
13090  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091  test $ac_status = 0; }
13092      if test 0 -eq "$ac_status"; then
13093	# Ensure the archiver fails upon bogus file names.
13094	rm -f conftest.$ac_objext libconftest.a
13095	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13096  (eval $lt_ar_try) 2>&5
13097  ac_status=$?
13098  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13099  test $ac_status = 0; }
13100	if test 0 -ne "$ac_status"; then
13101          lt_cv_ar_at_file=@
13102        fi
13103      fi
13104      rm -f conftest.* libconftest.a
13105
13106fi
13107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13108
13109fi
13110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13111printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13112
13113if test no = "$lt_cv_ar_at_file"; then
13114  archiver_list_spec=
13115else
13116  archiver_list_spec=$lt_cv_ar_at_file
13117fi
13118
13119
13120
13121
13122
13123
13124
13125if test -n "$ac_tool_prefix"; then
13126  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13127set dummy ${ac_tool_prefix}strip; ac_word=$2
13128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129printf %s "checking for $ac_word... " >&6; }
13130if test ${ac_cv_prog_STRIP+y}
13131then :
13132  printf %s "(cached) " >&6
13133else $as_nop
13134  if test -n "$STRIP"; then
13135  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13136else
13137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138for as_dir in $PATH
13139do
13140  IFS=$as_save_IFS
13141  case $as_dir in #(((
13142    '') as_dir=./ ;;
13143    */) ;;
13144    *) as_dir=$as_dir/ ;;
13145  esac
13146    for ac_exec_ext in '' $ac_executable_extensions; do
13147  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13148    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13149    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13150    break 2
13151  fi
13152done
13153  done
13154IFS=$as_save_IFS
13155
13156fi
13157fi
13158STRIP=$ac_cv_prog_STRIP
13159if test -n "$STRIP"; then
13160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13161printf "%s\n" "$STRIP" >&6; }
13162else
13163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164printf "%s\n" "no" >&6; }
13165fi
13166
13167
13168fi
13169if test -z "$ac_cv_prog_STRIP"; then
13170  ac_ct_STRIP=$STRIP
13171  # Extract the first word of "strip", so it can be a program name with args.
13172set dummy strip; ac_word=$2
13173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174printf %s "checking for $ac_word... " >&6; }
13175if test ${ac_cv_prog_ac_ct_STRIP+y}
13176then :
13177  printf %s "(cached) " >&6
13178else $as_nop
13179  if test -n "$ac_ct_STRIP"; then
13180  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185  IFS=$as_save_IFS
13186  case $as_dir in #(((
13187    '') as_dir=./ ;;
13188    */) ;;
13189    *) as_dir=$as_dir/ ;;
13190  esac
13191    for ac_exec_ext in '' $ac_executable_extensions; do
13192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13193    ac_cv_prog_ac_ct_STRIP="strip"
13194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13195    break 2
13196  fi
13197done
13198  done
13199IFS=$as_save_IFS
13200
13201fi
13202fi
13203ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13204if test -n "$ac_ct_STRIP"; then
13205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13206printf "%s\n" "$ac_ct_STRIP" >&6; }
13207else
13208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209printf "%s\n" "no" >&6; }
13210fi
13211
13212  if test "x$ac_ct_STRIP" = x; then
13213    STRIP=":"
13214  else
13215    case $cross_compiling:$ac_tool_warned in
13216yes:)
13217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13218printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13219ac_tool_warned=yes ;;
13220esac
13221    STRIP=$ac_ct_STRIP
13222  fi
13223else
13224  STRIP="$ac_cv_prog_STRIP"
13225fi
13226
13227test -z "$STRIP" && STRIP=:
13228
13229
13230
13231
13232
13233
13234if test -n "$ac_tool_prefix"; then
13235  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13236set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238printf %s "checking for $ac_word... " >&6; }
13239if test ${ac_cv_prog_RANLIB+y}
13240then :
13241  printf %s "(cached) " >&6
13242else $as_nop
13243  if test -n "$RANLIB"; then
13244  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13245else
13246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $PATH
13248do
13249  IFS=$as_save_IFS
13250  case $as_dir in #(((
13251    '') as_dir=./ ;;
13252    */) ;;
13253    *) as_dir=$as_dir/ ;;
13254  esac
13255    for ac_exec_ext in '' $ac_executable_extensions; do
13256  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13257    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13258    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13259    break 2
13260  fi
13261done
13262  done
13263IFS=$as_save_IFS
13264
13265fi
13266fi
13267RANLIB=$ac_cv_prog_RANLIB
13268if test -n "$RANLIB"; then
13269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13270printf "%s\n" "$RANLIB" >&6; }
13271else
13272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273printf "%s\n" "no" >&6; }
13274fi
13275
13276
13277fi
13278if test -z "$ac_cv_prog_RANLIB"; then
13279  ac_ct_RANLIB=$RANLIB
13280  # Extract the first word of "ranlib", so it can be a program name with args.
13281set dummy ranlib; ac_word=$2
13282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283printf %s "checking for $ac_word... " >&6; }
13284if test ${ac_cv_prog_ac_ct_RANLIB+y}
13285then :
13286  printf %s "(cached) " >&6
13287else $as_nop
13288  if test -n "$ac_ct_RANLIB"; then
13289  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13290else
13291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292for as_dir in $PATH
13293do
13294  IFS=$as_save_IFS
13295  case $as_dir in #(((
13296    '') as_dir=./ ;;
13297    */) ;;
13298    *) as_dir=$as_dir/ ;;
13299  esac
13300    for ac_exec_ext in '' $ac_executable_extensions; do
13301  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13302    ac_cv_prog_ac_ct_RANLIB="ranlib"
13303    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13304    break 2
13305  fi
13306done
13307  done
13308IFS=$as_save_IFS
13309
13310fi
13311fi
13312ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13313if test -n "$ac_ct_RANLIB"; then
13314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13315printf "%s\n" "$ac_ct_RANLIB" >&6; }
13316else
13317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13318printf "%s\n" "no" >&6; }
13319fi
13320
13321  if test "x$ac_ct_RANLIB" = x; then
13322    RANLIB=":"
13323  else
13324    case $cross_compiling:$ac_tool_warned in
13325yes:)
13326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13327printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13328ac_tool_warned=yes ;;
13329esac
13330    RANLIB=$ac_ct_RANLIB
13331  fi
13332else
13333  RANLIB="$ac_cv_prog_RANLIB"
13334fi
13335
13336test -z "$RANLIB" && RANLIB=:
13337
13338
13339
13340
13341
13342
13343# Determine commands to create old-style static archives.
13344old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13345old_postinstall_cmds='chmod 644 $oldlib'
13346old_postuninstall_cmds=
13347
13348if test -n "$RANLIB"; then
13349  case $host_os in
13350  bitrig* | openbsd*)
13351    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13352    ;;
13353  *)
13354    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13355    ;;
13356  esac
13357  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13358fi
13359
13360case $host_os in
13361  darwin*)
13362    lock_old_archive_extraction=yes ;;
13363  *)
13364    lock_old_archive_extraction=no ;;
13365esac
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405# If no C compiler was specified, use CC.
13406LTCC=${LTCC-"$CC"}
13407
13408# If no C compiler flags were specified, use CFLAGS.
13409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13410
13411# Allow CC to be a program name with arguments.
13412compiler=$CC
13413
13414
13415# Check for command to grab the raw symbol name followed by C symbol from nm.
13416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13417printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13418if test ${lt_cv_sys_global_symbol_pipe+y}
13419then :
13420  printf %s "(cached) " >&6
13421else $as_nop
13422
13423# These are sane defaults that work on at least a few old systems.
13424# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13425
13426# Character class describing NM global symbol codes.
13427symcode='[BCDEGRST]'
13428
13429# Regexp to match symbols that can be accessed directly from C.
13430sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13431
13432# Define system-specific variables.
13433case $host_os in
13434aix*)
13435  symcode='[BCDT]'
13436  ;;
13437cygwin* | mingw* | pw32* | cegcc*)
13438  symcode='[ABCDGISTW]'
13439  ;;
13440hpux*)
13441  if test ia64 = "$host_cpu"; then
13442    symcode='[ABCDEGRST]'
13443  fi
13444  ;;
13445irix* | nonstopux*)
13446  symcode='[BCDEGRST]'
13447  ;;
13448osf*)
13449  symcode='[BCDEGQRST]'
13450  ;;
13451solaris*)
13452  symcode='[BDRT]'
13453  ;;
13454sco3.2v5*)
13455  symcode='[DT]'
13456  ;;
13457sysv4.2uw2*)
13458  symcode='[DT]'
13459  ;;
13460sysv5* | sco5v6* | unixware* | OpenUNIX*)
13461  symcode='[ABDT]'
13462  ;;
13463sysv4)
13464  symcode='[DFNSTU]'
13465  ;;
13466esac
13467
13468# If we're using GNU nm, then use its standard symbol codes.
13469case `$NM -V 2>&1` in
13470*GNU* | *'with BFD'*)
13471  symcode='[ABCDGIRSTW]' ;;
13472esac
13473
13474if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13475  # Gets list of data symbols to import.
13476  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13477  # Adjust the below global symbol transforms to fixup imported variables.
13478  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13479  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13480  lt_c_name_lib_hook="\
13481  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13482  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13483else
13484  # Disable hooks by default.
13485  lt_cv_sys_global_symbol_to_import=
13486  lt_cdecl_hook=
13487  lt_c_name_hook=
13488  lt_c_name_lib_hook=
13489fi
13490
13491# Transform an extracted symbol line into a proper C declaration.
13492# Some systems (esp. on ia64) link data and code symbols differently,
13493# so use this general approach.
13494lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13495$lt_cdecl_hook\
13496" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13497" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13498
13499# Transform an extracted symbol line into symbol name and symbol address
13500lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13501$lt_c_name_hook\
13502" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13503" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13504
13505# Transform an extracted symbol line into symbol name with lib prefix and
13506# symbol address.
13507lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13508$lt_c_name_lib_hook\
13509" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13510" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13511" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13512
13513# Handle CRLF in mingw tool chain
13514opt_cr=
13515case $build_os in
13516mingw*)
13517  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13518  ;;
13519esac
13520
13521# Try without a prefix underscore, then with it.
13522for ac_symprfx in "" "_"; do
13523
13524  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13525  symxfrm="\\1 $ac_symprfx\\2 \\2"
13526
13527  # Write the raw and C identifiers.
13528  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13529    # Fake it for dumpbin and say T for any non-static function,
13530    # D for any global variable and I for any imported variable.
13531    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13532    # which start with @ or ?.
13533    lt_cv_sys_global_symbol_pipe="$AWK '"\
13534"     {last_section=section; section=\$ 3};"\
13535"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13536"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13537"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13538"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13539"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13540"     \$ 0!~/External *\|/{next};"\
13541"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13542"     {if(hide[section]) next};"\
13543"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13544"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13545"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13546"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13547"     ' prfx=^$ac_symprfx"
13548  else
13549    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13550  fi
13551  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13552
13553  # Check to see that the pipe works correctly.
13554  pipe_works=no
13555
13556  rm -f conftest*
13557  cat > conftest.$ac_ext <<_LT_EOF
13558#ifdef __cplusplus
13559extern "C" {
13560#endif
13561char nm_test_var;
13562void nm_test_func(void);
13563void nm_test_func(void){}
13564#ifdef __cplusplus
13565}
13566#endif
13567int main(){nm_test_var='a';nm_test_func();return(0);}
13568_LT_EOF
13569
13570  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13571  (eval $ac_compile) 2>&5
13572  ac_status=$?
13573  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574  test $ac_status = 0; }; then
13575    # Now try to grab the symbols.
13576    nlist=conftest.nm
13577    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13578  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13579  ac_status=$?
13580  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581  test $ac_status = 0; } && test -s "$nlist"; then
13582      # Try sorting and uniquifying the output.
13583      if sort "$nlist" | uniq > "$nlist"T; then
13584	mv -f "$nlist"T "$nlist"
13585      else
13586	rm -f "$nlist"T
13587      fi
13588
13589      # Make sure that we snagged all the symbols we need.
13590      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13591	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13592	  cat <<_LT_EOF > conftest.$ac_ext
13593/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13594#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13595/* DATA imports from DLLs on WIN32 can't be const, because runtime
13596   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13597# define LT_DLSYM_CONST
13598#elif defined __osf__
13599/* This system does not cope well with relocations in const data.  */
13600# define LT_DLSYM_CONST
13601#else
13602# define LT_DLSYM_CONST const
13603#endif
13604
13605#ifdef __cplusplus
13606extern "C" {
13607#endif
13608
13609_LT_EOF
13610	  # Now generate the symbol file.
13611	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13612
13613	  cat <<_LT_EOF >> conftest.$ac_ext
13614
13615/* The mapping between symbol names and symbols.  */
13616LT_DLSYM_CONST struct {
13617  const char *name;
13618  void       *address;
13619}
13620lt__PROGRAM__LTX_preloaded_symbols[] =
13621{
13622  { "@PROGRAM@", (void *) 0 },
13623_LT_EOF
13624	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13625	  cat <<\_LT_EOF >> conftest.$ac_ext
13626  {0, (void *) 0}
13627};
13628
13629/* This works around a problem in FreeBSD linker */
13630#ifdef FREEBSD_WORKAROUND
13631static const void *lt_preloaded_setup() {
13632  return lt__PROGRAM__LTX_preloaded_symbols;
13633}
13634#endif
13635
13636#ifdef __cplusplus
13637}
13638#endif
13639_LT_EOF
13640	  # Now try linking the two files.
13641	  mv conftest.$ac_objext conftstm.$ac_objext
13642	  lt_globsym_save_LIBS=$LIBS
13643	  lt_globsym_save_CFLAGS=$CFLAGS
13644	  LIBS=conftstm.$ac_objext
13645	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13646	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13647  (eval $ac_link) 2>&5
13648  ac_status=$?
13649  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13650  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13651	    pipe_works=yes
13652	  fi
13653	  LIBS=$lt_globsym_save_LIBS
13654	  CFLAGS=$lt_globsym_save_CFLAGS
13655	else
13656	  echo "cannot find nm_test_func in $nlist" >&5
13657	fi
13658      else
13659	echo "cannot find nm_test_var in $nlist" >&5
13660      fi
13661    else
13662      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13663    fi
13664  else
13665    echo "$progname: failed program was:" >&5
13666    cat conftest.$ac_ext >&5
13667  fi
13668  rm -rf conftest* conftst*
13669
13670  # Do not use the global_symbol_pipe unless it works.
13671  if test yes = "$pipe_works"; then
13672    break
13673  else
13674    lt_cv_sys_global_symbol_pipe=
13675  fi
13676done
13677
13678fi
13679
13680if test -z "$lt_cv_sys_global_symbol_pipe"; then
13681  lt_cv_sys_global_symbol_to_cdecl=
13682fi
13683if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13685printf "%s\n" "failed" >&6; }
13686else
13687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13688printf "%s\n" "ok" >&6; }
13689fi
13690
13691# Response file support.
13692if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13693  nm_file_list_spec='@'
13694elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13695  nm_file_list_spec='@'
13696fi
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13735printf %s "checking for sysroot... " >&6; }
13736
13737# Check whether --with-sysroot was given.
13738if test ${with_sysroot+y}
13739then :
13740  withval=$with_sysroot;
13741else $as_nop
13742  with_sysroot=no
13743fi
13744
13745
13746lt_sysroot=
13747case $with_sysroot in #(
13748 yes)
13749   if test yes = "$GCC"; then
13750     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13751   fi
13752   ;; #(
13753 /*)
13754   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13755   ;; #(
13756 no|'')
13757   ;; #(
13758 *)
13759   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13760printf "%s\n" "$with_sysroot" >&6; }
13761   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13762   ;;
13763esac
13764
13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13766printf "%s\n" "${lt_sysroot:-no}" >&6; }
13767
13768
13769
13770
13771
13772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13773printf %s "checking for a working dd... " >&6; }
13774if test ${ac_cv_path_lt_DD+y}
13775then :
13776  printf %s "(cached) " >&6
13777else $as_nop
13778  printf 0123456789abcdef0123456789abcdef >conftest.i
13779cat conftest.i conftest.i >conftest2.i
13780: ${lt_DD:=$DD}
13781if test -z "$lt_DD"; then
13782  ac_path_lt_DD_found=false
13783  # Loop through the user's path and test for each of PROGNAME-LIST
13784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785for as_dir in $PATH
13786do
13787  IFS=$as_save_IFS
13788  case $as_dir in #(((
13789    '') as_dir=./ ;;
13790    */) ;;
13791    *) as_dir=$as_dir/ ;;
13792  esac
13793    for ac_prog in dd
13794   do
13795    for ac_exec_ext in '' $ac_executable_extensions; do
13796      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13797      as_fn_executable_p "$ac_path_lt_DD" || continue
13798if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13799  cmp -s conftest.i conftest.out \
13800  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13801fi
13802      $ac_path_lt_DD_found && break 3
13803    done
13804  done
13805  done
13806IFS=$as_save_IFS
13807  if test -z "$ac_cv_path_lt_DD"; then
13808    :
13809  fi
13810else
13811  ac_cv_path_lt_DD=$lt_DD
13812fi
13813
13814rm -f conftest.i conftest2.i conftest.out
13815fi
13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13817printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13818
13819
13820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13821printf %s "checking how to truncate binary pipes... " >&6; }
13822if test ${lt_cv_truncate_bin+y}
13823then :
13824  printf %s "(cached) " >&6
13825else $as_nop
13826  printf 0123456789abcdef0123456789abcdef >conftest.i
13827cat conftest.i conftest.i >conftest2.i
13828lt_cv_truncate_bin=
13829if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13830  cmp -s conftest.i conftest.out \
13831  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13832fi
13833rm -f conftest.i conftest2.i conftest.out
13834test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13835fi
13836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13837printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13838
13839
13840
13841
13842
13843
13844
13845# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13846func_cc_basename ()
13847{
13848    for cc_temp in $*""; do
13849      case $cc_temp in
13850        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13851        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13852        \-*) ;;
13853        *) break;;
13854      esac
13855    done
13856    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13857}
13858
13859# Check whether --enable-libtool-lock was given.
13860if test ${enable_libtool_lock+y}
13861then :
13862  enableval=$enable_libtool_lock;
13863fi
13864
13865test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13866
13867# Some flags need to be propagated to the compiler or linker for good
13868# libtool support.
13869case $host in
13870ia64-*-hpux*)
13871  # Find out what ABI is being produced by ac_compile, and set mode
13872  # options accordingly.
13873  echo 'int i;' > conftest.$ac_ext
13874  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13875  (eval $ac_compile) 2>&5
13876  ac_status=$?
13877  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13878  test $ac_status = 0; }; then
13879    case `$FILECMD conftest.$ac_objext` in
13880      *ELF-32*)
13881	HPUX_IA64_MODE=32
13882	;;
13883      *ELF-64*)
13884	HPUX_IA64_MODE=64
13885	;;
13886    esac
13887  fi
13888  rm -rf conftest*
13889  ;;
13890*-*-irix6*)
13891  # Find out what ABI is being produced by ac_compile, and set linker
13892  # options accordingly.
13893  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13894  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13895  (eval $ac_compile) 2>&5
13896  ac_status=$?
13897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13898  test $ac_status = 0; }; then
13899    if test yes = "$lt_cv_prog_gnu_ld"; then
13900      case `$FILECMD conftest.$ac_objext` in
13901	*32-bit*)
13902	  LD="${LD-ld} -melf32bsmip"
13903	  ;;
13904	*N32*)
13905	  LD="${LD-ld} -melf32bmipn32"
13906	  ;;
13907	*64-bit*)
13908	  LD="${LD-ld} -melf64bmip"
13909	;;
13910      esac
13911    else
13912      case `$FILECMD conftest.$ac_objext` in
13913	*32-bit*)
13914	  LD="${LD-ld} -32"
13915	  ;;
13916	*N32*)
13917	  LD="${LD-ld} -n32"
13918	  ;;
13919	*64-bit*)
13920	  LD="${LD-ld} -64"
13921	  ;;
13922      esac
13923    fi
13924  fi
13925  rm -rf conftest*
13926  ;;
13927
13928mips64*-*linux*)
13929  # Find out what ABI is being produced by ac_compile, and set linker
13930  # options accordingly.
13931  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13932  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13933  (eval $ac_compile) 2>&5
13934  ac_status=$?
13935  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13936  test $ac_status = 0; }; then
13937    emul=elf
13938    case `$FILECMD conftest.$ac_objext` in
13939      *32-bit*)
13940	emul="${emul}32"
13941	;;
13942      *64-bit*)
13943	emul="${emul}64"
13944	;;
13945    esac
13946    case `$FILECMD conftest.$ac_objext` in
13947      *MSB*)
13948	emul="${emul}btsmip"
13949	;;
13950      *LSB*)
13951	emul="${emul}ltsmip"
13952	;;
13953    esac
13954    case `$FILECMD conftest.$ac_objext` in
13955      *N32*)
13956	emul="${emul}n32"
13957	;;
13958    esac
13959    LD="${LD-ld} -m $emul"
13960  fi
13961  rm -rf conftest*
13962  ;;
13963
13964x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13965s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13966  # Find out what ABI is being produced by ac_compile, and set linker
13967  # options accordingly.  Note that the listed cases only cover the
13968  # situations where additional linker options are needed (such as when
13969  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13970  # vice versa); the common cases where no linker options are needed do
13971  # not appear in the list.
13972  echo 'int i;' > conftest.$ac_ext
13973  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13974  (eval $ac_compile) 2>&5
13975  ac_status=$?
13976  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13977  test $ac_status = 0; }; then
13978    case `$FILECMD conftest.o` in
13979      *32-bit*)
13980	case $host in
13981	  x86_64-*kfreebsd*-gnu)
13982	    LD="${LD-ld} -m elf_i386_fbsd"
13983	    ;;
13984	  x86_64-*linux*)
13985	    case `$FILECMD conftest.o` in
13986	      *x86-64*)
13987		LD="${LD-ld} -m elf32_x86_64"
13988		;;
13989	      *)
13990		LD="${LD-ld} -m elf_i386"
13991		;;
13992	    esac
13993	    ;;
13994	  powerpc64le-*linux*)
13995	    LD="${LD-ld} -m elf32lppclinux"
13996	    ;;
13997	  powerpc64-*linux*)
13998	    LD="${LD-ld} -m elf32ppclinux"
13999	    ;;
14000	  s390x-*linux*)
14001	    LD="${LD-ld} -m elf_s390"
14002	    ;;
14003	  sparc64-*linux*)
14004	    LD="${LD-ld} -m elf32_sparc"
14005	    ;;
14006	esac
14007	;;
14008      *64-bit*)
14009	case $host in
14010	  x86_64-*kfreebsd*-gnu)
14011	    LD="${LD-ld} -m elf_x86_64_fbsd"
14012	    ;;
14013	  x86_64-*linux*)
14014	    LD="${LD-ld} -m elf_x86_64"
14015	    ;;
14016	  powerpcle-*linux*)
14017	    LD="${LD-ld} -m elf64lppc"
14018	    ;;
14019	  powerpc-*linux*)
14020	    LD="${LD-ld} -m elf64ppc"
14021	    ;;
14022	  s390*-*linux*|s390*-*tpf*)
14023	    LD="${LD-ld} -m elf64_s390"
14024	    ;;
14025	  sparc*-*linux*)
14026	    LD="${LD-ld} -m elf64_sparc"
14027	    ;;
14028	esac
14029	;;
14030    esac
14031  fi
14032  rm -rf conftest*
14033  ;;
14034
14035*-*-sco3.2v5*)
14036  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14037  SAVE_CFLAGS=$CFLAGS
14038  CFLAGS="$CFLAGS -belf"
14039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14040printf %s "checking whether the C compiler needs -belf... " >&6; }
14041if test ${lt_cv_cc_needs_belf+y}
14042then :
14043  printf %s "(cached) " >&6
14044else $as_nop
14045  ac_ext=c
14046ac_cpp='$CPP $CPPFLAGS'
14047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14049ac_compiler_gnu=$ac_cv_c_compiler_gnu
14050
14051     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052/* end confdefs.h.  */
14053
14054int
14055main (void)
14056{
14057
14058  ;
14059  return 0;
14060}
14061_ACEOF
14062if ac_fn_c_try_link "$LINENO"
14063then :
14064  lt_cv_cc_needs_belf=yes
14065else $as_nop
14066  lt_cv_cc_needs_belf=no
14067fi
14068rm -f core conftest.err conftest.$ac_objext conftest.beam \
14069    conftest$ac_exeext conftest.$ac_ext
14070     ac_ext=c
14071ac_cpp='$CPP $CPPFLAGS'
14072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14074ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075
14076fi
14077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14078printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14079  if test yes != "$lt_cv_cc_needs_belf"; then
14080    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14081    CFLAGS=$SAVE_CFLAGS
14082  fi
14083  ;;
14084*-*solaris*)
14085  # Find out what ABI is being produced by ac_compile, and set linker
14086  # options accordingly.
14087  echo 'int i;' > conftest.$ac_ext
14088  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14089  (eval $ac_compile) 2>&5
14090  ac_status=$?
14091  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14092  test $ac_status = 0; }; then
14093    case `$FILECMD conftest.o` in
14094    *64-bit*)
14095      case $lt_cv_prog_gnu_ld in
14096      yes*)
14097        case $host in
14098        i?86-*-solaris*|x86_64-*-solaris*)
14099          LD="${LD-ld} -m elf_x86_64"
14100          ;;
14101        sparc*-*-solaris*)
14102          LD="${LD-ld} -m elf64_sparc"
14103          ;;
14104        esac
14105        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14106        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14107          LD=${LD-ld}_sol2
14108        fi
14109        ;;
14110      *)
14111	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14112	  LD="${LD-ld} -64"
14113	fi
14114	;;
14115      esac
14116      ;;
14117    esac
14118  fi
14119  rm -rf conftest*
14120  ;;
14121esac
14122
14123need_locks=$enable_libtool_lock
14124
14125if test -n "$ac_tool_prefix"; then
14126  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14127set dummy ${ac_tool_prefix}mt; ac_word=$2
14128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129printf %s "checking for $ac_word... " >&6; }
14130if test ${ac_cv_prog_MANIFEST_TOOL+y}
14131then :
14132  printf %s "(cached) " >&6
14133else $as_nop
14134  if test -n "$MANIFEST_TOOL"; then
14135  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14136else
14137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138for as_dir in $PATH
14139do
14140  IFS=$as_save_IFS
14141  case $as_dir in #(((
14142    '') as_dir=./ ;;
14143    */) ;;
14144    *) as_dir=$as_dir/ ;;
14145  esac
14146    for ac_exec_ext in '' $ac_executable_extensions; do
14147  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14148    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14149    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14150    break 2
14151  fi
14152done
14153  done
14154IFS=$as_save_IFS
14155
14156fi
14157fi
14158MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14159if test -n "$MANIFEST_TOOL"; then
14160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14161printf "%s\n" "$MANIFEST_TOOL" >&6; }
14162else
14163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164printf "%s\n" "no" >&6; }
14165fi
14166
14167
14168fi
14169if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14170  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14171  # Extract the first word of "mt", so it can be a program name with args.
14172set dummy mt; ac_word=$2
14173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174printf %s "checking for $ac_word... " >&6; }
14175if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14176then :
14177  printf %s "(cached) " >&6
14178else $as_nop
14179  if test -n "$ac_ct_MANIFEST_TOOL"; then
14180  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14181else
14182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183for as_dir in $PATH
14184do
14185  IFS=$as_save_IFS
14186  case $as_dir in #(((
14187    '') as_dir=./ ;;
14188    */) ;;
14189    *) as_dir=$as_dir/ ;;
14190  esac
14191    for ac_exec_ext in '' $ac_executable_extensions; do
14192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14193    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14195    break 2
14196  fi
14197done
14198  done
14199IFS=$as_save_IFS
14200
14201fi
14202fi
14203ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14204if test -n "$ac_ct_MANIFEST_TOOL"; then
14205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14206printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14207else
14208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209printf "%s\n" "no" >&6; }
14210fi
14211
14212  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14213    MANIFEST_TOOL=":"
14214  else
14215    case $cross_compiling:$ac_tool_warned in
14216yes:)
14217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14218printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14219ac_tool_warned=yes ;;
14220esac
14221    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14222  fi
14223else
14224  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14225fi
14226
14227test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14229printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14230if test ${lt_cv_path_mainfest_tool+y}
14231then :
14232  printf %s "(cached) " >&6
14233else $as_nop
14234  lt_cv_path_mainfest_tool=no
14235  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14236  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14237  cat conftest.err >&5
14238  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14239    lt_cv_path_mainfest_tool=yes
14240  fi
14241  rm -f conftest*
14242fi
14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14244printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14245if test yes != "$lt_cv_path_mainfest_tool"; then
14246  MANIFEST_TOOL=:
14247fi
14248
14249
14250
14251
14252
14253
14254  case $host_os in
14255    rhapsody* | darwin*)
14256    if test -n "$ac_tool_prefix"; then
14257  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14258set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14260printf %s "checking for $ac_word... " >&6; }
14261if test ${ac_cv_prog_DSYMUTIL+y}
14262then :
14263  printf %s "(cached) " >&6
14264else $as_nop
14265  if test -n "$DSYMUTIL"; then
14266  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14267else
14268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269for as_dir in $PATH
14270do
14271  IFS=$as_save_IFS
14272  case $as_dir in #(((
14273    '') as_dir=./ ;;
14274    */) ;;
14275    *) as_dir=$as_dir/ ;;
14276  esac
14277    for ac_exec_ext in '' $ac_executable_extensions; do
14278  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14279    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14280    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14281    break 2
14282  fi
14283done
14284  done
14285IFS=$as_save_IFS
14286
14287fi
14288fi
14289DSYMUTIL=$ac_cv_prog_DSYMUTIL
14290if test -n "$DSYMUTIL"; then
14291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14292printf "%s\n" "$DSYMUTIL" >&6; }
14293else
14294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295printf "%s\n" "no" >&6; }
14296fi
14297
14298
14299fi
14300if test -z "$ac_cv_prog_DSYMUTIL"; then
14301  ac_ct_DSYMUTIL=$DSYMUTIL
14302  # Extract the first word of "dsymutil", so it can be a program name with args.
14303set dummy dsymutil; ac_word=$2
14304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14305printf %s "checking for $ac_word... " >&6; }
14306if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14307then :
14308  printf %s "(cached) " >&6
14309else $as_nop
14310  if test -n "$ac_ct_DSYMUTIL"; then
14311  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14312else
14313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14314for as_dir in $PATH
14315do
14316  IFS=$as_save_IFS
14317  case $as_dir in #(((
14318    '') as_dir=./ ;;
14319    */) ;;
14320    *) as_dir=$as_dir/ ;;
14321  esac
14322    for ac_exec_ext in '' $ac_executable_extensions; do
14323  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14324    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14325    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14326    break 2
14327  fi
14328done
14329  done
14330IFS=$as_save_IFS
14331
14332fi
14333fi
14334ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14335if test -n "$ac_ct_DSYMUTIL"; then
14336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14337printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14338else
14339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340printf "%s\n" "no" >&6; }
14341fi
14342
14343  if test "x$ac_ct_DSYMUTIL" = x; then
14344    DSYMUTIL=":"
14345  else
14346    case $cross_compiling:$ac_tool_warned in
14347yes:)
14348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14349printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14350ac_tool_warned=yes ;;
14351esac
14352    DSYMUTIL=$ac_ct_DSYMUTIL
14353  fi
14354else
14355  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14356fi
14357
14358    if test -n "$ac_tool_prefix"; then
14359  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14360set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14362printf %s "checking for $ac_word... " >&6; }
14363if test ${ac_cv_prog_NMEDIT+y}
14364then :
14365  printf %s "(cached) " >&6
14366else $as_nop
14367  if test -n "$NMEDIT"; then
14368  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14369else
14370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371for as_dir in $PATH
14372do
14373  IFS=$as_save_IFS
14374  case $as_dir in #(((
14375    '') as_dir=./ ;;
14376    */) ;;
14377    *) as_dir=$as_dir/ ;;
14378  esac
14379    for ac_exec_ext in '' $ac_executable_extensions; do
14380  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14381    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14382    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14383    break 2
14384  fi
14385done
14386  done
14387IFS=$as_save_IFS
14388
14389fi
14390fi
14391NMEDIT=$ac_cv_prog_NMEDIT
14392if test -n "$NMEDIT"; then
14393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14394printf "%s\n" "$NMEDIT" >&6; }
14395else
14396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397printf "%s\n" "no" >&6; }
14398fi
14399
14400
14401fi
14402if test -z "$ac_cv_prog_NMEDIT"; then
14403  ac_ct_NMEDIT=$NMEDIT
14404  # Extract the first word of "nmedit", so it can be a program name with args.
14405set dummy nmedit; ac_word=$2
14406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14407printf %s "checking for $ac_word... " >&6; }
14408if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14409then :
14410  printf %s "(cached) " >&6
14411else $as_nop
14412  if test -n "$ac_ct_NMEDIT"; then
14413  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14414else
14415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416for as_dir in $PATH
14417do
14418  IFS=$as_save_IFS
14419  case $as_dir in #(((
14420    '') as_dir=./ ;;
14421    */) ;;
14422    *) as_dir=$as_dir/ ;;
14423  esac
14424    for ac_exec_ext in '' $ac_executable_extensions; do
14425  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14426    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14428    break 2
14429  fi
14430done
14431  done
14432IFS=$as_save_IFS
14433
14434fi
14435fi
14436ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14437if test -n "$ac_ct_NMEDIT"; then
14438  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14439printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14440else
14441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442printf "%s\n" "no" >&6; }
14443fi
14444
14445  if test "x$ac_ct_NMEDIT" = x; then
14446    NMEDIT=":"
14447  else
14448    case $cross_compiling:$ac_tool_warned in
14449yes:)
14450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14451printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14452ac_tool_warned=yes ;;
14453esac
14454    NMEDIT=$ac_ct_NMEDIT
14455  fi
14456else
14457  NMEDIT="$ac_cv_prog_NMEDIT"
14458fi
14459
14460    if test -n "$ac_tool_prefix"; then
14461  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14462set dummy ${ac_tool_prefix}lipo; ac_word=$2
14463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14464printf %s "checking for $ac_word... " >&6; }
14465if test ${ac_cv_prog_LIPO+y}
14466then :
14467  printf %s "(cached) " >&6
14468else $as_nop
14469  if test -n "$LIPO"; then
14470  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14471else
14472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473for as_dir in $PATH
14474do
14475  IFS=$as_save_IFS
14476  case $as_dir in #(((
14477    '') as_dir=./ ;;
14478    */) ;;
14479    *) as_dir=$as_dir/ ;;
14480  esac
14481    for ac_exec_ext in '' $ac_executable_extensions; do
14482  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14483    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14484    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14485    break 2
14486  fi
14487done
14488  done
14489IFS=$as_save_IFS
14490
14491fi
14492fi
14493LIPO=$ac_cv_prog_LIPO
14494if test -n "$LIPO"; then
14495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14496printf "%s\n" "$LIPO" >&6; }
14497else
14498  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14499printf "%s\n" "no" >&6; }
14500fi
14501
14502
14503fi
14504if test -z "$ac_cv_prog_LIPO"; then
14505  ac_ct_LIPO=$LIPO
14506  # Extract the first word of "lipo", so it can be a program name with args.
14507set dummy lipo; ac_word=$2
14508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14509printf %s "checking for $ac_word... " >&6; }
14510if test ${ac_cv_prog_ac_ct_LIPO+y}
14511then :
14512  printf %s "(cached) " >&6
14513else $as_nop
14514  if test -n "$ac_ct_LIPO"; then
14515  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14516else
14517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14518for as_dir in $PATH
14519do
14520  IFS=$as_save_IFS
14521  case $as_dir in #(((
14522    '') as_dir=./ ;;
14523    */) ;;
14524    *) as_dir=$as_dir/ ;;
14525  esac
14526    for ac_exec_ext in '' $ac_executable_extensions; do
14527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14528    ac_cv_prog_ac_ct_LIPO="lipo"
14529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14530    break 2
14531  fi
14532done
14533  done
14534IFS=$as_save_IFS
14535
14536fi
14537fi
14538ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14539if test -n "$ac_ct_LIPO"; then
14540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14541printf "%s\n" "$ac_ct_LIPO" >&6; }
14542else
14543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544printf "%s\n" "no" >&6; }
14545fi
14546
14547  if test "x$ac_ct_LIPO" = x; then
14548    LIPO=":"
14549  else
14550    case $cross_compiling:$ac_tool_warned in
14551yes:)
14552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14553printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14554ac_tool_warned=yes ;;
14555esac
14556    LIPO=$ac_ct_LIPO
14557  fi
14558else
14559  LIPO="$ac_cv_prog_LIPO"
14560fi
14561
14562    if test -n "$ac_tool_prefix"; then
14563  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14564set dummy ${ac_tool_prefix}otool; ac_word=$2
14565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14566printf %s "checking for $ac_word... " >&6; }
14567if test ${ac_cv_prog_OTOOL+y}
14568then :
14569  printf %s "(cached) " >&6
14570else $as_nop
14571  if test -n "$OTOOL"; then
14572  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14573else
14574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575for as_dir in $PATH
14576do
14577  IFS=$as_save_IFS
14578  case $as_dir in #(((
14579    '') as_dir=./ ;;
14580    */) ;;
14581    *) as_dir=$as_dir/ ;;
14582  esac
14583    for ac_exec_ext in '' $ac_executable_extensions; do
14584  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14585    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14586    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14587    break 2
14588  fi
14589done
14590  done
14591IFS=$as_save_IFS
14592
14593fi
14594fi
14595OTOOL=$ac_cv_prog_OTOOL
14596if test -n "$OTOOL"; then
14597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14598printf "%s\n" "$OTOOL" >&6; }
14599else
14600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601printf "%s\n" "no" >&6; }
14602fi
14603
14604
14605fi
14606if test -z "$ac_cv_prog_OTOOL"; then
14607  ac_ct_OTOOL=$OTOOL
14608  # Extract the first word of "otool", so it can be a program name with args.
14609set dummy otool; ac_word=$2
14610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611printf %s "checking for $ac_word... " >&6; }
14612if test ${ac_cv_prog_ac_ct_OTOOL+y}
14613then :
14614  printf %s "(cached) " >&6
14615else $as_nop
14616  if test -n "$ac_ct_OTOOL"; then
14617  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14618else
14619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620for as_dir in $PATH
14621do
14622  IFS=$as_save_IFS
14623  case $as_dir in #(((
14624    '') as_dir=./ ;;
14625    */) ;;
14626    *) as_dir=$as_dir/ ;;
14627  esac
14628    for ac_exec_ext in '' $ac_executable_extensions; do
14629  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14630    ac_cv_prog_ac_ct_OTOOL="otool"
14631    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14632    break 2
14633  fi
14634done
14635  done
14636IFS=$as_save_IFS
14637
14638fi
14639fi
14640ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14641if test -n "$ac_ct_OTOOL"; then
14642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14643printf "%s\n" "$ac_ct_OTOOL" >&6; }
14644else
14645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646printf "%s\n" "no" >&6; }
14647fi
14648
14649  if test "x$ac_ct_OTOOL" = x; then
14650    OTOOL=":"
14651  else
14652    case $cross_compiling:$ac_tool_warned in
14653yes:)
14654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14655printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14656ac_tool_warned=yes ;;
14657esac
14658    OTOOL=$ac_ct_OTOOL
14659  fi
14660else
14661  OTOOL="$ac_cv_prog_OTOOL"
14662fi
14663
14664    if test -n "$ac_tool_prefix"; then
14665  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14666set dummy ${ac_tool_prefix}otool64; ac_word=$2
14667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14668printf %s "checking for $ac_word... " >&6; }
14669if test ${ac_cv_prog_OTOOL64+y}
14670then :
14671  printf %s "(cached) " >&6
14672else $as_nop
14673  if test -n "$OTOOL64"; then
14674  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14675else
14676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14677for as_dir in $PATH
14678do
14679  IFS=$as_save_IFS
14680  case $as_dir in #(((
14681    '') as_dir=./ ;;
14682    */) ;;
14683    *) as_dir=$as_dir/ ;;
14684  esac
14685    for ac_exec_ext in '' $ac_executable_extensions; do
14686  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14687    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14688    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14689    break 2
14690  fi
14691done
14692  done
14693IFS=$as_save_IFS
14694
14695fi
14696fi
14697OTOOL64=$ac_cv_prog_OTOOL64
14698if test -n "$OTOOL64"; then
14699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14700printf "%s\n" "$OTOOL64" >&6; }
14701else
14702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703printf "%s\n" "no" >&6; }
14704fi
14705
14706
14707fi
14708if test -z "$ac_cv_prog_OTOOL64"; then
14709  ac_ct_OTOOL64=$OTOOL64
14710  # Extract the first word of "otool64", so it can be a program name with args.
14711set dummy otool64; ac_word=$2
14712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713printf %s "checking for $ac_word... " >&6; }
14714if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14715then :
14716  printf %s "(cached) " >&6
14717else $as_nop
14718  if test -n "$ac_ct_OTOOL64"; then
14719  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14720else
14721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722for as_dir in $PATH
14723do
14724  IFS=$as_save_IFS
14725  case $as_dir in #(((
14726    '') as_dir=./ ;;
14727    */) ;;
14728    *) as_dir=$as_dir/ ;;
14729  esac
14730    for ac_exec_ext in '' $ac_executable_extensions; do
14731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14732    ac_cv_prog_ac_ct_OTOOL64="otool64"
14733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14734    break 2
14735  fi
14736done
14737  done
14738IFS=$as_save_IFS
14739
14740fi
14741fi
14742ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14743if test -n "$ac_ct_OTOOL64"; then
14744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14745printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14746else
14747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748printf "%s\n" "no" >&6; }
14749fi
14750
14751  if test "x$ac_ct_OTOOL64" = x; then
14752    OTOOL64=":"
14753  else
14754    case $cross_compiling:$ac_tool_warned in
14755yes:)
14756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14757printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14758ac_tool_warned=yes ;;
14759esac
14760    OTOOL64=$ac_ct_OTOOL64
14761  fi
14762else
14763  OTOOL64="$ac_cv_prog_OTOOL64"
14764fi
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14793printf %s "checking for -single_module linker flag... " >&6; }
14794if test ${lt_cv_apple_cc_single_mod+y}
14795then :
14796  printf %s "(cached) " >&6
14797else $as_nop
14798  lt_cv_apple_cc_single_mod=no
14799      if test -z "$LT_MULTI_MODULE"; then
14800	# By default we will add the -single_module flag. You can override
14801	# by either setting the environment variable LT_MULTI_MODULE
14802	# non-empty at configure time, or by adding -multi_module to the
14803	# link flags.
14804	rm -rf libconftest.dylib*
14805	echo "int foo(void){return 1;}" > conftest.c
14806	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14807-dynamiclib -Wl,-single_module conftest.c" >&5
14808	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14809	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14810        _lt_result=$?
14811	# If there is a non-empty error log, and "single_module"
14812	# appears in it, assume the flag caused a linker warning
14813        if test -s conftest.err && $GREP single_module conftest.err; then
14814	  cat conftest.err >&5
14815	# Otherwise, if the output was created with a 0 exit code from
14816	# the compiler, it worked.
14817	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14818	  lt_cv_apple_cc_single_mod=yes
14819	else
14820	  cat conftest.err >&5
14821	fi
14822	rm -rf libconftest.dylib*
14823	rm -f conftest.*
14824      fi
14825fi
14826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14827printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14828
14829    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14830printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14831if test ${lt_cv_ld_exported_symbols_list+y}
14832then :
14833  printf %s "(cached) " >&6
14834else $as_nop
14835  lt_cv_ld_exported_symbols_list=no
14836      save_LDFLAGS=$LDFLAGS
14837      echo "_main" > conftest.sym
14838      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14839      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840/* end confdefs.h.  */
14841
14842int
14843main (void)
14844{
14845
14846  ;
14847  return 0;
14848}
14849_ACEOF
14850if ac_fn_c_try_link "$LINENO"
14851then :
14852  lt_cv_ld_exported_symbols_list=yes
14853else $as_nop
14854  lt_cv_ld_exported_symbols_list=no
14855fi
14856rm -f core conftest.err conftest.$ac_objext conftest.beam \
14857    conftest$ac_exeext conftest.$ac_ext
14858	LDFLAGS=$save_LDFLAGS
14859
14860fi
14861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14862printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14863
14864    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14865printf %s "checking for -force_load linker flag... " >&6; }
14866if test ${lt_cv_ld_force_load+y}
14867then :
14868  printf %s "(cached) " >&6
14869else $as_nop
14870  lt_cv_ld_force_load=no
14871      cat > conftest.c << _LT_EOF
14872int forced_loaded() { return 2;}
14873_LT_EOF
14874      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14875      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14876      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14877      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14878      echo "$RANLIB libconftest.a" >&5
14879      $RANLIB libconftest.a 2>&5
14880      cat > conftest.c << _LT_EOF
14881int main() { return 0;}
14882_LT_EOF
14883      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14884      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14885      _lt_result=$?
14886      if test -s conftest.err && $GREP force_load conftest.err; then
14887	cat conftest.err >&5
14888      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14889	lt_cv_ld_force_load=yes
14890      else
14891	cat conftest.err >&5
14892      fi
14893        rm -f conftest.err libconftest.a conftest conftest.c
14894        rm -rf conftest.dSYM
14895
14896fi
14897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14898printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14899    case $host_os in
14900    rhapsody* | darwin1.[012])
14901      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14902    darwin1.*)
14903      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14904    darwin*)
14905      case $MACOSX_DEPLOYMENT_TARGET,$host in
14906        10.[012],*|,*powerpc*-darwin[5-8]*)
14907          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14908        *)
14909          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14910      esac
14911    ;;
14912  esac
14913    if test yes = "$lt_cv_apple_cc_single_mod"; then
14914      _lt_dar_single_mod='$single_module'
14915    fi
14916    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14917      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14918    else
14919      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14920    fi
14921    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14922      _lt_dsymutil='~$DSYMUTIL $lib || :'
14923    else
14924      _lt_dsymutil=
14925    fi
14926    ;;
14927  esac
14928
14929# func_munge_path_list VARIABLE PATH
14930# -----------------------------------
14931# VARIABLE is name of variable containing _space_ separated list of
14932# directories to be munged by the contents of PATH, which is string
14933# having a format:
14934# "DIR[:DIR]:"
14935#       string "DIR[ DIR]" will be prepended to VARIABLE
14936# ":DIR[:DIR]"
14937#       string "DIR[ DIR]" will be appended to VARIABLE
14938# "DIRP[:DIRP]::[DIRA:]DIRA"
14939#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14940#       "DIRA[ DIRA]" will be appended to VARIABLE
14941# "DIR[:DIR]"
14942#       VARIABLE will be replaced by "DIR[ DIR]"
14943func_munge_path_list ()
14944{
14945    case x$2 in
14946    x)
14947        ;;
14948    *:)
14949        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14950        ;;
14951    x:*)
14952        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14953        ;;
14954    *::*)
14955        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14956        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14957        ;;
14958    *)
14959        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14960        ;;
14961    esac
14962}
14963
14964ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14965"
14966if test "x$ac_cv_header_dlfcn_h" = xyes
14967then :
14968  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14969
14970fi
14971
14972
14973
14974
14975
14976# Set options
14977
14978
14979
14980        enable_dlopen=no
14981
14982
14983  enable_win32_dll=no
14984
14985
14986            # Check whether --enable-shared was given.
14987if test ${enable_shared+y}
14988then :
14989  enableval=$enable_shared; p=${PACKAGE-default}
14990    case $enableval in
14991    yes) enable_shared=yes ;;
14992    no) enable_shared=no ;;
14993    *)
14994      enable_shared=no
14995      # Look at the argument we got.  We use all the common list separators.
14996      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14997      for pkg in $enableval; do
14998	IFS=$lt_save_ifs
14999	if test "X$pkg" = "X$p"; then
15000	  enable_shared=yes
15001	fi
15002      done
15003      IFS=$lt_save_ifs
15004      ;;
15005    esac
15006else $as_nop
15007  enable_shared=yes
15008fi
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020# Check whether --with-pic was given.
15021if test ${with_pic+y}
15022then :
15023  withval=$with_pic; lt_p=${PACKAGE-default}
15024    case $withval in
15025    yes|no) pic_mode=$withval ;;
15026    *)
15027      pic_mode=default
15028      # Look at the argument we got.  We use all the common list separators.
15029      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15030      for lt_pkg in $withval; do
15031	IFS=$lt_save_ifs
15032	if test "X$lt_pkg" = "X$lt_p"; then
15033	  pic_mode=yes
15034	fi
15035      done
15036      IFS=$lt_save_ifs
15037      ;;
15038    esac
15039else $as_nop
15040  pic_mode=default
15041fi
15042
15043
15044
15045
15046
15047
15048
15049
15050  # Check whether --enable-fast-install was given.
15051if test ${enable_fast_install+y}
15052then :
15053  enableval=$enable_fast_install; p=${PACKAGE-default}
15054    case $enableval in
15055    yes) enable_fast_install=yes ;;
15056    no) enable_fast_install=no ;;
15057    *)
15058      enable_fast_install=no
15059      # Look at the argument we got.  We use all the common list separators.
15060      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15061      for pkg in $enableval; do
15062	IFS=$lt_save_ifs
15063	if test "X$pkg" = "X$p"; then
15064	  enable_fast_install=yes
15065	fi
15066      done
15067      IFS=$lt_save_ifs
15068      ;;
15069    esac
15070else $as_nop
15071  enable_fast_install=yes
15072fi
15073
15074
15075
15076
15077
15078
15079
15080
15081  shared_archive_member_spec=
15082case $host,$enable_shared in
15083power*-*-aix[5-9]*,yes)
15084  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15085printf %s "checking which variant of shared library versioning to provide... " >&6; }
15086
15087# Check whether --with-aix-soname was given.
15088if test ${with_aix_soname+y}
15089then :
15090  withval=$with_aix_soname; case $withval in
15091    aix|svr4|both)
15092      ;;
15093    *)
15094      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15095      ;;
15096    esac
15097    lt_cv_with_aix_soname=$with_aix_soname
15098else $as_nop
15099  if test ${lt_cv_with_aix_soname+y}
15100then :
15101  printf %s "(cached) " >&6
15102else $as_nop
15103  lt_cv_with_aix_soname=aix
15104fi
15105
15106    with_aix_soname=$lt_cv_with_aix_soname
15107fi
15108
15109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15110printf "%s\n" "$with_aix_soname" >&6; }
15111  if test aix != "$with_aix_soname"; then
15112    # For the AIX way of multilib, we name the shared archive member
15113    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15114    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15115    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15116    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15117    if test 64 = "${OBJECT_MODE-32}"; then
15118      shared_archive_member_spec=shr_64
15119    else
15120      shared_archive_member_spec=shr
15121    fi
15122  fi
15123  ;;
15124*)
15125  with_aix_soname=aix
15126  ;;
15127esac
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138# This can be used to rebuild libtool when needed
15139LIBTOOL_DEPS=$ltmain
15140
15141# Always use our own libtool.
15142LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173test -z "$LN_S" && LN_S="ln -s"
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188if test -n "${ZSH_VERSION+set}"; then
15189   setopt NO_GLOB_SUBST
15190fi
15191
15192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15193printf %s "checking for objdir... " >&6; }
15194if test ${lt_cv_objdir+y}
15195then :
15196  printf %s "(cached) " >&6
15197else $as_nop
15198  rm -f .libs 2>/dev/null
15199mkdir .libs 2>/dev/null
15200if test -d .libs; then
15201  lt_cv_objdir=.libs
15202else
15203  # MS-DOS does not allow filenames that begin with a dot.
15204  lt_cv_objdir=_libs
15205fi
15206rmdir .libs 2>/dev/null
15207fi
15208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15209printf "%s\n" "$lt_cv_objdir" >&6; }
15210objdir=$lt_cv_objdir
15211
15212
15213
15214
15215
15216printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15217
15218
15219
15220
15221case $host_os in
15222aix3*)
15223  # AIX sometimes has problems with the GCC collect2 program.  For some
15224  # reason, if we set the COLLECT_NAMES environment variable, the problems
15225  # vanish in a puff of smoke.
15226  if test set != "${COLLECT_NAMES+set}"; then
15227    COLLECT_NAMES=
15228    export COLLECT_NAMES
15229  fi
15230  ;;
15231esac
15232
15233# Global variables:
15234ofile=libtool
15235can_build_shared=yes
15236
15237# All known linkers require a '.a' archive for static linking (except MSVC and
15238# ICC, which need '.lib').
15239libext=a
15240
15241with_gnu_ld=$lt_cv_prog_gnu_ld
15242
15243old_CC=$CC
15244old_CFLAGS=$CFLAGS
15245
15246# Set sane defaults for various variables
15247test -z "$CC" && CC=cc
15248test -z "$LTCC" && LTCC=$CC
15249test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15250test -z "$LD" && LD=ld
15251test -z "$ac_objext" && ac_objext=o
15252
15253func_cc_basename $compiler
15254cc_basename=$func_cc_basename_result
15255
15256
15257# Only perform the check for file, if the check method requires it
15258test -z "$MAGIC_CMD" && MAGIC_CMD=file
15259case $deplibs_check_method in
15260file_magic*)
15261  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15262    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15263printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15264if test ${lt_cv_path_MAGIC_CMD+y}
15265then :
15266  printf %s "(cached) " >&6
15267else $as_nop
15268  case $MAGIC_CMD in
15269[\\/*] |  ?:[\\/]*)
15270  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15271  ;;
15272*)
15273  lt_save_MAGIC_CMD=$MAGIC_CMD
15274  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15275  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15276  for ac_dir in $ac_dummy; do
15277    IFS=$lt_save_ifs
15278    test -z "$ac_dir" && ac_dir=.
15279    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15280      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15281      if test -n "$file_magic_test_file"; then
15282	case $deplibs_check_method in
15283	"file_magic "*)
15284	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15285	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15286	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15287	    $EGREP "$file_magic_regex" > /dev/null; then
15288	    :
15289	  else
15290	    cat <<_LT_EOF 1>&2
15291
15292*** Warning: the command libtool uses to detect shared libraries,
15293*** $file_magic_cmd, produces output that libtool cannot recognize.
15294*** The result is that libtool may fail to recognize shared libraries
15295*** as such.  This will affect the creation of libtool libraries that
15296*** depend on shared libraries, but programs linked with such libtool
15297*** libraries will work regardless of this problem.  Nevertheless, you
15298*** may want to report the problem to your system manager and/or to
15299*** bug-libtool@gnu.org
15300
15301_LT_EOF
15302	  fi ;;
15303	esac
15304      fi
15305      break
15306    fi
15307  done
15308  IFS=$lt_save_ifs
15309  MAGIC_CMD=$lt_save_MAGIC_CMD
15310  ;;
15311esac
15312fi
15313
15314MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15315if test -n "$MAGIC_CMD"; then
15316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15317printf "%s\n" "$MAGIC_CMD" >&6; }
15318else
15319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15320printf "%s\n" "no" >&6; }
15321fi
15322
15323
15324
15325
15326
15327if test -z "$lt_cv_path_MAGIC_CMD"; then
15328  if test -n "$ac_tool_prefix"; then
15329    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15330printf %s "checking for file... " >&6; }
15331if test ${lt_cv_path_MAGIC_CMD+y}
15332then :
15333  printf %s "(cached) " >&6
15334else $as_nop
15335  case $MAGIC_CMD in
15336[\\/*] |  ?:[\\/]*)
15337  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15338  ;;
15339*)
15340  lt_save_MAGIC_CMD=$MAGIC_CMD
15341  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15342  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15343  for ac_dir in $ac_dummy; do
15344    IFS=$lt_save_ifs
15345    test -z "$ac_dir" && ac_dir=.
15346    if test -f "$ac_dir/file"; then
15347      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15348      if test -n "$file_magic_test_file"; then
15349	case $deplibs_check_method in
15350	"file_magic "*)
15351	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15352	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15353	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15354	    $EGREP "$file_magic_regex" > /dev/null; then
15355	    :
15356	  else
15357	    cat <<_LT_EOF 1>&2
15358
15359*** Warning: the command libtool uses to detect shared libraries,
15360*** $file_magic_cmd, produces output that libtool cannot recognize.
15361*** The result is that libtool may fail to recognize shared libraries
15362*** as such.  This will affect the creation of libtool libraries that
15363*** depend on shared libraries, but programs linked with such libtool
15364*** libraries will work regardless of this problem.  Nevertheless, you
15365*** may want to report the problem to your system manager and/or to
15366*** bug-libtool@gnu.org
15367
15368_LT_EOF
15369	  fi ;;
15370	esac
15371      fi
15372      break
15373    fi
15374  done
15375  IFS=$lt_save_ifs
15376  MAGIC_CMD=$lt_save_MAGIC_CMD
15377  ;;
15378esac
15379fi
15380
15381MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15382if test -n "$MAGIC_CMD"; then
15383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15384printf "%s\n" "$MAGIC_CMD" >&6; }
15385else
15386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15387printf "%s\n" "no" >&6; }
15388fi
15389
15390
15391  else
15392    MAGIC_CMD=:
15393  fi
15394fi
15395
15396  fi
15397  ;;
15398esac
15399
15400# Use C for the default configuration in the libtool script
15401
15402lt_save_CC=$CC
15403ac_ext=c
15404ac_cpp='$CPP $CPPFLAGS'
15405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407ac_compiler_gnu=$ac_cv_c_compiler_gnu
15408
15409
15410# Source file extension for C test sources.
15411ac_ext=c
15412
15413# Object file extension for compiled C test sources.
15414objext=o
15415objext=$objext
15416
15417# Code to be used in simple compile tests
15418lt_simple_compile_test_code="int some_variable = 0;"
15419
15420# Code to be used in simple link tests
15421lt_simple_link_test_code='int main(){return(0);}'
15422
15423
15424
15425
15426
15427
15428
15429# If no C compiler was specified, use CC.
15430LTCC=${LTCC-"$CC"}
15431
15432# If no C compiler flags were specified, use CFLAGS.
15433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15434
15435# Allow CC to be a program name with arguments.
15436compiler=$CC
15437
15438# Save the default compiler, since it gets overwritten when the other
15439# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15440compiler_DEFAULT=$CC
15441
15442# save warnings/boilerplate of simple test code
15443ac_outfile=conftest.$ac_objext
15444echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15445eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15446_lt_compiler_boilerplate=`cat conftest.err`
15447$RM conftest*
15448
15449ac_outfile=conftest.$ac_objext
15450echo "$lt_simple_link_test_code" >conftest.$ac_ext
15451eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15452_lt_linker_boilerplate=`cat conftest.err`
15453$RM -r conftest*
15454
15455
15456if test -n "$compiler"; then
15457
15458lt_prog_compiler_no_builtin_flag=
15459
15460if test yes = "$GCC"; then
15461  case $cc_basename in
15462  nvcc*)
15463    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15464  *)
15465    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15466  esac
15467
15468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15469printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15470if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15471then :
15472  printf %s "(cached) " >&6
15473else $as_nop
15474  lt_cv_prog_compiler_rtti_exceptions=no
15475   ac_outfile=conftest.$ac_objext
15476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15477   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15478   # Insert the option either (1) after the last *FLAGS variable, or
15479   # (2) before a word containing "conftest.", or (3) at the end.
15480   # Note that $ac_compile itself does not contain backslashes and begins
15481   # with a dollar sign (not a hyphen), so the echo should work correctly.
15482   # The option is referenced via a variable to avoid confusing sed.
15483   lt_compile=`echo "$ac_compile" | $SED \
15484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15486   -e 's:$: $lt_compiler_flag:'`
15487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15488   (eval "$lt_compile" 2>conftest.err)
15489   ac_status=$?
15490   cat conftest.err >&5
15491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492   if (exit $ac_status) && test -s "$ac_outfile"; then
15493     # The compiler can only warn and ignore the option if not recognized
15494     # So say no if there are warnings other than the usual output.
15495     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15496     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15497     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15498       lt_cv_prog_compiler_rtti_exceptions=yes
15499     fi
15500   fi
15501   $RM conftest*
15502
15503fi
15504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15505printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15506
15507if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15508    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15509else
15510    :
15511fi
15512
15513fi
15514
15515
15516
15517
15518
15519
15520  lt_prog_compiler_wl=
15521lt_prog_compiler_pic=
15522lt_prog_compiler_static=
15523
15524
15525  if test yes = "$GCC"; then
15526    lt_prog_compiler_wl='-Wl,'
15527    lt_prog_compiler_static='-static'
15528
15529    case $host_os in
15530      aix*)
15531      # All AIX code is PIC.
15532      if test ia64 = "$host_cpu"; then
15533	# AIX 5 now supports IA64 processor
15534	lt_prog_compiler_static='-Bstatic'
15535      fi
15536      lt_prog_compiler_pic='-fPIC'
15537      ;;
15538
15539    amigaos*)
15540      case $host_cpu in
15541      powerpc)
15542            # see comment about AmigaOS4 .so support
15543            lt_prog_compiler_pic='-fPIC'
15544        ;;
15545      m68k)
15546            # FIXME: we need at least 68020 code to build shared libraries, but
15547            # adding the '-m68020' flag to GCC prevents building anything better,
15548            # like '-m68040'.
15549            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15550        ;;
15551      esac
15552      ;;
15553
15554    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15555      # PIC is the default for these OSes.
15556      ;;
15557
15558    mingw* | cygwin* | pw32* | os2* | cegcc*)
15559      # This hack is so that the source file can tell whether it is being
15560      # built for inclusion in a dll (and should export symbols for example).
15561      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15562      # (--disable-auto-import) libraries
15563      lt_prog_compiler_pic='-DDLL_EXPORT'
15564      case $host_os in
15565      os2*)
15566	lt_prog_compiler_static='$wl-static'
15567	;;
15568      esac
15569      ;;
15570
15571    darwin* | rhapsody*)
15572      # PIC is the default on this platform
15573      # Common symbols not allowed in MH_DYLIB files
15574      lt_prog_compiler_pic='-fno-common'
15575      ;;
15576
15577    haiku*)
15578      # PIC is the default for Haiku.
15579      # The "-static" flag exists, but is broken.
15580      lt_prog_compiler_static=
15581      ;;
15582
15583    hpux*)
15584      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15585      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15586      # sets the default TLS model and affects inlining.
15587      case $host_cpu in
15588      hppa*64*)
15589	# +Z the default
15590	;;
15591      *)
15592	lt_prog_compiler_pic='-fPIC'
15593	;;
15594      esac
15595      ;;
15596
15597    interix[3-9]*)
15598      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15599      # Instead, we relocate shared libraries at runtime.
15600      ;;
15601
15602    msdosdjgpp*)
15603      # Just because we use GCC doesn't mean we suddenly get shared libraries
15604      # on systems that don't support them.
15605      lt_prog_compiler_can_build_shared=no
15606      enable_shared=no
15607      ;;
15608
15609    *nto* | *qnx*)
15610      # QNX uses GNU C++, but need to define -shared option too, otherwise
15611      # it will coredump.
15612      lt_prog_compiler_pic='-fPIC -shared'
15613      ;;
15614
15615    sysv4*MP*)
15616      if test -d /usr/nec; then
15617	lt_prog_compiler_pic=-Kconform_pic
15618      fi
15619      ;;
15620
15621    *)
15622      lt_prog_compiler_pic='-fPIC'
15623      ;;
15624    esac
15625
15626    case $cc_basename in
15627    nvcc*) # Cuda Compiler Driver 2.2
15628      lt_prog_compiler_wl='-Xlinker '
15629      if test -n "$lt_prog_compiler_pic"; then
15630        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15631      fi
15632      ;;
15633    esac
15634  else
15635    # PORTME Check for flag to pass linker flags through the system compiler.
15636    case $host_os in
15637    aix*)
15638      lt_prog_compiler_wl='-Wl,'
15639      if test ia64 = "$host_cpu"; then
15640	# AIX 5 now supports IA64 processor
15641	lt_prog_compiler_static='-Bstatic'
15642      else
15643	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15644      fi
15645      ;;
15646
15647    darwin* | rhapsody*)
15648      # PIC is the default on this platform
15649      # Common symbols not allowed in MH_DYLIB files
15650      lt_prog_compiler_pic='-fno-common'
15651      case $cc_basename in
15652      nagfor*)
15653        # NAG Fortran compiler
15654        lt_prog_compiler_wl='-Wl,-Wl,,'
15655        lt_prog_compiler_pic='-PIC'
15656        lt_prog_compiler_static='-Bstatic'
15657        ;;
15658      esac
15659      ;;
15660
15661    mingw* | cygwin* | pw32* | os2* | cegcc*)
15662      # This hack is so that the source file can tell whether it is being
15663      # built for inclusion in a dll (and should export symbols for example).
15664      lt_prog_compiler_pic='-DDLL_EXPORT'
15665      case $host_os in
15666      os2*)
15667	lt_prog_compiler_static='$wl-static'
15668	;;
15669      esac
15670      ;;
15671
15672    hpux9* | hpux10* | hpux11*)
15673      lt_prog_compiler_wl='-Wl,'
15674      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15675      # not for PA HP-UX.
15676      case $host_cpu in
15677      hppa*64*|ia64*)
15678	# +Z the default
15679	;;
15680      *)
15681	lt_prog_compiler_pic='+Z'
15682	;;
15683      esac
15684      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15685      lt_prog_compiler_static='$wl-a ${wl}archive'
15686      ;;
15687
15688    irix5* | irix6* | nonstopux*)
15689      lt_prog_compiler_wl='-Wl,'
15690      # PIC (with -KPIC) is the default.
15691      lt_prog_compiler_static='-non_shared'
15692      ;;
15693
15694    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15695      case $cc_basename in
15696      # old Intel for x86_64, which still supported -KPIC.
15697      ecc*)
15698	lt_prog_compiler_wl='-Wl,'
15699	lt_prog_compiler_pic='-KPIC'
15700	lt_prog_compiler_static='-static'
15701        ;;
15702      # icc used to be incompatible with GCC.
15703      # ICC 10 doesn't accept -KPIC any more.
15704      icc* | ifort*)
15705	lt_prog_compiler_wl='-Wl,'
15706	lt_prog_compiler_pic='-fPIC'
15707	lt_prog_compiler_static='-static'
15708        ;;
15709      # Lahey Fortran 8.1.
15710      lf95*)
15711	lt_prog_compiler_wl='-Wl,'
15712	lt_prog_compiler_pic='--shared'
15713	lt_prog_compiler_static='--static'
15714	;;
15715      nagfor*)
15716	# NAG Fortran compiler
15717	lt_prog_compiler_wl='-Wl,-Wl,,'
15718	lt_prog_compiler_pic='-PIC'
15719	lt_prog_compiler_static='-Bstatic'
15720	;;
15721      tcc*)
15722	# Fabrice Bellard et al's Tiny C Compiler
15723	lt_prog_compiler_wl='-Wl,'
15724	lt_prog_compiler_pic='-fPIC'
15725	lt_prog_compiler_static='-static'
15726	;;
15727      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15728        # Portland Group compilers (*not* the Pentium gcc compiler,
15729	# which looks to be a dead project)
15730	lt_prog_compiler_wl='-Wl,'
15731	lt_prog_compiler_pic='-fpic'
15732	lt_prog_compiler_static='-Bstatic'
15733        ;;
15734      ccc*)
15735        lt_prog_compiler_wl='-Wl,'
15736        # All Alpha code is PIC.
15737        lt_prog_compiler_static='-non_shared'
15738        ;;
15739      xl* | bgxl* | bgf* | mpixl*)
15740	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15741	lt_prog_compiler_wl='-Wl,'
15742	lt_prog_compiler_pic='-qpic'
15743	lt_prog_compiler_static='-qstaticlink'
15744	;;
15745      *)
15746	case `$CC -V 2>&1 | $SED 5q` in
15747	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15748	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15749	  lt_prog_compiler_pic='-KPIC'
15750	  lt_prog_compiler_static='-Bstatic'
15751	  lt_prog_compiler_wl=''
15752	  ;;
15753	*Sun\ F* | *Sun*Fortran*)
15754	  lt_prog_compiler_pic='-KPIC'
15755	  lt_prog_compiler_static='-Bstatic'
15756	  lt_prog_compiler_wl='-Qoption ld '
15757	  ;;
15758	*Sun\ C*)
15759	  # Sun C 5.9
15760	  lt_prog_compiler_pic='-KPIC'
15761	  lt_prog_compiler_static='-Bstatic'
15762	  lt_prog_compiler_wl='-Wl,'
15763	  ;;
15764        *Intel*\ [CF]*Compiler*)
15765	  lt_prog_compiler_wl='-Wl,'
15766	  lt_prog_compiler_pic='-fPIC'
15767	  lt_prog_compiler_static='-static'
15768	  ;;
15769	*Portland\ Group*)
15770	  lt_prog_compiler_wl='-Wl,'
15771	  lt_prog_compiler_pic='-fpic'
15772	  lt_prog_compiler_static='-Bstatic'
15773	  ;;
15774	esac
15775	;;
15776      esac
15777      ;;
15778
15779    newsos6)
15780      lt_prog_compiler_pic='-KPIC'
15781      lt_prog_compiler_static='-Bstatic'
15782      ;;
15783
15784    *nto* | *qnx*)
15785      # QNX uses GNU C++, but need to define -shared option too, otherwise
15786      # it will coredump.
15787      lt_prog_compiler_pic='-fPIC -shared'
15788      ;;
15789
15790    osf3* | osf4* | osf5*)
15791      lt_prog_compiler_wl='-Wl,'
15792      # All OSF/1 code is PIC.
15793      lt_prog_compiler_static='-non_shared'
15794      ;;
15795
15796    rdos*)
15797      lt_prog_compiler_static='-non_shared'
15798      ;;
15799
15800    solaris*)
15801      lt_prog_compiler_pic='-KPIC'
15802      lt_prog_compiler_static='-Bstatic'
15803      case $cc_basename in
15804      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15805	lt_prog_compiler_wl='-Qoption ld ';;
15806      *)
15807	lt_prog_compiler_wl='-Wl,';;
15808      esac
15809      ;;
15810
15811    sunos4*)
15812      lt_prog_compiler_wl='-Qoption ld '
15813      lt_prog_compiler_pic='-PIC'
15814      lt_prog_compiler_static='-Bstatic'
15815      ;;
15816
15817    sysv4 | sysv4.2uw2* | sysv4.3*)
15818      lt_prog_compiler_wl='-Wl,'
15819      lt_prog_compiler_pic='-KPIC'
15820      lt_prog_compiler_static='-Bstatic'
15821      ;;
15822
15823    sysv4*MP*)
15824      if test -d /usr/nec; then
15825	lt_prog_compiler_pic='-Kconform_pic'
15826	lt_prog_compiler_static='-Bstatic'
15827      fi
15828      ;;
15829
15830    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15831      lt_prog_compiler_wl='-Wl,'
15832      lt_prog_compiler_pic='-KPIC'
15833      lt_prog_compiler_static='-Bstatic'
15834      ;;
15835
15836    unicos*)
15837      lt_prog_compiler_wl='-Wl,'
15838      lt_prog_compiler_can_build_shared=no
15839      ;;
15840
15841    uts4*)
15842      lt_prog_compiler_pic='-pic'
15843      lt_prog_compiler_static='-Bstatic'
15844      ;;
15845
15846    *)
15847      lt_prog_compiler_can_build_shared=no
15848      ;;
15849    esac
15850  fi
15851
15852case $host_os in
15853  # For platforms that do not support PIC, -DPIC is meaningless:
15854  *djgpp*)
15855    lt_prog_compiler_pic=
15856    ;;
15857  *)
15858    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15859    ;;
15860esac
15861
15862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15863printf %s "checking for $compiler option to produce PIC... " >&6; }
15864if test ${lt_cv_prog_compiler_pic+y}
15865then :
15866  printf %s "(cached) " >&6
15867else $as_nop
15868  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15869fi
15870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15871printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15872lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15873
15874#
15875# Check to make sure the PIC flag actually works.
15876#
15877if test -n "$lt_prog_compiler_pic"; then
15878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15879printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15880if test ${lt_cv_prog_compiler_pic_works+y}
15881then :
15882  printf %s "(cached) " >&6
15883else $as_nop
15884  lt_cv_prog_compiler_pic_works=no
15885   ac_outfile=conftest.$ac_objext
15886   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15887   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15888   # Insert the option either (1) after the last *FLAGS variable, or
15889   # (2) before a word containing "conftest.", or (3) at the end.
15890   # Note that $ac_compile itself does not contain backslashes and begins
15891   # with a dollar sign (not a hyphen), so the echo should work correctly.
15892   # The option is referenced via a variable to avoid confusing sed.
15893   lt_compile=`echo "$ac_compile" | $SED \
15894   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15895   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15896   -e 's:$: $lt_compiler_flag:'`
15897   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15898   (eval "$lt_compile" 2>conftest.err)
15899   ac_status=$?
15900   cat conftest.err >&5
15901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902   if (exit $ac_status) && test -s "$ac_outfile"; then
15903     # The compiler can only warn and ignore the option if not recognized
15904     # So say no if there are warnings other than the usual output.
15905     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15906     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15907     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15908       lt_cv_prog_compiler_pic_works=yes
15909     fi
15910   fi
15911   $RM conftest*
15912
15913fi
15914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15915printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15916
15917if test yes = "$lt_cv_prog_compiler_pic_works"; then
15918    case $lt_prog_compiler_pic in
15919     "" | " "*) ;;
15920     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15921     esac
15922else
15923    lt_prog_compiler_pic=
15924     lt_prog_compiler_can_build_shared=no
15925fi
15926
15927fi
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939#
15940# Check to make sure the static flag actually works.
15941#
15942wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15944printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15945if test ${lt_cv_prog_compiler_static_works+y}
15946then :
15947  printf %s "(cached) " >&6
15948else $as_nop
15949  lt_cv_prog_compiler_static_works=no
15950   save_LDFLAGS=$LDFLAGS
15951   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15952   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15953   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15954     # The linker can only warn and ignore the option if not recognized
15955     # So say no if there are warnings
15956     if test -s conftest.err; then
15957       # Append any errors to the config.log.
15958       cat conftest.err 1>&5
15959       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15960       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15961       if diff conftest.exp conftest.er2 >/dev/null; then
15962         lt_cv_prog_compiler_static_works=yes
15963       fi
15964     else
15965       lt_cv_prog_compiler_static_works=yes
15966     fi
15967   fi
15968   $RM -r conftest*
15969   LDFLAGS=$save_LDFLAGS
15970
15971fi
15972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15973printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15974
15975if test yes = "$lt_cv_prog_compiler_static_works"; then
15976    :
15977else
15978    lt_prog_compiler_static=
15979fi
15980
15981
15982
15983
15984
15985
15986
15987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15988printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15989if test ${lt_cv_prog_compiler_c_o+y}
15990then :
15991  printf %s "(cached) " >&6
15992else $as_nop
15993  lt_cv_prog_compiler_c_o=no
15994   $RM -r conftest 2>/dev/null
15995   mkdir conftest
15996   cd conftest
15997   mkdir out
15998   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15999
16000   lt_compiler_flag="-o out/conftest2.$ac_objext"
16001   # Insert the option either (1) after the last *FLAGS variable, or
16002   # (2) before a word containing "conftest.", or (3) at the end.
16003   # Note that $ac_compile itself does not contain backslashes and begins
16004   # with a dollar sign (not a hyphen), so the echo should work correctly.
16005   lt_compile=`echo "$ac_compile" | $SED \
16006   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16007   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16008   -e 's:$: $lt_compiler_flag:'`
16009   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16010   (eval "$lt_compile" 2>out/conftest.err)
16011   ac_status=$?
16012   cat out/conftest.err >&5
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16015   then
16016     # The compiler can only warn and ignore the option if not recognized
16017     # So say no if there are warnings
16018     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16019     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16020     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16021       lt_cv_prog_compiler_c_o=yes
16022     fi
16023   fi
16024   chmod u+w . 2>&5
16025   $RM conftest*
16026   # SGI C++ compiler will create directory out/ii_files/ for
16027   # template instantiation
16028   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16029   $RM out/* && rmdir out
16030   cd ..
16031   $RM -r conftest
16032   $RM conftest*
16033
16034fi
16035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16036printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16037
16038
16039
16040
16041
16042
16043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16044printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16045if test ${lt_cv_prog_compiler_c_o+y}
16046then :
16047  printf %s "(cached) " >&6
16048else $as_nop
16049  lt_cv_prog_compiler_c_o=no
16050   $RM -r conftest 2>/dev/null
16051   mkdir conftest
16052   cd conftest
16053   mkdir out
16054   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16055
16056   lt_compiler_flag="-o out/conftest2.$ac_objext"
16057   # Insert the option either (1) after the last *FLAGS variable, or
16058   # (2) before a word containing "conftest.", or (3) at the end.
16059   # Note that $ac_compile itself does not contain backslashes and begins
16060   # with a dollar sign (not a hyphen), so the echo should work correctly.
16061   lt_compile=`echo "$ac_compile" | $SED \
16062   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16063   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16064   -e 's:$: $lt_compiler_flag:'`
16065   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16066   (eval "$lt_compile" 2>out/conftest.err)
16067   ac_status=$?
16068   cat out/conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16071   then
16072     # The compiler can only warn and ignore the option if not recognized
16073     # So say no if there are warnings
16074     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16075     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16076     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16077       lt_cv_prog_compiler_c_o=yes
16078     fi
16079   fi
16080   chmod u+w . 2>&5
16081   $RM conftest*
16082   # SGI C++ compiler will create directory out/ii_files/ for
16083   # template instantiation
16084   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16085   $RM out/* && rmdir out
16086   cd ..
16087   $RM -r conftest
16088   $RM conftest*
16089
16090fi
16091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16092printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16093
16094
16095
16096
16097hard_links=nottested
16098if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16099  # do not overwrite the value of need_locks provided by the user
16100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16101printf %s "checking if we can lock with hard links... " >&6; }
16102  hard_links=yes
16103  $RM conftest*
16104  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16105  touch conftest.a
16106  ln conftest.a conftest.b 2>&5 || hard_links=no
16107  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16109printf "%s\n" "$hard_links" >&6; }
16110  if test no = "$hard_links"; then
16111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16112printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16113    need_locks=warn
16114  fi
16115else
16116  need_locks=no
16117fi
16118
16119
16120
16121
16122
16123
16124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16125printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16126
16127  runpath_var=
16128  allow_undefined_flag=
16129  always_export_symbols=no
16130  archive_cmds=
16131  archive_expsym_cmds=
16132  compiler_needs_object=no
16133  enable_shared_with_static_runtimes=no
16134  export_dynamic_flag_spec=
16135  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16136  hardcode_automatic=no
16137  hardcode_direct=no
16138  hardcode_direct_absolute=no
16139  hardcode_libdir_flag_spec=
16140  hardcode_libdir_separator=
16141  hardcode_minus_L=no
16142  hardcode_shlibpath_var=unsupported
16143  inherit_rpath=no
16144  link_all_deplibs=unknown
16145  module_cmds=
16146  module_expsym_cmds=
16147  old_archive_from_new_cmds=
16148  old_archive_from_expsyms_cmds=
16149  thread_safe_flag_spec=
16150  whole_archive_flag_spec=
16151  # include_expsyms should be a list of space-separated symbols to be *always*
16152  # included in the symbol list
16153  include_expsyms=
16154  # exclude_expsyms can be an extended regexp of symbols to exclude
16155  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16156  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16157  # as well as any symbol that contains 'd'.
16158  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16159  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16160  # platforms (ab)use it in PIC code, but their linkers get confused if
16161  # the symbol is explicitly referenced.  Since portable code cannot
16162  # rely on this symbol name, it's probably fine to never include it in
16163  # preloaded symbol tables.
16164  # Exclude shared library initialization/finalization symbols.
16165  extract_expsyms_cmds=
16166
16167  case $host_os in
16168  cygwin* | mingw* | pw32* | cegcc*)
16169    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16170    # When not using gcc, we currently assume that we are using
16171    # Microsoft Visual C++ or Intel C++ Compiler.
16172    if test yes != "$GCC"; then
16173      with_gnu_ld=no
16174    fi
16175    ;;
16176  interix*)
16177    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16178    with_gnu_ld=yes
16179    ;;
16180  openbsd* | bitrig*)
16181    with_gnu_ld=no
16182    ;;
16183  esac
16184
16185  ld_shlibs=yes
16186
16187  # On some targets, GNU ld is compatible enough with the native linker
16188  # that we're better off using the native interface for both.
16189  lt_use_gnu_ld_interface=no
16190  if test yes = "$with_gnu_ld"; then
16191    case $host_os in
16192      aix*)
16193	# The AIX port of GNU ld has always aspired to compatibility
16194	# with the native linker.  However, as the warning in the GNU ld
16195	# block says, versions before 2.19.5* couldn't really create working
16196	# shared libraries, regardless of the interface used.
16197	case `$LD -v 2>&1` in
16198	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16199	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16200	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16201	  *)
16202	    lt_use_gnu_ld_interface=yes
16203	    ;;
16204	esac
16205	;;
16206      *)
16207	lt_use_gnu_ld_interface=yes
16208	;;
16209    esac
16210  fi
16211
16212  if test yes = "$lt_use_gnu_ld_interface"; then
16213    # If archive_cmds runs LD, not CC, wlarc should be empty
16214    wlarc='$wl'
16215
16216    # Set some defaults for GNU ld with shared library support. These
16217    # are reset later if shared libraries are not supported. Putting them
16218    # here allows them to be overridden if necessary.
16219    runpath_var=LD_RUN_PATH
16220    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16221    export_dynamic_flag_spec='$wl--export-dynamic'
16222    # ancient GNU ld didn't support --whole-archive et. al.
16223    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16224      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16225    else
16226      whole_archive_flag_spec=
16227    fi
16228    supports_anon_versioning=no
16229    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16230      *GNU\ gold*) supports_anon_versioning=yes ;;
16231      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16232      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16233      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16234      *\ 2.11.*) ;; # other 2.11 versions
16235      *) supports_anon_versioning=yes ;;
16236    esac
16237
16238    # See if GNU ld supports shared libraries.
16239    case $host_os in
16240    aix[3-9]*)
16241      # On AIX/PPC, the GNU linker is very broken
16242      if test ia64 != "$host_cpu"; then
16243	ld_shlibs=no
16244	cat <<_LT_EOF 1>&2
16245
16246*** Warning: the GNU linker, at least up to release 2.19, is reported
16247*** to be unable to reliably create shared libraries on AIX.
16248*** Therefore, libtool is disabling shared libraries support.  If you
16249*** really care for shared libraries, you may want to install binutils
16250*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16251*** You will then need to restart the configuration process.
16252
16253_LT_EOF
16254      fi
16255      ;;
16256
16257    amigaos*)
16258      case $host_cpu in
16259      powerpc)
16260            # see comment about AmigaOS4 .so support
16261            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16262            archive_expsym_cmds=''
16263        ;;
16264      m68k)
16265            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)'
16266            hardcode_libdir_flag_spec='-L$libdir'
16267            hardcode_minus_L=yes
16268        ;;
16269      esac
16270      ;;
16271
16272    beos*)
16273      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16274	allow_undefined_flag=unsupported
16275	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16276	# support --undefined.  This deserves some investigation.  FIXME
16277	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16278      else
16279	ld_shlibs=no
16280      fi
16281      ;;
16282
16283    cygwin* | mingw* | pw32* | cegcc*)
16284      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16285      # as there is no search path for DLLs.
16286      hardcode_libdir_flag_spec='-L$libdir'
16287      export_dynamic_flag_spec='$wl--export-all-symbols'
16288      allow_undefined_flag=unsupported
16289      always_export_symbols=no
16290      enable_shared_with_static_runtimes=yes
16291      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'
16292      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16293
16294      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16295        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16296	# If the export-symbols file already is a .def file, use it as
16297	# is; otherwise, prepend EXPORTS...
16298	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16299          cp $export_symbols $output_objdir/$soname.def;
16300        else
16301          echo EXPORTS > $output_objdir/$soname.def;
16302          cat $export_symbols >> $output_objdir/$soname.def;
16303        fi~
16304        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16305      else
16306	ld_shlibs=no
16307      fi
16308      ;;
16309
16310    haiku*)
16311      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16312      link_all_deplibs=yes
16313      ;;
16314
16315    os2*)
16316      hardcode_libdir_flag_spec='-L$libdir'
16317      hardcode_minus_L=yes
16318      allow_undefined_flag=unsupported
16319      shrext_cmds=.dll
16320      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16321	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16322	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16323	$ECHO EXPORTS >> $output_objdir/$libname.def~
16324	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16325	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16326	emximp -o $lib $output_objdir/$libname.def'
16327      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16328	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16329	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16330	$ECHO EXPORTS >> $output_objdir/$libname.def~
16331	prefix_cmds="$SED"~
16332	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16333	  prefix_cmds="$prefix_cmds -e 1d";
16334	fi~
16335	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16336	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16337	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16338	emximp -o $lib $output_objdir/$libname.def'
16339      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16340      enable_shared_with_static_runtimes=yes
16341      file_list_spec='@'
16342      ;;
16343
16344    interix[3-9]*)
16345      hardcode_direct=no
16346      hardcode_shlibpath_var=no
16347      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16348      export_dynamic_flag_spec='$wl-E'
16349      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16350      # Instead, shared libraries are loaded at an image base (0x10000000 by
16351      # default) and relocated if they conflict, which is a slow very memory
16352      # consuming and fragmenting process.  To avoid this, we pick a random,
16353      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16354      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16355      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16356      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'
16357      ;;
16358
16359    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16360      tmp_diet=no
16361      if test linux-dietlibc = "$host_os"; then
16362	case $cc_basename in
16363	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16364	esac
16365      fi
16366      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16367	 && test no = "$tmp_diet"
16368      then
16369	tmp_addflag=' $pic_flag'
16370	tmp_sharedflag='-shared'
16371	case $cc_basename,$host_cpu in
16372        pgcc*)				# Portland Group C compiler
16373	  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'
16374	  tmp_addflag=' $pic_flag'
16375	  ;;
16376	pgf77* | pgf90* | pgf95* | pgfortran*)
16377					# Portland Group f77 and f90 compilers
16378	  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'
16379	  tmp_addflag=' $pic_flag -Mnomain' ;;
16380	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16381	  tmp_addflag=' -i_dynamic' ;;
16382	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16383	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16384	ifc* | ifort*)			# Intel Fortran compiler
16385	  tmp_addflag=' -nofor_main' ;;
16386	lf95*)				# Lahey Fortran 8.1
16387	  whole_archive_flag_spec=
16388	  tmp_sharedflag='--shared' ;;
16389        nagfor*)                        # NAGFOR 5.3
16390          tmp_sharedflag='-Wl,-shared' ;;
16391	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16392	  tmp_sharedflag='-qmkshrobj'
16393	  tmp_addflag= ;;
16394	nvcc*)	# Cuda Compiler Driver 2.2
16395	  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'
16396	  compiler_needs_object=yes
16397	  ;;
16398	esac
16399	case `$CC -V 2>&1 | $SED 5q` in
16400	*Sun\ C*)			# Sun C 5.9
16401	  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'
16402	  compiler_needs_object=yes
16403	  tmp_sharedflag='-G' ;;
16404	*Sun\ F*)			# Sun Fortran 8.3
16405	  tmp_sharedflag='-G' ;;
16406	esac
16407	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16408
16409        if test yes = "$supports_anon_versioning"; then
16410          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16411            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16412            echo "local: *; };" >> $output_objdir/$libname.ver~
16413            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16414        fi
16415
16416	case $cc_basename in
16417	tcc*)
16418	  export_dynamic_flag_spec='-rdynamic'
16419	  ;;
16420	xlf* | bgf* | bgxlf* | mpixlf*)
16421	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16422	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16423	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16424	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16425	  if test yes = "$supports_anon_versioning"; then
16426	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16427              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16428              echo "local: *; };" >> $output_objdir/$libname.ver~
16429              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16430	  fi
16431	  ;;
16432	esac
16433      else
16434        ld_shlibs=no
16435      fi
16436      ;;
16437
16438    netbsd*)
16439      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16440	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16441	wlarc=
16442      else
16443	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16444	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16445      fi
16446      ;;
16447
16448    solaris*)
16449      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16450	ld_shlibs=no
16451	cat <<_LT_EOF 1>&2
16452
16453*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16454*** create shared libraries on Solaris systems.  Therefore, libtool
16455*** is disabling shared libraries support.  We urge you to upgrade GNU
16456*** binutils to release 2.9.1 or newer.  Another option is to modify
16457*** your PATH or compiler configuration so that the native linker is
16458*** used, and then restart.
16459
16460_LT_EOF
16461      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16462	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16463	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16464      else
16465	ld_shlibs=no
16466      fi
16467      ;;
16468
16469    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16470      case `$LD -v 2>&1` in
16471        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16472	ld_shlibs=no
16473	cat <<_LT_EOF 1>&2
16474
16475*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16476*** reliably create shared libraries on SCO systems.  Therefore, libtool
16477*** is disabling shared libraries support.  We urge you to upgrade GNU
16478*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16479*** your PATH or compiler configuration so that the native linker is
16480*** used, and then restart.
16481
16482_LT_EOF
16483	;;
16484	*)
16485	  # For security reasons, it is highly recommended that you always
16486	  # use absolute paths for naming shared libraries, and exclude the
16487	  # DT_RUNPATH tag from executables and libraries.  But doing so
16488	  # requires that you compile everything twice, which is a pain.
16489	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16490	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16491	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16492	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16493	  else
16494	    ld_shlibs=no
16495	  fi
16496	;;
16497      esac
16498      ;;
16499
16500    sunos4*)
16501      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16502      wlarc=
16503      hardcode_direct=yes
16504      hardcode_shlibpath_var=no
16505      ;;
16506
16507    *)
16508      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16509	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16510	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16511      else
16512	ld_shlibs=no
16513      fi
16514      ;;
16515    esac
16516
16517    if test no = "$ld_shlibs"; then
16518      runpath_var=
16519      hardcode_libdir_flag_spec=
16520      export_dynamic_flag_spec=
16521      whole_archive_flag_spec=
16522    fi
16523  else
16524    # PORTME fill in a description of your system's linker (not GNU ld)
16525    case $host_os in
16526    aix3*)
16527      allow_undefined_flag=unsupported
16528      always_export_symbols=yes
16529      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'
16530      # Note: this linker hardcodes the directories in LIBPATH if there
16531      # are no directories specified by -L.
16532      hardcode_minus_L=yes
16533      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16534	# Neither direct hardcoding nor static linking is supported with a
16535	# broken collect2.
16536	hardcode_direct=unsupported
16537      fi
16538      ;;
16539
16540    aix[4-9]*)
16541      if test ia64 = "$host_cpu"; then
16542	# On IA64, the linker does run time linking by default, so we don't
16543	# have to do anything special.
16544	aix_use_runtimelinking=no
16545	exp_sym_flag='-Bexport'
16546	no_entry_flag=
16547      else
16548	# If we're using GNU nm, then we don't want the "-C" option.
16549	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16550	# Without the "-l" option, or with the "-B" option, AIX nm treats
16551	# weak defined symbols like other global defined symbols, whereas
16552	# GNU nm marks them as "W".
16553	# While the 'weak' keyword is ignored in the Export File, we need
16554	# it in the Import File for the 'aix-soname' feature, so we have
16555	# to replace the "-B" option with "-P" for AIX nm.
16556	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16557	  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'
16558	else
16559	  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'
16560	fi
16561	aix_use_runtimelinking=no
16562
16563	# Test if we are trying to use run time linking or normal
16564	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16565	# have runtime linking enabled, and use it for executables.
16566	# For shared libraries, we enable/disable runtime linking
16567	# depending on the kind of the shared library created -
16568	# when "with_aix_soname,aix_use_runtimelinking" is:
16569	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16570	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16571	#            lib.a           static archive
16572	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16573	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16574	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16575	#            lib.a(lib.so.V) shared, rtl:no
16576	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16577	#            lib.a           static archive
16578	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16579	  for ld_flag in $LDFLAGS; do
16580	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16581	    aix_use_runtimelinking=yes
16582	    break
16583	  fi
16584	  done
16585	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16586	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16587	    # so we don't have lib.a shared libs to link our executables.
16588	    # We have to force runtime linking in this case.
16589	    aix_use_runtimelinking=yes
16590	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16591	  fi
16592	  ;;
16593	esac
16594
16595	exp_sym_flag='-bexport'
16596	no_entry_flag='-bnoentry'
16597      fi
16598
16599      # When large executables or shared objects are built, AIX ld can
16600      # have problems creating the table of contents.  If linking a library
16601      # or program results in "error TOC overflow" add -mminimal-toc to
16602      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16603      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16604
16605      archive_cmds=''
16606      hardcode_direct=yes
16607      hardcode_direct_absolute=yes
16608      hardcode_libdir_separator=':'
16609      link_all_deplibs=yes
16610      file_list_spec='$wl-f,'
16611      case $with_aix_soname,$aix_use_runtimelinking in
16612      aix,*) ;; # traditional, no import file
16613      svr4,* | *,yes) # use import file
16614	# The Import File defines what to hardcode.
16615	hardcode_direct=no
16616	hardcode_direct_absolute=no
16617	;;
16618      esac
16619
16620      if test yes = "$GCC"; then
16621	case $host_os in aix4.[012]|aix4.[012].*)
16622	# We only want to do this on AIX 4.2 and lower, the check
16623	# below for broken collect2 doesn't work under 4.3+
16624	  collect2name=`$CC -print-prog-name=collect2`
16625	  if test -f "$collect2name" &&
16626	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16627	  then
16628	  # We have reworked collect2
16629	  :
16630	  else
16631	  # We have old collect2
16632	  hardcode_direct=unsupported
16633	  # It fails to find uninstalled libraries when the uninstalled
16634	  # path is not listed in the libpath.  Setting hardcode_minus_L
16635	  # to unsupported forces relinking
16636	  hardcode_minus_L=yes
16637	  hardcode_libdir_flag_spec='-L$libdir'
16638	  hardcode_libdir_separator=
16639	  fi
16640	  ;;
16641	esac
16642	shared_flag='-shared'
16643	if test yes = "$aix_use_runtimelinking"; then
16644	  shared_flag="$shared_flag "'$wl-G'
16645	fi
16646	# Need to ensure runtime linking is disabled for the traditional
16647	# shared library, or the linker may eventually find shared libraries
16648	# /with/ Import File - we do not want to mix them.
16649	shared_flag_aix='-shared'
16650	shared_flag_svr4='-shared $wl-G'
16651      else
16652	# not using gcc
16653	if test ia64 = "$host_cpu"; then
16654	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16655	# chokes on -Wl,-G. The following line is correct:
16656	  shared_flag='-G'
16657	else
16658	  if test yes = "$aix_use_runtimelinking"; then
16659	    shared_flag='$wl-G'
16660	  else
16661	    shared_flag='$wl-bM:SRE'
16662	  fi
16663	  shared_flag_aix='$wl-bM:SRE'
16664	  shared_flag_svr4='$wl-G'
16665	fi
16666      fi
16667
16668      export_dynamic_flag_spec='$wl-bexpall'
16669      # It seems that -bexpall does not export symbols beginning with
16670      # underscore (_), so it is better to generate a list of symbols to export.
16671      always_export_symbols=yes
16672      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16673	# Warning - without using the other runtime loading flags (-brtl),
16674	# -berok will link without error, but may produce a broken library.
16675	allow_undefined_flag='-berok'
16676        # Determine the default libpath from the value encoded in an
16677        # empty executable.
16678        if test set = "${lt_cv_aix_libpath+set}"; then
16679  aix_libpath=$lt_cv_aix_libpath
16680else
16681  if test ${lt_cv_aix_libpath_+y}
16682then :
16683  printf %s "(cached) " >&6
16684else $as_nop
16685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686/* end confdefs.h.  */
16687
16688int
16689main (void)
16690{
16691
16692  ;
16693  return 0;
16694}
16695_ACEOF
16696if ac_fn_c_try_link "$LINENO"
16697then :
16698
16699  lt_aix_libpath_sed='
16700      /Import File Strings/,/^$/ {
16701	  /^0/ {
16702	      s/^0  *\([^ ]*\) *$/\1/
16703	      p
16704	  }
16705      }'
16706  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16707  # Check for a 64-bit object if we didn't find anything.
16708  if test -z "$lt_cv_aix_libpath_"; then
16709    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16710  fi
16711fi
16712rm -f core conftest.err conftest.$ac_objext conftest.beam \
16713    conftest$ac_exeext conftest.$ac_ext
16714  if test -z "$lt_cv_aix_libpath_"; then
16715    lt_cv_aix_libpath_=/usr/lib:/lib
16716  fi
16717
16718fi
16719
16720  aix_libpath=$lt_cv_aix_libpath_
16721fi
16722
16723        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16724        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
16725      else
16726	if test ia64 = "$host_cpu"; then
16727	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16728	  allow_undefined_flag="-z nodefs"
16729	  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"
16730	else
16731	 # Determine the default libpath from the value encoded in an
16732	 # empty executable.
16733	 if test set = "${lt_cv_aix_libpath+set}"; then
16734  aix_libpath=$lt_cv_aix_libpath
16735else
16736  if test ${lt_cv_aix_libpath_+y}
16737then :
16738  printf %s "(cached) " >&6
16739else $as_nop
16740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h.  */
16742
16743int
16744main (void)
16745{
16746
16747  ;
16748  return 0;
16749}
16750_ACEOF
16751if ac_fn_c_try_link "$LINENO"
16752then :
16753
16754  lt_aix_libpath_sed='
16755      /Import File Strings/,/^$/ {
16756	  /^0/ {
16757	      s/^0  *\([^ ]*\) *$/\1/
16758	      p
16759	  }
16760      }'
16761  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16762  # Check for a 64-bit object if we didn't find anything.
16763  if test -z "$lt_cv_aix_libpath_"; then
16764    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16765  fi
16766fi
16767rm -f core conftest.err conftest.$ac_objext conftest.beam \
16768    conftest$ac_exeext conftest.$ac_ext
16769  if test -z "$lt_cv_aix_libpath_"; then
16770    lt_cv_aix_libpath_=/usr/lib:/lib
16771  fi
16772
16773fi
16774
16775  aix_libpath=$lt_cv_aix_libpath_
16776fi
16777
16778	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16779	  # Warning - without using the other run time loading flags,
16780	  # -berok will link without error, but may produce a broken library.
16781	  no_undefined_flag=' $wl-bernotok'
16782	  allow_undefined_flag=' $wl-berok'
16783	  if test yes = "$with_gnu_ld"; then
16784	    # We only use this code for GNU lds that support --whole-archive.
16785	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16786	  else
16787	    # Exported symbols can be pulled into shared objects from archives
16788	    whole_archive_flag_spec='$convenience'
16789	  fi
16790	  archive_cmds_need_lc=yes
16791	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16792	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16793	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16794	  if test svr4 != "$with_aix_soname"; then
16795	    # This is similar to how AIX traditionally builds its shared libraries.
16796	    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'
16797	  fi
16798	  if test aix != "$with_aix_soname"; then
16799	    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'
16800	  else
16801	    # used by -dlpreopen to get the symbols
16802	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16803	  fi
16804	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16805	fi
16806      fi
16807      ;;
16808
16809    amigaos*)
16810      case $host_cpu in
16811      powerpc)
16812            # see comment about AmigaOS4 .so support
16813            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16814            archive_expsym_cmds=''
16815        ;;
16816      m68k)
16817            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)'
16818            hardcode_libdir_flag_spec='-L$libdir'
16819            hardcode_minus_L=yes
16820        ;;
16821      esac
16822      ;;
16823
16824    bsdi[45]*)
16825      export_dynamic_flag_spec=-rdynamic
16826      ;;
16827
16828    cygwin* | mingw* | pw32* | cegcc*)
16829      # When not using gcc, we currently assume that we are using
16830      # Microsoft Visual C++ or Intel C++ Compiler.
16831      # hardcode_libdir_flag_spec is actually meaningless, as there is
16832      # no search path for DLLs.
16833      case $cc_basename in
16834      cl* | icl*)
16835	# Native MSVC or ICC
16836	hardcode_libdir_flag_spec=' '
16837	allow_undefined_flag=unsupported
16838	always_export_symbols=yes
16839	file_list_spec='@'
16840	# Tell ltmain to make .lib files, not .a files.
16841	libext=lib
16842	# Tell ltmain to make .dll files, not .so files.
16843	shrext_cmds=.dll
16844	# FIXME: Setting linknames here is a bad hack.
16845	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16846	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16847            cp "$export_symbols" "$output_objdir/$soname.def";
16848            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16849          else
16850            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16851          fi~
16852          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16853          linknames='
16854	# The linker will not automatically build a static lib if we build a DLL.
16855	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16856	enable_shared_with_static_runtimes=yes
16857	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16858	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16859	# Don't use ranlib
16860	old_postinstall_cmds='chmod 644 $oldlib'
16861	postlink_cmds='lt_outputfile="@OUTPUT@"~
16862          lt_tool_outputfile="@TOOL_OUTPUT@"~
16863          case $lt_outputfile in
16864            *.exe|*.EXE) ;;
16865            *)
16866              lt_outputfile=$lt_outputfile.exe
16867              lt_tool_outputfile=$lt_tool_outputfile.exe
16868              ;;
16869          esac~
16870          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16871            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16872            $RM "$lt_outputfile.manifest";
16873          fi'
16874	;;
16875      *)
16876	# Assume MSVC and ICC wrapper
16877	hardcode_libdir_flag_spec=' '
16878	allow_undefined_flag=unsupported
16879	# Tell ltmain to make .lib files, not .a files.
16880	libext=lib
16881	# Tell ltmain to make .dll files, not .so files.
16882	shrext_cmds=.dll
16883	# FIXME: Setting linknames here is a bad hack.
16884	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16885	# The linker will automatically build a .lib file if we build a DLL.
16886	old_archive_from_new_cmds='true'
16887	# FIXME: Should let the user specify the lib program.
16888	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16889	enable_shared_with_static_runtimes=yes
16890	;;
16891      esac
16892      ;;
16893
16894    darwin* | rhapsody*)
16895
16896
16897  archive_cmds_need_lc=no
16898  hardcode_direct=no
16899  hardcode_automatic=yes
16900  hardcode_shlibpath_var=unsupported
16901  if test yes = "$lt_cv_ld_force_load"; then
16902    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\"`'
16903
16904  else
16905    whole_archive_flag_spec=''
16906  fi
16907  link_all_deplibs=yes
16908  allow_undefined_flag=$_lt_dar_allow_undefined
16909  case $cc_basename in
16910     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16911     *) _lt_dar_can_shared=$GCC ;;
16912  esac
16913  if test yes = "$_lt_dar_can_shared"; then
16914    output_verbose_link_cmd=func_echo_all
16915    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16916    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16917    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"
16918    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"
16919
16920  else
16921  ld_shlibs=no
16922  fi
16923
16924      ;;
16925
16926    dgux*)
16927      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16928      hardcode_libdir_flag_spec='-L$libdir'
16929      hardcode_shlibpath_var=no
16930      ;;
16931
16932    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16933    # support.  Future versions do this automatically, but an explicit c++rt0.o
16934    # does not break anything, and helps significantly (at the cost of a little
16935    # extra space).
16936    freebsd2.2*)
16937      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16938      hardcode_libdir_flag_spec='-R$libdir'
16939      hardcode_direct=yes
16940      hardcode_shlibpath_var=no
16941      ;;
16942
16943    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16944    freebsd2.*)
16945      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16946      hardcode_direct=yes
16947      hardcode_minus_L=yes
16948      hardcode_shlibpath_var=no
16949      ;;
16950
16951    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16952    freebsd* | dragonfly* | midnightbsd*)
16953      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16954      hardcode_libdir_flag_spec='-R$libdir'
16955      hardcode_direct=yes
16956      hardcode_shlibpath_var=no
16957      ;;
16958
16959    hpux9*)
16960      if test yes = "$GCC"; then
16961	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'
16962      else
16963	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'
16964      fi
16965      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16966      hardcode_libdir_separator=:
16967      hardcode_direct=yes
16968
16969      # hardcode_minus_L: Not really in the search PATH,
16970      # but as the default location of the library.
16971      hardcode_minus_L=yes
16972      export_dynamic_flag_spec='$wl-E'
16973      ;;
16974
16975    hpux10*)
16976      if test yes,no = "$GCC,$with_gnu_ld"; then
16977	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16978      else
16979	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16980      fi
16981      if test no = "$with_gnu_ld"; then
16982	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16983	hardcode_libdir_separator=:
16984	hardcode_direct=yes
16985	hardcode_direct_absolute=yes
16986	export_dynamic_flag_spec='$wl-E'
16987	# hardcode_minus_L: Not really in the search PATH,
16988	# but as the default location of the library.
16989	hardcode_minus_L=yes
16990      fi
16991      ;;
16992
16993    hpux11*)
16994      if test yes,no = "$GCC,$with_gnu_ld"; then
16995	case $host_cpu in
16996	hppa*64*)
16997	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16998	  ;;
16999	ia64*)
17000	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17001	  ;;
17002	*)
17003	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17004	  ;;
17005	esac
17006      else
17007	case $host_cpu in
17008	hppa*64*)
17009	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17010	  ;;
17011	ia64*)
17012	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17013	  ;;
17014	*)
17015
17016	  # Older versions of the 11.00 compiler do not understand -b yet
17017	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17018	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17019printf %s "checking if $CC understands -b... " >&6; }
17020if test ${lt_cv_prog_compiler__b+y}
17021then :
17022  printf %s "(cached) " >&6
17023else $as_nop
17024  lt_cv_prog_compiler__b=no
17025   save_LDFLAGS=$LDFLAGS
17026   LDFLAGS="$LDFLAGS -b"
17027   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17028   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17029     # The linker can only warn and ignore the option if not recognized
17030     # So say no if there are warnings
17031     if test -s conftest.err; then
17032       # Append any errors to the config.log.
17033       cat conftest.err 1>&5
17034       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17035       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17036       if diff conftest.exp conftest.er2 >/dev/null; then
17037         lt_cv_prog_compiler__b=yes
17038       fi
17039     else
17040       lt_cv_prog_compiler__b=yes
17041     fi
17042   fi
17043   $RM -r conftest*
17044   LDFLAGS=$save_LDFLAGS
17045
17046fi
17047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17048printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17049
17050if test yes = "$lt_cv_prog_compiler__b"; then
17051    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17052else
17053    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17054fi
17055
17056	  ;;
17057	esac
17058      fi
17059      if test no = "$with_gnu_ld"; then
17060	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17061	hardcode_libdir_separator=:
17062
17063	case $host_cpu in
17064	hppa*64*|ia64*)
17065	  hardcode_direct=no
17066	  hardcode_shlibpath_var=no
17067	  ;;
17068	*)
17069	  hardcode_direct=yes
17070	  hardcode_direct_absolute=yes
17071	  export_dynamic_flag_spec='$wl-E'
17072
17073	  # hardcode_minus_L: Not really in the search PATH,
17074	  # but as the default location of the library.
17075	  hardcode_minus_L=yes
17076	  ;;
17077	esac
17078      fi
17079      ;;
17080
17081    irix5* | irix6* | nonstopux*)
17082      if test yes = "$GCC"; then
17083	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'
17084	# Try to use the -exported_symbol ld option, if it does not
17085	# work, assume that -exports_file does not work either and
17086	# implicitly export all symbols.
17087	# This should be the same for all languages, so no per-tag cache variable.
17088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17089printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17090if test ${lt_cv_irix_exported_symbol+y}
17091then :
17092  printf %s "(cached) " >&6
17093else $as_nop
17094  save_LDFLAGS=$LDFLAGS
17095	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17096	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097/* end confdefs.h.  */
17098int foo (void) { return 0; }
17099_ACEOF
17100if ac_fn_c_try_link "$LINENO"
17101then :
17102  lt_cv_irix_exported_symbol=yes
17103else $as_nop
17104  lt_cv_irix_exported_symbol=no
17105fi
17106rm -f core conftest.err conftest.$ac_objext conftest.beam \
17107    conftest$ac_exeext conftest.$ac_ext
17108           LDFLAGS=$save_LDFLAGS
17109fi
17110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17111printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17112	if test yes = "$lt_cv_irix_exported_symbol"; then
17113          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'
17114	fi
17115      else
17116	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'
17117	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'
17118      fi
17119      archive_cmds_need_lc='no'
17120      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17121      hardcode_libdir_separator=:
17122      inherit_rpath=yes
17123      link_all_deplibs=yes
17124      ;;
17125
17126    linux*)
17127      case $cc_basename in
17128      tcc*)
17129	# Fabrice Bellard et al's Tiny C Compiler
17130	ld_shlibs=yes
17131	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17132	;;
17133      esac
17134      ;;
17135
17136    netbsd*)
17137      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17138	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17139      else
17140	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17141      fi
17142      hardcode_libdir_flag_spec='-R$libdir'
17143      hardcode_direct=yes
17144      hardcode_shlibpath_var=no
17145      ;;
17146
17147    newsos6)
17148      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17149      hardcode_direct=yes
17150      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17151      hardcode_libdir_separator=:
17152      hardcode_shlibpath_var=no
17153      ;;
17154
17155    *nto* | *qnx*)
17156      ;;
17157
17158    openbsd* | bitrig*)
17159      if test -f /usr/libexec/ld.so; then
17160	hardcode_direct=yes
17161	hardcode_shlibpath_var=no
17162	hardcode_direct_absolute=yes
17163	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17164	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17165	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17166	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17167	  export_dynamic_flag_spec='$wl-E'
17168	else
17169	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17170	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17171	fi
17172      else
17173	ld_shlibs=no
17174      fi
17175      ;;
17176
17177    os2*)
17178      hardcode_libdir_flag_spec='-L$libdir'
17179      hardcode_minus_L=yes
17180      allow_undefined_flag=unsupported
17181      shrext_cmds=.dll
17182      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17183	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17184	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17185	$ECHO EXPORTS >> $output_objdir/$libname.def~
17186	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17187	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17188	emximp -o $lib $output_objdir/$libname.def'
17189      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17190	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17191	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17192	$ECHO EXPORTS >> $output_objdir/$libname.def~
17193	prefix_cmds="$SED"~
17194	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17195	  prefix_cmds="$prefix_cmds -e 1d";
17196	fi~
17197	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17198	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17199	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17200	emximp -o $lib $output_objdir/$libname.def'
17201      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17202      enable_shared_with_static_runtimes=yes
17203      file_list_spec='@'
17204      ;;
17205
17206    osf3*)
17207      if test yes = "$GCC"; then
17208	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17209	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'
17210      else
17211	allow_undefined_flag=' -expect_unresolved \*'
17212	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'
17213      fi
17214      archive_cmds_need_lc='no'
17215      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17216      hardcode_libdir_separator=:
17217      ;;
17218
17219    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17220      if test yes = "$GCC"; then
17221	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17222	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'
17223	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17224      else
17225	allow_undefined_flag=' -expect_unresolved \*'
17226	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'
17227	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~
17228          $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'
17229
17230	# Both c and cxx compiler support -rpath directly
17231	hardcode_libdir_flag_spec='-rpath $libdir'
17232      fi
17233      archive_cmds_need_lc='no'
17234      hardcode_libdir_separator=:
17235      ;;
17236
17237    solaris*)
17238      no_undefined_flag=' -z defs'
17239      if test yes = "$GCC"; then
17240	wlarc='$wl'
17241	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17242	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17243          $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'
17244      else
17245	case `$CC -V 2>&1` in
17246	*"Compilers 5.0"*)
17247	  wlarc=''
17248	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17249	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17250            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17251	  ;;
17252	*)
17253	  wlarc='$wl'
17254	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17255	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17256            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17257	  ;;
17258	esac
17259      fi
17260      hardcode_libdir_flag_spec='-R$libdir'
17261      hardcode_shlibpath_var=no
17262      case $host_os in
17263      solaris2.[0-5] | solaris2.[0-5].*) ;;
17264      *)
17265	# The compiler driver will combine and reorder linker options,
17266	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17267	# but is careful enough not to reorder.
17268	# Supported since Solaris 2.6 (maybe 2.5.1?)
17269	if test yes = "$GCC"; then
17270	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17271	else
17272	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17273	fi
17274	;;
17275      esac
17276      link_all_deplibs=yes
17277      ;;
17278
17279    sunos4*)
17280      if test sequent = "$host_vendor"; then
17281	# Use $CC to link under sequent, because it throws in some extra .o
17282	# files that make .init and .fini sections work.
17283	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17284      else
17285	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17286      fi
17287      hardcode_libdir_flag_spec='-L$libdir'
17288      hardcode_direct=yes
17289      hardcode_minus_L=yes
17290      hardcode_shlibpath_var=no
17291      ;;
17292
17293    sysv4)
17294      case $host_vendor in
17295	sni)
17296	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17297	  hardcode_direct=yes # is this really true???
17298	;;
17299	siemens)
17300	  ## LD is ld it makes a PLAMLIB
17301	  ## CC just makes a GrossModule.
17302	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17303	  reload_cmds='$CC -r -o $output$reload_objs'
17304	  hardcode_direct=no
17305        ;;
17306	motorola)
17307	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17309	;;
17310      esac
17311      runpath_var='LD_RUN_PATH'
17312      hardcode_shlibpath_var=no
17313      ;;
17314
17315    sysv4.3*)
17316      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17317      hardcode_shlibpath_var=no
17318      export_dynamic_flag_spec='-Bexport'
17319      ;;
17320
17321    sysv4*MP*)
17322      if test -d /usr/nec; then
17323	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17324	hardcode_shlibpath_var=no
17325	runpath_var=LD_RUN_PATH
17326	hardcode_runpath_var=yes
17327	ld_shlibs=yes
17328      fi
17329      ;;
17330
17331    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17332      no_undefined_flag='$wl-z,text'
17333      archive_cmds_need_lc=no
17334      hardcode_shlibpath_var=no
17335      runpath_var='LD_RUN_PATH'
17336
17337      if test yes = "$GCC"; then
17338	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17339	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17340      else
17341	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17342	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17343      fi
17344      ;;
17345
17346    sysv5* | sco3.2v5* | sco5v6*)
17347      # Note: We CANNOT use -z defs as we might desire, because we do not
17348      # link with -lc, and that would cause any symbols used from libc to
17349      # always be unresolved, which means just about no library would
17350      # ever link correctly.  If we're not using GNU ld we use -z text
17351      # though, which does catch some bad symbols but isn't as heavy-handed
17352      # as -z defs.
17353      no_undefined_flag='$wl-z,text'
17354      allow_undefined_flag='$wl-z,nodefs'
17355      archive_cmds_need_lc=no
17356      hardcode_shlibpath_var=no
17357      hardcode_libdir_flag_spec='$wl-R,$libdir'
17358      hardcode_libdir_separator=':'
17359      link_all_deplibs=yes
17360      export_dynamic_flag_spec='$wl-Bexport'
17361      runpath_var='LD_RUN_PATH'
17362
17363      if test yes = "$GCC"; then
17364	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17365	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17366      else
17367	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17368	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17369      fi
17370      ;;
17371
17372    uts4*)
17373      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17374      hardcode_libdir_flag_spec='-L$libdir'
17375      hardcode_shlibpath_var=no
17376      ;;
17377
17378    *)
17379      ld_shlibs=no
17380      ;;
17381    esac
17382
17383    if test sni = "$host_vendor"; then
17384      case $host in
17385      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17386	export_dynamic_flag_spec='$wl-Blargedynsym'
17387	;;
17388      esac
17389    fi
17390  fi
17391
17392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17393printf "%s\n" "$ld_shlibs" >&6; }
17394test no = "$ld_shlibs" && can_build_shared=no
17395
17396with_gnu_ld=$with_gnu_ld
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412#
17413# Do we need to explicitly link libc?
17414#
17415case "x$archive_cmds_need_lc" in
17416x|xyes)
17417  # Assume -lc should be added
17418  archive_cmds_need_lc=yes
17419
17420  if test yes,yes = "$GCC,$enable_shared"; then
17421    case $archive_cmds in
17422    *'~'*)
17423      # FIXME: we may have to deal with multi-command sequences.
17424      ;;
17425    '$CC '*)
17426      # Test whether the compiler implicitly links with -lc since on some
17427      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17428      # to ld, don't add -lc before -lgcc.
17429      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17430printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17431if test ${lt_cv_archive_cmds_need_lc+y}
17432then :
17433  printf %s "(cached) " >&6
17434else $as_nop
17435  $RM conftest*
17436	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17437
17438	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17439  (eval $ac_compile) 2>&5
17440  ac_status=$?
17441  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17442  test $ac_status = 0; } 2>conftest.err; then
17443	  soname=conftest
17444	  lib=conftest
17445	  libobjs=conftest.$ac_objext
17446	  deplibs=
17447	  wl=$lt_prog_compiler_wl
17448	  pic_flag=$lt_prog_compiler_pic
17449	  compiler_flags=-v
17450	  linker_flags=-v
17451	  verstring=
17452	  output_objdir=.
17453	  libname=conftest
17454	  lt_save_allow_undefined_flag=$allow_undefined_flag
17455	  allow_undefined_flag=
17456	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17457  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17458  ac_status=$?
17459  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17460  test $ac_status = 0; }
17461	  then
17462	    lt_cv_archive_cmds_need_lc=no
17463	  else
17464	    lt_cv_archive_cmds_need_lc=yes
17465	  fi
17466	  allow_undefined_flag=$lt_save_allow_undefined_flag
17467	else
17468	  cat conftest.err 1>&5
17469	fi
17470	$RM conftest*
17471
17472fi
17473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17474printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17475      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17476      ;;
17477    esac
17478  fi
17479  ;;
17480esac
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17634printf %s "checking dynamic linker characteristics... " >&6; }
17635
17636if test yes = "$GCC"; then
17637  case $host_os in
17638    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17639    *) lt_awk_arg='/^libraries:/' ;;
17640  esac
17641  case $host_os in
17642    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17643    *) lt_sed_strip_eq='s|=/|/|g' ;;
17644  esac
17645  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17646  case $lt_search_path_spec in
17647  *\;*)
17648    # if the path contains ";" then we assume it to be the separator
17649    # otherwise default to the standard path separator (i.e. ":") - it is
17650    # assumed that no part of a normal pathname contains ";" but that should
17651    # okay in the real world where ";" in dirpaths is itself problematic.
17652    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17653    ;;
17654  *)
17655    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17656    ;;
17657  esac
17658  # Ok, now we have the path, separated by spaces, we can step through it
17659  # and add multilib dir if necessary...
17660  lt_tmp_lt_search_path_spec=
17661  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17662  # ...but if some path component already ends with the multilib dir we assume
17663  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17664  case "$lt_multi_os_dir; $lt_search_path_spec " in
17665  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17666    lt_multi_os_dir=
17667    ;;
17668  esac
17669  for lt_sys_path in $lt_search_path_spec; do
17670    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17671      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17672    elif test -n "$lt_multi_os_dir"; then
17673      test -d "$lt_sys_path" && \
17674	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17675    fi
17676  done
17677  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17678BEGIN {RS = " "; FS = "/|\n";} {
17679  lt_foo = "";
17680  lt_count = 0;
17681  for (lt_i = NF; lt_i > 0; lt_i--) {
17682    if ($lt_i != "" && $lt_i != ".") {
17683      if ($lt_i == "..") {
17684        lt_count++;
17685      } else {
17686        if (lt_count == 0) {
17687          lt_foo = "/" $lt_i lt_foo;
17688        } else {
17689          lt_count--;
17690        }
17691      }
17692    }
17693  }
17694  if (lt_foo != "") { lt_freq[lt_foo]++; }
17695  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17696}'`
17697  # AWK program above erroneously prepends '/' to C:/dos/paths
17698  # for these hosts.
17699  case $host_os in
17700    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17701      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17702  esac
17703  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17704else
17705  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17706fi
17707library_names_spec=
17708libname_spec='lib$name'
17709soname_spec=
17710shrext_cmds=.so
17711postinstall_cmds=
17712postuninstall_cmds=
17713finish_cmds=
17714finish_eval=
17715shlibpath_var=
17716shlibpath_overrides_runpath=unknown
17717version_type=none
17718dynamic_linker="$host_os ld.so"
17719sys_lib_dlsearch_path_spec="/lib /usr/lib"
17720need_lib_prefix=unknown
17721hardcode_into_libs=no
17722
17723# when you set need_version to no, make sure it does not cause -set_version
17724# flags to be left without arguments
17725need_version=unknown
17726
17727
17728
17729case $host_os in
17730aix3*)
17731  version_type=linux # correct to gnu/linux during the next big refactor
17732  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17733  shlibpath_var=LIBPATH
17734
17735  # AIX 3 has no versioning support, so we append a major version to the name.
17736  soname_spec='$libname$release$shared_ext$major'
17737  ;;
17738
17739aix[4-9]*)
17740  version_type=linux # correct to gnu/linux during the next big refactor
17741  need_lib_prefix=no
17742  need_version=no
17743  hardcode_into_libs=yes
17744  if test ia64 = "$host_cpu"; then
17745    # AIX 5 supports IA64
17746    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17747    shlibpath_var=LD_LIBRARY_PATH
17748  else
17749    # With GCC up to 2.95.x, collect2 would create an import file
17750    # for dependence libraries.  The import file would start with
17751    # the line '#! .'.  This would cause the generated library to
17752    # depend on '.', always an invalid library.  This was fixed in
17753    # development snapshots of GCC prior to 3.0.
17754    case $host_os in
17755      aix4 | aix4.[01] | aix4.[01].*)
17756      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17757	   echo ' yes '
17758	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17759	:
17760      else
17761	can_build_shared=no
17762      fi
17763      ;;
17764    esac
17765    # Using Import Files as archive members, it is possible to support
17766    # filename-based versioning of shared library archives on AIX. While
17767    # this would work for both with and without runtime linking, it will
17768    # prevent static linking of such archives. So we do filename-based
17769    # shared library versioning with .so extension only, which is used
17770    # when both runtime linking and shared linking is enabled.
17771    # Unfortunately, runtime linking may impact performance, so we do
17772    # not want this to be the default eventually. Also, we use the
17773    # versioned .so libs for executables only if there is the -brtl
17774    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17775    # To allow for filename-based versioning support, we need to create
17776    # libNAME.so.V as an archive file, containing:
17777    # *) an Import File, referring to the versioned filename of the
17778    #    archive as well as the shared archive member, telling the
17779    #    bitwidth (32 or 64) of that shared object, and providing the
17780    #    list of exported symbols of that shared object, eventually
17781    #    decorated with the 'weak' keyword
17782    # *) the shared object with the F_LOADONLY flag set, to really avoid
17783    #    it being seen by the linker.
17784    # At run time we better use the real file rather than another symlink,
17785    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17786
17787    case $with_aix_soname,$aix_use_runtimelinking in
17788    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17789    # soname into executable. Probably we can add versioning support to
17790    # collect2, so additional links can be useful in future.
17791    aix,yes) # traditional libtool
17792      dynamic_linker='AIX unversionable lib.so'
17793      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17794      # instead of lib<name>.a to let people know that these are not
17795      # typical AIX shared libraries.
17796      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17797      ;;
17798    aix,no) # traditional AIX only
17799      dynamic_linker='AIX lib.a(lib.so.V)'
17800      # We preserve .a as extension for shared libraries through AIX4.2
17801      # and later when we are not doing run time linking.
17802      library_names_spec='$libname$release.a $libname.a'
17803      soname_spec='$libname$release$shared_ext$major'
17804      ;;
17805    svr4,*) # full svr4 only
17806      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17807      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17808      # We do not specify a path in Import Files, so LIBPATH fires.
17809      shlibpath_overrides_runpath=yes
17810      ;;
17811    *,yes) # both, prefer svr4
17812      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17813      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17814      # unpreferred sharedlib libNAME.a needs extra handling
17815      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"'
17816      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"'
17817      # We do not specify a path in Import Files, so LIBPATH fires.
17818      shlibpath_overrides_runpath=yes
17819      ;;
17820    *,no) # both, prefer aix
17821      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17822      library_names_spec='$libname$release.a $libname.a'
17823      soname_spec='$libname$release$shared_ext$major'
17824      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17825      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)'
17826      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"'
17827      ;;
17828    esac
17829    shlibpath_var=LIBPATH
17830  fi
17831  ;;
17832
17833amigaos*)
17834  case $host_cpu in
17835  powerpc)
17836    # Since July 2007 AmigaOS4 officially supports .so libraries.
17837    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17838    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17839    ;;
17840  m68k)
17841    library_names_spec='$libname.ixlibrary $libname.a'
17842    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17843    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'
17844    ;;
17845  esac
17846  ;;
17847
17848beos*)
17849  library_names_spec='$libname$shared_ext'
17850  dynamic_linker="$host_os ld.so"
17851  shlibpath_var=LIBRARY_PATH
17852  ;;
17853
17854bsdi[45]*)
17855  version_type=linux # correct to gnu/linux during the next big refactor
17856  need_version=no
17857  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17858  soname_spec='$libname$release$shared_ext$major'
17859  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17860  shlibpath_var=LD_LIBRARY_PATH
17861  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17862  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17863  # the default ld.so.conf also contains /usr/contrib/lib and
17864  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17865  # libtool to hard-code these into programs
17866  ;;
17867
17868cygwin* | mingw* | pw32* | cegcc*)
17869  version_type=windows
17870  shrext_cmds=.dll
17871  need_version=no
17872  need_lib_prefix=no
17873
17874  case $GCC,$cc_basename in
17875  yes,*)
17876    # gcc
17877    library_names_spec='$libname.dll.a'
17878    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17879    postinstall_cmds='base_file=`basename \$file`~
17880      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17881      dldir=$destdir/`dirname \$dlpath`~
17882      test -d \$dldir || mkdir -p \$dldir~
17883      $install_prog $dir/$dlname \$dldir/$dlname~
17884      chmod a+x \$dldir/$dlname~
17885      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17886        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17887      fi'
17888    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17889      dlpath=$dir/\$dldll~
17890       $RM \$dlpath'
17891    shlibpath_overrides_runpath=yes
17892
17893    case $host_os in
17894    cygwin*)
17895      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17896      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17897
17898      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17899      ;;
17900    mingw* | cegcc*)
17901      # MinGW DLLs use traditional 'lib' prefix
17902      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17903      ;;
17904    pw32*)
17905      # pw32 DLLs use 'pw' prefix rather than 'lib'
17906      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17907      ;;
17908    esac
17909    dynamic_linker='Win32 ld.exe'
17910    ;;
17911
17912  *,cl* | *,icl*)
17913    # Native MSVC or ICC
17914    libname_spec='$name'
17915    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17916    library_names_spec='$libname.dll.lib'
17917
17918    case $build_os in
17919    mingw*)
17920      sys_lib_search_path_spec=
17921      lt_save_ifs=$IFS
17922      IFS=';'
17923      for lt_path in $LIB
17924      do
17925        IFS=$lt_save_ifs
17926        # Let DOS variable expansion print the short 8.3 style file name.
17927        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17928        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17929      done
17930      IFS=$lt_save_ifs
17931      # Convert to MSYS style.
17932      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17933      ;;
17934    cygwin*)
17935      # Convert to unix form, then to dos form, then back to unix form
17936      # but this time dos style (no spaces!) so that the unix form looks
17937      # like /cygdrive/c/PROGRA~1:/cygdr...
17938      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17939      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17940      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17941      ;;
17942    *)
17943      sys_lib_search_path_spec=$LIB
17944      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17945        # It is most probably a Windows format PATH.
17946        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17947      else
17948        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17949      fi
17950      # FIXME: find the short name or the path components, as spaces are
17951      # common. (e.g. "Program Files" -> "PROGRA~1")
17952      ;;
17953    esac
17954
17955    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17956    postinstall_cmds='base_file=`basename \$file`~
17957      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17958      dldir=$destdir/`dirname \$dlpath`~
17959      test -d \$dldir || mkdir -p \$dldir~
17960      $install_prog $dir/$dlname \$dldir/$dlname'
17961    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17962      dlpath=$dir/\$dldll~
17963       $RM \$dlpath'
17964    shlibpath_overrides_runpath=yes
17965    dynamic_linker='Win32 link.exe'
17966    ;;
17967
17968  *)
17969    # Assume MSVC and ICC wrapper
17970    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17971    dynamic_linker='Win32 ld.exe'
17972    ;;
17973  esac
17974  # FIXME: first we should search . and the directory the executable is in
17975  shlibpath_var=PATH
17976  ;;
17977
17978darwin* | rhapsody*)
17979  dynamic_linker="$host_os dyld"
17980  version_type=darwin
17981  need_lib_prefix=no
17982  need_version=no
17983  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17984  soname_spec='$libname$release$major$shared_ext'
17985  shlibpath_overrides_runpath=yes
17986  shlibpath_var=DYLD_LIBRARY_PATH
17987  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17988
17989  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17990  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17991  ;;
17992
17993dgux*)
17994  version_type=linux # correct to gnu/linux during the next big refactor
17995  need_lib_prefix=no
17996  need_version=no
17997  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17998  soname_spec='$libname$release$shared_ext$major'
17999  shlibpath_var=LD_LIBRARY_PATH
18000  ;;
18001
18002freebsd* | dragonfly* | midnightbsd*)
18003  # DragonFly does not have aout.  When/if they implement a new
18004  # versioning mechanism, adjust this.
18005  if test -x /usr/bin/objformat; then
18006    objformat=`/usr/bin/objformat`
18007  else
18008    case $host_os in
18009    freebsd[23].*) objformat=aout ;;
18010    *) objformat=elf ;;
18011    esac
18012  fi
18013  version_type=freebsd-$objformat
18014  case $version_type in
18015    freebsd-elf*)
18016      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18017      soname_spec='$libname$release$shared_ext$major'
18018      need_version=no
18019      need_lib_prefix=no
18020      ;;
18021    freebsd-*)
18022      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18023      need_version=yes
18024      ;;
18025  esac
18026  shlibpath_var=LD_LIBRARY_PATH
18027  case $host_os in
18028  freebsd2.*)
18029    shlibpath_overrides_runpath=yes
18030    ;;
18031  freebsd3.[01]* | freebsdelf3.[01]*)
18032    shlibpath_overrides_runpath=yes
18033    hardcode_into_libs=yes
18034    ;;
18035  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037    shlibpath_overrides_runpath=no
18038    hardcode_into_libs=yes
18039    ;;
18040  *) # from 4.6 on, and DragonFly
18041    shlibpath_overrides_runpath=yes
18042    hardcode_into_libs=yes
18043    ;;
18044  esac
18045  ;;
18046
18047haiku*)
18048  version_type=linux # correct to gnu/linux during the next big refactor
18049  need_lib_prefix=no
18050  need_version=no
18051  dynamic_linker="$host_os runtime_loader"
18052  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18053  soname_spec='$libname$release$shared_ext$major'
18054  shlibpath_var=LIBRARY_PATH
18055  shlibpath_overrides_runpath=no
18056  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18057  hardcode_into_libs=yes
18058  ;;
18059
18060hpux9* | hpux10* | hpux11*)
18061  # Give a soname corresponding to the major version so that dld.sl refuses to
18062  # link against other versions.
18063  version_type=sunos
18064  need_lib_prefix=no
18065  need_version=no
18066  case $host_cpu in
18067  ia64*)
18068    shrext_cmds='.so'
18069    hardcode_into_libs=yes
18070    dynamic_linker="$host_os dld.so"
18071    shlibpath_var=LD_LIBRARY_PATH
18072    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test 32 = "$HPUX_IA64_MODE"; then
18076      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18077      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18078    else
18079      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18080      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18081    fi
18082    ;;
18083  hppa*64*)
18084    shrext_cmds='.sl'
18085    hardcode_into_libs=yes
18086    dynamic_linker="$host_os dld.sl"
18087    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18088    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18089    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18090    soname_spec='$libname$release$shared_ext$major'
18091    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18092    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18093    ;;
18094  *)
18095    shrext_cmds='.sl'
18096    dynamic_linker="$host_os dld.sl"
18097    shlibpath_var=SHLIB_PATH
18098    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18099    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18100    soname_spec='$libname$release$shared_ext$major'
18101    ;;
18102  esac
18103  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18104  postinstall_cmds='chmod 555 $lib'
18105  # or fails outright, so override atomically:
18106  install_override_mode=555
18107  ;;
18108
18109interix[3-9]*)
18110  version_type=linux # correct to gnu/linux during the next big refactor
18111  need_lib_prefix=no
18112  need_version=no
18113  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18114  soname_spec='$libname$release$shared_ext$major'
18115  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18116  shlibpath_var=LD_LIBRARY_PATH
18117  shlibpath_overrides_runpath=no
18118  hardcode_into_libs=yes
18119  ;;
18120
18121irix5* | irix6* | nonstopux*)
18122  case $host_os in
18123    nonstopux*) version_type=nonstopux ;;
18124    *)
18125	if test yes = "$lt_cv_prog_gnu_ld"; then
18126		version_type=linux # correct to gnu/linux during the next big refactor
18127	else
18128		version_type=irix
18129	fi ;;
18130  esac
18131  need_lib_prefix=no
18132  need_version=no
18133  soname_spec='$libname$release$shared_ext$major'
18134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18135  case $host_os in
18136  irix5* | nonstopux*)
18137    libsuff= shlibsuff=
18138    ;;
18139  *)
18140    case $LD in # libtool.m4 will add one of these switches to LD
18141    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18142      libsuff= shlibsuff= libmagic=32-bit;;
18143    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18144      libsuff=32 shlibsuff=N32 libmagic=N32;;
18145    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18146      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18147    *) libsuff= shlibsuff= libmagic=never-match;;
18148    esac
18149    ;;
18150  esac
18151  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18152  shlibpath_overrides_runpath=no
18153  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18154  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18155  hardcode_into_libs=yes
18156  ;;
18157
18158# No shared lib support for Linux oldld, aout, or coff.
18159linux*oldld* | linux*aout* | linux*coff*)
18160  dynamic_linker=no
18161  ;;
18162
18163linux*android*)
18164  version_type=none # Android doesn't support versioned libraries.
18165  need_lib_prefix=no
18166  need_version=no
18167  library_names_spec='$libname$release$shared_ext'
18168  soname_spec='$libname$release$shared_ext'
18169  finish_cmds=
18170  shlibpath_var=LD_LIBRARY_PATH
18171  shlibpath_overrides_runpath=yes
18172
18173  # This implies no fast_install, which is unacceptable.
18174  # Some rework will be needed to allow for fast_install
18175  # before this can be enabled.
18176  hardcode_into_libs=yes
18177
18178  dynamic_linker='Android linker'
18179  # Don't embed -rpath directories since the linker doesn't support them.
18180  hardcode_libdir_flag_spec='-L$libdir'
18181  ;;
18182
18183# This must be glibc/ELF.
18184linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18185  version_type=linux # correct to gnu/linux during the next big refactor
18186  need_lib_prefix=no
18187  need_version=no
18188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18189  soname_spec='$libname$release$shared_ext$major'
18190  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18191  shlibpath_var=LD_LIBRARY_PATH
18192  shlibpath_overrides_runpath=no
18193
18194  # Some binutils ld are patched to set DT_RUNPATH
18195  if test ${lt_cv_shlibpath_overrides_runpath+y}
18196then :
18197  printf %s "(cached) " >&6
18198else $as_nop
18199  lt_cv_shlibpath_overrides_runpath=no
18200    save_LDFLAGS=$LDFLAGS
18201    save_libdir=$libdir
18202    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18203	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205/* end confdefs.h.  */
18206
18207int
18208main (void)
18209{
18210
18211  ;
18212  return 0;
18213}
18214_ACEOF
18215if ac_fn_c_try_link "$LINENO"
18216then :
18217  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18218then :
18219  lt_cv_shlibpath_overrides_runpath=yes
18220fi
18221fi
18222rm -f core conftest.err conftest.$ac_objext conftest.beam \
18223    conftest$ac_exeext conftest.$ac_ext
18224    LDFLAGS=$save_LDFLAGS
18225    libdir=$save_libdir
18226
18227fi
18228
18229  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18230
18231  # This implies no fast_install, which is unacceptable.
18232  # Some rework will be needed to allow for fast_install
18233  # before this can be enabled.
18234  hardcode_into_libs=yes
18235
18236  # Ideally, we could use ldconfig to report *all* directores which are
18237  # searched for libraries, however this is still not possible.  Aside from not
18238  # being certain /sbin/ldconfig is available, command
18239  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18240  # even though it is searched at run-time.  Try to do the best guess by
18241  # appending ld.so.conf contents (and includes) to the search path.
18242  if test -f /etc/ld.so.conf; then
18243    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' ' '`
18244    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18245  fi
18246
18247  # We used to test for /lib/ld.so.1 and disable shared libraries on
18248  # powerpc, because MkLinux only supported shared libraries with the
18249  # GNU dynamic linker.  Since this was broken with cross compilers,
18250  # most powerpc-linux boxes support dynamic linking these days and
18251  # people can always --disable-shared, the test was removed, and we
18252  # assume the GNU/Linux dynamic linker is in use.
18253  dynamic_linker='GNU/Linux ld.so'
18254  ;;
18255
18256netbsd*)
18257  version_type=sunos
18258  need_lib_prefix=no
18259  need_version=no
18260  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18261    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18262    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18263    dynamic_linker='NetBSD (a.out) ld.so'
18264  else
18265    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18266    soname_spec='$libname$release$shared_ext$major'
18267    dynamic_linker='NetBSD ld.elf_so'
18268  fi
18269  shlibpath_var=LD_LIBRARY_PATH
18270  shlibpath_overrides_runpath=yes
18271  hardcode_into_libs=yes
18272  ;;
18273
18274newsos6)
18275  version_type=linux # correct to gnu/linux during the next big refactor
18276  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18277  shlibpath_var=LD_LIBRARY_PATH
18278  shlibpath_overrides_runpath=yes
18279  ;;
18280
18281*nto* | *qnx*)
18282  version_type=qnx
18283  need_lib_prefix=no
18284  need_version=no
18285  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18286  soname_spec='$libname$release$shared_ext$major'
18287  shlibpath_var=LD_LIBRARY_PATH
18288  shlibpath_overrides_runpath=no
18289  hardcode_into_libs=yes
18290  dynamic_linker='ldqnx.so'
18291  ;;
18292
18293openbsd* | bitrig*)
18294  version_type=sunos
18295  sys_lib_dlsearch_path_spec=/usr/lib
18296  need_lib_prefix=no
18297  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18298    need_version=no
18299  else
18300    need_version=yes
18301  fi
18302  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18303  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18304  shlibpath_var=LD_LIBRARY_PATH
18305  shlibpath_overrides_runpath=yes
18306  ;;
18307
18308os2*)
18309  libname_spec='$name'
18310  version_type=windows
18311  shrext_cmds=.dll
18312  need_version=no
18313  need_lib_prefix=no
18314  # OS/2 can only load a DLL with a base name of 8 characters or less.
18315  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18316    v=$($ECHO $release$versuffix | tr -d .-);
18317    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18318    $ECHO $n$v`$shared_ext'
18319  library_names_spec='${libname}_dll.$libext'
18320  dynamic_linker='OS/2 ld.exe'
18321  shlibpath_var=BEGINLIBPATH
18322  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18323  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18324  postinstall_cmds='base_file=`basename \$file`~
18325    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18326    dldir=$destdir/`dirname \$dlpath`~
18327    test -d \$dldir || mkdir -p \$dldir~
18328    $install_prog $dir/$dlname \$dldir/$dlname~
18329    chmod a+x \$dldir/$dlname~
18330    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18331      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18332    fi'
18333  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18334    dlpath=$dir/\$dldll~
18335    $RM \$dlpath'
18336  ;;
18337
18338osf3* | osf4* | osf5*)
18339  version_type=osf
18340  need_lib_prefix=no
18341  need_version=no
18342  soname_spec='$libname$release$shared_ext$major'
18343  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18344  shlibpath_var=LD_LIBRARY_PATH
18345  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18346  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18347  ;;
18348
18349rdos*)
18350  dynamic_linker=no
18351  ;;
18352
18353solaris*)
18354  version_type=linux # correct to gnu/linux during the next big refactor
18355  need_lib_prefix=no
18356  need_version=no
18357  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18358  soname_spec='$libname$release$shared_ext$major'
18359  shlibpath_var=LD_LIBRARY_PATH
18360  shlibpath_overrides_runpath=yes
18361  hardcode_into_libs=yes
18362  # ldd complains unless libraries are executable
18363  postinstall_cmds='chmod +x $lib'
18364  ;;
18365
18366sunos4*)
18367  version_type=sunos
18368  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18369  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18370  shlibpath_var=LD_LIBRARY_PATH
18371  shlibpath_overrides_runpath=yes
18372  if test yes = "$with_gnu_ld"; then
18373    need_lib_prefix=no
18374  fi
18375  need_version=yes
18376  ;;
18377
18378sysv4 | sysv4.3*)
18379  version_type=linux # correct to gnu/linux during the next big refactor
18380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18381  soname_spec='$libname$release$shared_ext$major'
18382  shlibpath_var=LD_LIBRARY_PATH
18383  case $host_vendor in
18384    sni)
18385      shlibpath_overrides_runpath=no
18386      need_lib_prefix=no
18387      runpath_var=LD_RUN_PATH
18388      ;;
18389    siemens)
18390      need_lib_prefix=no
18391      ;;
18392    motorola)
18393      need_lib_prefix=no
18394      need_version=no
18395      shlibpath_overrides_runpath=no
18396      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18397      ;;
18398  esac
18399  ;;
18400
18401sysv4*MP*)
18402  if test -d /usr/nec; then
18403    version_type=linux # correct to gnu/linux during the next big refactor
18404    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18405    soname_spec='$libname$shared_ext.$major'
18406    shlibpath_var=LD_LIBRARY_PATH
18407  fi
18408  ;;
18409
18410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18411  version_type=sco
18412  need_lib_prefix=no
18413  need_version=no
18414  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18415  soname_spec='$libname$release$shared_ext$major'
18416  shlibpath_var=LD_LIBRARY_PATH
18417  shlibpath_overrides_runpath=yes
18418  hardcode_into_libs=yes
18419  if test yes = "$with_gnu_ld"; then
18420    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18421  else
18422    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18423    case $host_os in
18424      sco3.2v5*)
18425        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18426	;;
18427    esac
18428  fi
18429  sys_lib_dlsearch_path_spec='/usr/lib'
18430  ;;
18431
18432tpf*)
18433  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18434  version_type=linux # correct to gnu/linux during the next big refactor
18435  need_lib_prefix=no
18436  need_version=no
18437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18438  shlibpath_var=LD_LIBRARY_PATH
18439  shlibpath_overrides_runpath=no
18440  hardcode_into_libs=yes
18441  ;;
18442
18443uts4*)
18444  version_type=linux # correct to gnu/linux during the next big refactor
18445  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18446  soname_spec='$libname$release$shared_ext$major'
18447  shlibpath_var=LD_LIBRARY_PATH
18448  ;;
18449
18450*)
18451  dynamic_linker=no
18452  ;;
18453esac
18454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18455printf "%s\n" "$dynamic_linker" >&6; }
18456test no = "$dynamic_linker" && can_build_shared=no
18457
18458variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18459if test yes = "$GCC"; then
18460  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18461fi
18462
18463if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18464  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18465fi
18466
18467if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18468  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18469fi
18470
18471# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18472configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18473
18474# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18475func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18476
18477# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18478configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18577printf %s "checking how to hardcode library paths into programs... " >&6; }
18578hardcode_action=
18579if test -n "$hardcode_libdir_flag_spec" ||
18580   test -n "$runpath_var" ||
18581   test yes = "$hardcode_automatic"; then
18582
18583  # We can hardcode non-existent directories.
18584  if test no != "$hardcode_direct" &&
18585     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18586     # have to relink, otherwise we might link with an installed library
18587     # when we should be linking with a yet-to-be-installed one
18588     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18589     test no != "$hardcode_minus_L"; then
18590    # Linking always hardcodes the temporary library directory.
18591    hardcode_action=relink
18592  else
18593    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18594    hardcode_action=immediate
18595  fi
18596else
18597  # We cannot hardcode anything, or else we can only hardcode existing
18598  # directories.
18599  hardcode_action=unsupported
18600fi
18601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18602printf "%s\n" "$hardcode_action" >&6; }
18603
18604if test relink = "$hardcode_action" ||
18605   test yes = "$inherit_rpath"; then
18606  # Fast installation is not supported
18607  enable_fast_install=no
18608elif test yes = "$shlibpath_overrides_runpath" ||
18609     test no = "$enable_shared"; then
18610  # Fast installation is not necessary
18611  enable_fast_install=needless
18612fi
18613
18614
18615
18616
18617
18618
18619  if test yes != "$enable_dlopen"; then
18620  enable_dlopen=unknown
18621  enable_dlopen_self=unknown
18622  enable_dlopen_self_static=unknown
18623else
18624  lt_cv_dlopen=no
18625  lt_cv_dlopen_libs=
18626
18627  case $host_os in
18628  beos*)
18629    lt_cv_dlopen=load_add_on
18630    lt_cv_dlopen_libs=
18631    lt_cv_dlopen_self=yes
18632    ;;
18633
18634  mingw* | pw32* | cegcc*)
18635    lt_cv_dlopen=LoadLibrary
18636    lt_cv_dlopen_libs=
18637    ;;
18638
18639  cygwin*)
18640    lt_cv_dlopen=dlopen
18641    lt_cv_dlopen_libs=
18642    ;;
18643
18644  darwin*)
18645    # if libdl is installed we need to link against it
18646    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18647printf %s "checking for dlopen in -ldl... " >&6; }
18648if test ${ac_cv_lib_dl_dlopen+y}
18649then :
18650  printf %s "(cached) " >&6
18651else $as_nop
18652  ac_check_lib_save_LIBS=$LIBS
18653LIBS="-ldl  $LIBS"
18654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655/* end confdefs.h.  */
18656
18657/* Override any GCC internal prototype to avoid an error.
18658   Use char because int might match the return type of a GCC
18659   builtin and then its argument prototype would still apply.  */
18660char dlopen ();
18661int
18662main (void)
18663{
18664return dlopen ();
18665  ;
18666  return 0;
18667}
18668_ACEOF
18669if ac_fn_c_try_link "$LINENO"
18670then :
18671  ac_cv_lib_dl_dlopen=yes
18672else $as_nop
18673  ac_cv_lib_dl_dlopen=no
18674fi
18675rm -f core conftest.err conftest.$ac_objext conftest.beam \
18676    conftest$ac_exeext conftest.$ac_ext
18677LIBS=$ac_check_lib_save_LIBS
18678fi
18679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18680printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18681if test "x$ac_cv_lib_dl_dlopen" = xyes
18682then :
18683  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18684else $as_nop
18685
18686    lt_cv_dlopen=dyld
18687    lt_cv_dlopen_libs=
18688    lt_cv_dlopen_self=yes
18689
18690fi
18691
18692    ;;
18693
18694  tpf*)
18695    # Don't try to run any link tests for TPF.  We know it's impossible
18696    # because TPF is a cross-compiler, and we know how we open DSOs.
18697    lt_cv_dlopen=dlopen
18698    lt_cv_dlopen_libs=
18699    lt_cv_dlopen_self=no
18700    ;;
18701
18702  *)
18703    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18704if test "x$ac_cv_func_shl_load" = xyes
18705then :
18706  lt_cv_dlopen=shl_load
18707else $as_nop
18708  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18709printf %s "checking for shl_load in -ldld... " >&6; }
18710if test ${ac_cv_lib_dld_shl_load+y}
18711then :
18712  printf %s "(cached) " >&6
18713else $as_nop
18714  ac_check_lib_save_LIBS=$LIBS
18715LIBS="-ldld  $LIBS"
18716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717/* end confdefs.h.  */
18718
18719/* Override any GCC internal prototype to avoid an error.
18720   Use char because int might match the return type of a GCC
18721   builtin and then its argument prototype would still apply.  */
18722char shl_load ();
18723int
18724main (void)
18725{
18726return shl_load ();
18727  ;
18728  return 0;
18729}
18730_ACEOF
18731if ac_fn_c_try_link "$LINENO"
18732then :
18733  ac_cv_lib_dld_shl_load=yes
18734else $as_nop
18735  ac_cv_lib_dld_shl_load=no
18736fi
18737rm -f core conftest.err conftest.$ac_objext conftest.beam \
18738    conftest$ac_exeext conftest.$ac_ext
18739LIBS=$ac_check_lib_save_LIBS
18740fi
18741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18742printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18743if test "x$ac_cv_lib_dld_shl_load" = xyes
18744then :
18745  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18746else $as_nop
18747  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18748if test "x$ac_cv_func_dlopen" = xyes
18749then :
18750  lt_cv_dlopen=dlopen
18751else $as_nop
18752  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18753printf %s "checking for dlopen in -ldl... " >&6; }
18754if test ${ac_cv_lib_dl_dlopen+y}
18755then :
18756  printf %s "(cached) " >&6
18757else $as_nop
18758  ac_check_lib_save_LIBS=$LIBS
18759LIBS="-ldl  $LIBS"
18760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761/* end confdefs.h.  */
18762
18763/* Override any GCC internal prototype to avoid an error.
18764   Use char because int might match the return type of a GCC
18765   builtin and then its argument prototype would still apply.  */
18766char dlopen ();
18767int
18768main (void)
18769{
18770return dlopen ();
18771  ;
18772  return 0;
18773}
18774_ACEOF
18775if ac_fn_c_try_link "$LINENO"
18776then :
18777  ac_cv_lib_dl_dlopen=yes
18778else $as_nop
18779  ac_cv_lib_dl_dlopen=no
18780fi
18781rm -f core conftest.err conftest.$ac_objext conftest.beam \
18782    conftest$ac_exeext conftest.$ac_ext
18783LIBS=$ac_check_lib_save_LIBS
18784fi
18785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18786printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18787if test "x$ac_cv_lib_dl_dlopen" = xyes
18788then :
18789  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18790else $as_nop
18791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18792printf %s "checking for dlopen in -lsvld... " >&6; }
18793if test ${ac_cv_lib_svld_dlopen+y}
18794then :
18795  printf %s "(cached) " >&6
18796else $as_nop
18797  ac_check_lib_save_LIBS=$LIBS
18798LIBS="-lsvld  $LIBS"
18799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18800/* end confdefs.h.  */
18801
18802/* Override any GCC internal prototype to avoid an error.
18803   Use char because int might match the return type of a GCC
18804   builtin and then its argument prototype would still apply.  */
18805char dlopen ();
18806int
18807main (void)
18808{
18809return dlopen ();
18810  ;
18811  return 0;
18812}
18813_ACEOF
18814if ac_fn_c_try_link "$LINENO"
18815then :
18816  ac_cv_lib_svld_dlopen=yes
18817else $as_nop
18818  ac_cv_lib_svld_dlopen=no
18819fi
18820rm -f core conftest.err conftest.$ac_objext conftest.beam \
18821    conftest$ac_exeext conftest.$ac_ext
18822LIBS=$ac_check_lib_save_LIBS
18823fi
18824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18825printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18826if test "x$ac_cv_lib_svld_dlopen" = xyes
18827then :
18828  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18829else $as_nop
18830  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18831printf %s "checking for dld_link in -ldld... " >&6; }
18832if test ${ac_cv_lib_dld_dld_link+y}
18833then :
18834  printf %s "(cached) " >&6
18835else $as_nop
18836  ac_check_lib_save_LIBS=$LIBS
18837LIBS="-ldld  $LIBS"
18838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18839/* end confdefs.h.  */
18840
18841/* Override any GCC internal prototype to avoid an error.
18842   Use char because int might match the return type of a GCC
18843   builtin and then its argument prototype would still apply.  */
18844char dld_link ();
18845int
18846main (void)
18847{
18848return dld_link ();
18849  ;
18850  return 0;
18851}
18852_ACEOF
18853if ac_fn_c_try_link "$LINENO"
18854then :
18855  ac_cv_lib_dld_dld_link=yes
18856else $as_nop
18857  ac_cv_lib_dld_dld_link=no
18858fi
18859rm -f core conftest.err conftest.$ac_objext conftest.beam \
18860    conftest$ac_exeext conftest.$ac_ext
18861LIBS=$ac_check_lib_save_LIBS
18862fi
18863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18864printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18865if test "x$ac_cv_lib_dld_dld_link" = xyes
18866then :
18867  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18868fi
18869
18870
18871fi
18872
18873
18874fi
18875
18876
18877fi
18878
18879
18880fi
18881
18882
18883fi
18884
18885    ;;
18886  esac
18887
18888  if test no = "$lt_cv_dlopen"; then
18889    enable_dlopen=no
18890  else
18891    enable_dlopen=yes
18892  fi
18893
18894  case $lt_cv_dlopen in
18895  dlopen)
18896    save_CPPFLAGS=$CPPFLAGS
18897    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18898
18899    save_LDFLAGS=$LDFLAGS
18900    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18901
18902    save_LIBS=$LIBS
18903    LIBS="$lt_cv_dlopen_libs $LIBS"
18904
18905    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18906printf %s "checking whether a program can dlopen itself... " >&6; }
18907if test ${lt_cv_dlopen_self+y}
18908then :
18909  printf %s "(cached) " >&6
18910else $as_nop
18911  	  if test yes = "$cross_compiling"; then :
18912  lt_cv_dlopen_self=cross
18913else
18914  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18915  lt_status=$lt_dlunknown
18916  cat > conftest.$ac_ext <<_LT_EOF
18917#line $LINENO "configure"
18918#include "confdefs.h"
18919
18920#if HAVE_DLFCN_H
18921#include <dlfcn.h>
18922#endif
18923
18924#include <stdio.h>
18925
18926#ifdef RTLD_GLOBAL
18927#  define LT_DLGLOBAL		RTLD_GLOBAL
18928#else
18929#  ifdef DL_GLOBAL
18930#    define LT_DLGLOBAL		DL_GLOBAL
18931#  else
18932#    define LT_DLGLOBAL		0
18933#  endif
18934#endif
18935
18936/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18937   find out it does not work in some platform. */
18938#ifndef LT_DLLAZY_OR_NOW
18939#  ifdef RTLD_LAZY
18940#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18941#  else
18942#    ifdef DL_LAZY
18943#      define LT_DLLAZY_OR_NOW		DL_LAZY
18944#    else
18945#      ifdef RTLD_NOW
18946#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18947#      else
18948#        ifdef DL_NOW
18949#          define LT_DLLAZY_OR_NOW	DL_NOW
18950#        else
18951#          define LT_DLLAZY_OR_NOW	0
18952#        endif
18953#      endif
18954#    endif
18955#  endif
18956#endif
18957
18958/* When -fvisibility=hidden is used, assume the code has been annotated
18959   correspondingly for the symbols needed.  */
18960#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18961int fnord () __attribute__((visibility("default")));
18962#endif
18963
18964int fnord () { return 42; }
18965int main ()
18966{
18967  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18968  int status = $lt_dlunknown;
18969
18970  if (self)
18971    {
18972      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18973      else
18974        {
18975	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18976          else puts (dlerror ());
18977	}
18978      /* dlclose (self); */
18979    }
18980  else
18981    puts (dlerror ());
18982
18983  return status;
18984}
18985_LT_EOF
18986  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18987  (eval $ac_link) 2>&5
18988  ac_status=$?
18989  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18990  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18991    (./conftest; exit; ) >&5 2>/dev/null
18992    lt_status=$?
18993    case x$lt_status in
18994      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18995      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18996      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18997    esac
18998  else :
18999    # compilation failed
19000    lt_cv_dlopen_self=no
19001  fi
19002fi
19003rm -fr conftest*
19004
19005
19006fi
19007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19008printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19009
19010    if test yes = "$lt_cv_dlopen_self"; then
19011      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19012      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19013printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19014if test ${lt_cv_dlopen_self_static+y}
19015then :
19016  printf %s "(cached) " >&6
19017else $as_nop
19018  	  if test yes = "$cross_compiling"; then :
19019  lt_cv_dlopen_self_static=cross
19020else
19021  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19022  lt_status=$lt_dlunknown
19023  cat > conftest.$ac_ext <<_LT_EOF
19024#line $LINENO "configure"
19025#include "confdefs.h"
19026
19027#if HAVE_DLFCN_H
19028#include <dlfcn.h>
19029#endif
19030
19031#include <stdio.h>
19032
19033#ifdef RTLD_GLOBAL
19034#  define LT_DLGLOBAL		RTLD_GLOBAL
19035#else
19036#  ifdef DL_GLOBAL
19037#    define LT_DLGLOBAL		DL_GLOBAL
19038#  else
19039#    define LT_DLGLOBAL		0
19040#  endif
19041#endif
19042
19043/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19044   find out it does not work in some platform. */
19045#ifndef LT_DLLAZY_OR_NOW
19046#  ifdef RTLD_LAZY
19047#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19048#  else
19049#    ifdef DL_LAZY
19050#      define LT_DLLAZY_OR_NOW		DL_LAZY
19051#    else
19052#      ifdef RTLD_NOW
19053#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19054#      else
19055#        ifdef DL_NOW
19056#          define LT_DLLAZY_OR_NOW	DL_NOW
19057#        else
19058#          define LT_DLLAZY_OR_NOW	0
19059#        endif
19060#      endif
19061#    endif
19062#  endif
19063#endif
19064
19065/* When -fvisibility=hidden is used, assume the code has been annotated
19066   correspondingly for the symbols needed.  */
19067#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19068int fnord () __attribute__((visibility("default")));
19069#endif
19070
19071int fnord () { return 42; }
19072int main ()
19073{
19074  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19075  int status = $lt_dlunknown;
19076
19077  if (self)
19078    {
19079      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19080      else
19081        {
19082	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19083          else puts (dlerror ());
19084	}
19085      /* dlclose (self); */
19086    }
19087  else
19088    puts (dlerror ());
19089
19090  return status;
19091}
19092_LT_EOF
19093  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19094  (eval $ac_link) 2>&5
19095  ac_status=$?
19096  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19097  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19098    (./conftest; exit; ) >&5 2>/dev/null
19099    lt_status=$?
19100    case x$lt_status in
19101      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19102      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19103      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19104    esac
19105  else :
19106    # compilation failed
19107    lt_cv_dlopen_self_static=no
19108  fi
19109fi
19110rm -fr conftest*
19111
19112
19113fi
19114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19115printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19116    fi
19117
19118    CPPFLAGS=$save_CPPFLAGS
19119    LDFLAGS=$save_LDFLAGS
19120    LIBS=$save_LIBS
19121    ;;
19122  esac
19123
19124  case $lt_cv_dlopen_self in
19125  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19126  *) enable_dlopen_self=unknown ;;
19127  esac
19128
19129  case $lt_cv_dlopen_self_static in
19130  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19131  *) enable_dlopen_self_static=unknown ;;
19132  esac
19133fi
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151striplib=
19152old_striplib=
19153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19154printf %s "checking whether stripping libraries is possible... " >&6; }
19155if test -z "$STRIP"; then
19156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19157printf "%s\n" "no" >&6; }
19158else
19159  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19160    old_striplib="$STRIP --strip-debug"
19161    striplib="$STRIP --strip-unneeded"
19162    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19163printf "%s\n" "yes" >&6; }
19164  else
19165    case $host_os in
19166    darwin*)
19167      # FIXME - insert some real tests, host_os isn't really good enough
19168      striplib="$STRIP -x"
19169      old_striplib="$STRIP -S"
19170      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19171printf "%s\n" "yes" >&6; }
19172      ;;
19173    freebsd*)
19174      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19175        old_striplib="$STRIP --strip-debug"
19176        striplib="$STRIP --strip-unneeded"
19177        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19178printf "%s\n" "yes" >&6; }
19179      else
19180        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19181printf "%s\n" "no" >&6; }
19182      fi
19183      ;;
19184    *)
19185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19186printf "%s\n" "no" >&6; }
19187      ;;
19188    esac
19189  fi
19190fi
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203  # Report what library types will actually be built
19204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19205printf %s "checking if libtool supports shared libraries... " >&6; }
19206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19207printf "%s\n" "$can_build_shared" >&6; }
19208
19209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19210printf %s "checking whether to build shared libraries... " >&6; }
19211  test no = "$can_build_shared" && enable_shared=no
19212
19213  # On AIX, shared libraries and static libraries use the same namespace, and
19214  # are all built from PIC.
19215  case $host_os in
19216  aix3*)
19217    test yes = "$enable_shared" && enable_static=no
19218    if test -n "$RANLIB"; then
19219      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19220      postinstall_cmds='$RANLIB $lib'
19221    fi
19222    ;;
19223
19224  aix[4-9]*)
19225    if test ia64 != "$host_cpu"; then
19226      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19227      yes,aix,yes) ;;			# shared object as lib.so file only
19228      yes,svr4,*) ;;			# shared object as lib.so archive member only
19229      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19230      esac
19231    fi
19232    ;;
19233  esac
19234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19235printf "%s\n" "$enable_shared" >&6; }
19236
19237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19238printf %s "checking whether to build static libraries... " >&6; }
19239  # Make sure either enable_shared or enable_static is yes.
19240  test yes = "$enable_shared" || enable_static=yes
19241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19242printf "%s\n" "$enable_static" >&6; }
19243
19244
19245
19246
19247fi
19248ac_ext=c
19249ac_cpp='$CPP $CPPFLAGS'
19250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19252ac_compiler_gnu=$ac_cv_c_compiler_gnu
19253
19254CC=$lt_save_CC
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270        ac_config_commands="$ac_config_commands libtool"
19271
19272
19273
19274
19275# Only expand once:
19276
19277
19278ac_ext=c
19279ac_cpp='$CPP $CPPFLAGS'
19280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19282ac_compiler_gnu=$ac_cv_c_compiler_gnu
19283if test -n "$ac_tool_prefix"; then
19284  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19285set dummy ${ac_tool_prefix}gcc; ac_word=$2
19286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19287printf %s "checking for $ac_word... " >&6; }
19288if test ${ac_cv_prog_CC+y}
19289then :
19290  printf %s "(cached) " >&6
19291else $as_nop
19292  if test -n "$CC"; then
19293  ac_cv_prog_CC="$CC" # Let the user override the test.
19294else
19295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19296for as_dir in $PATH
19297do
19298  IFS=$as_save_IFS
19299  case $as_dir in #(((
19300    '') as_dir=./ ;;
19301    */) ;;
19302    *) as_dir=$as_dir/ ;;
19303  esac
19304    for ac_exec_ext in '' $ac_executable_extensions; do
19305  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19306    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19307    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19308    break 2
19309  fi
19310done
19311  done
19312IFS=$as_save_IFS
19313
19314fi
19315fi
19316CC=$ac_cv_prog_CC
19317if test -n "$CC"; then
19318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19319printf "%s\n" "$CC" >&6; }
19320else
19321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322printf "%s\n" "no" >&6; }
19323fi
19324
19325
19326fi
19327if test -z "$ac_cv_prog_CC"; then
19328  ac_ct_CC=$CC
19329  # Extract the first word of "gcc", so it can be a program name with args.
19330set dummy gcc; ac_word=$2
19331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19332printf %s "checking for $ac_word... " >&6; }
19333if test ${ac_cv_prog_ac_ct_CC+y}
19334then :
19335  printf %s "(cached) " >&6
19336else $as_nop
19337  if test -n "$ac_ct_CC"; then
19338  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19339else
19340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19341for as_dir in $PATH
19342do
19343  IFS=$as_save_IFS
19344  case $as_dir in #(((
19345    '') as_dir=./ ;;
19346    */) ;;
19347    *) as_dir=$as_dir/ ;;
19348  esac
19349    for ac_exec_ext in '' $ac_executable_extensions; do
19350  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19351    ac_cv_prog_ac_ct_CC="gcc"
19352    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19353    break 2
19354  fi
19355done
19356  done
19357IFS=$as_save_IFS
19358
19359fi
19360fi
19361ac_ct_CC=$ac_cv_prog_ac_ct_CC
19362if test -n "$ac_ct_CC"; then
19363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19364printf "%s\n" "$ac_ct_CC" >&6; }
19365else
19366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367printf "%s\n" "no" >&6; }
19368fi
19369
19370  if test "x$ac_ct_CC" = x; then
19371    CC=""
19372  else
19373    case $cross_compiling:$ac_tool_warned in
19374yes:)
19375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19376printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19377ac_tool_warned=yes ;;
19378esac
19379    CC=$ac_ct_CC
19380  fi
19381else
19382  CC="$ac_cv_prog_CC"
19383fi
19384
19385if test -z "$CC"; then
19386          if test -n "$ac_tool_prefix"; then
19387    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19388set dummy ${ac_tool_prefix}cc; ac_word=$2
19389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19390printf %s "checking for $ac_word... " >&6; }
19391if test ${ac_cv_prog_CC+y}
19392then :
19393  printf %s "(cached) " >&6
19394else $as_nop
19395  if test -n "$CC"; then
19396  ac_cv_prog_CC="$CC" # Let the user override the test.
19397else
19398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19399for as_dir in $PATH
19400do
19401  IFS=$as_save_IFS
19402  case $as_dir in #(((
19403    '') as_dir=./ ;;
19404    */) ;;
19405    *) as_dir=$as_dir/ ;;
19406  esac
19407    for ac_exec_ext in '' $ac_executable_extensions; do
19408  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19409    ac_cv_prog_CC="${ac_tool_prefix}cc"
19410    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19411    break 2
19412  fi
19413done
19414  done
19415IFS=$as_save_IFS
19416
19417fi
19418fi
19419CC=$ac_cv_prog_CC
19420if test -n "$CC"; then
19421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19422printf "%s\n" "$CC" >&6; }
19423else
19424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425printf "%s\n" "no" >&6; }
19426fi
19427
19428
19429  fi
19430fi
19431if test -z "$CC"; then
19432  # Extract the first word of "cc", so it can be a program name with args.
19433set dummy cc; ac_word=$2
19434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19435printf %s "checking for $ac_word... " >&6; }
19436if test ${ac_cv_prog_CC+y}
19437then :
19438  printf %s "(cached) " >&6
19439else $as_nop
19440  if test -n "$CC"; then
19441  ac_cv_prog_CC="$CC" # Let the user override the test.
19442else
19443  ac_prog_rejected=no
19444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19445for as_dir in $PATH
19446do
19447  IFS=$as_save_IFS
19448  case $as_dir in #(((
19449    '') as_dir=./ ;;
19450    */) ;;
19451    *) as_dir=$as_dir/ ;;
19452  esac
19453    for ac_exec_ext in '' $ac_executable_extensions; do
19454  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19455    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19456       ac_prog_rejected=yes
19457       continue
19458     fi
19459    ac_cv_prog_CC="cc"
19460    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19461    break 2
19462  fi
19463done
19464  done
19465IFS=$as_save_IFS
19466
19467if test $ac_prog_rejected = yes; then
19468  # We found a bogon in the path, so make sure we never use it.
19469  set dummy $ac_cv_prog_CC
19470  shift
19471  if test $# != 0; then
19472    # We chose a different compiler from the bogus one.
19473    # However, it has the same basename, so the bogon will be chosen
19474    # first if we set CC to just the basename; use the full file name.
19475    shift
19476    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
19477  fi
19478fi
19479fi
19480fi
19481CC=$ac_cv_prog_CC
19482if test -n "$CC"; then
19483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19484printf "%s\n" "$CC" >&6; }
19485else
19486  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19487printf "%s\n" "no" >&6; }
19488fi
19489
19490
19491fi
19492if test -z "$CC"; then
19493  if test -n "$ac_tool_prefix"; then
19494  for ac_prog in cl.exe
19495  do
19496    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19497set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19499printf %s "checking for $ac_word... " >&6; }
19500if test ${ac_cv_prog_CC+y}
19501then :
19502  printf %s "(cached) " >&6
19503else $as_nop
19504  if test -n "$CC"; then
19505  ac_cv_prog_CC="$CC" # Let the user override the test.
19506else
19507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19508for as_dir in $PATH
19509do
19510  IFS=$as_save_IFS
19511  case $as_dir in #(((
19512    '') as_dir=./ ;;
19513    */) ;;
19514    *) as_dir=$as_dir/ ;;
19515  esac
19516    for ac_exec_ext in '' $ac_executable_extensions; do
19517  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19518    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19519    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19520    break 2
19521  fi
19522done
19523  done
19524IFS=$as_save_IFS
19525
19526fi
19527fi
19528CC=$ac_cv_prog_CC
19529if test -n "$CC"; then
19530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19531printf "%s\n" "$CC" >&6; }
19532else
19533  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534printf "%s\n" "no" >&6; }
19535fi
19536
19537
19538    test -n "$CC" && break
19539  done
19540fi
19541if test -z "$CC"; then
19542  ac_ct_CC=$CC
19543  for ac_prog in cl.exe
19544do
19545  # Extract the first word of "$ac_prog", so it can be a program name with args.
19546set dummy $ac_prog; ac_word=$2
19547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19548printf %s "checking for $ac_word... " >&6; }
19549if test ${ac_cv_prog_ac_ct_CC+y}
19550then :
19551  printf %s "(cached) " >&6
19552else $as_nop
19553  if test -n "$ac_ct_CC"; then
19554  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19555else
19556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557for as_dir in $PATH
19558do
19559  IFS=$as_save_IFS
19560  case $as_dir in #(((
19561    '') as_dir=./ ;;
19562    */) ;;
19563    *) as_dir=$as_dir/ ;;
19564  esac
19565    for ac_exec_ext in '' $ac_executable_extensions; do
19566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19567    ac_cv_prog_ac_ct_CC="$ac_prog"
19568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19569    break 2
19570  fi
19571done
19572  done
19573IFS=$as_save_IFS
19574
19575fi
19576fi
19577ac_ct_CC=$ac_cv_prog_ac_ct_CC
19578if test -n "$ac_ct_CC"; then
19579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19580printf "%s\n" "$ac_ct_CC" >&6; }
19581else
19582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19583printf "%s\n" "no" >&6; }
19584fi
19585
19586
19587  test -n "$ac_ct_CC" && break
19588done
19589
19590  if test "x$ac_ct_CC" = x; then
19591    CC=""
19592  else
19593    case $cross_compiling:$ac_tool_warned in
19594yes:)
19595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19596printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19597ac_tool_warned=yes ;;
19598esac
19599    CC=$ac_ct_CC
19600  fi
19601fi
19602
19603fi
19604if test -z "$CC"; then
19605  if test -n "$ac_tool_prefix"; then
19606  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
19607set dummy ${ac_tool_prefix}clang; ac_word=$2
19608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19609printf %s "checking for $ac_word... " >&6; }
19610if test ${ac_cv_prog_CC+y}
19611then :
19612  printf %s "(cached) " >&6
19613else $as_nop
19614  if test -n "$CC"; then
19615  ac_cv_prog_CC="$CC" # Let the user override the test.
19616else
19617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19618for as_dir in $PATH
19619do
19620  IFS=$as_save_IFS
19621  case $as_dir in #(((
19622    '') as_dir=./ ;;
19623    */) ;;
19624    *) as_dir=$as_dir/ ;;
19625  esac
19626    for ac_exec_ext in '' $ac_executable_extensions; do
19627  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19628    ac_cv_prog_CC="${ac_tool_prefix}clang"
19629    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19630    break 2
19631  fi
19632done
19633  done
19634IFS=$as_save_IFS
19635
19636fi
19637fi
19638CC=$ac_cv_prog_CC
19639if test -n "$CC"; then
19640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19641printf "%s\n" "$CC" >&6; }
19642else
19643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19644printf "%s\n" "no" >&6; }
19645fi
19646
19647
19648fi
19649if test -z "$ac_cv_prog_CC"; then
19650  ac_ct_CC=$CC
19651  # Extract the first word of "clang", so it can be a program name with args.
19652set dummy clang; ac_word=$2
19653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19654printf %s "checking for $ac_word... " >&6; }
19655if test ${ac_cv_prog_ac_ct_CC+y}
19656then :
19657  printf %s "(cached) " >&6
19658else $as_nop
19659  if test -n "$ac_ct_CC"; then
19660  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19661else
19662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19663for as_dir in $PATH
19664do
19665  IFS=$as_save_IFS
19666  case $as_dir in #(((
19667    '') as_dir=./ ;;
19668    */) ;;
19669    *) as_dir=$as_dir/ ;;
19670  esac
19671    for ac_exec_ext in '' $ac_executable_extensions; do
19672  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19673    ac_cv_prog_ac_ct_CC="clang"
19674    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19675    break 2
19676  fi
19677done
19678  done
19679IFS=$as_save_IFS
19680
19681fi
19682fi
19683ac_ct_CC=$ac_cv_prog_ac_ct_CC
19684if test -n "$ac_ct_CC"; then
19685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
19686printf "%s\n" "$ac_ct_CC" >&6; }
19687else
19688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689printf "%s\n" "no" >&6; }
19690fi
19691
19692  if test "x$ac_ct_CC" = x; then
19693    CC=""
19694  else
19695    case $cross_compiling:$ac_tool_warned in
19696yes:)
19697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19698printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19699ac_tool_warned=yes ;;
19700esac
19701    CC=$ac_ct_CC
19702  fi
19703else
19704  CC="$ac_cv_prog_CC"
19705fi
19706
19707fi
19708
19709
19710test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19711printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19712as_fn_error $? "no acceptable C compiler found in \$PATH
19713See \`config.log' for more details" "$LINENO" 5; }
19714
19715# Provide some information about the compiler.
19716printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19717set X $ac_compile
19718ac_compiler=$2
19719for ac_option in --version -v -V -qversion -version; do
19720  { { ac_try="$ac_compiler $ac_option >&5"
19721case "(($ac_try" in
19722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723  *) ac_try_echo=$ac_try;;
19724esac
19725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19726printf "%s\n" "$ac_try_echo"; } >&5
19727  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19728  ac_status=$?
19729  if test -s conftest.err; then
19730    sed '10a\
19731... rest of stderr output deleted ...
19732         10q' conftest.err >conftest.er1
19733    cat conftest.er1 >&5
19734  fi
19735  rm -f conftest.er1 conftest.err
19736  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19737  test $ac_status = 0; }
19738done
19739
19740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
19741printf %s "checking whether the compiler supports GNU C... " >&6; }
19742if test ${ac_cv_c_compiler_gnu+y}
19743then :
19744  printf %s "(cached) " >&6
19745else $as_nop
19746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19747/* end confdefs.h.  */
19748
19749int
19750main (void)
19751{
19752#ifndef __GNUC__
19753       choke me
19754#endif
19755
19756  ;
19757  return 0;
19758}
19759_ACEOF
19760if ac_fn_c_try_compile "$LINENO"
19761then :
19762  ac_compiler_gnu=yes
19763else $as_nop
19764  ac_compiler_gnu=no
19765fi
19766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19767ac_cv_c_compiler_gnu=$ac_compiler_gnu
19768
19769fi
19770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19771printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
19772ac_compiler_gnu=$ac_cv_c_compiler_gnu
19773
19774if test $ac_compiler_gnu = yes; then
19775  GCC=yes
19776else
19777  GCC=
19778fi
19779ac_test_CFLAGS=${CFLAGS+y}
19780ac_save_CFLAGS=$CFLAGS
19781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19782printf %s "checking whether $CC accepts -g... " >&6; }
19783if test ${ac_cv_prog_cc_g+y}
19784then :
19785  printf %s "(cached) " >&6
19786else $as_nop
19787  ac_save_c_werror_flag=$ac_c_werror_flag
19788   ac_c_werror_flag=yes
19789   ac_cv_prog_cc_g=no
19790   CFLAGS="-g"
19791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19792/* end confdefs.h.  */
19793
19794int
19795main (void)
19796{
19797
19798  ;
19799  return 0;
19800}
19801_ACEOF
19802if ac_fn_c_try_compile "$LINENO"
19803then :
19804  ac_cv_prog_cc_g=yes
19805else $as_nop
19806  CFLAGS=""
19807      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808/* end confdefs.h.  */
19809
19810int
19811main (void)
19812{
19813
19814  ;
19815  return 0;
19816}
19817_ACEOF
19818if ac_fn_c_try_compile "$LINENO"
19819then :
19820
19821else $as_nop
19822  ac_c_werror_flag=$ac_save_c_werror_flag
19823	 CFLAGS="-g"
19824	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825/* end confdefs.h.  */
19826
19827int
19828main (void)
19829{
19830
19831  ;
19832  return 0;
19833}
19834_ACEOF
19835if ac_fn_c_try_compile "$LINENO"
19836then :
19837  ac_cv_prog_cc_g=yes
19838fi
19839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19840fi
19841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19842fi
19843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19844   ac_c_werror_flag=$ac_save_c_werror_flag
19845fi
19846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19847printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
19848if test $ac_test_CFLAGS; then
19849  CFLAGS=$ac_save_CFLAGS
19850elif test $ac_cv_prog_cc_g = yes; then
19851  if test "$GCC" = yes; then
19852    CFLAGS="-g -O2"
19853  else
19854    CFLAGS="-g"
19855  fi
19856else
19857  if test "$GCC" = yes; then
19858    CFLAGS="-O2"
19859  else
19860    CFLAGS=
19861  fi
19862fi
19863ac_prog_cc_stdc=no
19864if test x$ac_prog_cc_stdc = xno
19865then :
19866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
19867printf %s "checking for $CC option to enable C11 features... " >&6; }
19868if test ${ac_cv_prog_cc_c11+y}
19869then :
19870  printf %s "(cached) " >&6
19871else $as_nop
19872  ac_cv_prog_cc_c11=no
19873ac_save_CC=$CC
19874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19875/* end confdefs.h.  */
19876$ac_c_conftest_c11_program
19877_ACEOF
19878for ac_arg in '' -std=gnu11
19879do
19880  CC="$ac_save_CC $ac_arg"
19881  if ac_fn_c_try_compile "$LINENO"
19882then :
19883  ac_cv_prog_cc_c11=$ac_arg
19884fi
19885rm -f core conftest.err conftest.$ac_objext conftest.beam
19886  test "x$ac_cv_prog_cc_c11" != "xno" && break
19887done
19888rm -f conftest.$ac_ext
19889CC=$ac_save_CC
19890fi
19891
19892if test "x$ac_cv_prog_cc_c11" = xno
19893then :
19894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19895printf "%s\n" "unsupported" >&6; }
19896else $as_nop
19897  if test "x$ac_cv_prog_cc_c11" = x
19898then :
19899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19900printf "%s\n" "none needed" >&6; }
19901else $as_nop
19902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
19903printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
19904     CC="$CC $ac_cv_prog_cc_c11"
19905fi
19906  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
19907  ac_prog_cc_stdc=c11
19908fi
19909fi
19910if test x$ac_prog_cc_stdc = xno
19911then :
19912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
19913printf %s "checking for $CC option to enable C99 features... " >&6; }
19914if test ${ac_cv_prog_cc_c99+y}
19915then :
19916  printf %s "(cached) " >&6
19917else $as_nop
19918  ac_cv_prog_cc_c99=no
19919ac_save_CC=$CC
19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921/* end confdefs.h.  */
19922$ac_c_conftest_c99_program
19923_ACEOF
19924for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
19925do
19926  CC="$ac_save_CC $ac_arg"
19927  if ac_fn_c_try_compile "$LINENO"
19928then :
19929  ac_cv_prog_cc_c99=$ac_arg
19930fi
19931rm -f core conftest.err conftest.$ac_objext conftest.beam
19932  test "x$ac_cv_prog_cc_c99" != "xno" && break
19933done
19934rm -f conftest.$ac_ext
19935CC=$ac_save_CC
19936fi
19937
19938if test "x$ac_cv_prog_cc_c99" = xno
19939then :
19940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19941printf "%s\n" "unsupported" >&6; }
19942else $as_nop
19943  if test "x$ac_cv_prog_cc_c99" = x
19944then :
19945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19946printf "%s\n" "none needed" >&6; }
19947else $as_nop
19948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
19949printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
19950     CC="$CC $ac_cv_prog_cc_c99"
19951fi
19952  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
19953  ac_prog_cc_stdc=c99
19954fi
19955fi
19956if test x$ac_prog_cc_stdc = xno
19957then :
19958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
19959printf %s "checking for $CC option to enable C89 features... " >&6; }
19960if test ${ac_cv_prog_cc_c89+y}
19961then :
19962  printf %s "(cached) " >&6
19963else $as_nop
19964  ac_cv_prog_cc_c89=no
19965ac_save_CC=$CC
19966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19967/* end confdefs.h.  */
19968$ac_c_conftest_c89_program
19969_ACEOF
19970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19971do
19972  CC="$ac_save_CC $ac_arg"
19973  if ac_fn_c_try_compile "$LINENO"
19974then :
19975  ac_cv_prog_cc_c89=$ac_arg
19976fi
19977rm -f core conftest.err conftest.$ac_objext conftest.beam
19978  test "x$ac_cv_prog_cc_c89" != "xno" && break
19979done
19980rm -f conftest.$ac_ext
19981CC=$ac_save_CC
19982fi
19983
19984if test "x$ac_cv_prog_cc_c89" = xno
19985then :
19986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
19987printf "%s\n" "unsupported" >&6; }
19988else $as_nop
19989  if test "x$ac_cv_prog_cc_c89" = x
19990then :
19991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
19992printf "%s\n" "none needed" >&6; }
19993else $as_nop
19994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
19995printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
19996     CC="$CC $ac_cv_prog_cc_c89"
19997fi
19998  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
19999  ac_prog_cc_stdc=c89
20000fi
20001fi
20002
20003ac_ext=c
20004ac_cpp='$CPP $CPPFLAGS'
20005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20007ac_compiler_gnu=$ac_cv_c_compiler_gnu
20008
20009
20010  ac_ext=c
20011ac_cpp='$CPP $CPPFLAGS'
20012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20014ac_compiler_gnu=$ac_cv_c_compiler_gnu
20015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
20016printf %s "checking whether $CC understands -c and -o together... " >&6; }
20017if test ${am_cv_prog_cc_c_o+y}
20018then :
20019  printf %s "(cached) " >&6
20020else $as_nop
20021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022/* end confdefs.h.  */
20023
20024int
20025main (void)
20026{
20027
20028  ;
20029  return 0;
20030}
20031_ACEOF
20032  # Make sure it works both with $CC and with simple cc.
20033  # Following AC_PROG_CC_C_O, we do the test twice because some
20034  # compilers refuse to overwrite an existing .o file with -o,
20035  # though they will create one.
20036  am_cv_prog_cc_c_o=yes
20037  for am_i in 1 2; do
20038    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
20039   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
20040   ac_status=$?
20041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); } \
20043         && test -f conftest2.$ac_objext; then
20044      : OK
20045    else
20046      am_cv_prog_cc_c_o=no
20047      break
20048    fi
20049  done
20050  rm -f core conftest*
20051  unset am_i
20052fi
20053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
20054printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
20055if test "$am_cv_prog_cc_c_o" != yes; then
20056   # Losing compiler, so override with the script.
20057   # FIXME: It is wrong to rewrite CC.
20058   # But if we don't then we get into trouble of one sort or another.
20059   # A longer-term fix would be to have automake use am__CC in this case,
20060   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20061   CC="$am_aux_dir/compile $CC"
20062fi
20063ac_ext=c
20064ac_cpp='$CPP $CPPFLAGS'
20065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20067ac_compiler_gnu=$ac_cv_c_compiler_gnu
20068
20069
20070depcc="$CC"   am_compiler_list=
20071
20072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
20073printf %s "checking dependency style of $depcc... " >&6; }
20074if test ${am_cv_CC_dependencies_compiler_type+y}
20075then :
20076  printf %s "(cached) " >&6
20077else $as_nop
20078  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20079  # We make a subdir and do the tests there.  Otherwise we can end up
20080  # making bogus files that we don't know about and never remove.  For
20081  # instance it was reported that on HP-UX the gcc test will end up
20082  # making a dummy file named 'D' -- because '-MD' means "put the output
20083  # in D".
20084  rm -rf conftest.dir
20085  mkdir conftest.dir
20086  # Copy depcomp to subdir because otherwise we won't find it if we're
20087  # using a relative directory.
20088  cp "$am_depcomp" conftest.dir
20089  cd conftest.dir
20090  # We will build objects and dependencies in a subdirectory because
20091  # it helps to detect inapplicable dependency modes.  For instance
20092  # both Tru64's cc and ICC support -MD to output dependencies as a
20093  # side effect of compilation, but ICC will put the dependencies in
20094  # the current directory while Tru64 will put them in the object
20095  # directory.
20096  mkdir sub
20097
20098  am_cv_CC_dependencies_compiler_type=none
20099  if test "$am_compiler_list" = ""; then
20100     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20101  fi
20102  am__universal=false
20103  case " $depcc " in #(
20104     *\ -arch\ *\ -arch\ *) am__universal=true ;;
20105     esac
20106
20107  for depmode in $am_compiler_list; do
20108    # Setup a source with many dependencies, because some compilers
20109    # like to wrap large dependency lists on column 80 (with \), and
20110    # we should not choose a depcomp mode which is confused by this.
20111    #
20112    # We need to recreate these files for each test, as the compiler may
20113    # overwrite some of them when testing with obscure command lines.
20114    # This happens at least with the AIX C compiler.
20115    : > sub/conftest.c
20116    for i in 1 2 3 4 5 6; do
20117      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20118      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
20119      # Solaris 10 /bin/sh.
20120      echo '/* dummy */' > sub/conftst$i.h
20121    done
20122    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20123
20124    # We check with '-c' and '-o' for the sake of the "dashmstdout"
20125    # mode.  It turns out that the SunPro C++ compiler does not properly
20126    # handle '-M -o', and we need to detect this.  Also, some Intel
20127    # versions had trouble with output in subdirs.
20128    am__obj=sub/conftest.${OBJEXT-o}
20129    am__minus_obj="-o $am__obj"
20130    case $depmode in
20131    gcc)
20132      # This depmode causes a compiler race in universal mode.
20133      test "$am__universal" = false || continue
20134      ;;
20135    nosideeffect)
20136      # After this tag, mechanisms are not by side-effect, so they'll
20137      # only be used when explicitly requested.
20138      if test "x$enable_dependency_tracking" = xyes; then
20139	continue
20140      else
20141	break
20142      fi
20143      ;;
20144    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
20145      # This compiler won't grok '-c -o', but also, the minuso test has
20146      # not run yet.  These depmodes are late enough in the game, and
20147      # so weak that their functioning should not be impacted.
20148      am__obj=conftest.${OBJEXT-o}
20149      am__minus_obj=
20150      ;;
20151    none) break ;;
20152    esac
20153    if depmode=$depmode \
20154       source=sub/conftest.c object=$am__obj \
20155       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20156       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20157         >/dev/null 2>conftest.err &&
20158       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20159       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20160       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20161       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20162      # icc doesn't choke on unknown options, it will just issue warnings
20163      # or remarks (even with -Werror).  So we grep stderr for any message
20164      # that says an option was ignored or not supported.
20165      # When given -MP, icc 7.0 and 7.1 complain thusly:
20166      #   icc: Command line warning: ignoring option '-M'; no argument required
20167      # The diagnosis changed in icc 8.0:
20168      #   icc: Command line remark: option '-MP' not supported
20169      if (grep 'ignoring option' conftest.err ||
20170          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20171        am_cv_CC_dependencies_compiler_type=$depmode
20172        break
20173      fi
20174    fi
20175  done
20176
20177  cd ..
20178  rm -rf conftest.dir
20179else
20180  am_cv_CC_dependencies_compiler_type=none
20181fi
20182
20183fi
20184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
20185printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
20186CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20187
20188 if
20189  test "x$enable_dependency_tracking" != xno \
20190  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20191  am__fastdepCC_TRUE=
20192  am__fastdepCC_FALSE='#'
20193else
20194  am__fastdepCC_TRUE='#'
20195  am__fastdepCC_FALSE=
20196fi
20197
20198
20199
20200
20201
20202
20203# Check whether --with-xorg-module-dir was given.
20204if test ${with_xorg_module_dir+y}
20205then :
20206  withval=$with_xorg_module_dir; moduledir="$withval"
20207else $as_nop
20208  moduledir="$libdir/xorg/modules"
20209fi
20210
20211inputdir=${moduledir}/input
20212
20213
20214# Checks for extensions
20215
20216
20217	SAVE_CFLAGS="$CFLAGS"
20218	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20219	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220/* end confdefs.h.  */
20221
20222#include "xorg-server.h"
20223#if !defined RANDR
20224#error RANDR not defined
20225#endif
20226
20227int
20228main (void)
20229{
20230
20231  ;
20232  return 0;
20233}
20234_ACEOF
20235if ac_fn_c_try_compile "$LINENO"
20236then :
20237  _EXT_CHECK=yes
20238else $as_nop
20239  _EXT_CHECK=no
20240fi
20241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20242	CFLAGS="$SAVE_CFLAGS"
20243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
20244printf %s "checking if RANDR is defined... " >&6; }
20245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20246printf "%s\n" "$_EXT_CHECK" >&6; }
20247	if test "$_EXT_CHECK" != no; then
20248		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20249	fi
20250
20251
20252
20253	SAVE_CFLAGS="$CFLAGS"
20254	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
20255	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256/* end confdefs.h.  */
20257
20258#include "xorg-server.h"
20259#if !defined XINPUT
20260#error XINPUT not defined
20261#endif
20262
20263int
20264main (void)
20265{
20266
20267  ;
20268  return 0;
20269}
20270_ACEOF
20271if ac_fn_c_try_compile "$LINENO"
20272then :
20273  _EXT_CHECK=yes
20274else $as_nop
20275  _EXT_CHECK=no
20276fi
20277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20278	CFLAGS="$SAVE_CFLAGS"
20279	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XINPUT is defined" >&5
20280printf %s "checking if XINPUT is defined... " >&6; }
20281	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
20282printf "%s\n" "$_EXT_CHECK" >&6; }
20283	if test "$_EXT_CHECK" != no; then
20284		REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
20285	fi
20286
20287
20288# Checks for pkg-config packages
20289
20290pkg_failed=no
20291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
20292printf %s "checking for XORG... " >&6; }
20293
20294if test -n "$XORG_CFLAGS"; then
20295    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
20296 elif test -n "$PKG_CONFIG"; then
20297    if test -n "$PKG_CONFIG" && \
20298    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
20299  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
20300  ac_status=$?
20301  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20302  test $ac_status = 0; }; then
20303  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
20304		      test "x$?" != "x0" && pkg_failed=yes
20305else
20306  pkg_failed=yes
20307fi
20308 else
20309    pkg_failed=untried
20310fi
20311if test -n "$XORG_LIBS"; then
20312    pkg_cv_XORG_LIBS="$XORG_LIBS"
20313 elif test -n "$PKG_CONFIG"; then
20314    if test -n "$PKG_CONFIG" && \
20315    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10.0 xproto \$REQUIRED_MODULES\""; } >&5
20316  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES") 2>&5
20317  ac_status=$?
20318  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20319  test $ac_status = 0; }; then
20320  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>/dev/null`
20321		      test "x$?" != "x0" && pkg_failed=yes
20322else
20323  pkg_failed=yes
20324fi
20325 else
20326    pkg_failed=untried
20327fi
20328
20329
20330
20331if test $pkg_failed = yes; then
20332   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20333printf "%s\n" "no" >&6; }
20334
20335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20336        _pkg_short_errors_supported=yes
20337else
20338        _pkg_short_errors_supported=no
20339fi
20340        if test $_pkg_short_errors_supported = yes; then
20341	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
20342        else
20343	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10.0 xproto $REQUIRED_MODULES" 2>&1`
20344        fi
20345	# Put the nasty error message in config.log where it belongs
20346	echo "$XORG_PKG_ERRORS" >&5
20347
20348	as_fn_error $? "Package requirements (xorg-server >= 1.10.0 xproto $REQUIRED_MODULES) were not met:
20349
20350$XORG_PKG_ERRORS
20351
20352Consider adjusting the PKG_CONFIG_PATH environment variable if you
20353installed software in a non-standard prefix.
20354
20355Alternatively, you may set the environment variables XORG_CFLAGS
20356and XORG_LIBS to avoid the need to call pkg-config.
20357See the pkg-config man page for more details." "$LINENO" 5
20358elif test $pkg_failed = untried; then
20359     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20360printf "%s\n" "no" >&6; }
20361	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20362printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20363as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20364is in your PATH or set the PKG_CONFIG environment variable to the full
20365path to pkg-config.
20366
20367Alternatively, you may set the environment variables XORG_CFLAGS
20368and XORG_LIBS to avoid the need to call pkg-config.
20369See the pkg-config man page for more details.
20370
20371To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20372See \`config.log' for more details" "$LINENO" 5; }
20373else
20374	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20375	XORG_LIBS=$pkg_cv_XORG_LIBS
20376        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20377printf "%s\n" "yes" >&6; }
20378
20379fi
20380sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20381XORG_CFLAGS="$CWARNFLAGS $XORG_CFLAGS"
20382
20383# Checks for libraries.
20384
20385# Checks for header files.
20386# Autoupdate added the next two lines to ensure that your configure
20387# script's behavior did not change.  They are probably safe to remove.
20388
20389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
20390printf %s "checking for egrep... " >&6; }
20391if test ${ac_cv_path_EGREP+y}
20392then :
20393  printf %s "(cached) " >&6
20394else $as_nop
20395  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
20396   then ac_cv_path_EGREP="$GREP -E"
20397   else
20398     if test -z "$EGREP"; then
20399  ac_path_EGREP_found=false
20400  # Loop through the user's path and test for each of PROGNAME-LIST
20401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
20403do
20404  IFS=$as_save_IFS
20405  case $as_dir in #(((
20406    '') as_dir=./ ;;
20407    */) ;;
20408    *) as_dir=$as_dir/ ;;
20409  esac
20410    for ac_prog in egrep
20411   do
20412    for ac_exec_ext in '' $ac_executable_extensions; do
20413      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
20414      as_fn_executable_p "$ac_path_EGREP" || continue
20415# Check for GNU ac_path_EGREP and select it if it is found.
20416  # Check for GNU $ac_path_EGREP
20417case `"$ac_path_EGREP" --version 2>&1` in
20418*GNU*)
20419  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
20420*)
20421  ac_count=0
20422  printf %s 0123456789 >"conftest.in"
20423  while :
20424  do
20425    cat "conftest.in" "conftest.in" >"conftest.tmp"
20426    mv "conftest.tmp" "conftest.in"
20427    cp "conftest.in" "conftest.nl"
20428    printf "%s\n" 'EGREP' >> "conftest.nl"
20429    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
20430    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
20431    as_fn_arith $ac_count + 1 && ac_count=$as_val
20432    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
20433      # Best one so far, save it but keep looking for a better one
20434      ac_cv_path_EGREP="$ac_path_EGREP"
20435      ac_path_EGREP_max=$ac_count
20436    fi
20437    # 10*(2^10) chars as input seems more than enough
20438    test $ac_count -gt 10 && break
20439  done
20440  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
20441esac
20442
20443      $ac_path_EGREP_found && break 3
20444    done
20445  done
20446  done
20447IFS=$as_save_IFS
20448  if test -z "$ac_cv_path_EGREP"; then
20449    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
20450  fi
20451else
20452  ac_cv_path_EGREP=$EGREP
20453fi
20454
20455   fi
20456fi
20457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
20458printf "%s\n" "$ac_cv_path_EGREP" >&6; }
20459 EGREP="$ac_cv_path_EGREP"
20460
20461
20462
20463
20464DRIVER_NAME=elographics
20465
20466
20467
20468ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20469
20470cat >confcache <<\_ACEOF
20471# This file is a shell script that caches the results of configure
20472# tests run on this system so they can be shared between configure
20473# scripts and configure runs, see configure's option --config-cache.
20474# It is not useful on other systems.  If it contains results you don't
20475# want to keep, you may remove or edit it.
20476#
20477# config.status only pays attention to the cache file if you give it
20478# the --recheck option to rerun configure.
20479#
20480# `ac_cv_env_foo' variables (set or unset) will be overridden when
20481# loading this file, other *unset* `ac_cv_foo' will be assigned the
20482# following values.
20483
20484_ACEOF
20485
20486# The following way of writing the cache mishandles newlines in values,
20487# but we know of no workaround that is simple, portable, and efficient.
20488# So, we kill variables containing newlines.
20489# Ultrix sh set writes to stderr and can't be redirected directly,
20490# and sets the high bit in the cache file unless we assign to the vars.
20491(
20492  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20493    eval ac_val=\$$ac_var
20494    case $ac_val in #(
20495    *${as_nl}*)
20496      case $ac_var in #(
20497      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20498printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20499      esac
20500      case $ac_var in #(
20501      _ | IFS | as_nl) ;; #(
20502      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20503      *) { eval $ac_var=; unset $ac_var;} ;;
20504      esac ;;
20505    esac
20506  done
20507
20508  (set) 2>&1 |
20509    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20510    *${as_nl}ac_space=\ *)
20511      # `set' does not quote correctly, so add quotes: double-quote
20512      # substitution turns \\\\ into \\, and sed turns \\ into \.
20513      sed -n \
20514	"s/'/'\\\\''/g;
20515	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20516      ;; #(
20517    *)
20518      # `set' quotes correctly as required by POSIX, so do not add quotes.
20519      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20520      ;;
20521    esac |
20522    sort
20523) |
20524  sed '
20525     /^ac_cv_env_/b end
20526     t clear
20527     :clear
20528     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20529     t end
20530     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20531     :end' >>confcache
20532if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20533  if test -w "$cache_file"; then
20534    if test "x$cache_file" != "x/dev/null"; then
20535      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20536printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20537      if test ! -f "$cache_file" || test -h "$cache_file"; then
20538	cat confcache >"$cache_file"
20539      else
20540        case $cache_file in #(
20541        */* | ?:*)
20542	  mv -f confcache "$cache_file"$$ &&
20543	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20544        *)
20545	  mv -f confcache "$cache_file" ;;
20546	esac
20547      fi
20548    fi
20549  else
20550    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20551printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20552  fi
20553fi
20554rm -f confcache
20555
20556test "x$prefix" = xNONE && prefix=$ac_default_prefix
20557# Let make expand exec_prefix.
20558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20559
20560DEFS=-DHAVE_CONFIG_H
20561
20562ac_libobjs=
20563ac_ltlibobjs=
20564U=
20565for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20566  # 1. Remove the extension, and $U if already installed.
20567  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20568  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20569  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20570  #    will be set to the directory where LIBOBJS objects are built.
20571  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20572  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20573done
20574LIBOBJS=$ac_libobjs
20575
20576LTLIBOBJS=$ac_ltlibobjs
20577
20578
20579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20580printf %s "checking that generated files are newer than configure... " >&6; }
20581   if test -n "$am_sleep_pid"; then
20582     # Hide warnings about reused PIDs.
20583     wait $am_sleep_pid 2>/dev/null
20584   fi
20585   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20586printf "%s\n" "done" >&6; }
20587 if test -n "$EXEEXT"; then
20588  am__EXEEXT_TRUE=
20589  am__EXEEXT_FALSE='#'
20590else
20591  am__EXEEXT_TRUE='#'
20592  am__EXEEXT_FALSE=
20593fi
20594
20595if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20596  as_fn_error $? "conditional \"AMDEP\" was never defined.
20597Usually this means the macro was only invoked conditionally." "$LINENO" 5
20598fi
20599if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20600  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20601Usually this means the macro was only invoked conditionally." "$LINENO" 5
20602fi
20603if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20604  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20605Usually this means the macro was only invoked conditionally." "$LINENO" 5
20606fi
20607
20608: "${CONFIG_STATUS=./config.status}"
20609ac_write_fail=0
20610ac_clean_files_save=$ac_clean_files
20611ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20613printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20614as_write_fail=0
20615cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20616#! $SHELL
20617# Generated by $as_me.
20618# Run this file to recreate the current configuration.
20619# Compiler output produced by configure, useful for debugging
20620# configure, is in config.log if it exists.
20621
20622debug=false
20623ac_cs_recheck=false
20624ac_cs_silent=false
20625
20626SHELL=\${CONFIG_SHELL-$SHELL}
20627export SHELL
20628_ASEOF
20629cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20630## -------------------- ##
20631## M4sh Initialization. ##
20632## -------------------- ##
20633
20634# Be more Bourne compatible
20635DUALCASE=1; export DUALCASE # for MKS sh
20636as_nop=:
20637if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20638then :
20639  emulate sh
20640  NULLCMD=:
20641  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20642  # is contrary to our usage.  Disable this feature.
20643  alias -g '${1+"$@"}'='"$@"'
20644  setopt NO_GLOB_SUBST
20645else $as_nop
20646  case `(set -o) 2>/dev/null` in #(
20647  *posix*) :
20648    set -o posix ;; #(
20649  *) :
20650     ;;
20651esac
20652fi
20653
20654
20655
20656# Reset variables that may have inherited troublesome values from
20657# the environment.
20658
20659# IFS needs to be set, to space, tab, and newline, in precisely that order.
20660# (If _AS_PATH_WALK were called with IFS unset, it would have the
20661# side effect of setting IFS to empty, thus disabling word splitting.)
20662# Quoting is to prevent editors from complaining about space-tab.
20663as_nl='
20664'
20665export as_nl
20666IFS=" ""	$as_nl"
20667
20668PS1='$ '
20669PS2='> '
20670PS4='+ '
20671
20672# Ensure predictable behavior from utilities with locale-dependent output.
20673LC_ALL=C
20674export LC_ALL
20675LANGUAGE=C
20676export LANGUAGE
20677
20678# We cannot yet rely on "unset" to work, but we need these variables
20679# to be unset--not just set to an empty or harmless value--now, to
20680# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20681# also avoids known problems related to "unset" and subshell syntax
20682# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20683for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20684do eval test \${$as_var+y} \
20685  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20686done
20687
20688# Ensure that fds 0, 1, and 2 are open.
20689if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20690if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20691if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20692
20693# The user is always right.
20694if ${PATH_SEPARATOR+false} :; then
20695  PATH_SEPARATOR=:
20696  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20697    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20698      PATH_SEPARATOR=';'
20699  }
20700fi
20701
20702
20703# Find who we are.  Look in the path if we contain no directory separator.
20704as_myself=
20705case $0 in #((
20706  *[\\/]* ) as_myself=$0 ;;
20707  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20708for as_dir in $PATH
20709do
20710  IFS=$as_save_IFS
20711  case $as_dir in #(((
20712    '') as_dir=./ ;;
20713    */) ;;
20714    *) as_dir=$as_dir/ ;;
20715  esac
20716    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20717  done
20718IFS=$as_save_IFS
20719
20720     ;;
20721esac
20722# We did not find ourselves, most probably we were run as `sh COMMAND'
20723# in which case we are not to be found in the path.
20724if test "x$as_myself" = x; then
20725  as_myself=$0
20726fi
20727if test ! -f "$as_myself"; then
20728  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20729  exit 1
20730fi
20731
20732
20733
20734# as_fn_error STATUS ERROR [LINENO LOG_FD]
20735# ----------------------------------------
20736# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20737# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20738# script with STATUS, using 1 if that was 0.
20739as_fn_error ()
20740{
20741  as_status=$1; test $as_status -eq 0 && as_status=1
20742  if test "$4"; then
20743    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20745  fi
20746  printf "%s\n" "$as_me: error: $2" >&2
20747  as_fn_exit $as_status
20748} # as_fn_error
20749
20750
20751
20752# as_fn_set_status STATUS
20753# -----------------------
20754# Set $? to STATUS, without forking.
20755as_fn_set_status ()
20756{
20757  return $1
20758} # as_fn_set_status
20759
20760# as_fn_exit STATUS
20761# -----------------
20762# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20763as_fn_exit ()
20764{
20765  set +e
20766  as_fn_set_status $1
20767  exit $1
20768} # as_fn_exit
20769
20770# as_fn_unset VAR
20771# ---------------
20772# Portably unset VAR.
20773as_fn_unset ()
20774{
20775  { eval $1=; unset $1;}
20776}
20777as_unset=as_fn_unset
20778
20779# as_fn_append VAR VALUE
20780# ----------------------
20781# Append the text in VALUE to the end of the definition contained in VAR. Take
20782# advantage of any shell optimizations that allow amortized linear growth over
20783# repeated appends, instead of the typical quadratic growth present in naive
20784# implementations.
20785if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20786then :
20787  eval 'as_fn_append ()
20788  {
20789    eval $1+=\$2
20790  }'
20791else $as_nop
20792  as_fn_append ()
20793  {
20794    eval $1=\$$1\$2
20795  }
20796fi # as_fn_append
20797
20798# as_fn_arith ARG...
20799# ------------------
20800# Perform arithmetic evaluation on the ARGs, and store the result in the
20801# global $as_val. Take advantage of shells that can avoid forks. The arguments
20802# must be portable across $(()) and expr.
20803if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20804then :
20805  eval 'as_fn_arith ()
20806  {
20807    as_val=$(( $* ))
20808  }'
20809else $as_nop
20810  as_fn_arith ()
20811  {
20812    as_val=`expr "$@" || test $? -eq 1`
20813  }
20814fi # as_fn_arith
20815
20816
20817if expr a : '\(a\)' >/dev/null 2>&1 &&
20818   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20819  as_expr=expr
20820else
20821  as_expr=false
20822fi
20823
20824if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20825  as_basename=basename
20826else
20827  as_basename=false
20828fi
20829
20830if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20831  as_dirname=dirname
20832else
20833  as_dirname=false
20834fi
20835
20836as_me=`$as_basename -- "$0" ||
20837$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20838	 X"$0" : 'X\(//\)$' \| \
20839	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20840printf "%s\n" X/"$0" |
20841    sed '/^.*\/\([^/][^/]*\)\/*$/{
20842	    s//\1/
20843	    q
20844	  }
20845	  /^X\/\(\/\/\)$/{
20846	    s//\1/
20847	    q
20848	  }
20849	  /^X\/\(\/\).*/{
20850	    s//\1/
20851	    q
20852	  }
20853	  s/.*/./; q'`
20854
20855# Avoid depending upon Character Ranges.
20856as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20857as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20858as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20859as_cr_digits='0123456789'
20860as_cr_alnum=$as_cr_Letters$as_cr_digits
20861
20862
20863# Determine whether it's possible to make 'echo' print without a newline.
20864# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20865# for compatibility with existing Makefiles.
20866ECHO_C= ECHO_N= ECHO_T=
20867case `echo -n x` in #(((((
20868-n*)
20869  case `echo 'xy\c'` in
20870  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20871  xy)  ECHO_C='\c';;
20872  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20873       ECHO_T='	';;
20874  esac;;
20875*)
20876  ECHO_N='-n';;
20877esac
20878
20879# For backward compatibility with old third-party macros, we provide
20880# the shell variables $as_echo and $as_echo_n.  New code should use
20881# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20882as_echo='printf %s\n'
20883as_echo_n='printf %s'
20884
20885rm -f conf$$ conf$$.exe conf$$.file
20886if test -d conf$$.dir; then
20887  rm -f conf$$.dir/conf$$.file
20888else
20889  rm -f conf$$.dir
20890  mkdir conf$$.dir 2>/dev/null
20891fi
20892if (echo >conf$$.file) 2>/dev/null; then
20893  if ln -s conf$$.file conf$$ 2>/dev/null; then
20894    as_ln_s='ln -s'
20895    # ... but there are two gotchas:
20896    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20897    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20898    # In both cases, we have to default to `cp -pR'.
20899    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20900      as_ln_s='cp -pR'
20901  elif ln conf$$.file conf$$ 2>/dev/null; then
20902    as_ln_s=ln
20903  else
20904    as_ln_s='cp -pR'
20905  fi
20906else
20907  as_ln_s='cp -pR'
20908fi
20909rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20910rmdir conf$$.dir 2>/dev/null
20911
20912
20913# as_fn_mkdir_p
20914# -------------
20915# Create "$as_dir" as a directory, including parents if necessary.
20916as_fn_mkdir_p ()
20917{
20918
20919  case $as_dir in #(
20920  -*) as_dir=./$as_dir;;
20921  esac
20922  test -d "$as_dir" || eval $as_mkdir_p || {
20923    as_dirs=
20924    while :; do
20925      case $as_dir in #(
20926      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20927      *) as_qdir=$as_dir;;
20928      esac
20929      as_dirs="'$as_qdir' $as_dirs"
20930      as_dir=`$as_dirname -- "$as_dir" ||
20931$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20932	 X"$as_dir" : 'X\(//\)[^/]' \| \
20933	 X"$as_dir" : 'X\(//\)$' \| \
20934	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20935printf "%s\n" X"$as_dir" |
20936    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20937	    s//\1/
20938	    q
20939	  }
20940	  /^X\(\/\/\)[^/].*/{
20941	    s//\1/
20942	    q
20943	  }
20944	  /^X\(\/\/\)$/{
20945	    s//\1/
20946	    q
20947	  }
20948	  /^X\(\/\).*/{
20949	    s//\1/
20950	    q
20951	  }
20952	  s/.*/./; q'`
20953      test -d "$as_dir" && break
20954    done
20955    test -z "$as_dirs" || eval "mkdir $as_dirs"
20956  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20957
20958
20959} # as_fn_mkdir_p
20960if mkdir -p . 2>/dev/null; then
20961  as_mkdir_p='mkdir -p "$as_dir"'
20962else
20963  test -d ./-p && rmdir ./-p
20964  as_mkdir_p=false
20965fi
20966
20967
20968# as_fn_executable_p FILE
20969# -----------------------
20970# Test if FILE is an executable regular file.
20971as_fn_executable_p ()
20972{
20973  test -f "$1" && test -x "$1"
20974} # as_fn_executable_p
20975as_test_x='test -x'
20976as_executable_p=as_fn_executable_p
20977
20978# Sed expression to map a string onto a valid CPP name.
20979as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20980
20981# Sed expression to map a string onto a valid variable name.
20982as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20983
20984
20985exec 6>&1
20986## ----------------------------------- ##
20987## Main body of $CONFIG_STATUS script. ##
20988## ----------------------------------- ##
20989_ASEOF
20990test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20991
20992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20993# Save the log message, to keep $0 and so on meaningful, and to
20994# report actual input values of CONFIG_FILES etc. instead of their
20995# values after options handling.
20996ac_log="
20997This file was extended by xf86-input-elographics $as_me 1.4.3, which was
20998generated by GNU Autoconf 2.71.  Invocation command line was
20999
21000  CONFIG_FILES    = $CONFIG_FILES
21001  CONFIG_HEADERS  = $CONFIG_HEADERS
21002  CONFIG_LINKS    = $CONFIG_LINKS
21003  CONFIG_COMMANDS = $CONFIG_COMMANDS
21004  $ $0 $@
21005
21006on `(hostname || uname -n) 2>/dev/null | sed 1q`
21007"
21008
21009_ACEOF
21010
21011case $ac_config_files in *"
21012"*) set x $ac_config_files; shift; ac_config_files=$*;;
21013esac
21014
21015case $ac_config_headers in *"
21016"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21017esac
21018
21019
21020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21021# Files that config.status was made for.
21022config_files="$ac_config_files"
21023config_headers="$ac_config_headers"
21024config_commands="$ac_config_commands"
21025
21026_ACEOF
21027
21028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21029ac_cs_usage="\
21030\`$as_me' instantiates files and other configuration actions
21031from templates according to the current configuration.  Unless the files
21032and actions are specified as TAGs, all are instantiated by default.
21033
21034Usage: $0 [OPTION]... [TAG]...
21035
21036  -h, --help       print this help, then exit
21037  -V, --version    print version number and configuration settings, then exit
21038      --config     print configuration, then exit
21039  -q, --quiet, --silent
21040                   do not print progress messages
21041  -d, --debug      don't remove temporary files
21042      --recheck    update $as_me by reconfiguring in the same conditions
21043      --file=FILE[:TEMPLATE]
21044                   instantiate the configuration file FILE
21045      --header=FILE[:TEMPLATE]
21046                   instantiate the configuration header FILE
21047
21048Configuration files:
21049$config_files
21050
21051Configuration headers:
21052$config_headers
21053
21054Configuration commands:
21055$config_commands
21056
21057Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues>."
21058
21059_ACEOF
21060ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21061ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21063ac_cs_config='$ac_cs_config_escaped'
21064ac_cs_version="\\
21065xf86-input-elographics config.status 1.4.3
21066configured by $0, generated by GNU Autoconf 2.71,
21067  with options \\"\$ac_cs_config\\"
21068
21069Copyright (C) 2021 Free Software Foundation, Inc.
21070This config.status script is free software; the Free Software Foundation
21071gives unlimited permission to copy, distribute and modify it."
21072
21073ac_pwd='$ac_pwd'
21074srcdir='$srcdir'
21075INSTALL='$INSTALL'
21076MKDIR_P='$MKDIR_P'
21077AWK='$AWK'
21078test -n "\$AWK" || AWK=awk
21079_ACEOF
21080
21081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21082# The default lists apply if the user does not specify any file.
21083ac_need_defaults=:
21084while test $# != 0
21085do
21086  case $1 in
21087  --*=?*)
21088    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21089    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21090    ac_shift=:
21091    ;;
21092  --*=)
21093    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21094    ac_optarg=
21095    ac_shift=:
21096    ;;
21097  *)
21098    ac_option=$1
21099    ac_optarg=$2
21100    ac_shift=shift
21101    ;;
21102  esac
21103
21104  case $ac_option in
21105  # Handling of the options.
21106  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21107    ac_cs_recheck=: ;;
21108  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21109    printf "%s\n" "$ac_cs_version"; exit ;;
21110  --config | --confi | --conf | --con | --co | --c )
21111    printf "%s\n" "$ac_cs_config"; exit ;;
21112  --debug | --debu | --deb | --de | --d | -d )
21113    debug=: ;;
21114  --file | --fil | --fi | --f )
21115    $ac_shift
21116    case $ac_optarg in
21117    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21118    '') as_fn_error $? "missing file argument" ;;
21119    esac
21120    as_fn_append CONFIG_FILES " '$ac_optarg'"
21121    ac_need_defaults=false;;
21122  --header | --heade | --head | --hea )
21123    $ac_shift
21124    case $ac_optarg in
21125    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21126    esac
21127    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21128    ac_need_defaults=false;;
21129  --he | --h)
21130    # Conflict between --help and --header
21131    as_fn_error $? "ambiguous option: \`$1'
21132Try \`$0 --help' for more information.";;
21133  --help | --hel | -h )
21134    printf "%s\n" "$ac_cs_usage"; exit ;;
21135  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21136  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21137    ac_cs_silent=: ;;
21138
21139  # This is an error.
21140  -*) as_fn_error $? "unrecognized option: \`$1'
21141Try \`$0 --help' for more information." ;;
21142
21143  *) as_fn_append ac_config_targets " $1"
21144     ac_need_defaults=false ;;
21145
21146  esac
21147  shift
21148done
21149
21150ac_configure_extra_args=
21151
21152if $ac_cs_silent; then
21153  exec 6>/dev/null
21154  ac_configure_extra_args="$ac_configure_extra_args --silent"
21155fi
21156
21157_ACEOF
21158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21159if \$ac_cs_recheck; then
21160  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21161  shift
21162  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21163  CONFIG_SHELL='$SHELL'
21164  export CONFIG_SHELL
21165  exec "\$@"
21166fi
21167
21168_ACEOF
21169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21170exec 5>>config.log
21171{
21172  echo
21173  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21174## Running $as_me. ##
21175_ASBOX
21176  printf "%s\n" "$ac_log"
21177} >&5
21178
21179_ACEOF
21180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21181#
21182# INIT-COMMANDS
21183#
21184AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21185
21186
21187# The HP-UX ksh and POSIX shell print the target directory to stdout
21188# if CDPATH is set.
21189(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21190
21191sed_quote_subst='$sed_quote_subst'
21192double_quote_subst='$double_quote_subst'
21193delay_variable_subst='$delay_variable_subst'
21194enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21195macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21196macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21197enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21198pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21199enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21200shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21201SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21202ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21203PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21204host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21205host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21206host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21207build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21208build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21209build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21210SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21211Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21212GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21213EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21214FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21215LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21216NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21217LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21218max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21219ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21220exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21221lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21222lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21223lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21224lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21225lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21226reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21227reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21228FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21229OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21230deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21231file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21232file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21233want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21234DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21235sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21236AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21237lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21238AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21239archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21240STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21241RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21242old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21243old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21244old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21245lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21246CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21247CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21248compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21249GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21250lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21251lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21252lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21253lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21254lt_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"`'
21255lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21256nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21257lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21258lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21259objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21260MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21261lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21262lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21263lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21264lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21265lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21266need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21267MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21268DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21269NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21270LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21271OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21272OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21273libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21274shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21275extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21276archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21277enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21278export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21279whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21280compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21281old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21282old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21283archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21284archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21285module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21286module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21287with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21288allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21289no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21290hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21291hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21292hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21293hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21294hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21295hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21296hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21297inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21298link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21299always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21300export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21301exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21302include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21303prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21304postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21305file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21306variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21307need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21308need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21309version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21310runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21311shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21312shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21313libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21314library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21315soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21316install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21317postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21318postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21319finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21320finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21321hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21322sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21323configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21324configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21325hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21326enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21327enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21328enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21329old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21330striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21331
21332LTCC='$LTCC'
21333LTCFLAGS='$LTCFLAGS'
21334compiler='$compiler_DEFAULT'
21335
21336# A function that is used when there is no print builtin or printf.
21337func_fallback_echo ()
21338{
21339  eval 'cat <<_LTECHO_EOF
21340\$1
21341_LTECHO_EOF'
21342}
21343
21344# Quote evaled strings.
21345for var in SHELL \
21346ECHO \
21347PATH_SEPARATOR \
21348SED \
21349GREP \
21350EGREP \
21351FGREP \
21352LD \
21353NM \
21354LN_S \
21355lt_SP2NL \
21356lt_NL2SP \
21357reload_flag \
21358FILECMD \
21359OBJDUMP \
21360deplibs_check_method \
21361file_magic_cmd \
21362file_magic_glob \
21363want_nocaseglob \
21364DLLTOOL \
21365sharedlib_from_linklib_cmd \
21366AR \
21367archiver_list_spec \
21368STRIP \
21369RANLIB \
21370CC \
21371CFLAGS \
21372compiler \
21373lt_cv_sys_global_symbol_pipe \
21374lt_cv_sys_global_symbol_to_cdecl \
21375lt_cv_sys_global_symbol_to_import \
21376lt_cv_sys_global_symbol_to_c_name_address \
21377lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21378lt_cv_nm_interface \
21379nm_file_list_spec \
21380lt_cv_truncate_bin \
21381lt_prog_compiler_no_builtin_flag \
21382lt_prog_compiler_pic \
21383lt_prog_compiler_wl \
21384lt_prog_compiler_static \
21385lt_cv_prog_compiler_c_o \
21386need_locks \
21387MANIFEST_TOOL \
21388DSYMUTIL \
21389NMEDIT \
21390LIPO \
21391OTOOL \
21392OTOOL64 \
21393shrext_cmds \
21394export_dynamic_flag_spec \
21395whole_archive_flag_spec \
21396compiler_needs_object \
21397with_gnu_ld \
21398allow_undefined_flag \
21399no_undefined_flag \
21400hardcode_libdir_flag_spec \
21401hardcode_libdir_separator \
21402exclude_expsyms \
21403include_expsyms \
21404file_list_spec \
21405variables_saved_for_relink \
21406libname_spec \
21407library_names_spec \
21408soname_spec \
21409install_override_mode \
21410finish_eval \
21411old_striplib \
21412striplib; do
21413    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21414    *[\\\\\\\`\\"\\\$]*)
21415      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21416      ;;
21417    *)
21418      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21419      ;;
21420    esac
21421done
21422
21423# Double-quote double-evaled strings.
21424for var in reload_cmds \
21425old_postinstall_cmds \
21426old_postuninstall_cmds \
21427old_archive_cmds \
21428extract_expsyms_cmds \
21429old_archive_from_new_cmds \
21430old_archive_from_expsyms_cmds \
21431archive_cmds \
21432archive_expsym_cmds \
21433module_cmds \
21434module_expsym_cmds \
21435export_symbols_cmds \
21436prelink_cmds \
21437postlink_cmds \
21438postinstall_cmds \
21439postuninstall_cmds \
21440finish_cmds \
21441sys_lib_search_path_spec \
21442configure_time_dlsearch_path \
21443configure_time_lt_sys_library_path; do
21444    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21445    *[\\\\\\\`\\"\\\$]*)
21446      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21447      ;;
21448    *)
21449      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21450      ;;
21451    esac
21452done
21453
21454ac_aux_dir='$ac_aux_dir'
21455
21456# See if we are running on zsh, and set the options that allow our
21457# commands through without removal of \ escapes INIT.
21458if test -n "\${ZSH_VERSION+set}"; then
21459   setopt NO_GLOB_SUBST
21460fi
21461
21462
21463    PACKAGE='$PACKAGE'
21464    VERSION='$VERSION'
21465    RM='$RM'
21466    ofile='$ofile'
21467
21468
21469
21470
21471_ACEOF
21472
21473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21474
21475# Handling of arguments.
21476for ac_config_target in $ac_config_targets
21477do
21478  case $ac_config_target in
21479    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21480    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21481    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21482    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21483    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21484    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21485
21486  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21487  esac
21488done
21489
21490
21491# If the user did not use the arguments to specify the items to instantiate,
21492# then the envvar interface is used.  Set only those that are not.
21493# We use the long form for the default assignment because of an extremely
21494# bizarre bug on SunOS 4.1.3.
21495if $ac_need_defaults; then
21496  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21497  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21498  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21499fi
21500
21501# Have a temporary directory for convenience.  Make it in the build tree
21502# simply because there is no reason against having it here, and in addition,
21503# creating and moving files from /tmp can sometimes cause problems.
21504# Hook for its removal unless debugging.
21505# Note that there is a small window in which the directory will not be cleaned:
21506# after its creation but before its name has been assigned to `$tmp'.
21507$debug ||
21508{
21509  tmp= ac_tmp=
21510  trap 'exit_status=$?
21511  : "${ac_tmp:=$tmp}"
21512  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21513' 0
21514  trap 'as_fn_exit 1' 1 2 13 15
21515}
21516# Create a (secure) tmp directory for tmp files.
21517
21518{
21519  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21520  test -d "$tmp"
21521}  ||
21522{
21523  tmp=./conf$$-$RANDOM
21524  (umask 077 && mkdir "$tmp")
21525} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21526ac_tmp=$tmp
21527
21528# Set up the scripts for CONFIG_FILES section.
21529# No need to generate them if there are no CONFIG_FILES.
21530# This happens for instance with `./config.status config.h'.
21531if test -n "$CONFIG_FILES"; then
21532
21533
21534ac_cr=`echo X | tr X '\015'`
21535# On cygwin, bash can eat \r inside `` if the user requested igncr.
21536# But we know of no other shell where ac_cr would be empty at this
21537# point, so we can use a bashism as a fallback.
21538if test "x$ac_cr" = x; then
21539  eval ac_cr=\$\'\\r\'
21540fi
21541ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21542if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21543  ac_cs_awk_cr='\\r'
21544else
21545  ac_cs_awk_cr=$ac_cr
21546fi
21547
21548echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21549_ACEOF
21550
21551
21552{
21553  echo "cat >conf$$subs.awk <<_ACEOF" &&
21554  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21555  echo "_ACEOF"
21556} >conf$$subs.sh ||
21557  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21558ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21559ac_delim='%!_!# '
21560for ac_last_try in false false false false false :; do
21561  . ./conf$$subs.sh ||
21562    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21563
21564  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21565  if test $ac_delim_n = $ac_delim_num; then
21566    break
21567  elif $ac_last_try; then
21568    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21569  else
21570    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21571  fi
21572done
21573rm -f conf$$subs.sh
21574
21575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21576cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21577_ACEOF
21578sed -n '
21579h
21580s/^/S["/; s/!.*/"]=/
21581p
21582g
21583s/^[^!]*!//
21584:repl
21585t repl
21586s/'"$ac_delim"'$//
21587t delim
21588:nl
21589h
21590s/\(.\{148\}\)..*/\1/
21591t more1
21592s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21593p
21594n
21595b repl
21596:more1
21597s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21598p
21599g
21600s/.\{148\}//
21601t nl
21602:delim
21603h
21604s/\(.\{148\}\)..*/\1/
21605t more2
21606s/["\\]/\\&/g; s/^/"/; s/$/"/
21607p
21608b
21609:more2
21610s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21611p
21612g
21613s/.\{148\}//
21614t delim
21615' <conf$$subs.awk | sed '
21616/^[^""]/{
21617  N
21618  s/\n//
21619}
21620' >>$CONFIG_STATUS || ac_write_fail=1
21621rm -f conf$$subs.awk
21622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21623_ACAWK
21624cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21625  for (key in S) S_is_set[key] = 1
21626  FS = ""
21627
21628}
21629{
21630  line = $ 0
21631  nfields = split(line, field, "@")
21632  substed = 0
21633  len = length(field[1])
21634  for (i = 2; i < nfields; i++) {
21635    key = field[i]
21636    keylen = length(key)
21637    if (S_is_set[key]) {
21638      value = S[key]
21639      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21640      len += length(value) + length(field[++i])
21641      substed = 1
21642    } else
21643      len += 1 + keylen
21644  }
21645
21646  print line
21647}
21648
21649_ACAWK
21650_ACEOF
21651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21652if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21653  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21654else
21655  cat
21656fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21657  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21658_ACEOF
21659
21660# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21661# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21662# trailing colons and then remove the whole line if VPATH becomes empty
21663# (actually we leave an empty line to preserve line numbers).
21664if test "x$srcdir" = x.; then
21665  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21666h
21667s///
21668s/^/:/
21669s/[	 ]*$/:/
21670s/:\$(srcdir):/:/g
21671s/:\${srcdir}:/:/g
21672s/:@srcdir@:/:/g
21673s/^:*//
21674s/:*$//
21675x
21676s/\(=[	 ]*\).*/\1/
21677G
21678s/\n//
21679s/^[^=]*=[	 ]*$//
21680}'
21681fi
21682
21683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21684fi # test -n "$CONFIG_FILES"
21685
21686# Set up the scripts for CONFIG_HEADERS section.
21687# No need to generate them if there are no CONFIG_HEADERS.
21688# This happens for instance with `./config.status Makefile'.
21689if test -n "$CONFIG_HEADERS"; then
21690cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21691BEGIN {
21692_ACEOF
21693
21694# Transform confdefs.h into an awk script `defines.awk', embedded as
21695# here-document in config.status, that substitutes the proper values into
21696# config.h.in to produce config.h.
21697
21698# Create a delimiter string that does not exist in confdefs.h, to ease
21699# handling of long lines.
21700ac_delim='%!_!# '
21701for ac_last_try in false false :; do
21702  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21703  if test -z "$ac_tt"; then
21704    break
21705  elif $ac_last_try; then
21706    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21707  else
21708    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21709  fi
21710done
21711
21712# For the awk script, D is an array of macro values keyed by name,
21713# likewise P contains macro parameters if any.  Preserve backslash
21714# newline sequences.
21715
21716ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21717sed -n '
21718s/.\{148\}/&'"$ac_delim"'/g
21719t rset
21720:rset
21721s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21722t def
21723d
21724:def
21725s/\\$//
21726t bsnl
21727s/["\\]/\\&/g
21728s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21729D["\1"]=" \3"/p
21730s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21731d
21732:bsnl
21733s/["\\]/\\&/g
21734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21735D["\1"]=" \3\\\\\\n"\\/p
21736t cont
21737s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21738t cont
21739d
21740:cont
21741n
21742s/.\{148\}/&'"$ac_delim"'/g
21743t clear
21744:clear
21745s/\\$//
21746t bsnlc
21747s/["\\]/\\&/g; s/^/"/; s/$/"/p
21748d
21749:bsnlc
21750s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21751b cont
21752' <confdefs.h | sed '
21753s/'"$ac_delim"'/"\\\
21754"/g' >>$CONFIG_STATUS || ac_write_fail=1
21755
21756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21757  for (key in D) D_is_set[key] = 1
21758  FS = ""
21759}
21760/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21761  line = \$ 0
21762  split(line, arg, " ")
21763  if (arg[1] == "#") {
21764    defundef = arg[2]
21765    mac1 = arg[3]
21766  } else {
21767    defundef = substr(arg[1], 2)
21768    mac1 = arg[2]
21769  }
21770  split(mac1, mac2, "(") #)
21771  macro = mac2[1]
21772  prefix = substr(line, 1, index(line, defundef) - 1)
21773  if (D_is_set[macro]) {
21774    # Preserve the white space surrounding the "#".
21775    print prefix "define", macro P[macro] D[macro]
21776    next
21777  } else {
21778    # Replace #undef with comments.  This is necessary, for example,
21779    # in the case of _POSIX_SOURCE, which is predefined and required
21780    # on some systems where configure will not decide to define it.
21781    if (defundef == "undef") {
21782      print "/*", prefix defundef, macro, "*/"
21783      next
21784    }
21785  }
21786}
21787{ print }
21788_ACAWK
21789_ACEOF
21790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21791  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21792fi # test -n "$CONFIG_HEADERS"
21793
21794
21795eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21796shift
21797for ac_tag
21798do
21799  case $ac_tag in
21800  :[FHLC]) ac_mode=$ac_tag; continue;;
21801  esac
21802  case $ac_mode$ac_tag in
21803  :[FHL]*:*);;
21804  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21805  :[FH]-) ac_tag=-:-;;
21806  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21807  esac
21808  ac_save_IFS=$IFS
21809  IFS=:
21810  set x $ac_tag
21811  IFS=$ac_save_IFS
21812  shift
21813  ac_file=$1
21814  shift
21815
21816  case $ac_mode in
21817  :L) ac_source=$1;;
21818  :[FH])
21819    ac_file_inputs=
21820    for ac_f
21821    do
21822      case $ac_f in
21823      -) ac_f="$ac_tmp/stdin";;
21824      *) # Look for the file first in the build tree, then in the source tree
21825	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21826	 # because $ac_f cannot contain `:'.
21827	 test -f "$ac_f" ||
21828	   case $ac_f in
21829	   [\\/$]*) false;;
21830	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21831	   esac ||
21832	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21833      esac
21834      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21835      as_fn_append ac_file_inputs " '$ac_f'"
21836    done
21837
21838    # Let's still pretend it is `configure' which instantiates (i.e., don't
21839    # use $as_me), people would be surprised to read:
21840    #    /* config.h.  Generated by config.status.  */
21841    configure_input='Generated from '`
21842	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21843	`' by configure.'
21844    if test x"$ac_file" != x-; then
21845      configure_input="$ac_file.  $configure_input"
21846      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21847printf "%s\n" "$as_me: creating $ac_file" >&6;}
21848    fi
21849    # Neutralize special characters interpreted by sed in replacement strings.
21850    case $configure_input in #(
21851    *\&* | *\|* | *\\* )
21852       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21853       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21854    *) ac_sed_conf_input=$configure_input;;
21855    esac
21856
21857    case $ac_tag in
21858    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21859      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21860    esac
21861    ;;
21862  esac
21863
21864  ac_dir=`$as_dirname -- "$ac_file" ||
21865$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21866	 X"$ac_file" : 'X\(//\)[^/]' \| \
21867	 X"$ac_file" : 'X\(//\)$' \| \
21868	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21869printf "%s\n" X"$ac_file" |
21870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21871	    s//\1/
21872	    q
21873	  }
21874	  /^X\(\/\/\)[^/].*/{
21875	    s//\1/
21876	    q
21877	  }
21878	  /^X\(\/\/\)$/{
21879	    s//\1/
21880	    q
21881	  }
21882	  /^X\(\/\).*/{
21883	    s//\1/
21884	    q
21885	  }
21886	  s/.*/./; q'`
21887  as_dir="$ac_dir"; as_fn_mkdir_p
21888  ac_builddir=.
21889
21890case "$ac_dir" in
21891.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21892*)
21893  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21894  # A ".." for each directory in $ac_dir_suffix.
21895  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21896  case $ac_top_builddir_sub in
21897  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21898  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21899  esac ;;
21900esac
21901ac_abs_top_builddir=$ac_pwd
21902ac_abs_builddir=$ac_pwd$ac_dir_suffix
21903# for backward compatibility:
21904ac_top_builddir=$ac_top_build_prefix
21905
21906case $srcdir in
21907  .)  # We are building in place.
21908    ac_srcdir=.
21909    ac_top_srcdir=$ac_top_builddir_sub
21910    ac_abs_top_srcdir=$ac_pwd ;;
21911  [\\/]* | ?:[\\/]* )  # Absolute name.
21912    ac_srcdir=$srcdir$ac_dir_suffix;
21913    ac_top_srcdir=$srcdir
21914    ac_abs_top_srcdir=$srcdir ;;
21915  *) # Relative name.
21916    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21917    ac_top_srcdir=$ac_top_build_prefix$srcdir
21918    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21919esac
21920ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21921
21922
21923  case $ac_mode in
21924  :F)
21925  #
21926  # CONFIG_FILE
21927  #
21928
21929  case $INSTALL in
21930  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21931  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21932  esac
21933  ac_MKDIR_P=$MKDIR_P
21934  case $MKDIR_P in
21935  [\\/$]* | ?:[\\/]* ) ;;
21936  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21937  esac
21938_ACEOF
21939
21940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21941# If the template does not know about datarootdir, expand it.
21942# FIXME: This hack should be removed a few years after 2.60.
21943ac_datarootdir_hack=; ac_datarootdir_seen=
21944ac_sed_dataroot='
21945/datarootdir/ {
21946  p
21947  q
21948}
21949/@datadir@/p
21950/@docdir@/p
21951/@infodir@/p
21952/@localedir@/p
21953/@mandir@/p'
21954case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21955*datarootdir*) ac_datarootdir_seen=yes;;
21956*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21958printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21959_ACEOF
21960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21961  ac_datarootdir_hack='
21962  s&@datadir@&$datadir&g
21963  s&@docdir@&$docdir&g
21964  s&@infodir@&$infodir&g
21965  s&@localedir@&$localedir&g
21966  s&@mandir@&$mandir&g
21967  s&\\\${datarootdir}&$datarootdir&g' ;;
21968esac
21969_ACEOF
21970
21971# Neutralize VPATH when `$srcdir' = `.'.
21972# Shell code in configure.ac might set extrasub.
21973# FIXME: do we really want to maintain this feature?
21974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21975ac_sed_extra="$ac_vpsub
21976$extrasub
21977_ACEOF
21978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21979:t
21980/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21981s|@configure_input@|$ac_sed_conf_input|;t t
21982s&@top_builddir@&$ac_top_builddir_sub&;t t
21983s&@top_build_prefix@&$ac_top_build_prefix&;t t
21984s&@srcdir@&$ac_srcdir&;t t
21985s&@abs_srcdir@&$ac_abs_srcdir&;t t
21986s&@top_srcdir@&$ac_top_srcdir&;t t
21987s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21988s&@builddir@&$ac_builddir&;t t
21989s&@abs_builddir@&$ac_abs_builddir&;t t
21990s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21991s&@INSTALL@&$ac_INSTALL&;t t
21992s&@MKDIR_P@&$ac_MKDIR_P&;t t
21993$ac_datarootdir_hack
21994"
21995eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21996  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21997
21998test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21999  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22000  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22001      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22003which seems to be undefined.  Please make sure it is defined" >&5
22004printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22005which seems to be undefined.  Please make sure it is defined" >&2;}
22006
22007  rm -f "$ac_tmp/stdin"
22008  case $ac_file in
22009  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22010  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22011  esac \
22012  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22013 ;;
22014  :H)
22015  #
22016  # CONFIG_HEADER
22017  #
22018  if test x"$ac_file" != x-; then
22019    {
22020      printf "%s\n" "/* $configure_input  */" >&1 \
22021      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22022    } >"$ac_tmp/config.h" \
22023      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22024    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22025      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22026printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22027    else
22028      rm -f "$ac_file"
22029      mv "$ac_tmp/config.h" "$ac_file" \
22030	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22031    fi
22032  else
22033    printf "%s\n" "/* $configure_input  */" >&1 \
22034      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22035      || as_fn_error $? "could not create -" "$LINENO" 5
22036  fi
22037# Compute "$ac_file"'s index in $config_headers.
22038_am_arg="$ac_file"
22039_am_stamp_count=1
22040for _am_header in $config_headers :; do
22041  case $_am_header in
22042    $_am_arg | $_am_arg:* )
22043      break ;;
22044    * )
22045      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22046  esac
22047done
22048echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22049$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22050	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22051	 X"$_am_arg" : 'X\(//\)$' \| \
22052	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22053printf "%s\n" X"$_am_arg" |
22054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22055	    s//\1/
22056	    q
22057	  }
22058	  /^X\(\/\/\)[^/].*/{
22059	    s//\1/
22060	    q
22061	  }
22062	  /^X\(\/\/\)$/{
22063	    s//\1/
22064	    q
22065	  }
22066	  /^X\(\/\).*/{
22067	    s//\1/
22068	    q
22069	  }
22070	  s/.*/./; q'`/stamp-h$_am_stamp_count
22071 ;;
22072
22073  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22074printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22075 ;;
22076  esac
22077
22078
22079  case $ac_file$ac_mode in
22080    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22081  # Older Autoconf quotes --file arguments for eval, but not when files
22082  # are listed without --file.  Let's play safe and only enable the eval
22083  # if we detect the quoting.
22084  # TODO: see whether this extra hack can be removed once we start
22085  # requiring Autoconf 2.70 or later.
22086  case $CONFIG_FILES in #(
22087  *\'*) :
22088    eval set x "$CONFIG_FILES" ;; #(
22089  *) :
22090    set x $CONFIG_FILES ;; #(
22091  *) :
22092     ;;
22093esac
22094  shift
22095  # Used to flag and report bootstrapping failures.
22096  am_rc=0
22097  for am_mf
22098  do
22099    # Strip MF so we end up with the name of the file.
22100    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22101    # Check whether this is an Automake generated Makefile which includes
22102    # dependency-tracking related rules and includes.
22103    # Grep'ing the whole file directly is not great: AIX grep has a line
22104    # limit of 2048, but all sed's we know have understand at least 4000.
22105    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22106      || continue
22107    am_dirpart=`$as_dirname -- "$am_mf" ||
22108$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22109	 X"$am_mf" : 'X\(//\)[^/]' \| \
22110	 X"$am_mf" : 'X\(//\)$' \| \
22111	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22112printf "%s\n" X"$am_mf" |
22113    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22114	    s//\1/
22115	    q
22116	  }
22117	  /^X\(\/\/\)[^/].*/{
22118	    s//\1/
22119	    q
22120	  }
22121	  /^X\(\/\/\)$/{
22122	    s//\1/
22123	    q
22124	  }
22125	  /^X\(\/\).*/{
22126	    s//\1/
22127	    q
22128	  }
22129	  s/.*/./; q'`
22130    am_filepart=`$as_basename -- "$am_mf" ||
22131$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22132	 X"$am_mf" : 'X\(//\)$' \| \
22133	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22134printf "%s\n" X/"$am_mf" |
22135    sed '/^.*\/\([^/][^/]*\)\/*$/{
22136	    s//\1/
22137	    q
22138	  }
22139	  /^X\/\(\/\/\)$/{
22140	    s//\1/
22141	    q
22142	  }
22143	  /^X\/\(\/\).*/{
22144	    s//\1/
22145	    q
22146	  }
22147	  s/.*/./; q'`
22148    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22149      && sed -e '/# am--include-marker/d' "$am_filepart" \
22150        | $MAKE -f - am--depfiles" >&5
22151   (cd "$am_dirpart" \
22152      && sed -e '/# am--include-marker/d' "$am_filepart" \
22153        | $MAKE -f - am--depfiles) >&5 2>&5
22154   ac_status=$?
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } || am_rc=$?
22157  done
22158  if test $am_rc -ne 0; then
22159    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22160printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22161as_fn_error $? "Something went wrong bootstrapping makefile fragments
22162    for automatic dependency tracking.  If GNU make was not used, consider
22163    re-running the configure script with MAKE=\"gmake\" (or whatever is
22164    necessary).  You can also try re-running configure with the
22165    '--disable-dependency-tracking' option to at least be able to build
22166    the package (albeit without support for automatic dependency tracking).
22167See \`config.log' for more details" "$LINENO" 5; }
22168  fi
22169  { am_dirpart=; unset am_dirpart;}
22170  { am_filepart=; unset am_filepart;}
22171  { am_mf=; unset am_mf;}
22172  { am_rc=; unset am_rc;}
22173  rm -f conftest-deps.mk
22174}
22175 ;;
22176    "libtool":C)
22177
22178    # See if we are running on zsh, and set the options that allow our
22179    # commands through without removal of \ escapes.
22180    if test -n "${ZSH_VERSION+set}"; then
22181      setopt NO_GLOB_SUBST
22182    fi
22183
22184    cfgfile=${ofile}T
22185    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22186    $RM "$cfgfile"
22187
22188    cat <<_LT_EOF >> "$cfgfile"
22189#! $SHELL
22190# Generated automatically by $as_me ($PACKAGE) $VERSION
22191# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22192# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22193
22194# Provide generalized library-building support services.
22195# Written by Gordon Matzigkeit, 1996
22196
22197# Copyright (C) 2014 Free Software Foundation, Inc.
22198# This is free software; see the source for copying conditions.  There is NO
22199# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22200
22201# GNU Libtool is free software; you can redistribute it and/or modify
22202# it under the terms of the GNU General Public License as published by
22203# the Free Software Foundation; either version 2 of of the License, or
22204# (at your option) any later version.
22205#
22206# As a special exception to the GNU General Public License, if you
22207# distribute this file as part of a program or library that is built
22208# using GNU Libtool, you may include this file under the  same
22209# distribution terms that you use for the rest of that program.
22210#
22211# GNU Libtool is distributed in the hope that it will be useful, but
22212# WITHOUT ANY WARRANTY; without even the implied warranty of
22213# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22214# GNU General Public License for more details.
22215#
22216# You should have received a copy of the GNU General Public License
22217# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22218
22219
22220# The names of the tagged configurations supported by this script.
22221available_tags=''
22222
22223# Configured defaults for sys_lib_dlsearch_path munging.
22224: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22225
22226# ### BEGIN LIBTOOL CONFIG
22227
22228# Whether or not to build static libraries.
22229build_old_libs=$enable_static
22230
22231# Which release of libtool.m4 was used?
22232macro_version=$macro_version
22233macro_revision=$macro_revision
22234
22235# Whether or not to build shared libraries.
22236build_libtool_libs=$enable_shared
22237
22238# What type of objects to build.
22239pic_mode=$pic_mode
22240
22241# Whether or not to optimize for fast installation.
22242fast_install=$enable_fast_install
22243
22244# Shared archive member basename,for filename based shared library versioning on AIX.
22245shared_archive_member_spec=$shared_archive_member_spec
22246
22247# Shell to use when invoking shell scripts.
22248SHELL=$lt_SHELL
22249
22250# An echo program that protects backslashes.
22251ECHO=$lt_ECHO
22252
22253# The PATH separator for the build system.
22254PATH_SEPARATOR=$lt_PATH_SEPARATOR
22255
22256# The host system.
22257host_alias=$host_alias
22258host=$host
22259host_os=$host_os
22260
22261# The build system.
22262build_alias=$build_alias
22263build=$build
22264build_os=$build_os
22265
22266# A sed program that does not truncate output.
22267SED=$lt_SED
22268
22269# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22270Xsed="\$SED -e 1s/^X//"
22271
22272# A grep program that handles long lines.
22273GREP=$lt_GREP
22274
22275# An ERE matcher.
22276EGREP=$lt_EGREP
22277
22278# A literal string matcher.
22279FGREP=$lt_FGREP
22280
22281# A BSD- or MS-compatible name lister.
22282NM=$lt_NM
22283
22284# Whether we need soft or hard links.
22285LN_S=$lt_LN_S
22286
22287# What is the maximum length of a command?
22288max_cmd_len=$max_cmd_len
22289
22290# Object file suffix (normally "o").
22291objext=$ac_objext
22292
22293# Executable file suffix (normally "").
22294exeext=$exeext
22295
22296# whether the shell understands "unset".
22297lt_unset=$lt_unset
22298
22299# turn spaces into newlines.
22300SP2NL=$lt_lt_SP2NL
22301
22302# turn newlines into spaces.
22303NL2SP=$lt_lt_NL2SP
22304
22305# convert \$build file names to \$host format.
22306to_host_file_cmd=$lt_cv_to_host_file_cmd
22307
22308# convert \$build files to toolchain format.
22309to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22310
22311# A file(cmd) program that detects file types.
22312FILECMD=$lt_FILECMD
22313
22314# An object symbol dumper.
22315OBJDUMP=$lt_OBJDUMP
22316
22317# Method to check whether dependent libraries are shared objects.
22318deplibs_check_method=$lt_deplibs_check_method
22319
22320# Command to use when deplibs_check_method = "file_magic".
22321file_magic_cmd=$lt_file_magic_cmd
22322
22323# How to find potential files when deplibs_check_method = "file_magic".
22324file_magic_glob=$lt_file_magic_glob
22325
22326# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22327want_nocaseglob=$lt_want_nocaseglob
22328
22329# DLL creation program.
22330DLLTOOL=$lt_DLLTOOL
22331
22332# Command to associate shared and link libraries.
22333sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22334
22335# The archiver.
22336AR=$lt_AR
22337
22338# Flags to create an archive (by configure).
22339lt_ar_flags=$lt_ar_flags
22340
22341# Flags to create an archive.
22342AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22343
22344# How to feed a file listing to the archiver.
22345archiver_list_spec=$lt_archiver_list_spec
22346
22347# A symbol stripping program.
22348STRIP=$lt_STRIP
22349
22350# Commands used to install an old-style archive.
22351RANLIB=$lt_RANLIB
22352old_postinstall_cmds=$lt_old_postinstall_cmds
22353old_postuninstall_cmds=$lt_old_postuninstall_cmds
22354
22355# Whether to use a lock for old archive extraction.
22356lock_old_archive_extraction=$lock_old_archive_extraction
22357
22358# A C compiler.
22359LTCC=$lt_CC
22360
22361# LTCC compiler flags.
22362LTCFLAGS=$lt_CFLAGS
22363
22364# Take the output of nm and produce a listing of raw symbols and C names.
22365global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22366
22367# Transform the output of nm in a proper C declaration.
22368global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22369
22370# Transform the output of nm into a list of symbols to manually relocate.
22371global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22372
22373# Transform the output of nm in a C name address pair.
22374global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22375
22376# Transform the output of nm in a C name address pair when lib prefix is needed.
22377global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22378
22379# The name lister interface.
22380nm_interface=$lt_lt_cv_nm_interface
22381
22382# Specify filename containing input files for \$NM.
22383nm_file_list_spec=$lt_nm_file_list_spec
22384
22385# The root where to search for dependent libraries,and where our libraries should be installed.
22386lt_sysroot=$lt_sysroot
22387
22388# Command to truncate a binary pipe.
22389lt_truncate_bin=$lt_lt_cv_truncate_bin
22390
22391# The name of the directory that contains temporary libtool files.
22392objdir=$objdir
22393
22394# Used to examine libraries when file_magic_cmd begins with "file".
22395MAGIC_CMD=$MAGIC_CMD
22396
22397# Must we lock files when doing compilation?
22398need_locks=$lt_need_locks
22399
22400# Manifest tool.
22401MANIFEST_TOOL=$lt_MANIFEST_TOOL
22402
22403# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22404DSYMUTIL=$lt_DSYMUTIL
22405
22406# Tool to change global to local symbols on Mac OS X.
22407NMEDIT=$lt_NMEDIT
22408
22409# Tool to manipulate fat objects and archives on Mac OS X.
22410LIPO=$lt_LIPO
22411
22412# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22413OTOOL=$lt_OTOOL
22414
22415# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22416OTOOL64=$lt_OTOOL64
22417
22418# Old archive suffix (normally "a").
22419libext=$libext
22420
22421# Shared library suffix (normally ".so").
22422shrext_cmds=$lt_shrext_cmds
22423
22424# The commands to extract the exported symbol list from a shared archive.
22425extract_expsyms_cmds=$lt_extract_expsyms_cmds
22426
22427# Variables whose values should be saved in libtool wrapper scripts and
22428# restored at link time.
22429variables_saved_for_relink=$lt_variables_saved_for_relink
22430
22431# Do we need the "lib" prefix for modules?
22432need_lib_prefix=$need_lib_prefix
22433
22434# Do we need a version for libraries?
22435need_version=$need_version
22436
22437# Library versioning type.
22438version_type=$version_type
22439
22440# Shared library runtime path variable.
22441runpath_var=$runpath_var
22442
22443# Shared library path variable.
22444shlibpath_var=$shlibpath_var
22445
22446# Is shlibpath searched before the hard-coded library search path?
22447shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22448
22449# Format of library name prefix.
22450libname_spec=$lt_libname_spec
22451
22452# List of archive names.  First name is the real one, the rest are links.
22453# The last name is the one that the linker finds with -lNAME
22454library_names_spec=$lt_library_names_spec
22455
22456# The coded name of the library, if different from the real name.
22457soname_spec=$lt_soname_spec
22458
22459# Permission mode override for installation of shared libraries.
22460install_override_mode=$lt_install_override_mode
22461
22462# Command to use after installation of a shared archive.
22463postinstall_cmds=$lt_postinstall_cmds
22464
22465# Command to use after uninstallation of a shared archive.
22466postuninstall_cmds=$lt_postuninstall_cmds
22467
22468# Commands used to finish a libtool library installation in a directory.
22469finish_cmds=$lt_finish_cmds
22470
22471# As "finish_cmds", except a single script fragment to be evaled but
22472# not shown.
22473finish_eval=$lt_finish_eval
22474
22475# Whether we should hardcode library paths into libraries.
22476hardcode_into_libs=$hardcode_into_libs
22477
22478# Compile-time system search path for libraries.
22479sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22480
22481# Detected run-time system search path for libraries.
22482sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22483
22484# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22485configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22486
22487# Whether dlopen is supported.
22488dlopen_support=$enable_dlopen
22489
22490# Whether dlopen of programs is supported.
22491dlopen_self=$enable_dlopen_self
22492
22493# Whether dlopen of statically linked programs is supported.
22494dlopen_self_static=$enable_dlopen_self_static
22495
22496# Commands to strip libraries.
22497old_striplib=$lt_old_striplib
22498striplib=$lt_striplib
22499
22500
22501# The linker used to build libraries.
22502LD=$lt_LD
22503
22504# How to create reloadable object files.
22505reload_flag=$lt_reload_flag
22506reload_cmds=$lt_reload_cmds
22507
22508# Commands used to build an old-style archive.
22509old_archive_cmds=$lt_old_archive_cmds
22510
22511# A language specific compiler.
22512CC=$lt_compiler
22513
22514# Is the compiler the GNU compiler?
22515with_gcc=$GCC
22516
22517# Compiler flag to turn off builtin functions.
22518no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22519
22520# Additional compiler flags for building library objects.
22521pic_flag=$lt_lt_prog_compiler_pic
22522
22523# How to pass a linker flag through the compiler.
22524wl=$lt_lt_prog_compiler_wl
22525
22526# Compiler flag to prevent dynamic linking.
22527link_static_flag=$lt_lt_prog_compiler_static
22528
22529# Does compiler simultaneously support -c and -o options?
22530compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22531
22532# Whether or not to add -lc for building shared libraries.
22533build_libtool_need_lc=$archive_cmds_need_lc
22534
22535# Whether or not to disallow shared libs when runtime libs are static.
22536allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22537
22538# Compiler flag to allow reflexive dlopens.
22539export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22540
22541# Compiler flag to generate shared objects directly from archives.
22542whole_archive_flag_spec=$lt_whole_archive_flag_spec
22543
22544# Whether the compiler copes with passing no objects directly.
22545compiler_needs_object=$lt_compiler_needs_object
22546
22547# Create an old-style archive from a shared archive.
22548old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22549
22550# Create a temporary old-style archive to link instead of a shared archive.
22551old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22552
22553# Commands used to build a shared archive.
22554archive_cmds=$lt_archive_cmds
22555archive_expsym_cmds=$lt_archive_expsym_cmds
22556
22557# Commands used to build a loadable module if different from building
22558# a shared archive.
22559module_cmds=$lt_module_cmds
22560module_expsym_cmds=$lt_module_expsym_cmds
22561
22562# Whether we are building with GNU ld or not.
22563with_gnu_ld=$lt_with_gnu_ld
22564
22565# Flag that allows shared libraries with undefined symbols to be built.
22566allow_undefined_flag=$lt_allow_undefined_flag
22567
22568# Flag that enforces no undefined symbols.
22569no_undefined_flag=$lt_no_undefined_flag
22570
22571# Flag to hardcode \$libdir into a binary during linking.
22572# This must work even if \$libdir does not exist
22573hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22574
22575# Whether we need a single "-rpath" flag with a separated argument.
22576hardcode_libdir_separator=$lt_hardcode_libdir_separator
22577
22578# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22579# DIR into the resulting binary.
22580hardcode_direct=$hardcode_direct
22581
22582# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22583# DIR into the resulting binary and the resulting library dependency is
22584# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22585# library is relocated.
22586hardcode_direct_absolute=$hardcode_direct_absolute
22587
22588# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22589# into the resulting binary.
22590hardcode_minus_L=$hardcode_minus_L
22591
22592# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22593# into the resulting binary.
22594hardcode_shlibpath_var=$hardcode_shlibpath_var
22595
22596# Set to "yes" if building a shared library automatically hardcodes DIR
22597# into the library and all subsequent libraries and executables linked
22598# against it.
22599hardcode_automatic=$hardcode_automatic
22600
22601# Set to yes if linker adds runtime paths of dependent libraries
22602# to runtime path list.
22603inherit_rpath=$inherit_rpath
22604
22605# Whether libtool must link a program against all its dependency libraries.
22606link_all_deplibs=$link_all_deplibs
22607
22608# Set to "yes" if exported symbols are required.
22609always_export_symbols=$always_export_symbols
22610
22611# The commands to list exported symbols.
22612export_symbols_cmds=$lt_export_symbols_cmds
22613
22614# Symbols that should not be listed in the preloaded symbols.
22615exclude_expsyms=$lt_exclude_expsyms
22616
22617# Symbols that must always be exported.
22618include_expsyms=$lt_include_expsyms
22619
22620# Commands necessary for linking programs (against libraries) with templates.
22621prelink_cmds=$lt_prelink_cmds
22622
22623# Commands necessary for finishing linking programs.
22624postlink_cmds=$lt_postlink_cmds
22625
22626# Specify filename containing input files.
22627file_list_spec=$lt_file_list_spec
22628
22629# How to hardcode a shared library path into an executable.
22630hardcode_action=$hardcode_action
22631
22632# ### END LIBTOOL CONFIG
22633
22634_LT_EOF
22635
22636    cat <<'_LT_EOF' >> "$cfgfile"
22637
22638# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22639
22640# func_munge_path_list VARIABLE PATH
22641# -----------------------------------
22642# VARIABLE is name of variable containing _space_ separated list of
22643# directories to be munged by the contents of PATH, which is string
22644# having a format:
22645# "DIR[:DIR]:"
22646#       string "DIR[ DIR]" will be prepended to VARIABLE
22647# ":DIR[:DIR]"
22648#       string "DIR[ DIR]" will be appended to VARIABLE
22649# "DIRP[:DIRP]::[DIRA:]DIRA"
22650#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22651#       "DIRA[ DIRA]" will be appended to VARIABLE
22652# "DIR[:DIR]"
22653#       VARIABLE will be replaced by "DIR[ DIR]"
22654func_munge_path_list ()
22655{
22656    case x$2 in
22657    x)
22658        ;;
22659    *:)
22660        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22661        ;;
22662    x:*)
22663        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22664        ;;
22665    *::*)
22666        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22667        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22668        ;;
22669    *)
22670        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22671        ;;
22672    esac
22673}
22674
22675
22676# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22677func_cc_basename ()
22678{
22679    for cc_temp in $*""; do
22680      case $cc_temp in
22681        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22682        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22683        \-*) ;;
22684        *) break;;
22685      esac
22686    done
22687    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22688}
22689
22690
22691# ### END FUNCTIONS SHARED WITH CONFIGURE
22692
22693_LT_EOF
22694
22695  case $host_os in
22696  aix3*)
22697    cat <<\_LT_EOF >> "$cfgfile"
22698# AIX sometimes has problems with the GCC collect2 program.  For some
22699# reason, if we set the COLLECT_NAMES environment variable, the problems
22700# vanish in a puff of smoke.
22701if test set != "${COLLECT_NAMES+set}"; then
22702  COLLECT_NAMES=
22703  export COLLECT_NAMES
22704fi
22705_LT_EOF
22706    ;;
22707  esac
22708
22709
22710
22711ltmain=$ac_aux_dir/ltmain.sh
22712
22713
22714  # We use sed instead of cat because bash on DJGPP gets confused if
22715  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22716  # text mode, it properly converts lines to CR/LF.  This bash problem
22717  # is reportedly fixed, but why not run on old versions too?
22718  $SED '$q' "$ltmain" >> "$cfgfile" \
22719     || (rm -f "$cfgfile"; exit 1)
22720
22721   mv -f "$cfgfile" "$ofile" ||
22722    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22723  chmod +x "$ofile"
22724
22725 ;;
22726
22727  esac
22728done # for ac_tag
22729
22730
22731as_fn_exit 0
22732_ACEOF
22733ac_clean_files=$ac_clean_files_save
22734
22735test $ac_write_fail = 0 ||
22736  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22737
22738
22739# configure is writing to config.log, and then calls config.status.
22740# config.status does its own redirection, appending to config.log.
22741# Unfortunately, on DOS this fails, as config.log is still kept open
22742# by configure, so config.status won't be able to write to it; its
22743# output is simply discarded.  So we exec the FD to /dev/null,
22744# effectively closing config.log, so it can be properly (re)opened and
22745# appended to by config.status.  When coming back to configure, we
22746# need to make the FD available again.
22747if test "$no_create" != yes; then
22748  ac_cs_success=:
22749  ac_config_status_args=
22750  test "$silent" = yes &&
22751    ac_config_status_args="$ac_config_status_args --quiet"
22752  exec 5>/dev/null
22753  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22754  exec 5>>config.log
22755  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22756  # would make configure fail if this is the last instruction.
22757  $ac_cs_success || as_fn_exit 1
22758fi
22759if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22761printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22762fi
22763
22764
22765